drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1 | #! /bin/sh |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 23 | |
| 24 | # Support unset when possible. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +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 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +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 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 221 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +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. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +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 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 243 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 244 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 262 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 274 | $* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 309 | for dir in $PATH /usr/ucb; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 310 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 319 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 391 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 392 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 393 | |
| 394 | tagnames=${tagnames+${tagnames},}CXX |
| 395 | |
| 396 | tagnames=${tagnames+${tagnames},}F77 |
| 397 | |
drh | 71eb93e | 2001-09-28 01:34:43 +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 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 408 | ac_default_prefix=/usr/local |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 409 | ac_config_libobj_dir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 410 | cross_compiling=no |
| 411 | subdirs= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 412 | MFLAGS= |
| 413 | MAKEFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 421 | # Identity of this package. |
| 422 | PACKAGE_NAME= |
| 423 | PACKAGE_TARNAME= |
| 424 | PACKAGE_VERSION= |
| 425 | PACKAGE_STRING= |
| 426 | PACKAGE_BUGREPORT= |
| 427 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 428 | ac_unique_file="src/sqlite.h.in" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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 | |
drh | 26d0e2a | 2005-07-06 13:51:27 +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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR THREADSAFE TARGET_THREAD_LIB ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG LIBOBJS LTLIBOBJS' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 467 | ac_subst_files='' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 468 | |
| 469 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 470 | ac_init_help= |
| 471 | ac_init_version=false |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 472 | # The variables have the same names as the options, with |
| 473 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 474 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 475 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 476 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 485 | verbose= |
| 486 | x_includes=NONE |
| 487 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 507 | ac_prev= |
| 508 | for ac_option |
| 509 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 517 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 518 | |
| 519 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 520 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 521 | case $ac_option in |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 522 | |
| 523 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 524 | ac_prev=bindir ;; |
| 525 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 526 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 527 | |
| 528 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 529 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 530 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 531 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 538 | cache_file=$ac_optarg ;; |
| 539 | |
| 540 | --config-cache | -C) |
| 541 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 542 | |
| 543 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 544 | ac_prev=datadir ;; |
| 545 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 546 | | --da=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 547 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 548 | |
| 549 | -disable-* | --disable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 550 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 551 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 557 | |
| 558 | -enable-* | --enable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 559 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 560 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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"`;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 567 | *) ac_optarg=yes ;; |
| 568 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 569 | eval "enable_$ac_feature='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 578 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 579 | |
| 580 | -gas | --gas | --ga | --g) |
| 581 | # Obsolete; use --with-gas. |
| 582 | with_gas=yes ;; |
| 583 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 590 | |
| 591 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 592 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 593 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 594 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 601 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 602 | |
| 603 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 604 | ac_prev=infodir ;; |
| 605 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 606 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 607 | |
| 608 | -libdir | --libdir | --libdi | --libd) |
| 609 | ac_prev=libdir ;; |
| 610 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 611 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 618 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 627 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 628 | |
| 629 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 630 | ac_prev=mandir ;; |
| 631 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 632 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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 \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 639 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 653 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 654 | |
| 655 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 656 | ac_prev=prefix ;; |
| 657 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 658 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 665 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 672 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 689 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 699 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 710 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 711 | |
| 712 | -site | --site | --sit) |
| 713 | ac_prev=site ;; |
| 714 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 715 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 716 | |
| 717 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 718 | ac_prev=srcdir ;; |
| 719 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 720 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 727 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 728 | |
| 729 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 730 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 731 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 732 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 733 | |
| 734 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 735 | verbose=yes ;; |
| 736 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 737 | -version | --version | --versio | --versi | --vers | -V) |
| 738 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 739 | |
| 740 | -with-* | --with-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 741 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 742 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 746 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 747 | case $ac_option in |
| 748 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 749 | *) ac_optarg=yes ;; |
| 750 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 751 | eval "with_$ac_package='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 752 | |
| 753 | -without-* | --without-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 754 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 755 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 771 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 778 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 779 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 780 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 781 | Try \`$0 --help' for more information." >&2 |
| 782 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 783 | ;; |
| 784 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 795 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 801 | ;; |
| 802 | |
| 803 | esac |
| 804 | done |
| 805 | |
| 806 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 810 | fi |
| 811 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 812 | # Be sure to have absolute paths. |
| 813 | for ac_var in exec_prefix prefix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 814 | do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 815 | eval ac_val=$`echo $ac_var` |
| 816 | case $ac_val in |
| 817 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 818 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 819 | { (exit 1); exit 1; }; };; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 820 | esac |
| 821 | done |
| 822 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 823 | # Be sure to have absolute paths. |
| 824 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 825 | localstatedir libdir includedir oldincludedir infodir mandir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 826 | do |
| 827 | eval ac_val=$`echo $ac_var` |
| 828 | case $ac_val in |
| 829 | [\\/$]* | ?:[\\/]* ) ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 830 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 831 | { (exit 1); exit 1; }; };; |
| 832 | esac |
| 833 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 834 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 835 | # There might be people who depend on the old broken behavior: `$host' |
| 836 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 837 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 838 | build=$build_alias |
| 839 | host=$host_alias |
| 840 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 841 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 842 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 857 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 858 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 863 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 864 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 865 | X"$0" : 'X\(//\)[^/]' \| \ |
| 866 | X"$0" : 'X\(//\)$' \| \ |
| 867 | X"$0" : 'X\(/\)' \| \ |
| 868 | . : '\(.\)' 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +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'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 884 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 885 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 886 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 887 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 888 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 889 | fi |
| 890 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +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 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 947 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 954 | cat <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 975 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 976 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 977 | cat <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 978 | Installation directories: |
| 979 | --prefix=PREFIX install architecture-independent files in PREFIX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 980 | [$ac_default_prefix] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 981 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 982 | [PREFIX] |
drh | 71eb93e | 2001-09-28 01:34:43 +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] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1004 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1005 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1006 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1007 | |
| 1008 | System types: |
| 1009 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1010 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1011 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1012 | fi |
| 1013 | |
| 1014 | if test -n "$ac_init_help"; then |
| 1015 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1016 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1017 | |
| 1018 | Optional Features: |
| 1019 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1020 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1021 | --enable-shared[=PKGS] |
| 1022 | build shared libraries [default=yes] |
| 1023 | --enable-static[=PKGS] |
| 1024 | build static libraries [default=yes] |
| 1025 | --enable-fast-install[=PKGS] |
| 1026 | optimize for fast installation [default=yes] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1027 | --disable-libtool-lock avoid locking (might break parallel builds) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 1028 | --enable-threadsafe Support threadsafe operation |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 1029 | --enable-releasemode Support libtool link to release mode |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 1030 | --enable-tempstore Use an in-ram database for temporary tables (never,no,yes,always) |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 1031 | --disable-tcl do not build TCL extension |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 1032 | --enable-debug enable debugging & verbose explain |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1033 | |
| 1034 | Optional Packages: |
| 1035 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1036 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1037 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1038 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1039 | both] |
| 1040 | --with-tags[=TAGS] |
| 1041 | include additional configurations [automatic] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1042 | --with-hints=FILE Read configuration options from FILE |
drh | b571b45 | 2004-12-10 02:20:27 +0000 | [diff] [blame] | 1043 | --with-tcl=DIR directory containing tcl configuration (tclConfig.sh) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1044 | |
| 1045 | Some influential environment variables: |
| 1046 | CC C compiler command |
| 1047 | CFLAGS C compiler flags |
| 1048 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1049 | nonstandard directory <lib dir> |
| 1050 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1051 | headers in a nonstandard directory <include dir> |
| 1052 | CPP C preprocessor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1053 | CXX C++ compiler command |
| 1054 | CXXFLAGS C++ compiler flags |
| 1055 | CXXCPP C++ preprocessor |
| 1056 | F77 Fortran 77 compiler command |
| 1057 | FFLAGS Fortran 77 compiler flags |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1058 | |
| 1059 | Use these variables to override the choices made by `configure' or to help |
| 1060 | it to find libraries and programs with nonstandard names/locations. |
| 1061 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1062 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1063 | fi |
| 1064 | |
| 1065 | if test "$ac_init_help" = "recursive"; then |
| 1066 | # If there are subdirs, report their specific --help. |
| 1067 | ac_popdir=`pwd` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1068 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1069 | test -d $ac_dir || continue |
| 1070 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1071 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1072 | if test "$ac_dir" != .; then |
| 1073 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1074 | # A "../" for each directory in $ac_dir_suffix. |
| 1075 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1076 | else |
| 1077 | ac_dir_suffix= ac_top_builddir= |
| 1078 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1079 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1080 | case $srcdir in |
| 1081 | .) # No --srcdir option. We are building in place. |
| 1082 | ac_srcdir=. |
| 1083 | if test -z "$ac_top_builddir"; then |
| 1084 | ac_top_srcdir=. |
| 1085 | else |
| 1086 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1087 | fi ;; |
| 1088 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1089 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1090 | ac_top_srcdir=$srcdir ;; |
| 1091 | *) # Relative path. |
| 1092 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1093 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1094 | esac |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1095 | |
| 1096 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1097 | # the directories may not exist. |
| 1098 | case `pwd` in |
| 1099 | .) ac_abs_builddir="$ac_dir";; |
| 1100 | *) |
| 1101 | case "$ac_dir" in |
| 1102 | .) ac_abs_builddir=`pwd`;; |
| 1103 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1104 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1105 | esac;; |
| 1106 | esac |
| 1107 | case $ac_abs_builddir in |
| 1108 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1109 | *) |
| 1110 | case ${ac_top_builddir}. in |
| 1111 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1112 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1113 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1114 | esac;; |
| 1115 | esac |
| 1116 | case $ac_abs_builddir in |
| 1117 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1118 | *) |
| 1119 | case $ac_srcdir in |
| 1120 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1121 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1122 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1123 | esac;; |
| 1124 | esac |
| 1125 | case $ac_abs_builddir in |
| 1126 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1127 | *) |
| 1128 | case $ac_top_srcdir in |
| 1129 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1130 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1131 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1132 | esac;; |
| 1133 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1134 | |
| 1135 | cd $ac_dir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1136 | # Check for guested configure; otherwise get Cygnus style configure. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1137 | if test -f $ac_srcdir/configure.gnu; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1138 | echo |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1139 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1140 | elif test -f $ac_srcdir/configure; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1141 | echo |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1142 | $SHELL $ac_srcdir/configure --help=recursive |
| 1143 | elif test -f $ac_srcdir/configure.ac || |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1144 | test -f $ac_srcdir/configure.in; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1145 | echo |
| 1146 | $ac_configure --help |
| 1147 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1148 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1149 | fi |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 1150 | cd $ac_popdir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1151 | done |
| 1152 | fi |
| 1153 | |
| 1154 | test -n "$ac_init_help" && exit 0 |
| 1155 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1156 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1157 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1158 | Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1159 | This configure script is free software; the Free Software Foundation |
| 1160 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1161 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1162 | exit 0 |
| 1163 | fi |
| 1164 | exec 5>config.log |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1165 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1166 | This file contains any messages produced by compilers while |
| 1167 | running configure, to aid debugging if configure makes a mistake. |
| 1168 | |
| 1169 | It was created by $as_me, which was |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1170 | generated by GNU Autoconf 2.59. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1171 | |
| 1172 | $ $0 $@ |
| 1173 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1174 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1175 | { |
| 1176 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1177 | ## --------- ## |
| 1178 | ## Platform. ## |
| 1179 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1180 | |
| 1181 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1182 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1183 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1184 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1185 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1186 | |
| 1187 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1188 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1189 | |
| 1190 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1191 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1192 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1193 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1194 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1195 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1196 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1197 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1198 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1199 | |
| 1200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1201 | for as_dir in $PATH |
| 1202 | do |
| 1203 | IFS=$as_save_IFS |
| 1204 | test -z "$as_dir" && as_dir=. |
| 1205 | echo "PATH: $as_dir" |
| 1206 | done |
| 1207 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1208 | } >&5 |
| 1209 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1210 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1211 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1212 | |
| 1213 | ## ----------- ## |
| 1214 | ## Core tests. ## |
| 1215 | ## ----------- ## |
| 1216 | |
| 1217 | _ACEOF |
| 1218 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1219 | |
| 1220 | # Keep a trace of the command line. |
| 1221 | # Strip out --no-create and --no-recursion so they do not pile up. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1222 | # Strip out --silent because we don't want to record it for future runs. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1223 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1224 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1225 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1226 | ac_configure_args0= |
| 1227 | ac_configure_args1= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1228 | ac_sep= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1229 | ac_must_keep_next=false |
| 1230 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1231 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1232 | for ac_arg |
| 1233 | do |
| 1234 | case $ac_arg in |
| 1235 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1236 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1237 | | -silent | --silent | --silen | --sile | --sil) |
| 1238 | continue ;; |
| 1239 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1240 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1241 | esac |
| 1242 | case $ac_pass in |
| 1243 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1244 | 2) |
| 1245 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1246 | if test $ac_must_keep_next = true; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1247 | ac_must_keep_next=false # Got value, back to normal. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1248 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1249 | case $ac_arg in |
| 1250 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1251 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1252 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1253 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1254 | case "$ac_configure_args0 " in |
| 1255 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1256 | esac |
| 1257 | ;; |
| 1258 | -* ) ac_must_keep_next=true ;; |
| 1259 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1260 | fi |
| 1261 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1262 | # Get rid of the leading space. |
| 1263 | ac_sep=" " |
| 1264 | ;; |
| 1265 | esac |
| 1266 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1267 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1268 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1269 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1270 | |
| 1271 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1272 | # config.log. We remove comments because anyway the quotes in there |
| 1273 | # would cause problems or look ugly. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1274 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1275 | # such as our DU 5.0 friend, will then `close' the trap. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1276 | trap 'exit_status=$? |
| 1277 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1278 | { |
| 1279 | echo |
| 1280 | |
| 1281 | cat <<\_ASBOX |
| 1282 | ## ---------------- ## |
| 1283 | ## Cache variables. ## |
| 1284 | ## ---------------- ## |
| 1285 | _ASBOX |
| 1286 | echo |
| 1287 | # The following way of writing the cache mishandles newlines in values, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1288 | { |
| 1289 | (set) 2>&1 | |
| 1290 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1291 | *ac_space=\ *) |
| 1292 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1293 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1294 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1295 | ;; |
| 1296 | *) |
| 1297 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1298 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1299 | ;; |
| 1300 | esac; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1301 | } |
| 1302 | echo |
| 1303 | |
| 1304 | cat <<\_ASBOX |
| 1305 | ## ----------------- ## |
| 1306 | ## Output variables. ## |
| 1307 | ## ----------------- ## |
| 1308 | _ASBOX |
| 1309 | echo |
| 1310 | for ac_var in $ac_subst_vars |
| 1311 | do |
| 1312 | eval ac_val=$`echo $ac_var` |
| 1313 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1314 | done | sort |
| 1315 | echo |
| 1316 | |
| 1317 | if test -n "$ac_subst_files"; then |
| 1318 | cat <<\_ASBOX |
| 1319 | ## ------------- ## |
| 1320 | ## Output files. ## |
| 1321 | ## ------------- ## |
| 1322 | _ASBOX |
| 1323 | echo |
| 1324 | for ac_var in $ac_subst_files |
| 1325 | do |
| 1326 | eval ac_val=$`echo $ac_var` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1327 | echo "$ac_var='"'"'$ac_val'"'"'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1328 | done | sort |
| 1329 | echo |
| 1330 | fi |
| 1331 | |
| 1332 | if test -s confdefs.h; then |
| 1333 | cat <<\_ASBOX |
| 1334 | ## ----------- ## |
| 1335 | ## confdefs.h. ## |
| 1336 | ## ----------- ## |
| 1337 | _ASBOX |
| 1338 | echo |
| 1339 | sed "/^$/d" confdefs.h | sort |
| 1340 | echo |
| 1341 | fi |
| 1342 | test "$ac_signal" != 0 && |
| 1343 | echo "$as_me: caught signal $ac_signal" |
| 1344 | echo "$as_me: exit $exit_status" |
| 1345 | } >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1346 | rm -f core *.core && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1347 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1348 | exit $exit_status |
| 1349 | ' 0 |
| 1350 | for ac_signal in 1 2 13 15; do |
| 1351 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1352 | done |
| 1353 | ac_signal=0 |
| 1354 | |
| 1355 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1356 | rm -rf conftest* confdefs.h |
| 1357 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1358 | echo >confdefs.h |
| 1359 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1360 | # Predefined preprocessor variables. |
| 1361 | |
| 1362 | cat >>confdefs.h <<_ACEOF |
| 1363 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1364 | _ACEOF |
| 1365 | |
| 1366 | |
| 1367 | cat >>confdefs.h <<_ACEOF |
| 1368 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1369 | _ACEOF |
| 1370 | |
| 1371 | |
| 1372 | cat >>confdefs.h <<_ACEOF |
| 1373 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1374 | _ACEOF |
| 1375 | |
| 1376 | |
| 1377 | cat >>confdefs.h <<_ACEOF |
| 1378 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1379 | _ACEOF |
| 1380 | |
| 1381 | |
| 1382 | cat >>confdefs.h <<_ACEOF |
| 1383 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1384 | _ACEOF |
| 1385 | |
| 1386 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1387 | # Let the site file select an alternate cache file if it wants to. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1388 | # Prefer explicitly selected file to automatically selected ones. |
| 1389 | if test -z "$CONFIG_SITE"; then |
| 1390 | if test "x$prefix" != xNONE; then |
| 1391 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1392 | else |
| 1393 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1394 | fi |
| 1395 | fi |
| 1396 | for ac_site_file in $CONFIG_SITE; do |
| 1397 | if test -r "$ac_site_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1398 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1399 | echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1400 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1401 | . "$ac_site_file" |
| 1402 | fi |
| 1403 | done |
| 1404 | |
| 1405 | if test -r "$cache_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1406 | # Some versions of bash will fail to source /dev/null (special |
| 1407 | # files actually), so we avoid doing that. |
| 1408 | if test -f "$cache_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1409 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1410 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1411 | case $cache_file in |
| 1412 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1413 | *) . ./$cache_file;; |
| 1414 | esac |
| 1415 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1416 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1417 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1418 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1419 | >$cache_file |
| 1420 | fi |
| 1421 | |
| 1422 | # Check that the precious variables saved in the cache have kept the same |
| 1423 | # value. |
| 1424 | ac_cache_corrupted=false |
| 1425 | for ac_var in `(set) 2>&1 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1426 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1427 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1428 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1429 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1430 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1431 | case $ac_old_set,$ac_new_set in |
| 1432 | set,) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1433 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1434 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1435 | ac_cache_corrupted=: ;; |
| 1436 | ,set) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1437 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1438 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1439 | ac_cache_corrupted=: ;; |
| 1440 | ,);; |
| 1441 | *) |
| 1442 | if test "x$ac_old_val" != "x$ac_new_val"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1443 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1444 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1445 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1446 | echo "$as_me: former value: $ac_old_val" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1447 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1448 | echo "$as_me: current value: $ac_new_val" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1449 | ac_cache_corrupted=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1450 | fi;; |
| 1451 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1452 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1453 | if test "$ac_new_set" = set; then |
| 1454 | case $ac_new_val in |
| 1455 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1456 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1457 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1458 | esac |
| 1459 | case " $ac_configure_args " in |
| 1460 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1461 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1462 | esac |
| 1463 | fi |
| 1464 | done |
| 1465 | if $ac_cache_corrupted; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1466 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1467 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1468 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1469 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1470 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1471 | fi |
| 1472 | |
| 1473 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1474 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1478 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1497 | |
| 1498 | # The following RCS revision string applies to configure.in |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame^] | 1499 | # $Revision: 1.31 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1500 | |
| 1501 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1502 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1503 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1504 | # Check whether --enable-shared or --disable-shared was given. |
| 1505 | if test "${enable_shared+set}" = set; then |
| 1506 | enableval="$enable_shared" |
| 1507 | p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1508 | case $enableval in |
| 1509 | yes) enable_shared=yes ;; |
| 1510 | no) enable_shared=no ;; |
| 1511 | *) |
| 1512 | enable_shared=no |
| 1513 | # Look at the argument we got. We use all the common list separators. |
| 1514 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 1515 | for pkg in $enableval; do |
| 1516 | IFS="$lt_save_ifs" |
| 1517 | if test "X$pkg" = "X$p"; then |
| 1518 | enable_shared=yes |
| 1519 | fi |
| 1520 | done |
| 1521 | IFS="$lt_save_ifs" |
| 1522 | ;; |
| 1523 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1524 | else |
| 1525 | enable_shared=yes |
| 1526 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1527 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1528 | # Check whether --enable-static or --disable-static was given. |
| 1529 | if test "${enable_static+set}" = set; then |
| 1530 | enableval="$enable_static" |
| 1531 | p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1532 | case $enableval in |
| 1533 | yes) enable_static=yes ;; |
| 1534 | no) enable_static=no ;; |
| 1535 | *) |
| 1536 | enable_static=no |
| 1537 | # Look at the argument we got. We use all the common list separators. |
| 1538 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 1539 | for pkg in $enableval; do |
| 1540 | IFS="$lt_save_ifs" |
| 1541 | if test "X$pkg" = "X$p"; then |
| 1542 | enable_static=yes |
| 1543 | fi |
| 1544 | done |
| 1545 | IFS="$lt_save_ifs" |
| 1546 | ;; |
| 1547 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1548 | else |
| 1549 | enable_static=yes |
| 1550 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1551 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1552 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 1553 | if test "${enable_fast_install+set}" = set; then |
| 1554 | enableval="$enable_fast_install" |
| 1555 | p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1556 | case $enableval in |
| 1557 | yes) enable_fast_install=yes ;; |
| 1558 | no) enable_fast_install=no ;; |
| 1559 | *) |
| 1560 | enable_fast_install=no |
| 1561 | # Look at the argument we got. We use all the common list separators. |
| 1562 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 1563 | for pkg in $enableval; do |
| 1564 | IFS="$lt_save_ifs" |
| 1565 | if test "X$pkg" = "X$p"; then |
| 1566 | enable_fast_install=yes |
| 1567 | fi |
| 1568 | done |
| 1569 | IFS="$lt_save_ifs" |
| 1570 | ;; |
| 1571 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1572 | else |
| 1573 | enable_fast_install=yes |
| 1574 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1575 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1576 | ac_aux_dir= |
| 1577 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1578 | if test -f $ac_dir/install-sh; then |
| 1579 | ac_aux_dir=$ac_dir |
| 1580 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1581 | break |
| 1582 | elif test -f $ac_dir/install.sh; then |
| 1583 | ac_aux_dir=$ac_dir |
| 1584 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1585 | break |
| 1586 | elif test -f $ac_dir/shtool; then |
| 1587 | ac_aux_dir=$ac_dir |
| 1588 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1589 | break |
| 1590 | fi |
| 1591 | done |
| 1592 | if test -z "$ac_aux_dir"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1593 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1594 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1595 | { (exit 1); exit 1; }; } |
| 1596 | fi |
| 1597 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1598 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1599 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1600 | |
| 1601 | # Make sure we can run config.sub. |
| 1602 | $ac_config_sub sun4 >/dev/null 2>&1 || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1603 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1604 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1605 | { (exit 1); exit 1; }; } |
| 1606 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1607 | echo "$as_me:$LINENO: checking build system type" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1608 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1609 | if test "${ac_cv_build+set}" = set; then |
| 1610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1611 | else |
| 1612 | ac_cv_build_alias=$build_alias |
| 1613 | test -z "$ac_cv_build_alias" && |
| 1614 | ac_cv_build_alias=`$ac_config_guess` |
| 1615 | test -z "$ac_cv_build_alias" && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1616 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1617 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1618 | { (exit 1); exit 1; }; } |
| 1619 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1620 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1621 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1622 | { (exit 1); exit 1; }; } |
| 1623 | |
| 1624 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1625 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1626 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1627 | build=$ac_cv_build |
| 1628 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1629 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1630 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1631 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1632 | |
| 1633 | echo "$as_me:$LINENO: checking host system type" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1634 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1635 | if test "${ac_cv_host+set}" = set; then |
| 1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1637 | else |
| 1638 | ac_cv_host_alias=$host_alias |
| 1639 | test -z "$ac_cv_host_alias" && |
| 1640 | ac_cv_host_alias=$ac_cv_build_alias |
| 1641 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1642 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1643 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1644 | { (exit 1); exit 1; }; } |
| 1645 | |
| 1646 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1647 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1648 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1649 | host=$ac_cv_host |
| 1650 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1651 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1652 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1653 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1654 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1655 | ac_ext=c |
| 1656 | ac_cpp='$CPP $CPPFLAGS' |
| 1657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1660 | if test -n "$ac_tool_prefix"; then |
| 1661 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1662 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1665 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1667 | else |
| 1668 | if test -n "$CC"; then |
| 1669 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1670 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1672 | for as_dir in $PATH |
| 1673 | do |
| 1674 | IFS=$as_save_IFS |
| 1675 | test -z "$as_dir" && as_dir=. |
| 1676 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1678 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1680 | break 2 |
| 1681 | fi |
| 1682 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1683 | done |
| 1684 | |
| 1685 | fi |
| 1686 | fi |
| 1687 | CC=$ac_cv_prog_CC |
| 1688 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1689 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1690 | echo "${ECHO_T}$CC" >&6 |
| 1691 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1692 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1693 | echo "${ECHO_T}no" >&6 |
| 1694 | fi |
| 1695 | |
| 1696 | fi |
| 1697 | if test -z "$ac_cv_prog_CC"; then |
| 1698 | ac_ct_CC=$CC |
| 1699 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1700 | set dummy gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1701 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1703 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1705 | else |
| 1706 | if test -n "$ac_ct_CC"; then |
| 1707 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1708 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1710 | for as_dir in $PATH |
| 1711 | do |
| 1712 | IFS=$as_save_IFS |
| 1713 | test -z "$as_dir" && as_dir=. |
| 1714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1716 | ac_cv_prog_ac_ct_CC="gcc" |
| 1717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1718 | break 2 |
| 1719 | fi |
| 1720 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1721 | done |
| 1722 | |
| 1723 | fi |
| 1724 | fi |
| 1725 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1726 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1727 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1728 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1729 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1730 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1731 | echo "${ECHO_T}no" >&6 |
| 1732 | fi |
| 1733 | |
| 1734 | CC=$ac_ct_CC |
| 1735 | else |
| 1736 | CC="$ac_cv_prog_CC" |
| 1737 | fi |
| 1738 | |
| 1739 | if test -z "$CC"; then |
| 1740 | if test -n "$ac_tool_prefix"; then |
| 1741 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1742 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1745 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1747 | else |
| 1748 | if test -n "$CC"; then |
| 1749 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1750 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1752 | for as_dir in $PATH |
| 1753 | do |
| 1754 | IFS=$as_save_IFS |
| 1755 | test -z "$as_dir" && as_dir=. |
| 1756 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1757 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1758 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1760 | break 2 |
| 1761 | fi |
| 1762 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1763 | done |
| 1764 | |
| 1765 | fi |
| 1766 | fi |
| 1767 | CC=$ac_cv_prog_CC |
| 1768 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1769 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1770 | echo "${ECHO_T}$CC" >&6 |
| 1771 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1772 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1773 | echo "${ECHO_T}no" >&6 |
| 1774 | fi |
| 1775 | |
| 1776 | fi |
| 1777 | if test -z "$ac_cv_prog_CC"; then |
| 1778 | ac_ct_CC=$CC |
| 1779 | # Extract the first word of "cc", so it can be a program name with args. |
| 1780 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1781 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1783 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1785 | else |
| 1786 | if test -n "$ac_ct_CC"; then |
| 1787 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1788 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1790 | for as_dir in $PATH |
| 1791 | do |
| 1792 | IFS=$as_save_IFS |
| 1793 | test -z "$as_dir" && as_dir=. |
| 1794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1795 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1796 | ac_cv_prog_ac_ct_CC="cc" |
| 1797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1798 | break 2 |
| 1799 | fi |
| 1800 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1801 | done |
| 1802 | |
| 1803 | fi |
| 1804 | fi |
| 1805 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1806 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1807 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1808 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1809 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1810 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1811 | echo "${ECHO_T}no" >&6 |
| 1812 | fi |
| 1813 | |
| 1814 | CC=$ac_ct_CC |
| 1815 | else |
| 1816 | CC="$ac_cv_prog_CC" |
| 1817 | fi |
| 1818 | |
| 1819 | fi |
| 1820 | if test -z "$CC"; then |
| 1821 | # Extract the first word of "cc", so it can be a program name with args. |
| 1822 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1823 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1825 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1827 | else |
| 1828 | if test -n "$CC"; then |
| 1829 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1830 | else |
| 1831 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1833 | for as_dir in $PATH |
| 1834 | do |
| 1835 | IFS=$as_save_IFS |
| 1836 | test -z "$as_dir" && as_dir=. |
| 1837 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1839 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1840 | ac_prog_rejected=yes |
| 1841 | continue |
| 1842 | fi |
| 1843 | ac_cv_prog_CC="cc" |
| 1844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1845 | break 2 |
| 1846 | fi |
| 1847 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1848 | done |
| 1849 | |
| 1850 | if test $ac_prog_rejected = yes; then |
| 1851 | # We found a bogon in the path, so make sure we never use it. |
| 1852 | set dummy $ac_cv_prog_CC |
| 1853 | shift |
| 1854 | if test $# != 0; then |
| 1855 | # We chose a different compiler from the bogus one. |
| 1856 | # However, it has the same basename, so the bogon will be chosen |
| 1857 | # first if we set CC to just the basename; use the full file name. |
| 1858 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1859 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1860 | fi |
| 1861 | fi |
| 1862 | fi |
| 1863 | fi |
| 1864 | CC=$ac_cv_prog_CC |
| 1865 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1866 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1867 | echo "${ECHO_T}$CC" >&6 |
| 1868 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1869 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1870 | echo "${ECHO_T}no" >&6 |
| 1871 | fi |
| 1872 | |
| 1873 | fi |
| 1874 | if test -z "$CC"; then |
| 1875 | if test -n "$ac_tool_prefix"; then |
| 1876 | for ac_prog in cl |
| 1877 | do |
| 1878 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1879 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1882 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1884 | else |
| 1885 | if test -n "$CC"; then |
| 1886 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1887 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1889 | for as_dir in $PATH |
| 1890 | do |
| 1891 | IFS=$as_save_IFS |
| 1892 | test -z "$as_dir" && as_dir=. |
| 1893 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1895 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1897 | break 2 |
| 1898 | fi |
| 1899 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1900 | done |
| 1901 | |
| 1902 | fi |
| 1903 | fi |
| 1904 | CC=$ac_cv_prog_CC |
| 1905 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1906 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1907 | echo "${ECHO_T}$CC" >&6 |
| 1908 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1909 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1910 | echo "${ECHO_T}no" >&6 |
| 1911 | fi |
| 1912 | |
| 1913 | test -n "$CC" && break |
| 1914 | done |
| 1915 | fi |
| 1916 | if test -z "$CC"; then |
| 1917 | ac_ct_CC=$CC |
| 1918 | for ac_prog in cl |
| 1919 | do |
| 1920 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1921 | set dummy $ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1924 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1926 | else |
| 1927 | if test -n "$ac_ct_CC"; then |
| 1928 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1929 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1931 | for as_dir in $PATH |
| 1932 | do |
| 1933 | IFS=$as_save_IFS |
| 1934 | test -z "$as_dir" && as_dir=. |
| 1935 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1936 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1937 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1939 | break 2 |
| 1940 | fi |
| 1941 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1942 | done |
| 1943 | |
| 1944 | fi |
| 1945 | fi |
| 1946 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1947 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1948 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1949 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1950 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1951 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1952 | echo "${ECHO_T}no" >&6 |
| 1953 | fi |
| 1954 | |
| 1955 | test -n "$ac_ct_CC" && break |
| 1956 | done |
| 1957 | |
| 1958 | CC=$ac_ct_CC |
| 1959 | fi |
| 1960 | |
| 1961 | fi |
| 1962 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1963 | |
| 1964 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1965 | See \`config.log' for more details." >&5 |
| 1966 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1967 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1968 | { (exit 1); exit 1; }; } |
| 1969 | |
| 1970 | # Provide some information about the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1971 | echo "$as_me:$LINENO:" \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1972 | "checking for C compiler version" >&5 |
| 1973 | ac_compiler=`set X $ac_compile; echo $2` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1974 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1975 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1976 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1978 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1979 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1980 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1981 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1983 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1984 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1985 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1986 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1988 | (exit $ac_status); } |
| 1989 | |
| 1990 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1991 | /* confdefs.h. */ |
| 1992 | _ACEOF |
| 1993 | cat confdefs.h >>conftest.$ac_ext |
| 1994 | cat >>conftest.$ac_ext <<_ACEOF |
| 1995 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1996 | |
| 1997 | int |
| 1998 | main () |
| 1999 | { |
| 2000 | |
| 2001 | ; |
| 2002 | return 0; |
| 2003 | } |
| 2004 | _ACEOF |
| 2005 | ac_clean_files_save=$ac_clean_files |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2006 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2007 | # Try to create an executable without -o first, disregard a.out. |
| 2008 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2009 | # of exeext. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2010 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2011 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2012 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2013 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2014 | (eval $ac_link_default) 2>&5 |
| 2015 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2017 | (exit $ac_status); }; then |
| 2018 | # Find the output, starting from the most likely. This scheme is |
| 2019 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2020 | # resort. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2021 | |
| 2022 | # Be careful to initialize this variable, since it used to be cached. |
| 2023 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2024 | ac_cv_exeext= |
| 2025 | # b.out is created by i960 compilers. |
| 2026 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2027 | do |
| 2028 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2029 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2030 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2031 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2032 | conftest.$ac_ext ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2033 | # This is the source file. |
| 2034 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2035 | [ab].out ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2036 | # We found the default executable, but exeext='' is most |
| 2037 | # certainly right. |
| 2038 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2039 | *.* ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2040 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2041 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2042 | # but it would be cool to find out if it's true. Does anybody |
| 2043 | # maintain Libtool? --akim. |
| 2044 | export ac_cv_exeext |
| 2045 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2046 | * ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2047 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2048 | esac |
| 2049 | done |
| 2050 | else |
| 2051 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2053 | |
| 2054 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2055 | See \`config.log' for more details." >&5 |
| 2056 | echo "$as_me: error: C compiler cannot create executables |
| 2057 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2058 | { (exit 77); exit 77; }; } |
| 2059 | fi |
| 2060 | |
| 2061 | ac_exeext=$ac_cv_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2062 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2063 | echo "${ECHO_T}$ac_file" >&6 |
| 2064 | |
| 2065 | # Check the compiler produces executables we can run. If not, either |
| 2066 | # the compiler is broken, or we cross compile. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2067 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2068 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2069 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2070 | # If not cross compiling, check that we can run a simple program. |
| 2071 | if test "$cross_compiling" != yes; then |
| 2072 | if { ac_try='./$ac_file' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2074 | (eval $ac_try) 2>&5 |
| 2075 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2077 | (exit $ac_status); }; }; then |
| 2078 | cross_compiling=no |
| 2079 | else |
| 2080 | if test "$cross_compiling" = maybe; then |
| 2081 | cross_compiling=yes |
| 2082 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2083 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2084 | If you meant to cross compile, use \`--host'. |
| 2085 | See \`config.log' for more details." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2086 | echo "$as_me: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2087 | If you meant to cross compile, use \`--host'. |
| 2088 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2089 | { (exit 1); exit 1; }; } |
| 2090 | fi |
| 2091 | fi |
| 2092 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2093 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2094 | echo "${ECHO_T}yes" >&6 |
| 2095 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2096 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2097 | ac_clean_files=$ac_clean_files_save |
| 2098 | # Check the compiler produces executables we can run. If not, either |
| 2099 | # the compiler is broken, or we cross compile. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2100 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2101 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2102 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2103 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2104 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2105 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2106 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2108 | (eval $ac_link) 2>&5 |
| 2109 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2111 | (exit $ac_status); }; then |
| 2112 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2113 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2114 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2115 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2116 | for ac_file in conftest.exe conftest conftest.*; do |
| 2117 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2118 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2119 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2120 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2121 | export ac_cv_exeext |
| 2122 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2123 | * ) break;; |
| 2124 | esac |
| 2125 | done |
| 2126 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2127 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2128 | See \`config.log' for more details." >&5 |
| 2129 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2130 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2131 | { (exit 1); exit 1; }; } |
| 2132 | fi |
| 2133 | |
| 2134 | rm -f conftest$ac_cv_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2135 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2136 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2137 | |
| 2138 | rm -f conftest.$ac_ext |
| 2139 | EXEEXT=$ac_cv_exeext |
| 2140 | ac_exeext=$EXEEXT |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2141 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2142 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2143 | if test "${ac_cv_objext+set}" = set; then |
| 2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2145 | else |
| 2146 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2147 | /* confdefs.h. */ |
| 2148 | _ACEOF |
| 2149 | cat confdefs.h >>conftest.$ac_ext |
| 2150 | cat >>conftest.$ac_ext <<_ACEOF |
| 2151 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2152 | |
| 2153 | int |
| 2154 | main () |
| 2155 | { |
| 2156 | |
| 2157 | ; |
| 2158 | return 0; |
| 2159 | } |
| 2160 | _ACEOF |
| 2161 | rm -f conftest.o conftest.obj |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2163 | (eval $ac_compile) 2>&5 |
| 2164 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2166 | (exit $ac_status); }; then |
| 2167 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2168 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2169 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2170 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2171 | break;; |
| 2172 | esac |
| 2173 | done |
| 2174 | else |
| 2175 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2177 | |
| 2178 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2179 | See \`config.log' for more details." >&5 |
| 2180 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2181 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2182 | { (exit 1); exit 1; }; } |
| 2183 | fi |
| 2184 | |
| 2185 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2186 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2187 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2188 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2189 | OBJEXT=$ac_cv_objext |
| 2190 | ac_objext=$OBJEXT |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2191 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2192 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2193 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2195 | else |
| 2196 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2197 | /* confdefs.h. */ |
| 2198 | _ACEOF |
| 2199 | cat confdefs.h >>conftest.$ac_ext |
| 2200 | cat >>conftest.$ac_ext <<_ACEOF |
| 2201 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2202 | |
| 2203 | int |
| 2204 | main () |
| 2205 | { |
| 2206 | #ifndef __GNUC__ |
| 2207 | choke me |
| 2208 | #endif |
| 2209 | |
| 2210 | ; |
| 2211 | return 0; |
| 2212 | } |
| 2213 | _ACEOF |
| 2214 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2216 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2217 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2219 | rm -f conftest.er1 |
| 2220 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2222 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2223 | { ac_try='test -z "$ac_c_werror_flag" |
| 2224 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2226 | (eval $ac_try) 2>&5 |
| 2227 | ac_status=$? |
| 2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2229 | (exit $ac_status); }; } && |
| 2230 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2232 | (eval $ac_try) 2>&5 |
| 2233 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2235 | (exit $ac_status); }; }; then |
| 2236 | ac_compiler_gnu=yes |
| 2237 | else |
| 2238 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2240 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2241 | ac_compiler_gnu=no |
| 2242 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2244 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2245 | |
| 2246 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2247 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2248 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2249 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2250 | ac_test_CFLAGS=${CFLAGS+set} |
| 2251 | ac_save_CFLAGS=$CFLAGS |
| 2252 | CFLAGS="-g" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2253 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2254 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2255 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2257 | else |
| 2258 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2259 | /* confdefs.h. */ |
| 2260 | _ACEOF |
| 2261 | cat confdefs.h >>conftest.$ac_ext |
| 2262 | cat >>conftest.$ac_ext <<_ACEOF |
| 2263 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2264 | |
| 2265 | int |
| 2266 | main () |
| 2267 | { |
| 2268 | |
| 2269 | ; |
| 2270 | return 0; |
| 2271 | } |
| 2272 | _ACEOF |
| 2273 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2275 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2276 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2278 | rm -f conftest.er1 |
| 2279 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2281 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2282 | { ac_try='test -z "$ac_c_werror_flag" |
| 2283 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2285 | (eval $ac_try) 2>&5 |
| 2286 | ac_status=$? |
| 2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2288 | (exit $ac_status); }; } && |
| 2289 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2291 | (eval $ac_try) 2>&5 |
| 2292 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2294 | (exit $ac_status); }; }; then |
| 2295 | ac_cv_prog_cc_g=yes |
| 2296 | else |
| 2297 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2299 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2300 | ac_cv_prog_cc_g=no |
| 2301 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2303 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2304 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2305 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2306 | if test "$ac_test_CFLAGS" = set; then |
| 2307 | CFLAGS=$ac_save_CFLAGS |
| 2308 | elif test $ac_cv_prog_cc_g = yes; then |
| 2309 | if test "$GCC" = yes; then |
| 2310 | CFLAGS="-g -O2" |
| 2311 | else |
| 2312 | CFLAGS="-g" |
| 2313 | fi |
| 2314 | else |
| 2315 | if test "$GCC" = yes; then |
| 2316 | CFLAGS="-O2" |
| 2317 | else |
| 2318 | CFLAGS= |
| 2319 | fi |
| 2320 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2321 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2322 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2323 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2325 | else |
| 2326 | ac_cv_prog_cc_stdc=no |
| 2327 | ac_save_CC=$CC |
| 2328 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2329 | /* confdefs.h. */ |
| 2330 | _ACEOF |
| 2331 | cat confdefs.h >>conftest.$ac_ext |
| 2332 | cat >>conftest.$ac_ext <<_ACEOF |
| 2333 | /* end confdefs.h. */ |
| 2334 | #include <stdarg.h> |
| 2335 | #include <stdio.h> |
| 2336 | #include <sys/types.h> |
| 2337 | #include <sys/stat.h> |
| 2338 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2339 | struct buf { int x; }; |
| 2340 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2341 | static char *e (p, i) |
| 2342 | char **p; |
| 2343 | int i; |
| 2344 | { |
| 2345 | return p[i]; |
| 2346 | } |
| 2347 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2348 | { |
| 2349 | char *s; |
| 2350 | va_list v; |
| 2351 | va_start (v,p); |
| 2352 | s = g (p, va_arg (v,int)); |
| 2353 | va_end (v); |
| 2354 | return s; |
| 2355 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2356 | |
| 2357 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2358 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2359 | These don't provoke an error unfortunately, instead are silently treated |
| 2360 | as 'x'. The following induces an error, until -std1 is added to get |
| 2361 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2362 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2363 | that's true only with -std1. */ |
| 2364 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2365 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2366 | int test (int i, double x); |
| 2367 | struct s1 {int (*f) (int a);}; |
| 2368 | struct s2 {int (*f) (double a);}; |
| 2369 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2370 | int argc; |
| 2371 | char **argv; |
| 2372 | int |
| 2373 | main () |
| 2374 | { |
| 2375 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2376 | ; |
| 2377 | return 0; |
| 2378 | } |
| 2379 | _ACEOF |
| 2380 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2381 | # breaks some systems' header files. |
| 2382 | # AIX -qlanglvl=ansi |
| 2383 | # Ultrix and OSF/1 -std1 |
| 2384 | # HP-UX 10.20 and later -Ae |
| 2385 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2386 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2387 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2388 | do |
| 2389 | CC="$ac_save_CC $ac_arg" |
| 2390 | rm -f conftest.$ac_objext |
| 2391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2392 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2393 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2395 | rm -f conftest.er1 |
| 2396 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2398 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2399 | { ac_try='test -z "$ac_c_werror_flag" |
| 2400 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2402 | (eval $ac_try) 2>&5 |
| 2403 | ac_status=$? |
| 2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2405 | (exit $ac_status); }; } && |
| 2406 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2408 | (eval $ac_try) 2>&5 |
| 2409 | ac_status=$? |
| 2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2411 | (exit $ac_status); }; }; then |
| 2412 | ac_cv_prog_cc_stdc=$ac_arg |
| 2413 | break |
| 2414 | else |
| 2415 | echo "$as_me: failed program was:" >&5 |
| 2416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2417 | |
| 2418 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2419 | rm -f conftest.err conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2420 | done |
| 2421 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2422 | CC=$ac_save_CC |
| 2423 | |
| 2424 | fi |
| 2425 | |
| 2426 | case "x$ac_cv_prog_cc_stdc" in |
| 2427 | x|xno) |
| 2428 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2429 | echo "${ECHO_T}none needed" >&6 ;; |
| 2430 | *) |
| 2431 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2432 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2433 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2434 | esac |
| 2435 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2436 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2437 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2438 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2439 | # the declaration of exit, since it's the most demanding environment. |
| 2440 | cat >conftest.$ac_ext <<_ACEOF |
| 2441 | #ifndef __cplusplus |
| 2442 | choke me |
| 2443 | #endif |
| 2444 | _ACEOF |
| 2445 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2447 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2448 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2450 | rm -f conftest.er1 |
| 2451 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2453 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2454 | { ac_try='test -z "$ac_c_werror_flag" |
| 2455 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2457 | (eval $ac_try) 2>&5 |
| 2458 | ac_status=$? |
| 2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2460 | (exit $ac_status); }; } && |
| 2461 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2463 | (eval $ac_try) 2>&5 |
| 2464 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2466 | (exit $ac_status); }; }; then |
| 2467 | for ac_declaration in \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2468 | '' \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2469 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2470 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2471 | 'extern "C" void exit (int) throw ();' \ |
| 2472 | 'extern "C" void exit (int);' \ |
| 2473 | 'void exit (int);' |
| 2474 | do |
| 2475 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2476 | /* confdefs.h. */ |
| 2477 | _ACEOF |
| 2478 | cat confdefs.h >>conftest.$ac_ext |
| 2479 | cat >>conftest.$ac_ext <<_ACEOF |
| 2480 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2481 | $ac_declaration |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2482 | #include <stdlib.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2483 | int |
| 2484 | main () |
| 2485 | { |
| 2486 | exit (42); |
| 2487 | ; |
| 2488 | return 0; |
| 2489 | } |
| 2490 | _ACEOF |
| 2491 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2493 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2494 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2496 | rm -f conftest.er1 |
| 2497 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2499 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2500 | { ac_try='test -z "$ac_c_werror_flag" |
| 2501 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2503 | (eval $ac_try) 2>&5 |
| 2504 | ac_status=$? |
| 2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2506 | (exit $ac_status); }; } && |
| 2507 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2509 | (eval $ac_try) 2>&5 |
| 2510 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2512 | (exit $ac_status); }; }; then |
| 2513 | : |
| 2514 | else |
| 2515 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2517 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2518 | continue |
| 2519 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2521 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2522 | /* confdefs.h. */ |
| 2523 | _ACEOF |
| 2524 | cat confdefs.h >>conftest.$ac_ext |
| 2525 | cat >>conftest.$ac_ext <<_ACEOF |
| 2526 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2527 | $ac_declaration |
| 2528 | int |
| 2529 | main () |
| 2530 | { |
| 2531 | exit (42); |
| 2532 | ; |
| 2533 | return 0; |
| 2534 | } |
| 2535 | _ACEOF |
| 2536 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2538 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2539 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2541 | rm -f conftest.er1 |
| 2542 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2544 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2545 | { ac_try='test -z "$ac_c_werror_flag" |
| 2546 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2548 | (eval $ac_try) 2>&5 |
| 2549 | ac_status=$? |
| 2550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2551 | (exit $ac_status); }; } && |
| 2552 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2554 | (eval $ac_try) 2>&5 |
| 2555 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2557 | (exit $ac_status); }; }; then |
| 2558 | break |
| 2559 | else |
| 2560 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2562 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2563 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2565 | done |
| 2566 | rm -f conftest* |
| 2567 | if test -n "$ac_declaration"; then |
| 2568 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2569 | echo $ac_declaration >>confdefs.h |
| 2570 | echo '#endif' >>confdefs.h |
| 2571 | fi |
| 2572 | |
| 2573 | else |
| 2574 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2576 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2577 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2579 | ac_ext=c |
| 2580 | ac_cpp='$CPP $CPPFLAGS' |
| 2581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2584 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2585 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 2586 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 2587 | if test "${lt_cv_path_SED+set}" = set; then |
| 2588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2589 | else |
| 2590 | # Loop through the user's path and test for sed and gsed. |
| 2591 | # Then use that list of sed's as ones to test for truncation. |
| 2592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2593 | for as_dir in $PATH |
| 2594 | do |
| 2595 | IFS=$as_save_IFS |
| 2596 | test -z "$as_dir" && as_dir=. |
| 2597 | for lt_ac_prog in sed gsed; do |
| 2598 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2599 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 2600 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 2601 | fi |
| 2602 | done |
| 2603 | done |
| 2604 | done |
| 2605 | lt_ac_max=0 |
| 2606 | lt_ac_count=0 |
| 2607 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 2608 | # along with /bin/sed that truncates output. |
| 2609 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 2610 | test ! -f $lt_ac_sed && break |
| 2611 | cat /dev/null > conftest.in |
| 2612 | lt_ac_count=0 |
| 2613 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 2614 | # Check for GNU sed and select it if it is found. |
| 2615 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 2616 | lt_cv_path_SED=$lt_ac_sed |
| 2617 | break |
| 2618 | fi |
| 2619 | while true; do |
| 2620 | cat conftest.in conftest.in >conftest.tmp |
| 2621 | mv conftest.tmp conftest.in |
| 2622 | cp conftest.in conftest.nl |
| 2623 | echo >>conftest.nl |
| 2624 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 2625 | cmp -s conftest.out conftest.nl || break |
| 2626 | # 10000 chars as input seems more than enough |
| 2627 | test $lt_ac_count -gt 10 && break |
| 2628 | lt_ac_count=`expr $lt_ac_count + 1` |
| 2629 | if test $lt_ac_count -gt $lt_ac_max; then |
| 2630 | lt_ac_max=$lt_ac_count |
| 2631 | lt_cv_path_SED=$lt_ac_sed |
| 2632 | fi |
| 2633 | done |
| 2634 | done |
| 2635 | SED=$lt_cv_path_SED |
| 2636 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2637 | fi |
| 2638 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2639 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 2640 | echo "${ECHO_T}$SED" >&6 |
| 2641 | |
| 2642 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2643 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2644 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2646 | else |
| 2647 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2648 | then ac_cv_prog_egrep='grep -E' |
| 2649 | else ac_cv_prog_egrep='egrep' |
| 2650 | fi |
| 2651 | fi |
| 2652 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2653 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2654 | EGREP=$ac_cv_prog_egrep |
| 2655 | |
| 2656 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2657 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2658 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 2659 | if test "${with_gnu_ld+set}" = set; then |
| 2660 | withval="$with_gnu_ld" |
| 2661 | test "$withval" = no || with_gnu_ld=yes |
| 2662 | else |
| 2663 | with_gnu_ld=no |
| 2664 | fi; |
| 2665 | ac_prog=ld |
| 2666 | if test "$GCC" = yes; then |
| 2667 | # Check if gcc -print-prog-name=ld gives a path. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2668 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 2669 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2670 | case $host in |
| 2671 | *-*-mingw*) |
| 2672 | # gcc leaves a trailing carriage return which upsets mingw |
| 2673 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 2674 | *) |
| 2675 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 2676 | esac |
| 2677 | case $ac_prog in |
| 2678 | # Accept absolute paths. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2679 | [\\/]* | ?:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2680 | re_direlt='/[^/][^/]*/\.\./' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2681 | # Canonicalize the pathname of ld |
| 2682 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2683 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2684 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2685 | done |
| 2686 | test -z "$LD" && LD="$ac_prog" |
| 2687 | ;; |
| 2688 | "") |
| 2689 | # If it fails, then pretend we aren't using GCC. |
| 2690 | ac_prog=ld |
| 2691 | ;; |
| 2692 | *) |
| 2693 | # If it is relative, then search for the first ld in PATH. |
| 2694 | with_gnu_ld=unknown |
| 2695 | ;; |
| 2696 | esac |
| 2697 | elif test "$with_gnu_ld" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2698 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2699 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 2700 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2701 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2702 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 2703 | fi |
| 2704 | if test "${lt_cv_path_LD+set}" = set; then |
| 2705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2706 | else |
| 2707 | if test -z "$LD"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2708 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2709 | for ac_dir in $PATH; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2710 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2711 | test -z "$ac_dir" && ac_dir=. |
| 2712 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2713 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 2714 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 2715 | # but apparently some GNU ld's only accept -v. |
| 2716 | # Break only if it was the GNU/non-GNU ld that we prefer. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2717 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 2718 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2719 | test "$with_gnu_ld" != no && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2720 | ;; |
| 2721 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2722 | test "$with_gnu_ld" != yes && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2723 | ;; |
| 2724 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2725 | fi |
| 2726 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2727 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2728 | else |
| 2729 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2730 | fi |
| 2731 | fi |
| 2732 | |
| 2733 | LD="$lt_cv_path_LD" |
| 2734 | if test -n "$LD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2735 | echo "$as_me:$LINENO: result: $LD" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2736 | echo "${ECHO_T}$LD" >&6 |
| 2737 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2738 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2739 | echo "${ECHO_T}no" >&6 |
| 2740 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2741 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2742 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 2743 | { (exit 1); exit 1; }; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2744 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2745 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 2746 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 2747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2748 | else |
| 2749 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2750 | case `$LD -v 2>&1 </dev/null` in |
| 2751 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2752 | lt_cv_prog_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2753 | ;; |
| 2754 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2755 | lt_cv_prog_gnu_ld=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2756 | ;; |
| 2757 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2758 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2759 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2760 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 2761 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 2762 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2763 | |
| 2764 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2765 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 2766 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 2767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2768 | else |
| 2769 | lt_cv_ld_reload_flag='-r' |
| 2770 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2771 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2772 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 2773 | reload_flag=$lt_cv_ld_reload_flag |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2774 | case $reload_flag in |
| 2775 | "" | " "*) ;; |
| 2776 | *) reload_flag=" $reload_flag" ;; |
| 2777 | esac |
| 2778 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2779 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2780 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2781 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 2782 | if test "${lt_cv_path_NM+set}" = set; then |
| 2783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2784 | else |
| 2785 | if test -n "$NM"; then |
| 2786 | # Let the user override the test. |
| 2787 | lt_cv_path_NM="$NM" |
| 2788 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2789 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2790 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2791 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2792 | test -z "$ac_dir" && ac_dir=. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2793 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 2794 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2795 | # Check to see if the nm accepts a BSD-compat flag. |
| 2796 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2797 | # nm: unknown option "B" ignored |
| 2798 | # Tru64's nm complains that /dev/null is an invalid object file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2799 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 2800 | */dev/null* | *'Invalid file or object type'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2801 | lt_cv_path_NM="$tmp_nm -B" |
| 2802 | break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2803 | ;; |
| 2804 | *) |
| 2805 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 2806 | */dev/null*) |
| 2807 | lt_cv_path_NM="$tmp_nm -p" |
| 2808 | break |
| 2809 | ;; |
| 2810 | *) |
| 2811 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2812 | continue # so that we can try to find one that supports BSD flags |
| 2813 | ;; |
| 2814 | esac |
| 2815 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2816 | fi |
| 2817 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2818 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2819 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 2820 | fi |
| 2821 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2822 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 2823 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2824 | NM="$lt_cv_path_NM" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2825 | |
| 2826 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2827 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2828 | LN_S=$as_ln_s |
| 2829 | if test "$LN_S" = "ln -s"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2830 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2831 | echo "${ECHO_T}yes" >&6 |
| 2832 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2833 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2834 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 2835 | fi |
| 2836 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2837 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 2838 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2839 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 2840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2841 | else |
| 2842 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 2843 | lt_cv_file_magic_test_file= |
| 2844 | lt_cv_deplibs_check_method='unknown' |
| 2845 | # Need to set the preceding variable on all platforms that support |
| 2846 | # interlibrary dependencies. |
| 2847 | # 'none' -- dependencies not supported. |
| 2848 | # `unknown' -- same as none, but documents that we really don't know. |
| 2849 | # 'pass_all' -- all dependencies passed with no checks. |
| 2850 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2851 | # 'file_magic [[regex]]' -- check by looking for files in library path |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2852 | # which responds to the $file_magic_cmd with a given extended regex. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2853 | # If you have `file' or equivalent on your system and you're not sure |
| 2854 | # whether `pass_all' will *always* work, you probably want this one. |
| 2855 | |
| 2856 | case $host_os in |
| 2857 | aix4* | aix5*) |
| 2858 | lt_cv_deplibs_check_method=pass_all |
| 2859 | ;; |
| 2860 | |
| 2861 | beos*) |
| 2862 | lt_cv_deplibs_check_method=pass_all |
| 2863 | ;; |
| 2864 | |
| 2865 | bsdi4*) |
| 2866 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 2867 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2868 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 2869 | ;; |
| 2870 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2871 | cygwin*) |
| 2872 | # win32_libid is a shell function defined in ltmain.sh |
| 2873 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 2874 | lt_cv_file_magic_cmd='win32_libid' |
| 2875 | ;; |
| 2876 | |
| 2877 | mingw* | pw32*) |
| 2878 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 2879 | # win32_libid shell function, so use a weaker test based on 'objdump'. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2880 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 2881 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 2882 | ;; |
| 2883 | |
| 2884 | darwin* | rhapsody*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2885 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2886 | ;; |
| 2887 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2888 | freebsd* | kfreebsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2889 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2890 | case $host_cpu in |
| 2891 | i*86 ) |
| 2892 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 2893 | # Let's accept both of them until this is cleared up. |
| 2894 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 2895 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2896 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2897 | ;; |
| 2898 | esac |
| 2899 | else |
| 2900 | lt_cv_deplibs_check_method=pass_all |
| 2901 | fi |
| 2902 | ;; |
| 2903 | |
| 2904 | gnu*) |
| 2905 | lt_cv_deplibs_check_method=pass_all |
| 2906 | ;; |
| 2907 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2908 | hpux10.20* | hpux11*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2909 | lt_cv_file_magic_cmd=/usr/bin/file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2910 | case "$host_cpu" in |
| 2911 | ia64*) |
| 2912 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 2913 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 2914 | ;; |
| 2915 | hppa*64*) |
| 2916 | 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]' |
| 2917 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 2918 | ;; |
| 2919 | *) |
| 2920 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 2921 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 2922 | ;; |
| 2923 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2924 | ;; |
| 2925 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2926 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2927 | case $LD in |
| 2928 | *-32|*"-32 ") libmagic=32-bit;; |
| 2929 | *-n32|*"-n32 ") libmagic=N32;; |
| 2930 | *-64|*"-64 ") libmagic=64-bit;; |
| 2931 | *) libmagic=never-match;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2932 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2933 | lt_cv_deplibs_check_method=pass_all |
| 2934 | ;; |
| 2935 | |
| 2936 | # This must be Linux ELF. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2937 | linux*) |
| 2938 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2939 | ;; |
| 2940 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2941 | netbsd* | knetbsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2942 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2943 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2944 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2945 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2946 | fi |
| 2947 | ;; |
| 2948 | |
| 2949 | newos6*) |
| 2950 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 2951 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2952 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 2953 | ;; |
| 2954 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2955 | nto-qnx*) |
| 2956 | lt_cv_deplibs_check_method=unknown |
| 2957 | ;; |
| 2958 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2959 | openbsd*) |
| 2960 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2961 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2962 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 2963 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 2964 | else |
| 2965 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 2966 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2967 | ;; |
| 2968 | |
| 2969 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2970 | lt_cv_deplibs_check_method=pass_all |
| 2971 | ;; |
| 2972 | |
| 2973 | sco3.2v5*) |
| 2974 | lt_cv_deplibs_check_method=pass_all |
| 2975 | ;; |
| 2976 | |
| 2977 | solaris*) |
| 2978 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2979 | ;; |
| 2980 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2981 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2982 | case $host_vendor in |
| 2983 | motorola) |
| 2984 | 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]' |
| 2985 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 2986 | ;; |
| 2987 | ncr) |
| 2988 | lt_cv_deplibs_check_method=pass_all |
| 2989 | ;; |
| 2990 | sequent) |
| 2991 | lt_cv_file_magic_cmd='/bin/file' |
| 2992 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 2993 | ;; |
| 2994 | sni) |
| 2995 | lt_cv_file_magic_cmd='/bin/file' |
| 2996 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 2997 | lt_cv_file_magic_test_file=/lib/libc.so |
| 2998 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2999 | siemens) |
| 3000 | lt_cv_deplibs_check_method=pass_all |
| 3001 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3002 | esac |
| 3003 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3004 | |
| 3005 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 3006 | lt_cv_deplibs_check_method=pass_all |
| 3007 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3008 | esac |
| 3009 | |
| 3010 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3011 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3012 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3013 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3014 | deplibs_check_method=$lt_cv_deplibs_check_method |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3015 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3016 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3017 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3018 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3019 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3020 | # If no C compiler was specified, use CC. |
| 3021 | LTCC=${LTCC-"$CC"} |
| 3022 | |
| 3023 | # Allow CC to be a program name with arguments. |
| 3024 | compiler=$CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3025 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3026 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3027 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3028 | if test "${enable_libtool_lock+set}" = set; then |
| 3029 | enableval="$enable_libtool_lock" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3030 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3031 | fi; |
| 3032 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3033 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3034 | # Some flags need to be propagated to the compiler or linker for good |
| 3035 | # libtool support. |
| 3036 | case $host in |
| 3037 | ia64-*-hpux*) |
| 3038 | # Find out which ABI we are using. |
| 3039 | echo 'int i;' > conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3041 | (eval $ac_compile) 2>&5 |
| 3042 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3044 | (exit $ac_status); }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3045 | case `/usr/bin/file conftest.$ac_objext` in |
| 3046 | *ELF-32*) |
| 3047 | HPUX_IA64_MODE="32" |
| 3048 | ;; |
| 3049 | *ELF-64*) |
| 3050 | HPUX_IA64_MODE="64" |
| 3051 | ;; |
| 3052 | esac |
| 3053 | fi |
| 3054 | rm -rf conftest* |
| 3055 | ;; |
| 3056 | *-*-irix6*) |
| 3057 | # Find out which ABI we are using. |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 3058 | echo '#line 3058 "configure"' > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3060 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3061 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3063 | (exit $ac_status); }; then |
| 3064 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 3065 | case `/usr/bin/file conftest.$ac_objext` in |
| 3066 | *32-bit*) |
| 3067 | LD="${LD-ld} -melf32bsmip" |
| 3068 | ;; |
| 3069 | *N32*) |
| 3070 | LD="${LD-ld} -melf32bmipn32" |
| 3071 | ;; |
| 3072 | *64-bit*) |
| 3073 | LD="${LD-ld} -melf64bmip" |
| 3074 | ;; |
| 3075 | esac |
| 3076 | else |
| 3077 | case `/usr/bin/file conftest.$ac_objext` in |
| 3078 | *32-bit*) |
| 3079 | LD="${LD-ld} -32" |
| 3080 | ;; |
| 3081 | *N32*) |
| 3082 | LD="${LD-ld} -n32" |
| 3083 | ;; |
| 3084 | *64-bit*) |
| 3085 | LD="${LD-ld} -64" |
| 3086 | ;; |
| 3087 | esac |
| 3088 | fi |
| 3089 | fi |
| 3090 | rm -rf conftest* |
| 3091 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3092 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3093 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 3094 | # Find out which ABI we are using. |
| 3095 | echo 'int i;' > conftest.$ac_ext |
| 3096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3097 | (eval $ac_compile) 2>&5 |
| 3098 | ac_status=$? |
| 3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3100 | (exit $ac_status); }; then |
| 3101 | case "`/usr/bin/file conftest.o`" in |
| 3102 | *32-bit*) |
| 3103 | case $host in |
| 3104 | x86_64-*linux*) |
| 3105 | LD="${LD-ld} -m elf_i386" |
| 3106 | ;; |
| 3107 | ppc64-*linux*|powerpc64-*linux*) |
| 3108 | LD="${LD-ld} -m elf32ppclinux" |
| 3109 | ;; |
| 3110 | s390x-*linux*) |
| 3111 | LD="${LD-ld} -m elf_s390" |
| 3112 | ;; |
| 3113 | sparc64-*linux*) |
| 3114 | LD="${LD-ld} -m elf32_sparc" |
| 3115 | ;; |
| 3116 | esac |
| 3117 | ;; |
| 3118 | *64-bit*) |
| 3119 | case $host in |
| 3120 | x86_64-*linux*) |
| 3121 | LD="${LD-ld} -m elf_x86_64" |
| 3122 | ;; |
| 3123 | ppc*-*linux*|powerpc*-*linux*) |
| 3124 | LD="${LD-ld} -m elf64ppc" |
| 3125 | ;; |
| 3126 | s390*-*linux*) |
| 3127 | LD="${LD-ld} -m elf64_s390" |
| 3128 | ;; |
| 3129 | sparc*-*linux*) |
| 3130 | LD="${LD-ld} -m elf64_sparc" |
| 3131 | ;; |
| 3132 | esac |
| 3133 | ;; |
| 3134 | esac |
| 3135 | fi |
| 3136 | rm -rf conftest* |
| 3137 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3138 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3139 | *-*-sco3.2v5*) |
| 3140 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 3141 | SAVE_CFLAGS="$CFLAGS" |
| 3142 | CFLAGS="$CFLAGS -belf" |
| 3143 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 3144 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 3145 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 3146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3147 | else |
| 3148 | ac_ext=c |
| 3149 | ac_cpp='$CPP $CPPFLAGS' |
| 3150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3153 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3154 | cat >conftest.$ac_ext <<_ACEOF |
| 3155 | /* confdefs.h. */ |
| 3156 | _ACEOF |
| 3157 | cat confdefs.h >>conftest.$ac_ext |
| 3158 | cat >>conftest.$ac_ext <<_ACEOF |
| 3159 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3160 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3161 | int |
| 3162 | main () |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3163 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3164 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3165 | ; |
| 3166 | return 0; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3167 | } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3168 | _ACEOF |
| 3169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3171 | (eval $ac_link) 2>conftest.er1 |
| 3172 | ac_status=$? |
| 3173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3174 | rm -f conftest.er1 |
| 3175 | cat conftest.err >&5 |
| 3176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3177 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3178 | { ac_try='test -z "$ac_c_werror_flag" |
| 3179 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3181 | (eval $ac_try) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3182 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3184 | (exit $ac_status); }; } && |
| 3185 | { ac_try='test -s conftest$ac_exeext' |
| 3186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3187 | (eval $ac_try) 2>&5 |
| 3188 | ac_status=$? |
| 3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3190 | (exit $ac_status); }; }; then |
| 3191 | lt_cv_cc_needs_belf=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3192 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3193 | echo "$as_me: failed program was:" >&5 |
| 3194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3195 | |
| 3196 | lt_cv_cc_needs_belf=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3197 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3198 | rm -f conftest.err conftest.$ac_objext \ |
| 3199 | conftest$ac_exeext conftest.$ac_ext |
| 3200 | ac_ext=c |
| 3201 | ac_cpp='$CPP $CPPFLAGS' |
| 3202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3205 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3206 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3207 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 3208 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 3209 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 3210 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 3211 | CFLAGS="$SAVE_CFLAGS" |
| 3212 | fi |
| 3213 | ;; |
| 3214 | |
| 3215 | esac |
| 3216 | |
| 3217 | need_locks="$enable_libtool_lock" |
| 3218 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3219 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3220 | ac_ext=c |
| 3221 | ac_cpp='$CPP $CPPFLAGS' |
| 3222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3225 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3226 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3227 | # On Suns, sometimes $CPP names a directory. |
| 3228 | if test -n "$CPP" && test -d "$CPP"; then |
| 3229 | CPP= |
| 3230 | fi |
| 3231 | if test -z "$CPP"; then |
| 3232 | if test "${ac_cv_prog_CPP+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3234 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3235 | # Double quotes because CPP needs to be expanded |
| 3236 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3237 | do |
| 3238 | ac_preproc_ok=false |
| 3239 | for ac_c_preproc_warn_flag in '' yes |
| 3240 | do |
| 3241 | # Use a header file that comes with gcc, so configuring glibc |
| 3242 | # with a fresh cross-compiler works. |
| 3243 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3244 | # <limits.h> exists even on freestanding compilers. |
| 3245 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3246 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3247 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3248 | /* confdefs.h. */ |
| 3249 | _ACEOF |
| 3250 | cat confdefs.h >>conftest.$ac_ext |
| 3251 | cat >>conftest.$ac_ext <<_ACEOF |
| 3252 | /* end confdefs.h. */ |
| 3253 | #ifdef __STDC__ |
| 3254 | # include <limits.h> |
| 3255 | #else |
| 3256 | # include <assert.h> |
| 3257 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3258 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3259 | _ACEOF |
| 3260 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3261 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3262 | ac_status=$? |
| 3263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3264 | rm -f conftest.er1 |
| 3265 | cat conftest.err >&5 |
| 3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3267 | (exit $ac_status); } >/dev/null; then |
| 3268 | if test -s conftest.err; then |
| 3269 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3270 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3271 | else |
| 3272 | ac_cpp_err= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3273 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3274 | else |
| 3275 | ac_cpp_err=yes |
| 3276 | fi |
| 3277 | if test -z "$ac_cpp_err"; then |
| 3278 | : |
| 3279 | else |
| 3280 | echo "$as_me: failed program was:" >&5 |
| 3281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3282 | |
| 3283 | # Broken: fails on valid input. |
| 3284 | continue |
| 3285 | fi |
| 3286 | rm -f conftest.err conftest.$ac_ext |
| 3287 | |
| 3288 | # OK, works on sane cases. Now check whether non-existent headers |
| 3289 | # can be detected and how. |
| 3290 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3291 | /* confdefs.h. */ |
| 3292 | _ACEOF |
| 3293 | cat confdefs.h >>conftest.$ac_ext |
| 3294 | cat >>conftest.$ac_ext <<_ACEOF |
| 3295 | /* end confdefs.h. */ |
| 3296 | #include <ac_nonexistent.h> |
| 3297 | _ACEOF |
| 3298 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3299 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3300 | ac_status=$? |
| 3301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3302 | rm -f conftest.er1 |
| 3303 | cat conftest.err >&5 |
| 3304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3305 | (exit $ac_status); } >/dev/null; then |
| 3306 | if test -s conftest.err; then |
| 3307 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3308 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3309 | else |
| 3310 | ac_cpp_err= |
| 3311 | fi |
| 3312 | else |
| 3313 | ac_cpp_err=yes |
| 3314 | fi |
| 3315 | if test -z "$ac_cpp_err"; then |
| 3316 | # Broken: success on invalid input. |
| 3317 | continue |
| 3318 | else |
| 3319 | echo "$as_me: failed program was:" >&5 |
| 3320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3321 | |
| 3322 | # Passes both tests. |
| 3323 | ac_preproc_ok=: |
| 3324 | break |
| 3325 | fi |
| 3326 | rm -f conftest.err conftest.$ac_ext |
| 3327 | |
| 3328 | done |
| 3329 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3330 | rm -f conftest.err conftest.$ac_ext |
| 3331 | if $ac_preproc_ok; then |
| 3332 | break |
| 3333 | fi |
| 3334 | |
| 3335 | done |
| 3336 | ac_cv_prog_CPP=$CPP |
| 3337 | |
| 3338 | fi |
| 3339 | CPP=$ac_cv_prog_CPP |
| 3340 | else |
| 3341 | ac_cv_prog_CPP=$CPP |
| 3342 | fi |
| 3343 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3344 | echo "${ECHO_T}$CPP" >&6 |
| 3345 | ac_preproc_ok=false |
| 3346 | for ac_c_preproc_warn_flag in '' yes |
| 3347 | do |
| 3348 | # Use a header file that comes with gcc, so configuring glibc |
| 3349 | # with a fresh cross-compiler works. |
| 3350 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3351 | # <limits.h> exists even on freestanding compilers. |
| 3352 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3353 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3354 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3355 | /* confdefs.h. */ |
| 3356 | _ACEOF |
| 3357 | cat confdefs.h >>conftest.$ac_ext |
| 3358 | cat >>conftest.$ac_ext <<_ACEOF |
| 3359 | /* end confdefs.h. */ |
| 3360 | #ifdef __STDC__ |
| 3361 | # include <limits.h> |
| 3362 | #else |
| 3363 | # include <assert.h> |
| 3364 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3365 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3366 | _ACEOF |
| 3367 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3368 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3369 | ac_status=$? |
| 3370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3371 | rm -f conftest.er1 |
| 3372 | cat conftest.err >&5 |
| 3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3374 | (exit $ac_status); } >/dev/null; then |
| 3375 | if test -s conftest.err; then |
| 3376 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3377 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3378 | else |
| 3379 | ac_cpp_err= |
| 3380 | fi |
| 3381 | else |
| 3382 | ac_cpp_err=yes |
| 3383 | fi |
| 3384 | if test -z "$ac_cpp_err"; then |
| 3385 | : |
| 3386 | else |
| 3387 | echo "$as_me: failed program was:" >&5 |
| 3388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3389 | |
| 3390 | # Broken: fails on valid input. |
| 3391 | continue |
| 3392 | fi |
| 3393 | rm -f conftest.err conftest.$ac_ext |
| 3394 | |
| 3395 | # OK, works on sane cases. Now check whether non-existent headers |
| 3396 | # can be detected and how. |
| 3397 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3398 | /* confdefs.h. */ |
| 3399 | _ACEOF |
| 3400 | cat confdefs.h >>conftest.$ac_ext |
| 3401 | cat >>conftest.$ac_ext <<_ACEOF |
| 3402 | /* end confdefs.h. */ |
| 3403 | #include <ac_nonexistent.h> |
| 3404 | _ACEOF |
| 3405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3406 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3407 | ac_status=$? |
| 3408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3409 | rm -f conftest.er1 |
| 3410 | cat conftest.err >&5 |
| 3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3412 | (exit $ac_status); } >/dev/null; then |
| 3413 | if test -s conftest.err; then |
| 3414 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3416 | else |
| 3417 | ac_cpp_err= |
| 3418 | fi |
| 3419 | else |
| 3420 | ac_cpp_err=yes |
| 3421 | fi |
| 3422 | if test -z "$ac_cpp_err"; then |
| 3423 | # Broken: success on invalid input. |
| 3424 | continue |
| 3425 | else |
| 3426 | echo "$as_me: failed program was:" >&5 |
| 3427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3428 | |
| 3429 | # Passes both tests. |
| 3430 | ac_preproc_ok=: |
| 3431 | break |
| 3432 | fi |
| 3433 | rm -f conftest.err conftest.$ac_ext |
| 3434 | |
| 3435 | done |
| 3436 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3437 | rm -f conftest.err conftest.$ac_ext |
| 3438 | if $ac_preproc_ok; then |
| 3439 | : |
| 3440 | else |
| 3441 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3442 | See \`config.log' for more details." >&5 |
| 3443 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3444 | See \`config.log' for more details." >&2;} |
| 3445 | { (exit 1); exit 1; }; } |
| 3446 | fi |
| 3447 | |
| 3448 | ac_ext=c |
| 3449 | ac_cpp='$CPP $CPPFLAGS' |
| 3450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3453 | |
| 3454 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3455 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3456 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3457 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3459 | else |
| 3460 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3461 | /* confdefs.h. */ |
| 3462 | _ACEOF |
| 3463 | cat confdefs.h >>conftest.$ac_ext |
| 3464 | cat >>conftest.$ac_ext <<_ACEOF |
| 3465 | /* end confdefs.h. */ |
| 3466 | #include <stdlib.h> |
| 3467 | #include <stdarg.h> |
| 3468 | #include <string.h> |
| 3469 | #include <float.h> |
| 3470 | |
| 3471 | int |
| 3472 | main () |
| 3473 | { |
| 3474 | |
| 3475 | ; |
| 3476 | return 0; |
| 3477 | } |
| 3478 | _ACEOF |
| 3479 | rm -f conftest.$ac_objext |
| 3480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3481 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3482 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3484 | rm -f conftest.er1 |
| 3485 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3487 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3488 | { ac_try='test -z "$ac_c_werror_flag" |
| 3489 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3491 | (eval $ac_try) 2>&5 |
| 3492 | ac_status=$? |
| 3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3494 | (exit $ac_status); }; } && |
| 3495 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3497 | (eval $ac_try) 2>&5 |
| 3498 | ac_status=$? |
| 3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3500 | (exit $ac_status); }; }; then |
| 3501 | ac_cv_header_stdc=yes |
| 3502 | else |
| 3503 | echo "$as_me: failed program was:" >&5 |
| 3504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3505 | |
| 3506 | ac_cv_header_stdc=no |
| 3507 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3509 | |
| 3510 | if test $ac_cv_header_stdc = yes; then |
| 3511 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3512 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3513 | /* confdefs.h. */ |
| 3514 | _ACEOF |
| 3515 | cat confdefs.h >>conftest.$ac_ext |
| 3516 | cat >>conftest.$ac_ext <<_ACEOF |
| 3517 | /* end confdefs.h. */ |
| 3518 | #include <string.h> |
| 3519 | |
| 3520 | _ACEOF |
| 3521 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3522 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3523 | : |
| 3524 | else |
| 3525 | ac_cv_header_stdc=no |
| 3526 | fi |
| 3527 | rm -f conftest* |
| 3528 | |
| 3529 | fi |
| 3530 | |
| 3531 | if test $ac_cv_header_stdc = yes; then |
| 3532 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3533 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3534 | /* confdefs.h. */ |
| 3535 | _ACEOF |
| 3536 | cat confdefs.h >>conftest.$ac_ext |
| 3537 | cat >>conftest.$ac_ext <<_ACEOF |
| 3538 | /* end confdefs.h. */ |
| 3539 | #include <stdlib.h> |
| 3540 | |
| 3541 | _ACEOF |
| 3542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3543 | $EGREP "free" >/dev/null 2>&1; then |
| 3544 | : |
| 3545 | else |
| 3546 | ac_cv_header_stdc=no |
| 3547 | fi |
| 3548 | rm -f conftest* |
| 3549 | |
| 3550 | fi |
| 3551 | |
| 3552 | if test $ac_cv_header_stdc = yes; then |
| 3553 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3554 | if test "$cross_compiling" = yes; then |
| 3555 | : |
| 3556 | else |
| 3557 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3558 | /* confdefs.h. */ |
| 3559 | _ACEOF |
| 3560 | cat confdefs.h >>conftest.$ac_ext |
| 3561 | cat >>conftest.$ac_ext <<_ACEOF |
| 3562 | /* end confdefs.h. */ |
| 3563 | #include <ctype.h> |
| 3564 | #if ((' ' & 0x0FF) == 0x020) |
| 3565 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3566 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3567 | #else |
| 3568 | # define ISLOWER(c) \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3569 | (('a' <= (c) && (c) <= 'i') \ |
| 3570 | || ('j' <= (c) && (c) <= 'r') \ |
| 3571 | || ('s' <= (c) && (c) <= 'z')) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3572 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3573 | #endif |
| 3574 | |
| 3575 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3576 | int |
| 3577 | main () |
| 3578 | { |
| 3579 | int i; |
| 3580 | for (i = 0; i < 256; i++) |
| 3581 | if (XOR (islower (i), ISLOWER (i)) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3582 | || toupper (i) != TOUPPER (i)) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3583 | exit(2); |
| 3584 | exit (0); |
| 3585 | } |
| 3586 | _ACEOF |
| 3587 | rm -f conftest$ac_exeext |
| 3588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3589 | (eval $ac_link) 2>&5 |
| 3590 | ac_status=$? |
| 3591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3592 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3594 | (eval $ac_try) 2>&5 |
| 3595 | ac_status=$? |
| 3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3597 | (exit $ac_status); }; }; then |
| 3598 | : |
| 3599 | else |
| 3600 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3601 | echo "$as_me: failed program was:" >&5 |
| 3602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3603 | |
| 3604 | ( exit $ac_status ) |
| 3605 | ac_cv_header_stdc=no |
| 3606 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3607 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3608 | fi |
| 3609 | fi |
| 3610 | fi |
| 3611 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3612 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3613 | if test $ac_cv_header_stdc = yes; then |
| 3614 | |
| 3615 | cat >>confdefs.h <<\_ACEOF |
| 3616 | #define STDC_HEADERS 1 |
| 3617 | _ACEOF |
| 3618 | |
| 3619 | fi |
| 3620 | |
| 3621 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3622 | |
| 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | |
| 3630 | |
| 3631 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3632 | inttypes.h stdint.h unistd.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3633 | do |
| 3634 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3639 | else |
| 3640 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3641 | /* confdefs.h. */ |
| 3642 | _ACEOF |
| 3643 | cat confdefs.h >>conftest.$ac_ext |
| 3644 | cat >>conftest.$ac_ext <<_ACEOF |
| 3645 | /* end confdefs.h. */ |
| 3646 | $ac_includes_default |
| 3647 | |
| 3648 | #include <$ac_header> |
| 3649 | _ACEOF |
| 3650 | rm -f conftest.$ac_objext |
| 3651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3652 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3653 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3655 | rm -f conftest.er1 |
| 3656 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3658 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3659 | { ac_try='test -z "$ac_c_werror_flag" |
| 3660 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3662 | (eval $ac_try) 2>&5 |
| 3663 | ac_status=$? |
| 3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3665 | (exit $ac_status); }; } && |
| 3666 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3668 | (eval $ac_try) 2>&5 |
| 3669 | ac_status=$? |
| 3670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3671 | (exit $ac_status); }; }; then |
| 3672 | eval "$as_ac_Header=yes" |
| 3673 | else |
| 3674 | echo "$as_me: failed program was:" >&5 |
| 3675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3676 | |
| 3677 | eval "$as_ac_Header=no" |
| 3678 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3680 | fi |
| 3681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3682 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3684 | cat >>confdefs.h <<_ACEOF |
| 3685 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3686 | _ACEOF |
| 3687 | |
| 3688 | fi |
| 3689 | |
| 3690 | done |
| 3691 | |
| 3692 | |
| 3693 | |
| 3694 | for ac_header in dlfcn.h |
| 3695 | do |
| 3696 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3702 | fi |
| 3703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3704 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3705 | else |
| 3706 | # Is the header compilable? |
| 3707 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3708 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3709 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3710 | /* confdefs.h. */ |
| 3711 | _ACEOF |
| 3712 | cat confdefs.h >>conftest.$ac_ext |
| 3713 | cat >>conftest.$ac_ext <<_ACEOF |
| 3714 | /* end confdefs.h. */ |
| 3715 | $ac_includes_default |
| 3716 | #include <$ac_header> |
| 3717 | _ACEOF |
| 3718 | rm -f conftest.$ac_objext |
| 3719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3720 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3721 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3723 | rm -f conftest.er1 |
| 3724 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3726 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3727 | { ac_try='test -z "$ac_c_werror_flag" |
| 3728 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3730 | (eval $ac_try) 2>&5 |
| 3731 | ac_status=$? |
| 3732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3733 | (exit $ac_status); }; } && |
| 3734 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3736 | (eval $ac_try) 2>&5 |
| 3737 | ac_status=$? |
| 3738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3739 | (exit $ac_status); }; }; then |
| 3740 | ac_header_compiler=yes |
| 3741 | else |
| 3742 | echo "$as_me: failed program was:" >&5 |
| 3743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3744 | |
| 3745 | ac_header_compiler=no |
| 3746 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3748 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3749 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3750 | |
| 3751 | # Is the header present? |
| 3752 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3753 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3754 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3755 | /* confdefs.h. */ |
| 3756 | _ACEOF |
| 3757 | cat confdefs.h >>conftest.$ac_ext |
| 3758 | cat >>conftest.$ac_ext <<_ACEOF |
| 3759 | /* end confdefs.h. */ |
| 3760 | #include <$ac_header> |
| 3761 | _ACEOF |
| 3762 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3763 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3764 | ac_status=$? |
| 3765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3766 | rm -f conftest.er1 |
| 3767 | cat conftest.err >&5 |
| 3768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3769 | (exit $ac_status); } >/dev/null; then |
| 3770 | if test -s conftest.err; then |
| 3771 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3772 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3773 | else |
| 3774 | ac_cpp_err= |
| 3775 | fi |
| 3776 | else |
| 3777 | ac_cpp_err=yes |
| 3778 | fi |
| 3779 | if test -z "$ac_cpp_err"; then |
| 3780 | ac_header_preproc=yes |
| 3781 | else |
| 3782 | echo "$as_me: failed program was:" >&5 |
| 3783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3784 | |
| 3785 | ac_header_preproc=no |
| 3786 | fi |
| 3787 | rm -f conftest.err conftest.$ac_ext |
| 3788 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3789 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3790 | |
| 3791 | # So? What about this header? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3792 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3793 | yes:no: ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3794 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3795 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3796 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3797 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3798 | ac_header_preproc=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3799 | ;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3800 | no:yes:* ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3801 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3802 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3803 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3804 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3805 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3806 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3807 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3808 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3810 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3811 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3812 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3813 | ( |
| 3814 | cat <<\_ASBOX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3815 | ## ------------------------------------------ ## |
| 3816 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3817 | ## ------------------------------------------ ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3818 | _ASBOX |
| 3819 | ) | |
| 3820 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3821 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3822 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3823 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3827 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3828 | eval "$as_ac_Header=\$ac_header_preproc" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3829 | fi |
| 3830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3832 | |
| 3833 | fi |
| 3834 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3835 | cat >>confdefs.h <<_ACEOF |
| 3836 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3837 | _ACEOF |
| 3838 | |
| 3839 | fi |
| 3840 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3841 | done |
| 3842 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3843 | ac_ext=cc |
| 3844 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3848 | if test -n "$ac_tool_prefix"; then |
| 3849 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3850 | do |
| 3851 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3852 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3855 | if test "${ac_cv_prog_CXX+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3857 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3858 | if test -n "$CXX"; then |
| 3859 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3860 | else |
| 3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3862 | for as_dir in $PATH |
| 3863 | do |
| 3864 | IFS=$as_save_IFS |
| 3865 | test -z "$as_dir" && as_dir=. |
| 3866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3868 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3870 | break 2 |
| 3871 | fi |
| 3872 | done |
| 3873 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3874 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3875 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3876 | fi |
| 3877 | CXX=$ac_cv_prog_CXX |
| 3878 | if test -n "$CXX"; then |
| 3879 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3880 | echo "${ECHO_T}$CXX" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3881 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3882 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3883 | echo "${ECHO_T}no" >&6 |
| 3884 | fi |
| 3885 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3886 | test -n "$CXX" && break |
| 3887 | done |
| 3888 | fi |
| 3889 | if test -z "$CXX"; then |
| 3890 | ac_ct_CXX=$CXX |
| 3891 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3892 | do |
| 3893 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3894 | set dummy $ac_prog; ac_word=$2 |
| 3895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3897 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3899 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3900 | if test -n "$ac_ct_CXX"; then |
| 3901 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3902 | else |
| 3903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3904 | for as_dir in $PATH |
| 3905 | do |
| 3906 | IFS=$as_save_IFS |
| 3907 | test -z "$as_dir" && as_dir=. |
| 3908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3910 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3912 | break 2 |
| 3913 | fi |
| 3914 | done |
| 3915 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3916 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3917 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3918 | fi |
| 3919 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3920 | if test -n "$ac_ct_CXX"; then |
| 3921 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3922 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3923 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3924 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3925 | echo "${ECHO_T}no" >&6 |
| 3926 | fi |
| 3927 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3928 | test -n "$ac_ct_CXX" && break |
| 3929 | done |
| 3930 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3931 | |
| 3932 | CXX=$ac_ct_CXX |
| 3933 | fi |
| 3934 | |
| 3935 | |
| 3936 | # Provide some information about the compiler. |
| 3937 | echo "$as_me:$LINENO:" \ |
| 3938 | "checking for C++ compiler version" >&5 |
| 3939 | ac_compiler=`set X $ac_compile; echo $2` |
| 3940 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3941 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3942 | ac_status=$? |
| 3943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3944 | (exit $ac_status); } |
| 3945 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3946 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3947 | ac_status=$? |
| 3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3949 | (exit $ac_status); } |
| 3950 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3951 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3952 | ac_status=$? |
| 3953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3954 | (exit $ac_status); } |
| 3955 | |
| 3956 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3957 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3958 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3960 | else |
| 3961 | cat >conftest.$ac_ext <<_ACEOF |
| 3962 | /* confdefs.h. */ |
| 3963 | _ACEOF |
| 3964 | cat confdefs.h >>conftest.$ac_ext |
| 3965 | cat >>conftest.$ac_ext <<_ACEOF |
| 3966 | /* end confdefs.h. */ |
| 3967 | |
| 3968 | int |
| 3969 | main () |
| 3970 | { |
| 3971 | #ifndef __GNUC__ |
| 3972 | choke me |
| 3973 | #endif |
| 3974 | |
| 3975 | ; |
| 3976 | return 0; |
| 3977 | } |
| 3978 | _ACEOF |
| 3979 | rm -f conftest.$ac_objext |
| 3980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3981 | (eval $ac_compile) 2>conftest.er1 |
| 3982 | ac_status=$? |
| 3983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3984 | rm -f conftest.er1 |
| 3985 | cat conftest.err >&5 |
| 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3987 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3988 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3989 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3991 | (eval $ac_try) 2>&5 |
| 3992 | ac_status=$? |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); }; } && |
| 3995 | { ac_try='test -s conftest.$ac_objext' |
| 3996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3997 | (eval $ac_try) 2>&5 |
| 3998 | ac_status=$? |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); }; }; then |
| 4001 | ac_compiler_gnu=yes |
| 4002 | else |
| 4003 | echo "$as_me: failed program was:" >&5 |
| 4004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4005 | |
| 4006 | ac_compiler_gnu=no |
| 4007 | fi |
| 4008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4009 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4010 | |
| 4011 | fi |
| 4012 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4013 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 4014 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4015 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4016 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4017 | CXXFLAGS="-g" |
| 4018 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4019 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 4020 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4022 | else |
| 4023 | cat >conftest.$ac_ext <<_ACEOF |
| 4024 | /* confdefs.h. */ |
| 4025 | _ACEOF |
| 4026 | cat confdefs.h >>conftest.$ac_ext |
| 4027 | cat >>conftest.$ac_ext <<_ACEOF |
| 4028 | /* end confdefs.h. */ |
| 4029 | |
| 4030 | int |
| 4031 | main () |
| 4032 | { |
| 4033 | |
| 4034 | ; |
| 4035 | return 0; |
| 4036 | } |
| 4037 | _ACEOF |
| 4038 | rm -f conftest.$ac_objext |
| 4039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4040 | (eval $ac_compile) 2>conftest.er1 |
| 4041 | ac_status=$? |
| 4042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4043 | rm -f conftest.er1 |
| 4044 | cat conftest.err >&5 |
| 4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4046 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4047 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4048 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4050 | (eval $ac_try) 2>&5 |
| 4051 | ac_status=$? |
| 4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4053 | (exit $ac_status); }; } && |
| 4054 | { ac_try='test -s conftest.$ac_objext' |
| 4055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4056 | (eval $ac_try) 2>&5 |
| 4057 | ac_status=$? |
| 4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4059 | (exit $ac_status); }; }; then |
| 4060 | ac_cv_prog_cxx_g=yes |
| 4061 | else |
| 4062 | echo "$as_me: failed program was:" >&5 |
| 4063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4064 | |
| 4065 | ac_cv_prog_cxx_g=no |
| 4066 | fi |
| 4067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4068 | fi |
| 4069 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4070 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4071 | if test "$ac_test_CXXFLAGS" = set; then |
| 4072 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4073 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4074 | if test "$GXX" = yes; then |
| 4075 | CXXFLAGS="-g -O2" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4076 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4077 | CXXFLAGS="-g" |
| 4078 | fi |
| 4079 | else |
| 4080 | if test "$GXX" = yes; then |
| 4081 | CXXFLAGS="-O2" |
| 4082 | else |
| 4083 | CXXFLAGS= |
| 4084 | fi |
| 4085 | fi |
| 4086 | for ac_declaration in \ |
| 4087 | '' \ |
| 4088 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4089 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 4090 | 'extern "C" void exit (int) throw ();' \ |
| 4091 | 'extern "C" void exit (int);' \ |
| 4092 | 'void exit (int);' |
| 4093 | do |
| 4094 | cat >conftest.$ac_ext <<_ACEOF |
| 4095 | /* confdefs.h. */ |
| 4096 | _ACEOF |
| 4097 | cat confdefs.h >>conftest.$ac_ext |
| 4098 | cat >>conftest.$ac_ext <<_ACEOF |
| 4099 | /* end confdefs.h. */ |
| 4100 | $ac_declaration |
| 4101 | #include <stdlib.h> |
| 4102 | int |
| 4103 | main () |
| 4104 | { |
| 4105 | exit (42); |
| 4106 | ; |
| 4107 | return 0; |
| 4108 | } |
| 4109 | _ACEOF |
| 4110 | rm -f conftest.$ac_objext |
| 4111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4112 | (eval $ac_compile) 2>conftest.er1 |
| 4113 | ac_status=$? |
| 4114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4115 | rm -f conftest.er1 |
| 4116 | cat conftest.err >&5 |
| 4117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4118 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4119 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4120 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4122 | (eval $ac_try) 2>&5 |
| 4123 | ac_status=$? |
| 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4125 | (exit $ac_status); }; } && |
| 4126 | { ac_try='test -s conftest.$ac_objext' |
| 4127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4128 | (eval $ac_try) 2>&5 |
| 4129 | ac_status=$? |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4131 | (exit $ac_status); }; }; then |
| 4132 | : |
| 4133 | else |
| 4134 | echo "$as_me: failed program was:" >&5 |
| 4135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4136 | |
| 4137 | continue |
| 4138 | fi |
| 4139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4140 | cat >conftest.$ac_ext <<_ACEOF |
| 4141 | /* confdefs.h. */ |
| 4142 | _ACEOF |
| 4143 | cat confdefs.h >>conftest.$ac_ext |
| 4144 | cat >>conftest.$ac_ext <<_ACEOF |
| 4145 | /* end confdefs.h. */ |
| 4146 | $ac_declaration |
| 4147 | int |
| 4148 | main () |
| 4149 | { |
| 4150 | exit (42); |
| 4151 | ; |
| 4152 | return 0; |
| 4153 | } |
| 4154 | _ACEOF |
| 4155 | rm -f conftest.$ac_objext |
| 4156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4157 | (eval $ac_compile) 2>conftest.er1 |
| 4158 | ac_status=$? |
| 4159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4160 | rm -f conftest.er1 |
| 4161 | cat conftest.err >&5 |
| 4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4163 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4164 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4165 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4167 | (eval $ac_try) 2>&5 |
| 4168 | ac_status=$? |
| 4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4170 | (exit $ac_status); }; } && |
| 4171 | { ac_try='test -s conftest.$ac_objext' |
| 4172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4173 | (eval $ac_try) 2>&5 |
| 4174 | ac_status=$? |
| 4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4176 | (exit $ac_status); }; }; then |
| 4177 | break |
| 4178 | else |
| 4179 | echo "$as_me: failed program was:" >&5 |
| 4180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4181 | |
| 4182 | fi |
| 4183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4184 | done |
| 4185 | rm -f conftest* |
| 4186 | if test -n "$ac_declaration"; then |
| 4187 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4188 | echo $ac_declaration >>confdefs.h |
| 4189 | echo '#endif' >>confdefs.h |
| 4190 | fi |
| 4191 | |
| 4192 | ac_ext=cc |
| 4193 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4194 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4195 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4196 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4197 | |
| 4198 | ac_ext=cc |
| 4199 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4200 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4201 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4202 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4203 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4204 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4205 | if test -z "$CXXCPP"; then |
| 4206 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4208 | else |
| 4209 | # Double quotes because CXXCPP needs to be expanded |
| 4210 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4211 | do |
| 4212 | ac_preproc_ok=false |
| 4213 | for ac_cxx_preproc_warn_flag in '' yes |
| 4214 | do |
| 4215 | # Use a header file that comes with gcc, so configuring glibc |
| 4216 | # with a fresh cross-compiler works. |
| 4217 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4218 | # <limits.h> exists even on freestanding compilers. |
| 4219 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4220 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4221 | cat >conftest.$ac_ext <<_ACEOF |
| 4222 | /* confdefs.h. */ |
| 4223 | _ACEOF |
| 4224 | cat confdefs.h >>conftest.$ac_ext |
| 4225 | cat >>conftest.$ac_ext <<_ACEOF |
| 4226 | /* end confdefs.h. */ |
| 4227 | #ifdef __STDC__ |
| 4228 | # include <limits.h> |
| 4229 | #else |
| 4230 | # include <assert.h> |
| 4231 | #endif |
| 4232 | Syntax error |
| 4233 | _ACEOF |
| 4234 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4235 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4236 | ac_status=$? |
| 4237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4238 | rm -f conftest.er1 |
| 4239 | cat conftest.err >&5 |
| 4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4241 | (exit $ac_status); } >/dev/null; then |
| 4242 | if test -s conftest.err; then |
| 4243 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4244 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4245 | else |
| 4246 | ac_cpp_err= |
| 4247 | fi |
| 4248 | else |
| 4249 | ac_cpp_err=yes |
| 4250 | fi |
| 4251 | if test -z "$ac_cpp_err"; then |
| 4252 | : |
| 4253 | else |
| 4254 | echo "$as_me: failed program was:" >&5 |
| 4255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4256 | |
| 4257 | # Broken: fails on valid input. |
| 4258 | continue |
| 4259 | fi |
| 4260 | rm -f conftest.err conftest.$ac_ext |
| 4261 | |
| 4262 | # OK, works on sane cases. Now check whether non-existent headers |
| 4263 | # can be detected and how. |
| 4264 | cat >conftest.$ac_ext <<_ACEOF |
| 4265 | /* confdefs.h. */ |
| 4266 | _ACEOF |
| 4267 | cat confdefs.h >>conftest.$ac_ext |
| 4268 | cat >>conftest.$ac_ext <<_ACEOF |
| 4269 | /* end confdefs.h. */ |
| 4270 | #include <ac_nonexistent.h> |
| 4271 | _ACEOF |
| 4272 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4273 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4274 | ac_status=$? |
| 4275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4276 | rm -f conftest.er1 |
| 4277 | cat conftest.err >&5 |
| 4278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4279 | (exit $ac_status); } >/dev/null; then |
| 4280 | if test -s conftest.err; then |
| 4281 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4282 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4283 | else |
| 4284 | ac_cpp_err= |
| 4285 | fi |
| 4286 | else |
| 4287 | ac_cpp_err=yes |
| 4288 | fi |
| 4289 | if test -z "$ac_cpp_err"; then |
| 4290 | # Broken: success on invalid input. |
| 4291 | continue |
| 4292 | else |
| 4293 | echo "$as_me: failed program was:" >&5 |
| 4294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4295 | |
| 4296 | # Passes both tests. |
| 4297 | ac_preproc_ok=: |
| 4298 | break |
| 4299 | fi |
| 4300 | rm -f conftest.err conftest.$ac_ext |
| 4301 | |
| 4302 | done |
| 4303 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4304 | rm -f conftest.err conftest.$ac_ext |
| 4305 | if $ac_preproc_ok; then |
| 4306 | break |
| 4307 | fi |
| 4308 | |
| 4309 | done |
| 4310 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4311 | |
| 4312 | fi |
| 4313 | CXXCPP=$ac_cv_prog_CXXCPP |
| 4314 | else |
| 4315 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4316 | fi |
| 4317 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4318 | echo "${ECHO_T}$CXXCPP" >&6 |
| 4319 | ac_preproc_ok=false |
| 4320 | for ac_cxx_preproc_warn_flag in '' yes |
| 4321 | do |
| 4322 | # Use a header file that comes with gcc, so configuring glibc |
| 4323 | # with a fresh cross-compiler works. |
| 4324 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4325 | # <limits.h> exists even on freestanding compilers. |
| 4326 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4327 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4328 | cat >conftest.$ac_ext <<_ACEOF |
| 4329 | /* confdefs.h. */ |
| 4330 | _ACEOF |
| 4331 | cat confdefs.h >>conftest.$ac_ext |
| 4332 | cat >>conftest.$ac_ext <<_ACEOF |
| 4333 | /* end confdefs.h. */ |
| 4334 | #ifdef __STDC__ |
| 4335 | # include <limits.h> |
| 4336 | #else |
| 4337 | # include <assert.h> |
| 4338 | #endif |
| 4339 | Syntax error |
| 4340 | _ACEOF |
| 4341 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4342 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4343 | ac_status=$? |
| 4344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4345 | rm -f conftest.er1 |
| 4346 | cat conftest.err >&5 |
| 4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4348 | (exit $ac_status); } >/dev/null; then |
| 4349 | if test -s conftest.err; then |
| 4350 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4351 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4352 | else |
| 4353 | ac_cpp_err= |
| 4354 | fi |
| 4355 | else |
| 4356 | ac_cpp_err=yes |
| 4357 | fi |
| 4358 | if test -z "$ac_cpp_err"; then |
| 4359 | : |
| 4360 | else |
| 4361 | echo "$as_me: failed program was:" >&5 |
| 4362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4363 | |
| 4364 | # Broken: fails on valid input. |
| 4365 | continue |
| 4366 | fi |
| 4367 | rm -f conftest.err conftest.$ac_ext |
| 4368 | |
| 4369 | # OK, works on sane cases. Now check whether non-existent headers |
| 4370 | # can be detected and how. |
| 4371 | cat >conftest.$ac_ext <<_ACEOF |
| 4372 | /* confdefs.h. */ |
| 4373 | _ACEOF |
| 4374 | cat confdefs.h >>conftest.$ac_ext |
| 4375 | cat >>conftest.$ac_ext <<_ACEOF |
| 4376 | /* end confdefs.h. */ |
| 4377 | #include <ac_nonexistent.h> |
| 4378 | _ACEOF |
| 4379 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4380 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4381 | ac_status=$? |
| 4382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4383 | rm -f conftest.er1 |
| 4384 | cat conftest.err >&5 |
| 4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4386 | (exit $ac_status); } >/dev/null; then |
| 4387 | if test -s conftest.err; then |
| 4388 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4389 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4390 | else |
| 4391 | ac_cpp_err= |
| 4392 | fi |
| 4393 | else |
| 4394 | ac_cpp_err=yes |
| 4395 | fi |
| 4396 | if test -z "$ac_cpp_err"; then |
| 4397 | # Broken: success on invalid input. |
| 4398 | continue |
| 4399 | else |
| 4400 | echo "$as_me: failed program was:" >&5 |
| 4401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4402 | |
| 4403 | # Passes both tests. |
| 4404 | ac_preproc_ok=: |
| 4405 | break |
| 4406 | fi |
| 4407 | rm -f conftest.err conftest.$ac_ext |
| 4408 | |
| 4409 | done |
| 4410 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4411 | rm -f conftest.err conftest.$ac_ext |
| 4412 | if $ac_preproc_ok; then |
| 4413 | : |
| 4414 | else |
| 4415 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4416 | See \`config.log' for more details." >&5 |
| 4417 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4418 | See \`config.log' for more details." >&2;} |
| 4419 | { (exit 1); exit 1; }; } |
| 4420 | fi |
| 4421 | |
| 4422 | ac_ext=cc |
| 4423 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4424 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4425 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4426 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4427 | |
| 4428 | |
| 4429 | ac_ext=f |
| 4430 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4431 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4432 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 4433 | if test -n "$ac_tool_prefix"; then |
| 4434 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 4435 | do |
| 4436 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4437 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4438 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4440 | if test "${ac_cv_prog_F77+set}" = set; then |
| 4441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4442 | else |
| 4443 | if test -n "$F77"; then |
| 4444 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 4445 | else |
| 4446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4447 | for as_dir in $PATH |
| 4448 | do |
| 4449 | IFS=$as_save_IFS |
| 4450 | test -z "$as_dir" && as_dir=. |
| 4451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4453 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 4454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4455 | break 2 |
| 4456 | fi |
| 4457 | done |
| 4458 | done |
| 4459 | |
| 4460 | fi |
| 4461 | fi |
| 4462 | F77=$ac_cv_prog_F77 |
| 4463 | if test -n "$F77"; then |
| 4464 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 4465 | echo "${ECHO_T}$F77" >&6 |
| 4466 | else |
| 4467 | echo "$as_me:$LINENO: result: no" >&5 |
| 4468 | echo "${ECHO_T}no" >&6 |
| 4469 | fi |
| 4470 | |
| 4471 | test -n "$F77" && break |
| 4472 | done |
| 4473 | fi |
| 4474 | if test -z "$F77"; then |
| 4475 | ac_ct_F77=$F77 |
| 4476 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 4477 | do |
| 4478 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4479 | set dummy $ac_prog; ac_word=$2 |
| 4480 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4482 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 4483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4484 | else |
| 4485 | if test -n "$ac_ct_F77"; then |
| 4486 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 4487 | else |
| 4488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4489 | for as_dir in $PATH |
| 4490 | do |
| 4491 | IFS=$as_save_IFS |
| 4492 | test -z "$as_dir" && as_dir=. |
| 4493 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4494 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4495 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 4496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4497 | break 2 |
| 4498 | fi |
| 4499 | done |
| 4500 | done |
| 4501 | |
| 4502 | fi |
| 4503 | fi |
| 4504 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 4505 | if test -n "$ac_ct_F77"; then |
| 4506 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 4507 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 4508 | else |
| 4509 | echo "$as_me:$LINENO: result: no" >&5 |
| 4510 | echo "${ECHO_T}no" >&6 |
| 4511 | fi |
| 4512 | |
| 4513 | test -n "$ac_ct_F77" && break |
| 4514 | done |
| 4515 | |
| 4516 | F77=$ac_ct_F77 |
| 4517 | fi |
| 4518 | |
| 4519 | |
| 4520 | # Provide some information about the compiler. |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 4521 | echo "$as_me:4521:" \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4522 | "checking for Fortran 77 compiler version" >&5 |
| 4523 | ac_compiler=`set X $ac_compile; echo $2` |
| 4524 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4525 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4526 | ac_status=$? |
| 4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4528 | (exit $ac_status); } |
| 4529 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4530 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4531 | ac_status=$? |
| 4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4533 | (exit $ac_status); } |
| 4534 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4535 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4536 | ac_status=$? |
| 4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4538 | (exit $ac_status); } |
| 4539 | rm -f a.out |
| 4540 | |
| 4541 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 4542 | # input file. (Note that this only needs to work for GNU compilers.) |
| 4543 | ac_save_ext=$ac_ext |
| 4544 | ac_ext=F |
| 4545 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 4546 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 4547 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 4548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4549 | else |
| 4550 | cat >conftest.$ac_ext <<_ACEOF |
| 4551 | program main |
| 4552 | #ifndef __GNUC__ |
| 4553 | choke me |
| 4554 | #endif |
| 4555 | |
| 4556 | end |
| 4557 | _ACEOF |
| 4558 | rm -f conftest.$ac_objext |
| 4559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4560 | (eval $ac_compile) 2>conftest.er1 |
| 4561 | ac_status=$? |
| 4562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4563 | rm -f conftest.er1 |
| 4564 | cat conftest.err >&5 |
| 4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4566 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4567 | { ac_try='test -z "$ac_f77_werror_flag" |
| 4568 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4570 | (eval $ac_try) 2>&5 |
| 4571 | ac_status=$? |
| 4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4573 | (exit $ac_status); }; } && |
| 4574 | { ac_try='test -s conftest.$ac_objext' |
| 4575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4576 | (eval $ac_try) 2>&5 |
| 4577 | ac_status=$? |
| 4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4579 | (exit $ac_status); }; }; then |
| 4580 | ac_compiler_gnu=yes |
| 4581 | else |
| 4582 | echo "$as_me: failed program was:" >&5 |
| 4583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4584 | |
| 4585 | ac_compiler_gnu=no |
| 4586 | fi |
| 4587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4588 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 4589 | |
| 4590 | fi |
| 4591 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 4592 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 4593 | ac_ext=$ac_save_ext |
| 4594 | ac_test_FFLAGS=${FFLAGS+set} |
| 4595 | ac_save_FFLAGS=$FFLAGS |
| 4596 | FFLAGS= |
| 4597 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 4598 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 4599 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 4600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4601 | else |
| 4602 | FFLAGS=-g |
| 4603 | cat >conftest.$ac_ext <<_ACEOF |
| 4604 | program main |
| 4605 | |
| 4606 | end |
| 4607 | _ACEOF |
| 4608 | rm -f conftest.$ac_objext |
| 4609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4610 | (eval $ac_compile) 2>conftest.er1 |
| 4611 | ac_status=$? |
| 4612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4613 | rm -f conftest.er1 |
| 4614 | cat conftest.err >&5 |
| 4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4616 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4617 | { ac_try='test -z "$ac_f77_werror_flag" |
| 4618 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4620 | (eval $ac_try) 2>&5 |
| 4621 | ac_status=$? |
| 4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4623 | (exit $ac_status); }; } && |
| 4624 | { ac_try='test -s conftest.$ac_objext' |
| 4625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4626 | (eval $ac_try) 2>&5 |
| 4627 | ac_status=$? |
| 4628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4629 | (exit $ac_status); }; }; then |
| 4630 | ac_cv_prog_f77_g=yes |
| 4631 | else |
| 4632 | echo "$as_me: failed program was:" >&5 |
| 4633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4634 | |
| 4635 | ac_cv_prog_f77_g=no |
| 4636 | fi |
| 4637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4638 | |
| 4639 | fi |
| 4640 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 4641 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 4642 | if test "$ac_test_FFLAGS" = set; then |
| 4643 | FFLAGS=$ac_save_FFLAGS |
| 4644 | elif test $ac_cv_prog_f77_g = yes; then |
| 4645 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 4646 | FFLAGS="-g -O2" |
| 4647 | else |
| 4648 | FFLAGS="-g" |
| 4649 | fi |
| 4650 | else |
| 4651 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 4652 | FFLAGS="-O2" |
| 4653 | else |
| 4654 | FFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4655 | fi |
| 4656 | fi |
| 4657 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4658 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 4659 | ac_ext=c |
| 4660 | ac_cpp='$CPP $CPPFLAGS' |
| 4661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 4668 | |
| 4669 | # find the maximum length of command line arguments |
| 4670 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 4671 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 4672 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 4673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4674 | else |
| 4675 | i=0 |
| 4676 | testring="ABCD" |
| 4677 | |
| 4678 | case $build_os in |
| 4679 | msdosdjgpp*) |
| 4680 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4681 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4682 | # during glob expansion). Even if it were fixed, the result of this |
| 4683 | # check would be larger than it should be. |
| 4684 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4685 | ;; |
| 4686 | |
| 4687 | gnu*) |
| 4688 | # Under GNU Hurd, this test is not required because there is |
| 4689 | # no limit to the length of command line arguments. |
| 4690 | # Libtool will interpret -1 as no limit whatsoever |
| 4691 | lt_cv_sys_max_cmd_len=-1; |
| 4692 | ;; |
| 4693 | |
| 4694 | cygwin* | mingw*) |
| 4695 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4696 | # about 5 minutes as the teststring grows exponentially. |
| 4697 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4698 | # you end up with a "frozen" computer, even though with patience |
| 4699 | # the test eventually succeeds (with a max line length of 256k). |
| 4700 | # Instead, let's just punt: use the minimum linelength reported by |
| 4701 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4702 | lt_cv_sys_max_cmd_len=8192; |
| 4703 | ;; |
| 4704 | |
| 4705 | amigaos*) |
| 4706 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4707 | # So we just punt and use a minimum line length of 8192. |
| 4708 | lt_cv_sys_max_cmd_len=8192; |
| 4709 | ;; |
| 4710 | |
| 4711 | *) |
| 4712 | # If test is not a shell built-in, we'll probably end up computing a |
| 4713 | # maximum length that is only half of the actual maximum length, but |
| 4714 | # we can't tell. |
| 4715 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 4716 | = "XX$testring") >/dev/null 2>&1 && |
| 4717 | new_result=`expr "X$testring" : ".*" 2>&1` && |
| 4718 | lt_cv_sys_max_cmd_len=$new_result && |
| 4719 | test $i != 17 # 1/2 MB should be enough |
| 4720 | do |
| 4721 | i=`expr $i + 1` |
| 4722 | testring=$testring$testring |
| 4723 | done |
| 4724 | testring= |
| 4725 | # Add a significant safety factor because C++ compilers can tack on massive |
| 4726 | # amounts of additional arguments before passing them to the linker. |
| 4727 | # It appears as though 1/2 is a usable value. |
| 4728 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4729 | ;; |
| 4730 | esac |
| 4731 | |
| 4732 | fi |
| 4733 | |
| 4734 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 4735 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 4736 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 4737 | else |
| 4738 | echo "$as_me:$LINENO: result: none" >&5 |
| 4739 | echo "${ECHO_T}none" >&6 |
| 4740 | fi |
| 4741 | |
| 4742 | |
| 4743 | |
| 4744 | |
| 4745 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 4746 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 4747 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 4748 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 4749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4750 | else |
| 4751 | |
| 4752 | # These are sane defaults that work on at least a few old systems. |
| 4753 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 4754 | |
| 4755 | # Character class describing NM global symbol codes. |
| 4756 | symcode='[BCDEGRST]' |
| 4757 | |
| 4758 | # Regexp to match symbols that can be accessed directly from C. |
| 4759 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 4760 | |
| 4761 | # Transform the above into a raw symbol and a C symbol. |
| 4762 | symxfrm='\1 \2\3 \3' |
| 4763 | |
| 4764 | # Transform an extracted symbol line into a proper C declaration |
| 4765 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 4766 | |
| 4767 | # Transform an extracted symbol line into symbol name and symbol address |
| 4768 | 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'" |
| 4769 | |
| 4770 | # Define system-specific variables. |
| 4771 | case $host_os in |
| 4772 | aix*) |
| 4773 | symcode='[BCDT]' |
| 4774 | ;; |
| 4775 | cygwin* | mingw* | pw32*) |
| 4776 | symcode='[ABCDGISTW]' |
| 4777 | ;; |
| 4778 | hpux*) # Its linker distinguishes data from code symbols |
| 4779 | if test "$host_cpu" = ia64; then |
| 4780 | symcode='[ABCDEGRST]' |
| 4781 | fi |
| 4782 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4783 | 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'" |
| 4784 | ;; |
| 4785 | irix* | nonstopux*) |
| 4786 | symcode='[BCDEGRST]' |
| 4787 | ;; |
| 4788 | osf*) |
| 4789 | symcode='[BCDEGQRST]' |
| 4790 | ;; |
| 4791 | solaris* | sysv5*) |
| 4792 | symcode='[BDRT]' |
| 4793 | ;; |
| 4794 | sysv4) |
| 4795 | symcode='[DFNSTU]' |
| 4796 | ;; |
| 4797 | esac |
| 4798 | |
| 4799 | # Handle CRLF in mingw tool chain |
| 4800 | opt_cr= |
| 4801 | case $build_os in |
| 4802 | mingw*) |
| 4803 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 4804 | ;; |
| 4805 | esac |
| 4806 | |
| 4807 | # If we're using GNU nm, then use its standard symbol codes. |
| 4808 | case `$NM -V 2>&1` in |
| 4809 | *GNU* | *'with BFD'*) |
| 4810 | symcode='[ABCDGIRSTW]' ;; |
| 4811 | esac |
| 4812 | |
| 4813 | # Try without a prefix undercore, then with it. |
| 4814 | for ac_symprfx in "" "_"; do |
| 4815 | |
| 4816 | # Write the raw and C identifiers. |
| 4817 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 4818 | |
| 4819 | # Check to see that the pipe works correctly. |
| 4820 | pipe_works=no |
| 4821 | |
| 4822 | rm -f conftest* |
| 4823 | cat > conftest.$ac_ext <<EOF |
| 4824 | #ifdef __cplusplus |
| 4825 | extern "C" { |
| 4826 | #endif |
| 4827 | char nm_test_var; |
| 4828 | void nm_test_func(){} |
| 4829 | #ifdef __cplusplus |
| 4830 | } |
| 4831 | #endif |
| 4832 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 4833 | EOF |
| 4834 | |
| 4835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4836 | (eval $ac_compile) 2>&5 |
| 4837 | ac_status=$? |
| 4838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4839 | (exit $ac_status); }; then |
| 4840 | # Now try to grab the symbols. |
| 4841 | nlist=conftest.nm |
| 4842 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 4843 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 4844 | ac_status=$? |
| 4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4846 | (exit $ac_status); } && test -s "$nlist"; then |
| 4847 | # Try sorting and uniquifying the output. |
| 4848 | if sort "$nlist" | uniq > "$nlist"T; then |
| 4849 | mv -f "$nlist"T "$nlist" |
| 4850 | else |
| 4851 | rm -f "$nlist"T |
| 4852 | fi |
| 4853 | |
| 4854 | # Make sure that we snagged all the symbols we need. |
| 4855 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 4856 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 4857 | cat <<EOF > conftest.$ac_ext |
| 4858 | #ifdef __cplusplus |
| 4859 | extern "C" { |
| 4860 | #endif |
| 4861 | |
| 4862 | EOF |
| 4863 | # Now generate the symbol file. |
| 4864 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 4865 | |
| 4866 | cat <<EOF >> conftest.$ac_ext |
| 4867 | #if defined (__STDC__) && __STDC__ |
| 4868 | # define lt_ptr_t void * |
| 4869 | #else |
| 4870 | # define lt_ptr_t char * |
| 4871 | # define const |
| 4872 | #endif |
| 4873 | |
| 4874 | /* The mapping between symbol names and symbols. */ |
| 4875 | const struct { |
| 4876 | const char *name; |
| 4877 | lt_ptr_t address; |
| 4878 | } |
| 4879 | lt_preloaded_symbols[] = |
| 4880 | { |
| 4881 | EOF |
| 4882 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 4883 | cat <<\EOF >> conftest.$ac_ext |
| 4884 | {0, (lt_ptr_t) 0} |
| 4885 | }; |
| 4886 | |
| 4887 | #ifdef __cplusplus |
| 4888 | } |
| 4889 | #endif |
| 4890 | EOF |
| 4891 | # Now try linking the two files. |
| 4892 | mv conftest.$ac_objext conftstm.$ac_objext |
| 4893 | lt_save_LIBS="$LIBS" |
| 4894 | lt_save_CFLAGS="$CFLAGS" |
| 4895 | LIBS="conftstm.$ac_objext" |
| 4896 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 4897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4898 | (eval $ac_link) 2>&5 |
| 4899 | ac_status=$? |
| 4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4901 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 4902 | pipe_works=yes |
| 4903 | fi |
| 4904 | LIBS="$lt_save_LIBS" |
| 4905 | CFLAGS="$lt_save_CFLAGS" |
| 4906 | else |
| 4907 | echo "cannot find nm_test_func in $nlist" >&5 |
| 4908 | fi |
| 4909 | else |
| 4910 | echo "cannot find nm_test_var in $nlist" >&5 |
| 4911 | fi |
| 4912 | else |
| 4913 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 4914 | fi |
| 4915 | else |
| 4916 | echo "$progname: failed program was:" >&5 |
| 4917 | cat conftest.$ac_ext >&5 |
| 4918 | fi |
| 4919 | rm -f conftest* conftst* |
| 4920 | |
| 4921 | # Do not use the global_symbol_pipe unless it works. |
| 4922 | if test "$pipe_works" = yes; then |
| 4923 | break |
| 4924 | else |
| 4925 | lt_cv_sys_global_symbol_pipe= |
| 4926 | fi |
| 4927 | done |
| 4928 | |
| 4929 | fi |
| 4930 | |
| 4931 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 4932 | lt_cv_sys_global_symbol_to_cdecl= |
| 4933 | fi |
| 4934 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 4935 | echo "$as_me:$LINENO: result: failed" >&5 |
| 4936 | echo "${ECHO_T}failed" >&6 |
| 4937 | else |
| 4938 | echo "$as_me:$LINENO: result: ok" >&5 |
| 4939 | echo "${ECHO_T}ok" >&6 |
| 4940 | fi |
| 4941 | |
| 4942 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4943 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4944 | if test "${lt_cv_objdir+set}" = set; then |
| 4945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4946 | else |
| 4947 | rm -f .libs 2>/dev/null |
| 4948 | mkdir .libs 2>/dev/null |
| 4949 | if test -d .libs; then |
| 4950 | lt_cv_objdir=.libs |
| 4951 | else |
| 4952 | # MS-DOS does not allow filenames that begin with a dot. |
| 4953 | lt_cv_objdir=_libs |
| 4954 | fi |
| 4955 | rmdir .libs 2>/dev/null |
| 4956 | fi |
| 4957 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 4958 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 4959 | objdir=$lt_cv_objdir |
| 4960 | |
| 4961 | |
| 4962 | |
| 4963 | |
| 4964 | |
| 4965 | case $host_os in |
| 4966 | aix3*) |
| 4967 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4968 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4969 | # vanish in a puff of smoke. |
| 4970 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4971 | COLLECT_NAMES= |
| 4972 | export COLLECT_NAMES |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4973 | fi |
| 4974 | ;; |
| 4975 | esac |
| 4976 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4977 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4978 | # metacharacters that are still active within double-quoted strings. |
| 4979 | Xsed='sed -e s/^X//' |
| 4980 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 4981 | |
| 4982 | # Same as above, but do not quote variable references. |
| 4983 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4984 | |
| 4985 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4986 | # double_quote_subst'ed string. |
| 4987 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4988 | |
| 4989 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 4990 | no_glob_subst='s/\*/\\\*/g' |
| 4991 | |
| 4992 | # Constants: |
| 4993 | rm="rm -f" |
| 4994 | |
| 4995 | # Global variables: |
| 4996 | default_ofile=libtool |
| 4997 | can_build_shared=yes |
| 4998 | |
| 4999 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5000 | # which needs '.lib'). |
| 5001 | libext=a |
| 5002 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5003 | ofile="$default_ofile" |
| 5004 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5005 | |
| 5006 | if test -n "$ac_tool_prefix"; then |
| 5007 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5008 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5009 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5010 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5011 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5013 | else |
| 5014 | if test -n "$AR"; then |
| 5015 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5016 | else |
| 5017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5018 | for as_dir in $PATH |
| 5019 | do |
| 5020 | IFS=$as_save_IFS |
| 5021 | test -z "$as_dir" && as_dir=. |
| 5022 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5023 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5024 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5025 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5026 | break 2 |
| 5027 | fi |
| 5028 | done |
| 5029 | done |
| 5030 | |
| 5031 | fi |
| 5032 | fi |
| 5033 | AR=$ac_cv_prog_AR |
| 5034 | if test -n "$AR"; then |
| 5035 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5036 | echo "${ECHO_T}$AR" >&6 |
| 5037 | else |
| 5038 | echo "$as_me:$LINENO: result: no" >&5 |
| 5039 | echo "${ECHO_T}no" >&6 |
| 5040 | fi |
| 5041 | |
| 5042 | fi |
| 5043 | if test -z "$ac_cv_prog_AR"; then |
| 5044 | ac_ct_AR=$AR |
| 5045 | # Extract the first word of "ar", so it can be a program name with args. |
| 5046 | set dummy ar; ac_word=$2 |
| 5047 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5049 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5051 | else |
| 5052 | if test -n "$ac_ct_AR"; then |
| 5053 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5054 | else |
| 5055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5056 | for as_dir in $PATH |
| 5057 | do |
| 5058 | IFS=$as_save_IFS |
| 5059 | test -z "$as_dir" && as_dir=. |
| 5060 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5061 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5062 | ac_cv_prog_ac_ct_AR="ar" |
| 5063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5064 | break 2 |
| 5065 | fi |
| 5066 | done |
| 5067 | done |
| 5068 | |
| 5069 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5070 | fi |
| 5071 | fi |
| 5072 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5073 | if test -n "$ac_ct_AR"; then |
| 5074 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5075 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5076 | else |
| 5077 | echo "$as_me:$LINENO: result: no" >&5 |
| 5078 | echo "${ECHO_T}no" >&6 |
| 5079 | fi |
| 5080 | |
| 5081 | AR=$ac_ct_AR |
| 5082 | else |
| 5083 | AR="$ac_cv_prog_AR" |
| 5084 | fi |
| 5085 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5086 | if test -n "$ac_tool_prefix"; then |
| 5087 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5088 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5089 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5091 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5093 | else |
| 5094 | if test -n "$RANLIB"; then |
| 5095 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5096 | else |
| 5097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5098 | for as_dir in $PATH |
| 5099 | do |
| 5100 | IFS=$as_save_IFS |
| 5101 | test -z "$as_dir" && as_dir=. |
| 5102 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5103 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5104 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5106 | break 2 |
| 5107 | fi |
| 5108 | done |
| 5109 | done |
| 5110 | |
| 5111 | fi |
| 5112 | fi |
| 5113 | RANLIB=$ac_cv_prog_RANLIB |
| 5114 | if test -n "$RANLIB"; then |
| 5115 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5116 | echo "${ECHO_T}$RANLIB" >&6 |
| 5117 | else |
| 5118 | echo "$as_me:$LINENO: result: no" >&5 |
| 5119 | echo "${ECHO_T}no" >&6 |
| 5120 | fi |
| 5121 | |
| 5122 | fi |
| 5123 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5124 | ac_ct_RANLIB=$RANLIB |
| 5125 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5126 | set dummy ranlib; ac_word=$2 |
| 5127 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5129 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5131 | else |
| 5132 | if test -n "$ac_ct_RANLIB"; then |
| 5133 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5134 | else |
| 5135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5136 | for as_dir in $PATH |
| 5137 | do |
| 5138 | IFS=$as_save_IFS |
| 5139 | test -z "$as_dir" && as_dir=. |
| 5140 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5141 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5142 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5144 | break 2 |
| 5145 | fi |
| 5146 | done |
| 5147 | done |
| 5148 | |
| 5149 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5150 | fi |
| 5151 | fi |
| 5152 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5153 | if test -n "$ac_ct_RANLIB"; then |
| 5154 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5155 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5156 | else |
| 5157 | echo "$as_me:$LINENO: result: no" >&5 |
| 5158 | echo "${ECHO_T}no" >&6 |
| 5159 | fi |
| 5160 | |
| 5161 | RANLIB=$ac_ct_RANLIB |
| 5162 | else |
| 5163 | RANLIB="$ac_cv_prog_RANLIB" |
| 5164 | fi |
| 5165 | |
| 5166 | if test -n "$ac_tool_prefix"; then |
| 5167 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5168 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5171 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5173 | else |
| 5174 | if test -n "$STRIP"; then |
| 5175 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5176 | else |
| 5177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5178 | for as_dir in $PATH |
| 5179 | do |
| 5180 | IFS=$as_save_IFS |
| 5181 | test -z "$as_dir" && as_dir=. |
| 5182 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5184 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5186 | break 2 |
| 5187 | fi |
| 5188 | done |
| 5189 | done |
| 5190 | |
| 5191 | fi |
| 5192 | fi |
| 5193 | STRIP=$ac_cv_prog_STRIP |
| 5194 | if test -n "$STRIP"; then |
| 5195 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5196 | echo "${ECHO_T}$STRIP" >&6 |
| 5197 | else |
| 5198 | echo "$as_me:$LINENO: result: no" >&5 |
| 5199 | echo "${ECHO_T}no" >&6 |
| 5200 | fi |
| 5201 | |
| 5202 | fi |
| 5203 | if test -z "$ac_cv_prog_STRIP"; then |
| 5204 | ac_ct_STRIP=$STRIP |
| 5205 | # Extract the first word of "strip", so it can be a program name with args. |
| 5206 | set dummy strip; ac_word=$2 |
| 5207 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5208 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5209 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5211 | else |
| 5212 | if test -n "$ac_ct_STRIP"; then |
| 5213 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5214 | else |
| 5215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5216 | for as_dir in $PATH |
| 5217 | do |
| 5218 | IFS=$as_save_IFS |
| 5219 | test -z "$as_dir" && as_dir=. |
| 5220 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5221 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5222 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5223 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5224 | break 2 |
| 5225 | fi |
| 5226 | done |
| 5227 | done |
| 5228 | |
| 5229 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5230 | fi |
| 5231 | fi |
| 5232 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5233 | if test -n "$ac_ct_STRIP"; then |
| 5234 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5235 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5236 | else |
| 5237 | echo "$as_me:$LINENO: result: no" >&5 |
| 5238 | echo "${ECHO_T}no" >&6 |
| 5239 | fi |
| 5240 | |
| 5241 | STRIP=$ac_ct_STRIP |
| 5242 | else |
| 5243 | STRIP="$ac_cv_prog_STRIP" |
| 5244 | fi |
| 5245 | |
| 5246 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5247 | old_CC="$CC" |
| 5248 | old_CFLAGS="$CFLAGS" |
| 5249 | |
| 5250 | # Set sane defaults for various variables |
| 5251 | test -z "$AR" && AR=ar |
| 5252 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5253 | test -z "$AS" && AS=as |
| 5254 | test -z "$CC" && CC=cc |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5255 | test -z "$LTCC" && LTCC=$CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5256 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5257 | test -z "$LD" && LD=ld |
| 5258 | test -z "$LN_S" && LN_S="ln -s" |
| 5259 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5260 | test -z "$NM" && NM=nm |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5261 | test -z "$SED" && SED=sed |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5262 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5263 | test -z "$RANLIB" && RANLIB=: |
| 5264 | test -z "$STRIP" && STRIP=: |
| 5265 | test -z "$ac_objext" && ac_objext=o |
| 5266 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5267 | # Determine commands to create old-style static archives. |
| 5268 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5269 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5270 | old_postuninstall_cmds= |
| 5271 | |
| 5272 | if test -n "$RANLIB"; then |
| 5273 | case $host_os in |
| 5274 | openbsd*) |
| 5275 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5276 | ;; |
| 5277 | *) |
| 5278 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5279 | ;; |
| 5280 | esac |
| 5281 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5282 | fi |
| 5283 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5284 | # Only perform the check for file, if the check method requires it |
| 5285 | case $deplibs_check_method in |
| 5286 | file_magic*) |
| 5287 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5288 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5289 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5290 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5292 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5293 | case $MAGIC_CMD in |
| 5294 | [\\/*] | ?:[\\/]*) |
| 5295 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5296 | ;; |
| 5297 | *) |
| 5298 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5299 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5300 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5301 | for ac_dir in $ac_dummy; do |
| 5302 | IFS="$lt_save_ifs" |
| 5303 | test -z "$ac_dir" && ac_dir=. |
| 5304 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5305 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5306 | if test -n "$file_magic_test_file"; then |
| 5307 | case $deplibs_check_method in |
| 5308 | "file_magic "*) |
| 5309 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5310 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5311 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5312 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5313 | : |
| 5314 | else |
| 5315 | cat <<EOF 1>&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5316 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5317 | *** Warning: the command libtool uses to detect shared libraries, |
| 5318 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5319 | *** The result is that libtool may fail to recognize shared libraries |
| 5320 | *** as such. This will affect the creation of libtool libraries that |
| 5321 | *** depend on shared libraries, but programs linked with such libtool |
| 5322 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5323 | *** may want to report the problem to your system manager and/or to |
| 5324 | *** bug-libtool@gnu.org |
| 5325 | |
| 5326 | EOF |
| 5327 | fi ;; |
| 5328 | esac |
| 5329 | fi |
| 5330 | break |
| 5331 | fi |
| 5332 | done |
| 5333 | IFS="$lt_save_ifs" |
| 5334 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5335 | ;; |
| 5336 | esac |
| 5337 | fi |
| 5338 | |
| 5339 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5340 | if test -n "$MAGIC_CMD"; then |
| 5341 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5342 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5343 | else |
| 5344 | echo "$as_me:$LINENO: result: no" >&5 |
| 5345 | echo "${ECHO_T}no" >&6 |
| 5346 | fi |
| 5347 | |
| 5348 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5349 | if test -n "$ac_tool_prefix"; then |
| 5350 | echo "$as_me:$LINENO: checking for file" >&5 |
| 5351 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 5352 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5354 | else |
| 5355 | case $MAGIC_CMD in |
| 5356 | [\\/*] | ?:[\\/]*) |
| 5357 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5358 | ;; |
| 5359 | *) |
| 5360 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5361 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5362 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5363 | for ac_dir in $ac_dummy; do |
| 5364 | IFS="$lt_save_ifs" |
| 5365 | test -z "$ac_dir" && ac_dir=. |
| 5366 | if test -f $ac_dir/file; then |
| 5367 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 5368 | if test -n "$file_magic_test_file"; then |
| 5369 | case $deplibs_check_method in |
| 5370 | "file_magic "*) |
| 5371 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5372 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5373 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5374 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5375 | : |
| 5376 | else |
| 5377 | cat <<EOF 1>&2 |
| 5378 | |
| 5379 | *** Warning: the command libtool uses to detect shared libraries, |
| 5380 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5381 | *** The result is that libtool may fail to recognize shared libraries |
| 5382 | *** as such. This will affect the creation of libtool libraries that |
| 5383 | *** depend on shared libraries, but programs linked with such libtool |
| 5384 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5385 | *** may want to report the problem to your system manager and/or to |
| 5386 | *** bug-libtool@gnu.org |
| 5387 | |
| 5388 | EOF |
| 5389 | fi ;; |
| 5390 | esac |
| 5391 | fi |
| 5392 | break |
| 5393 | fi |
| 5394 | done |
| 5395 | IFS="$lt_save_ifs" |
| 5396 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5397 | ;; |
| 5398 | esac |
| 5399 | fi |
| 5400 | |
| 5401 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5402 | if test -n "$MAGIC_CMD"; then |
| 5403 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5404 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5405 | else |
| 5406 | echo "$as_me:$LINENO: result: no" >&5 |
| 5407 | echo "${ECHO_T}no" >&6 |
| 5408 | fi |
| 5409 | |
| 5410 | else |
| 5411 | MAGIC_CMD=: |
| 5412 | fi |
| 5413 | fi |
| 5414 | |
| 5415 | fi |
| 5416 | ;; |
| 5417 | esac |
| 5418 | |
| 5419 | enable_dlopen=no |
| 5420 | enable_win32_dll=no |
| 5421 | |
| 5422 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 5423 | if test "${enable_libtool_lock+set}" = set; then |
| 5424 | enableval="$enable_libtool_lock" |
| 5425 | |
| 5426 | fi; |
| 5427 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5428 | |
| 5429 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5430 | # Check whether --with-pic or --without-pic was given. |
| 5431 | if test "${with_pic+set}" = set; then |
| 5432 | withval="$with_pic" |
| 5433 | pic_mode="$withval" |
| 5434 | else |
| 5435 | pic_mode=default |
| 5436 | fi; |
| 5437 | test -z "$pic_mode" && pic_mode=default |
| 5438 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5439 | # Use C for the default configuration in the libtool script |
| 5440 | tagname= |
| 5441 | lt_save_CC="$CC" |
| 5442 | ac_ext=c |
| 5443 | ac_cpp='$CPP $CPPFLAGS' |
| 5444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5447 | |
| 5448 | |
| 5449 | # Source file extension for C test sources. |
| 5450 | ac_ext=c |
| 5451 | |
| 5452 | # Object file extension for compiled C test sources. |
| 5453 | objext=o |
| 5454 | objext=$objext |
| 5455 | |
| 5456 | # Code to be used in simple compile tests |
| 5457 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 5458 | |
| 5459 | # Code to be used in simple link tests |
| 5460 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 5461 | |
| 5462 | |
| 5463 | # If no C compiler was specified, use CC. |
| 5464 | LTCC=${LTCC-"$CC"} |
| 5465 | |
| 5466 | # Allow CC to be a program name with arguments. |
| 5467 | compiler=$CC |
| 5468 | |
| 5469 | |
| 5470 | # |
| 5471 | # Check for any special shared library compilation flags. |
| 5472 | # |
| 5473 | lt_prog_cc_shlib= |
| 5474 | if test "$GCC" = no; then |
| 5475 | case $host_os in |
| 5476 | sco3.2v5*) |
| 5477 | lt_prog_cc_shlib='-belf' |
| 5478 | ;; |
| 5479 | esac |
| 5480 | fi |
| 5481 | if test -n "$lt_prog_cc_shlib"; then |
| 5482 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 5483 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 5484 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 5485 | else |
| 5486 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5487 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5488 | lt_cv_prog_cc_can_build_shared=no |
| 5489 | fi |
| 5490 | fi |
| 5491 | |
| 5492 | |
| 5493 | # |
| 5494 | # Check to make sure the static flag actually works. |
| 5495 | # |
| 5496 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 5497 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 5498 | if test "${lt_prog_compiler_static_works+set}" = set; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5500 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5501 | lt_prog_compiler_static_works=no |
| 5502 | save_LDFLAGS="$LDFLAGS" |
| 5503 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 5504 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 5505 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 5506 | # The compiler can only warn and ignore the option if not recognized |
| 5507 | # So say no if there are warnings |
| 5508 | if test -s conftest.err; then |
| 5509 | # Append any errors to the config.log. |
| 5510 | cat conftest.err 1>&5 |
| 5511 | else |
| 5512 | lt_prog_compiler_static_works=yes |
| 5513 | fi |
| 5514 | fi |
| 5515 | $rm conftest* |
| 5516 | LDFLAGS="$save_LDFLAGS" |
| 5517 | |
| 5518 | fi |
| 5519 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 5520 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 5521 | |
| 5522 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 5523 | : |
| 5524 | else |
| 5525 | lt_prog_compiler_static= |
| 5526 | fi |
| 5527 | |
| 5528 | |
| 5529 | |
| 5530 | |
| 5531 | lt_prog_compiler_no_builtin_flag= |
| 5532 | |
| 5533 | if test "$GCC" = yes; then |
| 5534 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 5535 | |
| 5536 | |
| 5537 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5538 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5539 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 5540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5541 | else |
| 5542 | lt_cv_prog_compiler_rtti_exceptions=no |
| 5543 | ac_outfile=conftest.$ac_objext |
| 5544 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5545 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 5546 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5547 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5548 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5549 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5550 | # The option is referenced via a variable to avoid confusing sed. |
| 5551 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5552 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5553 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5554 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 5555 | (eval echo "\"\$as_me:5555: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5556 | (eval "$lt_compile" 2>conftest.err) |
| 5557 | ac_status=$? |
| 5558 | cat conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 5559 | echo "$as_me:5559: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5560 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5561 | # The compiler can only warn and ignore the option if not recognized |
| 5562 | # So say no if there are warnings |
| 5563 | if test ! -s conftest.err; then |
| 5564 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 5565 | fi |
| 5566 | fi |
| 5567 | $rm conftest* |
| 5568 | |
| 5569 | fi |
| 5570 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 5571 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 5572 | |
| 5573 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 5574 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 5575 | else |
| 5576 | : |
| 5577 | fi |
| 5578 | |
| 5579 | fi |
| 5580 | |
| 5581 | lt_prog_compiler_wl= |
| 5582 | lt_prog_compiler_pic= |
| 5583 | lt_prog_compiler_static= |
| 5584 | |
| 5585 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 5586 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5587 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5588 | if test "$GCC" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5589 | lt_prog_compiler_wl='-Wl,' |
| 5590 | lt_prog_compiler_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5591 | |
| 5592 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5593 | aix*) |
| 5594 | # All AIX code is PIC. |
| 5595 | if test "$host_cpu" = ia64; then |
| 5596 | # AIX 5 now supports IA64 processor |
| 5597 | lt_prog_compiler_static='-Bstatic' |
| 5598 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5599 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5600 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5601 | amigaos*) |
| 5602 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 5603 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 5604 | # like `-m68040'. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5605 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5606 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5607 | |
| 5608 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5609 | # PIC is the default for these OSes. |
| 5610 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5611 | |
| 5612 | mingw* | pw32* | os2*) |
| 5613 | # This hack is so that the source file can tell whether it is being |
| 5614 | # built for inclusion in a dll (and should export symbols for example). |
| 5615 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5616 | ;; |
| 5617 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5618 | darwin* | rhapsody*) |
| 5619 | # PIC is the default on this platform |
| 5620 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5621 | lt_prog_compiler_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5622 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5623 | |
| 5624 | msdosdjgpp*) |
| 5625 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 5626 | # on systems that don't support them. |
| 5627 | lt_prog_compiler_can_build_shared=no |
| 5628 | enable_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5629 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5630 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5631 | sysv4*MP*) |
| 5632 | if test -d /usr/nec; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5633 | lt_prog_compiler_pic=-Kconform_pic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5634 | fi |
| 5635 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5636 | |
| 5637 | hpux*) |
| 5638 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5639 | # not for PA HP-UX. |
| 5640 | case "$host_cpu" in |
| 5641 | hppa*64*|ia64*) |
| 5642 | # +Z the default |
| 5643 | ;; |
| 5644 | *) |
| 5645 | lt_prog_compiler_pic='-fPIC' |
| 5646 | ;; |
| 5647 | esac |
| 5648 | ;; |
| 5649 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5650 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5651 | lt_prog_compiler_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5652 | ;; |
| 5653 | esac |
| 5654 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5655 | # PORTME Check for flag to pass linker flags through the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5656 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5657 | aix*) |
| 5658 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5659 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5660 | # AIX 5 now supports IA64 processor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5661 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5662 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5663 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5664 | fi |
| 5665 | ;; |
| 5666 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5667 | mingw* | pw32* | os2*) |
| 5668 | # This hack is so that the source file can tell whether it is being |
| 5669 | # built for inclusion in a dll (and should export symbols for example). |
| 5670 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5671 | ;; |
| 5672 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5673 | hpux9* | hpux10* | hpux11*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5674 | lt_prog_compiler_wl='-Wl,' |
| 5675 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5676 | # not for PA HP-UX. |
| 5677 | case "$host_cpu" in |
| 5678 | hppa*64*|ia64*) |
| 5679 | # +Z the default |
| 5680 | ;; |
| 5681 | *) |
| 5682 | lt_prog_compiler_pic='+Z' |
| 5683 | ;; |
| 5684 | esac |
| 5685 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 5686 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5687 | ;; |
| 5688 | |
| 5689 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5690 | lt_prog_compiler_wl='-Wl,' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5691 | # PIC (with -KPIC) is the default. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5692 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5693 | ;; |
| 5694 | |
| 5695 | newsos6) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5696 | lt_prog_compiler_pic='-KPIC' |
| 5697 | lt_prog_compiler_static='-Bstatic' |
| 5698 | ;; |
| 5699 | |
| 5700 | linux*) |
| 5701 | case $CC in |
| 5702 | icc* | ecc*) |
| 5703 | lt_prog_compiler_wl='-Wl,' |
| 5704 | lt_prog_compiler_pic='-KPIC' |
| 5705 | lt_prog_compiler_static='-static' |
| 5706 | ;; |
| 5707 | ccc*) |
| 5708 | lt_prog_compiler_wl='-Wl,' |
| 5709 | # All Alpha code is PIC. |
| 5710 | lt_prog_compiler_static='-non_shared' |
| 5711 | ;; |
| 5712 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5713 | ;; |
| 5714 | |
| 5715 | osf3* | osf4* | osf5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5716 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5717 | # All OSF/1 code is PIC. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5718 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5719 | ;; |
| 5720 | |
| 5721 | sco3.2v5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5722 | lt_prog_compiler_pic='-Kpic' |
| 5723 | lt_prog_compiler_static='-dn' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5724 | ;; |
| 5725 | |
| 5726 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5727 | lt_prog_compiler_wl='-Wl,' |
| 5728 | lt_prog_compiler_pic='-KPIC' |
| 5729 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5730 | ;; |
| 5731 | |
| 5732 | sunos4*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5733 | lt_prog_compiler_wl='-Qoption ld ' |
| 5734 | lt_prog_compiler_pic='-PIC' |
| 5735 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5736 | ;; |
| 5737 | |
| 5738 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5739 | lt_prog_compiler_wl='-Wl,' |
| 5740 | lt_prog_compiler_pic='-KPIC' |
| 5741 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5742 | ;; |
| 5743 | |
| 5744 | sysv4*MP*) |
| 5745 | if test -d /usr/nec ;then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5746 | lt_prog_compiler_pic='-Kconform_pic' |
| 5747 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5748 | fi |
| 5749 | ;; |
| 5750 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5751 | uts4*) |
| 5752 | lt_prog_compiler_pic='-pic' |
| 5753 | lt_prog_compiler_static='-Bstatic' |
| 5754 | ;; |
| 5755 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5756 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5757 | lt_prog_compiler_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5758 | ;; |
| 5759 | esac |
| 5760 | fi |
| 5761 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5762 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 5763 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5764 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5765 | # |
| 5766 | # Check to make sure the PIC flag actually works. |
| 5767 | # |
| 5768 | if test -n "$lt_prog_compiler_pic"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5769 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5770 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 5771 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 5772 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5774 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5775 | lt_prog_compiler_pic_works=no |
| 5776 | ac_outfile=conftest.$ac_objext |
| 5777 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5778 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 5779 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5780 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5781 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5782 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5783 | # The option is referenced via a variable to avoid confusing sed. |
| 5784 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5785 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5786 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5787 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 5788 | (eval echo "\"\$as_me:5788: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5789 | (eval "$lt_compile" 2>conftest.err) |
| 5790 | ac_status=$? |
| 5791 | cat conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 5792 | echo "$as_me:5792: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5793 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5794 | # The compiler can only warn and ignore the option if not recognized |
| 5795 | # So say no if there are warnings |
| 5796 | if test ! -s conftest.err; then |
| 5797 | lt_prog_compiler_pic_works=yes |
| 5798 | fi |
| 5799 | fi |
| 5800 | $rm conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5801 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5802 | fi |
| 5803 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 5804 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5805 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5806 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 5807 | case $lt_prog_compiler_pic in |
| 5808 | "" | " "*) ;; |
| 5809 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 5810 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5811 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5812 | lt_prog_compiler_pic= |
| 5813 | lt_prog_compiler_can_build_shared=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5814 | fi |
| 5815 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5816 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5817 | case "$host_os" in |
| 5818 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 5819 | *djgpp*) |
| 5820 | lt_prog_compiler_pic= |
| 5821 | ;; |
| 5822 | *) |
| 5823 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 5824 | ;; |
| 5825 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5826 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5827 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5828 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5829 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5831 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5832 | lt_cv_prog_compiler_c_o=no |
| 5833 | $rm -r conftest 2>/dev/null |
| 5834 | mkdir conftest |
| 5835 | cd conftest |
| 5836 | mkdir out |
| 5837 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5838 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5839 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 5840 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5841 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5842 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5843 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5844 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5845 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5846 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5847 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 5848 | (eval echo "\"\$as_me:5848: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5849 | (eval "$lt_compile" 2>out/conftest.err) |
| 5850 | ac_status=$? |
| 5851 | cat out/conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 5852 | echo "$as_me:5852: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5853 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 5854 | then |
| 5855 | # The compiler can only warn and ignore the option if not recognized |
| 5856 | # So say no if there are warnings |
| 5857 | if test ! -s out/conftest.err; then |
| 5858 | lt_cv_prog_compiler_c_o=yes |
| 5859 | fi |
| 5860 | fi |
| 5861 | chmod u+w . |
| 5862 | $rm conftest* |
| 5863 | # SGI C++ compiler will create directory out/ii_files/ for |
| 5864 | # template instantiation |
| 5865 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 5866 | $rm out/* && rmdir out |
| 5867 | cd .. |
| 5868 | rmdir conftest |
| 5869 | $rm conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5870 | |
| 5871 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5872 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 5873 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5874 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5875 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5876 | hard_links="nottested" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5877 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5878 | # do not overwrite the value of need_locks provided by the user |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5879 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5880 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5881 | hard_links=yes |
| 5882 | $rm conftest* |
| 5883 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5884 | touch conftest.a |
| 5885 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5886 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5887 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5888 | echo "${ECHO_T}$hard_links" >&6 |
| 5889 | if test "$hard_links" = no; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5890 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5891 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5892 | need_locks=warn |
| 5893 | fi |
| 5894 | else |
| 5895 | need_locks=no |
| 5896 | fi |
| 5897 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5898 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 5899 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5900 | |
| 5901 | runpath_var= |
| 5902 | allow_undefined_flag= |
| 5903 | enable_shared_with_static_runtimes=no |
| 5904 | archive_cmds= |
| 5905 | archive_expsym_cmds= |
| 5906 | old_archive_From_new_cmds= |
| 5907 | old_archive_from_expsyms_cmds= |
| 5908 | export_dynamic_flag_spec= |
| 5909 | whole_archive_flag_spec= |
| 5910 | thread_safe_flag_spec= |
| 5911 | hardcode_libdir_flag_spec= |
| 5912 | hardcode_libdir_flag_spec_ld= |
| 5913 | hardcode_libdir_separator= |
| 5914 | hardcode_direct=no |
| 5915 | hardcode_minus_L=no |
| 5916 | hardcode_shlibpath_var=unsupported |
| 5917 | link_all_deplibs=unknown |
| 5918 | hardcode_automatic=no |
| 5919 | module_cmds= |
| 5920 | module_expsym_cmds= |
| 5921 | always_export_symbols=no |
| 5922 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5923 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 5924 | # included in the symbol list |
| 5925 | include_expsyms= |
| 5926 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 5927 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5928 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5929 | # as well as any symbol that contains `d'. |
| 5930 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5931 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5932 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 5933 | # the symbol is explicitly referenced. Since portable code cannot |
| 5934 | # rely on this symbol name, it's probably fine to never include it in |
| 5935 | # preloaded symbol tables. |
| 5936 | extract_expsyms_cmds= |
| 5937 | |
| 5938 | case $host_os in |
| 5939 | cygwin* | mingw* | pw32*) |
| 5940 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5941 | # When not using gcc, we currently assume that we are using |
| 5942 | # Microsoft Visual C++. |
| 5943 | if test "$GCC" != yes; then |
| 5944 | with_gnu_ld=no |
| 5945 | fi |
| 5946 | ;; |
| 5947 | openbsd*) |
| 5948 | with_gnu_ld=no |
| 5949 | ;; |
| 5950 | esac |
| 5951 | |
| 5952 | ld_shlibs=yes |
| 5953 | if test "$with_gnu_ld" = yes; then |
| 5954 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5955 | wlarc='${wl}' |
| 5956 | |
| 5957 | # See if GNU ld supports shared libraries. |
| 5958 | case $host_os in |
| 5959 | aix3* | aix4* | aix5*) |
| 5960 | # On AIX/PPC, the GNU linker is very broken |
| 5961 | if test "$host_cpu" != ia64; then |
| 5962 | ld_shlibs=no |
| 5963 | cat <<EOF 1>&2 |
| 5964 | |
| 5965 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5966 | *** to be unable to reliably create shared libraries on AIX. |
| 5967 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5968 | *** really care for shared libraries, you may want to modify your PATH |
| 5969 | *** so that a non-GNU linker is found, and then restart. |
| 5970 | |
| 5971 | EOF |
| 5972 | fi |
| 5973 | ;; |
| 5974 | |
| 5975 | amigaos*) |
| 5976 | 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)' |
| 5977 | hardcode_libdir_flag_spec='-L$libdir' |
| 5978 | hardcode_minus_L=yes |
| 5979 | |
| 5980 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5981 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5982 | # to version 4, is to share data among multiple programs linked |
| 5983 | # with the same dynamic library. Since this doesn't match the |
| 5984 | # behavior of shared libraries on other platforms, we can't use |
| 5985 | # them. |
| 5986 | ld_shlibs=no |
| 5987 | ;; |
| 5988 | |
| 5989 | beos*) |
| 5990 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 5991 | allow_undefined_flag=unsupported |
| 5992 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5993 | # support --undefined. This deserves some investigation. FIXME |
| 5994 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5995 | else |
| 5996 | ld_shlibs=no |
| 5997 | fi |
| 5998 | ;; |
| 5999 | |
| 6000 | cygwin* | mingw* | pw32*) |
| 6001 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6002 | # as there is no search path for DLLs. |
| 6003 | hardcode_libdir_flag_spec='-L$libdir' |
| 6004 | allow_undefined_flag=unsupported |
| 6005 | always_export_symbols=no |
| 6006 | enable_shared_with_static_runtimes=yes |
| 6007 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6008 | |
| 6009 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6010 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6011 | # If the export-symbols file already is a .def file (1st line |
| 6012 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6013 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6014 | cp $export_symbols $output_objdir/$soname.def; |
| 6015 | else |
| 6016 | echo EXPORTS > $output_objdir/$soname.def; |
| 6017 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6018 | fi~ |
| 6019 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6020 | else |
| 6021 | ld_shlibs=no |
| 6022 | fi |
| 6023 | ;; |
| 6024 | |
| 6025 | netbsd* | knetbsd*-gnu) |
| 6026 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6027 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6028 | wlarc= |
| 6029 | else |
| 6030 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6031 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6032 | fi |
| 6033 | ;; |
| 6034 | |
| 6035 | solaris* | sysv5*) |
| 6036 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6037 | ld_shlibs=no |
| 6038 | cat <<EOF 1>&2 |
| 6039 | |
| 6040 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6041 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6042 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6043 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6044 | *** your PATH or compiler configuration so that the native linker is |
| 6045 | *** used, and then restart. |
| 6046 | |
| 6047 | EOF |
| 6048 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6049 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6050 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6051 | else |
| 6052 | ld_shlibs=no |
| 6053 | fi |
| 6054 | ;; |
| 6055 | |
| 6056 | sunos4*) |
| 6057 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6058 | wlarc= |
| 6059 | hardcode_direct=yes |
| 6060 | hardcode_shlibpath_var=no |
| 6061 | ;; |
| 6062 | |
| 6063 | linux*) |
| 6064 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 6065 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6066 | archive_cmds="$tmp_archive_cmds" |
| 6067 | supports_anon_versioning=no |
| 6068 | case `$LD -v 2>/dev/null` in |
| 6069 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6070 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6071 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6072 | *\ 2.11.*) ;; # other 2.11 versions |
| 6073 | *) supports_anon_versioning=yes ;; |
| 6074 | esac |
| 6075 | if test $supports_anon_versioning = yes; then |
| 6076 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 6077 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6078 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6079 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 6080 | else |
| 6081 | archive_expsym_cmds="$tmp_archive_cmds" |
| 6082 | fi |
| 6083 | else |
| 6084 | ld_shlibs=no |
| 6085 | fi |
| 6086 | ;; |
| 6087 | |
| 6088 | *) |
| 6089 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6090 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6091 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6092 | else |
| 6093 | ld_shlibs=no |
| 6094 | fi |
| 6095 | ;; |
| 6096 | esac |
| 6097 | |
| 6098 | if test "$ld_shlibs" = yes; then |
| 6099 | runpath_var=LD_RUN_PATH |
| 6100 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6101 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6102 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6103 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6104 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6105 | else |
| 6106 | whole_archive_flag_spec= |
| 6107 | fi |
| 6108 | fi |
| 6109 | else |
| 6110 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6111 | case $host_os in |
| 6112 | aix3*) |
| 6113 | allow_undefined_flag=unsupported |
| 6114 | always_export_symbols=yes |
| 6115 | 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' |
| 6116 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6117 | # are no directories specified by -L. |
| 6118 | hardcode_minus_L=yes |
| 6119 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6120 | # Neither direct hardcoding nor static linking is supported with a |
| 6121 | # broken collect2. |
| 6122 | hardcode_direct=unsupported |
| 6123 | fi |
| 6124 | ;; |
| 6125 | |
| 6126 | aix4* | aix5*) |
| 6127 | if test "$host_cpu" = ia64; then |
| 6128 | # On IA64, the linker does run time linking by default, so we don't |
| 6129 | # have to do anything special. |
| 6130 | aix_use_runtimelinking=no |
| 6131 | exp_sym_flag='-Bexport' |
| 6132 | no_entry_flag="" |
| 6133 | else |
| 6134 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6135 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6136 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6137 | 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' |
| 6138 | else |
| 6139 | 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' |
| 6140 | fi |
| 6141 | aix_use_runtimelinking=no |
| 6142 | |
| 6143 | # Test if we are trying to use run time linking or normal |
| 6144 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6145 | # need to do runtime linking. |
| 6146 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6147 | for ld_flag in $LDFLAGS; do |
| 6148 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6149 | aix_use_runtimelinking=yes |
| 6150 | break |
| 6151 | fi |
| 6152 | done |
| 6153 | esac |
| 6154 | |
| 6155 | exp_sym_flag='-bexport' |
| 6156 | no_entry_flag='-bnoentry' |
| 6157 | fi |
| 6158 | |
| 6159 | # When large executables or shared objects are built, AIX ld can |
| 6160 | # have problems creating the table of contents. If linking a library |
| 6161 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6162 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6163 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6164 | |
| 6165 | archive_cmds='' |
| 6166 | hardcode_direct=yes |
| 6167 | hardcode_libdir_separator=':' |
| 6168 | link_all_deplibs=yes |
| 6169 | |
| 6170 | if test "$GCC" = yes; then |
| 6171 | case $host_os in aix4.012|aix4.012.*) |
| 6172 | # We only want to do this on AIX 4.2 and lower, the check |
| 6173 | # below for broken collect2 doesn't work under 4.3+ |
| 6174 | collect2name=`${CC} -print-prog-name=collect2` |
| 6175 | if test -f "$collect2name" && \ |
| 6176 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6177 | then |
| 6178 | # We have reworked collect2 |
| 6179 | hardcode_direct=yes |
| 6180 | else |
| 6181 | # We have old collect2 |
| 6182 | hardcode_direct=unsupported |
| 6183 | # It fails to find uninstalled libraries when the uninstalled |
| 6184 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6185 | # to unsupported forces relinking |
| 6186 | hardcode_minus_L=yes |
| 6187 | hardcode_libdir_flag_spec='-L$libdir' |
| 6188 | hardcode_libdir_separator= |
| 6189 | fi |
| 6190 | esac |
| 6191 | shared_flag='-shared' |
| 6192 | else |
| 6193 | # not using gcc |
| 6194 | if test "$host_cpu" = ia64; then |
| 6195 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6196 | # chokes on -Wl,-G. The following line is correct: |
| 6197 | shared_flag='-G' |
| 6198 | else |
| 6199 | if test "$aix_use_runtimelinking" = yes; then |
| 6200 | shared_flag='${wl}-G' |
| 6201 | else |
| 6202 | shared_flag='${wl}-bM:SRE' |
| 6203 | fi |
| 6204 | fi |
| 6205 | fi |
| 6206 | |
| 6207 | # It seems that -bexpall does not export symbols beginning with |
| 6208 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6209 | always_export_symbols=yes |
| 6210 | if test "$aix_use_runtimelinking" = yes; then |
| 6211 | # Warning - without using the other runtime loading flags (-brtl), |
| 6212 | # -berok will link without error, but may produce a broken library. |
| 6213 | allow_undefined_flag='-berok' |
| 6214 | # Determine the default libpath from the value encoded in an empty executable. |
| 6215 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6216 | /* confdefs.h. */ |
| 6217 | _ACEOF |
| 6218 | cat confdefs.h >>conftest.$ac_ext |
| 6219 | cat >>conftest.$ac_ext <<_ACEOF |
| 6220 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6221 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6222 | int |
| 6223 | main () |
| 6224 | { |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6225 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6226 | ; |
| 6227 | return 0; |
| 6228 | } |
| 6229 | _ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6232 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6233 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6235 | rm -f conftest.er1 |
| 6236 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6238 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 6239 | { ac_try='test -z "$ac_c_werror_flag" |
| 6240 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6242 | (eval $ac_try) 2>&5 |
| 6243 | ac_status=$? |
| 6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6245 | (exit $ac_status); }; } && |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6246 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6248 | (eval $ac_try) 2>&5 |
| 6249 | ac_status=$? |
| 6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6251 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6252 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6253 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6254 | }'` |
| 6255 | # Check for a 64-bit object if we didn't find anything. |
| 6256 | 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; } |
| 6257 | }'`; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6258 | else |
| 6259 | echo "$as_me: failed program was:" >&5 |
| 6260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6261 | |
| 6262 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6263 | rm -f conftest.err conftest.$ac_objext \ |
| 6264 | conftest$ac_exeext conftest.$ac_ext |
| 6265 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6266 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6267 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6268 | 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" |
| 6269 | else |
| 6270 | if test "$host_cpu" = ia64; then |
| 6271 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6272 | allow_undefined_flag="-z nodefs" |
| 6273 | 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" |
| 6274 | else |
| 6275 | # Determine the default libpath from the value encoded in an empty executable. |
| 6276 | cat >conftest.$ac_ext <<_ACEOF |
| 6277 | /* confdefs.h. */ |
| 6278 | _ACEOF |
| 6279 | cat confdefs.h >>conftest.$ac_ext |
| 6280 | cat >>conftest.$ac_ext <<_ACEOF |
| 6281 | /* end confdefs.h. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6282 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6283 | int |
| 6284 | main () |
| 6285 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6286 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6287 | ; |
| 6288 | return 0; |
| 6289 | } |
| 6290 | _ACEOF |
| 6291 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6293 | (eval $ac_link) 2>conftest.er1 |
| 6294 | ac_status=$? |
| 6295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6296 | rm -f conftest.er1 |
| 6297 | cat conftest.err >&5 |
| 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6299 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 6300 | { ac_try='test -z "$ac_c_werror_flag" |
| 6301 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6303 | (eval $ac_try) 2>&5 |
| 6304 | ac_status=$? |
| 6305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6306 | (exit $ac_status); }; } && |
| 6307 | { ac_try='test -s conftest$ac_exeext' |
| 6308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6309 | (eval $ac_try) 2>&5 |
| 6310 | ac_status=$? |
| 6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6312 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6313 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6314 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6315 | }'` |
| 6316 | # Check for a 64-bit object if we didn't find anything. |
| 6317 | 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; } |
| 6318 | }'`; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6319 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6320 | echo "$as_me: failed program was:" >&5 |
| 6321 | sed 's/^/| /' conftest.$ac_ext >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6322 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6323 | fi |
| 6324 | rm -f conftest.err conftest.$ac_objext \ |
| 6325 | conftest$ac_exeext conftest.$ac_ext |
| 6326 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6327 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6328 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6329 | # Warning - without using the other run time loading flags, |
| 6330 | # -berok will link without error, but may produce a broken library. |
| 6331 | no_undefined_flag=' ${wl}-bernotok' |
| 6332 | allow_undefined_flag=' ${wl}-berok' |
| 6333 | # -bexpall does not export symbols beginning with underscore (_) |
| 6334 | always_export_symbols=yes |
| 6335 | # Exported symbols can be pulled into shared objects from archives |
| 6336 | whole_archive_flag_spec=' ' |
| 6337 | archive_cmds_need_lc=yes |
| 6338 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 6339 | 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' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6340 | fi |
| 6341 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6342 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6343 | |
| 6344 | amigaos*) |
| 6345 | 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)' |
| 6346 | hardcode_libdir_flag_spec='-L$libdir' |
| 6347 | hardcode_minus_L=yes |
| 6348 | # see comment about different semantics on the GNU ld section |
| 6349 | ld_shlibs=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6350 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6351 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6352 | bsdi4*) |
| 6353 | export_dynamic_flag_spec=-rdynamic |
| 6354 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6355 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6356 | cygwin* | mingw* | pw32*) |
| 6357 | # When not using gcc, we currently assume that we are using |
| 6358 | # Microsoft Visual C++. |
| 6359 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6360 | # no search path for DLLs. |
| 6361 | hardcode_libdir_flag_spec=' ' |
| 6362 | allow_undefined_flag=unsupported |
| 6363 | # Tell ltmain to make .lib files, not .a files. |
| 6364 | libext=lib |
| 6365 | # Tell ltmain to make .dll files, not .so files. |
| 6366 | shrext=".dll" |
| 6367 | # FIXME: Setting linknames here is a bad hack. |
| 6368 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 6369 | # The linker will automatically build a .lib file if we build a DLL. |
| 6370 | old_archive_From_new_cmds='true' |
| 6371 | # FIXME: Should let the user specify the lib program. |
| 6372 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 6373 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6374 | enable_shared_with_static_runtimes=yes |
| 6375 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6376 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6377 | darwin* | rhapsody*) |
| 6378 | if test "$GXX" = yes ; then |
| 6379 | archive_cmds_need_lc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6380 | case "$host_os" in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6381 | rhapsody* | darwin1.[012]) |
| 6382 | allow_undefined_flag='-undefined suppress' |
| 6383 | ;; |
| 6384 | *) # Darwin 1.3 on |
| 6385 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 6386 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 6387 | else |
| 6388 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 6389 | 10.[012]) |
| 6390 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 6391 | ;; |
| 6392 | 10.*) |
| 6393 | allow_undefined_flag='-undefined dynamic_lookup' |
| 6394 | ;; |
| 6395 | esac |
| 6396 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6397 | ;; |
| 6398 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6399 | lt_int_apple_cc_single_mod=no |
| 6400 | output_verbose_link_cmd='echo' |
| 6401 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 6402 | lt_int_apple_cc_single_mod=yes |
| 6403 | fi |
| 6404 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6405 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 6406 | else |
| 6407 | 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' |
| 6408 | fi |
| 6409 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 6410 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 6411 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6412 | 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}' |
| 6413 | else |
| 6414 | 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}' |
| 6415 | fi |
| 6416 | 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}' |
| 6417 | hardcode_direct=no |
| 6418 | hardcode_automatic=yes |
| 6419 | hardcode_shlibpath_var=unsupported |
| 6420 | whole_archive_flag_spec='-all_load $convenience' |
| 6421 | link_all_deplibs=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6422 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6423 | ld_shlibs=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6424 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6425 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6426 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6427 | dgux*) |
| 6428 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6429 | hardcode_libdir_flag_spec='-L$libdir' |
| 6430 | hardcode_shlibpath_var=no |
| 6431 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6432 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6433 | freebsd1*) |
| 6434 | ld_shlibs=no |
| 6435 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6436 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6437 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 6438 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 6439 | # does not break anything, and helps significantly (at the cost of a little |
| 6440 | # extra space). |
| 6441 | freebsd2.2*) |
| 6442 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 6443 | hardcode_libdir_flag_spec='-R$libdir' |
| 6444 | hardcode_direct=yes |
| 6445 | hardcode_shlibpath_var=no |
| 6446 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6447 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6448 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 6449 | freebsd2*) |
| 6450 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6451 | hardcode_direct=yes |
| 6452 | hardcode_minus_L=yes |
| 6453 | hardcode_shlibpath_var=no |
| 6454 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6455 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6456 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 6457 | freebsd* | kfreebsd*-gnu) |
| 6458 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 6459 | hardcode_libdir_flag_spec='-R$libdir' |
| 6460 | hardcode_direct=yes |
| 6461 | hardcode_shlibpath_var=no |
| 6462 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6463 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6464 | hpux9*) |
| 6465 | if test "$GCC" = yes; then |
| 6466 | 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' |
| 6467 | else |
| 6468 | 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' |
| 6469 | fi |
| 6470 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6471 | hardcode_libdir_separator=: |
| 6472 | hardcode_direct=yes |
| 6473 | |
| 6474 | # hardcode_minus_L: Not really in the search PATH, |
| 6475 | # but as the default location of the library. |
| 6476 | hardcode_minus_L=yes |
| 6477 | export_dynamic_flag_spec='${wl}-E' |
| 6478 | ;; |
| 6479 | |
| 6480 | hpux10* | hpux11*) |
| 6481 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 6482 | case "$host_cpu" in |
| 6483 | hppa*64*|ia64*) |
| 6484 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6485 | ;; |
| 6486 | *) |
| 6487 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 6488 | ;; |
| 6489 | esac |
| 6490 | else |
| 6491 | case "$host_cpu" in |
| 6492 | hppa*64*|ia64*) |
| 6493 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6494 | ;; |
| 6495 | *) |
| 6496 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 6497 | ;; |
| 6498 | esac |
| 6499 | fi |
| 6500 | if test "$with_gnu_ld" = no; then |
| 6501 | case "$host_cpu" in |
| 6502 | hppa*64*) |
| 6503 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6504 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 6505 | hardcode_libdir_separator=: |
| 6506 | hardcode_direct=no |
| 6507 | hardcode_shlibpath_var=no |
| 6508 | ;; |
| 6509 | ia64*) |
| 6510 | hardcode_libdir_flag_spec='-L$libdir' |
| 6511 | hardcode_direct=no |
| 6512 | hardcode_shlibpath_var=no |
| 6513 | |
| 6514 | # hardcode_minus_L: Not really in the search PATH, |
| 6515 | # but as the default location of the library. |
| 6516 | hardcode_minus_L=yes |
| 6517 | ;; |
| 6518 | *) |
| 6519 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6520 | hardcode_libdir_separator=: |
| 6521 | hardcode_direct=yes |
| 6522 | export_dynamic_flag_spec='${wl}-E' |
| 6523 | |
| 6524 | # hardcode_minus_L: Not really in the search PATH, |
| 6525 | # but as the default location of the library. |
| 6526 | hardcode_minus_L=yes |
| 6527 | ;; |
| 6528 | esac |
| 6529 | fi |
| 6530 | ;; |
| 6531 | |
| 6532 | irix5* | irix6* | nonstopux*) |
| 6533 | if test "$GCC" = yes; then |
| 6534 | 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' |
| 6535 | else |
| 6536 | 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' |
| 6537 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 6538 | fi |
| 6539 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6540 | hardcode_libdir_separator=: |
| 6541 | link_all_deplibs=yes |
| 6542 | ;; |
| 6543 | |
| 6544 | netbsd* | knetbsd*-gnu) |
| 6545 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6546 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 6547 | else |
| 6548 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 6549 | fi |
| 6550 | hardcode_libdir_flag_spec='-R$libdir' |
| 6551 | hardcode_direct=yes |
| 6552 | hardcode_shlibpath_var=no |
| 6553 | ;; |
| 6554 | |
| 6555 | newsos6) |
| 6556 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6557 | hardcode_direct=yes |
| 6558 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6559 | hardcode_libdir_separator=: |
| 6560 | hardcode_shlibpath_var=no |
| 6561 | ;; |
| 6562 | |
| 6563 | openbsd*) |
| 6564 | hardcode_direct=yes |
| 6565 | hardcode_shlibpath_var=no |
| 6566 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6567 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6568 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6569 | export_dynamic_flag_spec='${wl}-E' |
| 6570 | else |
| 6571 | case $host_os in |
| 6572 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 6573 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6574 | hardcode_libdir_flag_spec='-R$libdir' |
| 6575 | ;; |
| 6576 | *) |
| 6577 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6578 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6579 | ;; |
| 6580 | esac |
| 6581 | fi |
| 6582 | ;; |
| 6583 | |
| 6584 | os2*) |
| 6585 | hardcode_libdir_flag_spec='-L$libdir' |
| 6586 | hardcode_minus_L=yes |
| 6587 | allow_undefined_flag=unsupported |
| 6588 | 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' |
| 6589 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 6590 | ;; |
| 6591 | |
| 6592 | osf3*) |
| 6593 | if test "$GCC" = yes; then |
| 6594 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6595 | 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' |
| 6596 | else |
| 6597 | allow_undefined_flag=' -expect_unresolved \*' |
| 6598 | 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' |
| 6599 | fi |
| 6600 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6601 | hardcode_libdir_separator=: |
| 6602 | ;; |
| 6603 | |
| 6604 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 6605 | if test "$GCC" = yes; then |
| 6606 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6607 | 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' |
| 6608 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6609 | else |
| 6610 | allow_undefined_flag=' -expect_unresolved \*' |
| 6611 | 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' |
| 6612 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 6613 | $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' |
| 6614 | |
| 6615 | # Both c and cxx compiler support -rpath directly |
| 6616 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 6617 | fi |
| 6618 | hardcode_libdir_separator=: |
| 6619 | ;; |
| 6620 | |
| 6621 | sco3.2v5*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6622 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6623 | hardcode_shlibpath_var=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6624 | export_dynamic_flag_spec='${wl}-Bexport' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6625 | runpath_var=LD_RUN_PATH |
| 6626 | hardcode_runpath_var=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6627 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6628 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6629 | solaris*) |
| 6630 | no_undefined_flag=' -z text' |
| 6631 | if test "$GCC" = yes; then |
| 6632 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6633 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6634 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 6635 | else |
| 6636 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6637 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6638 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6639 | fi |
| 6640 | hardcode_libdir_flag_spec='-R$libdir' |
| 6641 | hardcode_shlibpath_var=no |
| 6642 | case $host_os in |
| 6643 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 6644 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6645 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 6646 | esac |
| 6647 | link_all_deplibs=yes |
| 6648 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6649 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6650 | sunos4*) |
| 6651 | if test "x$host_vendor" = xsequent; then |
| 6652 | # Use $CC to link under sequent, because it throws in some extra .o |
| 6653 | # files that make .init and .fini sections work. |
| 6654 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6655 | else |
| 6656 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 6657 | fi |
| 6658 | hardcode_libdir_flag_spec='-L$libdir' |
| 6659 | hardcode_direct=yes |
| 6660 | hardcode_minus_L=yes |
| 6661 | hardcode_shlibpath_var=no |
| 6662 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6663 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6664 | sysv4) |
| 6665 | case $host_vendor in |
| 6666 | sni) |
| 6667 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6668 | hardcode_direct=yes # is this really true??? |
| 6669 | ;; |
| 6670 | siemens) |
| 6671 | ## LD is ld it makes a PLAMLIB |
| 6672 | ## CC just makes a GrossModule. |
| 6673 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6674 | reload_cmds='$CC -r -o $output$reload_objs' |
| 6675 | hardcode_direct=no |
| 6676 | ;; |
| 6677 | motorola) |
| 6678 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6679 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 6680 | ;; |
| 6681 | esac |
| 6682 | runpath_var='LD_RUN_PATH' |
| 6683 | hardcode_shlibpath_var=no |
| 6684 | ;; |
| 6685 | |
| 6686 | sysv4.3*) |
| 6687 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6688 | hardcode_shlibpath_var=no |
| 6689 | export_dynamic_flag_spec='-Bexport' |
| 6690 | ;; |
| 6691 | |
| 6692 | sysv4*MP*) |
| 6693 | if test -d /usr/nec; then |
| 6694 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6695 | hardcode_shlibpath_var=no |
| 6696 | runpath_var=LD_RUN_PATH |
| 6697 | hardcode_runpath_var=yes |
| 6698 | ld_shlibs=yes |
| 6699 | fi |
| 6700 | ;; |
| 6701 | |
| 6702 | sysv4.2uw2*) |
| 6703 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6704 | hardcode_direct=yes |
| 6705 | hardcode_minus_L=no |
| 6706 | hardcode_shlibpath_var=no |
| 6707 | hardcode_runpath_var=yes |
| 6708 | runpath_var=LD_RUN_PATH |
| 6709 | ;; |
| 6710 | |
| 6711 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 6712 | no_undefined_flag='${wl}-z ${wl}text' |
| 6713 | if test "$GCC" = yes; then |
| 6714 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6715 | else |
| 6716 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6717 | fi |
| 6718 | runpath_var='LD_RUN_PATH' |
| 6719 | hardcode_shlibpath_var=no |
| 6720 | ;; |
| 6721 | |
| 6722 | sysv5*) |
| 6723 | no_undefined_flag=' -z text' |
| 6724 | # $CC -shared without GNU ld will not create a library from C++ |
| 6725 | # object files and a static libstdc++, better avoid it by now |
| 6726 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6727 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6728 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6729 | hardcode_libdir_flag_spec= |
| 6730 | hardcode_shlibpath_var=no |
| 6731 | runpath_var='LD_RUN_PATH' |
| 6732 | ;; |
| 6733 | |
| 6734 | uts4*) |
| 6735 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6736 | hardcode_libdir_flag_spec='-L$libdir' |
| 6737 | hardcode_shlibpath_var=no |
| 6738 | ;; |
| 6739 | |
| 6740 | *) |
| 6741 | ld_shlibs=no |
| 6742 | ;; |
| 6743 | esac |
| 6744 | fi |
| 6745 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6746 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 6747 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 6748 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6749 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6750 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6751 | if test "$GCC" = yes; then |
| 6752 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6753 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6754 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6755 | # |
| 6756 | # Do we need to explicitly link libc? |
| 6757 | # |
| 6758 | case "x$archive_cmds_need_lc" in |
| 6759 | x|xyes) |
| 6760 | # Assume -lc should be added |
| 6761 | archive_cmds_need_lc=yes |
| 6762 | |
| 6763 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 6764 | case $archive_cmds in |
| 6765 | *'~'*) |
| 6766 | # FIXME: we may have to deal with multi-command sequences. |
| 6767 | ;; |
| 6768 | '$CC '*) |
| 6769 | # Test whether the compiler implicitly links with -lc since on some |
| 6770 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 6771 | # to ld, don't add -lc before -lgcc. |
| 6772 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 6773 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 6774 | $rm conftest* |
| 6775 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6776 | |
| 6777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6778 | (eval $ac_compile) 2>&5 |
| 6779 | ac_status=$? |
| 6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6781 | (exit $ac_status); } 2>conftest.err; then |
| 6782 | soname=conftest |
| 6783 | lib=conftest |
| 6784 | libobjs=conftest.$ac_objext |
| 6785 | deplibs= |
| 6786 | wl=$lt_prog_compiler_wl |
| 6787 | compiler_flags=-v |
| 6788 | linker_flags=-v |
| 6789 | verstring= |
| 6790 | output_objdir=. |
| 6791 | libname=conftest |
| 6792 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 6793 | allow_undefined_flag= |
| 6794 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 6795 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 6796 | ac_status=$? |
| 6797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6798 | (exit $ac_status); } |
| 6799 | then |
| 6800 | archive_cmds_need_lc=no |
| 6801 | else |
| 6802 | archive_cmds_need_lc=yes |
| 6803 | fi |
| 6804 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 6805 | else |
| 6806 | cat conftest.err 1>&5 |
| 6807 | fi |
| 6808 | $rm conftest* |
| 6809 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 6810 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 6811 | ;; |
| 6812 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6813 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6814 | ;; |
| 6815 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6816 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6817 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6818 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6819 | library_names_spec= |
| 6820 | libname_spec='lib$name' |
| 6821 | soname_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6822 | shrext=".so" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6823 | postinstall_cmds= |
| 6824 | postuninstall_cmds= |
| 6825 | finish_cmds= |
| 6826 | finish_eval= |
| 6827 | shlibpath_var= |
| 6828 | shlibpath_overrides_runpath=unknown |
| 6829 | version_type=none |
| 6830 | dynamic_linker="$host_os ld.so" |
| 6831 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6832 | if test "$GCC" = yes; then |
| 6833 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6834 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 6835 | # if the path contains ";" then we assume it to be the separator |
| 6836 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 6837 | # assumed that no part of a normal pathname contains ";" but that should |
| 6838 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 6839 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6840 | else |
| 6841 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6842 | fi |
| 6843 | else |
| 6844 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6845 | fi |
| 6846 | need_lib_prefix=unknown |
| 6847 | hardcode_into_libs=no |
| 6848 | |
| 6849 | # when you set need_version to no, make sure it does not cause -set_version |
| 6850 | # flags to be left without arguments |
| 6851 | need_version=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6852 | |
| 6853 | case $host_os in |
| 6854 | aix3*) |
| 6855 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6856 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6857 | shlibpath_var=LIBPATH |
| 6858 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6859 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 6860 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6861 | ;; |
| 6862 | |
| 6863 | aix4* | aix5*) |
| 6864 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6865 | need_lib_prefix=no |
| 6866 | need_version=no |
| 6867 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6868 | if test "$host_cpu" = ia64; then |
| 6869 | # AIX 5 supports IA64 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6870 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6871 | shlibpath_var=LD_LIBRARY_PATH |
| 6872 | else |
| 6873 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6874 | # for dependence libraries. The import file would start with |
| 6875 | # the line `#! .'. This would cause the generated library to |
| 6876 | # depend on `.', always an invalid library. This was fixed in |
| 6877 | # development snapshots of GCC prior to 3.0. |
| 6878 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6879 | aix4 | aix4.[01] | aix4.[01].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6880 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6881 | echo ' yes ' |
| 6882 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6883 | : |
| 6884 | else |
| 6885 | can_build_shared=no |
| 6886 | fi |
| 6887 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6888 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6889 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 6890 | # soname into executable. Probably we can add versioning support to |
| 6891 | # collect2, so additional links can be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6892 | if test "$aix_use_runtimelinking" = yes; then |
| 6893 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6894 | # instead of lib<name>.a to let people know that these are not |
| 6895 | # typical AIX shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6897 | else |
| 6898 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6899 | # and later when we are not doing run time linking. |
| 6900 | library_names_spec='${libname}${release}.a $libname.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6901 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6902 | fi |
| 6903 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6904 | fi |
| 6905 | ;; |
| 6906 | |
| 6907 | amigaos*) |
| 6908 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6909 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6910 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6911 | ;; |
| 6912 | |
| 6913 | beos*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6914 | library_names_spec='${libname}${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6915 | dynamic_linker="$host_os ld.so" |
| 6916 | shlibpath_var=LIBRARY_PATH |
| 6917 | ;; |
| 6918 | |
| 6919 | bsdi4*) |
| 6920 | version_type=linux |
| 6921 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6923 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6924 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6925 | shlibpath_var=LD_LIBRARY_PATH |
| 6926 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6927 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6928 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6929 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6930 | # libtool to hard-code these into programs |
| 6931 | ;; |
| 6932 | |
| 6933 | cygwin* | mingw* | pw32*) |
| 6934 | version_type=windows |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6935 | shrext=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6936 | need_version=no |
| 6937 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6938 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6939 | case $GCC,$host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6940 | yes,cygwin* | yes,mingw* | yes,pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6941 | library_names_spec='$libname.dll.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6942 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 6943 | postinstall_cmds='base_file=`basename \${file}`~ |
| 6944 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6945 | dldir=$destdir/`dirname \$dlpath`~ |
| 6946 | test -d \$dldir || mkdir -p \$dldir~ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6947 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 6948 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6949 | dlpath=$dir/\$dldll~ |
| 6950 | $rm \$dlpath' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6951 | shlibpath_overrides_runpath=yes |
| 6952 | |
| 6953 | case $host_os in |
| 6954 | cygwin*) |
| 6955 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 6956 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6957 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 6958 | ;; |
| 6959 | mingw*) |
| 6960 | # MinGW DLLs use traditional 'lib' prefix |
| 6961 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6962 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6963 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 6964 | # It is most probably a Windows format PATH printed by |
| 6965 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 6966 | # path with ; separators, and with drive letters. We can handle the |
| 6967 | # drive letters (cygwin fileutils understands them), so leave them, |
| 6968 | # especially as we might pass files found there to a mingw objdump, |
| 6969 | # which wouldn't understand a cygwinified path. Ahh. |
| 6970 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6971 | else |
| 6972 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6973 | fi |
| 6974 | ;; |
| 6975 | pw32*) |
| 6976 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 6977 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 6978 | ;; |
| 6979 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6980 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6981 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6982 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6983 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6984 | ;; |
| 6985 | esac |
| 6986 | dynamic_linker='Win32 ld.exe' |
| 6987 | # FIXME: first we should search . and the directory the executable is in |
| 6988 | shlibpath_var=PATH |
| 6989 | ;; |
| 6990 | |
| 6991 | darwin* | rhapsody*) |
| 6992 | dynamic_linker="$host_os dyld" |
| 6993 | version_type=darwin |
| 6994 | need_lib_prefix=no |
| 6995 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6996 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 6997 | soname_spec='${libname}${release}${major}$shared_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6998 | shlibpath_overrides_runpath=yes |
| 6999 | shlibpath_var=DYLD_LIBRARY_PATH |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7000 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 7001 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7002 | if test "$GCC" = yes; then |
| 7003 | 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"` |
| 7004 | else |
| 7005 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 7006 | fi |
| 7007 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7008 | ;; |
| 7009 | |
| 7010 | dgux*) |
| 7011 | version_type=linux |
| 7012 | need_lib_prefix=no |
| 7013 | need_version=no |
| 7014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7015 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7016 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7017 | ;; |
| 7018 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7019 | freebsd1*) |
| 7020 | dynamic_linker=no |
| 7021 | ;; |
| 7022 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7023 | kfreebsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7024 | version_type=linux |
| 7025 | need_lib_prefix=no |
| 7026 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7028 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7029 | shlibpath_var=LD_LIBRARY_PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7030 | shlibpath_overrides_runpath=no |
| 7031 | hardcode_into_libs=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7032 | dynamic_linker='GNU ld.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7033 | ;; |
| 7034 | |
| 7035 | freebsd*) |
| 7036 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7037 | version_type=freebsd-$objformat |
| 7038 | case $version_type in |
| 7039 | freebsd-elf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7041 | need_version=no |
| 7042 | need_lib_prefix=no |
| 7043 | ;; |
| 7044 | freebsd-*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7045 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7046 | need_version=yes |
| 7047 | ;; |
| 7048 | esac |
| 7049 | shlibpath_var=LD_LIBRARY_PATH |
| 7050 | case $host_os in |
| 7051 | freebsd2*) |
| 7052 | shlibpath_overrides_runpath=yes |
| 7053 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7054 | freebsd3.01* | freebsdelf3.01*) |
| 7055 | shlibpath_overrides_runpath=yes |
| 7056 | hardcode_into_libs=yes |
| 7057 | ;; |
| 7058 | *) # from 3.2 on |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7059 | shlibpath_overrides_runpath=no |
| 7060 | hardcode_into_libs=yes |
| 7061 | ;; |
| 7062 | esac |
| 7063 | ;; |
| 7064 | |
| 7065 | gnu*) |
| 7066 | version_type=linux |
| 7067 | need_lib_prefix=no |
| 7068 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7070 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7071 | shlibpath_var=LD_LIBRARY_PATH |
| 7072 | hardcode_into_libs=yes |
| 7073 | ;; |
| 7074 | |
| 7075 | hpux9* | hpux10* | hpux11*) |
| 7076 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7077 | # link against other versions. |
| 7078 | version_type=sunos |
| 7079 | need_lib_prefix=no |
| 7080 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7081 | case "$host_cpu" in |
| 7082 | ia64*) |
| 7083 | shrext='.so' |
| 7084 | hardcode_into_libs=yes |
| 7085 | dynamic_linker="$host_os dld.so" |
| 7086 | shlibpath_var=LD_LIBRARY_PATH |
| 7087 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7089 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7090 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7091 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7092 | else |
| 7093 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7094 | fi |
| 7095 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7096 | ;; |
| 7097 | hppa*64*) |
| 7098 | shrext='.sl' |
| 7099 | hardcode_into_libs=yes |
| 7100 | dynamic_linker="$host_os dld.sl" |
| 7101 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7102 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7104 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7105 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7106 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7107 | ;; |
| 7108 | *) |
| 7109 | shrext='.sl' |
| 7110 | dynamic_linker="$host_os dld.sl" |
| 7111 | shlibpath_var=SHLIB_PATH |
| 7112 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7114 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7115 | ;; |
| 7116 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7117 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7118 | postinstall_cmds='chmod 555 $lib' |
| 7119 | ;; |
| 7120 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7121 | irix5* | irix6* | nonstopux*) |
| 7122 | case $host_os in |
| 7123 | nonstopux*) version_type=nonstopux ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7124 | *) |
| 7125 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7126 | version_type=linux |
| 7127 | else |
| 7128 | version_type=irix |
| 7129 | fi ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7130 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7131 | need_lib_prefix=no |
| 7132 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7133 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7135 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7136 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7137 | libsuff= shlibsuff= |
| 7138 | ;; |
| 7139 | *) |
| 7140 | case $LD in # libtool.m4 will add one of these switches to LD |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7141 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7142 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7143 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7144 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7145 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7146 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7147 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7148 | esac |
| 7149 | ;; |
| 7150 | esac |
| 7151 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7152 | shlibpath_overrides_runpath=no |
| 7153 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7154 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7155 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7156 | ;; |
| 7157 | |
| 7158 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7159 | linux*oldld* | linux*aout* | linux*coff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7160 | dynamic_linker=no |
| 7161 | ;; |
| 7162 | |
| 7163 | # This must be Linux ELF. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7164 | linux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7165 | version_type=linux |
| 7166 | need_lib_prefix=no |
| 7167 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7169 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7170 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7171 | shlibpath_var=LD_LIBRARY_PATH |
| 7172 | shlibpath_overrides_runpath=no |
| 7173 | # This implies no fast_install, which is unacceptable. |
| 7174 | # Some rework will be needed to allow for fast_install |
| 7175 | # before this can be enabled. |
| 7176 | hardcode_into_libs=yes |
| 7177 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7178 | # Append ld.so.conf contents to the search path |
| 7179 | if test -f /etc/ld.so.conf; then |
| 7180 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
| 7181 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
| 7182 | fi |
| 7183 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7184 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7185 | # powerpc, because MkLinux only supported shared libraries with the |
| 7186 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7187 | # most powerpc-linux boxes support dynamic linking these days and |
| 7188 | # people can always --disable-shared, the test was removed, and we |
| 7189 | # assume the GNU/Linux dynamic linker is in use. |
| 7190 | dynamic_linker='GNU/Linux ld.so' |
| 7191 | ;; |
| 7192 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7193 | knetbsd*-gnu) |
| 7194 | version_type=linux |
| 7195 | need_lib_prefix=no |
| 7196 | need_version=no |
| 7197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7198 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7199 | shlibpath_var=LD_LIBRARY_PATH |
| 7200 | shlibpath_overrides_runpath=no |
| 7201 | hardcode_into_libs=yes |
| 7202 | dynamic_linker='GNU ld.so' |
| 7203 | ;; |
| 7204 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7205 | netbsd*) |
| 7206 | version_type=sunos |
| 7207 | need_lib_prefix=no |
| 7208 | need_version=no |
| 7209 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7211 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7212 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7213 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7215 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7216 | dynamic_linker='NetBSD ld.elf_so' |
| 7217 | fi |
| 7218 | shlibpath_var=LD_LIBRARY_PATH |
| 7219 | shlibpath_overrides_runpath=yes |
| 7220 | hardcode_into_libs=yes |
| 7221 | ;; |
| 7222 | |
| 7223 | newsos6) |
| 7224 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7226 | shlibpath_var=LD_LIBRARY_PATH |
| 7227 | shlibpath_overrides_runpath=yes |
| 7228 | ;; |
| 7229 | |
| 7230 | nto-qnx*) |
| 7231 | version_type=linux |
| 7232 | need_lib_prefix=no |
| 7233 | need_version=no |
| 7234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7235 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7236 | shlibpath_var=LD_LIBRARY_PATH |
| 7237 | shlibpath_overrides_runpath=yes |
| 7238 | ;; |
| 7239 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7240 | openbsd*) |
| 7241 | version_type=sunos |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7242 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7243 | need_version=yes |
| 7244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7245 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7246 | shlibpath_var=LD_LIBRARY_PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7247 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7248 | case $host_os in |
| 7249 | openbsd2.[89] | openbsd2.[89].*) |
| 7250 | shlibpath_overrides_runpath=no |
| 7251 | ;; |
| 7252 | *) |
| 7253 | shlibpath_overrides_runpath=yes |
| 7254 | ;; |
| 7255 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7256 | else |
| 7257 | shlibpath_overrides_runpath=yes |
| 7258 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7259 | ;; |
| 7260 | |
| 7261 | os2*) |
| 7262 | libname_spec='$name' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7263 | shrext=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7264 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7265 | library_names_spec='$libname${shared_ext} $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7266 | dynamic_linker='OS/2 ld.exe' |
| 7267 | shlibpath_var=LIBPATH |
| 7268 | ;; |
| 7269 | |
| 7270 | osf3* | osf4* | osf5*) |
| 7271 | version_type=osf |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7272 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7273 | need_version=no |
| 7274 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7276 | shlibpath_var=LD_LIBRARY_PATH |
| 7277 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7278 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7279 | ;; |
| 7280 | |
| 7281 | sco3.2v5*) |
| 7282 | version_type=osf |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7283 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7285 | shlibpath_var=LD_LIBRARY_PATH |
| 7286 | ;; |
| 7287 | |
| 7288 | solaris*) |
| 7289 | version_type=linux |
| 7290 | need_lib_prefix=no |
| 7291 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7293 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7294 | shlibpath_var=LD_LIBRARY_PATH |
| 7295 | shlibpath_overrides_runpath=yes |
| 7296 | hardcode_into_libs=yes |
| 7297 | # ldd complains unless libraries are executable |
| 7298 | postinstall_cmds='chmod +x $lib' |
| 7299 | ;; |
| 7300 | |
| 7301 | sunos4*) |
| 7302 | version_type=sunos |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7304 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7305 | shlibpath_var=LD_LIBRARY_PATH |
| 7306 | shlibpath_overrides_runpath=yes |
| 7307 | if test "$with_gnu_ld" = yes; then |
| 7308 | need_lib_prefix=no |
| 7309 | fi |
| 7310 | need_version=yes |
| 7311 | ;; |
| 7312 | |
| 7313 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7314 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7316 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7317 | shlibpath_var=LD_LIBRARY_PATH |
| 7318 | case $host_vendor in |
| 7319 | sni) |
| 7320 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7321 | need_lib_prefix=no |
| 7322 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7323 | runpath_var=LD_RUN_PATH |
| 7324 | ;; |
| 7325 | siemens) |
| 7326 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7327 | ;; |
| 7328 | motorola) |
| 7329 | need_lib_prefix=no |
| 7330 | need_version=no |
| 7331 | shlibpath_overrides_runpath=no |
| 7332 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7333 | ;; |
| 7334 | esac |
| 7335 | ;; |
| 7336 | |
| 7337 | sysv4*MP*) |
| 7338 | if test -d /usr/nec ;then |
| 7339 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7340 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7341 | soname_spec='$libname${shared_ext}.$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7342 | shlibpath_var=LD_LIBRARY_PATH |
| 7343 | fi |
| 7344 | ;; |
| 7345 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7346 | uts4*) |
| 7347 | version_type=linux |
| 7348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7349 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7350 | shlibpath_var=LD_LIBRARY_PATH |
| 7351 | ;; |
| 7352 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7353 | *) |
| 7354 | dynamic_linker=no |
| 7355 | ;; |
| 7356 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7357 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7358 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7359 | test "$dynamic_linker" = no && can_build_shared=no |
| 7360 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7361 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 7362 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 7363 | hardcode_action= |
| 7364 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 7365 | test -n "$runpath_var " || \ |
| 7366 | test "X$hardcode_automatic"="Xyes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7367 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7368 | # We can hardcode non-existant directories. |
| 7369 | if test "$hardcode_direct" != no && |
| 7370 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 7371 | # have to relink, otherwise we might link with an installed library |
| 7372 | # when we should be linking with a yet-to-be-installed one |
| 7373 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 7374 | test "$hardcode_minus_L" != no; then |
| 7375 | # Linking always hardcodes the temporary library directory. |
| 7376 | hardcode_action=relink |
| 7377 | else |
| 7378 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 7379 | hardcode_action=immediate |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7380 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7381 | else |
| 7382 | # We cannot hardcode anything, or else we can only hardcode existing |
| 7383 | # directories. |
| 7384 | hardcode_action=unsupported |
| 7385 | fi |
| 7386 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 7387 | echo "${ECHO_T}$hardcode_action" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7388 | |
| 7389 | if test "$hardcode_action" = relink; then |
| 7390 | # Fast installation is not supported |
| 7391 | enable_fast_install=no |
| 7392 | elif test "$shlibpath_overrides_runpath" = yes || |
| 7393 | test "$enable_shared" = no; then |
| 7394 | # Fast installation is not necessary |
| 7395 | enable_fast_install=needless |
| 7396 | fi |
| 7397 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7398 | striplib= |
| 7399 | old_striplib= |
| 7400 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 7401 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 7402 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 7403 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 7404 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 7405 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7406 | echo "${ECHO_T}yes" >&6 |
| 7407 | else |
| 7408 | # FIXME - insert some real tests, host_os isn't really good enough |
| 7409 | case $host_os in |
| 7410 | darwin*) |
| 7411 | if test -n "$STRIP" ; then |
| 7412 | striplib="$STRIP -x" |
| 7413 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7414 | echo "${ECHO_T}yes" >&6 |
| 7415 | else |
| 7416 | echo "$as_me:$LINENO: result: no" >&5 |
| 7417 | echo "${ECHO_T}no" >&6 |
| 7418 | fi |
| 7419 | ;; |
| 7420 | *) |
| 7421 | echo "$as_me:$LINENO: result: no" >&5 |
| 7422 | echo "${ECHO_T}no" >&6 |
| 7423 | ;; |
| 7424 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7425 | fi |
| 7426 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7427 | if test "x$enable_dlopen" != xyes; then |
| 7428 | enable_dlopen=unknown |
| 7429 | enable_dlopen_self=unknown |
| 7430 | enable_dlopen_self_static=unknown |
| 7431 | else |
| 7432 | lt_cv_dlopen=no |
| 7433 | lt_cv_dlopen_libs= |
| 7434 | |
| 7435 | case $host_os in |
| 7436 | beos*) |
| 7437 | lt_cv_dlopen="load_add_on" |
| 7438 | lt_cv_dlopen_libs= |
| 7439 | lt_cv_dlopen_self=yes |
| 7440 | ;; |
| 7441 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7442 | mingw* | pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7443 | lt_cv_dlopen="LoadLibrary" |
| 7444 | lt_cv_dlopen_libs= |
| 7445 | ;; |
| 7446 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7447 | cygwin*) |
| 7448 | lt_cv_dlopen="dlopen" |
| 7449 | lt_cv_dlopen_libs= |
| 7450 | ;; |
| 7451 | |
| 7452 | darwin*) |
| 7453 | # if libdl is installed we need to link against it |
| 7454 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7455 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7456 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7458 | else |
| 7459 | ac_check_lib_save_LIBS=$LIBS |
| 7460 | LIBS="-ldl $LIBS" |
| 7461 | cat >conftest.$ac_ext <<_ACEOF |
| 7462 | /* confdefs.h. */ |
| 7463 | _ACEOF |
| 7464 | cat confdefs.h >>conftest.$ac_ext |
| 7465 | cat >>conftest.$ac_ext <<_ACEOF |
| 7466 | /* end confdefs.h. */ |
| 7467 | |
| 7468 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7469 | #ifdef __cplusplus |
| 7470 | extern "C" |
| 7471 | #endif |
| 7472 | /* We use char because int might match the return type of a gcc2 |
| 7473 | builtin and then its argument prototype would still apply. */ |
| 7474 | char dlopen (); |
| 7475 | int |
| 7476 | main () |
| 7477 | { |
| 7478 | dlopen (); |
| 7479 | ; |
| 7480 | return 0; |
| 7481 | } |
| 7482 | _ACEOF |
| 7483 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7485 | (eval $ac_link) 2>conftest.er1 |
| 7486 | ac_status=$? |
| 7487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7488 | rm -f conftest.er1 |
| 7489 | cat conftest.err >&5 |
| 7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7491 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7492 | { ac_try='test -z "$ac_c_werror_flag" |
| 7493 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7495 | (eval $ac_try) 2>&5 |
| 7496 | ac_status=$? |
| 7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7498 | (exit $ac_status); }; } && |
| 7499 | { ac_try='test -s conftest$ac_exeext' |
| 7500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7501 | (eval $ac_try) 2>&5 |
| 7502 | ac_status=$? |
| 7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7504 | (exit $ac_status); }; }; then |
| 7505 | ac_cv_lib_dl_dlopen=yes |
| 7506 | else |
| 7507 | echo "$as_me: failed program was:" >&5 |
| 7508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7509 | |
| 7510 | ac_cv_lib_dl_dlopen=no |
| 7511 | fi |
| 7512 | rm -f conftest.err conftest.$ac_objext \ |
| 7513 | conftest$ac_exeext conftest.$ac_ext |
| 7514 | LIBS=$ac_check_lib_save_LIBS |
| 7515 | fi |
| 7516 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7517 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7518 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7519 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 7520 | else |
| 7521 | |
| 7522 | lt_cv_dlopen="dyld" |
| 7523 | lt_cv_dlopen_libs= |
| 7524 | lt_cv_dlopen_self=yes |
| 7525 | |
| 7526 | fi |
| 7527 | |
| 7528 | ;; |
| 7529 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7530 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7531 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7532 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 7533 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 7534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7535 | else |
| 7536 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7537 | /* confdefs.h. */ |
| 7538 | _ACEOF |
| 7539 | cat confdefs.h >>conftest.$ac_ext |
| 7540 | cat >>conftest.$ac_ext <<_ACEOF |
| 7541 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7542 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 7543 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7544 | #define shl_load innocuous_shl_load |
| 7545 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7546 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7547 | which can conflict with char shl_load (); below. |
| 7548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7549 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7550 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7551 | #ifdef __STDC__ |
| 7552 | # include <limits.h> |
| 7553 | #else |
| 7554 | # include <assert.h> |
| 7555 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7556 | |
| 7557 | #undef shl_load |
| 7558 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7559 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7560 | #ifdef __cplusplus |
| 7561 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7562 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7563 | #endif |
| 7564 | /* We use char because int might match the return type of a gcc2 |
| 7565 | builtin and then its argument prototype would still apply. */ |
| 7566 | char shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7567 | /* The GNU C library defines this for functions which it implements |
| 7568 | to always fail with ENOSYS. Some functions are actually named |
| 7569 | something starting with __ and the normal name is an alias. */ |
| 7570 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 7571 | choke me |
| 7572 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7573 | char (*f) () = shl_load; |
| 7574 | #endif |
| 7575 | #ifdef __cplusplus |
| 7576 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7577 | #endif |
| 7578 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7579 | int |
| 7580 | main () |
| 7581 | { |
| 7582 | return f != shl_load; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7583 | ; |
| 7584 | return 0; |
| 7585 | } |
| 7586 | _ACEOF |
| 7587 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7589 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7590 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7592 | rm -f conftest.er1 |
| 7593 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7595 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7596 | { ac_try='test -z "$ac_c_werror_flag" |
| 7597 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7599 | (eval $ac_try) 2>&5 |
| 7600 | ac_status=$? |
| 7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7602 | (exit $ac_status); }; } && |
| 7603 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7605 | (eval $ac_try) 2>&5 |
| 7606 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7608 | (exit $ac_status); }; }; then |
| 7609 | ac_cv_func_shl_load=yes |
| 7610 | else |
| 7611 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7613 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7614 | ac_cv_func_shl_load=no |
| 7615 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7616 | rm -f conftest.err conftest.$ac_objext \ |
| 7617 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7618 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7619 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7620 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 7621 | if test $ac_cv_func_shl_load = yes; then |
| 7622 | lt_cv_dlopen="shl_load" |
| 7623 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7624 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7625 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 7626 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 7627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7628 | else |
| 7629 | ac_check_lib_save_LIBS=$LIBS |
| 7630 | LIBS="-ldld $LIBS" |
| 7631 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7632 | /* confdefs.h. */ |
| 7633 | _ACEOF |
| 7634 | cat confdefs.h >>conftest.$ac_ext |
| 7635 | cat >>conftest.$ac_ext <<_ACEOF |
| 7636 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7637 | |
| 7638 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7639 | #ifdef __cplusplus |
| 7640 | extern "C" |
| 7641 | #endif |
| 7642 | /* We use char because int might match the return type of a gcc2 |
| 7643 | builtin and then its argument prototype would still apply. */ |
| 7644 | char shl_load (); |
| 7645 | int |
| 7646 | main () |
| 7647 | { |
| 7648 | shl_load (); |
| 7649 | ; |
| 7650 | return 0; |
| 7651 | } |
| 7652 | _ACEOF |
| 7653 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7655 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7656 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7658 | rm -f conftest.er1 |
| 7659 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7661 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7662 | { ac_try='test -z "$ac_c_werror_flag" |
| 7663 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7665 | (eval $ac_try) 2>&5 |
| 7666 | ac_status=$? |
| 7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7668 | (exit $ac_status); }; } && |
| 7669 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7671 | (eval $ac_try) 2>&5 |
| 7672 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7674 | (exit $ac_status); }; }; then |
| 7675 | ac_cv_lib_dld_shl_load=yes |
| 7676 | else |
| 7677 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7679 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7680 | ac_cv_lib_dld_shl_load=no |
| 7681 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7682 | rm -f conftest.err conftest.$ac_objext \ |
| 7683 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7684 | LIBS=$ac_check_lib_save_LIBS |
| 7685 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7686 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7687 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 7688 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 7689 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 7690 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7691 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 7692 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 7693 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 7694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7695 | else |
| 7696 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7697 | /* confdefs.h. */ |
| 7698 | _ACEOF |
| 7699 | cat confdefs.h >>conftest.$ac_ext |
| 7700 | cat >>conftest.$ac_ext <<_ACEOF |
| 7701 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7702 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 7703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7704 | #define dlopen innocuous_dlopen |
| 7705 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7706 | /* System header to define __stub macros and hopefully few prototypes, |
| 7707 | which can conflict with char dlopen (); below. |
| 7708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7709 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7710 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7711 | #ifdef __STDC__ |
| 7712 | # include <limits.h> |
| 7713 | #else |
| 7714 | # include <assert.h> |
| 7715 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7716 | |
| 7717 | #undef dlopen |
| 7718 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7719 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7720 | #ifdef __cplusplus |
| 7721 | extern "C" |
| 7722 | { |
| 7723 | #endif |
| 7724 | /* We use char because int might match the return type of a gcc2 |
| 7725 | builtin and then its argument prototype would still apply. */ |
| 7726 | char dlopen (); |
| 7727 | /* The GNU C library defines this for functions which it implements |
| 7728 | to always fail with ENOSYS. Some functions are actually named |
| 7729 | something starting with __ and the normal name is an alias. */ |
| 7730 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 7731 | choke me |
| 7732 | #else |
| 7733 | char (*f) () = dlopen; |
| 7734 | #endif |
| 7735 | #ifdef __cplusplus |
| 7736 | } |
| 7737 | #endif |
| 7738 | |
| 7739 | int |
| 7740 | main () |
| 7741 | { |
| 7742 | return f != dlopen; |
| 7743 | ; |
| 7744 | return 0; |
| 7745 | } |
| 7746 | _ACEOF |
| 7747 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7749 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7750 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7752 | rm -f conftest.er1 |
| 7753 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7755 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7756 | { ac_try='test -z "$ac_c_werror_flag" |
| 7757 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7759 | (eval $ac_try) 2>&5 |
| 7760 | ac_status=$? |
| 7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7762 | (exit $ac_status); }; } && |
| 7763 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7765 | (eval $ac_try) 2>&5 |
| 7766 | ac_status=$? |
| 7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7768 | (exit $ac_status); }; }; then |
| 7769 | ac_cv_func_dlopen=yes |
| 7770 | else |
| 7771 | echo "$as_me: failed program was:" >&5 |
| 7772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7773 | |
| 7774 | ac_cv_func_dlopen=no |
| 7775 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7776 | rm -f conftest.err conftest.$ac_objext \ |
| 7777 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7778 | fi |
| 7779 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 7780 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 7781 | if test $ac_cv_func_dlopen = yes; then |
| 7782 | lt_cv_dlopen="dlopen" |
| 7783 | else |
| 7784 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7785 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7786 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7788 | else |
| 7789 | ac_check_lib_save_LIBS=$LIBS |
| 7790 | LIBS="-ldl $LIBS" |
| 7791 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7792 | /* confdefs.h. */ |
| 7793 | _ACEOF |
| 7794 | cat confdefs.h >>conftest.$ac_ext |
| 7795 | cat >>conftest.$ac_ext <<_ACEOF |
| 7796 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7797 | |
| 7798 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7799 | #ifdef __cplusplus |
| 7800 | extern "C" |
| 7801 | #endif |
| 7802 | /* We use char because int might match the return type of a gcc2 |
| 7803 | builtin and then its argument prototype would still apply. */ |
| 7804 | char dlopen (); |
| 7805 | int |
| 7806 | main () |
| 7807 | { |
| 7808 | dlopen (); |
| 7809 | ; |
| 7810 | return 0; |
| 7811 | } |
| 7812 | _ACEOF |
| 7813 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7815 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7816 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7818 | rm -f conftest.er1 |
| 7819 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7821 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7822 | { ac_try='test -z "$ac_c_werror_flag" |
| 7823 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7825 | (eval $ac_try) 2>&5 |
| 7826 | ac_status=$? |
| 7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7828 | (exit $ac_status); }; } && |
| 7829 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7831 | (eval $ac_try) 2>&5 |
| 7832 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7834 | (exit $ac_status); }; }; then |
| 7835 | ac_cv_lib_dl_dlopen=yes |
| 7836 | else |
| 7837 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7839 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7840 | ac_cv_lib_dl_dlopen=no |
| 7841 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7842 | rm -f conftest.err conftest.$ac_objext \ |
| 7843 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7844 | LIBS=$ac_check_lib_save_LIBS |
| 7845 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7846 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7847 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7848 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7849 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 7850 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7851 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7852 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 7853 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7855 | else |
| 7856 | ac_check_lib_save_LIBS=$LIBS |
| 7857 | LIBS="-lsvld $LIBS" |
| 7858 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7859 | /* confdefs.h. */ |
| 7860 | _ACEOF |
| 7861 | cat confdefs.h >>conftest.$ac_ext |
| 7862 | cat >>conftest.$ac_ext <<_ACEOF |
| 7863 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7864 | |
| 7865 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7866 | #ifdef __cplusplus |
| 7867 | extern "C" |
| 7868 | #endif |
| 7869 | /* We use char because int might match the return type of a gcc2 |
| 7870 | builtin and then its argument prototype would still apply. */ |
| 7871 | char dlopen (); |
| 7872 | int |
| 7873 | main () |
| 7874 | { |
| 7875 | dlopen (); |
| 7876 | ; |
| 7877 | return 0; |
| 7878 | } |
| 7879 | _ACEOF |
| 7880 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7882 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7883 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7885 | rm -f conftest.er1 |
| 7886 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7888 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7889 | { ac_try='test -z "$ac_c_werror_flag" |
| 7890 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7892 | (eval $ac_try) 2>&5 |
| 7893 | ac_status=$? |
| 7894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7895 | (exit $ac_status); }; } && |
| 7896 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7898 | (eval $ac_try) 2>&5 |
| 7899 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7901 | (exit $ac_status); }; }; then |
| 7902 | ac_cv_lib_svld_dlopen=yes |
| 7903 | else |
| 7904 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7906 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7907 | ac_cv_lib_svld_dlopen=no |
| 7908 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7909 | rm -f conftest.err conftest.$ac_objext \ |
| 7910 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7911 | LIBS=$ac_check_lib_save_LIBS |
| 7912 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7913 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7914 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 7915 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 7916 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7917 | else |
| 7918 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 7919 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 7920 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 7921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7922 | else |
| 7923 | ac_check_lib_save_LIBS=$LIBS |
| 7924 | LIBS="-ldld $LIBS" |
| 7925 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7926 | /* confdefs.h. */ |
| 7927 | _ACEOF |
| 7928 | cat confdefs.h >>conftest.$ac_ext |
| 7929 | cat >>conftest.$ac_ext <<_ACEOF |
| 7930 | /* end confdefs.h. */ |
| 7931 | |
| 7932 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7933 | #ifdef __cplusplus |
| 7934 | extern "C" |
| 7935 | #endif |
| 7936 | /* We use char because int might match the return type of a gcc2 |
| 7937 | builtin and then its argument prototype would still apply. */ |
| 7938 | char dld_link (); |
| 7939 | int |
| 7940 | main () |
| 7941 | { |
| 7942 | dld_link (); |
| 7943 | ; |
| 7944 | return 0; |
| 7945 | } |
| 7946 | _ACEOF |
| 7947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7949 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7950 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7952 | rm -f conftest.er1 |
| 7953 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7955 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7956 | { ac_try='test -z "$ac_c_werror_flag" |
| 7957 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7959 | (eval $ac_try) 2>&5 |
| 7960 | ac_status=$? |
| 7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7962 | (exit $ac_status); }; } && |
| 7963 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7965 | (eval $ac_try) 2>&5 |
| 7966 | ac_status=$? |
| 7967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7968 | (exit $ac_status); }; }; then |
| 7969 | ac_cv_lib_dld_dld_link=yes |
| 7970 | else |
| 7971 | echo "$as_me: failed program was:" >&5 |
| 7972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7973 | |
| 7974 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7975 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7976 | rm -f conftest.err conftest.$ac_objext \ |
| 7977 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7978 | LIBS=$ac_check_lib_save_LIBS |
| 7979 | fi |
| 7980 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 7981 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 7982 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 7983 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 7984 | fi |
| 7985 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7986 | |
| 7987 | fi |
| 7988 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7989 | |
| 7990 | fi |
| 7991 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7992 | |
| 7993 | fi |
| 7994 | |
| 7995 | |
| 7996 | fi |
| 7997 | |
| 7998 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7999 | fi |
| 8000 | |
| 8001 | ;; |
| 8002 | esac |
| 8003 | |
| 8004 | if test "x$lt_cv_dlopen" != xno; then |
| 8005 | enable_dlopen=yes |
| 8006 | else |
| 8007 | enable_dlopen=no |
| 8008 | fi |
| 8009 | |
| 8010 | case $lt_cv_dlopen in |
| 8011 | dlopen) |
| 8012 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8013 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8014 | |
| 8015 | save_LDFLAGS="$LDFLAGS" |
| 8016 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8017 | |
| 8018 | save_LIBS="$LIBS" |
| 8019 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8020 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8021 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8022 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8023 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8025 | else |
| 8026 | if test "$cross_compiling" = yes; then : |
| 8027 | lt_cv_dlopen_self=cross |
| 8028 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8029 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8030 | lt_status=$lt_dlunknown |
| 8031 | cat > conftest.$ac_ext <<EOF |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 8032 | #line 8032 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8033 | #include "confdefs.h" |
| 8034 | |
| 8035 | #if HAVE_DLFCN_H |
| 8036 | #include <dlfcn.h> |
| 8037 | #endif |
| 8038 | |
| 8039 | #include <stdio.h> |
| 8040 | |
| 8041 | #ifdef RTLD_GLOBAL |
| 8042 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8043 | #else |
| 8044 | # ifdef DL_GLOBAL |
| 8045 | # define LT_DLGLOBAL DL_GLOBAL |
| 8046 | # else |
| 8047 | # define LT_DLGLOBAL 0 |
| 8048 | # endif |
| 8049 | #endif |
| 8050 | |
| 8051 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8052 | find out it does not work in some platform. */ |
| 8053 | #ifndef LT_DLLAZY_OR_NOW |
| 8054 | # ifdef RTLD_LAZY |
| 8055 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8056 | # else |
| 8057 | # ifdef DL_LAZY |
| 8058 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8059 | # else |
| 8060 | # ifdef RTLD_NOW |
| 8061 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8062 | # else |
| 8063 | # ifdef DL_NOW |
| 8064 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8065 | # else |
| 8066 | # define LT_DLLAZY_OR_NOW 0 |
| 8067 | # endif |
| 8068 | # endif |
| 8069 | # endif |
| 8070 | # endif |
| 8071 | #endif |
| 8072 | |
| 8073 | #ifdef __cplusplus |
| 8074 | extern "C" void exit (int); |
| 8075 | #endif |
| 8076 | |
| 8077 | void fnord() { int i=42;} |
| 8078 | int main () |
| 8079 | { |
| 8080 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8081 | int status = $lt_dlunknown; |
| 8082 | |
| 8083 | if (self) |
| 8084 | { |
| 8085 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8086 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8087 | /* dlclose (self); */ |
| 8088 | } |
| 8089 | |
| 8090 | exit (status); |
| 8091 | } |
| 8092 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8094 | (eval $ac_link) 2>&5 |
| 8095 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8097 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8098 | (./conftest; exit; ) 2>/dev/null |
| 8099 | lt_status=$? |
| 8100 | case x$lt_status in |
| 8101 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8102 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8103 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8104 | esac |
| 8105 | else : |
| 8106 | # compilation failed |
| 8107 | lt_cv_dlopen_self=no |
| 8108 | fi |
| 8109 | fi |
| 8110 | rm -fr conftest* |
| 8111 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8112 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8113 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8114 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8115 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8116 | |
| 8117 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8118 | LDFLAGS="$LDFLAGS $link_static_flag" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8119 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8120 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8121 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8123 | else |
| 8124 | if test "$cross_compiling" = yes; then : |
| 8125 | lt_cv_dlopen_self_static=cross |
| 8126 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8127 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8128 | lt_status=$lt_dlunknown |
| 8129 | cat > conftest.$ac_ext <<EOF |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 8130 | #line 8130 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8131 | #include "confdefs.h" |
| 8132 | |
| 8133 | #if HAVE_DLFCN_H |
| 8134 | #include <dlfcn.h> |
| 8135 | #endif |
| 8136 | |
| 8137 | #include <stdio.h> |
| 8138 | |
| 8139 | #ifdef RTLD_GLOBAL |
| 8140 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8141 | #else |
| 8142 | # ifdef DL_GLOBAL |
| 8143 | # define LT_DLGLOBAL DL_GLOBAL |
| 8144 | # else |
| 8145 | # define LT_DLGLOBAL 0 |
| 8146 | # endif |
| 8147 | #endif |
| 8148 | |
| 8149 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8150 | find out it does not work in some platform. */ |
| 8151 | #ifndef LT_DLLAZY_OR_NOW |
| 8152 | # ifdef RTLD_LAZY |
| 8153 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8154 | # else |
| 8155 | # ifdef DL_LAZY |
| 8156 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8157 | # else |
| 8158 | # ifdef RTLD_NOW |
| 8159 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8160 | # else |
| 8161 | # ifdef DL_NOW |
| 8162 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8163 | # else |
| 8164 | # define LT_DLLAZY_OR_NOW 0 |
| 8165 | # endif |
| 8166 | # endif |
| 8167 | # endif |
| 8168 | # endif |
| 8169 | #endif |
| 8170 | |
| 8171 | #ifdef __cplusplus |
| 8172 | extern "C" void exit (int); |
| 8173 | #endif |
| 8174 | |
| 8175 | void fnord() { int i=42;} |
| 8176 | int main () |
| 8177 | { |
| 8178 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8179 | int status = $lt_dlunknown; |
| 8180 | |
| 8181 | if (self) |
| 8182 | { |
| 8183 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8184 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8185 | /* dlclose (self); */ |
| 8186 | } |
| 8187 | |
| 8188 | exit (status); |
| 8189 | } |
| 8190 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8192 | (eval $ac_link) 2>&5 |
| 8193 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8195 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8196 | (./conftest; exit; ) 2>/dev/null |
| 8197 | lt_status=$? |
| 8198 | case x$lt_status in |
| 8199 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8200 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8201 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8202 | esac |
| 8203 | else : |
| 8204 | # compilation failed |
| 8205 | lt_cv_dlopen_self_static=no |
| 8206 | fi |
| 8207 | fi |
| 8208 | rm -fr conftest* |
| 8209 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8210 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8211 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8212 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8213 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 8214 | fi |
| 8215 | |
| 8216 | CPPFLAGS="$save_CPPFLAGS" |
| 8217 | LDFLAGS="$save_LDFLAGS" |
| 8218 | LIBS="$save_LIBS" |
| 8219 | ;; |
| 8220 | esac |
| 8221 | |
| 8222 | case $lt_cv_dlopen_self in |
| 8223 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 8224 | *) enable_dlopen_self=unknown ;; |
| 8225 | esac |
| 8226 | |
| 8227 | case $lt_cv_dlopen_self_static in |
| 8228 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 8229 | *) enable_dlopen_self_static=unknown ;; |
| 8230 | esac |
| 8231 | fi |
| 8232 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8233 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8234 | # Report which librarie types wil actually be built |
| 8235 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8236 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8237 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8238 | echo "${ECHO_T}$can_build_shared" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8239 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8240 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 8241 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 8242 | test "$can_build_shared" = "no" && enable_shared=no |
| 8243 | |
| 8244 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 8245 | # are all built from PIC. |
| 8246 | case "$host_os" in |
| 8247 | aix3*) |
| 8248 | test "$enable_shared" = yes && enable_static=no |
| 8249 | if test -n "$RANLIB"; then |
| 8250 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 8251 | postinstall_cmds='$RANLIB $lib' |
| 8252 | fi |
| 8253 | ;; |
| 8254 | |
| 8255 | aix4*) |
| 8256 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 8257 | test "$enable_shared" = yes && enable_static=no |
| 8258 | fi |
| 8259 | ;; |
| 8260 | darwin* | rhapsody*) |
| 8261 | if test "$GCC" = yes; then |
| 8262 | archive_cmds_need_lc=no |
| 8263 | case "$host_os" in |
| 8264 | rhapsody* | darwin1.[012]) |
| 8265 | allow_undefined_flag='-undefined suppress' |
| 8266 | ;; |
| 8267 | *) # Darwin 1.3 on |
| 8268 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8269 | allow_undefined_flag='-flat_namespace -undefined suppress' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8270 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8271 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8272 | 10.[012]) |
| 8273 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8274 | ;; |
| 8275 | 10.*) |
| 8276 | allow_undefined_flag='-undefined dynamic_lookup' |
| 8277 | ;; |
| 8278 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8279 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8280 | ;; |
| 8281 | esac |
| 8282 | output_verbose_link_cmd='echo' |
| 8283 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 8284 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8285 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 8286 | 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}' |
| 8287 | 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}' |
| 8288 | hardcode_direct=no |
| 8289 | hardcode_automatic=yes |
| 8290 | hardcode_shlibpath_var=unsupported |
| 8291 | whole_archive_flag_spec='-all_load $convenience' |
| 8292 | link_all_deplibs=yes |
| 8293 | else |
| 8294 | ld_shlibs=no |
| 8295 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8296 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8297 | esac |
| 8298 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 8299 | echo "${ECHO_T}$enable_shared" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8300 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8301 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 8302 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 8303 | # Make sure either enable_shared or enable_static is yes. |
| 8304 | test "$enable_shared" = yes || enable_static=yes |
| 8305 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 8306 | echo "${ECHO_T}$enable_static" >&6 |
| 8307 | |
| 8308 | # The else clause should only fire when bootstrapping the |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8309 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 8310 | # with your package, and you will get complaints that there are |
| 8311 | # no rules to generate ltmain.sh. |
| 8312 | if test -f "$ltmain"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8313 | # See if we are running on zsh, and set the options which allow our commands through |
| 8314 | # without removal of \ escapes. |
| 8315 | if test -n "${ZSH_VERSION+set}" ; then |
| 8316 | setopt NO_GLOB_SUBST |
| 8317 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8318 | # Now quote all the things that may contain metacharacters while being |
| 8319 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 8320 | # variables and quote the copies for generation of the libtool script. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8321 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 8322 | SED SHELL STRIP \ |
| 8323 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 8324 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 8325 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 8326 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 8327 | lt_cv_sys_global_symbol_to_c_name_address \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8328 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8329 | old_postinstall_cmds old_postuninstall_cmds \ |
| 8330 | compiler \ |
| 8331 | CC \ |
| 8332 | LD \ |
| 8333 | lt_prog_compiler_wl \ |
| 8334 | lt_prog_compiler_pic \ |
| 8335 | lt_prog_compiler_static \ |
| 8336 | lt_prog_compiler_no_builtin_flag \ |
| 8337 | export_dynamic_flag_spec \ |
| 8338 | thread_safe_flag_spec \ |
| 8339 | whole_archive_flag_spec \ |
| 8340 | enable_shared_with_static_runtimes \ |
| 8341 | old_archive_cmds \ |
| 8342 | old_archive_from_new_cmds \ |
| 8343 | predep_objects \ |
| 8344 | postdep_objects \ |
| 8345 | predeps \ |
| 8346 | postdeps \ |
| 8347 | compiler_lib_search_path \ |
| 8348 | archive_cmds \ |
| 8349 | archive_expsym_cmds \ |
| 8350 | postinstall_cmds \ |
| 8351 | postuninstall_cmds \ |
| 8352 | old_archive_from_expsyms_cmds \ |
| 8353 | allow_undefined_flag \ |
| 8354 | no_undefined_flag \ |
| 8355 | export_symbols_cmds \ |
| 8356 | hardcode_libdir_flag_spec \ |
| 8357 | hardcode_libdir_flag_spec_ld \ |
| 8358 | hardcode_libdir_separator \ |
| 8359 | hardcode_automatic \ |
| 8360 | module_cmds \ |
| 8361 | module_expsym_cmds \ |
| 8362 | lt_cv_prog_compiler_c_o \ |
| 8363 | exclude_expsyms \ |
| 8364 | include_expsyms; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8365 | |
| 8366 | case $var in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8367 | old_archive_cmds | \ |
| 8368 | old_archive_from_new_cmds | \ |
| 8369 | archive_cmds | \ |
| 8370 | archive_expsym_cmds | \ |
| 8371 | module_cmds | \ |
| 8372 | module_expsym_cmds | \ |
| 8373 | old_archive_from_expsyms_cmds | \ |
| 8374 | export_symbols_cmds | \ |
| 8375 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8376 | postinstall_cmds | postuninstall_cmds | \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8377 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 8378 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8379 | # Double-quote double-evaled strings. |
| 8380 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 8381 | ;; |
| 8382 | *) |
| 8383 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 8384 | ;; |
| 8385 | esac |
| 8386 | done |
| 8387 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8388 | case $lt_echo in |
| 8389 | *'\$0 --fallback-echo"') |
| 8390 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 8391 | ;; |
| 8392 | esac |
| 8393 | |
| 8394 | cfgfile="${ofile}T" |
| 8395 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 8396 | $rm -f "$cfgfile" |
| 8397 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 8398 | echo "$as_me: creating $ofile" >&6;} |
| 8399 | |
| 8400 | cat <<__EOF__ >> "$cfgfile" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8401 | #! $SHELL |
| 8402 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8403 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8404 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 8405 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 8406 | # |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8407 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 8408 | # Free Software Foundation, Inc. |
| 8409 | # |
| 8410 | # This file is part of GNU Libtool: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8411 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 8412 | # |
| 8413 | # This program is free software; you can redistribute it and/or modify |
| 8414 | # it under the terms of the GNU General Public License as published by |
| 8415 | # the Free Software Foundation; either version 2 of the License, or |
| 8416 | # (at your option) any later version. |
| 8417 | # |
| 8418 | # This program is distributed in the hope that it will be useful, but |
| 8419 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 8420 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 8421 | # General Public License for more details. |
| 8422 | # |
| 8423 | # You should have received a copy of the GNU General Public License |
| 8424 | # along with this program; if not, write to the Free Software |
| 8425 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 8426 | # |
| 8427 | # As a special exception to the GNU General Public License, if you |
| 8428 | # distribute this file as part of a program that contains a |
| 8429 | # configuration script generated by Autoconf, you may include it under |
| 8430 | # the same distribution terms that you use for the rest of that program. |
| 8431 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8432 | # A sed program that does not truncate output. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8433 | SED=$lt_SED |
| 8434 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8435 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8436 | Xsed="$SED -e s/^X//" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8437 | |
| 8438 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 8439 | # if CDPATH is set. |
| 8440 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 8441 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8442 | # The names of the tagged configurations supported by this script. |
| 8443 | available_tags= |
| 8444 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8445 | # ### BEGIN LIBTOOL CONFIG |
| 8446 | |
| 8447 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 8448 | |
| 8449 | # Shell to use when invoking shell scripts. |
| 8450 | SHELL=$lt_SHELL |
| 8451 | |
| 8452 | # Whether or not to build shared libraries. |
| 8453 | build_libtool_libs=$enable_shared |
| 8454 | |
| 8455 | # Whether or not to build static libraries. |
| 8456 | build_old_libs=$enable_static |
| 8457 | |
| 8458 | # Whether or not to add -lc for building shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8459 | build_libtool_need_lc=$archive_cmds_need_lc |
| 8460 | |
| 8461 | # Whether or not to disallow shared libs when runtime libs are static |
| 8462 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8463 | |
| 8464 | # Whether or not to optimize for fast installation. |
| 8465 | fast_install=$enable_fast_install |
| 8466 | |
| 8467 | # The host system. |
| 8468 | host_alias=$host_alias |
| 8469 | host=$host |
| 8470 | |
| 8471 | # An echo program that does not interpret backslashes. |
| 8472 | echo=$lt_echo |
| 8473 | |
| 8474 | # The archiver. |
| 8475 | AR=$lt_AR |
| 8476 | AR_FLAGS=$lt_AR_FLAGS |
| 8477 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8478 | # A C compiler. |
| 8479 | LTCC=$lt_LTCC |
| 8480 | |
| 8481 | # A language-specific compiler. |
| 8482 | CC=$lt_compiler |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8483 | |
| 8484 | # Is the compiler the GNU C compiler? |
| 8485 | with_gcc=$GCC |
| 8486 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8487 | # An ERE matcher. |
| 8488 | EGREP=$lt_EGREP |
| 8489 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8490 | # The linker used to build libraries. |
| 8491 | LD=$lt_LD |
| 8492 | |
| 8493 | # Whether we need hard or soft links. |
| 8494 | LN_S=$lt_LN_S |
| 8495 | |
| 8496 | # A BSD-compatible nm program. |
| 8497 | NM=$lt_NM |
| 8498 | |
| 8499 | # A symbol stripping program |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8500 | STRIP=$lt_STRIP |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8501 | |
| 8502 | # Used to examine libraries when file_magic_cmd begins "file" |
| 8503 | MAGIC_CMD=$MAGIC_CMD |
| 8504 | |
| 8505 | # Used on cygwin: DLL creation program. |
| 8506 | DLLTOOL="$DLLTOOL" |
| 8507 | |
| 8508 | # Used on cygwin: object dumper. |
| 8509 | OBJDUMP="$OBJDUMP" |
| 8510 | |
| 8511 | # Used on cygwin: assembler. |
| 8512 | AS="$AS" |
| 8513 | |
| 8514 | # The name of the directory that contains temporary libtool files. |
| 8515 | objdir=$objdir |
| 8516 | |
| 8517 | # How to create reloadable object files. |
| 8518 | reload_flag=$lt_reload_flag |
| 8519 | reload_cmds=$lt_reload_cmds |
| 8520 | |
| 8521 | # How to pass a linker flag through the compiler. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8522 | wl=$lt_lt_prog_compiler_wl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8523 | |
| 8524 | # Object file suffix (normally "o"). |
| 8525 | objext="$ac_objext" |
| 8526 | |
| 8527 | # Old archive suffix (normally "a"). |
| 8528 | libext="$libext" |
| 8529 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8530 | # Shared library suffix (normally ".so"). |
| 8531 | shrext='$shrext' |
| 8532 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8533 | # Executable file suffix (normally ""). |
| 8534 | exeext="$exeext" |
| 8535 | |
| 8536 | # Additional compiler flags for building library objects. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8537 | pic_flag=$lt_lt_prog_compiler_pic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8538 | pic_mode=$pic_mode |
| 8539 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8540 | # What is the maximum length of a command? |
| 8541 | max_cmd_len=$lt_cv_sys_max_cmd_len |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8542 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8543 | # Does compiler simultaneously support -c and -o options? |
| 8544 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8545 | |
| 8546 | # Must we lock files when doing compilation ? |
| 8547 | need_locks=$lt_need_locks |
| 8548 | |
| 8549 | # Do we need the lib prefix for modules? |
| 8550 | need_lib_prefix=$need_lib_prefix |
| 8551 | |
| 8552 | # Do we need a version for libraries? |
| 8553 | need_version=$need_version |
| 8554 | |
| 8555 | # Whether dlopen is supported. |
| 8556 | dlopen_support=$enable_dlopen |
| 8557 | |
| 8558 | # Whether dlopen of programs is supported. |
| 8559 | dlopen_self=$enable_dlopen_self |
| 8560 | |
| 8561 | # Whether dlopen of statically linked programs is supported. |
| 8562 | dlopen_self_static=$enable_dlopen_self_static |
| 8563 | |
| 8564 | # Compiler flag to prevent dynamic linking. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8565 | link_static_flag=$lt_lt_prog_compiler_static |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8566 | |
| 8567 | # Compiler flag to turn off builtin functions. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8568 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8569 | |
| 8570 | # Compiler flag to allow reflexive dlopens. |
| 8571 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 8572 | |
| 8573 | # Compiler flag to generate shared objects directly from archives. |
| 8574 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 8575 | |
| 8576 | # Compiler flag to generate thread-safe objects. |
| 8577 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 8578 | |
| 8579 | # Library versioning type. |
| 8580 | version_type=$version_type |
| 8581 | |
| 8582 | # Format of library name prefix. |
| 8583 | libname_spec=$lt_libname_spec |
| 8584 | |
| 8585 | # List of archive names. First name is the real one, the rest are links. |
| 8586 | # The last name is the one that the linker finds with -lNAME. |
| 8587 | library_names_spec=$lt_library_names_spec |
| 8588 | |
| 8589 | # The coded name of the library, if different from the real name. |
| 8590 | soname_spec=$lt_soname_spec |
| 8591 | |
| 8592 | # Commands used to build and install an old-style archive. |
| 8593 | RANLIB=$lt_RANLIB |
| 8594 | old_archive_cmds=$lt_old_archive_cmds |
| 8595 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 8596 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 8597 | |
| 8598 | # Create an old-style archive from a shared archive. |
| 8599 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 8600 | |
| 8601 | # Create a temporary old-style archive to link instead of a shared archive. |
| 8602 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 8603 | |
| 8604 | # Commands used to build and install a shared archive. |
| 8605 | archive_cmds=$lt_archive_cmds |
| 8606 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 8607 | postinstall_cmds=$lt_postinstall_cmds |
| 8608 | postuninstall_cmds=$lt_postuninstall_cmds |
| 8609 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8610 | # Commands used to build a loadable module (assumed same as above if empty) |
| 8611 | module_cmds=$lt_module_cmds |
| 8612 | module_expsym_cmds=$lt_module_expsym_cmds |
| 8613 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8614 | # Commands to strip libraries. |
| 8615 | old_striplib=$lt_old_striplib |
| 8616 | striplib=$lt_striplib |
| 8617 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8618 | # Dependencies to place before the objects being linked to create a |
| 8619 | # shared library. |
| 8620 | predep_objects=$lt_predep_objects |
| 8621 | |
| 8622 | # Dependencies to place after the objects being linked to create a |
| 8623 | # shared library. |
| 8624 | postdep_objects=$lt_postdep_objects |
| 8625 | |
| 8626 | # Dependencies to place before the objects being linked to create a |
| 8627 | # shared library. |
| 8628 | predeps=$lt_predeps |
| 8629 | |
| 8630 | # Dependencies to place after the objects being linked to create a |
| 8631 | # shared library. |
| 8632 | postdeps=$lt_postdeps |
| 8633 | |
| 8634 | # The library search path used internally by the compiler when linking |
| 8635 | # a shared library. |
| 8636 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 8637 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8638 | # Method to check whether dependent libraries are shared objects. |
| 8639 | deplibs_check_method=$lt_deplibs_check_method |
| 8640 | |
| 8641 | # Command to use when deplibs_check_method == file_magic. |
| 8642 | file_magic_cmd=$lt_file_magic_cmd |
| 8643 | |
| 8644 | # Flag that allows shared libraries with undefined symbols to be built. |
| 8645 | allow_undefined_flag=$lt_allow_undefined_flag |
| 8646 | |
| 8647 | # Flag that forces no undefined symbols. |
| 8648 | no_undefined_flag=$lt_no_undefined_flag |
| 8649 | |
| 8650 | # Commands used to finish a libtool library installation in a directory. |
| 8651 | finish_cmds=$lt_finish_cmds |
| 8652 | |
| 8653 | # Same as above, but a single script fragment to be evaled but not shown. |
| 8654 | finish_eval=$lt_finish_eval |
| 8655 | |
| 8656 | # Take the output of nm and produce a listing of raw symbols and C names. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8657 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8658 | |
| 8659 | # Transform the output of nm in a proper C declaration |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8660 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8661 | |
| 8662 | # Transform the output of nm in a C name address pair |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8663 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8664 | |
| 8665 | # This is the shared library runtime path variable. |
| 8666 | runpath_var=$runpath_var |
| 8667 | |
| 8668 | # This is the shared library path variable. |
| 8669 | shlibpath_var=$shlibpath_var |
| 8670 | |
| 8671 | # Is shlibpath searched before the hard-coded library search path? |
| 8672 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 8673 | |
| 8674 | # How to hardcode a shared library path into an executable. |
| 8675 | hardcode_action=$hardcode_action |
| 8676 | |
| 8677 | # Whether we should hardcode library paths into libraries. |
| 8678 | hardcode_into_libs=$hardcode_into_libs |
| 8679 | |
| 8680 | # Flag to hardcode \$libdir into a binary during linking. |
| 8681 | # This must work even if \$libdir does not exist. |
| 8682 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 8683 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8684 | # If ld is used when linking, flag to hardcode \$libdir into |
| 8685 | # a binary during linking. This must work even if \$libdir does |
| 8686 | # not exist. |
| 8687 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 8688 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8689 | # Whether we need a single -rpath flag with a separated argument. |
| 8690 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 8691 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8692 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8693 | # resulting binary. |
| 8694 | hardcode_direct=$hardcode_direct |
| 8695 | |
| 8696 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 8697 | # resulting binary. |
| 8698 | hardcode_minus_L=$hardcode_minus_L |
| 8699 | |
| 8700 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 8701 | # the resulting binary. |
| 8702 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 8703 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8704 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 8705 | # and all subsequent libraries and executables linked against it. |
| 8706 | hardcode_automatic=$hardcode_automatic |
| 8707 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8708 | # Variables whose values should be saved in libtool wrapper scripts and |
| 8709 | # restored at relink time. |
| 8710 | variables_saved_for_relink="$variables_saved_for_relink" |
| 8711 | |
| 8712 | # Whether libtool must link a program against all its dependency libraries. |
| 8713 | link_all_deplibs=$link_all_deplibs |
| 8714 | |
| 8715 | # Compile-time system search path for libraries |
| 8716 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 8717 | |
| 8718 | # Run-time system search path for libraries |
| 8719 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 8720 | |
| 8721 | # Fix the shell variable \$srcfile for the compiler. |
| 8722 | fix_srcfile_path="$fix_srcfile_path" |
| 8723 | |
| 8724 | # Set to yes if exported symbols are required. |
| 8725 | always_export_symbols=$always_export_symbols |
| 8726 | |
| 8727 | # The commands to list exported symbols. |
| 8728 | export_symbols_cmds=$lt_export_symbols_cmds |
| 8729 | |
| 8730 | # The commands to extract the exported symbol list from a shared archive. |
| 8731 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 8732 | |
| 8733 | # Symbols that should not be listed in the preloaded symbols. |
| 8734 | exclude_expsyms=$lt_exclude_expsyms |
| 8735 | |
| 8736 | # Symbols that must always be exported. |
| 8737 | include_expsyms=$lt_include_expsyms |
| 8738 | |
| 8739 | # ### END LIBTOOL CONFIG |
| 8740 | |
| 8741 | __EOF__ |
| 8742 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8743 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8744 | case $host_os in |
| 8745 | aix3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8746 | cat <<\EOF >> "$cfgfile" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8747 | |
| 8748 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8749 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8750 | # vanish in a puff of smoke. |
| 8751 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8752 | COLLECT_NAMES= |
| 8753 | export COLLECT_NAMES |
| 8754 | fi |
| 8755 | EOF |
| 8756 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8757 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8758 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8759 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 8760 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 8761 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 8762 | # is reportedly fixed, but why not run on old versions too? |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8763 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8764 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8765 | mv -f "$cfgfile" "$ofile" || \ |
| 8766 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8767 | chmod +x "$ofile" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8768 | |
| 8769 | else |
| 8770 | # If there is no Makefile yet, we rely on a make rule to execute |
| 8771 | # `config.status --recheck' to rerun these tests and create the |
| 8772 | # libtool script then. |
| 8773 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 8774 | if test -f "$ltmain_in"; then |
| 8775 | test -f Makefile && make "$ltmain" |
| 8776 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8777 | fi |
| 8778 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8779 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8780 | ac_ext=c |
| 8781 | ac_cpp='$CPP $CPPFLAGS' |
| 8782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8785 | |
| 8786 | CC="$lt_save_CC" |
| 8787 | |
| 8788 | |
| 8789 | # Check whether --with-tags or --without-tags was given. |
| 8790 | if test "${with_tags+set}" = set; then |
| 8791 | withval="$with_tags" |
| 8792 | tagnames="$withval" |
| 8793 | fi; |
| 8794 | |
| 8795 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 8796 | if test ! -f "${ofile}"; then |
| 8797 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 8798 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 8799 | fi |
| 8800 | |
| 8801 | if test -z "$LTCC"; then |
| 8802 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 8803 | if test -z "$LTCC"; then |
| 8804 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 8805 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 8806 | else |
| 8807 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 8808 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 8809 | fi |
| 8810 | fi |
| 8811 | |
| 8812 | # Extract list of available tagged configurations in $ofile. |
| 8813 | # Note that this assumes the entire list is on one line. |
| 8814 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 8815 | |
| 8816 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8817 | for tagname in $tagnames; do |
| 8818 | IFS="$lt_save_ifs" |
| 8819 | # Check whether tagname contains only valid characters |
| 8820 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 8821 | "") ;; |
| 8822 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 8823 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 8824 | { (exit 1); exit 1; }; } |
| 8825 | ;; |
| 8826 | esac |
| 8827 | |
| 8828 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 8829 | then |
| 8830 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 8831 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 8832 | { (exit 1); exit 1; }; } |
| 8833 | fi |
| 8834 | |
| 8835 | # Update the list of available tags. |
| 8836 | if test -n "$tagname"; then |
| 8837 | echo appending configuration tag \"$tagname\" to $ofile |
| 8838 | |
| 8839 | case $tagname in |
| 8840 | CXX) |
| 8841 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 8842 | ac_ext=cc |
| 8843 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8844 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8845 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8846 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8847 | |
| 8848 | |
| 8849 | |
| 8850 | |
| 8851 | archive_cmds_need_lc_CXX=no |
| 8852 | allow_undefined_flag_CXX= |
| 8853 | always_export_symbols_CXX=no |
| 8854 | archive_expsym_cmds_CXX= |
| 8855 | export_dynamic_flag_spec_CXX= |
| 8856 | hardcode_direct_CXX=no |
| 8857 | hardcode_libdir_flag_spec_CXX= |
| 8858 | hardcode_libdir_flag_spec_ld_CXX= |
| 8859 | hardcode_libdir_separator_CXX= |
| 8860 | hardcode_minus_L_CXX=no |
| 8861 | hardcode_automatic_CXX=no |
| 8862 | module_cmds_CXX= |
| 8863 | module_expsym_cmds_CXX= |
| 8864 | link_all_deplibs_CXX=unknown |
| 8865 | old_archive_cmds_CXX=$old_archive_cmds |
| 8866 | no_undefined_flag_CXX= |
| 8867 | whole_archive_flag_spec_CXX= |
| 8868 | enable_shared_with_static_runtimes_CXX=no |
| 8869 | |
| 8870 | # Dependencies to place before and after the object being linked: |
| 8871 | predep_objects_CXX= |
| 8872 | postdep_objects_CXX= |
| 8873 | predeps_CXX= |
| 8874 | postdeps_CXX= |
| 8875 | compiler_lib_search_path_CXX= |
| 8876 | |
| 8877 | # Source file extension for C++ test sources. |
| 8878 | ac_ext=cc |
| 8879 | |
| 8880 | # Object file extension for compiled C++ test sources. |
| 8881 | objext=o |
| 8882 | objext_CXX=$objext |
| 8883 | |
| 8884 | # Code to be used in simple compile tests |
| 8885 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 8886 | |
| 8887 | # Code to be used in simple link tests |
| 8888 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 8889 | |
| 8890 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 8891 | |
| 8892 | # If no C compiler was specified, use CC. |
| 8893 | LTCC=${LTCC-"$CC"} |
| 8894 | |
| 8895 | # Allow CC to be a program name with arguments. |
| 8896 | compiler=$CC |
| 8897 | |
| 8898 | |
| 8899 | # Allow CC to be a program name with arguments. |
| 8900 | lt_save_CC=$CC |
| 8901 | lt_save_LD=$LD |
| 8902 | lt_save_GCC=$GCC |
| 8903 | GCC=$GXX |
| 8904 | lt_save_with_gnu_ld=$with_gnu_ld |
| 8905 | lt_save_path_LD=$lt_cv_path_LD |
| 8906 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 8907 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 8908 | else |
| 8909 | unset lt_cv_prog_gnu_ld |
| 8910 | fi |
| 8911 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 8912 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 8913 | else |
| 8914 | unset lt_cv_path_LD |
| 8915 | fi |
| 8916 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 8917 | CC=${CXX-"c++"} |
| 8918 | compiler=$CC |
| 8919 | compiler_CXX=$CC |
| 8920 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 8921 | |
| 8922 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 8923 | # no_builtin_flag separately |
| 8924 | if test "$GXX" = yes; then |
| 8925 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 8926 | else |
| 8927 | lt_prog_compiler_no_builtin_flag_CXX= |
| 8928 | fi |
| 8929 | |
| 8930 | if test "$GXX" = yes; then |
| 8931 | # Set up default GNU C++ configuration |
| 8932 | |
| 8933 | |
| 8934 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 8935 | if test "${with_gnu_ld+set}" = set; then |
| 8936 | withval="$with_gnu_ld" |
| 8937 | test "$withval" = no || with_gnu_ld=yes |
| 8938 | else |
| 8939 | with_gnu_ld=no |
| 8940 | fi; |
| 8941 | ac_prog=ld |
| 8942 | if test "$GCC" = yes; then |
| 8943 | # Check if gcc -print-prog-name=ld gives a path. |
| 8944 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 8945 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 8946 | case $host in |
| 8947 | *-*-mingw*) |
| 8948 | # gcc leaves a trailing carriage return which upsets mingw |
| 8949 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8950 | *) |
| 8951 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8952 | esac |
| 8953 | case $ac_prog in |
| 8954 | # Accept absolute paths. |
| 8955 | [\\/]* | ?:[\\/]*) |
| 8956 | re_direlt='/[^/][^/]*/\.\./' |
| 8957 | # Canonicalize the pathname of ld |
| 8958 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 8959 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8960 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 8961 | done |
| 8962 | test -z "$LD" && LD="$ac_prog" |
| 8963 | ;; |
| 8964 | "") |
| 8965 | # If it fails, then pretend we aren't using GCC. |
| 8966 | ac_prog=ld |
| 8967 | ;; |
| 8968 | *) |
| 8969 | # If it is relative, then search for the first ld in PATH. |
| 8970 | with_gnu_ld=unknown |
| 8971 | ;; |
| 8972 | esac |
| 8973 | elif test "$with_gnu_ld" = yes; then |
| 8974 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8975 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 8976 | else |
| 8977 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8978 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 8979 | fi |
| 8980 | if test "${lt_cv_path_LD+set}" = set; then |
| 8981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8982 | else |
| 8983 | if test -z "$LD"; then |
| 8984 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8985 | for ac_dir in $PATH; do |
| 8986 | IFS="$lt_save_ifs" |
| 8987 | test -z "$ac_dir" && ac_dir=. |
| 8988 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8989 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 8990 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8991 | # but apparently some GNU ld's only accept -v. |
| 8992 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8993 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 8994 | *GNU* | *'with BFD'*) |
| 8995 | test "$with_gnu_ld" != no && break |
| 8996 | ;; |
| 8997 | *) |
| 8998 | test "$with_gnu_ld" != yes && break |
| 8999 | ;; |
| 9000 | esac |
| 9001 | fi |
| 9002 | done |
| 9003 | IFS="$lt_save_ifs" |
| 9004 | else |
| 9005 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9006 | fi |
| 9007 | fi |
| 9008 | |
| 9009 | LD="$lt_cv_path_LD" |
| 9010 | if test -n "$LD"; then |
| 9011 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9012 | echo "${ECHO_T}$LD" >&6 |
| 9013 | else |
| 9014 | echo "$as_me:$LINENO: result: no" >&5 |
| 9015 | echo "${ECHO_T}no" >&6 |
| 9016 | fi |
| 9017 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9018 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9019 | { (exit 1); exit 1; }; } |
| 9020 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9021 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9022 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9024 | else |
| 9025 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9026 | case `$LD -v 2>&1 </dev/null` in |
| 9027 | *GNU* | *'with BFD'*) |
| 9028 | lt_cv_prog_gnu_ld=yes |
| 9029 | ;; |
| 9030 | *) |
| 9031 | lt_cv_prog_gnu_ld=no |
| 9032 | ;; |
| 9033 | esac |
| 9034 | fi |
| 9035 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9036 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9037 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9038 | |
| 9039 | |
| 9040 | |
| 9041 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9042 | # archiving commands below assume that GNU ld is being used. |
| 9043 | if test "$with_gnu_ld" = yes; then |
| 9044 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9045 | 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' |
| 9046 | |
| 9047 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 9048 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9049 | |
| 9050 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9051 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9052 | # investigate it a little bit more. (MM) |
| 9053 | wlarc='${wl}' |
| 9054 | |
| 9055 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9056 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 9057 | grep 'no-whole-archive' > /dev/null; then |
| 9058 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9059 | else |
| 9060 | whole_archive_flag_spec_CXX= |
| 9061 | fi |
| 9062 | else |
| 9063 | with_gnu_ld=no |
| 9064 | wlarc= |
| 9065 | |
| 9066 | # A generic and very simple default shared library creation |
| 9067 | # command for GNU C++ for the case where it uses the native |
| 9068 | # linker, instead of GNU ld. If possible, this setting should |
| 9069 | # overridden to take advantage of the native linker features on |
| 9070 | # the platform it is being used on. |
| 9071 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9072 | fi |
| 9073 | |
| 9074 | # Commands to make compiler produce verbose output that lists |
| 9075 | # what "hidden" libraries, object files and flags are used when |
| 9076 | # linking a shared library. |
| 9077 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9078 | |
| 9079 | else |
| 9080 | GXX=no |
| 9081 | with_gnu_ld=no |
| 9082 | wlarc= |
| 9083 | fi |
| 9084 | |
| 9085 | # PORTME: fill in a description of your system's C++ link characteristics |
| 9086 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9087 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9088 | ld_shlibs_CXX=yes |
| 9089 | case $host_os in |
| 9090 | aix3*) |
| 9091 | # FIXME: insert proper C++ library support |
| 9092 | ld_shlibs_CXX=no |
| 9093 | ;; |
| 9094 | aix4* | aix5*) |
| 9095 | if test "$host_cpu" = ia64; then |
| 9096 | # On IA64, the linker does run time linking by default, so we don't |
| 9097 | # have to do anything special. |
| 9098 | aix_use_runtimelinking=no |
| 9099 | exp_sym_flag='-Bexport' |
| 9100 | no_entry_flag="" |
| 9101 | else |
| 9102 | aix_use_runtimelinking=no |
| 9103 | |
| 9104 | # Test if we are trying to use run time linking or normal |
| 9105 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9106 | # need to do runtime linking. |
| 9107 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9108 | for ld_flag in $LDFLAGS; do |
| 9109 | case $ld_flag in |
| 9110 | *-brtl*) |
| 9111 | aix_use_runtimelinking=yes |
| 9112 | break |
| 9113 | ;; |
| 9114 | esac |
| 9115 | done |
| 9116 | esac |
| 9117 | |
| 9118 | exp_sym_flag='-bexport' |
| 9119 | no_entry_flag='-bnoentry' |
| 9120 | fi |
| 9121 | |
| 9122 | # When large executables or shared objects are built, AIX ld can |
| 9123 | # have problems creating the table of contents. If linking a library |
| 9124 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9125 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9126 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9127 | |
| 9128 | archive_cmds_CXX='' |
| 9129 | hardcode_direct_CXX=yes |
| 9130 | hardcode_libdir_separator_CXX=':' |
| 9131 | link_all_deplibs_CXX=yes |
| 9132 | |
| 9133 | if test "$GXX" = yes; then |
| 9134 | case $host_os in aix4.012|aix4.012.*) |
| 9135 | # We only want to do this on AIX 4.2 and lower, the check |
| 9136 | # below for broken collect2 doesn't work under 4.3+ |
| 9137 | collect2name=`${CC} -print-prog-name=collect2` |
| 9138 | if test -f "$collect2name" && \ |
| 9139 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9140 | then |
| 9141 | # We have reworked collect2 |
| 9142 | hardcode_direct_CXX=yes |
| 9143 | else |
| 9144 | # We have old collect2 |
| 9145 | hardcode_direct_CXX=unsupported |
| 9146 | # It fails to find uninstalled libraries when the uninstalled |
| 9147 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9148 | # to unsupported forces relinking |
| 9149 | hardcode_minus_L_CXX=yes |
| 9150 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9151 | hardcode_libdir_separator_CXX= |
| 9152 | fi |
| 9153 | esac |
| 9154 | shared_flag='-shared' |
| 9155 | else |
| 9156 | # not using gcc |
| 9157 | if test "$host_cpu" = ia64; then |
| 9158 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9159 | # chokes on -Wl,-G. The following line is correct: |
| 9160 | shared_flag='-G' |
| 9161 | else |
| 9162 | if test "$aix_use_runtimelinking" = yes; then |
| 9163 | shared_flag='${wl}-G' |
| 9164 | else |
| 9165 | shared_flag='${wl}-bM:SRE' |
| 9166 | fi |
| 9167 | fi |
| 9168 | fi |
| 9169 | |
| 9170 | # It seems that -bexpall does not export symbols beginning with |
| 9171 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9172 | always_export_symbols_CXX=yes |
| 9173 | if test "$aix_use_runtimelinking" = yes; then |
| 9174 | # Warning - without using the other runtime loading flags (-brtl), |
| 9175 | # -berok will link without error, but may produce a broken library. |
| 9176 | allow_undefined_flag_CXX='-berok' |
| 9177 | # Determine the default libpath from the value encoded in an empty executable. |
| 9178 | cat >conftest.$ac_ext <<_ACEOF |
| 9179 | /* confdefs.h. */ |
| 9180 | _ACEOF |
| 9181 | cat confdefs.h >>conftest.$ac_ext |
| 9182 | cat >>conftest.$ac_ext <<_ACEOF |
| 9183 | /* end confdefs.h. */ |
| 9184 | |
| 9185 | int |
| 9186 | main () |
| 9187 | { |
| 9188 | |
| 9189 | ; |
| 9190 | return 0; |
| 9191 | } |
| 9192 | _ACEOF |
| 9193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9195 | (eval $ac_link) 2>conftest.er1 |
| 9196 | ac_status=$? |
| 9197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9198 | rm -f conftest.er1 |
| 9199 | cat conftest.err >&5 |
| 9200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9201 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 9202 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9203 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9205 | (eval $ac_try) 2>&5 |
| 9206 | ac_status=$? |
| 9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9208 | (exit $ac_status); }; } && |
| 9209 | { ac_try='test -s conftest$ac_exeext' |
| 9210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9211 | (eval $ac_try) 2>&5 |
| 9212 | ac_status=$? |
| 9213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9214 | (exit $ac_status); }; }; then |
| 9215 | |
| 9216 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9217 | }'` |
| 9218 | # Check for a 64-bit object if we didn't find anything. |
| 9219 | 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; } |
| 9220 | }'`; fi |
| 9221 | else |
| 9222 | echo "$as_me: failed program was:" >&5 |
| 9223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9224 | |
| 9225 | fi |
| 9226 | rm -f conftest.err conftest.$ac_objext \ |
| 9227 | conftest$ac_exeext conftest.$ac_ext |
| 9228 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9229 | |
| 9230 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9231 | |
| 9232 | 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" |
| 9233 | else |
| 9234 | if test "$host_cpu" = ia64; then |
| 9235 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9236 | allow_undefined_flag_CXX="-z nodefs" |
| 9237 | 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" |
| 9238 | else |
| 9239 | # Determine the default libpath from the value encoded in an empty executable. |
| 9240 | cat >conftest.$ac_ext <<_ACEOF |
| 9241 | /* confdefs.h. */ |
| 9242 | _ACEOF |
| 9243 | cat confdefs.h >>conftest.$ac_ext |
| 9244 | cat >>conftest.$ac_ext <<_ACEOF |
| 9245 | /* end confdefs.h. */ |
| 9246 | |
| 9247 | int |
| 9248 | main () |
| 9249 | { |
| 9250 | |
| 9251 | ; |
| 9252 | return 0; |
| 9253 | } |
| 9254 | _ACEOF |
| 9255 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9257 | (eval $ac_link) 2>conftest.er1 |
| 9258 | ac_status=$? |
| 9259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9260 | rm -f conftest.er1 |
| 9261 | cat conftest.err >&5 |
| 9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9263 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 9264 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9265 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9267 | (eval $ac_try) 2>&5 |
| 9268 | ac_status=$? |
| 9269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9270 | (exit $ac_status); }; } && |
| 9271 | { ac_try='test -s conftest$ac_exeext' |
| 9272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9273 | (eval $ac_try) 2>&5 |
| 9274 | ac_status=$? |
| 9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9276 | (exit $ac_status); }; }; then |
| 9277 | |
| 9278 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9279 | }'` |
| 9280 | # Check for a 64-bit object if we didn't find anything. |
| 9281 | 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; } |
| 9282 | }'`; fi |
| 9283 | else |
| 9284 | echo "$as_me: failed program was:" >&5 |
| 9285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9286 | |
| 9287 | fi |
| 9288 | rm -f conftest.err conftest.$ac_objext \ |
| 9289 | conftest$ac_exeext conftest.$ac_ext |
| 9290 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9291 | |
| 9292 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9293 | # Warning - without using the other run time loading flags, |
| 9294 | # -berok will link without error, but may produce a broken library. |
| 9295 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 9296 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 9297 | # -bexpall does not export symbols beginning with underscore (_) |
| 9298 | always_export_symbols_CXX=yes |
| 9299 | # Exported symbols can be pulled into shared objects from archives |
| 9300 | whole_archive_flag_spec_CXX=' ' |
| 9301 | archive_cmds_need_lc_CXX=yes |
| 9302 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 9303 | 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' |
| 9304 | fi |
| 9305 | fi |
| 9306 | ;; |
| 9307 | chorus*) |
| 9308 | case $cc_basename in |
| 9309 | *) |
| 9310 | # FIXME: insert proper C++ library support |
| 9311 | ld_shlibs_CXX=no |
| 9312 | ;; |
| 9313 | esac |
| 9314 | ;; |
| 9315 | |
| 9316 | cygwin* | mingw* | pw32*) |
| 9317 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 9318 | # as there is no search path for DLLs. |
| 9319 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9320 | allow_undefined_flag_CXX=unsupported |
| 9321 | always_export_symbols_CXX=no |
| 9322 | enable_shared_with_static_runtimes_CXX=yes |
| 9323 | |
| 9324 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 9325 | 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' |
| 9326 | # If the export-symbols file already is a .def file (1st line |
| 9327 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9328 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9329 | cp $export_symbols $output_objdir/$soname.def; |
| 9330 | else |
| 9331 | echo EXPORTS > $output_objdir/$soname.def; |
| 9332 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9333 | fi~ |
| 9334 | $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' |
| 9335 | else |
| 9336 | ld_shlibs_CXX=no |
| 9337 | fi |
| 9338 | ;; |
| 9339 | |
| 9340 | darwin* | rhapsody*) |
| 9341 | if test "$GXX" = yes; then |
| 9342 | archive_cmds_need_lc_CXX=no |
| 9343 | case "$host_os" in |
| 9344 | rhapsody* | darwin1.[012]) |
| 9345 | allow_undefined_flag_CXX='-undefined suppress' |
| 9346 | ;; |
| 9347 | *) # Darwin 1.3 on |
| 9348 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 9349 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 9350 | else |
| 9351 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 9352 | 10.[012]) |
| 9353 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 9354 | ;; |
| 9355 | 10.*) |
| 9356 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
| 9357 | ;; |
| 9358 | esac |
| 9359 | fi |
| 9360 | ;; |
| 9361 | esac |
| 9362 | lt_int_apple_cc_single_mod=no |
| 9363 | output_verbose_link_cmd='echo' |
| 9364 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 9365 | lt_int_apple_cc_single_mod=yes |
| 9366 | fi |
| 9367 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9368 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9369 | else |
| 9370 | 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' |
| 9371 | fi |
| 9372 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9373 | |
| 9374 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 9375 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9376 | 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}' |
| 9377 | else |
| 9378 | 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}' |
| 9379 | fi |
| 9380 | 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}' |
| 9381 | hardcode_direct_CXX=no |
| 9382 | hardcode_automatic_CXX=yes |
| 9383 | hardcode_shlibpath_var_CXX=unsupported |
| 9384 | whole_archive_flag_spec_CXX='-all_load $convenience' |
| 9385 | link_all_deplibs_CXX=yes |
| 9386 | else |
| 9387 | ld_shlibs_CXX=no |
| 9388 | fi |
| 9389 | ;; |
| 9390 | |
| 9391 | dgux*) |
| 9392 | case $cc_basename in |
| 9393 | ec++) |
| 9394 | # FIXME: insert proper C++ library support |
| 9395 | ld_shlibs_CXX=no |
| 9396 | ;; |
| 9397 | ghcx) |
| 9398 | # Green Hills C++ Compiler |
| 9399 | # FIXME: insert proper C++ library support |
| 9400 | ld_shlibs_CXX=no |
| 9401 | ;; |
| 9402 | *) |
| 9403 | # FIXME: insert proper C++ library support |
| 9404 | ld_shlibs_CXX=no |
| 9405 | ;; |
| 9406 | esac |
| 9407 | ;; |
| 9408 | freebsd12*) |
| 9409 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 9410 | ld_shlibs_CXX=no |
| 9411 | ;; |
| 9412 | freebsd-elf*) |
| 9413 | archive_cmds_need_lc_CXX=no |
| 9414 | ;; |
| 9415 | freebsd* | kfreebsd*-gnu) |
| 9416 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 9417 | # conventions |
| 9418 | ld_shlibs_CXX=yes |
| 9419 | ;; |
| 9420 | gnu*) |
| 9421 | ;; |
| 9422 | hpux9*) |
| 9423 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9424 | hardcode_libdir_separator_CXX=: |
| 9425 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9426 | hardcode_direct_CXX=yes |
| 9427 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9428 | # but as the default |
| 9429 | # location of the library. |
| 9430 | |
| 9431 | case $cc_basename in |
| 9432 | CC) |
| 9433 | # FIXME: insert proper C++ library support |
| 9434 | ld_shlibs_CXX=no |
| 9435 | ;; |
| 9436 | aCC) |
| 9437 | 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' |
| 9438 | # Commands to make compiler produce verbose output that lists |
| 9439 | # what "hidden" libraries, object files and flags are used when |
| 9440 | # linking a shared library. |
| 9441 | # |
| 9442 | # There doesn't appear to be a way to prevent this compiler from |
| 9443 | # explicitly linking system object files so we need to strip them |
| 9444 | # from the output so that they don't get included in the library |
| 9445 | # dependencies. |
| 9446 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9447 | ;; |
| 9448 | *) |
| 9449 | if test "$GXX" = yes; then |
| 9450 | 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' |
| 9451 | else |
| 9452 | # FIXME: insert proper C++ library support |
| 9453 | ld_shlibs_CXX=no |
| 9454 | fi |
| 9455 | ;; |
| 9456 | esac |
| 9457 | ;; |
| 9458 | hpux10*|hpux11*) |
| 9459 | if test $with_gnu_ld = no; then |
| 9460 | case "$host_cpu" in |
| 9461 | hppa*64*) |
| 9462 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9463 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 9464 | hardcode_libdir_separator_CXX=: |
| 9465 | ;; |
| 9466 | ia64*) |
| 9467 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9468 | ;; |
| 9469 | *) |
| 9470 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9471 | hardcode_libdir_separator_CXX=: |
| 9472 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9473 | ;; |
| 9474 | esac |
| 9475 | fi |
| 9476 | case "$host_cpu" in |
| 9477 | hppa*64*) |
| 9478 | hardcode_direct_CXX=no |
| 9479 | hardcode_shlibpath_var_CXX=no |
| 9480 | ;; |
| 9481 | ia64*) |
| 9482 | hardcode_direct_CXX=no |
| 9483 | hardcode_shlibpath_var_CXX=no |
| 9484 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9485 | # but as the default |
| 9486 | # location of the library. |
| 9487 | ;; |
| 9488 | *) |
| 9489 | hardcode_direct_CXX=yes |
| 9490 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9491 | # but as the default |
| 9492 | # location of the library. |
| 9493 | ;; |
| 9494 | esac |
| 9495 | |
| 9496 | case $cc_basename in |
| 9497 | CC) |
| 9498 | # FIXME: insert proper C++ library support |
| 9499 | ld_shlibs_CXX=no |
| 9500 | ;; |
| 9501 | aCC) |
| 9502 | case "$host_cpu" in |
| 9503 | hppa*64*|ia64*) |
| 9504 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9505 | ;; |
| 9506 | *) |
| 9507 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9508 | ;; |
| 9509 | esac |
| 9510 | # Commands to make compiler produce verbose output that lists |
| 9511 | # what "hidden" libraries, object files and flags are used when |
| 9512 | # linking a shared library. |
| 9513 | # |
| 9514 | # There doesn't appear to be a way to prevent this compiler from |
| 9515 | # explicitly linking system object files so we need to strip them |
| 9516 | # from the output so that they don't get included in the library |
| 9517 | # dependencies. |
| 9518 | 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' |
| 9519 | ;; |
| 9520 | *) |
| 9521 | if test "$GXX" = yes; then |
| 9522 | if test $with_gnu_ld = no; then |
| 9523 | case "$host_cpu" in |
| 9524 | ia64*|hppa*64*) |
| 9525 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9526 | ;; |
| 9527 | *) |
| 9528 | 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' |
| 9529 | ;; |
| 9530 | esac |
| 9531 | fi |
| 9532 | else |
| 9533 | # FIXME: insert proper C++ library support |
| 9534 | ld_shlibs_CXX=no |
| 9535 | fi |
| 9536 | ;; |
| 9537 | esac |
| 9538 | ;; |
| 9539 | irix5* | irix6*) |
| 9540 | case $cc_basename in |
| 9541 | CC) |
| 9542 | # SGI C++ |
| 9543 | 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' |
| 9544 | |
| 9545 | # Archives containing C++ object files must be created using |
| 9546 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 9547 | # necessary to make sure instantiated templates are included |
| 9548 | # in the archive. |
| 9549 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 9550 | ;; |
| 9551 | *) |
| 9552 | if test "$GXX" = yes; then |
| 9553 | if test "$with_gnu_ld" = no; then |
| 9554 | 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' |
| 9555 | else |
| 9556 | 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' |
| 9557 | fi |
| 9558 | fi |
| 9559 | link_all_deplibs_CXX=yes |
| 9560 | ;; |
| 9561 | esac |
| 9562 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9563 | hardcode_libdir_separator_CXX=: |
| 9564 | ;; |
| 9565 | linux*) |
| 9566 | case $cc_basename in |
| 9567 | KCC) |
| 9568 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9569 | |
| 9570 | # KCC will only create a shared library if the output file |
| 9571 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9572 | # to its proper name (with version) after linking. |
| 9573 | 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' |
| 9574 | 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' |
| 9575 | # Commands to make compiler produce verbose output that lists |
| 9576 | # what "hidden" libraries, object files and flags are used when |
| 9577 | # linking a shared library. |
| 9578 | # |
| 9579 | # There doesn't appear to be a way to prevent this compiler from |
| 9580 | # explicitly linking system object files so we need to strip them |
| 9581 | # from the output so that they don't get included in the library |
| 9582 | # dependencies. |
| 9583 | 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' |
| 9584 | |
| 9585 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 9586 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9587 | |
| 9588 | # Archives containing C++ object files must be created using |
| 9589 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 9590 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 9591 | ;; |
| 9592 | icpc) |
| 9593 | # Intel C++ |
| 9594 | with_gnu_ld=yes |
| 9595 | archive_cmds_need_lc_CXX=no |
| 9596 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9597 | 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' |
| 9598 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9599 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9600 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9601 | ;; |
| 9602 | cxx) |
| 9603 | # Compaq C++ |
| 9604 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9605 | 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' |
| 9606 | |
| 9607 | runpath_var=LD_RUN_PATH |
| 9608 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 9609 | hardcode_libdir_separator_CXX=: |
| 9610 | |
| 9611 | # Commands to make compiler produce verbose output that lists |
| 9612 | # what "hidden" libraries, object files and flags are used when |
| 9613 | # linking a shared library. |
| 9614 | # |
| 9615 | # There doesn't appear to be a way to prevent this compiler from |
| 9616 | # explicitly linking system object files so we need to strip them |
| 9617 | # from the output so that they don't get included in the library |
| 9618 | # dependencies. |
| 9619 | 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' |
| 9620 | ;; |
| 9621 | esac |
| 9622 | ;; |
| 9623 | lynxos*) |
| 9624 | # FIXME: insert proper C++ library support |
| 9625 | ld_shlibs_CXX=no |
| 9626 | ;; |
| 9627 | m88k*) |
| 9628 | # FIXME: insert proper C++ library support |
| 9629 | ld_shlibs_CXX=no |
| 9630 | ;; |
| 9631 | mvs*) |
| 9632 | case $cc_basename in |
| 9633 | cxx) |
| 9634 | # FIXME: insert proper C++ library support |
| 9635 | ld_shlibs_CXX=no |
| 9636 | ;; |
| 9637 | *) |
| 9638 | # FIXME: insert proper C++ library support |
| 9639 | ld_shlibs_CXX=no |
| 9640 | ;; |
| 9641 | esac |
| 9642 | ;; |
| 9643 | netbsd* | knetbsd*-gnu) |
| 9644 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9645 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 9646 | wlarc= |
| 9647 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 9648 | hardcode_direct_CXX=yes |
| 9649 | hardcode_shlibpath_var_CXX=no |
| 9650 | fi |
| 9651 | # Workaround some broken pre-1.5 toolchains |
| 9652 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 9653 | ;; |
| 9654 | osf3*) |
| 9655 | case $cc_basename in |
| 9656 | KCC) |
| 9657 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9658 | |
| 9659 | # KCC will only create a shared library if the output file |
| 9660 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9661 | # to its proper name (with version) after linking. |
| 9662 | 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' |
| 9663 | |
| 9664 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9665 | hardcode_libdir_separator_CXX=: |
| 9666 | |
| 9667 | # Archives containing C++ object files must be created using |
| 9668 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 9669 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 9670 | |
| 9671 | ;; |
| 9672 | RCC) |
| 9673 | # Rational C++ 2.4.1 |
| 9674 | # FIXME: insert proper C++ library support |
| 9675 | ld_shlibs_CXX=no |
| 9676 | ;; |
| 9677 | cxx) |
| 9678 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9679 | 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' |
| 9680 | |
| 9681 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9682 | hardcode_libdir_separator_CXX=: |
| 9683 | |
| 9684 | # Commands to make compiler produce verbose output that lists |
| 9685 | # what "hidden" libraries, object files and flags are used when |
| 9686 | # linking a shared library. |
| 9687 | # |
| 9688 | # There doesn't appear to be a way to prevent this compiler from |
| 9689 | # explicitly linking system object files so we need to strip them |
| 9690 | # from the output so that they don't get included in the library |
| 9691 | # dependencies. |
| 9692 | 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' |
| 9693 | ;; |
| 9694 | *) |
| 9695 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9696 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9697 | 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' |
| 9698 | |
| 9699 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9700 | hardcode_libdir_separator_CXX=: |
| 9701 | |
| 9702 | # Commands to make compiler produce verbose output that lists |
| 9703 | # what "hidden" libraries, object files and flags are used when |
| 9704 | # linking a shared library. |
| 9705 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9706 | |
| 9707 | else |
| 9708 | # FIXME: insert proper C++ library support |
| 9709 | ld_shlibs_CXX=no |
| 9710 | fi |
| 9711 | ;; |
| 9712 | esac |
| 9713 | ;; |
| 9714 | osf4* | osf5*) |
| 9715 | case $cc_basename in |
| 9716 | KCC) |
| 9717 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9718 | |
| 9719 | # KCC will only create a shared library if the output file |
| 9720 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9721 | # to its proper name (with version) after linking. |
| 9722 | 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' |
| 9723 | |
| 9724 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9725 | hardcode_libdir_separator_CXX=: |
| 9726 | |
| 9727 | # Archives containing C++ object files must be created using |
| 9728 | # the KAI C++ compiler. |
| 9729 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 9730 | ;; |
| 9731 | RCC) |
| 9732 | # Rational C++ 2.4.1 |
| 9733 | # FIXME: insert proper C++ library support |
| 9734 | ld_shlibs_CXX=no |
| 9735 | ;; |
| 9736 | cxx) |
| 9737 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 9738 | 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' |
| 9739 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 9740 | echo "-hidden">> $lib.exp~ |
| 9741 | $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~ |
| 9742 | $rm $lib.exp' |
| 9743 | |
| 9744 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 9745 | hardcode_libdir_separator_CXX=: |
| 9746 | |
| 9747 | # Commands to make compiler produce verbose output that lists |
| 9748 | # what "hidden" libraries, object files and flags are used when |
| 9749 | # linking a shared library. |
| 9750 | # |
| 9751 | # There doesn't appear to be a way to prevent this compiler from |
| 9752 | # explicitly linking system object files so we need to strip them |
| 9753 | # from the output so that they don't get included in the library |
| 9754 | # dependencies. |
| 9755 | 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' |
| 9756 | ;; |
| 9757 | *) |
| 9758 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9759 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9760 | 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' |
| 9761 | |
| 9762 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9763 | hardcode_libdir_separator_CXX=: |
| 9764 | |
| 9765 | # Commands to make compiler produce verbose output that lists |
| 9766 | # what "hidden" libraries, object files and flags are used when |
| 9767 | # linking a shared library. |
| 9768 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9769 | |
| 9770 | else |
| 9771 | # FIXME: insert proper C++ library support |
| 9772 | ld_shlibs_CXX=no |
| 9773 | fi |
| 9774 | ;; |
| 9775 | esac |
| 9776 | ;; |
| 9777 | psos*) |
| 9778 | # FIXME: insert proper C++ library support |
| 9779 | ld_shlibs_CXX=no |
| 9780 | ;; |
| 9781 | sco*) |
| 9782 | archive_cmds_need_lc_CXX=no |
| 9783 | case $cc_basename in |
| 9784 | CC) |
| 9785 | # FIXME: insert proper C++ library support |
| 9786 | ld_shlibs_CXX=no |
| 9787 | ;; |
| 9788 | *) |
| 9789 | # FIXME: insert proper C++ library support |
| 9790 | ld_shlibs_CXX=no |
| 9791 | ;; |
| 9792 | esac |
| 9793 | ;; |
| 9794 | sunos4*) |
| 9795 | case $cc_basename in |
| 9796 | CC) |
| 9797 | # Sun C++ 4.x |
| 9798 | # FIXME: insert proper C++ library support |
| 9799 | ld_shlibs_CXX=no |
| 9800 | ;; |
| 9801 | lcc) |
| 9802 | # Lucid |
| 9803 | # FIXME: insert proper C++ library support |
| 9804 | ld_shlibs_CXX=no |
| 9805 | ;; |
| 9806 | *) |
| 9807 | # FIXME: insert proper C++ library support |
| 9808 | ld_shlibs_CXX=no |
| 9809 | ;; |
| 9810 | esac |
| 9811 | ;; |
| 9812 | solaris*) |
| 9813 | case $cc_basename in |
| 9814 | CC) |
| 9815 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 9816 | no_undefined_flag_CXX=' -zdefs' |
| 9817 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9818 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9819 | $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' |
| 9820 | |
| 9821 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 9822 | hardcode_shlibpath_var_CXX=no |
| 9823 | case $host_os in |
| 9824 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 9825 | *) |
| 9826 | # The C++ compiler is used as linker so we must use $wl |
| 9827 | # flag to pass the commands to the underlying system |
| 9828 | # linker. |
| 9829 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9830 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9831 | ;; |
| 9832 | esac |
| 9833 | link_all_deplibs_CXX=yes |
| 9834 | |
| 9835 | # Commands to make compiler produce verbose output that lists |
| 9836 | # what "hidden" libraries, object files and flags are used when |
| 9837 | # linking a shared library. |
| 9838 | # |
| 9839 | # There doesn't appear to be a way to prevent this compiler from |
| 9840 | # explicitly linking system object files so we need to strip them |
| 9841 | # from the output so that they don't get included in the library |
| 9842 | # dependencies. |
| 9843 | 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' |
| 9844 | |
| 9845 | # Archives containing C++ object files must be created using |
| 9846 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 9847 | # necessary to make sure instantiated templates are included |
| 9848 | # in the archive. |
| 9849 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 9850 | ;; |
| 9851 | gcx) |
| 9852 | # Green Hills C++ Compiler |
| 9853 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9854 | |
| 9855 | # The C++ compiler must be used to create the archive. |
| 9856 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 9857 | ;; |
| 9858 | *) |
| 9859 | # GNU C++ compiler with Solaris linker |
| 9860 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9861 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 9862 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 9863 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9864 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9865 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 9866 | |
| 9867 | # Commands to make compiler produce verbose output that lists |
| 9868 | # what "hidden" libraries, object files and flags are used when |
| 9869 | # linking a shared library. |
| 9870 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 9871 | else |
| 9872 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 9873 | # platform. |
| 9874 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9875 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9876 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 9877 | |
| 9878 | # Commands to make compiler produce verbose output that lists |
| 9879 | # what "hidden" libraries, object files and flags are used when |
| 9880 | # linking a shared library. |
| 9881 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 9882 | fi |
| 9883 | |
| 9884 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 9885 | fi |
| 9886 | ;; |
| 9887 | esac |
| 9888 | ;; |
| 9889 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 9890 | archive_cmds_need_lc_CXX=no |
| 9891 | ;; |
| 9892 | tandem*) |
| 9893 | case $cc_basename in |
| 9894 | NCC) |
| 9895 | # NonStop-UX NCC 3.20 |
| 9896 | # FIXME: insert proper C++ library support |
| 9897 | ld_shlibs_CXX=no |
| 9898 | ;; |
| 9899 | *) |
| 9900 | # FIXME: insert proper C++ library support |
| 9901 | ld_shlibs_CXX=no |
| 9902 | ;; |
| 9903 | esac |
| 9904 | ;; |
| 9905 | vxworks*) |
| 9906 | # FIXME: insert proper C++ library support |
| 9907 | ld_shlibs_CXX=no |
| 9908 | ;; |
| 9909 | *) |
| 9910 | # FIXME: insert proper C++ library support |
| 9911 | ld_shlibs_CXX=no |
| 9912 | ;; |
| 9913 | esac |
| 9914 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 9915 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 9916 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 9917 | |
| 9918 | GCC_CXX="$GXX" |
| 9919 | LD_CXX="$LD" |
| 9920 | |
| 9921 | |
| 9922 | cat > conftest.$ac_ext <<EOF |
| 9923 | class Foo |
| 9924 | { |
| 9925 | public: |
| 9926 | Foo (void) { a = 0; } |
| 9927 | private: |
| 9928 | int a; |
| 9929 | }; |
| 9930 | EOF |
| 9931 | |
| 9932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9933 | (eval $ac_compile) 2>&5 |
| 9934 | ac_status=$? |
| 9935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9936 | (exit $ac_status); }; then |
| 9937 | # Parse the compiler output and extract the necessary |
| 9938 | # objects, libraries and library flags. |
| 9939 | |
| 9940 | # Sentinel used to keep track of whether or not we are before |
| 9941 | # the conftest object file. |
| 9942 | pre_test_object_deps_done=no |
| 9943 | |
| 9944 | # The `*' in the case matches for architectures that use `case' in |
| 9945 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 9946 | # eval without this substitution. |
| 9947 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 9948 | |
| 9949 | for p in `eval $output_verbose_link_cmd`; do |
| 9950 | case $p in |
| 9951 | |
| 9952 | -L* | -R* | -l*) |
| 9953 | # Some compilers place space between "-{L,R}" and the path. |
| 9954 | # Remove the space. |
| 9955 | if test $p = "-L" \ |
| 9956 | || test $p = "-R"; then |
| 9957 | prev=$p |
| 9958 | continue |
| 9959 | else |
| 9960 | prev= |
| 9961 | fi |
| 9962 | |
| 9963 | if test "$pre_test_object_deps_done" = no; then |
| 9964 | case $p in |
| 9965 | -L* | -R*) |
| 9966 | # Internal compiler library paths should come after those |
| 9967 | # provided the user. The postdeps already come after the |
| 9968 | # user supplied libs so there is no need to process them. |
| 9969 | if test -z "$compiler_lib_search_path_CXX"; then |
| 9970 | compiler_lib_search_path_CXX="${prev}${p}" |
| 9971 | else |
| 9972 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 9973 | fi |
| 9974 | ;; |
| 9975 | # The "-l" case would never come before the object being |
| 9976 | # linked, so don't bother handling this case. |
| 9977 | esac |
| 9978 | else |
| 9979 | if test -z "$postdeps_CXX"; then |
| 9980 | postdeps_CXX="${prev}${p}" |
| 9981 | else |
| 9982 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 9983 | fi |
| 9984 | fi |
| 9985 | ;; |
| 9986 | |
| 9987 | *.$objext) |
| 9988 | # This assumes that the test object file only shows up |
| 9989 | # once in the compiler output. |
| 9990 | if test "$p" = "conftest.$objext"; then |
| 9991 | pre_test_object_deps_done=yes |
| 9992 | continue |
| 9993 | fi |
| 9994 | |
| 9995 | if test "$pre_test_object_deps_done" = no; then |
| 9996 | if test -z "$predep_objects_CXX"; then |
| 9997 | predep_objects_CXX="$p" |
| 9998 | else |
| 9999 | predep_objects_CXX="$predep_objects_CXX $p" |
| 10000 | fi |
| 10001 | else |
| 10002 | if test -z "$postdep_objects_CXX"; then |
| 10003 | postdep_objects_CXX="$p" |
| 10004 | else |
| 10005 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 10006 | fi |
| 10007 | fi |
| 10008 | ;; |
| 10009 | |
| 10010 | *) ;; # Ignore the rest. |
| 10011 | |
| 10012 | esac |
| 10013 | done |
| 10014 | |
| 10015 | # Clean up. |
| 10016 | rm -f a.out a.exe |
| 10017 | else |
| 10018 | echo "libtool.m4: error: problem compiling CXX test program" |
| 10019 | fi |
| 10020 | |
| 10021 | $rm -f confest.$objext |
| 10022 | |
| 10023 | case " $postdeps_CXX " in |
| 10024 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 10025 | esac |
| 10026 | |
| 10027 | lt_prog_compiler_wl_CXX= |
| 10028 | lt_prog_compiler_pic_CXX= |
| 10029 | lt_prog_compiler_static_CXX= |
| 10030 | |
| 10031 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 10032 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 10033 | |
| 10034 | # C++ specific cases for pic, static, wl, etc. |
| 10035 | if test "$GXX" = yes; then |
| 10036 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10037 | lt_prog_compiler_static_CXX='-static' |
| 10038 | |
| 10039 | case $host_os in |
| 10040 | aix*) |
| 10041 | # All AIX code is PIC. |
| 10042 | if test "$host_cpu" = ia64; then |
| 10043 | # AIX 5 now supports IA64 processor |
| 10044 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10045 | fi |
| 10046 | ;; |
| 10047 | amigaos*) |
| 10048 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10049 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 10050 | # like `-m68040'. |
| 10051 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 10052 | ;; |
| 10053 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10054 | # PIC is the default for these OSes. |
| 10055 | ;; |
| 10056 | mingw* | os2* | pw32*) |
| 10057 | # This hack is so that the source file can tell whether it is being |
| 10058 | # built for inclusion in a dll (and should export symbols for example). |
| 10059 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 10060 | ;; |
| 10061 | darwin* | rhapsody*) |
| 10062 | # PIC is the default on this platform |
| 10063 | # Common symbols not allowed in MH_DYLIB files |
| 10064 | lt_prog_compiler_pic_CXX='-fno-common' |
| 10065 | ;; |
| 10066 | *djgpp*) |
| 10067 | # DJGPP does not support shared libraries at all |
| 10068 | lt_prog_compiler_pic_CXX= |
| 10069 | ;; |
| 10070 | sysv4*MP*) |
| 10071 | if test -d /usr/nec; then |
| 10072 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 10073 | fi |
| 10074 | ;; |
| 10075 | hpux*) |
| 10076 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10077 | # not for PA HP-UX. |
| 10078 | case "$host_cpu" in |
| 10079 | hppa*64*|ia64*) |
| 10080 | ;; |
| 10081 | *) |
| 10082 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10083 | ;; |
| 10084 | esac |
| 10085 | ;; |
| 10086 | *) |
| 10087 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10088 | ;; |
| 10089 | esac |
| 10090 | else |
| 10091 | case $host_os in |
| 10092 | aix4* | aix5*) |
| 10093 | # All AIX code is PIC. |
| 10094 | if test "$host_cpu" = ia64; then |
| 10095 | # AIX 5 now supports IA64 processor |
| 10096 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10097 | else |
| 10098 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 10099 | fi |
| 10100 | ;; |
| 10101 | chorus*) |
| 10102 | case $cc_basename in |
| 10103 | cxch68) |
| 10104 | # Green Hills C++ Compiler |
| 10105 | # _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" |
| 10106 | ;; |
| 10107 | esac |
| 10108 | ;; |
| 10109 | dgux*) |
| 10110 | case $cc_basename in |
| 10111 | ec++) |
| 10112 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10113 | ;; |
| 10114 | ghcx) |
| 10115 | # Green Hills C++ Compiler |
| 10116 | lt_prog_compiler_pic_CXX='-pic' |
| 10117 | ;; |
| 10118 | *) |
| 10119 | ;; |
| 10120 | esac |
| 10121 | ;; |
| 10122 | freebsd* | kfreebsd*-gnu) |
| 10123 | # FreeBSD uses GNU C++ |
| 10124 | ;; |
| 10125 | hpux9* | hpux10* | hpux11*) |
| 10126 | case $cc_basename in |
| 10127 | CC) |
| 10128 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10129 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10130 | if test "$host_cpu" != ia64; then |
| 10131 | lt_prog_compiler_pic_CXX='+Z' |
| 10132 | fi |
| 10133 | ;; |
| 10134 | aCC) |
| 10135 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10136 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10137 | case "$host_cpu" in |
| 10138 | hppa*64*|ia64*) |
| 10139 | # +Z the default |
| 10140 | ;; |
| 10141 | *) |
| 10142 | lt_prog_compiler_pic_CXX='+Z' |
| 10143 | ;; |
| 10144 | esac |
| 10145 | ;; |
| 10146 | *) |
| 10147 | ;; |
| 10148 | esac |
| 10149 | ;; |
| 10150 | irix5* | irix6* | nonstopux*) |
| 10151 | case $cc_basename in |
| 10152 | CC) |
| 10153 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10154 | lt_prog_compiler_static_CXX='-non_shared' |
| 10155 | # CC pic flag -KPIC is the default. |
| 10156 | ;; |
| 10157 | *) |
| 10158 | ;; |
| 10159 | esac |
| 10160 | ;; |
| 10161 | linux*) |
| 10162 | case $cc_basename in |
| 10163 | KCC) |
| 10164 | # KAI C++ Compiler |
| 10165 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10166 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10167 | ;; |
| 10168 | icpc) |
| 10169 | # Intel C++ |
| 10170 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10171 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10172 | lt_prog_compiler_static_CXX='-static' |
| 10173 | ;; |
| 10174 | cxx) |
| 10175 | # Compaq C++ |
| 10176 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10177 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10178 | lt_prog_compiler_pic_CXX= |
| 10179 | lt_prog_compiler_static_CXX='-non_shared' |
| 10180 | ;; |
| 10181 | *) |
| 10182 | ;; |
| 10183 | esac |
| 10184 | ;; |
| 10185 | lynxos*) |
| 10186 | ;; |
| 10187 | m88k*) |
| 10188 | ;; |
| 10189 | mvs*) |
| 10190 | case $cc_basename in |
| 10191 | cxx) |
| 10192 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 10193 | ;; |
| 10194 | *) |
| 10195 | ;; |
| 10196 | esac |
| 10197 | ;; |
| 10198 | netbsd* | knetbsd*-gnu) |
| 10199 | ;; |
| 10200 | osf3* | osf4* | osf5*) |
| 10201 | case $cc_basename in |
| 10202 | KCC) |
| 10203 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10204 | ;; |
| 10205 | RCC) |
| 10206 | # Rational C++ 2.4.1 |
| 10207 | lt_prog_compiler_pic_CXX='-pic' |
| 10208 | ;; |
| 10209 | cxx) |
| 10210 | # Digital/Compaq C++ |
| 10211 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10212 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10213 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10214 | lt_prog_compiler_pic_CXX= |
| 10215 | lt_prog_compiler_static_CXX='-non_shared' |
| 10216 | ;; |
| 10217 | *) |
| 10218 | ;; |
| 10219 | esac |
| 10220 | ;; |
| 10221 | psos*) |
| 10222 | ;; |
| 10223 | sco*) |
| 10224 | case $cc_basename in |
| 10225 | CC) |
| 10226 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10227 | ;; |
| 10228 | *) |
| 10229 | ;; |
| 10230 | esac |
| 10231 | ;; |
| 10232 | solaris*) |
| 10233 | case $cc_basename in |
| 10234 | CC) |
| 10235 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10236 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10237 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10238 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 10239 | ;; |
| 10240 | gcx) |
| 10241 | # Green Hills C++ Compiler |
| 10242 | lt_prog_compiler_pic_CXX='-PIC' |
| 10243 | ;; |
| 10244 | *) |
| 10245 | ;; |
| 10246 | esac |
| 10247 | ;; |
| 10248 | sunos4*) |
| 10249 | case $cc_basename in |
| 10250 | CC) |
| 10251 | # Sun C++ 4.x |
| 10252 | lt_prog_compiler_pic_CXX='-pic' |
| 10253 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10254 | ;; |
| 10255 | lcc) |
| 10256 | # Lucid |
| 10257 | lt_prog_compiler_pic_CXX='-pic' |
| 10258 | ;; |
| 10259 | *) |
| 10260 | ;; |
| 10261 | esac |
| 10262 | ;; |
| 10263 | tandem*) |
| 10264 | case $cc_basename in |
| 10265 | NCC) |
| 10266 | # NonStop-UX NCC 3.20 |
| 10267 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10268 | ;; |
| 10269 | *) |
| 10270 | ;; |
| 10271 | esac |
| 10272 | ;; |
| 10273 | unixware*) |
| 10274 | ;; |
| 10275 | vxworks*) |
| 10276 | ;; |
| 10277 | *) |
| 10278 | lt_prog_compiler_can_build_shared_CXX=no |
| 10279 | ;; |
| 10280 | esac |
| 10281 | fi |
| 10282 | |
| 10283 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 10284 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 10285 | |
| 10286 | # |
| 10287 | # Check to make sure the PIC flag actually works. |
| 10288 | # |
| 10289 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 10290 | |
| 10291 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 10292 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 10293 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 10294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10295 | else |
| 10296 | lt_prog_compiler_pic_works_CXX=no |
| 10297 | ac_outfile=conftest.$ac_objext |
| 10298 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10299 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 10300 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10301 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10302 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10303 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10304 | # The option is referenced via a variable to avoid confusing sed. |
| 10305 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10306 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10307 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10308 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 10309 | (eval echo "\"\$as_me:10309: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10310 | (eval "$lt_compile" 2>conftest.err) |
| 10311 | ac_status=$? |
| 10312 | cat conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 10313 | echo "$as_me:10313: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10314 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10315 | # The compiler can only warn and ignore the option if not recognized |
| 10316 | # So say no if there are warnings |
| 10317 | if test ! -s conftest.err; then |
| 10318 | lt_prog_compiler_pic_works_CXX=yes |
| 10319 | fi |
| 10320 | fi |
| 10321 | $rm conftest* |
| 10322 | |
| 10323 | fi |
| 10324 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 10325 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 10326 | |
| 10327 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 10328 | case $lt_prog_compiler_pic_CXX in |
| 10329 | "" | " "*) ;; |
| 10330 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 10331 | esac |
| 10332 | else |
| 10333 | lt_prog_compiler_pic_CXX= |
| 10334 | lt_prog_compiler_can_build_shared_CXX=no |
| 10335 | fi |
| 10336 | |
| 10337 | fi |
| 10338 | case "$host_os" in |
| 10339 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 10340 | *djgpp*) |
| 10341 | lt_prog_compiler_pic_CXX= |
| 10342 | ;; |
| 10343 | *) |
| 10344 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 10345 | ;; |
| 10346 | esac |
| 10347 | |
| 10348 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10349 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 10350 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 10351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10352 | else |
| 10353 | lt_cv_prog_compiler_c_o_CXX=no |
| 10354 | $rm -r conftest 2>/dev/null |
| 10355 | mkdir conftest |
| 10356 | cd conftest |
| 10357 | mkdir out |
| 10358 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10359 | |
| 10360 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10361 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10362 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10363 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10364 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10365 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10366 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10367 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10368 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 10369 | (eval echo "\"\$as_me:10369: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10370 | (eval "$lt_compile" 2>out/conftest.err) |
| 10371 | ac_status=$? |
| 10372 | cat out/conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 10373 | echo "$as_me:10373: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10374 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10375 | then |
| 10376 | # The compiler can only warn and ignore the option if not recognized |
| 10377 | # So say no if there are warnings |
| 10378 | if test ! -s out/conftest.err; then |
| 10379 | lt_cv_prog_compiler_c_o_CXX=yes |
| 10380 | fi |
| 10381 | fi |
| 10382 | chmod u+w . |
| 10383 | $rm conftest* |
| 10384 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10385 | # template instantiation |
| 10386 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 10387 | $rm out/* && rmdir out |
| 10388 | cd .. |
| 10389 | rmdir conftest |
| 10390 | $rm conftest* |
| 10391 | |
| 10392 | fi |
| 10393 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 10394 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 10395 | |
| 10396 | |
| 10397 | hard_links="nottested" |
| 10398 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 10399 | # do not overwrite the value of need_locks provided by the user |
| 10400 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 10401 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 10402 | hard_links=yes |
| 10403 | $rm conftest* |
| 10404 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10405 | touch conftest.a |
| 10406 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10407 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10408 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 10409 | echo "${ECHO_T}$hard_links" >&6 |
| 10410 | if test "$hard_links" = no; then |
| 10411 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 10412 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 10413 | need_locks=warn |
| 10414 | fi |
| 10415 | else |
| 10416 | need_locks=no |
| 10417 | fi |
| 10418 | |
| 10419 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10420 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 10421 | |
| 10422 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10423 | case $host_os in |
| 10424 | aix4* | aix5*) |
| 10425 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10426 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 10427 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 10428 | 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' |
| 10429 | else |
| 10430 | 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' |
| 10431 | fi |
| 10432 | ;; |
| 10433 | pw32*) |
| 10434 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 10435 | ;; |
| 10436 | cygwin* | mingw*) |
| 10437 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 10438 | ;; |
| 10439 | *) |
| 10440 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10441 | ;; |
| 10442 | esac |
| 10443 | |
| 10444 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10445 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10446 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10447 | |
| 10448 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10449 | if test "$GCC" = yes; then |
| 10450 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10451 | fi |
| 10452 | |
| 10453 | # |
| 10454 | # Do we need to explicitly link libc? |
| 10455 | # |
| 10456 | case "x$archive_cmds_need_lc_CXX" in |
| 10457 | x|xyes) |
| 10458 | # Assume -lc should be added |
| 10459 | archive_cmds_need_lc_CXX=yes |
| 10460 | |
| 10461 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10462 | case $archive_cmds_CXX in |
| 10463 | *'~'*) |
| 10464 | # FIXME: we may have to deal with multi-command sequences. |
| 10465 | ;; |
| 10466 | '$CC '*) |
| 10467 | # Test whether the compiler implicitly links with -lc since on some |
| 10468 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10469 | # to ld, don't add -lc before -lgcc. |
| 10470 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 10471 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 10472 | $rm conftest* |
| 10473 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10474 | |
| 10475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10476 | (eval $ac_compile) 2>&5 |
| 10477 | ac_status=$? |
| 10478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10479 | (exit $ac_status); } 2>conftest.err; then |
| 10480 | soname=conftest |
| 10481 | lib=conftest |
| 10482 | libobjs=conftest.$ac_objext |
| 10483 | deplibs= |
| 10484 | wl=$lt_prog_compiler_wl_CXX |
| 10485 | compiler_flags=-v |
| 10486 | linker_flags=-v |
| 10487 | verstring= |
| 10488 | output_objdir=. |
| 10489 | libname=conftest |
| 10490 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 10491 | allow_undefined_flag_CXX= |
| 10492 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 10493 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10494 | ac_status=$? |
| 10495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10496 | (exit $ac_status); } |
| 10497 | then |
| 10498 | archive_cmds_need_lc_CXX=no |
| 10499 | else |
| 10500 | archive_cmds_need_lc_CXX=yes |
| 10501 | fi |
| 10502 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 10503 | else |
| 10504 | cat conftest.err 1>&5 |
| 10505 | fi |
| 10506 | $rm conftest* |
| 10507 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 10508 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 10509 | ;; |
| 10510 | esac |
| 10511 | fi |
| 10512 | ;; |
| 10513 | esac |
| 10514 | |
| 10515 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 10516 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 10517 | library_names_spec= |
| 10518 | libname_spec='lib$name' |
| 10519 | soname_spec= |
| 10520 | shrext=".so" |
| 10521 | postinstall_cmds= |
| 10522 | postuninstall_cmds= |
| 10523 | finish_cmds= |
| 10524 | finish_eval= |
| 10525 | shlibpath_var= |
| 10526 | shlibpath_overrides_runpath=unknown |
| 10527 | version_type=none |
| 10528 | dynamic_linker="$host_os ld.so" |
| 10529 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10530 | if test "$GCC" = yes; then |
| 10531 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10532 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 10533 | # if the path contains ";" then we assume it to be the separator |
| 10534 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10535 | # assumed that no part of a normal pathname contains ";" but that should |
| 10536 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10537 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10538 | else |
| 10539 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10540 | fi |
| 10541 | else |
| 10542 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10543 | fi |
| 10544 | need_lib_prefix=unknown |
| 10545 | hardcode_into_libs=no |
| 10546 | |
| 10547 | # when you set need_version to no, make sure it does not cause -set_version |
| 10548 | # flags to be left without arguments |
| 10549 | need_version=unknown |
| 10550 | |
| 10551 | case $host_os in |
| 10552 | aix3*) |
| 10553 | version_type=linux |
| 10554 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10555 | shlibpath_var=LIBPATH |
| 10556 | |
| 10557 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10558 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10559 | ;; |
| 10560 | |
| 10561 | aix4* | aix5*) |
| 10562 | version_type=linux |
| 10563 | need_lib_prefix=no |
| 10564 | need_version=no |
| 10565 | hardcode_into_libs=yes |
| 10566 | if test "$host_cpu" = ia64; then |
| 10567 | # AIX 5 supports IA64 |
| 10568 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10569 | shlibpath_var=LD_LIBRARY_PATH |
| 10570 | else |
| 10571 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10572 | # for dependence libraries. The import file would start with |
| 10573 | # the line `#! .'. This would cause the generated library to |
| 10574 | # depend on `.', always an invalid library. This was fixed in |
| 10575 | # development snapshots of GCC prior to 3.0. |
| 10576 | case $host_os in |
| 10577 | aix4 | aix4.[01] | aix4.[01].*) |
| 10578 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10579 | echo ' yes ' |
| 10580 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 10581 | : |
| 10582 | else |
| 10583 | can_build_shared=no |
| 10584 | fi |
| 10585 | ;; |
| 10586 | esac |
| 10587 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10588 | # soname into executable. Probably we can add versioning support to |
| 10589 | # collect2, so additional links can be useful in future. |
| 10590 | if test "$aix_use_runtimelinking" = yes; then |
| 10591 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10592 | # instead of lib<name>.a to let people know that these are not |
| 10593 | # typical AIX shared libraries. |
| 10594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10595 | else |
| 10596 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10597 | # and later when we are not doing run time linking. |
| 10598 | library_names_spec='${libname}${release}.a $libname.a' |
| 10599 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10600 | fi |
| 10601 | shlibpath_var=LIBPATH |
| 10602 | fi |
| 10603 | ;; |
| 10604 | |
| 10605 | amigaos*) |
| 10606 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10607 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10608 | 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' |
| 10609 | ;; |
| 10610 | |
| 10611 | beos*) |
| 10612 | library_names_spec='${libname}${shared_ext}' |
| 10613 | dynamic_linker="$host_os ld.so" |
| 10614 | shlibpath_var=LIBRARY_PATH |
| 10615 | ;; |
| 10616 | |
| 10617 | bsdi4*) |
| 10618 | version_type=linux |
| 10619 | need_version=no |
| 10620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10621 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10622 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10623 | shlibpath_var=LD_LIBRARY_PATH |
| 10624 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10625 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10626 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10627 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10628 | # libtool to hard-code these into programs |
| 10629 | ;; |
| 10630 | |
| 10631 | cygwin* | mingw* | pw32*) |
| 10632 | version_type=windows |
| 10633 | shrext=".dll" |
| 10634 | need_version=no |
| 10635 | need_lib_prefix=no |
| 10636 | |
| 10637 | case $GCC,$host_os in |
| 10638 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 10639 | library_names_spec='$libname.dll.a' |
| 10640 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10641 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10642 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 10643 | dldir=$destdir/`dirname \$dlpath`~ |
| 10644 | test -d \$dldir || mkdir -p \$dldir~ |
| 10645 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10646 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10647 | dlpath=$dir/\$dldll~ |
| 10648 | $rm \$dlpath' |
| 10649 | shlibpath_overrides_runpath=yes |
| 10650 | |
| 10651 | case $host_os in |
| 10652 | cygwin*) |
| 10653 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10654 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10655 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 10656 | ;; |
| 10657 | mingw*) |
| 10658 | # MinGW DLLs use traditional 'lib' prefix |
| 10659 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10660 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10661 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 10662 | # It is most probably a Windows format PATH printed by |
| 10663 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10664 | # path with ; separators, and with drive letters. We can handle the |
| 10665 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10666 | # especially as we might pass files found there to a mingw objdump, |
| 10667 | # which wouldn't understand a cygwinified path. Ahh. |
| 10668 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10669 | else |
| 10670 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10671 | fi |
| 10672 | ;; |
| 10673 | pw32*) |
| 10674 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10675 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 10676 | ;; |
| 10677 | esac |
| 10678 | ;; |
| 10679 | |
| 10680 | *) |
| 10681 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10682 | ;; |
| 10683 | esac |
| 10684 | dynamic_linker='Win32 ld.exe' |
| 10685 | # FIXME: first we should search . and the directory the executable is in |
| 10686 | shlibpath_var=PATH |
| 10687 | ;; |
| 10688 | |
| 10689 | darwin* | rhapsody*) |
| 10690 | dynamic_linker="$host_os dyld" |
| 10691 | version_type=darwin |
| 10692 | need_lib_prefix=no |
| 10693 | need_version=no |
| 10694 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10695 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10696 | shlibpath_overrides_runpath=yes |
| 10697 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10698 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 10699 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 10700 | if test "$GCC" = yes; then |
| 10701 | 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"` |
| 10702 | else |
| 10703 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 10704 | fi |
| 10705 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10706 | ;; |
| 10707 | |
| 10708 | dgux*) |
| 10709 | version_type=linux |
| 10710 | need_lib_prefix=no |
| 10711 | need_version=no |
| 10712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10713 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10714 | shlibpath_var=LD_LIBRARY_PATH |
| 10715 | ;; |
| 10716 | |
| 10717 | freebsd1*) |
| 10718 | dynamic_linker=no |
| 10719 | ;; |
| 10720 | |
| 10721 | kfreebsd*-gnu) |
| 10722 | version_type=linux |
| 10723 | need_lib_prefix=no |
| 10724 | need_version=no |
| 10725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10727 | shlibpath_var=LD_LIBRARY_PATH |
| 10728 | shlibpath_overrides_runpath=no |
| 10729 | hardcode_into_libs=yes |
| 10730 | dynamic_linker='GNU ld.so' |
| 10731 | ;; |
| 10732 | |
| 10733 | freebsd*) |
| 10734 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 10735 | version_type=freebsd-$objformat |
| 10736 | case $version_type in |
| 10737 | freebsd-elf*) |
| 10738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10739 | need_version=no |
| 10740 | need_lib_prefix=no |
| 10741 | ;; |
| 10742 | freebsd-*) |
| 10743 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10744 | need_version=yes |
| 10745 | ;; |
| 10746 | esac |
| 10747 | shlibpath_var=LD_LIBRARY_PATH |
| 10748 | case $host_os in |
| 10749 | freebsd2*) |
| 10750 | shlibpath_overrides_runpath=yes |
| 10751 | ;; |
| 10752 | freebsd3.01* | freebsdelf3.01*) |
| 10753 | shlibpath_overrides_runpath=yes |
| 10754 | hardcode_into_libs=yes |
| 10755 | ;; |
| 10756 | *) # from 3.2 on |
| 10757 | shlibpath_overrides_runpath=no |
| 10758 | hardcode_into_libs=yes |
| 10759 | ;; |
| 10760 | esac |
| 10761 | ;; |
| 10762 | |
| 10763 | gnu*) |
| 10764 | version_type=linux |
| 10765 | need_lib_prefix=no |
| 10766 | need_version=no |
| 10767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10769 | shlibpath_var=LD_LIBRARY_PATH |
| 10770 | hardcode_into_libs=yes |
| 10771 | ;; |
| 10772 | |
| 10773 | hpux9* | hpux10* | hpux11*) |
| 10774 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10775 | # link against other versions. |
| 10776 | version_type=sunos |
| 10777 | need_lib_prefix=no |
| 10778 | need_version=no |
| 10779 | case "$host_cpu" in |
| 10780 | ia64*) |
| 10781 | shrext='.so' |
| 10782 | hardcode_into_libs=yes |
| 10783 | dynamic_linker="$host_os dld.so" |
| 10784 | shlibpath_var=LD_LIBRARY_PATH |
| 10785 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10787 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10788 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10789 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10790 | else |
| 10791 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10792 | fi |
| 10793 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10794 | ;; |
| 10795 | hppa*64*) |
| 10796 | shrext='.sl' |
| 10797 | hardcode_into_libs=yes |
| 10798 | dynamic_linker="$host_os dld.sl" |
| 10799 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10800 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10802 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10803 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10804 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10805 | ;; |
| 10806 | *) |
| 10807 | shrext='.sl' |
| 10808 | dynamic_linker="$host_os dld.sl" |
| 10809 | shlibpath_var=SHLIB_PATH |
| 10810 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10812 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10813 | ;; |
| 10814 | esac |
| 10815 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10816 | postinstall_cmds='chmod 555 $lib' |
| 10817 | ;; |
| 10818 | |
| 10819 | irix5* | irix6* | nonstopux*) |
| 10820 | case $host_os in |
| 10821 | nonstopux*) version_type=nonstopux ;; |
| 10822 | *) |
| 10823 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10824 | version_type=linux |
| 10825 | else |
| 10826 | version_type=irix |
| 10827 | fi ;; |
| 10828 | esac |
| 10829 | need_lib_prefix=no |
| 10830 | need_version=no |
| 10831 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10833 | case $host_os in |
| 10834 | irix5* | nonstopux*) |
| 10835 | libsuff= shlibsuff= |
| 10836 | ;; |
| 10837 | *) |
| 10838 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10839 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10840 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10841 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10842 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10843 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10844 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10845 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10846 | esac |
| 10847 | ;; |
| 10848 | esac |
| 10849 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10850 | shlibpath_overrides_runpath=no |
| 10851 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10852 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10853 | hardcode_into_libs=yes |
| 10854 | ;; |
| 10855 | |
| 10856 | # No shared lib support for Linux oldld, aout, or coff. |
| 10857 | linux*oldld* | linux*aout* | linux*coff*) |
| 10858 | dynamic_linker=no |
| 10859 | ;; |
| 10860 | |
| 10861 | # This must be Linux ELF. |
| 10862 | linux*) |
| 10863 | version_type=linux |
| 10864 | need_lib_prefix=no |
| 10865 | need_version=no |
| 10866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10867 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10869 | shlibpath_var=LD_LIBRARY_PATH |
| 10870 | shlibpath_overrides_runpath=no |
| 10871 | # This implies no fast_install, which is unacceptable. |
| 10872 | # Some rework will be needed to allow for fast_install |
| 10873 | # before this can be enabled. |
| 10874 | hardcode_into_libs=yes |
| 10875 | |
| 10876 | # Append ld.so.conf contents to the search path |
| 10877 | if test -f /etc/ld.so.conf; then |
| 10878 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
| 10879 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
| 10880 | fi |
| 10881 | |
| 10882 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10883 | # powerpc, because MkLinux only supported shared libraries with the |
| 10884 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10885 | # most powerpc-linux boxes support dynamic linking these days and |
| 10886 | # people can always --disable-shared, the test was removed, and we |
| 10887 | # assume the GNU/Linux dynamic linker is in use. |
| 10888 | dynamic_linker='GNU/Linux ld.so' |
| 10889 | ;; |
| 10890 | |
| 10891 | knetbsd*-gnu) |
| 10892 | version_type=linux |
| 10893 | need_lib_prefix=no |
| 10894 | need_version=no |
| 10895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10896 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10897 | shlibpath_var=LD_LIBRARY_PATH |
| 10898 | shlibpath_overrides_runpath=no |
| 10899 | hardcode_into_libs=yes |
| 10900 | dynamic_linker='GNU ld.so' |
| 10901 | ;; |
| 10902 | |
| 10903 | netbsd*) |
| 10904 | version_type=sunos |
| 10905 | need_lib_prefix=no |
| 10906 | need_version=no |
| 10907 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10909 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10910 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10911 | else |
| 10912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10913 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10914 | dynamic_linker='NetBSD ld.elf_so' |
| 10915 | fi |
| 10916 | shlibpath_var=LD_LIBRARY_PATH |
| 10917 | shlibpath_overrides_runpath=yes |
| 10918 | hardcode_into_libs=yes |
| 10919 | ;; |
| 10920 | |
| 10921 | newsos6) |
| 10922 | version_type=linux |
| 10923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10924 | shlibpath_var=LD_LIBRARY_PATH |
| 10925 | shlibpath_overrides_runpath=yes |
| 10926 | ;; |
| 10927 | |
| 10928 | nto-qnx*) |
| 10929 | version_type=linux |
| 10930 | need_lib_prefix=no |
| 10931 | need_version=no |
| 10932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10933 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10934 | shlibpath_var=LD_LIBRARY_PATH |
| 10935 | shlibpath_overrides_runpath=yes |
| 10936 | ;; |
| 10937 | |
| 10938 | openbsd*) |
| 10939 | version_type=sunos |
| 10940 | need_lib_prefix=no |
| 10941 | need_version=yes |
| 10942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10943 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10944 | shlibpath_var=LD_LIBRARY_PATH |
| 10945 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10946 | case $host_os in |
| 10947 | openbsd2.[89] | openbsd2.[89].*) |
| 10948 | shlibpath_overrides_runpath=no |
| 10949 | ;; |
| 10950 | *) |
| 10951 | shlibpath_overrides_runpath=yes |
| 10952 | ;; |
| 10953 | esac |
| 10954 | else |
| 10955 | shlibpath_overrides_runpath=yes |
| 10956 | fi |
| 10957 | ;; |
| 10958 | |
| 10959 | os2*) |
| 10960 | libname_spec='$name' |
| 10961 | shrext=".dll" |
| 10962 | need_lib_prefix=no |
| 10963 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10964 | dynamic_linker='OS/2 ld.exe' |
| 10965 | shlibpath_var=LIBPATH |
| 10966 | ;; |
| 10967 | |
| 10968 | osf3* | osf4* | osf5*) |
| 10969 | version_type=osf |
| 10970 | need_lib_prefix=no |
| 10971 | need_version=no |
| 10972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10974 | shlibpath_var=LD_LIBRARY_PATH |
| 10975 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10976 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10977 | ;; |
| 10978 | |
| 10979 | sco3.2v5*) |
| 10980 | version_type=osf |
| 10981 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10983 | shlibpath_var=LD_LIBRARY_PATH |
| 10984 | ;; |
| 10985 | |
| 10986 | solaris*) |
| 10987 | version_type=linux |
| 10988 | need_lib_prefix=no |
| 10989 | need_version=no |
| 10990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10991 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10992 | shlibpath_var=LD_LIBRARY_PATH |
| 10993 | shlibpath_overrides_runpath=yes |
| 10994 | hardcode_into_libs=yes |
| 10995 | # ldd complains unless libraries are executable |
| 10996 | postinstall_cmds='chmod +x $lib' |
| 10997 | ;; |
| 10998 | |
| 10999 | sunos4*) |
| 11000 | version_type=sunos |
| 11001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11002 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11003 | shlibpath_var=LD_LIBRARY_PATH |
| 11004 | shlibpath_overrides_runpath=yes |
| 11005 | if test "$with_gnu_ld" = yes; then |
| 11006 | need_lib_prefix=no |
| 11007 | fi |
| 11008 | need_version=yes |
| 11009 | ;; |
| 11010 | |
| 11011 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11012 | version_type=linux |
| 11013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11014 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11015 | shlibpath_var=LD_LIBRARY_PATH |
| 11016 | case $host_vendor in |
| 11017 | sni) |
| 11018 | shlibpath_overrides_runpath=no |
| 11019 | need_lib_prefix=no |
| 11020 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11021 | runpath_var=LD_RUN_PATH |
| 11022 | ;; |
| 11023 | siemens) |
| 11024 | need_lib_prefix=no |
| 11025 | ;; |
| 11026 | motorola) |
| 11027 | need_lib_prefix=no |
| 11028 | need_version=no |
| 11029 | shlibpath_overrides_runpath=no |
| 11030 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11031 | ;; |
| 11032 | esac |
| 11033 | ;; |
| 11034 | |
| 11035 | sysv4*MP*) |
| 11036 | if test -d /usr/nec ;then |
| 11037 | version_type=linux |
| 11038 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11039 | soname_spec='$libname${shared_ext}.$major' |
| 11040 | shlibpath_var=LD_LIBRARY_PATH |
| 11041 | fi |
| 11042 | ;; |
| 11043 | |
| 11044 | uts4*) |
| 11045 | version_type=linux |
| 11046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11047 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11048 | shlibpath_var=LD_LIBRARY_PATH |
| 11049 | ;; |
| 11050 | |
| 11051 | *) |
| 11052 | dynamic_linker=no |
| 11053 | ;; |
| 11054 | esac |
| 11055 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 11056 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11057 | test "$dynamic_linker" = no && can_build_shared=no |
| 11058 | |
| 11059 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 11060 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 11061 | hardcode_action_CXX= |
| 11062 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 11063 | test -n "$runpath_var CXX" || \ |
| 11064 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
| 11065 | |
| 11066 | # We can hardcode non-existant directories. |
| 11067 | if test "$hardcode_direct_CXX" != no && |
| 11068 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11069 | # have to relink, otherwise we might link with an installed library |
| 11070 | # when we should be linking with a yet-to-be-installed one |
| 11071 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 11072 | test "$hardcode_minus_L_CXX" != no; then |
| 11073 | # Linking always hardcodes the temporary library directory. |
| 11074 | hardcode_action_CXX=relink |
| 11075 | else |
| 11076 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11077 | hardcode_action_CXX=immediate |
| 11078 | fi |
| 11079 | else |
| 11080 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11081 | # directories. |
| 11082 | hardcode_action_CXX=unsupported |
| 11083 | fi |
| 11084 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 11085 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 11086 | |
| 11087 | if test "$hardcode_action_CXX" = relink; then |
| 11088 | # Fast installation is not supported |
| 11089 | enable_fast_install=no |
| 11090 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11091 | test "$enable_shared" = no; then |
| 11092 | # Fast installation is not necessary |
| 11093 | enable_fast_install=needless |
| 11094 | fi |
| 11095 | |
| 11096 | striplib= |
| 11097 | old_striplib= |
| 11098 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 11099 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 11100 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 11101 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11102 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11103 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11104 | echo "${ECHO_T}yes" >&6 |
| 11105 | else |
| 11106 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11107 | case $host_os in |
| 11108 | darwin*) |
| 11109 | if test -n "$STRIP" ; then |
| 11110 | striplib="$STRIP -x" |
| 11111 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11112 | echo "${ECHO_T}yes" >&6 |
| 11113 | else |
| 11114 | echo "$as_me:$LINENO: result: no" >&5 |
| 11115 | echo "${ECHO_T}no" >&6 |
| 11116 | fi |
| 11117 | ;; |
| 11118 | *) |
| 11119 | echo "$as_me:$LINENO: result: no" >&5 |
| 11120 | echo "${ECHO_T}no" >&6 |
| 11121 | ;; |
| 11122 | esac |
| 11123 | fi |
| 11124 | |
| 11125 | if test "x$enable_dlopen" != xyes; then |
| 11126 | enable_dlopen=unknown |
| 11127 | enable_dlopen_self=unknown |
| 11128 | enable_dlopen_self_static=unknown |
| 11129 | else |
| 11130 | lt_cv_dlopen=no |
| 11131 | lt_cv_dlopen_libs= |
| 11132 | |
| 11133 | case $host_os in |
| 11134 | beos*) |
| 11135 | lt_cv_dlopen="load_add_on" |
| 11136 | lt_cv_dlopen_libs= |
| 11137 | lt_cv_dlopen_self=yes |
| 11138 | ;; |
| 11139 | |
| 11140 | mingw* | pw32*) |
| 11141 | lt_cv_dlopen="LoadLibrary" |
| 11142 | lt_cv_dlopen_libs= |
| 11143 | ;; |
| 11144 | |
| 11145 | cygwin*) |
| 11146 | lt_cv_dlopen="dlopen" |
| 11147 | lt_cv_dlopen_libs= |
| 11148 | ;; |
| 11149 | |
| 11150 | darwin*) |
| 11151 | # if libdl is installed we need to link against it |
| 11152 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11153 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11154 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11156 | else |
| 11157 | ac_check_lib_save_LIBS=$LIBS |
| 11158 | LIBS="-ldl $LIBS" |
| 11159 | cat >conftest.$ac_ext <<_ACEOF |
| 11160 | /* confdefs.h. */ |
| 11161 | _ACEOF |
| 11162 | cat confdefs.h >>conftest.$ac_ext |
| 11163 | cat >>conftest.$ac_ext <<_ACEOF |
| 11164 | /* end confdefs.h. */ |
| 11165 | |
| 11166 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11167 | #ifdef __cplusplus |
| 11168 | extern "C" |
| 11169 | #endif |
| 11170 | /* We use char because int might match the return type of a gcc2 |
| 11171 | builtin and then its argument prototype would still apply. */ |
| 11172 | char dlopen (); |
| 11173 | int |
| 11174 | main () |
| 11175 | { |
| 11176 | dlopen (); |
| 11177 | ; |
| 11178 | return 0; |
| 11179 | } |
| 11180 | _ACEOF |
| 11181 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11183 | (eval $ac_link) 2>conftest.er1 |
| 11184 | ac_status=$? |
| 11185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11186 | rm -f conftest.er1 |
| 11187 | cat conftest.err >&5 |
| 11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11189 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11190 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11191 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11193 | (eval $ac_try) 2>&5 |
| 11194 | ac_status=$? |
| 11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11196 | (exit $ac_status); }; } && |
| 11197 | { ac_try='test -s conftest$ac_exeext' |
| 11198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11199 | (eval $ac_try) 2>&5 |
| 11200 | ac_status=$? |
| 11201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11202 | (exit $ac_status); }; }; then |
| 11203 | ac_cv_lib_dl_dlopen=yes |
| 11204 | else |
| 11205 | echo "$as_me: failed program was:" >&5 |
| 11206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11207 | |
| 11208 | ac_cv_lib_dl_dlopen=no |
| 11209 | fi |
| 11210 | rm -f conftest.err conftest.$ac_objext \ |
| 11211 | conftest$ac_exeext conftest.$ac_ext |
| 11212 | LIBS=$ac_check_lib_save_LIBS |
| 11213 | fi |
| 11214 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11215 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11216 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11217 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11218 | else |
| 11219 | |
| 11220 | lt_cv_dlopen="dyld" |
| 11221 | lt_cv_dlopen_libs= |
| 11222 | lt_cv_dlopen_self=yes |
| 11223 | |
| 11224 | fi |
| 11225 | |
| 11226 | ;; |
| 11227 | |
| 11228 | *) |
| 11229 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11230 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11231 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11233 | else |
| 11234 | cat >conftest.$ac_ext <<_ACEOF |
| 11235 | /* confdefs.h. */ |
| 11236 | _ACEOF |
| 11237 | cat confdefs.h >>conftest.$ac_ext |
| 11238 | cat >>conftest.$ac_ext <<_ACEOF |
| 11239 | /* end confdefs.h. */ |
| 11240 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 11241 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11242 | #define shl_load innocuous_shl_load |
| 11243 | |
| 11244 | /* System header to define __stub macros and hopefully few prototypes, |
| 11245 | which can conflict with char shl_load (); below. |
| 11246 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11247 | <limits.h> exists even on freestanding compilers. */ |
| 11248 | |
| 11249 | #ifdef __STDC__ |
| 11250 | # include <limits.h> |
| 11251 | #else |
| 11252 | # include <assert.h> |
| 11253 | #endif |
| 11254 | |
| 11255 | #undef shl_load |
| 11256 | |
| 11257 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11258 | #ifdef __cplusplus |
| 11259 | extern "C" |
| 11260 | { |
| 11261 | #endif |
| 11262 | /* We use char because int might match the return type of a gcc2 |
| 11263 | builtin and then its argument prototype would still apply. */ |
| 11264 | char shl_load (); |
| 11265 | /* The GNU C library defines this for functions which it implements |
| 11266 | to always fail with ENOSYS. Some functions are actually named |
| 11267 | something starting with __ and the normal name is an alias. */ |
| 11268 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 11269 | choke me |
| 11270 | #else |
| 11271 | char (*f) () = shl_load; |
| 11272 | #endif |
| 11273 | #ifdef __cplusplus |
| 11274 | } |
| 11275 | #endif |
| 11276 | |
| 11277 | int |
| 11278 | main () |
| 11279 | { |
| 11280 | return f != shl_load; |
| 11281 | ; |
| 11282 | return 0; |
| 11283 | } |
| 11284 | _ACEOF |
| 11285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11287 | (eval $ac_link) 2>conftest.er1 |
| 11288 | ac_status=$? |
| 11289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11290 | rm -f conftest.er1 |
| 11291 | cat conftest.err >&5 |
| 11292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11293 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11294 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11295 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11297 | (eval $ac_try) 2>&5 |
| 11298 | ac_status=$? |
| 11299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11300 | (exit $ac_status); }; } && |
| 11301 | { ac_try='test -s conftest$ac_exeext' |
| 11302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11303 | (eval $ac_try) 2>&5 |
| 11304 | ac_status=$? |
| 11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11306 | (exit $ac_status); }; }; then |
| 11307 | ac_cv_func_shl_load=yes |
| 11308 | else |
| 11309 | echo "$as_me: failed program was:" >&5 |
| 11310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11311 | |
| 11312 | ac_cv_func_shl_load=no |
| 11313 | fi |
| 11314 | rm -f conftest.err conftest.$ac_objext \ |
| 11315 | conftest$ac_exeext conftest.$ac_ext |
| 11316 | fi |
| 11317 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 11318 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 11319 | if test $ac_cv_func_shl_load = yes; then |
| 11320 | lt_cv_dlopen="shl_load" |
| 11321 | else |
| 11322 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11323 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11324 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11326 | else |
| 11327 | ac_check_lib_save_LIBS=$LIBS |
| 11328 | LIBS="-ldld $LIBS" |
| 11329 | cat >conftest.$ac_ext <<_ACEOF |
| 11330 | /* confdefs.h. */ |
| 11331 | _ACEOF |
| 11332 | cat confdefs.h >>conftest.$ac_ext |
| 11333 | cat >>conftest.$ac_ext <<_ACEOF |
| 11334 | /* end confdefs.h. */ |
| 11335 | |
| 11336 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11337 | #ifdef __cplusplus |
| 11338 | extern "C" |
| 11339 | #endif |
| 11340 | /* We use char because int might match the return type of a gcc2 |
| 11341 | builtin and then its argument prototype would still apply. */ |
| 11342 | char shl_load (); |
| 11343 | int |
| 11344 | main () |
| 11345 | { |
| 11346 | shl_load (); |
| 11347 | ; |
| 11348 | return 0; |
| 11349 | } |
| 11350 | _ACEOF |
| 11351 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11353 | (eval $ac_link) 2>conftest.er1 |
| 11354 | ac_status=$? |
| 11355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11356 | rm -f conftest.er1 |
| 11357 | cat conftest.err >&5 |
| 11358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11359 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11360 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11361 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11363 | (eval $ac_try) 2>&5 |
| 11364 | ac_status=$? |
| 11365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11366 | (exit $ac_status); }; } && |
| 11367 | { ac_try='test -s conftest$ac_exeext' |
| 11368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11369 | (eval $ac_try) 2>&5 |
| 11370 | ac_status=$? |
| 11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11372 | (exit $ac_status); }; }; then |
| 11373 | ac_cv_lib_dld_shl_load=yes |
| 11374 | else |
| 11375 | echo "$as_me: failed program was:" >&5 |
| 11376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11377 | |
| 11378 | ac_cv_lib_dld_shl_load=no |
| 11379 | fi |
| 11380 | rm -f conftest.err conftest.$ac_objext \ |
| 11381 | conftest$ac_exeext conftest.$ac_ext |
| 11382 | LIBS=$ac_check_lib_save_LIBS |
| 11383 | fi |
| 11384 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11385 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11386 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11387 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 11388 | else |
| 11389 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 11390 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 11391 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11393 | else |
| 11394 | cat >conftest.$ac_ext <<_ACEOF |
| 11395 | /* confdefs.h. */ |
| 11396 | _ACEOF |
| 11397 | cat confdefs.h >>conftest.$ac_ext |
| 11398 | cat >>conftest.$ac_ext <<_ACEOF |
| 11399 | /* end confdefs.h. */ |
| 11400 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 11401 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11402 | #define dlopen innocuous_dlopen |
| 11403 | |
| 11404 | /* System header to define __stub macros and hopefully few prototypes, |
| 11405 | which can conflict with char dlopen (); below. |
| 11406 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11407 | <limits.h> exists even on freestanding compilers. */ |
| 11408 | |
| 11409 | #ifdef __STDC__ |
| 11410 | # include <limits.h> |
| 11411 | #else |
| 11412 | # include <assert.h> |
| 11413 | #endif |
| 11414 | |
| 11415 | #undef dlopen |
| 11416 | |
| 11417 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11418 | #ifdef __cplusplus |
| 11419 | extern "C" |
| 11420 | { |
| 11421 | #endif |
| 11422 | /* We use char because int might match the return type of a gcc2 |
| 11423 | builtin and then its argument prototype would still apply. */ |
| 11424 | char dlopen (); |
| 11425 | /* The GNU C library defines this for functions which it implements |
| 11426 | to always fail with ENOSYS. Some functions are actually named |
| 11427 | something starting with __ and the normal name is an alias. */ |
| 11428 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 11429 | choke me |
| 11430 | #else |
| 11431 | char (*f) () = dlopen; |
| 11432 | #endif |
| 11433 | #ifdef __cplusplus |
| 11434 | } |
| 11435 | #endif |
| 11436 | |
| 11437 | int |
| 11438 | main () |
| 11439 | { |
| 11440 | return f != dlopen; |
| 11441 | ; |
| 11442 | return 0; |
| 11443 | } |
| 11444 | _ACEOF |
| 11445 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11447 | (eval $ac_link) 2>conftest.er1 |
| 11448 | ac_status=$? |
| 11449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11450 | rm -f conftest.er1 |
| 11451 | cat conftest.err >&5 |
| 11452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11453 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11454 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11455 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11457 | (eval $ac_try) 2>&5 |
| 11458 | ac_status=$? |
| 11459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11460 | (exit $ac_status); }; } && |
| 11461 | { ac_try='test -s conftest$ac_exeext' |
| 11462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11463 | (eval $ac_try) 2>&5 |
| 11464 | ac_status=$? |
| 11465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11466 | (exit $ac_status); }; }; then |
| 11467 | ac_cv_func_dlopen=yes |
| 11468 | else |
| 11469 | echo "$as_me: failed program was:" >&5 |
| 11470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11471 | |
| 11472 | ac_cv_func_dlopen=no |
| 11473 | fi |
| 11474 | rm -f conftest.err conftest.$ac_objext \ |
| 11475 | conftest$ac_exeext conftest.$ac_ext |
| 11476 | fi |
| 11477 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 11478 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 11479 | if test $ac_cv_func_dlopen = yes; then |
| 11480 | lt_cv_dlopen="dlopen" |
| 11481 | else |
| 11482 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11483 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11484 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11486 | else |
| 11487 | ac_check_lib_save_LIBS=$LIBS |
| 11488 | LIBS="-ldl $LIBS" |
| 11489 | cat >conftest.$ac_ext <<_ACEOF |
| 11490 | /* confdefs.h. */ |
| 11491 | _ACEOF |
| 11492 | cat confdefs.h >>conftest.$ac_ext |
| 11493 | cat >>conftest.$ac_ext <<_ACEOF |
| 11494 | /* end confdefs.h. */ |
| 11495 | |
| 11496 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11497 | #ifdef __cplusplus |
| 11498 | extern "C" |
| 11499 | #endif |
| 11500 | /* We use char because int might match the return type of a gcc2 |
| 11501 | builtin and then its argument prototype would still apply. */ |
| 11502 | char dlopen (); |
| 11503 | int |
| 11504 | main () |
| 11505 | { |
| 11506 | dlopen (); |
| 11507 | ; |
| 11508 | return 0; |
| 11509 | } |
| 11510 | _ACEOF |
| 11511 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11513 | (eval $ac_link) 2>conftest.er1 |
| 11514 | ac_status=$? |
| 11515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11516 | rm -f conftest.er1 |
| 11517 | cat conftest.err >&5 |
| 11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11519 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11520 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11521 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11523 | (eval $ac_try) 2>&5 |
| 11524 | ac_status=$? |
| 11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11526 | (exit $ac_status); }; } && |
| 11527 | { ac_try='test -s conftest$ac_exeext' |
| 11528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11529 | (eval $ac_try) 2>&5 |
| 11530 | ac_status=$? |
| 11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11532 | (exit $ac_status); }; }; then |
| 11533 | ac_cv_lib_dl_dlopen=yes |
| 11534 | else |
| 11535 | echo "$as_me: failed program was:" >&5 |
| 11536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11537 | |
| 11538 | ac_cv_lib_dl_dlopen=no |
| 11539 | fi |
| 11540 | rm -f conftest.err conftest.$ac_objext \ |
| 11541 | conftest$ac_exeext conftest.$ac_ext |
| 11542 | LIBS=$ac_check_lib_save_LIBS |
| 11543 | fi |
| 11544 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11545 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11546 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11547 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11548 | else |
| 11549 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11550 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 11551 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11553 | else |
| 11554 | ac_check_lib_save_LIBS=$LIBS |
| 11555 | LIBS="-lsvld $LIBS" |
| 11556 | cat >conftest.$ac_ext <<_ACEOF |
| 11557 | /* confdefs.h. */ |
| 11558 | _ACEOF |
| 11559 | cat confdefs.h >>conftest.$ac_ext |
| 11560 | cat >>conftest.$ac_ext <<_ACEOF |
| 11561 | /* end confdefs.h. */ |
| 11562 | |
| 11563 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11564 | #ifdef __cplusplus |
| 11565 | extern "C" |
| 11566 | #endif |
| 11567 | /* We use char because int might match the return type of a gcc2 |
| 11568 | builtin and then its argument prototype would still apply. */ |
| 11569 | char dlopen (); |
| 11570 | int |
| 11571 | main () |
| 11572 | { |
| 11573 | dlopen (); |
| 11574 | ; |
| 11575 | return 0; |
| 11576 | } |
| 11577 | _ACEOF |
| 11578 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11580 | (eval $ac_link) 2>conftest.er1 |
| 11581 | ac_status=$? |
| 11582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11583 | rm -f conftest.er1 |
| 11584 | cat conftest.err >&5 |
| 11585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11586 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11587 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11588 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11590 | (eval $ac_try) 2>&5 |
| 11591 | ac_status=$? |
| 11592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11593 | (exit $ac_status); }; } && |
| 11594 | { ac_try='test -s conftest$ac_exeext' |
| 11595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11596 | (eval $ac_try) 2>&5 |
| 11597 | ac_status=$? |
| 11598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11599 | (exit $ac_status); }; }; then |
| 11600 | ac_cv_lib_svld_dlopen=yes |
| 11601 | else |
| 11602 | echo "$as_me: failed program was:" >&5 |
| 11603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11604 | |
| 11605 | ac_cv_lib_svld_dlopen=no |
| 11606 | fi |
| 11607 | rm -f conftest.err conftest.$ac_objext \ |
| 11608 | conftest$ac_exeext conftest.$ac_ext |
| 11609 | LIBS=$ac_check_lib_save_LIBS |
| 11610 | fi |
| 11611 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11612 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 11613 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 11614 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11615 | else |
| 11616 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11617 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 11618 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11620 | else |
| 11621 | ac_check_lib_save_LIBS=$LIBS |
| 11622 | LIBS="-ldld $LIBS" |
| 11623 | cat >conftest.$ac_ext <<_ACEOF |
| 11624 | /* confdefs.h. */ |
| 11625 | _ACEOF |
| 11626 | cat confdefs.h >>conftest.$ac_ext |
| 11627 | cat >>conftest.$ac_ext <<_ACEOF |
| 11628 | /* end confdefs.h. */ |
| 11629 | |
| 11630 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11631 | #ifdef __cplusplus |
| 11632 | extern "C" |
| 11633 | #endif |
| 11634 | /* We use char because int might match the return type of a gcc2 |
| 11635 | builtin and then its argument prototype would still apply. */ |
| 11636 | char dld_link (); |
| 11637 | int |
| 11638 | main () |
| 11639 | { |
| 11640 | dld_link (); |
| 11641 | ; |
| 11642 | return 0; |
| 11643 | } |
| 11644 | _ACEOF |
| 11645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11647 | (eval $ac_link) 2>conftest.er1 |
| 11648 | ac_status=$? |
| 11649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11650 | rm -f conftest.er1 |
| 11651 | cat conftest.err >&5 |
| 11652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11653 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11654 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11655 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11657 | (eval $ac_try) 2>&5 |
| 11658 | ac_status=$? |
| 11659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11660 | (exit $ac_status); }; } && |
| 11661 | { ac_try='test -s conftest$ac_exeext' |
| 11662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11663 | (eval $ac_try) 2>&5 |
| 11664 | ac_status=$? |
| 11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11666 | (exit $ac_status); }; }; then |
| 11667 | ac_cv_lib_dld_dld_link=yes |
| 11668 | else |
| 11669 | echo "$as_me: failed program was:" >&5 |
| 11670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11671 | |
| 11672 | ac_cv_lib_dld_dld_link=no |
| 11673 | fi |
| 11674 | rm -f conftest.err conftest.$ac_objext \ |
| 11675 | conftest$ac_exeext conftest.$ac_ext |
| 11676 | LIBS=$ac_check_lib_save_LIBS |
| 11677 | fi |
| 11678 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11679 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 11680 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 11681 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 11682 | fi |
| 11683 | |
| 11684 | |
| 11685 | fi |
| 11686 | |
| 11687 | |
| 11688 | fi |
| 11689 | |
| 11690 | |
| 11691 | fi |
| 11692 | |
| 11693 | |
| 11694 | fi |
| 11695 | |
| 11696 | |
| 11697 | fi |
| 11698 | |
| 11699 | ;; |
| 11700 | esac |
| 11701 | |
| 11702 | if test "x$lt_cv_dlopen" != xno; then |
| 11703 | enable_dlopen=yes |
| 11704 | else |
| 11705 | enable_dlopen=no |
| 11706 | fi |
| 11707 | |
| 11708 | case $lt_cv_dlopen in |
| 11709 | dlopen) |
| 11710 | save_CPPFLAGS="$CPPFLAGS" |
| 11711 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11712 | |
| 11713 | save_LDFLAGS="$LDFLAGS" |
| 11714 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11715 | |
| 11716 | save_LIBS="$LIBS" |
| 11717 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11718 | |
| 11719 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 11720 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 11721 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11723 | else |
| 11724 | if test "$cross_compiling" = yes; then : |
| 11725 | lt_cv_dlopen_self=cross |
| 11726 | else |
| 11727 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11728 | lt_status=$lt_dlunknown |
| 11729 | cat > conftest.$ac_ext <<EOF |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11730 | #line 11730 "configure" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11731 | #include "confdefs.h" |
| 11732 | |
| 11733 | #if HAVE_DLFCN_H |
| 11734 | #include <dlfcn.h> |
| 11735 | #endif |
| 11736 | |
| 11737 | #include <stdio.h> |
| 11738 | |
| 11739 | #ifdef RTLD_GLOBAL |
| 11740 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11741 | #else |
| 11742 | # ifdef DL_GLOBAL |
| 11743 | # define LT_DLGLOBAL DL_GLOBAL |
| 11744 | # else |
| 11745 | # define LT_DLGLOBAL 0 |
| 11746 | # endif |
| 11747 | #endif |
| 11748 | |
| 11749 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11750 | find out it does not work in some platform. */ |
| 11751 | #ifndef LT_DLLAZY_OR_NOW |
| 11752 | # ifdef RTLD_LAZY |
| 11753 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11754 | # else |
| 11755 | # ifdef DL_LAZY |
| 11756 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11757 | # else |
| 11758 | # ifdef RTLD_NOW |
| 11759 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11760 | # else |
| 11761 | # ifdef DL_NOW |
| 11762 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11763 | # else |
| 11764 | # define LT_DLLAZY_OR_NOW 0 |
| 11765 | # endif |
| 11766 | # endif |
| 11767 | # endif |
| 11768 | # endif |
| 11769 | #endif |
| 11770 | |
| 11771 | #ifdef __cplusplus |
| 11772 | extern "C" void exit (int); |
| 11773 | #endif |
| 11774 | |
| 11775 | void fnord() { int i=42;} |
| 11776 | int main () |
| 11777 | { |
| 11778 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11779 | int status = $lt_dlunknown; |
| 11780 | |
| 11781 | if (self) |
| 11782 | { |
| 11783 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11784 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11785 | /* dlclose (self); */ |
| 11786 | } |
| 11787 | |
| 11788 | exit (status); |
| 11789 | } |
| 11790 | EOF |
| 11791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11792 | (eval $ac_link) 2>&5 |
| 11793 | ac_status=$? |
| 11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11795 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11796 | (./conftest; exit; ) 2>/dev/null |
| 11797 | lt_status=$? |
| 11798 | case x$lt_status in |
| 11799 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11800 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11801 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 11802 | esac |
| 11803 | else : |
| 11804 | # compilation failed |
| 11805 | lt_cv_dlopen_self=no |
| 11806 | fi |
| 11807 | fi |
| 11808 | rm -fr conftest* |
| 11809 | |
| 11810 | |
| 11811 | fi |
| 11812 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 11813 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 11814 | |
| 11815 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11816 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 11817 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 11818 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 11819 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 11820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11821 | else |
| 11822 | if test "$cross_compiling" = yes; then : |
| 11823 | lt_cv_dlopen_self_static=cross |
| 11824 | else |
| 11825 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11826 | lt_status=$lt_dlunknown |
| 11827 | cat > conftest.$ac_ext <<EOF |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11828 | #line 11828 "configure" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11829 | #include "confdefs.h" |
| 11830 | |
| 11831 | #if HAVE_DLFCN_H |
| 11832 | #include <dlfcn.h> |
| 11833 | #endif |
| 11834 | |
| 11835 | #include <stdio.h> |
| 11836 | |
| 11837 | #ifdef RTLD_GLOBAL |
| 11838 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11839 | #else |
| 11840 | # ifdef DL_GLOBAL |
| 11841 | # define LT_DLGLOBAL DL_GLOBAL |
| 11842 | # else |
| 11843 | # define LT_DLGLOBAL 0 |
| 11844 | # endif |
| 11845 | #endif |
| 11846 | |
| 11847 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11848 | find out it does not work in some platform. */ |
| 11849 | #ifndef LT_DLLAZY_OR_NOW |
| 11850 | # ifdef RTLD_LAZY |
| 11851 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11852 | # else |
| 11853 | # ifdef DL_LAZY |
| 11854 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11855 | # else |
| 11856 | # ifdef RTLD_NOW |
| 11857 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11858 | # else |
| 11859 | # ifdef DL_NOW |
| 11860 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11861 | # else |
| 11862 | # define LT_DLLAZY_OR_NOW 0 |
| 11863 | # endif |
| 11864 | # endif |
| 11865 | # endif |
| 11866 | # endif |
| 11867 | #endif |
| 11868 | |
| 11869 | #ifdef __cplusplus |
| 11870 | extern "C" void exit (int); |
| 11871 | #endif |
| 11872 | |
| 11873 | void fnord() { int i=42;} |
| 11874 | int main () |
| 11875 | { |
| 11876 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11877 | int status = $lt_dlunknown; |
| 11878 | |
| 11879 | if (self) |
| 11880 | { |
| 11881 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11882 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11883 | /* dlclose (self); */ |
| 11884 | } |
| 11885 | |
| 11886 | exit (status); |
| 11887 | } |
| 11888 | EOF |
| 11889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11890 | (eval $ac_link) 2>&5 |
| 11891 | ac_status=$? |
| 11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11893 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11894 | (./conftest; exit; ) 2>/dev/null |
| 11895 | lt_status=$? |
| 11896 | case x$lt_status in |
| 11897 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11898 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11899 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11900 | esac |
| 11901 | else : |
| 11902 | # compilation failed |
| 11903 | lt_cv_dlopen_self_static=no |
| 11904 | fi |
| 11905 | fi |
| 11906 | rm -fr conftest* |
| 11907 | |
| 11908 | |
| 11909 | fi |
| 11910 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 11911 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 11912 | fi |
| 11913 | |
| 11914 | CPPFLAGS="$save_CPPFLAGS" |
| 11915 | LDFLAGS="$save_LDFLAGS" |
| 11916 | LIBS="$save_LIBS" |
| 11917 | ;; |
| 11918 | esac |
| 11919 | |
| 11920 | case $lt_cv_dlopen_self in |
| 11921 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11922 | *) enable_dlopen_self=unknown ;; |
| 11923 | esac |
| 11924 | |
| 11925 | case $lt_cv_dlopen_self_static in |
| 11926 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11927 | *) enable_dlopen_self_static=unknown ;; |
| 11928 | esac |
| 11929 | fi |
| 11930 | |
| 11931 | |
| 11932 | # The else clause should only fire when bootstrapping the |
| 11933 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 11934 | # with your package, and you will get complaints that there are |
| 11935 | # no rules to generate ltmain.sh. |
| 11936 | if test -f "$ltmain"; then |
| 11937 | # See if we are running on zsh, and set the options which allow our commands through |
| 11938 | # without removal of \ escapes. |
| 11939 | if test -n "${ZSH_VERSION+set}" ; then |
| 11940 | setopt NO_GLOB_SUBST |
| 11941 | fi |
| 11942 | # Now quote all the things that may contain metacharacters while being |
| 11943 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 11944 | # variables and quote the copies for generation of the libtool script. |
| 11945 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 11946 | SED SHELL STRIP \ |
| 11947 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 11948 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 11949 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 11950 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 11951 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 11952 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 11953 | old_postinstall_cmds old_postuninstall_cmds \ |
| 11954 | compiler_CXX \ |
| 11955 | CC_CXX \ |
| 11956 | LD_CXX \ |
| 11957 | lt_prog_compiler_wl_CXX \ |
| 11958 | lt_prog_compiler_pic_CXX \ |
| 11959 | lt_prog_compiler_static_CXX \ |
| 11960 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 11961 | export_dynamic_flag_spec_CXX \ |
| 11962 | thread_safe_flag_spec_CXX \ |
| 11963 | whole_archive_flag_spec_CXX \ |
| 11964 | enable_shared_with_static_runtimes_CXX \ |
| 11965 | old_archive_cmds_CXX \ |
| 11966 | old_archive_from_new_cmds_CXX \ |
| 11967 | predep_objects_CXX \ |
| 11968 | postdep_objects_CXX \ |
| 11969 | predeps_CXX \ |
| 11970 | postdeps_CXX \ |
| 11971 | compiler_lib_search_path_CXX \ |
| 11972 | archive_cmds_CXX \ |
| 11973 | archive_expsym_cmds_CXX \ |
| 11974 | postinstall_cmds_CXX \ |
| 11975 | postuninstall_cmds_CXX \ |
| 11976 | old_archive_from_expsyms_cmds_CXX \ |
| 11977 | allow_undefined_flag_CXX \ |
| 11978 | no_undefined_flag_CXX \ |
| 11979 | export_symbols_cmds_CXX \ |
| 11980 | hardcode_libdir_flag_spec_CXX \ |
| 11981 | hardcode_libdir_flag_spec_ld_CXX \ |
| 11982 | hardcode_libdir_separator_CXX \ |
| 11983 | hardcode_automatic_CXX \ |
| 11984 | module_cmds_CXX \ |
| 11985 | module_expsym_cmds_CXX \ |
| 11986 | lt_cv_prog_compiler_c_o_CXX \ |
| 11987 | exclude_expsyms_CXX \ |
| 11988 | include_expsyms_CXX; do |
| 11989 | |
| 11990 | case $var in |
| 11991 | old_archive_cmds_CXX | \ |
| 11992 | old_archive_from_new_cmds_CXX | \ |
| 11993 | archive_cmds_CXX | \ |
| 11994 | archive_expsym_cmds_CXX | \ |
| 11995 | module_cmds_CXX | \ |
| 11996 | module_expsym_cmds_CXX | \ |
| 11997 | old_archive_from_expsyms_cmds_CXX | \ |
| 11998 | export_symbols_cmds_CXX | \ |
| 11999 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 12000 | postinstall_cmds | postuninstall_cmds | \ |
| 12001 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 12002 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 12003 | # Double-quote double-evaled strings. |
| 12004 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 12005 | ;; |
| 12006 | *) |
| 12007 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 12008 | ;; |
| 12009 | esac |
| 12010 | done |
| 12011 | |
| 12012 | case $lt_echo in |
| 12013 | *'\$0 --fallback-echo"') |
| 12014 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 12015 | ;; |
| 12016 | esac |
| 12017 | |
| 12018 | cfgfile="$ofile" |
| 12019 | |
| 12020 | cat <<__EOF__ >> "$cfgfile" |
| 12021 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 12022 | |
| 12023 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12024 | |
| 12025 | # Shell to use when invoking shell scripts. |
| 12026 | SHELL=$lt_SHELL |
| 12027 | |
| 12028 | # Whether or not to build shared libraries. |
| 12029 | build_libtool_libs=$enable_shared |
| 12030 | |
| 12031 | # Whether or not to build static libraries. |
| 12032 | build_old_libs=$enable_static |
| 12033 | |
| 12034 | # Whether or not to add -lc for building shared libraries. |
| 12035 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 12036 | |
| 12037 | # Whether or not to disallow shared libs when runtime libs are static |
| 12038 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 12039 | |
| 12040 | # Whether or not to optimize for fast installation. |
| 12041 | fast_install=$enable_fast_install |
| 12042 | |
| 12043 | # The host system. |
| 12044 | host_alias=$host_alias |
| 12045 | host=$host |
| 12046 | |
| 12047 | # An echo program that does not interpret backslashes. |
| 12048 | echo=$lt_echo |
| 12049 | |
| 12050 | # The archiver. |
| 12051 | AR=$lt_AR |
| 12052 | AR_FLAGS=$lt_AR_FLAGS |
| 12053 | |
| 12054 | # A C compiler. |
| 12055 | LTCC=$lt_LTCC |
| 12056 | |
| 12057 | # A language-specific compiler. |
| 12058 | CC=$lt_compiler_CXX |
| 12059 | |
| 12060 | # Is the compiler the GNU C compiler? |
| 12061 | with_gcc=$GCC_CXX |
| 12062 | |
| 12063 | # An ERE matcher. |
| 12064 | EGREP=$lt_EGREP |
| 12065 | |
| 12066 | # The linker used to build libraries. |
| 12067 | LD=$lt_LD_CXX |
| 12068 | |
| 12069 | # Whether we need hard or soft links. |
| 12070 | LN_S=$lt_LN_S |
| 12071 | |
| 12072 | # A BSD-compatible nm program. |
| 12073 | NM=$lt_NM |
| 12074 | |
| 12075 | # A symbol stripping program |
| 12076 | STRIP=$lt_STRIP |
| 12077 | |
| 12078 | # Used to examine libraries when file_magic_cmd begins "file" |
| 12079 | MAGIC_CMD=$MAGIC_CMD |
| 12080 | |
| 12081 | # Used on cygwin: DLL creation program. |
| 12082 | DLLTOOL="$DLLTOOL" |
| 12083 | |
| 12084 | # Used on cygwin: object dumper. |
| 12085 | OBJDUMP="$OBJDUMP" |
| 12086 | |
| 12087 | # Used on cygwin: assembler. |
| 12088 | AS="$AS" |
| 12089 | |
| 12090 | # The name of the directory that contains temporary libtool files. |
| 12091 | objdir=$objdir |
| 12092 | |
| 12093 | # How to create reloadable object files. |
| 12094 | reload_flag=$lt_reload_flag |
| 12095 | reload_cmds=$lt_reload_cmds |
| 12096 | |
| 12097 | # How to pass a linker flag through the compiler. |
| 12098 | wl=$lt_lt_prog_compiler_wl_CXX |
| 12099 | |
| 12100 | # Object file suffix (normally "o"). |
| 12101 | objext="$ac_objext" |
| 12102 | |
| 12103 | # Old archive suffix (normally "a"). |
| 12104 | libext="$libext" |
| 12105 | |
| 12106 | # Shared library suffix (normally ".so"). |
| 12107 | shrext='$shrext' |
| 12108 | |
| 12109 | # Executable file suffix (normally ""). |
| 12110 | exeext="$exeext" |
| 12111 | |
| 12112 | # Additional compiler flags for building library objects. |
| 12113 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 12114 | pic_mode=$pic_mode |
| 12115 | |
| 12116 | # What is the maximum length of a command? |
| 12117 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 12118 | |
| 12119 | # Does compiler simultaneously support -c and -o options? |
| 12120 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 12121 | |
| 12122 | # Must we lock files when doing compilation ? |
| 12123 | need_locks=$lt_need_locks |
| 12124 | |
| 12125 | # Do we need the lib prefix for modules? |
| 12126 | need_lib_prefix=$need_lib_prefix |
| 12127 | |
| 12128 | # Do we need a version for libraries? |
| 12129 | need_version=$need_version |
| 12130 | |
| 12131 | # Whether dlopen is supported. |
| 12132 | dlopen_support=$enable_dlopen |
| 12133 | |
| 12134 | # Whether dlopen of programs is supported. |
| 12135 | dlopen_self=$enable_dlopen_self |
| 12136 | |
| 12137 | # Whether dlopen of statically linked programs is supported. |
| 12138 | dlopen_self_static=$enable_dlopen_self_static |
| 12139 | |
| 12140 | # Compiler flag to prevent dynamic linking. |
| 12141 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 12142 | |
| 12143 | # Compiler flag to turn off builtin functions. |
| 12144 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 12145 | |
| 12146 | # Compiler flag to allow reflexive dlopens. |
| 12147 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 12148 | |
| 12149 | # Compiler flag to generate shared objects directly from archives. |
| 12150 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 12151 | |
| 12152 | # Compiler flag to generate thread-safe objects. |
| 12153 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 12154 | |
| 12155 | # Library versioning type. |
| 12156 | version_type=$version_type |
| 12157 | |
| 12158 | # Format of library name prefix. |
| 12159 | libname_spec=$lt_libname_spec |
| 12160 | |
| 12161 | # List of archive names. First name is the real one, the rest are links. |
| 12162 | # The last name is the one that the linker finds with -lNAME. |
| 12163 | library_names_spec=$lt_library_names_spec |
| 12164 | |
| 12165 | # The coded name of the library, if different from the real name. |
| 12166 | soname_spec=$lt_soname_spec |
| 12167 | |
| 12168 | # Commands used to build and install an old-style archive. |
| 12169 | RANLIB=$lt_RANLIB |
| 12170 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12171 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12172 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12173 | |
| 12174 | # Create an old-style archive from a shared archive. |
| 12175 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12176 | |
| 12177 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12178 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12179 | |
| 12180 | # Commands used to build and install a shared archive. |
| 12181 | archive_cmds=$lt_archive_cmds_CXX |
| 12182 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12183 | postinstall_cmds=$lt_postinstall_cmds |
| 12184 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12185 | |
| 12186 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12187 | module_cmds=$lt_module_cmds_CXX |
| 12188 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12189 | |
| 12190 | # Commands to strip libraries. |
| 12191 | old_striplib=$lt_old_striplib |
| 12192 | striplib=$lt_striplib |
| 12193 | |
| 12194 | # Dependencies to place before the objects being linked to create a |
| 12195 | # shared library. |
| 12196 | predep_objects=$lt_predep_objects_CXX |
| 12197 | |
| 12198 | # Dependencies to place after the objects being linked to create a |
| 12199 | # shared library. |
| 12200 | postdep_objects=$lt_postdep_objects_CXX |
| 12201 | |
| 12202 | # Dependencies to place before the objects being linked to create a |
| 12203 | # shared library. |
| 12204 | predeps=$lt_predeps_CXX |
| 12205 | |
| 12206 | # Dependencies to place after the objects being linked to create a |
| 12207 | # shared library. |
| 12208 | postdeps=$lt_postdeps_CXX |
| 12209 | |
| 12210 | # The library search path used internally by the compiler when linking |
| 12211 | # a shared library. |
| 12212 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12213 | |
| 12214 | # Method to check whether dependent libraries are shared objects. |
| 12215 | deplibs_check_method=$lt_deplibs_check_method |
| 12216 | |
| 12217 | # Command to use when deplibs_check_method == file_magic. |
| 12218 | file_magic_cmd=$lt_file_magic_cmd |
| 12219 | |
| 12220 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12221 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12222 | |
| 12223 | # Flag that forces no undefined symbols. |
| 12224 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12225 | |
| 12226 | # Commands used to finish a libtool library installation in a directory. |
| 12227 | finish_cmds=$lt_finish_cmds |
| 12228 | |
| 12229 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12230 | finish_eval=$lt_finish_eval |
| 12231 | |
| 12232 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12233 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12234 | |
| 12235 | # Transform the output of nm in a proper C declaration |
| 12236 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12237 | |
| 12238 | # Transform the output of nm in a C name address pair |
| 12239 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12240 | |
| 12241 | # This is the shared library runtime path variable. |
| 12242 | runpath_var=$runpath_var |
| 12243 | |
| 12244 | # This is the shared library path variable. |
| 12245 | shlibpath_var=$shlibpath_var |
| 12246 | |
| 12247 | # Is shlibpath searched before the hard-coded library search path? |
| 12248 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12249 | |
| 12250 | # How to hardcode a shared library path into an executable. |
| 12251 | hardcode_action=$hardcode_action_CXX |
| 12252 | |
| 12253 | # Whether we should hardcode library paths into libraries. |
| 12254 | hardcode_into_libs=$hardcode_into_libs |
| 12255 | |
| 12256 | # Flag to hardcode \$libdir into a binary during linking. |
| 12257 | # This must work even if \$libdir does not exist. |
| 12258 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 12259 | |
| 12260 | # If ld is used when linking, flag to hardcode \$libdir into |
| 12261 | # a binary during linking. This must work even if \$libdir does |
| 12262 | # not exist. |
| 12263 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 12264 | |
| 12265 | # Whether we need a single -rpath flag with a separated argument. |
| 12266 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 12267 | |
| 12268 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 12269 | # resulting binary. |
| 12270 | hardcode_direct=$hardcode_direct_CXX |
| 12271 | |
| 12272 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 12273 | # resulting binary. |
| 12274 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 12275 | |
| 12276 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 12277 | # the resulting binary. |
| 12278 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 12279 | |
| 12280 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 12281 | # and all subsequent libraries and executables linked against it. |
| 12282 | hardcode_automatic=$hardcode_automatic_CXX |
| 12283 | |
| 12284 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12285 | # restored at relink time. |
| 12286 | variables_saved_for_relink="$variables_saved_for_relink" |
| 12287 | |
| 12288 | # Whether libtool must link a program against all its dependency libraries. |
| 12289 | link_all_deplibs=$link_all_deplibs_CXX |
| 12290 | |
| 12291 | # Compile-time system search path for libraries |
| 12292 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 12293 | |
| 12294 | # Run-time system search path for libraries |
| 12295 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 12296 | |
| 12297 | # Fix the shell variable \$srcfile for the compiler. |
| 12298 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 12299 | |
| 12300 | # Set to yes if exported symbols are required. |
| 12301 | always_export_symbols=$always_export_symbols_CXX |
| 12302 | |
| 12303 | # The commands to list exported symbols. |
| 12304 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 12305 | |
| 12306 | # The commands to extract the exported symbol list from a shared archive. |
| 12307 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 12308 | |
| 12309 | # Symbols that should not be listed in the preloaded symbols. |
| 12310 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 12311 | |
| 12312 | # Symbols that must always be exported. |
| 12313 | include_expsyms=$lt_include_expsyms_CXX |
| 12314 | |
| 12315 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 12316 | |
| 12317 | __EOF__ |
| 12318 | |
| 12319 | |
| 12320 | else |
| 12321 | # If there is no Makefile yet, we rely on a make rule to execute |
| 12322 | # `config.status --recheck' to rerun these tests and create the |
| 12323 | # libtool script then. |
| 12324 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 12325 | if test -f "$ltmain_in"; then |
| 12326 | test -f Makefile && make "$ltmain" |
| 12327 | fi |
| 12328 | fi |
| 12329 | |
| 12330 | |
| 12331 | ac_ext=c |
| 12332 | ac_cpp='$CPP $CPPFLAGS' |
| 12333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12336 | |
| 12337 | CC=$lt_save_CC |
| 12338 | LDCXX=$LD |
| 12339 | LD=$lt_save_LD |
| 12340 | GCC=$lt_save_GCC |
| 12341 | with_gnu_ldcxx=$with_gnu_ld |
| 12342 | with_gnu_ld=$lt_save_with_gnu_ld |
| 12343 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 12344 | lt_cv_path_LD=$lt_save_path_LD |
| 12345 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 12346 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 12347 | |
| 12348 | else |
| 12349 | tagname="" |
| 12350 | fi |
| 12351 | ;; |
| 12352 | |
| 12353 | F77) |
| 12354 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 12355 | |
| 12356 | ac_ext=f |
| 12357 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12358 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12359 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12360 | |
| 12361 | |
| 12362 | archive_cmds_need_lc_F77=no |
| 12363 | allow_undefined_flag_F77= |
| 12364 | always_export_symbols_F77=no |
| 12365 | archive_expsym_cmds_F77= |
| 12366 | export_dynamic_flag_spec_F77= |
| 12367 | hardcode_direct_F77=no |
| 12368 | hardcode_libdir_flag_spec_F77= |
| 12369 | hardcode_libdir_flag_spec_ld_F77= |
| 12370 | hardcode_libdir_separator_F77= |
| 12371 | hardcode_minus_L_F77=no |
| 12372 | hardcode_automatic_F77=no |
| 12373 | module_cmds_F77= |
| 12374 | module_expsym_cmds_F77= |
| 12375 | link_all_deplibs_F77=unknown |
| 12376 | old_archive_cmds_F77=$old_archive_cmds |
| 12377 | no_undefined_flag_F77= |
| 12378 | whole_archive_flag_spec_F77= |
| 12379 | enable_shared_with_static_runtimes_F77=no |
| 12380 | |
| 12381 | # Source file extension for f77 test sources. |
| 12382 | ac_ext=f |
| 12383 | |
| 12384 | # Object file extension for compiled f77 test sources. |
| 12385 | objext=o |
| 12386 | objext_F77=$objext |
| 12387 | |
| 12388 | # Code to be used in simple compile tests |
| 12389 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 12390 | |
| 12391 | # Code to be used in simple link tests |
| 12392 | lt_simple_link_test_code=" program t\n end\n" |
| 12393 | |
| 12394 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12395 | |
| 12396 | # If no C compiler was specified, use CC. |
| 12397 | LTCC=${LTCC-"$CC"} |
| 12398 | |
| 12399 | # Allow CC to be a program name with arguments. |
| 12400 | compiler=$CC |
| 12401 | |
| 12402 | |
| 12403 | # Allow CC to be a program name with arguments. |
| 12404 | lt_save_CC="$CC" |
| 12405 | CC=${F77-"f77"} |
| 12406 | compiler=$CC |
| 12407 | compiler_F77=$CC |
| 12408 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 12409 | |
| 12410 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 12411 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 12412 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 12413 | echo "${ECHO_T}$can_build_shared" >&6 |
| 12414 | |
| 12415 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 12416 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 12417 | test "$can_build_shared" = "no" && enable_shared=no |
| 12418 | |
| 12419 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12420 | # are all built from PIC. |
| 12421 | case "$host_os" in |
| 12422 | aix3*) |
| 12423 | test "$enable_shared" = yes && enable_static=no |
| 12424 | if test -n "$RANLIB"; then |
| 12425 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12426 | postinstall_cmds='$RANLIB $lib' |
| 12427 | fi |
| 12428 | ;; |
| 12429 | aix4*) |
| 12430 | test "$enable_shared" = yes && enable_static=no |
| 12431 | ;; |
| 12432 | esac |
| 12433 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 12434 | echo "${ECHO_T}$enable_shared" >&6 |
| 12435 | |
| 12436 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 12437 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 12438 | # Make sure either enable_shared or enable_static is yes. |
| 12439 | test "$enable_shared" = yes || enable_static=yes |
| 12440 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 12441 | echo "${ECHO_T}$enable_static" >&6 |
| 12442 | |
| 12443 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 12444 | |
| 12445 | GCC_F77="$G77" |
| 12446 | LD_F77="$LD" |
| 12447 | |
| 12448 | lt_prog_compiler_wl_F77= |
| 12449 | lt_prog_compiler_pic_F77= |
| 12450 | lt_prog_compiler_static_F77= |
| 12451 | |
| 12452 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12453 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 12454 | |
| 12455 | if test "$GCC" = yes; then |
| 12456 | lt_prog_compiler_wl_F77='-Wl,' |
| 12457 | lt_prog_compiler_static_F77='-static' |
| 12458 | |
| 12459 | case $host_os in |
| 12460 | aix*) |
| 12461 | # All AIX code is PIC. |
| 12462 | if test "$host_cpu" = ia64; then |
| 12463 | # AIX 5 now supports IA64 processor |
| 12464 | lt_prog_compiler_static_F77='-Bstatic' |
| 12465 | fi |
| 12466 | ;; |
| 12467 | |
| 12468 | amigaos*) |
| 12469 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12470 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12471 | # like `-m68040'. |
| 12472 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 12473 | ;; |
| 12474 | |
| 12475 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12476 | # PIC is the default for these OSes. |
| 12477 | ;; |
| 12478 | |
| 12479 | mingw* | pw32* | os2*) |
| 12480 | # This hack is so that the source file can tell whether it is being |
| 12481 | # built for inclusion in a dll (and should export symbols for example). |
| 12482 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12483 | ;; |
| 12484 | |
| 12485 | darwin* | rhapsody*) |
| 12486 | # PIC is the default on this platform |
| 12487 | # Common symbols not allowed in MH_DYLIB files |
| 12488 | lt_prog_compiler_pic_F77='-fno-common' |
| 12489 | ;; |
| 12490 | |
| 12491 | msdosdjgpp*) |
| 12492 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12493 | # on systems that don't support them. |
| 12494 | lt_prog_compiler_can_build_shared_F77=no |
| 12495 | enable_shared=no |
| 12496 | ;; |
| 12497 | |
| 12498 | sysv4*MP*) |
| 12499 | if test -d /usr/nec; then |
| 12500 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 12501 | fi |
| 12502 | ;; |
| 12503 | |
| 12504 | hpux*) |
| 12505 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12506 | # not for PA HP-UX. |
| 12507 | case "$host_cpu" in |
| 12508 | hppa*64*|ia64*) |
| 12509 | # +Z the default |
| 12510 | ;; |
| 12511 | *) |
| 12512 | lt_prog_compiler_pic_F77='-fPIC' |
| 12513 | ;; |
| 12514 | esac |
| 12515 | ;; |
| 12516 | |
| 12517 | *) |
| 12518 | lt_prog_compiler_pic_F77='-fPIC' |
| 12519 | ;; |
| 12520 | esac |
| 12521 | else |
| 12522 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 12523 | case $host_os in |
| 12524 | aix*) |
| 12525 | lt_prog_compiler_wl_F77='-Wl,' |
| 12526 | if test "$host_cpu" = ia64; then |
| 12527 | # AIX 5 now supports IA64 processor |
| 12528 | lt_prog_compiler_static_F77='-Bstatic' |
| 12529 | else |
| 12530 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 12531 | fi |
| 12532 | ;; |
| 12533 | |
| 12534 | mingw* | pw32* | os2*) |
| 12535 | # This hack is so that the source file can tell whether it is being |
| 12536 | # built for inclusion in a dll (and should export symbols for example). |
| 12537 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12538 | ;; |
| 12539 | |
| 12540 | hpux9* | hpux10* | hpux11*) |
| 12541 | lt_prog_compiler_wl_F77='-Wl,' |
| 12542 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12543 | # not for PA HP-UX. |
| 12544 | case "$host_cpu" in |
| 12545 | hppa*64*|ia64*) |
| 12546 | # +Z the default |
| 12547 | ;; |
| 12548 | *) |
| 12549 | lt_prog_compiler_pic_F77='+Z' |
| 12550 | ;; |
| 12551 | esac |
| 12552 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12553 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 12554 | ;; |
| 12555 | |
| 12556 | irix5* | irix6* | nonstopux*) |
| 12557 | lt_prog_compiler_wl_F77='-Wl,' |
| 12558 | # PIC (with -KPIC) is the default. |
| 12559 | lt_prog_compiler_static_F77='-non_shared' |
| 12560 | ;; |
| 12561 | |
| 12562 | newsos6) |
| 12563 | lt_prog_compiler_pic_F77='-KPIC' |
| 12564 | lt_prog_compiler_static_F77='-Bstatic' |
| 12565 | ;; |
| 12566 | |
| 12567 | linux*) |
| 12568 | case $CC in |
| 12569 | icc* | ecc*) |
| 12570 | lt_prog_compiler_wl_F77='-Wl,' |
| 12571 | lt_prog_compiler_pic_F77='-KPIC' |
| 12572 | lt_prog_compiler_static_F77='-static' |
| 12573 | ;; |
| 12574 | ccc*) |
| 12575 | lt_prog_compiler_wl_F77='-Wl,' |
| 12576 | # All Alpha code is PIC. |
| 12577 | lt_prog_compiler_static_F77='-non_shared' |
| 12578 | ;; |
| 12579 | esac |
| 12580 | ;; |
| 12581 | |
| 12582 | osf3* | osf4* | osf5*) |
| 12583 | lt_prog_compiler_wl_F77='-Wl,' |
| 12584 | # All OSF/1 code is PIC. |
| 12585 | lt_prog_compiler_static_F77='-non_shared' |
| 12586 | ;; |
| 12587 | |
| 12588 | sco3.2v5*) |
| 12589 | lt_prog_compiler_pic_F77='-Kpic' |
| 12590 | lt_prog_compiler_static_F77='-dn' |
| 12591 | ;; |
| 12592 | |
| 12593 | solaris*) |
| 12594 | lt_prog_compiler_wl_F77='-Wl,' |
| 12595 | lt_prog_compiler_pic_F77='-KPIC' |
| 12596 | lt_prog_compiler_static_F77='-Bstatic' |
| 12597 | ;; |
| 12598 | |
| 12599 | sunos4*) |
| 12600 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 12601 | lt_prog_compiler_pic_F77='-PIC' |
| 12602 | lt_prog_compiler_static_F77='-Bstatic' |
| 12603 | ;; |
| 12604 | |
| 12605 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12606 | lt_prog_compiler_wl_F77='-Wl,' |
| 12607 | lt_prog_compiler_pic_F77='-KPIC' |
| 12608 | lt_prog_compiler_static_F77='-Bstatic' |
| 12609 | ;; |
| 12610 | |
| 12611 | sysv4*MP*) |
| 12612 | if test -d /usr/nec ;then |
| 12613 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 12614 | lt_prog_compiler_static_F77='-Bstatic' |
| 12615 | fi |
| 12616 | ;; |
| 12617 | |
| 12618 | uts4*) |
| 12619 | lt_prog_compiler_pic_F77='-pic' |
| 12620 | lt_prog_compiler_static_F77='-Bstatic' |
| 12621 | ;; |
| 12622 | |
| 12623 | *) |
| 12624 | lt_prog_compiler_can_build_shared_F77=no |
| 12625 | ;; |
| 12626 | esac |
| 12627 | fi |
| 12628 | |
| 12629 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 12630 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 12631 | |
| 12632 | # |
| 12633 | # Check to make sure the PIC flag actually works. |
| 12634 | # |
| 12635 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 12636 | |
| 12637 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 12638 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 12639 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 12640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12641 | else |
| 12642 | lt_prog_compiler_pic_works_F77=no |
| 12643 | ac_outfile=conftest.$ac_objext |
| 12644 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12645 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 12646 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12647 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12648 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12649 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12650 | # The option is referenced via a variable to avoid confusing sed. |
| 12651 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12652 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12653 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12654 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12655 | (eval echo "\"\$as_me:12655: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12656 | (eval "$lt_compile" 2>conftest.err) |
| 12657 | ac_status=$? |
| 12658 | cat conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12659 | echo "$as_me:12659: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12660 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12661 | # The compiler can only warn and ignore the option if not recognized |
| 12662 | # So say no if there are warnings |
| 12663 | if test ! -s conftest.err; then |
| 12664 | lt_prog_compiler_pic_works_F77=yes |
| 12665 | fi |
| 12666 | fi |
| 12667 | $rm conftest* |
| 12668 | |
| 12669 | fi |
| 12670 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 12671 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 12672 | |
| 12673 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 12674 | case $lt_prog_compiler_pic_F77 in |
| 12675 | "" | " "*) ;; |
| 12676 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 12677 | esac |
| 12678 | else |
| 12679 | lt_prog_compiler_pic_F77= |
| 12680 | lt_prog_compiler_can_build_shared_F77=no |
| 12681 | fi |
| 12682 | |
| 12683 | fi |
| 12684 | case "$host_os" in |
| 12685 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12686 | *djgpp*) |
| 12687 | lt_prog_compiler_pic_F77= |
| 12688 | ;; |
| 12689 | *) |
| 12690 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 12691 | ;; |
| 12692 | esac |
| 12693 | |
| 12694 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12695 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 12696 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 12697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12698 | else |
| 12699 | lt_cv_prog_compiler_c_o_F77=no |
| 12700 | $rm -r conftest 2>/dev/null |
| 12701 | mkdir conftest |
| 12702 | cd conftest |
| 12703 | mkdir out |
| 12704 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12705 | |
| 12706 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12707 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12708 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12709 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12710 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12711 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12712 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12713 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12714 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12715 | (eval echo "\"\$as_me:12715: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12716 | (eval "$lt_compile" 2>out/conftest.err) |
| 12717 | ac_status=$? |
| 12718 | cat out/conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12719 | echo "$as_me:12719: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12720 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12721 | then |
| 12722 | # The compiler can only warn and ignore the option if not recognized |
| 12723 | # So say no if there are warnings |
| 12724 | if test ! -s out/conftest.err; then |
| 12725 | lt_cv_prog_compiler_c_o_F77=yes |
| 12726 | fi |
| 12727 | fi |
| 12728 | chmod u+w . |
| 12729 | $rm conftest* |
| 12730 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12731 | # template instantiation |
| 12732 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12733 | $rm out/* && rmdir out |
| 12734 | cd .. |
| 12735 | rmdir conftest |
| 12736 | $rm conftest* |
| 12737 | |
| 12738 | fi |
| 12739 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 12740 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 12741 | |
| 12742 | |
| 12743 | hard_links="nottested" |
| 12744 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 12745 | # do not overwrite the value of need_locks provided by the user |
| 12746 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12747 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 12748 | hard_links=yes |
| 12749 | $rm conftest* |
| 12750 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12751 | touch conftest.a |
| 12752 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12753 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12754 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12755 | echo "${ECHO_T}$hard_links" >&6 |
| 12756 | if test "$hard_links" = no; then |
| 12757 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12758 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12759 | need_locks=warn |
| 12760 | fi |
| 12761 | else |
| 12762 | need_locks=no |
| 12763 | fi |
| 12764 | |
| 12765 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12766 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12767 | |
| 12768 | runpath_var= |
| 12769 | allow_undefined_flag_F77= |
| 12770 | enable_shared_with_static_runtimes_F77=no |
| 12771 | archive_cmds_F77= |
| 12772 | archive_expsym_cmds_F77= |
| 12773 | old_archive_From_new_cmds_F77= |
| 12774 | old_archive_from_expsyms_cmds_F77= |
| 12775 | export_dynamic_flag_spec_F77= |
| 12776 | whole_archive_flag_spec_F77= |
| 12777 | thread_safe_flag_spec_F77= |
| 12778 | hardcode_libdir_flag_spec_F77= |
| 12779 | hardcode_libdir_flag_spec_ld_F77= |
| 12780 | hardcode_libdir_separator_F77= |
| 12781 | hardcode_direct_F77=no |
| 12782 | hardcode_minus_L_F77=no |
| 12783 | hardcode_shlibpath_var_F77=unsupported |
| 12784 | link_all_deplibs_F77=unknown |
| 12785 | hardcode_automatic_F77=no |
| 12786 | module_cmds_F77= |
| 12787 | module_expsym_cmds_F77= |
| 12788 | always_export_symbols_F77=no |
| 12789 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12790 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12791 | # included in the symbol list |
| 12792 | include_expsyms_F77= |
| 12793 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12794 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12795 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12796 | # as well as any symbol that contains `d'. |
| 12797 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 12798 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12799 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12800 | # the symbol is explicitly referenced. Since portable code cannot |
| 12801 | # rely on this symbol name, it's probably fine to never include it in |
| 12802 | # preloaded symbol tables. |
| 12803 | extract_expsyms_cmds= |
| 12804 | |
| 12805 | case $host_os in |
| 12806 | cygwin* | mingw* | pw32*) |
| 12807 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12808 | # When not using gcc, we currently assume that we are using |
| 12809 | # Microsoft Visual C++. |
| 12810 | if test "$GCC" != yes; then |
| 12811 | with_gnu_ld=no |
| 12812 | fi |
| 12813 | ;; |
| 12814 | openbsd*) |
| 12815 | with_gnu_ld=no |
| 12816 | ;; |
| 12817 | esac |
| 12818 | |
| 12819 | ld_shlibs_F77=yes |
| 12820 | if test "$with_gnu_ld" = yes; then |
| 12821 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12822 | wlarc='${wl}' |
| 12823 | |
| 12824 | # See if GNU ld supports shared libraries. |
| 12825 | case $host_os in |
| 12826 | aix3* | aix4* | aix5*) |
| 12827 | # On AIX/PPC, the GNU linker is very broken |
| 12828 | if test "$host_cpu" != ia64; then |
| 12829 | ld_shlibs_F77=no |
| 12830 | cat <<EOF 1>&2 |
| 12831 | |
| 12832 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12833 | *** to be unable to reliably create shared libraries on AIX. |
| 12834 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12835 | *** really care for shared libraries, you may want to modify your PATH |
| 12836 | *** so that a non-GNU linker is found, and then restart. |
| 12837 | |
| 12838 | EOF |
| 12839 | fi |
| 12840 | ;; |
| 12841 | |
| 12842 | amigaos*) |
| 12843 | 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)' |
| 12844 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12845 | hardcode_minus_L_F77=yes |
| 12846 | |
| 12847 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 12848 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 12849 | # to version 4, is to share data among multiple programs linked |
| 12850 | # with the same dynamic library. Since this doesn't match the |
| 12851 | # behavior of shared libraries on other platforms, we can't use |
| 12852 | # them. |
| 12853 | ld_shlibs_F77=no |
| 12854 | ;; |
| 12855 | |
| 12856 | beos*) |
| 12857 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12858 | allow_undefined_flag_F77=unsupported |
| 12859 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12860 | # support --undefined. This deserves some investigation. FIXME |
| 12861 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12862 | else |
| 12863 | ld_shlibs_F77=no |
| 12864 | fi |
| 12865 | ;; |
| 12866 | |
| 12867 | cygwin* | mingw* | pw32*) |
| 12868 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 12869 | # as there is no search path for DLLs. |
| 12870 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12871 | allow_undefined_flag_F77=unsupported |
| 12872 | always_export_symbols_F77=no |
| 12873 | enable_shared_with_static_runtimes_F77=yes |
| 12874 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12875 | |
| 12876 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12877 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12878 | # If the export-symbols file already is a .def file (1st line |
| 12879 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12880 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12881 | cp $export_symbols $output_objdir/$soname.def; |
| 12882 | else |
| 12883 | echo EXPORTS > $output_objdir/$soname.def; |
| 12884 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12885 | fi~ |
| 12886 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12887 | else |
| 12888 | ld_shlibs=no |
| 12889 | fi |
| 12890 | ;; |
| 12891 | |
| 12892 | netbsd* | knetbsd*-gnu) |
| 12893 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12894 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12895 | wlarc= |
| 12896 | else |
| 12897 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12898 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12899 | fi |
| 12900 | ;; |
| 12901 | |
| 12902 | solaris* | sysv5*) |
| 12903 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 12904 | ld_shlibs_F77=no |
| 12905 | cat <<EOF 1>&2 |
| 12906 | |
| 12907 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12908 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12909 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12910 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12911 | *** your PATH or compiler configuration so that the native linker is |
| 12912 | *** used, and then restart. |
| 12913 | |
| 12914 | EOF |
| 12915 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12916 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12917 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12918 | else |
| 12919 | ld_shlibs_F77=no |
| 12920 | fi |
| 12921 | ;; |
| 12922 | |
| 12923 | sunos4*) |
| 12924 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12925 | wlarc= |
| 12926 | hardcode_direct_F77=yes |
| 12927 | hardcode_shlibpath_var_F77=no |
| 12928 | ;; |
| 12929 | |
| 12930 | linux*) |
| 12931 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 12932 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12933 | archive_cmds_F77="$tmp_archive_cmds" |
| 12934 | supports_anon_versioning=no |
| 12935 | case `$LD -v 2>/dev/null` in |
| 12936 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12937 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12938 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12939 | *\ 2.11.*) ;; # other 2.11 versions |
| 12940 | *) supports_anon_versioning=yes ;; |
| 12941 | esac |
| 12942 | if test $supports_anon_versioning = yes; then |
| 12943 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 12944 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12945 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12946 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12947 | else |
| 12948 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 12949 | fi |
| 12950 | else |
| 12951 | ld_shlibs_F77=no |
| 12952 | fi |
| 12953 | ;; |
| 12954 | |
| 12955 | *) |
| 12956 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12957 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12958 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12959 | else |
| 12960 | ld_shlibs_F77=no |
| 12961 | fi |
| 12962 | ;; |
| 12963 | esac |
| 12964 | |
| 12965 | if test "$ld_shlibs_F77" = yes; then |
| 12966 | runpath_var=LD_RUN_PATH |
| 12967 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 12968 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 12969 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12970 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 12971 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12972 | else |
| 12973 | whole_archive_flag_spec_F77= |
| 12974 | fi |
| 12975 | fi |
| 12976 | else |
| 12977 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12978 | case $host_os in |
| 12979 | aix3*) |
| 12980 | allow_undefined_flag_F77=unsupported |
| 12981 | always_export_symbols_F77=yes |
| 12982 | 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' |
| 12983 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12984 | # are no directories specified by -L. |
| 12985 | hardcode_minus_L_F77=yes |
| 12986 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 12987 | # Neither direct hardcoding nor static linking is supported with a |
| 12988 | # broken collect2. |
| 12989 | hardcode_direct_F77=unsupported |
| 12990 | fi |
| 12991 | ;; |
| 12992 | |
| 12993 | aix4* | aix5*) |
| 12994 | if test "$host_cpu" = ia64; then |
| 12995 | # On IA64, the linker does run time linking by default, so we don't |
| 12996 | # have to do anything special. |
| 12997 | aix_use_runtimelinking=no |
| 12998 | exp_sym_flag='-Bexport' |
| 12999 | no_entry_flag="" |
| 13000 | else |
| 13001 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13002 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13003 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 13004 | 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' |
| 13005 | else |
| 13006 | 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' |
| 13007 | fi |
| 13008 | aix_use_runtimelinking=no |
| 13009 | |
| 13010 | # Test if we are trying to use run time linking or normal |
| 13011 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13012 | # need to do runtime linking. |
| 13013 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 13014 | for ld_flag in $LDFLAGS; do |
| 13015 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13016 | aix_use_runtimelinking=yes |
| 13017 | break |
| 13018 | fi |
| 13019 | done |
| 13020 | esac |
| 13021 | |
| 13022 | exp_sym_flag='-bexport' |
| 13023 | no_entry_flag='-bnoentry' |
| 13024 | fi |
| 13025 | |
| 13026 | # When large executables or shared objects are built, AIX ld can |
| 13027 | # have problems creating the table of contents. If linking a library |
| 13028 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13029 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13030 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13031 | |
| 13032 | archive_cmds_F77='' |
| 13033 | hardcode_direct_F77=yes |
| 13034 | hardcode_libdir_separator_F77=':' |
| 13035 | link_all_deplibs_F77=yes |
| 13036 | |
| 13037 | if test "$GCC" = yes; then |
| 13038 | case $host_os in aix4.012|aix4.012.*) |
| 13039 | # We only want to do this on AIX 4.2 and lower, the check |
| 13040 | # below for broken collect2 doesn't work under 4.3+ |
| 13041 | collect2name=`${CC} -print-prog-name=collect2` |
| 13042 | if test -f "$collect2name" && \ |
| 13043 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 13044 | then |
| 13045 | # We have reworked collect2 |
| 13046 | hardcode_direct_F77=yes |
| 13047 | else |
| 13048 | # We have old collect2 |
| 13049 | hardcode_direct_F77=unsupported |
| 13050 | # It fails to find uninstalled libraries when the uninstalled |
| 13051 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13052 | # to unsupported forces relinking |
| 13053 | hardcode_minus_L_F77=yes |
| 13054 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13055 | hardcode_libdir_separator_F77= |
| 13056 | fi |
| 13057 | esac |
| 13058 | shared_flag='-shared' |
| 13059 | else |
| 13060 | # not using gcc |
| 13061 | if test "$host_cpu" = ia64; then |
| 13062 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13063 | # chokes on -Wl,-G. The following line is correct: |
| 13064 | shared_flag='-G' |
| 13065 | else |
| 13066 | if test "$aix_use_runtimelinking" = yes; then |
| 13067 | shared_flag='${wl}-G' |
| 13068 | else |
| 13069 | shared_flag='${wl}-bM:SRE' |
| 13070 | fi |
| 13071 | fi |
| 13072 | fi |
| 13073 | |
| 13074 | # It seems that -bexpall does not export symbols beginning with |
| 13075 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13076 | always_export_symbols_F77=yes |
| 13077 | if test "$aix_use_runtimelinking" = yes; then |
| 13078 | # Warning - without using the other runtime loading flags (-brtl), |
| 13079 | # -berok will link without error, but may produce a broken library. |
| 13080 | allow_undefined_flag_F77='-berok' |
| 13081 | # Determine the default libpath from the value encoded in an empty executable. |
| 13082 | cat >conftest.$ac_ext <<_ACEOF |
| 13083 | program main |
| 13084 | |
| 13085 | end |
| 13086 | _ACEOF |
| 13087 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13089 | (eval $ac_link) 2>conftest.er1 |
| 13090 | ac_status=$? |
| 13091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13092 | rm -f conftest.er1 |
| 13093 | cat conftest.err >&5 |
| 13094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13095 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 13096 | { ac_try='test -z "$ac_f77_werror_flag" |
| 13097 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13099 | (eval $ac_try) 2>&5 |
| 13100 | ac_status=$? |
| 13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13102 | (exit $ac_status); }; } && |
| 13103 | { ac_try='test -s conftest$ac_exeext' |
| 13104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13105 | (eval $ac_try) 2>&5 |
| 13106 | ac_status=$? |
| 13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13108 | (exit $ac_status); }; }; then |
| 13109 | |
| 13110 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13111 | }'` |
| 13112 | # Check for a 64-bit object if we didn't find anything. |
| 13113 | 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; } |
| 13114 | }'`; fi |
| 13115 | else |
| 13116 | echo "$as_me: failed program was:" >&5 |
| 13117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13118 | |
| 13119 | fi |
| 13120 | rm -f conftest.err conftest.$ac_objext \ |
| 13121 | conftest$ac_exeext conftest.$ac_ext |
| 13122 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13123 | |
| 13124 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13125 | 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" |
| 13126 | else |
| 13127 | if test "$host_cpu" = ia64; then |
| 13128 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 13129 | allow_undefined_flag_F77="-z nodefs" |
| 13130 | 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" |
| 13131 | else |
| 13132 | # Determine the default libpath from the value encoded in an empty executable. |
| 13133 | cat >conftest.$ac_ext <<_ACEOF |
| 13134 | program main |
| 13135 | |
| 13136 | end |
| 13137 | _ACEOF |
| 13138 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13140 | (eval $ac_link) 2>conftest.er1 |
| 13141 | ac_status=$? |
| 13142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13143 | rm -f conftest.er1 |
| 13144 | cat conftest.err >&5 |
| 13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 13147 | { ac_try='test -z "$ac_f77_werror_flag" |
| 13148 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13150 | (eval $ac_try) 2>&5 |
| 13151 | ac_status=$? |
| 13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13153 | (exit $ac_status); }; } && |
| 13154 | { ac_try='test -s conftest$ac_exeext' |
| 13155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13156 | (eval $ac_try) 2>&5 |
| 13157 | ac_status=$? |
| 13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13159 | (exit $ac_status); }; }; then |
| 13160 | |
| 13161 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13162 | }'` |
| 13163 | # Check for a 64-bit object if we didn't find anything. |
| 13164 | 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; } |
| 13165 | }'`; fi |
| 13166 | else |
| 13167 | echo "$as_me: failed program was:" >&5 |
| 13168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13169 | |
| 13170 | fi |
| 13171 | rm -f conftest.err conftest.$ac_objext \ |
| 13172 | conftest$ac_exeext conftest.$ac_ext |
| 13173 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13174 | |
| 13175 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13176 | # Warning - without using the other run time loading flags, |
| 13177 | # -berok will link without error, but may produce a broken library. |
| 13178 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 13179 | allow_undefined_flag_F77=' ${wl}-berok' |
| 13180 | # -bexpall does not export symbols beginning with underscore (_) |
| 13181 | always_export_symbols_F77=yes |
| 13182 | # Exported symbols can be pulled into shared objects from archives |
| 13183 | whole_archive_flag_spec_F77=' ' |
| 13184 | archive_cmds_need_lc_F77=yes |
| 13185 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 13186 | 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' |
| 13187 | fi |
| 13188 | fi |
| 13189 | ;; |
| 13190 | |
| 13191 | amigaos*) |
| 13192 | 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)' |
| 13193 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13194 | hardcode_minus_L_F77=yes |
| 13195 | # see comment about different semantics on the GNU ld section |
| 13196 | ld_shlibs_F77=no |
| 13197 | ;; |
| 13198 | |
| 13199 | bsdi4*) |
| 13200 | export_dynamic_flag_spec_F77=-rdynamic |
| 13201 | ;; |
| 13202 | |
| 13203 | cygwin* | mingw* | pw32*) |
| 13204 | # When not using gcc, we currently assume that we are using |
| 13205 | # Microsoft Visual C++. |
| 13206 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13207 | # no search path for DLLs. |
| 13208 | hardcode_libdir_flag_spec_F77=' ' |
| 13209 | allow_undefined_flag_F77=unsupported |
| 13210 | # Tell ltmain to make .lib files, not .a files. |
| 13211 | libext=lib |
| 13212 | # Tell ltmain to make .dll files, not .so files. |
| 13213 | shrext=".dll" |
| 13214 | # FIXME: Setting linknames here is a bad hack. |
| 13215 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13216 | # The linker will automatically build a .lib file if we build a DLL. |
| 13217 | old_archive_From_new_cmds_F77='true' |
| 13218 | # FIXME: Should let the user specify the lib program. |
| 13219 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13220 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13221 | enable_shared_with_static_runtimes_F77=yes |
| 13222 | ;; |
| 13223 | |
| 13224 | darwin* | rhapsody*) |
| 13225 | if test "$GXX" = yes ; then |
| 13226 | archive_cmds_need_lc_F77=no |
| 13227 | case "$host_os" in |
| 13228 | rhapsody* | darwin1.[012]) |
| 13229 | allow_undefined_flag_F77='-undefined suppress' |
| 13230 | ;; |
| 13231 | *) # Darwin 1.3 on |
| 13232 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 13233 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13234 | else |
| 13235 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 13236 | 10.[012]) |
| 13237 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13238 | ;; |
| 13239 | 10.*) |
| 13240 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
| 13241 | ;; |
| 13242 | esac |
| 13243 | fi |
| 13244 | ;; |
| 13245 | esac |
| 13246 | lt_int_apple_cc_single_mod=no |
| 13247 | output_verbose_link_cmd='echo' |
| 13248 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 13249 | lt_int_apple_cc_single_mod=yes |
| 13250 | fi |
| 13251 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13252 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13253 | else |
| 13254 | 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' |
| 13255 | fi |
| 13256 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13257 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 13258 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13259 | 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}' |
| 13260 | else |
| 13261 | 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}' |
| 13262 | fi |
| 13263 | 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}' |
| 13264 | hardcode_direct_F77=no |
| 13265 | hardcode_automatic_F77=yes |
| 13266 | hardcode_shlibpath_var_F77=unsupported |
| 13267 | whole_archive_flag_spec_F77='-all_load $convenience' |
| 13268 | link_all_deplibs_F77=yes |
| 13269 | else |
| 13270 | ld_shlibs_F77=no |
| 13271 | fi |
| 13272 | ;; |
| 13273 | |
| 13274 | dgux*) |
| 13275 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13276 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13277 | hardcode_shlibpath_var_F77=no |
| 13278 | ;; |
| 13279 | |
| 13280 | freebsd1*) |
| 13281 | ld_shlibs_F77=no |
| 13282 | ;; |
| 13283 | |
| 13284 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13285 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13286 | # does not break anything, and helps significantly (at the cost of a little |
| 13287 | # extra space). |
| 13288 | freebsd2.2*) |
| 13289 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13290 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13291 | hardcode_direct_F77=yes |
| 13292 | hardcode_shlibpath_var_F77=no |
| 13293 | ;; |
| 13294 | |
| 13295 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13296 | freebsd2*) |
| 13297 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13298 | hardcode_direct_F77=yes |
| 13299 | hardcode_minus_L_F77=yes |
| 13300 | hardcode_shlibpath_var_F77=no |
| 13301 | ;; |
| 13302 | |
| 13303 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 13304 | freebsd* | kfreebsd*-gnu) |
| 13305 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 13306 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13307 | hardcode_direct_F77=yes |
| 13308 | hardcode_shlibpath_var_F77=no |
| 13309 | ;; |
| 13310 | |
| 13311 | hpux9*) |
| 13312 | if test "$GCC" = yes; then |
| 13313 | 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' |
| 13314 | else |
| 13315 | 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' |
| 13316 | fi |
| 13317 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13318 | hardcode_libdir_separator_F77=: |
| 13319 | hardcode_direct_F77=yes |
| 13320 | |
| 13321 | # hardcode_minus_L: Not really in the search PATH, |
| 13322 | # but as the default location of the library. |
| 13323 | hardcode_minus_L_F77=yes |
| 13324 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13325 | ;; |
| 13326 | |
| 13327 | hpux10* | hpux11*) |
| 13328 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13329 | case "$host_cpu" in |
| 13330 | hppa*64*|ia64*) |
| 13331 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13332 | ;; |
| 13333 | *) |
| 13334 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13335 | ;; |
| 13336 | esac |
| 13337 | else |
| 13338 | case "$host_cpu" in |
| 13339 | hppa*64*|ia64*) |
| 13340 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13341 | ;; |
| 13342 | *) |
| 13343 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13344 | ;; |
| 13345 | esac |
| 13346 | fi |
| 13347 | if test "$with_gnu_ld" = no; then |
| 13348 | case "$host_cpu" in |
| 13349 | hppa*64*) |
| 13350 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13351 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 13352 | hardcode_libdir_separator_F77=: |
| 13353 | hardcode_direct_F77=no |
| 13354 | hardcode_shlibpath_var_F77=no |
| 13355 | ;; |
| 13356 | ia64*) |
| 13357 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13358 | hardcode_direct_F77=no |
| 13359 | hardcode_shlibpath_var_F77=no |
| 13360 | |
| 13361 | # hardcode_minus_L: Not really in the search PATH, |
| 13362 | # but as the default location of the library. |
| 13363 | hardcode_minus_L_F77=yes |
| 13364 | ;; |
| 13365 | *) |
| 13366 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13367 | hardcode_libdir_separator_F77=: |
| 13368 | hardcode_direct_F77=yes |
| 13369 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13370 | |
| 13371 | # hardcode_minus_L: Not really in the search PATH, |
| 13372 | # but as the default location of the library. |
| 13373 | hardcode_minus_L_F77=yes |
| 13374 | ;; |
| 13375 | esac |
| 13376 | fi |
| 13377 | ;; |
| 13378 | |
| 13379 | irix5* | irix6* | nonstopux*) |
| 13380 | if test "$GCC" = yes; then |
| 13381 | 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' |
| 13382 | else |
| 13383 | 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' |
| 13384 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 13385 | fi |
| 13386 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13387 | hardcode_libdir_separator_F77=: |
| 13388 | link_all_deplibs_F77=yes |
| 13389 | ;; |
| 13390 | |
| 13391 | netbsd* | knetbsd*-gnu) |
| 13392 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13393 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13394 | else |
| 13395 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13396 | fi |
| 13397 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13398 | hardcode_direct_F77=yes |
| 13399 | hardcode_shlibpath_var_F77=no |
| 13400 | ;; |
| 13401 | |
| 13402 | newsos6) |
| 13403 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13404 | hardcode_direct_F77=yes |
| 13405 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13406 | hardcode_libdir_separator_F77=: |
| 13407 | hardcode_shlibpath_var_F77=no |
| 13408 | ;; |
| 13409 | |
| 13410 | openbsd*) |
| 13411 | hardcode_direct_F77=yes |
| 13412 | hardcode_shlibpath_var_F77=no |
| 13413 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13414 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13415 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13416 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13417 | else |
| 13418 | case $host_os in |
| 13419 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13420 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13421 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13422 | ;; |
| 13423 | *) |
| 13424 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13425 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13426 | ;; |
| 13427 | esac |
| 13428 | fi |
| 13429 | ;; |
| 13430 | |
| 13431 | os2*) |
| 13432 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13433 | hardcode_minus_L_F77=yes |
| 13434 | allow_undefined_flag_F77=unsupported |
| 13435 | 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' |
| 13436 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 13437 | ;; |
| 13438 | |
| 13439 | osf3*) |
| 13440 | if test "$GCC" = yes; then |
| 13441 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13442 | 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' |
| 13443 | else |
| 13444 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13445 | 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' |
| 13446 | fi |
| 13447 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13448 | hardcode_libdir_separator_F77=: |
| 13449 | ;; |
| 13450 | |
| 13451 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13452 | if test "$GCC" = yes; then |
| 13453 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13454 | 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' |
| 13455 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13456 | else |
| 13457 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13458 | 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' |
| 13459 | 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~ |
| 13460 | $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' |
| 13461 | |
| 13462 | # Both c and cxx compiler support -rpath directly |
| 13463 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 13464 | fi |
| 13465 | hardcode_libdir_separator_F77=: |
| 13466 | ;; |
| 13467 | |
| 13468 | sco3.2v5*) |
| 13469 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13470 | hardcode_shlibpath_var_F77=no |
| 13471 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 13472 | runpath_var=LD_RUN_PATH |
| 13473 | hardcode_runpath_var=yes |
| 13474 | ;; |
| 13475 | |
| 13476 | solaris*) |
| 13477 | no_undefined_flag_F77=' -z text' |
| 13478 | if test "$GCC" = yes; then |
| 13479 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13480 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13481 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 13482 | else |
| 13483 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13484 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13485 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13486 | fi |
| 13487 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13488 | hardcode_shlibpath_var_F77=no |
| 13489 | case $host_os in |
| 13490 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13491 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13492 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 13493 | esac |
| 13494 | link_all_deplibs_F77=yes |
| 13495 | ;; |
| 13496 | |
| 13497 | sunos4*) |
| 13498 | if test "x$host_vendor" = xsequent; then |
| 13499 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13500 | # files that make .init and .fini sections work. |
| 13501 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13502 | else |
| 13503 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13504 | fi |
| 13505 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13506 | hardcode_direct_F77=yes |
| 13507 | hardcode_minus_L_F77=yes |
| 13508 | hardcode_shlibpath_var_F77=no |
| 13509 | ;; |
| 13510 | |
| 13511 | sysv4) |
| 13512 | case $host_vendor in |
| 13513 | sni) |
| 13514 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13515 | hardcode_direct_F77=yes # is this really true??? |
| 13516 | ;; |
| 13517 | siemens) |
| 13518 | ## LD is ld it makes a PLAMLIB |
| 13519 | ## CC just makes a GrossModule. |
| 13520 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13521 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 13522 | hardcode_direct_F77=no |
| 13523 | ;; |
| 13524 | motorola) |
| 13525 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13526 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 13527 | ;; |
| 13528 | esac |
| 13529 | runpath_var='LD_RUN_PATH' |
| 13530 | hardcode_shlibpath_var_F77=no |
| 13531 | ;; |
| 13532 | |
| 13533 | sysv4.3*) |
| 13534 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13535 | hardcode_shlibpath_var_F77=no |
| 13536 | export_dynamic_flag_spec_F77='-Bexport' |
| 13537 | ;; |
| 13538 | |
| 13539 | sysv4*MP*) |
| 13540 | if test -d /usr/nec; then |
| 13541 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13542 | hardcode_shlibpath_var_F77=no |
| 13543 | runpath_var=LD_RUN_PATH |
| 13544 | hardcode_runpath_var=yes |
| 13545 | ld_shlibs_F77=yes |
| 13546 | fi |
| 13547 | ;; |
| 13548 | |
| 13549 | sysv4.2uw2*) |
| 13550 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13551 | hardcode_direct_F77=yes |
| 13552 | hardcode_minus_L_F77=no |
| 13553 | hardcode_shlibpath_var_F77=no |
| 13554 | hardcode_runpath_var=yes |
| 13555 | runpath_var=LD_RUN_PATH |
| 13556 | ;; |
| 13557 | |
| 13558 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 13559 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 13560 | if test "$GCC" = yes; then |
| 13561 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13562 | else |
| 13563 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13564 | fi |
| 13565 | runpath_var='LD_RUN_PATH' |
| 13566 | hardcode_shlibpath_var_F77=no |
| 13567 | ;; |
| 13568 | |
| 13569 | sysv5*) |
| 13570 | no_undefined_flag_F77=' -z text' |
| 13571 | # $CC -shared without GNU ld will not create a library from C++ |
| 13572 | # object files and a static libstdc++, better avoid it by now |
| 13573 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13574 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13575 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13576 | hardcode_libdir_flag_spec_F77= |
| 13577 | hardcode_shlibpath_var_F77=no |
| 13578 | runpath_var='LD_RUN_PATH' |
| 13579 | ;; |
| 13580 | |
| 13581 | uts4*) |
| 13582 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13583 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13584 | hardcode_shlibpath_var_F77=no |
| 13585 | ;; |
| 13586 | |
| 13587 | *) |
| 13588 | ld_shlibs_F77=no |
| 13589 | ;; |
| 13590 | esac |
| 13591 | fi |
| 13592 | |
| 13593 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 13594 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 13595 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13596 | |
| 13597 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13598 | if test "$GCC" = yes; then |
| 13599 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13600 | fi |
| 13601 | |
| 13602 | # |
| 13603 | # Do we need to explicitly link libc? |
| 13604 | # |
| 13605 | case "x$archive_cmds_need_lc_F77" in |
| 13606 | x|xyes) |
| 13607 | # Assume -lc should be added |
| 13608 | archive_cmds_need_lc_F77=yes |
| 13609 | |
| 13610 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13611 | case $archive_cmds_F77 in |
| 13612 | *'~'*) |
| 13613 | # FIXME: we may have to deal with multi-command sequences. |
| 13614 | ;; |
| 13615 | '$CC '*) |
| 13616 | # Test whether the compiler implicitly links with -lc since on some |
| 13617 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13618 | # to ld, don't add -lc before -lgcc. |
| 13619 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13620 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13621 | $rm conftest* |
| 13622 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13623 | |
| 13624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13625 | (eval $ac_compile) 2>&5 |
| 13626 | ac_status=$? |
| 13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13628 | (exit $ac_status); } 2>conftest.err; then |
| 13629 | soname=conftest |
| 13630 | lib=conftest |
| 13631 | libobjs=conftest.$ac_objext |
| 13632 | deplibs= |
| 13633 | wl=$lt_prog_compiler_wl_F77 |
| 13634 | compiler_flags=-v |
| 13635 | linker_flags=-v |
| 13636 | verstring= |
| 13637 | output_objdir=. |
| 13638 | libname=conftest |
| 13639 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 13640 | allow_undefined_flag_F77= |
| 13641 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13642 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13643 | ac_status=$? |
| 13644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13645 | (exit $ac_status); } |
| 13646 | then |
| 13647 | archive_cmds_need_lc_F77=no |
| 13648 | else |
| 13649 | archive_cmds_need_lc_F77=yes |
| 13650 | fi |
| 13651 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 13652 | else |
| 13653 | cat conftest.err 1>&5 |
| 13654 | fi |
| 13655 | $rm conftest* |
| 13656 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 13657 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 13658 | ;; |
| 13659 | esac |
| 13660 | fi |
| 13661 | ;; |
| 13662 | esac |
| 13663 | |
| 13664 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13665 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13666 | library_names_spec= |
| 13667 | libname_spec='lib$name' |
| 13668 | soname_spec= |
| 13669 | shrext=".so" |
| 13670 | postinstall_cmds= |
| 13671 | postuninstall_cmds= |
| 13672 | finish_cmds= |
| 13673 | finish_eval= |
| 13674 | shlibpath_var= |
| 13675 | shlibpath_overrides_runpath=unknown |
| 13676 | version_type=none |
| 13677 | dynamic_linker="$host_os ld.so" |
| 13678 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13679 | if test "$GCC" = yes; then |
| 13680 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13681 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13682 | # if the path contains ";" then we assume it to be the separator |
| 13683 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13684 | # assumed that no part of a normal pathname contains ";" but that should |
| 13685 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13686 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13687 | else |
| 13688 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13689 | fi |
| 13690 | else |
| 13691 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13692 | fi |
| 13693 | need_lib_prefix=unknown |
| 13694 | hardcode_into_libs=no |
| 13695 | |
| 13696 | # when you set need_version to no, make sure it does not cause -set_version |
| 13697 | # flags to be left without arguments |
| 13698 | need_version=unknown |
| 13699 | |
| 13700 | case $host_os in |
| 13701 | aix3*) |
| 13702 | version_type=linux |
| 13703 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13704 | shlibpath_var=LIBPATH |
| 13705 | |
| 13706 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13707 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13708 | ;; |
| 13709 | |
| 13710 | aix4* | aix5*) |
| 13711 | version_type=linux |
| 13712 | need_lib_prefix=no |
| 13713 | need_version=no |
| 13714 | hardcode_into_libs=yes |
| 13715 | if test "$host_cpu" = ia64; then |
| 13716 | # AIX 5 supports IA64 |
| 13717 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13718 | shlibpath_var=LD_LIBRARY_PATH |
| 13719 | else |
| 13720 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13721 | # for dependence libraries. The import file would start with |
| 13722 | # the line `#! .'. This would cause the generated library to |
| 13723 | # depend on `.', always an invalid library. This was fixed in |
| 13724 | # development snapshots of GCC prior to 3.0. |
| 13725 | case $host_os in |
| 13726 | aix4 | aix4.[01] | aix4.[01].*) |
| 13727 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13728 | echo ' yes ' |
| 13729 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13730 | : |
| 13731 | else |
| 13732 | can_build_shared=no |
| 13733 | fi |
| 13734 | ;; |
| 13735 | esac |
| 13736 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13737 | # soname into executable. Probably we can add versioning support to |
| 13738 | # collect2, so additional links can be useful in future. |
| 13739 | if test "$aix_use_runtimelinking" = yes; then |
| 13740 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13741 | # instead of lib<name>.a to let people know that these are not |
| 13742 | # typical AIX shared libraries. |
| 13743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13744 | else |
| 13745 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13746 | # and later when we are not doing run time linking. |
| 13747 | library_names_spec='${libname}${release}.a $libname.a' |
| 13748 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13749 | fi |
| 13750 | shlibpath_var=LIBPATH |
| 13751 | fi |
| 13752 | ;; |
| 13753 | |
| 13754 | amigaos*) |
| 13755 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13756 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13757 | 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' |
| 13758 | ;; |
| 13759 | |
| 13760 | beos*) |
| 13761 | library_names_spec='${libname}${shared_ext}' |
| 13762 | dynamic_linker="$host_os ld.so" |
| 13763 | shlibpath_var=LIBRARY_PATH |
| 13764 | ;; |
| 13765 | |
| 13766 | bsdi4*) |
| 13767 | version_type=linux |
| 13768 | need_version=no |
| 13769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13770 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13772 | shlibpath_var=LD_LIBRARY_PATH |
| 13773 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13774 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13775 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13776 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13777 | # libtool to hard-code these into programs |
| 13778 | ;; |
| 13779 | |
| 13780 | cygwin* | mingw* | pw32*) |
| 13781 | version_type=windows |
| 13782 | shrext=".dll" |
| 13783 | need_version=no |
| 13784 | need_lib_prefix=no |
| 13785 | |
| 13786 | case $GCC,$host_os in |
| 13787 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 13788 | library_names_spec='$libname.dll.a' |
| 13789 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13790 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13791 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13792 | dldir=$destdir/`dirname \$dlpath`~ |
| 13793 | test -d \$dldir || mkdir -p \$dldir~ |
| 13794 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 13795 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13796 | dlpath=$dir/\$dldll~ |
| 13797 | $rm \$dlpath' |
| 13798 | shlibpath_overrides_runpath=yes |
| 13799 | |
| 13800 | case $host_os in |
| 13801 | cygwin*) |
| 13802 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13803 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13804 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13805 | ;; |
| 13806 | mingw*) |
| 13807 | # MinGW DLLs use traditional 'lib' prefix |
| 13808 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13809 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13810 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13811 | # It is most probably a Windows format PATH printed by |
| 13812 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13813 | # path with ; separators, and with drive letters. We can handle the |
| 13814 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13815 | # especially as we might pass files found there to a mingw objdump, |
| 13816 | # which wouldn't understand a cygwinified path. Ahh. |
| 13817 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13818 | else |
| 13819 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13820 | fi |
| 13821 | ;; |
| 13822 | pw32*) |
| 13823 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13824 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 13825 | ;; |
| 13826 | esac |
| 13827 | ;; |
| 13828 | |
| 13829 | *) |
| 13830 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13831 | ;; |
| 13832 | esac |
| 13833 | dynamic_linker='Win32 ld.exe' |
| 13834 | # FIXME: first we should search . and the directory the executable is in |
| 13835 | shlibpath_var=PATH |
| 13836 | ;; |
| 13837 | |
| 13838 | darwin* | rhapsody*) |
| 13839 | dynamic_linker="$host_os dyld" |
| 13840 | version_type=darwin |
| 13841 | need_lib_prefix=no |
| 13842 | need_version=no |
| 13843 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13844 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13845 | shlibpath_overrides_runpath=yes |
| 13846 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13847 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 13848 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13849 | if test "$GCC" = yes; then |
| 13850 | 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"` |
| 13851 | else |
| 13852 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 13853 | fi |
| 13854 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13855 | ;; |
| 13856 | |
| 13857 | dgux*) |
| 13858 | version_type=linux |
| 13859 | need_lib_prefix=no |
| 13860 | need_version=no |
| 13861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13863 | shlibpath_var=LD_LIBRARY_PATH |
| 13864 | ;; |
| 13865 | |
| 13866 | freebsd1*) |
| 13867 | dynamic_linker=no |
| 13868 | ;; |
| 13869 | |
| 13870 | kfreebsd*-gnu) |
| 13871 | version_type=linux |
| 13872 | need_lib_prefix=no |
| 13873 | need_version=no |
| 13874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13875 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13876 | shlibpath_var=LD_LIBRARY_PATH |
| 13877 | shlibpath_overrides_runpath=no |
| 13878 | hardcode_into_libs=yes |
| 13879 | dynamic_linker='GNU ld.so' |
| 13880 | ;; |
| 13881 | |
| 13882 | freebsd*) |
| 13883 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 13884 | version_type=freebsd-$objformat |
| 13885 | case $version_type in |
| 13886 | freebsd-elf*) |
| 13887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13888 | need_version=no |
| 13889 | need_lib_prefix=no |
| 13890 | ;; |
| 13891 | freebsd-*) |
| 13892 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13893 | need_version=yes |
| 13894 | ;; |
| 13895 | esac |
| 13896 | shlibpath_var=LD_LIBRARY_PATH |
| 13897 | case $host_os in |
| 13898 | freebsd2*) |
| 13899 | shlibpath_overrides_runpath=yes |
| 13900 | ;; |
| 13901 | freebsd3.01* | freebsdelf3.01*) |
| 13902 | shlibpath_overrides_runpath=yes |
| 13903 | hardcode_into_libs=yes |
| 13904 | ;; |
| 13905 | *) # from 3.2 on |
| 13906 | shlibpath_overrides_runpath=no |
| 13907 | hardcode_into_libs=yes |
| 13908 | ;; |
| 13909 | esac |
| 13910 | ;; |
| 13911 | |
| 13912 | gnu*) |
| 13913 | version_type=linux |
| 13914 | need_lib_prefix=no |
| 13915 | need_version=no |
| 13916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13917 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13918 | shlibpath_var=LD_LIBRARY_PATH |
| 13919 | hardcode_into_libs=yes |
| 13920 | ;; |
| 13921 | |
| 13922 | hpux9* | hpux10* | hpux11*) |
| 13923 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13924 | # link against other versions. |
| 13925 | version_type=sunos |
| 13926 | need_lib_prefix=no |
| 13927 | need_version=no |
| 13928 | case "$host_cpu" in |
| 13929 | ia64*) |
| 13930 | shrext='.so' |
| 13931 | hardcode_into_libs=yes |
| 13932 | dynamic_linker="$host_os dld.so" |
| 13933 | shlibpath_var=LD_LIBRARY_PATH |
| 13934 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13936 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13937 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13938 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13939 | else |
| 13940 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13941 | fi |
| 13942 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13943 | ;; |
| 13944 | hppa*64*) |
| 13945 | shrext='.sl' |
| 13946 | hardcode_into_libs=yes |
| 13947 | dynamic_linker="$host_os dld.sl" |
| 13948 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13949 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13951 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13952 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13953 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13954 | ;; |
| 13955 | *) |
| 13956 | shrext='.sl' |
| 13957 | dynamic_linker="$host_os dld.sl" |
| 13958 | shlibpath_var=SHLIB_PATH |
| 13959 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13961 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13962 | ;; |
| 13963 | esac |
| 13964 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13965 | postinstall_cmds='chmod 555 $lib' |
| 13966 | ;; |
| 13967 | |
| 13968 | irix5* | irix6* | nonstopux*) |
| 13969 | case $host_os in |
| 13970 | nonstopux*) version_type=nonstopux ;; |
| 13971 | *) |
| 13972 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13973 | version_type=linux |
| 13974 | else |
| 13975 | version_type=irix |
| 13976 | fi ;; |
| 13977 | esac |
| 13978 | need_lib_prefix=no |
| 13979 | need_version=no |
| 13980 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13982 | case $host_os in |
| 13983 | irix5* | nonstopux*) |
| 13984 | libsuff= shlibsuff= |
| 13985 | ;; |
| 13986 | *) |
| 13987 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13988 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13989 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13990 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13991 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13992 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13993 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13994 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13995 | esac |
| 13996 | ;; |
| 13997 | esac |
| 13998 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13999 | shlibpath_overrides_runpath=no |
| 14000 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14001 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14002 | hardcode_into_libs=yes |
| 14003 | ;; |
| 14004 | |
| 14005 | # No shared lib support for Linux oldld, aout, or coff. |
| 14006 | linux*oldld* | linux*aout* | linux*coff*) |
| 14007 | dynamic_linker=no |
| 14008 | ;; |
| 14009 | |
| 14010 | # This must be Linux ELF. |
| 14011 | linux*) |
| 14012 | version_type=linux |
| 14013 | need_lib_prefix=no |
| 14014 | need_version=no |
| 14015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14016 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14017 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14018 | shlibpath_var=LD_LIBRARY_PATH |
| 14019 | shlibpath_overrides_runpath=no |
| 14020 | # This implies no fast_install, which is unacceptable. |
| 14021 | # Some rework will be needed to allow for fast_install |
| 14022 | # before this can be enabled. |
| 14023 | hardcode_into_libs=yes |
| 14024 | |
| 14025 | # Append ld.so.conf contents to the search path |
| 14026 | if test -f /etc/ld.so.conf; then |
| 14027 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
| 14028 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
| 14029 | fi |
| 14030 | |
| 14031 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14032 | # powerpc, because MkLinux only supported shared libraries with the |
| 14033 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14034 | # most powerpc-linux boxes support dynamic linking these days and |
| 14035 | # people can always --disable-shared, the test was removed, and we |
| 14036 | # assume the GNU/Linux dynamic linker is in use. |
| 14037 | dynamic_linker='GNU/Linux ld.so' |
| 14038 | ;; |
| 14039 | |
| 14040 | knetbsd*-gnu) |
| 14041 | version_type=linux |
| 14042 | need_lib_prefix=no |
| 14043 | need_version=no |
| 14044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14046 | shlibpath_var=LD_LIBRARY_PATH |
| 14047 | shlibpath_overrides_runpath=no |
| 14048 | hardcode_into_libs=yes |
| 14049 | dynamic_linker='GNU ld.so' |
| 14050 | ;; |
| 14051 | |
| 14052 | netbsd*) |
| 14053 | version_type=sunos |
| 14054 | need_lib_prefix=no |
| 14055 | need_version=no |
| 14056 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14058 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14059 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14060 | else |
| 14061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14062 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14063 | dynamic_linker='NetBSD ld.elf_so' |
| 14064 | fi |
| 14065 | shlibpath_var=LD_LIBRARY_PATH |
| 14066 | shlibpath_overrides_runpath=yes |
| 14067 | hardcode_into_libs=yes |
| 14068 | ;; |
| 14069 | |
| 14070 | newsos6) |
| 14071 | version_type=linux |
| 14072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14073 | shlibpath_var=LD_LIBRARY_PATH |
| 14074 | shlibpath_overrides_runpath=yes |
| 14075 | ;; |
| 14076 | |
| 14077 | nto-qnx*) |
| 14078 | version_type=linux |
| 14079 | need_lib_prefix=no |
| 14080 | need_version=no |
| 14081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14082 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14083 | shlibpath_var=LD_LIBRARY_PATH |
| 14084 | shlibpath_overrides_runpath=yes |
| 14085 | ;; |
| 14086 | |
| 14087 | openbsd*) |
| 14088 | version_type=sunos |
| 14089 | need_lib_prefix=no |
| 14090 | need_version=yes |
| 14091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14092 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14093 | shlibpath_var=LD_LIBRARY_PATH |
| 14094 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14095 | case $host_os in |
| 14096 | openbsd2.[89] | openbsd2.[89].*) |
| 14097 | shlibpath_overrides_runpath=no |
| 14098 | ;; |
| 14099 | *) |
| 14100 | shlibpath_overrides_runpath=yes |
| 14101 | ;; |
| 14102 | esac |
| 14103 | else |
| 14104 | shlibpath_overrides_runpath=yes |
| 14105 | fi |
| 14106 | ;; |
| 14107 | |
| 14108 | os2*) |
| 14109 | libname_spec='$name' |
| 14110 | shrext=".dll" |
| 14111 | need_lib_prefix=no |
| 14112 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14113 | dynamic_linker='OS/2 ld.exe' |
| 14114 | shlibpath_var=LIBPATH |
| 14115 | ;; |
| 14116 | |
| 14117 | osf3* | osf4* | osf5*) |
| 14118 | version_type=osf |
| 14119 | need_lib_prefix=no |
| 14120 | need_version=no |
| 14121 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14123 | shlibpath_var=LD_LIBRARY_PATH |
| 14124 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14125 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14126 | ;; |
| 14127 | |
| 14128 | sco3.2v5*) |
| 14129 | version_type=osf |
| 14130 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14132 | shlibpath_var=LD_LIBRARY_PATH |
| 14133 | ;; |
| 14134 | |
| 14135 | solaris*) |
| 14136 | version_type=linux |
| 14137 | need_lib_prefix=no |
| 14138 | need_version=no |
| 14139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14140 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14141 | shlibpath_var=LD_LIBRARY_PATH |
| 14142 | shlibpath_overrides_runpath=yes |
| 14143 | hardcode_into_libs=yes |
| 14144 | # ldd complains unless libraries are executable |
| 14145 | postinstall_cmds='chmod +x $lib' |
| 14146 | ;; |
| 14147 | |
| 14148 | sunos4*) |
| 14149 | version_type=sunos |
| 14150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14151 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14152 | shlibpath_var=LD_LIBRARY_PATH |
| 14153 | shlibpath_overrides_runpath=yes |
| 14154 | if test "$with_gnu_ld" = yes; then |
| 14155 | need_lib_prefix=no |
| 14156 | fi |
| 14157 | need_version=yes |
| 14158 | ;; |
| 14159 | |
| 14160 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14161 | version_type=linux |
| 14162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14163 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14164 | shlibpath_var=LD_LIBRARY_PATH |
| 14165 | case $host_vendor in |
| 14166 | sni) |
| 14167 | shlibpath_overrides_runpath=no |
| 14168 | need_lib_prefix=no |
| 14169 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14170 | runpath_var=LD_RUN_PATH |
| 14171 | ;; |
| 14172 | siemens) |
| 14173 | need_lib_prefix=no |
| 14174 | ;; |
| 14175 | motorola) |
| 14176 | need_lib_prefix=no |
| 14177 | need_version=no |
| 14178 | shlibpath_overrides_runpath=no |
| 14179 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14180 | ;; |
| 14181 | esac |
| 14182 | ;; |
| 14183 | |
| 14184 | sysv4*MP*) |
| 14185 | if test -d /usr/nec ;then |
| 14186 | version_type=linux |
| 14187 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14188 | soname_spec='$libname${shared_ext}.$major' |
| 14189 | shlibpath_var=LD_LIBRARY_PATH |
| 14190 | fi |
| 14191 | ;; |
| 14192 | |
| 14193 | uts4*) |
| 14194 | version_type=linux |
| 14195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14196 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14197 | shlibpath_var=LD_LIBRARY_PATH |
| 14198 | ;; |
| 14199 | |
| 14200 | *) |
| 14201 | dynamic_linker=no |
| 14202 | ;; |
| 14203 | esac |
| 14204 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14205 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14206 | test "$dynamic_linker" = no && can_build_shared=no |
| 14207 | |
| 14208 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14209 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 14210 | hardcode_action_F77= |
| 14211 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 14212 | test -n "$runpath_var F77" || \ |
| 14213 | test "X$hardcode_automatic_F77"="Xyes" ; then |
| 14214 | |
| 14215 | # We can hardcode non-existant directories. |
| 14216 | if test "$hardcode_direct_F77" != no && |
| 14217 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14218 | # have to relink, otherwise we might link with an installed library |
| 14219 | # when we should be linking with a yet-to-be-installed one |
| 14220 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 14221 | test "$hardcode_minus_L_F77" != no; then |
| 14222 | # Linking always hardcodes the temporary library directory. |
| 14223 | hardcode_action_F77=relink |
| 14224 | else |
| 14225 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14226 | hardcode_action_F77=immediate |
| 14227 | fi |
| 14228 | else |
| 14229 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14230 | # directories. |
| 14231 | hardcode_action_F77=unsupported |
| 14232 | fi |
| 14233 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 14234 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 14235 | |
| 14236 | if test "$hardcode_action_F77" = relink; then |
| 14237 | # Fast installation is not supported |
| 14238 | enable_fast_install=no |
| 14239 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14240 | test "$enable_shared" = no; then |
| 14241 | # Fast installation is not necessary |
| 14242 | enable_fast_install=needless |
| 14243 | fi |
| 14244 | |
| 14245 | striplib= |
| 14246 | old_striplib= |
| 14247 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 14248 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 14249 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 14250 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14251 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14252 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14253 | echo "${ECHO_T}yes" >&6 |
| 14254 | else |
| 14255 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14256 | case $host_os in |
| 14257 | darwin*) |
| 14258 | if test -n "$STRIP" ; then |
| 14259 | striplib="$STRIP -x" |
| 14260 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14261 | echo "${ECHO_T}yes" >&6 |
| 14262 | else |
| 14263 | echo "$as_me:$LINENO: result: no" >&5 |
| 14264 | echo "${ECHO_T}no" >&6 |
| 14265 | fi |
| 14266 | ;; |
| 14267 | *) |
| 14268 | echo "$as_me:$LINENO: result: no" >&5 |
| 14269 | echo "${ECHO_T}no" >&6 |
| 14270 | ;; |
| 14271 | esac |
| 14272 | fi |
| 14273 | |
| 14274 | |
| 14275 | |
| 14276 | # The else clause should only fire when bootstrapping the |
| 14277 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14278 | # with your package, and you will get complaints that there are |
| 14279 | # no rules to generate ltmain.sh. |
| 14280 | if test -f "$ltmain"; then |
| 14281 | # See if we are running on zsh, and set the options which allow our commands through |
| 14282 | # without removal of \ escapes. |
| 14283 | if test -n "${ZSH_VERSION+set}" ; then |
| 14284 | setopt NO_GLOB_SUBST |
| 14285 | fi |
| 14286 | # Now quote all the things that may contain metacharacters while being |
| 14287 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14288 | # variables and quote the copies for generation of the libtool script. |
| 14289 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 14290 | SED SHELL STRIP \ |
| 14291 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14292 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14293 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14294 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14295 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14296 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 14297 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14298 | compiler_F77 \ |
| 14299 | CC_F77 \ |
| 14300 | LD_F77 \ |
| 14301 | lt_prog_compiler_wl_F77 \ |
| 14302 | lt_prog_compiler_pic_F77 \ |
| 14303 | lt_prog_compiler_static_F77 \ |
| 14304 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 14305 | export_dynamic_flag_spec_F77 \ |
| 14306 | thread_safe_flag_spec_F77 \ |
| 14307 | whole_archive_flag_spec_F77 \ |
| 14308 | enable_shared_with_static_runtimes_F77 \ |
| 14309 | old_archive_cmds_F77 \ |
| 14310 | old_archive_from_new_cmds_F77 \ |
| 14311 | predep_objects_F77 \ |
| 14312 | postdep_objects_F77 \ |
| 14313 | predeps_F77 \ |
| 14314 | postdeps_F77 \ |
| 14315 | compiler_lib_search_path_F77 \ |
| 14316 | archive_cmds_F77 \ |
| 14317 | archive_expsym_cmds_F77 \ |
| 14318 | postinstall_cmds_F77 \ |
| 14319 | postuninstall_cmds_F77 \ |
| 14320 | old_archive_from_expsyms_cmds_F77 \ |
| 14321 | allow_undefined_flag_F77 \ |
| 14322 | no_undefined_flag_F77 \ |
| 14323 | export_symbols_cmds_F77 \ |
| 14324 | hardcode_libdir_flag_spec_F77 \ |
| 14325 | hardcode_libdir_flag_spec_ld_F77 \ |
| 14326 | hardcode_libdir_separator_F77 \ |
| 14327 | hardcode_automatic_F77 \ |
| 14328 | module_cmds_F77 \ |
| 14329 | module_expsym_cmds_F77 \ |
| 14330 | lt_cv_prog_compiler_c_o_F77 \ |
| 14331 | exclude_expsyms_F77 \ |
| 14332 | include_expsyms_F77; do |
| 14333 | |
| 14334 | case $var in |
| 14335 | old_archive_cmds_F77 | \ |
| 14336 | old_archive_from_new_cmds_F77 | \ |
| 14337 | archive_cmds_F77 | \ |
| 14338 | archive_expsym_cmds_F77 | \ |
| 14339 | module_cmds_F77 | \ |
| 14340 | module_expsym_cmds_F77 | \ |
| 14341 | old_archive_from_expsyms_cmds_F77 | \ |
| 14342 | export_symbols_cmds_F77 | \ |
| 14343 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 14344 | postinstall_cmds | postuninstall_cmds | \ |
| 14345 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14346 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 14347 | # Double-quote double-evaled strings. |
| 14348 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 14349 | ;; |
| 14350 | *) |
| 14351 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14352 | ;; |
| 14353 | esac |
| 14354 | done |
| 14355 | |
| 14356 | case $lt_echo in |
| 14357 | *'\$0 --fallback-echo"') |
| 14358 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14359 | ;; |
| 14360 | esac |
| 14361 | |
| 14362 | cfgfile="$ofile" |
| 14363 | |
| 14364 | cat <<__EOF__ >> "$cfgfile" |
| 14365 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14366 | |
| 14367 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14368 | |
| 14369 | # Shell to use when invoking shell scripts. |
| 14370 | SHELL=$lt_SHELL |
| 14371 | |
| 14372 | # Whether or not to build shared libraries. |
| 14373 | build_libtool_libs=$enable_shared |
| 14374 | |
| 14375 | # Whether or not to build static libraries. |
| 14376 | build_old_libs=$enable_static |
| 14377 | |
| 14378 | # Whether or not to add -lc for building shared libraries. |
| 14379 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 14380 | |
| 14381 | # Whether or not to disallow shared libs when runtime libs are static |
| 14382 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 14383 | |
| 14384 | # Whether or not to optimize for fast installation. |
| 14385 | fast_install=$enable_fast_install |
| 14386 | |
| 14387 | # The host system. |
| 14388 | host_alias=$host_alias |
| 14389 | host=$host |
| 14390 | |
| 14391 | # An echo program that does not interpret backslashes. |
| 14392 | echo=$lt_echo |
| 14393 | |
| 14394 | # The archiver. |
| 14395 | AR=$lt_AR |
| 14396 | AR_FLAGS=$lt_AR_FLAGS |
| 14397 | |
| 14398 | # A C compiler. |
| 14399 | LTCC=$lt_LTCC |
| 14400 | |
| 14401 | # A language-specific compiler. |
| 14402 | CC=$lt_compiler_F77 |
| 14403 | |
| 14404 | # Is the compiler the GNU C compiler? |
| 14405 | with_gcc=$GCC_F77 |
| 14406 | |
| 14407 | # An ERE matcher. |
| 14408 | EGREP=$lt_EGREP |
| 14409 | |
| 14410 | # The linker used to build libraries. |
| 14411 | LD=$lt_LD_F77 |
| 14412 | |
| 14413 | # Whether we need hard or soft links. |
| 14414 | LN_S=$lt_LN_S |
| 14415 | |
| 14416 | # A BSD-compatible nm program. |
| 14417 | NM=$lt_NM |
| 14418 | |
| 14419 | # A symbol stripping program |
| 14420 | STRIP=$lt_STRIP |
| 14421 | |
| 14422 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14423 | MAGIC_CMD=$MAGIC_CMD |
| 14424 | |
| 14425 | # Used on cygwin: DLL creation program. |
| 14426 | DLLTOOL="$DLLTOOL" |
| 14427 | |
| 14428 | # Used on cygwin: object dumper. |
| 14429 | OBJDUMP="$OBJDUMP" |
| 14430 | |
| 14431 | # Used on cygwin: assembler. |
| 14432 | AS="$AS" |
| 14433 | |
| 14434 | # The name of the directory that contains temporary libtool files. |
| 14435 | objdir=$objdir |
| 14436 | |
| 14437 | # How to create reloadable object files. |
| 14438 | reload_flag=$lt_reload_flag |
| 14439 | reload_cmds=$lt_reload_cmds |
| 14440 | |
| 14441 | # How to pass a linker flag through the compiler. |
| 14442 | wl=$lt_lt_prog_compiler_wl_F77 |
| 14443 | |
| 14444 | # Object file suffix (normally "o"). |
| 14445 | objext="$ac_objext" |
| 14446 | |
| 14447 | # Old archive suffix (normally "a"). |
| 14448 | libext="$libext" |
| 14449 | |
| 14450 | # Shared library suffix (normally ".so"). |
| 14451 | shrext='$shrext' |
| 14452 | |
| 14453 | # Executable file suffix (normally ""). |
| 14454 | exeext="$exeext" |
| 14455 | |
| 14456 | # Additional compiler flags for building library objects. |
| 14457 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 14458 | pic_mode=$pic_mode |
| 14459 | |
| 14460 | # What is the maximum length of a command? |
| 14461 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 14462 | |
| 14463 | # Does compiler simultaneously support -c and -o options? |
| 14464 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 14465 | |
| 14466 | # Must we lock files when doing compilation ? |
| 14467 | need_locks=$lt_need_locks |
| 14468 | |
| 14469 | # Do we need the lib prefix for modules? |
| 14470 | need_lib_prefix=$need_lib_prefix |
| 14471 | |
| 14472 | # Do we need a version for libraries? |
| 14473 | need_version=$need_version |
| 14474 | |
| 14475 | # Whether dlopen is supported. |
| 14476 | dlopen_support=$enable_dlopen |
| 14477 | |
| 14478 | # Whether dlopen of programs is supported. |
| 14479 | dlopen_self=$enable_dlopen_self |
| 14480 | |
| 14481 | # Whether dlopen of statically linked programs is supported. |
| 14482 | dlopen_self_static=$enable_dlopen_self_static |
| 14483 | |
| 14484 | # Compiler flag to prevent dynamic linking. |
| 14485 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 14486 | |
| 14487 | # Compiler flag to turn off builtin functions. |
| 14488 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 14489 | |
| 14490 | # Compiler flag to allow reflexive dlopens. |
| 14491 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 14492 | |
| 14493 | # Compiler flag to generate shared objects directly from archives. |
| 14494 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 14495 | |
| 14496 | # Compiler flag to generate thread-safe objects. |
| 14497 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 14498 | |
| 14499 | # Library versioning type. |
| 14500 | version_type=$version_type |
| 14501 | |
| 14502 | # Format of library name prefix. |
| 14503 | libname_spec=$lt_libname_spec |
| 14504 | |
| 14505 | # List of archive names. First name is the real one, the rest are links. |
| 14506 | # The last name is the one that the linker finds with -lNAME. |
| 14507 | library_names_spec=$lt_library_names_spec |
| 14508 | |
| 14509 | # The coded name of the library, if different from the real name. |
| 14510 | soname_spec=$lt_soname_spec |
| 14511 | |
| 14512 | # Commands used to build and install an old-style archive. |
| 14513 | RANLIB=$lt_RANLIB |
| 14514 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 14515 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14516 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14517 | |
| 14518 | # Create an old-style archive from a shared archive. |
| 14519 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 14520 | |
| 14521 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14522 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 14523 | |
| 14524 | # Commands used to build and install a shared archive. |
| 14525 | archive_cmds=$lt_archive_cmds_F77 |
| 14526 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 14527 | postinstall_cmds=$lt_postinstall_cmds |
| 14528 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14529 | |
| 14530 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14531 | module_cmds=$lt_module_cmds_F77 |
| 14532 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 14533 | |
| 14534 | # Commands to strip libraries. |
| 14535 | old_striplib=$lt_old_striplib |
| 14536 | striplib=$lt_striplib |
| 14537 | |
| 14538 | # Dependencies to place before the objects being linked to create a |
| 14539 | # shared library. |
| 14540 | predep_objects=$lt_predep_objects_F77 |
| 14541 | |
| 14542 | # Dependencies to place after the objects being linked to create a |
| 14543 | # shared library. |
| 14544 | postdep_objects=$lt_postdep_objects_F77 |
| 14545 | |
| 14546 | # Dependencies to place before the objects being linked to create a |
| 14547 | # shared library. |
| 14548 | predeps=$lt_predeps_F77 |
| 14549 | |
| 14550 | # Dependencies to place after the objects being linked to create a |
| 14551 | # shared library. |
| 14552 | postdeps=$lt_postdeps_F77 |
| 14553 | |
| 14554 | # The library search path used internally by the compiler when linking |
| 14555 | # a shared library. |
| 14556 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 14557 | |
| 14558 | # Method to check whether dependent libraries are shared objects. |
| 14559 | deplibs_check_method=$lt_deplibs_check_method |
| 14560 | |
| 14561 | # Command to use when deplibs_check_method == file_magic. |
| 14562 | file_magic_cmd=$lt_file_magic_cmd |
| 14563 | |
| 14564 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14565 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 14566 | |
| 14567 | # Flag that forces no undefined symbols. |
| 14568 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 14569 | |
| 14570 | # Commands used to finish a libtool library installation in a directory. |
| 14571 | finish_cmds=$lt_finish_cmds |
| 14572 | |
| 14573 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14574 | finish_eval=$lt_finish_eval |
| 14575 | |
| 14576 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 14577 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14578 | |
| 14579 | # Transform the output of nm in a proper C declaration |
| 14580 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14581 | |
| 14582 | # Transform the output of nm in a C name address pair |
| 14583 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14584 | |
| 14585 | # This is the shared library runtime path variable. |
| 14586 | runpath_var=$runpath_var |
| 14587 | |
| 14588 | # This is the shared library path variable. |
| 14589 | shlibpath_var=$shlibpath_var |
| 14590 | |
| 14591 | # Is shlibpath searched before the hard-coded library search path? |
| 14592 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14593 | |
| 14594 | # How to hardcode a shared library path into an executable. |
| 14595 | hardcode_action=$hardcode_action_F77 |
| 14596 | |
| 14597 | # Whether we should hardcode library paths into libraries. |
| 14598 | hardcode_into_libs=$hardcode_into_libs |
| 14599 | |
| 14600 | # Flag to hardcode \$libdir into a binary during linking. |
| 14601 | # This must work even if \$libdir does not exist. |
| 14602 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 14603 | |
| 14604 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14605 | # a binary during linking. This must work even if \$libdir does |
| 14606 | # not exist. |
| 14607 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 14608 | |
| 14609 | # Whether we need a single -rpath flag with a separated argument. |
| 14610 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 14611 | |
| 14612 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 14613 | # resulting binary. |
| 14614 | hardcode_direct=$hardcode_direct_F77 |
| 14615 | |
| 14616 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14617 | # resulting binary. |
| 14618 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 14619 | |
| 14620 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14621 | # the resulting binary. |
| 14622 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 14623 | |
| 14624 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14625 | # and all subsequent libraries and executables linked against it. |
| 14626 | hardcode_automatic=$hardcode_automatic_F77 |
| 14627 | |
| 14628 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14629 | # restored at relink time. |
| 14630 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14631 | |
| 14632 | # Whether libtool must link a program against all its dependency libraries. |
| 14633 | link_all_deplibs=$link_all_deplibs_F77 |
| 14634 | |
| 14635 | # Compile-time system search path for libraries |
| 14636 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14637 | |
| 14638 | # Run-time system search path for libraries |
| 14639 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14640 | |
| 14641 | # Fix the shell variable \$srcfile for the compiler. |
| 14642 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 14643 | |
| 14644 | # Set to yes if exported symbols are required. |
| 14645 | always_export_symbols=$always_export_symbols_F77 |
| 14646 | |
| 14647 | # The commands to list exported symbols. |
| 14648 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 14649 | |
| 14650 | # The commands to extract the exported symbol list from a shared archive. |
| 14651 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14652 | |
| 14653 | # Symbols that should not be listed in the preloaded symbols. |
| 14654 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 14655 | |
| 14656 | # Symbols that must always be exported. |
| 14657 | include_expsyms=$lt_include_expsyms_F77 |
| 14658 | |
| 14659 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 14660 | |
| 14661 | __EOF__ |
| 14662 | |
| 14663 | |
| 14664 | else |
| 14665 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14666 | # `config.status --recheck' to rerun these tests and create the |
| 14667 | # libtool script then. |
| 14668 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 14669 | if test -f "$ltmain_in"; then |
| 14670 | test -f Makefile && make "$ltmain" |
| 14671 | fi |
| 14672 | fi |
| 14673 | |
| 14674 | |
| 14675 | ac_ext=c |
| 14676 | ac_cpp='$CPP $CPPFLAGS' |
| 14677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14680 | |
| 14681 | CC="$lt_save_CC" |
| 14682 | |
| 14683 | else |
| 14684 | tagname="" |
| 14685 | fi |
| 14686 | ;; |
| 14687 | |
| 14688 | GCJ) |
| 14689 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 14690 | |
| 14691 | |
| 14692 | |
| 14693 | # Source file extension for Java test sources. |
| 14694 | ac_ext=java |
| 14695 | |
| 14696 | # Object file extension for compiled Java test sources. |
| 14697 | objext=o |
| 14698 | objext_GCJ=$objext |
| 14699 | |
| 14700 | # Code to be used in simple compile tests |
| 14701 | lt_simple_compile_test_code="class foo {}\n" |
| 14702 | |
| 14703 | # Code to be used in simple link tests |
| 14704 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 14705 | |
| 14706 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14707 | |
| 14708 | # If no C compiler was specified, use CC. |
| 14709 | LTCC=${LTCC-"$CC"} |
| 14710 | |
| 14711 | # Allow CC to be a program name with arguments. |
| 14712 | compiler=$CC |
| 14713 | |
| 14714 | |
| 14715 | # Allow CC to be a program name with arguments. |
| 14716 | lt_save_CC="$CC" |
| 14717 | CC=${GCJ-"gcj"} |
| 14718 | compiler=$CC |
| 14719 | compiler_GCJ=$CC |
| 14720 | |
| 14721 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 14722 | archive_cmds_need_lc_GCJ=no |
| 14723 | |
| 14724 | |
| 14725 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 14726 | |
| 14727 | if test "$GCC" = yes; then |
| 14728 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 14729 | |
| 14730 | |
| 14731 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14732 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 14733 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14735 | else |
| 14736 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14737 | ac_outfile=conftest.$ac_objext |
| 14738 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14739 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14740 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14741 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14742 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14743 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14744 | # The option is referenced via a variable to avoid confusing sed. |
| 14745 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14746 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14747 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14748 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 14749 | (eval echo "\"\$as_me:14749: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14750 | (eval "$lt_compile" 2>conftest.err) |
| 14751 | ac_status=$? |
| 14752 | cat conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 14753 | echo "$as_me:14753: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14754 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14755 | # The compiler can only warn and ignore the option if not recognized |
| 14756 | # So say no if there are warnings |
| 14757 | if test ! -s conftest.err; then |
| 14758 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14759 | fi |
| 14760 | fi |
| 14761 | $rm conftest* |
| 14762 | |
| 14763 | fi |
| 14764 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14765 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 14766 | |
| 14767 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14768 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 14769 | else |
| 14770 | : |
| 14771 | fi |
| 14772 | |
| 14773 | fi |
| 14774 | |
| 14775 | lt_prog_compiler_wl_GCJ= |
| 14776 | lt_prog_compiler_pic_GCJ= |
| 14777 | lt_prog_compiler_static_GCJ= |
| 14778 | |
| 14779 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14780 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 14781 | |
| 14782 | if test "$GCC" = yes; then |
| 14783 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14784 | lt_prog_compiler_static_GCJ='-static' |
| 14785 | |
| 14786 | case $host_os in |
| 14787 | aix*) |
| 14788 | # All AIX code is PIC. |
| 14789 | if test "$host_cpu" = ia64; then |
| 14790 | # AIX 5 now supports IA64 processor |
| 14791 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14792 | fi |
| 14793 | ;; |
| 14794 | |
| 14795 | amigaos*) |
| 14796 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14797 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14798 | # like `-m68040'. |
| 14799 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 14800 | ;; |
| 14801 | |
| 14802 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14803 | # PIC is the default for these OSes. |
| 14804 | ;; |
| 14805 | |
| 14806 | mingw* | pw32* | os2*) |
| 14807 | # This hack is so that the source file can tell whether it is being |
| 14808 | # built for inclusion in a dll (and should export symbols for example). |
| 14809 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 14810 | ;; |
| 14811 | |
| 14812 | darwin* | rhapsody*) |
| 14813 | # PIC is the default on this platform |
| 14814 | # Common symbols not allowed in MH_DYLIB files |
| 14815 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 14816 | ;; |
| 14817 | |
| 14818 | msdosdjgpp*) |
| 14819 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14820 | # on systems that don't support them. |
| 14821 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14822 | enable_shared=no |
| 14823 | ;; |
| 14824 | |
| 14825 | sysv4*MP*) |
| 14826 | if test -d /usr/nec; then |
| 14827 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 14828 | fi |
| 14829 | ;; |
| 14830 | |
| 14831 | hpux*) |
| 14832 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14833 | # not for PA HP-UX. |
| 14834 | case "$host_cpu" in |
| 14835 | hppa*64*|ia64*) |
| 14836 | # +Z the default |
| 14837 | ;; |
| 14838 | *) |
| 14839 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 14840 | ;; |
| 14841 | esac |
| 14842 | ;; |
| 14843 | |
| 14844 | *) |
| 14845 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 14846 | ;; |
| 14847 | esac |
| 14848 | else |
| 14849 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14850 | case $host_os in |
| 14851 | aix*) |
| 14852 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14853 | if test "$host_cpu" = ia64; then |
| 14854 | # AIX 5 now supports IA64 processor |
| 14855 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14856 | else |
| 14857 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 14858 | fi |
| 14859 | ;; |
| 14860 | |
| 14861 | mingw* | pw32* | os2*) |
| 14862 | # This hack is so that the source file can tell whether it is being |
| 14863 | # built for inclusion in a dll (and should export symbols for example). |
| 14864 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 14865 | ;; |
| 14866 | |
| 14867 | hpux9* | hpux10* | hpux11*) |
| 14868 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14869 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14870 | # not for PA HP-UX. |
| 14871 | case "$host_cpu" in |
| 14872 | hppa*64*|ia64*) |
| 14873 | # +Z the default |
| 14874 | ;; |
| 14875 | *) |
| 14876 | lt_prog_compiler_pic_GCJ='+Z' |
| 14877 | ;; |
| 14878 | esac |
| 14879 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14880 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 14881 | ;; |
| 14882 | |
| 14883 | irix5* | irix6* | nonstopux*) |
| 14884 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14885 | # PIC (with -KPIC) is the default. |
| 14886 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14887 | ;; |
| 14888 | |
| 14889 | newsos6) |
| 14890 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14891 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14892 | ;; |
| 14893 | |
| 14894 | linux*) |
| 14895 | case $CC in |
| 14896 | icc* | ecc*) |
| 14897 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14898 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14899 | lt_prog_compiler_static_GCJ='-static' |
| 14900 | ;; |
| 14901 | ccc*) |
| 14902 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14903 | # All Alpha code is PIC. |
| 14904 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14905 | ;; |
| 14906 | esac |
| 14907 | ;; |
| 14908 | |
| 14909 | osf3* | osf4* | osf5*) |
| 14910 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14911 | # All OSF/1 code is PIC. |
| 14912 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14913 | ;; |
| 14914 | |
| 14915 | sco3.2v5*) |
| 14916 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 14917 | lt_prog_compiler_static_GCJ='-dn' |
| 14918 | ;; |
| 14919 | |
| 14920 | solaris*) |
| 14921 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14922 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14923 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14924 | ;; |
| 14925 | |
| 14926 | sunos4*) |
| 14927 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 14928 | lt_prog_compiler_pic_GCJ='-PIC' |
| 14929 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14930 | ;; |
| 14931 | |
| 14932 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14933 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14934 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14935 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14936 | ;; |
| 14937 | |
| 14938 | sysv4*MP*) |
| 14939 | if test -d /usr/nec ;then |
| 14940 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 14941 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14942 | fi |
| 14943 | ;; |
| 14944 | |
| 14945 | uts4*) |
| 14946 | lt_prog_compiler_pic_GCJ='-pic' |
| 14947 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14948 | ;; |
| 14949 | |
| 14950 | *) |
| 14951 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14952 | ;; |
| 14953 | esac |
| 14954 | fi |
| 14955 | |
| 14956 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 14957 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 14958 | |
| 14959 | # |
| 14960 | # Check to make sure the PIC flag actually works. |
| 14961 | # |
| 14962 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 14963 | |
| 14964 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 14965 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 14966 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 14967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14968 | else |
| 14969 | lt_prog_compiler_pic_works_GCJ=no |
| 14970 | ac_outfile=conftest.$ac_objext |
| 14971 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14972 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 14973 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14974 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14975 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14976 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14977 | # The option is referenced via a variable to avoid confusing sed. |
| 14978 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14979 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14980 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14981 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 14982 | (eval echo "\"\$as_me:14982: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14983 | (eval "$lt_compile" 2>conftest.err) |
| 14984 | ac_status=$? |
| 14985 | cat conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 14986 | echo "$as_me:14986: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14987 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14988 | # The compiler can only warn and ignore the option if not recognized |
| 14989 | # So say no if there are warnings |
| 14990 | if test ! -s conftest.err; then |
| 14991 | lt_prog_compiler_pic_works_GCJ=yes |
| 14992 | fi |
| 14993 | fi |
| 14994 | $rm conftest* |
| 14995 | |
| 14996 | fi |
| 14997 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 14998 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 14999 | |
| 15000 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 15001 | case $lt_prog_compiler_pic_GCJ in |
| 15002 | "" | " "*) ;; |
| 15003 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 15004 | esac |
| 15005 | else |
| 15006 | lt_prog_compiler_pic_GCJ= |
| 15007 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15008 | fi |
| 15009 | |
| 15010 | fi |
| 15011 | case "$host_os" in |
| 15012 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15013 | *djgpp*) |
| 15014 | lt_prog_compiler_pic_GCJ= |
| 15015 | ;; |
| 15016 | *) |
| 15017 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 15018 | ;; |
| 15019 | esac |
| 15020 | |
| 15021 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15022 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 15023 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 15024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15025 | else |
| 15026 | lt_cv_prog_compiler_c_o_GCJ=no |
| 15027 | $rm -r conftest 2>/dev/null |
| 15028 | mkdir conftest |
| 15029 | cd conftest |
| 15030 | mkdir out |
| 15031 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15032 | |
| 15033 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15034 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15035 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15036 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15037 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15038 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15039 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15040 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15041 | -e 's:$: $lt_compiler_flag:'` |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 15042 | (eval echo "\"\$as_me:15042: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15043 | (eval "$lt_compile" 2>out/conftest.err) |
| 15044 | ac_status=$? |
| 15045 | cat out/conftest.err >&5 |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 15046 | echo "$as_me:15046: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15047 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15048 | then |
| 15049 | # The compiler can only warn and ignore the option if not recognized |
| 15050 | # So say no if there are warnings |
| 15051 | if test ! -s out/conftest.err; then |
| 15052 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 15053 | fi |
| 15054 | fi |
| 15055 | chmod u+w . |
| 15056 | $rm conftest* |
| 15057 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15058 | # template instantiation |
| 15059 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15060 | $rm out/* && rmdir out |
| 15061 | cd .. |
| 15062 | rmdir conftest |
| 15063 | $rm conftest* |
| 15064 | |
| 15065 | fi |
| 15066 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 15067 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 15068 | |
| 15069 | |
| 15070 | hard_links="nottested" |
| 15071 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 15072 | # do not overwrite the value of need_locks provided by the user |
| 15073 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15074 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 15075 | hard_links=yes |
| 15076 | $rm conftest* |
| 15077 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15078 | touch conftest.a |
| 15079 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15080 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15081 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15082 | echo "${ECHO_T}$hard_links" >&6 |
| 15083 | if test "$hard_links" = no; then |
| 15084 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15085 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15086 | need_locks=warn |
| 15087 | fi |
| 15088 | else |
| 15089 | need_locks=no |
| 15090 | fi |
| 15091 | |
| 15092 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15093 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15094 | |
| 15095 | runpath_var= |
| 15096 | allow_undefined_flag_GCJ= |
| 15097 | enable_shared_with_static_runtimes_GCJ=no |
| 15098 | archive_cmds_GCJ= |
| 15099 | archive_expsym_cmds_GCJ= |
| 15100 | old_archive_From_new_cmds_GCJ= |
| 15101 | old_archive_from_expsyms_cmds_GCJ= |
| 15102 | export_dynamic_flag_spec_GCJ= |
| 15103 | whole_archive_flag_spec_GCJ= |
| 15104 | thread_safe_flag_spec_GCJ= |
| 15105 | hardcode_libdir_flag_spec_GCJ= |
| 15106 | hardcode_libdir_flag_spec_ld_GCJ= |
| 15107 | hardcode_libdir_separator_GCJ= |
| 15108 | hardcode_direct_GCJ=no |
| 15109 | hardcode_minus_L_GCJ=no |
| 15110 | hardcode_shlibpath_var_GCJ=unsupported |
| 15111 | link_all_deplibs_GCJ=unknown |
| 15112 | hardcode_automatic_GCJ=no |
| 15113 | module_cmds_GCJ= |
| 15114 | module_expsym_cmds_GCJ= |
| 15115 | always_export_symbols_GCJ=no |
| 15116 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15117 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15118 | # included in the symbol list |
| 15119 | include_expsyms_GCJ= |
| 15120 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15121 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15122 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15123 | # as well as any symbol that contains `d'. |
| 15124 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 15125 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15126 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15127 | # the symbol is explicitly referenced. Since portable code cannot |
| 15128 | # rely on this symbol name, it's probably fine to never include it in |
| 15129 | # preloaded symbol tables. |
| 15130 | extract_expsyms_cmds= |
| 15131 | |
| 15132 | case $host_os in |
| 15133 | cygwin* | mingw* | pw32*) |
| 15134 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15135 | # When not using gcc, we currently assume that we are using |
| 15136 | # Microsoft Visual C++. |
| 15137 | if test "$GCC" != yes; then |
| 15138 | with_gnu_ld=no |
| 15139 | fi |
| 15140 | ;; |
| 15141 | openbsd*) |
| 15142 | with_gnu_ld=no |
| 15143 | ;; |
| 15144 | esac |
| 15145 | |
| 15146 | ld_shlibs_GCJ=yes |
| 15147 | if test "$with_gnu_ld" = yes; then |
| 15148 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15149 | wlarc='${wl}' |
| 15150 | |
| 15151 | # See if GNU ld supports shared libraries. |
| 15152 | case $host_os in |
| 15153 | aix3* | aix4* | aix5*) |
| 15154 | # On AIX/PPC, the GNU linker is very broken |
| 15155 | if test "$host_cpu" != ia64; then |
| 15156 | ld_shlibs_GCJ=no |
| 15157 | cat <<EOF 1>&2 |
| 15158 | |
| 15159 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15160 | *** to be unable to reliably create shared libraries on AIX. |
| 15161 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15162 | *** really care for shared libraries, you may want to modify your PATH |
| 15163 | *** so that a non-GNU linker is found, and then restart. |
| 15164 | |
| 15165 | EOF |
| 15166 | fi |
| 15167 | ;; |
| 15168 | |
| 15169 | amigaos*) |
| 15170 | 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)' |
| 15171 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15172 | hardcode_minus_L_GCJ=yes |
| 15173 | |
| 15174 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15175 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15176 | # to version 4, is to share data among multiple programs linked |
| 15177 | # with the same dynamic library. Since this doesn't match the |
| 15178 | # behavior of shared libraries on other platforms, we can't use |
| 15179 | # them. |
| 15180 | ld_shlibs_GCJ=no |
| 15181 | ;; |
| 15182 | |
| 15183 | beos*) |
| 15184 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15185 | allow_undefined_flag_GCJ=unsupported |
| 15186 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15187 | # support --undefined. This deserves some investigation. FIXME |
| 15188 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15189 | else |
| 15190 | ld_shlibs_GCJ=no |
| 15191 | fi |
| 15192 | ;; |
| 15193 | |
| 15194 | cygwin* | mingw* | pw32*) |
| 15195 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 15196 | # as there is no search path for DLLs. |
| 15197 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15198 | allow_undefined_flag_GCJ=unsupported |
| 15199 | always_export_symbols_GCJ=no |
| 15200 | enable_shared_with_static_runtimes_GCJ=yes |
| 15201 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15202 | |
| 15203 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15204 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15205 | # If the export-symbols file already is a .def file (1st line |
| 15206 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15207 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15208 | cp $export_symbols $output_objdir/$soname.def; |
| 15209 | else |
| 15210 | echo EXPORTS > $output_objdir/$soname.def; |
| 15211 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15212 | fi~ |
| 15213 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15214 | else |
| 15215 | ld_shlibs=no |
| 15216 | fi |
| 15217 | ;; |
| 15218 | |
| 15219 | netbsd* | knetbsd*-gnu) |
| 15220 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15221 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15222 | wlarc= |
| 15223 | else |
| 15224 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15225 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15226 | fi |
| 15227 | ;; |
| 15228 | |
| 15229 | solaris* | sysv5*) |
| 15230 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15231 | ld_shlibs_GCJ=no |
| 15232 | cat <<EOF 1>&2 |
| 15233 | |
| 15234 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15235 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15236 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15237 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15238 | *** your PATH or compiler configuration so that the native linker is |
| 15239 | *** used, and then restart. |
| 15240 | |
| 15241 | EOF |
| 15242 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15243 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15244 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15245 | else |
| 15246 | ld_shlibs_GCJ=no |
| 15247 | fi |
| 15248 | ;; |
| 15249 | |
| 15250 | sunos4*) |
| 15251 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15252 | wlarc= |
| 15253 | hardcode_direct_GCJ=yes |
| 15254 | hardcode_shlibpath_var_GCJ=no |
| 15255 | ;; |
| 15256 | |
| 15257 | linux*) |
| 15258 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 15259 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15260 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 15261 | supports_anon_versioning=no |
| 15262 | case `$LD -v 2>/dev/null` in |
| 15263 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15264 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15265 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15266 | *\ 2.11.*) ;; # other 2.11 versions |
| 15267 | *) supports_anon_versioning=yes ;; |
| 15268 | esac |
| 15269 | if test $supports_anon_versioning = yes; then |
| 15270 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15271 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15272 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15273 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15274 | else |
| 15275 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 15276 | fi |
| 15277 | else |
| 15278 | ld_shlibs_GCJ=no |
| 15279 | fi |
| 15280 | ;; |
| 15281 | |
| 15282 | *) |
| 15283 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15284 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15285 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15286 | else |
| 15287 | ld_shlibs_GCJ=no |
| 15288 | fi |
| 15289 | ;; |
| 15290 | esac |
| 15291 | |
| 15292 | if test "$ld_shlibs_GCJ" = yes; then |
| 15293 | runpath_var=LD_RUN_PATH |
| 15294 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 15295 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 15296 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15297 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15298 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15299 | else |
| 15300 | whole_archive_flag_spec_GCJ= |
| 15301 | fi |
| 15302 | fi |
| 15303 | else |
| 15304 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15305 | case $host_os in |
| 15306 | aix3*) |
| 15307 | allow_undefined_flag_GCJ=unsupported |
| 15308 | always_export_symbols_GCJ=yes |
| 15309 | 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' |
| 15310 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15311 | # are no directories specified by -L. |
| 15312 | hardcode_minus_L_GCJ=yes |
| 15313 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 15314 | # Neither direct hardcoding nor static linking is supported with a |
| 15315 | # broken collect2. |
| 15316 | hardcode_direct_GCJ=unsupported |
| 15317 | fi |
| 15318 | ;; |
| 15319 | |
| 15320 | aix4* | aix5*) |
| 15321 | if test "$host_cpu" = ia64; then |
| 15322 | # On IA64, the linker does run time linking by default, so we don't |
| 15323 | # have to do anything special. |
| 15324 | aix_use_runtimelinking=no |
| 15325 | exp_sym_flag='-Bexport' |
| 15326 | no_entry_flag="" |
| 15327 | else |
| 15328 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15329 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15330 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15331 | 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' |
| 15332 | else |
| 15333 | 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' |
| 15334 | fi |
| 15335 | aix_use_runtimelinking=no |
| 15336 | |
| 15337 | # Test if we are trying to use run time linking or normal |
| 15338 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15339 | # need to do runtime linking. |
| 15340 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15341 | for ld_flag in $LDFLAGS; do |
| 15342 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15343 | aix_use_runtimelinking=yes |
| 15344 | break |
| 15345 | fi |
| 15346 | done |
| 15347 | esac |
| 15348 | |
| 15349 | exp_sym_flag='-bexport' |
| 15350 | no_entry_flag='-bnoentry' |
| 15351 | fi |
| 15352 | |
| 15353 | # When large executables or shared objects are built, AIX ld can |
| 15354 | # have problems creating the table of contents. If linking a library |
| 15355 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15356 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15357 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15358 | |
| 15359 | archive_cmds_GCJ='' |
| 15360 | hardcode_direct_GCJ=yes |
| 15361 | hardcode_libdir_separator_GCJ=':' |
| 15362 | link_all_deplibs_GCJ=yes |
| 15363 | |
| 15364 | if test "$GCC" = yes; then |
| 15365 | case $host_os in aix4.012|aix4.012.*) |
| 15366 | # We only want to do this on AIX 4.2 and lower, the check |
| 15367 | # below for broken collect2 doesn't work under 4.3+ |
| 15368 | collect2name=`${CC} -print-prog-name=collect2` |
| 15369 | if test -f "$collect2name" && \ |
| 15370 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15371 | then |
| 15372 | # We have reworked collect2 |
| 15373 | hardcode_direct_GCJ=yes |
| 15374 | else |
| 15375 | # We have old collect2 |
| 15376 | hardcode_direct_GCJ=unsupported |
| 15377 | # It fails to find uninstalled libraries when the uninstalled |
| 15378 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15379 | # to unsupported forces relinking |
| 15380 | hardcode_minus_L_GCJ=yes |
| 15381 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15382 | hardcode_libdir_separator_GCJ= |
| 15383 | fi |
| 15384 | esac |
| 15385 | shared_flag='-shared' |
| 15386 | else |
| 15387 | # not using gcc |
| 15388 | if test "$host_cpu" = ia64; then |
| 15389 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15390 | # chokes on -Wl,-G. The following line is correct: |
| 15391 | shared_flag='-G' |
| 15392 | else |
| 15393 | if test "$aix_use_runtimelinking" = yes; then |
| 15394 | shared_flag='${wl}-G' |
| 15395 | else |
| 15396 | shared_flag='${wl}-bM:SRE' |
| 15397 | fi |
| 15398 | fi |
| 15399 | fi |
| 15400 | |
| 15401 | # It seems that -bexpall does not export symbols beginning with |
| 15402 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15403 | always_export_symbols_GCJ=yes |
| 15404 | if test "$aix_use_runtimelinking" = yes; then |
| 15405 | # Warning - without using the other runtime loading flags (-brtl), |
| 15406 | # -berok will link without error, but may produce a broken library. |
| 15407 | allow_undefined_flag_GCJ='-berok' |
| 15408 | # Determine the default libpath from the value encoded in an empty executable. |
| 15409 | cat >conftest.$ac_ext <<_ACEOF |
| 15410 | /* confdefs.h. */ |
| 15411 | _ACEOF |
| 15412 | cat confdefs.h >>conftest.$ac_ext |
| 15413 | cat >>conftest.$ac_ext <<_ACEOF |
| 15414 | /* end confdefs.h. */ |
| 15415 | |
| 15416 | int |
| 15417 | main () |
| 15418 | { |
| 15419 | |
| 15420 | ; |
| 15421 | return 0; |
| 15422 | } |
| 15423 | _ACEOF |
| 15424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15426 | (eval $ac_link) 2>conftest.er1 |
| 15427 | ac_status=$? |
| 15428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15429 | rm -f conftest.er1 |
| 15430 | cat conftest.err >&5 |
| 15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15432 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 15433 | { ac_try='test -z "$ac_c_werror_flag" |
| 15434 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15436 | (eval $ac_try) 2>&5 |
| 15437 | ac_status=$? |
| 15438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15439 | (exit $ac_status); }; } && |
| 15440 | { ac_try='test -s conftest$ac_exeext' |
| 15441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15442 | (eval $ac_try) 2>&5 |
| 15443 | ac_status=$? |
| 15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15445 | (exit $ac_status); }; }; then |
| 15446 | |
| 15447 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15448 | }'` |
| 15449 | # Check for a 64-bit object if we didn't find anything. |
| 15450 | 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; } |
| 15451 | }'`; fi |
| 15452 | else |
| 15453 | echo "$as_me: failed program was:" >&5 |
| 15454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15455 | |
| 15456 | fi |
| 15457 | rm -f conftest.err conftest.$ac_objext \ |
| 15458 | conftest$ac_exeext conftest.$ac_ext |
| 15459 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15460 | |
| 15461 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15462 | 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" |
| 15463 | else |
| 15464 | if test "$host_cpu" = ia64; then |
| 15465 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 15466 | allow_undefined_flag_GCJ="-z nodefs" |
| 15467 | 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" |
| 15468 | else |
| 15469 | # Determine the default libpath from the value encoded in an empty executable. |
| 15470 | cat >conftest.$ac_ext <<_ACEOF |
| 15471 | /* confdefs.h. */ |
| 15472 | _ACEOF |
| 15473 | cat confdefs.h >>conftest.$ac_ext |
| 15474 | cat >>conftest.$ac_ext <<_ACEOF |
| 15475 | /* end confdefs.h. */ |
| 15476 | |
| 15477 | int |
| 15478 | main () |
| 15479 | { |
| 15480 | |
| 15481 | ; |
| 15482 | return 0; |
| 15483 | } |
| 15484 | _ACEOF |
| 15485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15487 | (eval $ac_link) 2>conftest.er1 |
| 15488 | ac_status=$? |
| 15489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15490 | rm -f conftest.er1 |
| 15491 | cat conftest.err >&5 |
| 15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15493 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 15494 | { ac_try='test -z "$ac_c_werror_flag" |
| 15495 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15497 | (eval $ac_try) 2>&5 |
| 15498 | ac_status=$? |
| 15499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15500 | (exit $ac_status); }; } && |
| 15501 | { ac_try='test -s conftest$ac_exeext' |
| 15502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15503 | (eval $ac_try) 2>&5 |
| 15504 | ac_status=$? |
| 15505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15506 | (exit $ac_status); }; }; then |
| 15507 | |
| 15508 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15509 | }'` |
| 15510 | # Check for a 64-bit object if we didn't find anything. |
| 15511 | 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; } |
| 15512 | }'`; fi |
| 15513 | else |
| 15514 | echo "$as_me: failed program was:" >&5 |
| 15515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15516 | |
| 15517 | fi |
| 15518 | rm -f conftest.err conftest.$ac_objext \ |
| 15519 | conftest$ac_exeext conftest.$ac_ext |
| 15520 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15521 | |
| 15522 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15523 | # Warning - without using the other run time loading flags, |
| 15524 | # -berok will link without error, but may produce a broken library. |
| 15525 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 15526 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 15527 | # -bexpall does not export symbols beginning with underscore (_) |
| 15528 | always_export_symbols_GCJ=yes |
| 15529 | # Exported symbols can be pulled into shared objects from archives |
| 15530 | whole_archive_flag_spec_GCJ=' ' |
| 15531 | archive_cmds_need_lc_GCJ=yes |
| 15532 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 15533 | 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' |
| 15534 | fi |
| 15535 | fi |
| 15536 | ;; |
| 15537 | |
| 15538 | amigaos*) |
| 15539 | 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)' |
| 15540 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15541 | hardcode_minus_L_GCJ=yes |
| 15542 | # see comment about different semantics on the GNU ld section |
| 15543 | ld_shlibs_GCJ=no |
| 15544 | ;; |
| 15545 | |
| 15546 | bsdi4*) |
| 15547 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 15548 | ;; |
| 15549 | |
| 15550 | cygwin* | mingw* | pw32*) |
| 15551 | # When not using gcc, we currently assume that we are using |
| 15552 | # Microsoft Visual C++. |
| 15553 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15554 | # no search path for DLLs. |
| 15555 | hardcode_libdir_flag_spec_GCJ=' ' |
| 15556 | allow_undefined_flag_GCJ=unsupported |
| 15557 | # Tell ltmain to make .lib files, not .a files. |
| 15558 | libext=lib |
| 15559 | # Tell ltmain to make .dll files, not .so files. |
| 15560 | shrext=".dll" |
| 15561 | # FIXME: Setting linknames here is a bad hack. |
| 15562 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15563 | # The linker will automatically build a .lib file if we build a DLL. |
| 15564 | old_archive_From_new_cmds_GCJ='true' |
| 15565 | # FIXME: Should let the user specify the lib program. |
| 15566 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15567 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15568 | enable_shared_with_static_runtimes_GCJ=yes |
| 15569 | ;; |
| 15570 | |
| 15571 | darwin* | rhapsody*) |
| 15572 | if test "$GXX" = yes ; then |
| 15573 | archive_cmds_need_lc_GCJ=no |
| 15574 | case "$host_os" in |
| 15575 | rhapsody* | darwin1.[012]) |
| 15576 | allow_undefined_flag_GCJ='-undefined suppress' |
| 15577 | ;; |
| 15578 | *) # Darwin 1.3 on |
| 15579 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15580 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 15581 | else |
| 15582 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15583 | 10.[012]) |
| 15584 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 15585 | ;; |
| 15586 | 10.*) |
| 15587 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
| 15588 | ;; |
| 15589 | esac |
| 15590 | fi |
| 15591 | ;; |
| 15592 | esac |
| 15593 | lt_int_apple_cc_single_mod=no |
| 15594 | output_verbose_link_cmd='echo' |
| 15595 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 15596 | lt_int_apple_cc_single_mod=yes |
| 15597 | fi |
| 15598 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15599 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15600 | else |
| 15601 | 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' |
| 15602 | fi |
| 15603 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15604 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15605 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15606 | 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}' |
| 15607 | else |
| 15608 | 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}' |
| 15609 | fi |
| 15610 | 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}' |
| 15611 | hardcode_direct_GCJ=no |
| 15612 | hardcode_automatic_GCJ=yes |
| 15613 | hardcode_shlibpath_var_GCJ=unsupported |
| 15614 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 15615 | link_all_deplibs_GCJ=yes |
| 15616 | else |
| 15617 | ld_shlibs_GCJ=no |
| 15618 | fi |
| 15619 | ;; |
| 15620 | |
| 15621 | dgux*) |
| 15622 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15623 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15624 | hardcode_shlibpath_var_GCJ=no |
| 15625 | ;; |
| 15626 | |
| 15627 | freebsd1*) |
| 15628 | ld_shlibs_GCJ=no |
| 15629 | ;; |
| 15630 | |
| 15631 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15632 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15633 | # does not break anything, and helps significantly (at the cost of a little |
| 15634 | # extra space). |
| 15635 | freebsd2.2*) |
| 15636 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15637 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15638 | hardcode_direct_GCJ=yes |
| 15639 | hardcode_shlibpath_var_GCJ=no |
| 15640 | ;; |
| 15641 | |
| 15642 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15643 | freebsd2*) |
| 15644 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15645 | hardcode_direct_GCJ=yes |
| 15646 | hardcode_minus_L_GCJ=yes |
| 15647 | hardcode_shlibpath_var_GCJ=no |
| 15648 | ;; |
| 15649 | |
| 15650 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15651 | freebsd* | kfreebsd*-gnu) |
| 15652 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15653 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15654 | hardcode_direct_GCJ=yes |
| 15655 | hardcode_shlibpath_var_GCJ=no |
| 15656 | ;; |
| 15657 | |
| 15658 | hpux9*) |
| 15659 | if test "$GCC" = yes; then |
| 15660 | 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' |
| 15661 | else |
| 15662 | 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' |
| 15663 | fi |
| 15664 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15665 | hardcode_libdir_separator_GCJ=: |
| 15666 | hardcode_direct_GCJ=yes |
| 15667 | |
| 15668 | # hardcode_minus_L: Not really in the search PATH, |
| 15669 | # but as the default location of the library. |
| 15670 | hardcode_minus_L_GCJ=yes |
| 15671 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15672 | ;; |
| 15673 | |
| 15674 | hpux10* | hpux11*) |
| 15675 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15676 | case "$host_cpu" in |
| 15677 | hppa*64*|ia64*) |
| 15678 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15679 | ;; |
| 15680 | *) |
| 15681 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15682 | ;; |
| 15683 | esac |
| 15684 | else |
| 15685 | case "$host_cpu" in |
| 15686 | hppa*64*|ia64*) |
| 15687 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15688 | ;; |
| 15689 | *) |
| 15690 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15691 | ;; |
| 15692 | esac |
| 15693 | fi |
| 15694 | if test "$with_gnu_ld" = no; then |
| 15695 | case "$host_cpu" in |
| 15696 | hppa*64*) |
| 15697 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15698 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 15699 | hardcode_libdir_separator_GCJ=: |
| 15700 | hardcode_direct_GCJ=no |
| 15701 | hardcode_shlibpath_var_GCJ=no |
| 15702 | ;; |
| 15703 | ia64*) |
| 15704 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15705 | hardcode_direct_GCJ=no |
| 15706 | hardcode_shlibpath_var_GCJ=no |
| 15707 | |
| 15708 | # hardcode_minus_L: Not really in the search PATH, |
| 15709 | # but as the default location of the library. |
| 15710 | hardcode_minus_L_GCJ=yes |
| 15711 | ;; |
| 15712 | *) |
| 15713 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15714 | hardcode_libdir_separator_GCJ=: |
| 15715 | hardcode_direct_GCJ=yes |
| 15716 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15717 | |
| 15718 | # hardcode_minus_L: Not really in the search PATH, |
| 15719 | # but as the default location of the library. |
| 15720 | hardcode_minus_L_GCJ=yes |
| 15721 | ;; |
| 15722 | esac |
| 15723 | fi |
| 15724 | ;; |
| 15725 | |
| 15726 | irix5* | irix6* | nonstopux*) |
| 15727 | if test "$GCC" = yes; then |
| 15728 | 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' |
| 15729 | else |
| 15730 | 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' |
| 15731 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 15732 | fi |
| 15733 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15734 | hardcode_libdir_separator_GCJ=: |
| 15735 | link_all_deplibs_GCJ=yes |
| 15736 | ;; |
| 15737 | |
| 15738 | netbsd* | knetbsd*-gnu) |
| 15739 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15740 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15741 | else |
| 15742 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15743 | fi |
| 15744 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15745 | hardcode_direct_GCJ=yes |
| 15746 | hardcode_shlibpath_var_GCJ=no |
| 15747 | ;; |
| 15748 | |
| 15749 | newsos6) |
| 15750 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15751 | hardcode_direct_GCJ=yes |
| 15752 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15753 | hardcode_libdir_separator_GCJ=: |
| 15754 | hardcode_shlibpath_var_GCJ=no |
| 15755 | ;; |
| 15756 | |
| 15757 | openbsd*) |
| 15758 | hardcode_direct_GCJ=yes |
| 15759 | hardcode_shlibpath_var_GCJ=no |
| 15760 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15761 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15762 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15763 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15764 | else |
| 15765 | case $host_os in |
| 15766 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15767 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15768 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15769 | ;; |
| 15770 | *) |
| 15771 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15772 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15773 | ;; |
| 15774 | esac |
| 15775 | fi |
| 15776 | ;; |
| 15777 | |
| 15778 | os2*) |
| 15779 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15780 | hardcode_minus_L_GCJ=yes |
| 15781 | allow_undefined_flag_GCJ=unsupported |
| 15782 | 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' |
| 15783 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15784 | ;; |
| 15785 | |
| 15786 | osf3*) |
| 15787 | if test "$GCC" = yes; then |
| 15788 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 15789 | 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' |
| 15790 | else |
| 15791 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 15792 | 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' |
| 15793 | fi |
| 15794 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15795 | hardcode_libdir_separator_GCJ=: |
| 15796 | ;; |
| 15797 | |
| 15798 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15799 | if test "$GCC" = yes; then |
| 15800 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 15801 | 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' |
| 15802 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15803 | else |
| 15804 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 15805 | 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' |
| 15806 | 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~ |
| 15807 | $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' |
| 15808 | |
| 15809 | # Both c and cxx compiler support -rpath directly |
| 15810 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 15811 | fi |
| 15812 | hardcode_libdir_separator_GCJ=: |
| 15813 | ;; |
| 15814 | |
| 15815 | sco3.2v5*) |
| 15816 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15817 | hardcode_shlibpath_var_GCJ=no |
| 15818 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 15819 | runpath_var=LD_RUN_PATH |
| 15820 | hardcode_runpath_var=yes |
| 15821 | ;; |
| 15822 | |
| 15823 | solaris*) |
| 15824 | no_undefined_flag_GCJ=' -z text' |
| 15825 | if test "$GCC" = yes; then |
| 15826 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15827 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15828 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15829 | else |
| 15830 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15831 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15832 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15833 | fi |
| 15834 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15835 | hardcode_shlibpath_var_GCJ=no |
| 15836 | case $host_os in |
| 15837 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15838 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15839 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 15840 | esac |
| 15841 | link_all_deplibs_GCJ=yes |
| 15842 | ;; |
| 15843 | |
| 15844 | sunos4*) |
| 15845 | if test "x$host_vendor" = xsequent; then |
| 15846 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15847 | # files that make .init and .fini sections work. |
| 15848 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15849 | else |
| 15850 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15851 | fi |
| 15852 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15853 | hardcode_direct_GCJ=yes |
| 15854 | hardcode_minus_L_GCJ=yes |
| 15855 | hardcode_shlibpath_var_GCJ=no |
| 15856 | ;; |
| 15857 | |
| 15858 | sysv4) |
| 15859 | case $host_vendor in |
| 15860 | sni) |
| 15861 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15862 | hardcode_direct_GCJ=yes # is this really true??? |
| 15863 | ;; |
| 15864 | siemens) |
| 15865 | ## LD is ld it makes a PLAMLIB |
| 15866 | ## CC just makes a GrossModule. |
| 15867 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15868 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 15869 | hardcode_direct_GCJ=no |
| 15870 | ;; |
| 15871 | motorola) |
| 15872 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15873 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 15874 | ;; |
| 15875 | esac |
| 15876 | runpath_var='LD_RUN_PATH' |
| 15877 | hardcode_shlibpath_var_GCJ=no |
| 15878 | ;; |
| 15879 | |
| 15880 | sysv4.3*) |
| 15881 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15882 | hardcode_shlibpath_var_GCJ=no |
| 15883 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 15884 | ;; |
| 15885 | |
| 15886 | sysv4*MP*) |
| 15887 | if test -d /usr/nec; then |
| 15888 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15889 | hardcode_shlibpath_var_GCJ=no |
| 15890 | runpath_var=LD_RUN_PATH |
| 15891 | hardcode_runpath_var=yes |
| 15892 | ld_shlibs_GCJ=yes |
| 15893 | fi |
| 15894 | ;; |
| 15895 | |
| 15896 | sysv4.2uw2*) |
| 15897 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15898 | hardcode_direct_GCJ=yes |
| 15899 | hardcode_minus_L_GCJ=no |
| 15900 | hardcode_shlibpath_var_GCJ=no |
| 15901 | hardcode_runpath_var=yes |
| 15902 | runpath_var=LD_RUN_PATH |
| 15903 | ;; |
| 15904 | |
| 15905 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 15906 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 15907 | if test "$GCC" = yes; then |
| 15908 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15909 | else |
| 15910 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15911 | fi |
| 15912 | runpath_var='LD_RUN_PATH' |
| 15913 | hardcode_shlibpath_var_GCJ=no |
| 15914 | ;; |
| 15915 | |
| 15916 | sysv5*) |
| 15917 | no_undefined_flag_GCJ=' -z text' |
| 15918 | # $CC -shared without GNU ld will not create a library from C++ |
| 15919 | # object files and a static libstdc++, better avoid it by now |
| 15920 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15921 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15922 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15923 | hardcode_libdir_flag_spec_GCJ= |
| 15924 | hardcode_shlibpath_var_GCJ=no |
| 15925 | runpath_var='LD_RUN_PATH' |
| 15926 | ;; |
| 15927 | |
| 15928 | uts4*) |
| 15929 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15930 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15931 | hardcode_shlibpath_var_GCJ=no |
| 15932 | ;; |
| 15933 | |
| 15934 | *) |
| 15935 | ld_shlibs_GCJ=no |
| 15936 | ;; |
| 15937 | esac |
| 15938 | fi |
| 15939 | |
| 15940 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 15941 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 15942 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 15943 | |
| 15944 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15945 | if test "$GCC" = yes; then |
| 15946 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15947 | fi |
| 15948 | |
| 15949 | # |
| 15950 | # Do we need to explicitly link libc? |
| 15951 | # |
| 15952 | case "x$archive_cmds_need_lc_GCJ" in |
| 15953 | x|xyes) |
| 15954 | # Assume -lc should be added |
| 15955 | archive_cmds_need_lc_GCJ=yes |
| 15956 | |
| 15957 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15958 | case $archive_cmds_GCJ in |
| 15959 | *'~'*) |
| 15960 | # FIXME: we may have to deal with multi-command sequences. |
| 15961 | ;; |
| 15962 | '$CC '*) |
| 15963 | # Test whether the compiler implicitly links with -lc since on some |
| 15964 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15965 | # to ld, don't add -lc before -lgcc. |
| 15966 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15967 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 15968 | $rm conftest* |
| 15969 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15970 | |
| 15971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15972 | (eval $ac_compile) 2>&5 |
| 15973 | ac_status=$? |
| 15974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15975 | (exit $ac_status); } 2>conftest.err; then |
| 15976 | soname=conftest |
| 15977 | lib=conftest |
| 15978 | libobjs=conftest.$ac_objext |
| 15979 | deplibs= |
| 15980 | wl=$lt_prog_compiler_wl_GCJ |
| 15981 | compiler_flags=-v |
| 15982 | linker_flags=-v |
| 15983 | verstring= |
| 15984 | output_objdir=. |
| 15985 | libname=conftest |
| 15986 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 15987 | allow_undefined_flag_GCJ= |
| 15988 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15989 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15990 | ac_status=$? |
| 15991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15992 | (exit $ac_status); } |
| 15993 | then |
| 15994 | archive_cmds_need_lc_GCJ=no |
| 15995 | else |
| 15996 | archive_cmds_need_lc_GCJ=yes |
| 15997 | fi |
| 15998 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 15999 | else |
| 16000 | cat conftest.err 1>&5 |
| 16001 | fi |
| 16002 | $rm conftest* |
| 16003 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 16004 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 16005 | ;; |
| 16006 | esac |
| 16007 | fi |
| 16008 | ;; |
| 16009 | esac |
| 16010 | |
| 16011 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16012 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16013 | library_names_spec= |
| 16014 | libname_spec='lib$name' |
| 16015 | soname_spec= |
| 16016 | shrext=".so" |
| 16017 | postinstall_cmds= |
| 16018 | postuninstall_cmds= |
| 16019 | finish_cmds= |
| 16020 | finish_eval= |
| 16021 | shlibpath_var= |
| 16022 | shlibpath_overrides_runpath=unknown |
| 16023 | version_type=none |
| 16024 | dynamic_linker="$host_os ld.so" |
| 16025 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16026 | if test "$GCC" = yes; then |
| 16027 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16028 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16029 | # if the path contains ";" then we assume it to be the separator |
| 16030 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16031 | # assumed that no part of a normal pathname contains ";" but that should |
| 16032 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16033 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16034 | else |
| 16035 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16036 | fi |
| 16037 | else |
| 16038 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16039 | fi |
| 16040 | need_lib_prefix=unknown |
| 16041 | hardcode_into_libs=no |
| 16042 | |
| 16043 | # when you set need_version to no, make sure it does not cause -set_version |
| 16044 | # flags to be left without arguments |
| 16045 | need_version=unknown |
| 16046 | |
| 16047 | case $host_os in |
| 16048 | aix3*) |
| 16049 | version_type=linux |
| 16050 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16051 | shlibpath_var=LIBPATH |
| 16052 | |
| 16053 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16054 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16055 | ;; |
| 16056 | |
| 16057 | aix4* | aix5*) |
| 16058 | version_type=linux |
| 16059 | need_lib_prefix=no |
| 16060 | need_version=no |
| 16061 | hardcode_into_libs=yes |
| 16062 | if test "$host_cpu" = ia64; then |
| 16063 | # AIX 5 supports IA64 |
| 16064 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16065 | shlibpath_var=LD_LIBRARY_PATH |
| 16066 | else |
| 16067 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16068 | # for dependence libraries. The import file would start with |
| 16069 | # the line `#! .'. This would cause the generated library to |
| 16070 | # depend on `.', always an invalid library. This was fixed in |
| 16071 | # development snapshots of GCC prior to 3.0. |
| 16072 | case $host_os in |
| 16073 | aix4 | aix4.[01] | aix4.[01].*) |
| 16074 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16075 | echo ' yes ' |
| 16076 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16077 | : |
| 16078 | else |
| 16079 | can_build_shared=no |
| 16080 | fi |
| 16081 | ;; |
| 16082 | esac |
| 16083 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16084 | # soname into executable. Probably we can add versioning support to |
| 16085 | # collect2, so additional links can be useful in future. |
| 16086 | if test "$aix_use_runtimelinking" = yes; then |
| 16087 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16088 | # instead of lib<name>.a to let people know that these are not |
| 16089 | # typical AIX shared libraries. |
| 16090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16091 | else |
| 16092 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16093 | # and later when we are not doing run time linking. |
| 16094 | library_names_spec='${libname}${release}.a $libname.a' |
| 16095 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16096 | fi |
| 16097 | shlibpath_var=LIBPATH |
| 16098 | fi |
| 16099 | ;; |
| 16100 | |
| 16101 | amigaos*) |
| 16102 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16103 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16104 | 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' |
| 16105 | ;; |
| 16106 | |
| 16107 | beos*) |
| 16108 | library_names_spec='${libname}${shared_ext}' |
| 16109 | dynamic_linker="$host_os ld.so" |
| 16110 | shlibpath_var=LIBRARY_PATH |
| 16111 | ;; |
| 16112 | |
| 16113 | bsdi4*) |
| 16114 | version_type=linux |
| 16115 | need_version=no |
| 16116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16117 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16118 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16119 | shlibpath_var=LD_LIBRARY_PATH |
| 16120 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16121 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16122 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16123 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16124 | # libtool to hard-code these into programs |
| 16125 | ;; |
| 16126 | |
| 16127 | cygwin* | mingw* | pw32*) |
| 16128 | version_type=windows |
| 16129 | shrext=".dll" |
| 16130 | need_version=no |
| 16131 | need_lib_prefix=no |
| 16132 | |
| 16133 | case $GCC,$host_os in |
| 16134 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16135 | library_names_spec='$libname.dll.a' |
| 16136 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16137 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16138 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16139 | dldir=$destdir/`dirname \$dlpath`~ |
| 16140 | test -d \$dldir || mkdir -p \$dldir~ |
| 16141 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16142 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16143 | dlpath=$dir/\$dldll~ |
| 16144 | $rm \$dlpath' |
| 16145 | shlibpath_overrides_runpath=yes |
| 16146 | |
| 16147 | case $host_os in |
| 16148 | cygwin*) |
| 16149 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16150 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16151 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 16152 | ;; |
| 16153 | mingw*) |
| 16154 | # MinGW DLLs use traditional 'lib' prefix |
| 16155 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16156 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16157 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16158 | # It is most probably a Windows format PATH printed by |
| 16159 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16160 | # path with ; separators, and with drive letters. We can handle the |
| 16161 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16162 | # especially as we might pass files found there to a mingw objdump, |
| 16163 | # which wouldn't understand a cygwinified path. Ahh. |
| 16164 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16165 | else |
| 16166 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16167 | fi |
| 16168 | ;; |
| 16169 | pw32*) |
| 16170 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16171 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16172 | ;; |
| 16173 | esac |
| 16174 | ;; |
| 16175 | |
| 16176 | *) |
| 16177 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16178 | ;; |
| 16179 | esac |
| 16180 | dynamic_linker='Win32 ld.exe' |
| 16181 | # FIXME: first we should search . and the directory the executable is in |
| 16182 | shlibpath_var=PATH |
| 16183 | ;; |
| 16184 | |
| 16185 | darwin* | rhapsody*) |
| 16186 | dynamic_linker="$host_os dyld" |
| 16187 | version_type=darwin |
| 16188 | need_lib_prefix=no |
| 16189 | need_version=no |
| 16190 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16191 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16192 | shlibpath_overrides_runpath=yes |
| 16193 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16194 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 16195 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 16196 | if test "$GCC" = yes; then |
| 16197 | 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"` |
| 16198 | else |
| 16199 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 16200 | fi |
| 16201 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16202 | ;; |
| 16203 | |
| 16204 | dgux*) |
| 16205 | version_type=linux |
| 16206 | need_lib_prefix=no |
| 16207 | need_version=no |
| 16208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16209 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16210 | shlibpath_var=LD_LIBRARY_PATH |
| 16211 | ;; |
| 16212 | |
| 16213 | freebsd1*) |
| 16214 | dynamic_linker=no |
| 16215 | ;; |
| 16216 | |
| 16217 | kfreebsd*-gnu) |
| 16218 | version_type=linux |
| 16219 | need_lib_prefix=no |
| 16220 | need_version=no |
| 16221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16223 | shlibpath_var=LD_LIBRARY_PATH |
| 16224 | shlibpath_overrides_runpath=no |
| 16225 | hardcode_into_libs=yes |
| 16226 | dynamic_linker='GNU ld.so' |
| 16227 | ;; |
| 16228 | |
| 16229 | freebsd*) |
| 16230 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16231 | version_type=freebsd-$objformat |
| 16232 | case $version_type in |
| 16233 | freebsd-elf*) |
| 16234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16235 | need_version=no |
| 16236 | need_lib_prefix=no |
| 16237 | ;; |
| 16238 | freebsd-*) |
| 16239 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16240 | need_version=yes |
| 16241 | ;; |
| 16242 | esac |
| 16243 | shlibpath_var=LD_LIBRARY_PATH |
| 16244 | case $host_os in |
| 16245 | freebsd2*) |
| 16246 | shlibpath_overrides_runpath=yes |
| 16247 | ;; |
| 16248 | freebsd3.01* | freebsdelf3.01*) |
| 16249 | shlibpath_overrides_runpath=yes |
| 16250 | hardcode_into_libs=yes |
| 16251 | ;; |
| 16252 | *) # from 3.2 on |
| 16253 | shlibpath_overrides_runpath=no |
| 16254 | hardcode_into_libs=yes |
| 16255 | ;; |
| 16256 | esac |
| 16257 | ;; |
| 16258 | |
| 16259 | gnu*) |
| 16260 | version_type=linux |
| 16261 | need_lib_prefix=no |
| 16262 | need_version=no |
| 16263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16264 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16265 | shlibpath_var=LD_LIBRARY_PATH |
| 16266 | hardcode_into_libs=yes |
| 16267 | ;; |
| 16268 | |
| 16269 | hpux9* | hpux10* | hpux11*) |
| 16270 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16271 | # link against other versions. |
| 16272 | version_type=sunos |
| 16273 | need_lib_prefix=no |
| 16274 | need_version=no |
| 16275 | case "$host_cpu" in |
| 16276 | ia64*) |
| 16277 | shrext='.so' |
| 16278 | hardcode_into_libs=yes |
| 16279 | dynamic_linker="$host_os dld.so" |
| 16280 | shlibpath_var=LD_LIBRARY_PATH |
| 16281 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16283 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16284 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16285 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16286 | else |
| 16287 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16288 | fi |
| 16289 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16290 | ;; |
| 16291 | hppa*64*) |
| 16292 | shrext='.sl' |
| 16293 | hardcode_into_libs=yes |
| 16294 | dynamic_linker="$host_os dld.sl" |
| 16295 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16296 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16298 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16299 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16300 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16301 | ;; |
| 16302 | *) |
| 16303 | shrext='.sl' |
| 16304 | dynamic_linker="$host_os dld.sl" |
| 16305 | shlibpath_var=SHLIB_PATH |
| 16306 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16308 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16309 | ;; |
| 16310 | esac |
| 16311 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16312 | postinstall_cmds='chmod 555 $lib' |
| 16313 | ;; |
| 16314 | |
| 16315 | irix5* | irix6* | nonstopux*) |
| 16316 | case $host_os in |
| 16317 | nonstopux*) version_type=nonstopux ;; |
| 16318 | *) |
| 16319 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16320 | version_type=linux |
| 16321 | else |
| 16322 | version_type=irix |
| 16323 | fi ;; |
| 16324 | esac |
| 16325 | need_lib_prefix=no |
| 16326 | need_version=no |
| 16327 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16328 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16329 | case $host_os in |
| 16330 | irix5* | nonstopux*) |
| 16331 | libsuff= shlibsuff= |
| 16332 | ;; |
| 16333 | *) |
| 16334 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16335 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16336 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16337 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16338 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16339 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16340 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16341 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16342 | esac |
| 16343 | ;; |
| 16344 | esac |
| 16345 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16346 | shlibpath_overrides_runpath=no |
| 16347 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16348 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16349 | hardcode_into_libs=yes |
| 16350 | ;; |
| 16351 | |
| 16352 | # No shared lib support for Linux oldld, aout, or coff. |
| 16353 | linux*oldld* | linux*aout* | linux*coff*) |
| 16354 | dynamic_linker=no |
| 16355 | ;; |
| 16356 | |
| 16357 | # This must be Linux ELF. |
| 16358 | linux*) |
| 16359 | version_type=linux |
| 16360 | need_lib_prefix=no |
| 16361 | need_version=no |
| 16362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16363 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16364 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16365 | shlibpath_var=LD_LIBRARY_PATH |
| 16366 | shlibpath_overrides_runpath=no |
| 16367 | # This implies no fast_install, which is unacceptable. |
| 16368 | # Some rework will be needed to allow for fast_install |
| 16369 | # before this can be enabled. |
| 16370 | hardcode_into_libs=yes |
| 16371 | |
| 16372 | # Append ld.so.conf contents to the search path |
| 16373 | if test -f /etc/ld.so.conf; then |
| 16374 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
| 16375 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
| 16376 | fi |
| 16377 | |
| 16378 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16379 | # powerpc, because MkLinux only supported shared libraries with the |
| 16380 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16381 | # most powerpc-linux boxes support dynamic linking these days and |
| 16382 | # people can always --disable-shared, the test was removed, and we |
| 16383 | # assume the GNU/Linux dynamic linker is in use. |
| 16384 | dynamic_linker='GNU/Linux ld.so' |
| 16385 | ;; |
| 16386 | |
| 16387 | knetbsd*-gnu) |
| 16388 | version_type=linux |
| 16389 | need_lib_prefix=no |
| 16390 | need_version=no |
| 16391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16393 | shlibpath_var=LD_LIBRARY_PATH |
| 16394 | shlibpath_overrides_runpath=no |
| 16395 | hardcode_into_libs=yes |
| 16396 | dynamic_linker='GNU ld.so' |
| 16397 | ;; |
| 16398 | |
| 16399 | netbsd*) |
| 16400 | version_type=sunos |
| 16401 | need_lib_prefix=no |
| 16402 | need_version=no |
| 16403 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16405 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16406 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16407 | else |
| 16408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16409 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16410 | dynamic_linker='NetBSD ld.elf_so' |
| 16411 | fi |
| 16412 | shlibpath_var=LD_LIBRARY_PATH |
| 16413 | shlibpath_overrides_runpath=yes |
| 16414 | hardcode_into_libs=yes |
| 16415 | ;; |
| 16416 | |
| 16417 | newsos6) |
| 16418 | version_type=linux |
| 16419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16420 | shlibpath_var=LD_LIBRARY_PATH |
| 16421 | shlibpath_overrides_runpath=yes |
| 16422 | ;; |
| 16423 | |
| 16424 | nto-qnx*) |
| 16425 | version_type=linux |
| 16426 | need_lib_prefix=no |
| 16427 | need_version=no |
| 16428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16429 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16430 | shlibpath_var=LD_LIBRARY_PATH |
| 16431 | shlibpath_overrides_runpath=yes |
| 16432 | ;; |
| 16433 | |
| 16434 | openbsd*) |
| 16435 | version_type=sunos |
| 16436 | need_lib_prefix=no |
| 16437 | need_version=yes |
| 16438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16439 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16440 | shlibpath_var=LD_LIBRARY_PATH |
| 16441 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16442 | case $host_os in |
| 16443 | openbsd2.[89] | openbsd2.[89].*) |
| 16444 | shlibpath_overrides_runpath=no |
| 16445 | ;; |
| 16446 | *) |
| 16447 | shlibpath_overrides_runpath=yes |
| 16448 | ;; |
| 16449 | esac |
| 16450 | else |
| 16451 | shlibpath_overrides_runpath=yes |
| 16452 | fi |
| 16453 | ;; |
| 16454 | |
| 16455 | os2*) |
| 16456 | libname_spec='$name' |
| 16457 | shrext=".dll" |
| 16458 | need_lib_prefix=no |
| 16459 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16460 | dynamic_linker='OS/2 ld.exe' |
| 16461 | shlibpath_var=LIBPATH |
| 16462 | ;; |
| 16463 | |
| 16464 | osf3* | osf4* | osf5*) |
| 16465 | version_type=osf |
| 16466 | need_lib_prefix=no |
| 16467 | need_version=no |
| 16468 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16469 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16470 | shlibpath_var=LD_LIBRARY_PATH |
| 16471 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16472 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16473 | ;; |
| 16474 | |
| 16475 | sco3.2v5*) |
| 16476 | version_type=osf |
| 16477 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16479 | shlibpath_var=LD_LIBRARY_PATH |
| 16480 | ;; |
| 16481 | |
| 16482 | solaris*) |
| 16483 | version_type=linux |
| 16484 | need_lib_prefix=no |
| 16485 | need_version=no |
| 16486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16488 | shlibpath_var=LD_LIBRARY_PATH |
| 16489 | shlibpath_overrides_runpath=yes |
| 16490 | hardcode_into_libs=yes |
| 16491 | # ldd complains unless libraries are executable |
| 16492 | postinstall_cmds='chmod +x $lib' |
| 16493 | ;; |
| 16494 | |
| 16495 | sunos4*) |
| 16496 | version_type=sunos |
| 16497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16498 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16499 | shlibpath_var=LD_LIBRARY_PATH |
| 16500 | shlibpath_overrides_runpath=yes |
| 16501 | if test "$with_gnu_ld" = yes; then |
| 16502 | need_lib_prefix=no |
| 16503 | fi |
| 16504 | need_version=yes |
| 16505 | ;; |
| 16506 | |
| 16507 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16508 | version_type=linux |
| 16509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16510 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16511 | shlibpath_var=LD_LIBRARY_PATH |
| 16512 | case $host_vendor in |
| 16513 | sni) |
| 16514 | shlibpath_overrides_runpath=no |
| 16515 | need_lib_prefix=no |
| 16516 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16517 | runpath_var=LD_RUN_PATH |
| 16518 | ;; |
| 16519 | siemens) |
| 16520 | need_lib_prefix=no |
| 16521 | ;; |
| 16522 | motorola) |
| 16523 | need_lib_prefix=no |
| 16524 | need_version=no |
| 16525 | shlibpath_overrides_runpath=no |
| 16526 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16527 | ;; |
| 16528 | esac |
| 16529 | ;; |
| 16530 | |
| 16531 | sysv4*MP*) |
| 16532 | if test -d /usr/nec ;then |
| 16533 | version_type=linux |
| 16534 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16535 | soname_spec='$libname${shared_ext}.$major' |
| 16536 | shlibpath_var=LD_LIBRARY_PATH |
| 16537 | fi |
| 16538 | ;; |
| 16539 | |
| 16540 | uts4*) |
| 16541 | version_type=linux |
| 16542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16543 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16544 | shlibpath_var=LD_LIBRARY_PATH |
| 16545 | ;; |
| 16546 | |
| 16547 | *) |
| 16548 | dynamic_linker=no |
| 16549 | ;; |
| 16550 | esac |
| 16551 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16552 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 16553 | test "$dynamic_linker" = no && can_build_shared=no |
| 16554 | |
| 16555 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16556 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 16557 | hardcode_action_GCJ= |
| 16558 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 16559 | test -n "$runpath_var GCJ" || \ |
| 16560 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| 16561 | |
| 16562 | # We can hardcode non-existant directories. |
| 16563 | if test "$hardcode_direct_GCJ" != no && |
| 16564 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16565 | # have to relink, otherwise we might link with an installed library |
| 16566 | # when we should be linking with a yet-to-be-installed one |
| 16567 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 16568 | test "$hardcode_minus_L_GCJ" != no; then |
| 16569 | # Linking always hardcodes the temporary library directory. |
| 16570 | hardcode_action_GCJ=relink |
| 16571 | else |
| 16572 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16573 | hardcode_action_GCJ=immediate |
| 16574 | fi |
| 16575 | else |
| 16576 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16577 | # directories. |
| 16578 | hardcode_action_GCJ=unsupported |
| 16579 | fi |
| 16580 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 16581 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 16582 | |
| 16583 | if test "$hardcode_action_GCJ" = relink; then |
| 16584 | # Fast installation is not supported |
| 16585 | enable_fast_install=no |
| 16586 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16587 | test "$enable_shared" = no; then |
| 16588 | # Fast installation is not necessary |
| 16589 | enable_fast_install=needless |
| 16590 | fi |
| 16591 | |
| 16592 | striplib= |
| 16593 | old_striplib= |
| 16594 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16595 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 16596 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16597 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16598 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 16599 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16600 | echo "${ECHO_T}yes" >&6 |
| 16601 | else |
| 16602 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16603 | case $host_os in |
| 16604 | darwin*) |
| 16605 | if test -n "$STRIP" ; then |
| 16606 | striplib="$STRIP -x" |
| 16607 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16608 | echo "${ECHO_T}yes" >&6 |
| 16609 | else |
| 16610 | echo "$as_me:$LINENO: result: no" >&5 |
| 16611 | echo "${ECHO_T}no" >&6 |
| 16612 | fi |
| 16613 | ;; |
| 16614 | *) |
| 16615 | echo "$as_me:$LINENO: result: no" >&5 |
| 16616 | echo "${ECHO_T}no" >&6 |
| 16617 | ;; |
| 16618 | esac |
| 16619 | fi |
| 16620 | |
| 16621 | if test "x$enable_dlopen" != xyes; then |
| 16622 | enable_dlopen=unknown |
| 16623 | enable_dlopen_self=unknown |
| 16624 | enable_dlopen_self_static=unknown |
| 16625 | else |
| 16626 | lt_cv_dlopen=no |
| 16627 | lt_cv_dlopen_libs= |
| 16628 | |
| 16629 | case $host_os in |
| 16630 | beos*) |
| 16631 | lt_cv_dlopen="load_add_on" |
| 16632 | lt_cv_dlopen_libs= |
| 16633 | lt_cv_dlopen_self=yes |
| 16634 | ;; |
| 16635 | |
| 16636 | mingw* | pw32*) |
| 16637 | lt_cv_dlopen="LoadLibrary" |
| 16638 | lt_cv_dlopen_libs= |
| 16639 | ;; |
| 16640 | |
| 16641 | cygwin*) |
| 16642 | lt_cv_dlopen="dlopen" |
| 16643 | lt_cv_dlopen_libs= |
| 16644 | ;; |
| 16645 | |
| 16646 | darwin*) |
| 16647 | # if libdl is installed we need to link against it |
| 16648 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16649 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16650 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16652 | else |
| 16653 | ac_check_lib_save_LIBS=$LIBS |
| 16654 | LIBS="-ldl $LIBS" |
| 16655 | cat >conftest.$ac_ext <<_ACEOF |
| 16656 | /* confdefs.h. */ |
| 16657 | _ACEOF |
| 16658 | cat confdefs.h >>conftest.$ac_ext |
| 16659 | cat >>conftest.$ac_ext <<_ACEOF |
| 16660 | /* end confdefs.h. */ |
| 16661 | |
| 16662 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16663 | #ifdef __cplusplus |
| 16664 | extern "C" |
| 16665 | #endif |
| 16666 | /* We use char because int might match the return type of a gcc2 |
| 16667 | builtin and then its argument prototype would still apply. */ |
| 16668 | char dlopen (); |
| 16669 | int |
| 16670 | main () |
| 16671 | { |
| 16672 | dlopen (); |
| 16673 | ; |
| 16674 | return 0; |
| 16675 | } |
| 16676 | _ACEOF |
| 16677 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16679 | (eval $ac_link) 2>conftest.er1 |
| 16680 | ac_status=$? |
| 16681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16682 | rm -f conftest.er1 |
| 16683 | cat conftest.err >&5 |
| 16684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16685 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 16686 | { ac_try='test -z "$ac_c_werror_flag" |
| 16687 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16689 | (eval $ac_try) 2>&5 |
| 16690 | ac_status=$? |
| 16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16692 | (exit $ac_status); }; } && |
| 16693 | { ac_try='test -s conftest$ac_exeext' |
| 16694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16695 | (eval $ac_try) 2>&5 |
| 16696 | ac_status=$? |
| 16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16698 | (exit $ac_status); }; }; then |
| 16699 | ac_cv_lib_dl_dlopen=yes |
| 16700 | else |
| 16701 | echo "$as_me: failed program was:" >&5 |
| 16702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16703 | |
| 16704 | ac_cv_lib_dl_dlopen=no |
| 16705 | fi |
| 16706 | rm -f conftest.err conftest.$ac_objext \ |
| 16707 | conftest$ac_exeext conftest.$ac_ext |
| 16708 | LIBS=$ac_check_lib_save_LIBS |
| 16709 | fi |
| 16710 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16711 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 16712 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16713 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16714 | else |
| 16715 | |
| 16716 | lt_cv_dlopen="dyld" |
| 16717 | lt_cv_dlopen_libs= |
| 16718 | lt_cv_dlopen_self=yes |
| 16719 | |
| 16720 | fi |
| 16721 | |
| 16722 | ;; |
| 16723 | |
| 16724 | *) |
| 16725 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16726 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 16727 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16729 | else |
| 16730 | cat >conftest.$ac_ext <<_ACEOF |
| 16731 | /* confdefs.h. */ |
| 16732 | _ACEOF |
| 16733 | cat confdefs.h >>conftest.$ac_ext |
| 16734 | cat >>conftest.$ac_ext <<_ACEOF |
| 16735 | /* end confdefs.h. */ |
| 16736 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16738 | #define shl_load innocuous_shl_load |
| 16739 | |
| 16740 | /* System header to define __stub macros and hopefully few prototypes, |
| 16741 | which can conflict with char shl_load (); below. |
| 16742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16743 | <limits.h> exists even on freestanding compilers. */ |
| 16744 | |
| 16745 | #ifdef __STDC__ |
| 16746 | # include <limits.h> |
| 16747 | #else |
| 16748 | # include <assert.h> |
| 16749 | #endif |
| 16750 | |
| 16751 | #undef shl_load |
| 16752 | |
| 16753 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16754 | #ifdef __cplusplus |
| 16755 | extern "C" |
| 16756 | { |
| 16757 | #endif |
| 16758 | /* We use char because int might match the return type of a gcc2 |
| 16759 | builtin and then its argument prototype would still apply. */ |
| 16760 | char shl_load (); |
| 16761 | /* The GNU C library defines this for functions which it implements |
| 16762 | to always fail with ENOSYS. Some functions are actually named |
| 16763 | something starting with __ and the normal name is an alias. */ |
| 16764 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 16765 | choke me |
| 16766 | #else |
| 16767 | char (*f) () = shl_load; |
| 16768 | #endif |
| 16769 | #ifdef __cplusplus |
| 16770 | } |
| 16771 | #endif |
| 16772 | |
| 16773 | int |
| 16774 | main () |
| 16775 | { |
| 16776 | return f != shl_load; |
| 16777 | ; |
| 16778 | return 0; |
| 16779 | } |
| 16780 | _ACEOF |
| 16781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16783 | (eval $ac_link) 2>conftest.er1 |
| 16784 | ac_status=$? |
| 16785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16786 | rm -f conftest.er1 |
| 16787 | cat conftest.err >&5 |
| 16788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16789 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 16790 | { ac_try='test -z "$ac_c_werror_flag" |
| 16791 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16793 | (eval $ac_try) 2>&5 |
| 16794 | ac_status=$? |
| 16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16796 | (exit $ac_status); }; } && |
| 16797 | { ac_try='test -s conftest$ac_exeext' |
| 16798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16799 | (eval $ac_try) 2>&5 |
| 16800 | ac_status=$? |
| 16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16802 | (exit $ac_status); }; }; then |
| 16803 | ac_cv_func_shl_load=yes |
| 16804 | else |
| 16805 | echo "$as_me: failed program was:" >&5 |
| 16806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16807 | |
| 16808 | ac_cv_func_shl_load=no |
| 16809 | fi |
| 16810 | rm -f conftest.err conftest.$ac_objext \ |
| 16811 | conftest$ac_exeext conftest.$ac_ext |
| 16812 | fi |
| 16813 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16814 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 16815 | if test $ac_cv_func_shl_load = yes; then |
| 16816 | lt_cv_dlopen="shl_load" |
| 16817 | else |
| 16818 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16819 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 16820 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16822 | else |
| 16823 | ac_check_lib_save_LIBS=$LIBS |
| 16824 | LIBS="-ldld $LIBS" |
| 16825 | cat >conftest.$ac_ext <<_ACEOF |
| 16826 | /* confdefs.h. */ |
| 16827 | _ACEOF |
| 16828 | cat confdefs.h >>conftest.$ac_ext |
| 16829 | cat >>conftest.$ac_ext <<_ACEOF |
| 16830 | /* end confdefs.h. */ |
| 16831 | |
| 16832 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16833 | #ifdef __cplusplus |
| 16834 | extern "C" |
| 16835 | #endif |
| 16836 | /* We use char because int might match the return type of a gcc2 |
| 16837 | builtin and then its argument prototype would still apply. */ |
| 16838 | char shl_load (); |
| 16839 | int |
| 16840 | main () |
| 16841 | { |
| 16842 | shl_load (); |
| 16843 | ; |
| 16844 | return 0; |
| 16845 | } |
| 16846 | _ACEOF |
| 16847 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16849 | (eval $ac_link) 2>conftest.er1 |
| 16850 | ac_status=$? |
| 16851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16852 | rm -f conftest.er1 |
| 16853 | cat conftest.err >&5 |
| 16854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16855 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 16856 | { ac_try='test -z "$ac_c_werror_flag" |
| 16857 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16859 | (eval $ac_try) 2>&5 |
| 16860 | ac_status=$? |
| 16861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16862 | (exit $ac_status); }; } && |
| 16863 | { ac_try='test -s conftest$ac_exeext' |
| 16864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16865 | (eval $ac_try) 2>&5 |
| 16866 | ac_status=$? |
| 16867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16868 | (exit $ac_status); }; }; then |
| 16869 | ac_cv_lib_dld_shl_load=yes |
| 16870 | else |
| 16871 | echo "$as_me: failed program was:" >&5 |
| 16872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16873 | |
| 16874 | ac_cv_lib_dld_shl_load=no |
| 16875 | fi |
| 16876 | rm -f conftest.err conftest.$ac_objext \ |
| 16877 | conftest$ac_exeext conftest.$ac_ext |
| 16878 | LIBS=$ac_check_lib_save_LIBS |
| 16879 | fi |
| 16880 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16881 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 16882 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16883 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16884 | else |
| 16885 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16886 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 16887 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16889 | else |
| 16890 | cat >conftest.$ac_ext <<_ACEOF |
| 16891 | /* confdefs.h. */ |
| 16892 | _ACEOF |
| 16893 | cat confdefs.h >>conftest.$ac_ext |
| 16894 | cat >>conftest.$ac_ext <<_ACEOF |
| 16895 | /* end confdefs.h. */ |
| 16896 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16897 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16898 | #define dlopen innocuous_dlopen |
| 16899 | |
| 16900 | /* System header to define __stub macros and hopefully few prototypes, |
| 16901 | which can conflict with char dlopen (); below. |
| 16902 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16903 | <limits.h> exists even on freestanding compilers. */ |
| 16904 | |
| 16905 | #ifdef __STDC__ |
| 16906 | # include <limits.h> |
| 16907 | #else |
| 16908 | # include <assert.h> |
| 16909 | #endif |
| 16910 | |
| 16911 | #undef dlopen |
| 16912 | |
| 16913 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16914 | #ifdef __cplusplus |
| 16915 | extern "C" |
| 16916 | { |
| 16917 | #endif |
| 16918 | /* We use char because int might match the return type of a gcc2 |
| 16919 | builtin and then its argument prototype would still apply. */ |
| 16920 | char dlopen (); |
| 16921 | /* The GNU C library defines this for functions which it implements |
| 16922 | to always fail with ENOSYS. Some functions are actually named |
| 16923 | something starting with __ and the normal name is an alias. */ |
| 16924 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 16925 | choke me |
| 16926 | #else |
| 16927 | char (*f) () = dlopen; |
| 16928 | #endif |
| 16929 | #ifdef __cplusplus |
| 16930 | } |
| 16931 | #endif |
| 16932 | |
| 16933 | int |
| 16934 | main () |
| 16935 | { |
| 16936 | return f != dlopen; |
| 16937 | ; |
| 16938 | return 0; |
| 16939 | } |
| 16940 | _ACEOF |
| 16941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16943 | (eval $ac_link) 2>conftest.er1 |
| 16944 | ac_status=$? |
| 16945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16946 | rm -f conftest.er1 |
| 16947 | cat conftest.err >&5 |
| 16948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16949 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 16950 | { ac_try='test -z "$ac_c_werror_flag" |
| 16951 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16953 | (eval $ac_try) 2>&5 |
| 16954 | ac_status=$? |
| 16955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16956 | (exit $ac_status); }; } && |
| 16957 | { ac_try='test -s conftest$ac_exeext' |
| 16958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16959 | (eval $ac_try) 2>&5 |
| 16960 | ac_status=$? |
| 16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16962 | (exit $ac_status); }; }; then |
| 16963 | ac_cv_func_dlopen=yes |
| 16964 | else |
| 16965 | echo "$as_me: failed program was:" >&5 |
| 16966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16967 | |
| 16968 | ac_cv_func_dlopen=no |
| 16969 | fi |
| 16970 | rm -f conftest.err conftest.$ac_objext \ |
| 16971 | conftest$ac_exeext conftest.$ac_ext |
| 16972 | fi |
| 16973 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16974 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 16975 | if test $ac_cv_func_dlopen = yes; then |
| 16976 | lt_cv_dlopen="dlopen" |
| 16977 | else |
| 16978 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16979 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16980 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16982 | else |
| 16983 | ac_check_lib_save_LIBS=$LIBS |
| 16984 | LIBS="-ldl $LIBS" |
| 16985 | cat >conftest.$ac_ext <<_ACEOF |
| 16986 | /* confdefs.h. */ |
| 16987 | _ACEOF |
| 16988 | cat confdefs.h >>conftest.$ac_ext |
| 16989 | cat >>conftest.$ac_ext <<_ACEOF |
| 16990 | /* end confdefs.h. */ |
| 16991 | |
| 16992 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16993 | #ifdef __cplusplus |
| 16994 | extern "C" |
| 16995 | #endif |
| 16996 | /* We use char because int might match the return type of a gcc2 |
| 16997 | builtin and then its argument prototype would still apply. */ |
| 16998 | char dlopen (); |
| 16999 | int |
| 17000 | main () |
| 17001 | { |
| 17002 | dlopen (); |
| 17003 | ; |
| 17004 | return 0; |
| 17005 | } |
| 17006 | _ACEOF |
| 17007 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17009 | (eval $ac_link) 2>conftest.er1 |
| 17010 | ac_status=$? |
| 17011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17012 | rm -f conftest.er1 |
| 17013 | cat conftest.err >&5 |
| 17014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17015 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 17016 | { ac_try='test -z "$ac_c_werror_flag" |
| 17017 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17019 | (eval $ac_try) 2>&5 |
| 17020 | ac_status=$? |
| 17021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17022 | (exit $ac_status); }; } && |
| 17023 | { ac_try='test -s conftest$ac_exeext' |
| 17024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17025 | (eval $ac_try) 2>&5 |
| 17026 | ac_status=$? |
| 17027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17028 | (exit $ac_status); }; }; then |
| 17029 | ac_cv_lib_dl_dlopen=yes |
| 17030 | else |
| 17031 | echo "$as_me: failed program was:" >&5 |
| 17032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17033 | |
| 17034 | ac_cv_lib_dl_dlopen=no |
| 17035 | fi |
| 17036 | rm -f conftest.err conftest.$ac_objext \ |
| 17037 | conftest$ac_exeext conftest.$ac_ext |
| 17038 | LIBS=$ac_check_lib_save_LIBS |
| 17039 | fi |
| 17040 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17041 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17042 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17043 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17044 | else |
| 17045 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17046 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 17047 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17049 | else |
| 17050 | ac_check_lib_save_LIBS=$LIBS |
| 17051 | LIBS="-lsvld $LIBS" |
| 17052 | cat >conftest.$ac_ext <<_ACEOF |
| 17053 | /* confdefs.h. */ |
| 17054 | _ACEOF |
| 17055 | cat confdefs.h >>conftest.$ac_ext |
| 17056 | cat >>conftest.$ac_ext <<_ACEOF |
| 17057 | /* end confdefs.h. */ |
| 17058 | |
| 17059 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17060 | #ifdef __cplusplus |
| 17061 | extern "C" |
| 17062 | #endif |
| 17063 | /* We use char because int might match the return type of a gcc2 |
| 17064 | builtin and then its argument prototype would still apply. */ |
| 17065 | char dlopen (); |
| 17066 | int |
| 17067 | main () |
| 17068 | { |
| 17069 | dlopen (); |
| 17070 | ; |
| 17071 | return 0; |
| 17072 | } |
| 17073 | _ACEOF |
| 17074 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17076 | (eval $ac_link) 2>conftest.er1 |
| 17077 | ac_status=$? |
| 17078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17079 | rm -f conftest.er1 |
| 17080 | cat conftest.err >&5 |
| 17081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17082 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 17083 | { ac_try='test -z "$ac_c_werror_flag" |
| 17084 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17086 | (eval $ac_try) 2>&5 |
| 17087 | ac_status=$? |
| 17088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17089 | (exit $ac_status); }; } && |
| 17090 | { ac_try='test -s conftest$ac_exeext' |
| 17091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17092 | (eval $ac_try) 2>&5 |
| 17093 | ac_status=$? |
| 17094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17095 | (exit $ac_status); }; }; then |
| 17096 | ac_cv_lib_svld_dlopen=yes |
| 17097 | else |
| 17098 | echo "$as_me: failed program was:" >&5 |
| 17099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17100 | |
| 17101 | ac_cv_lib_svld_dlopen=no |
| 17102 | fi |
| 17103 | rm -f conftest.err conftest.$ac_objext \ |
| 17104 | conftest$ac_exeext conftest.$ac_ext |
| 17105 | LIBS=$ac_check_lib_save_LIBS |
| 17106 | fi |
| 17107 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17108 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 17109 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17110 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17111 | else |
| 17112 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17113 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 17114 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17116 | else |
| 17117 | ac_check_lib_save_LIBS=$LIBS |
| 17118 | LIBS="-ldld $LIBS" |
| 17119 | cat >conftest.$ac_ext <<_ACEOF |
| 17120 | /* confdefs.h. */ |
| 17121 | _ACEOF |
| 17122 | cat confdefs.h >>conftest.$ac_ext |
| 17123 | cat >>conftest.$ac_ext <<_ACEOF |
| 17124 | /* end confdefs.h. */ |
| 17125 | |
| 17126 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17127 | #ifdef __cplusplus |
| 17128 | extern "C" |
| 17129 | #endif |
| 17130 | /* We use char because int might match the return type of a gcc2 |
| 17131 | builtin and then its argument prototype would still apply. */ |
| 17132 | char dld_link (); |
| 17133 | int |
| 17134 | main () |
| 17135 | { |
| 17136 | dld_link (); |
| 17137 | ; |
| 17138 | return 0; |
| 17139 | } |
| 17140 | _ACEOF |
| 17141 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17143 | (eval $ac_link) 2>conftest.er1 |
| 17144 | ac_status=$? |
| 17145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17146 | rm -f conftest.er1 |
| 17147 | cat conftest.err >&5 |
| 17148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17149 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 17150 | { ac_try='test -z "$ac_c_werror_flag" |
| 17151 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17153 | (eval $ac_try) 2>&5 |
| 17154 | ac_status=$? |
| 17155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17156 | (exit $ac_status); }; } && |
| 17157 | { ac_try='test -s conftest$ac_exeext' |
| 17158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17159 | (eval $ac_try) 2>&5 |
| 17160 | ac_status=$? |
| 17161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17162 | (exit $ac_status); }; }; then |
| 17163 | ac_cv_lib_dld_dld_link=yes |
| 17164 | else |
| 17165 | echo "$as_me: failed program was:" >&5 |
| 17166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17167 | |
| 17168 | ac_cv_lib_dld_dld_link=no |
| 17169 | fi |
| 17170 | rm -f conftest.err conftest.$ac_objext \ |
| 17171 | conftest$ac_exeext conftest.$ac_ext |
| 17172 | LIBS=$ac_check_lib_save_LIBS |
| 17173 | fi |
| 17174 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17175 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 17176 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17177 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17178 | fi |
| 17179 | |
| 17180 | |
| 17181 | fi |
| 17182 | |
| 17183 | |
| 17184 | fi |
| 17185 | |
| 17186 | |
| 17187 | fi |
| 17188 | |
| 17189 | |
| 17190 | fi |
| 17191 | |
| 17192 | |
| 17193 | fi |
| 17194 | |
| 17195 | ;; |
| 17196 | esac |
| 17197 | |
| 17198 | if test "x$lt_cv_dlopen" != xno; then |
| 17199 | enable_dlopen=yes |
| 17200 | else |
| 17201 | enable_dlopen=no |
| 17202 | fi |
| 17203 | |
| 17204 | case $lt_cv_dlopen in |
| 17205 | dlopen) |
| 17206 | save_CPPFLAGS="$CPPFLAGS" |
| 17207 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17208 | |
| 17209 | save_LDFLAGS="$LDFLAGS" |
| 17210 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17211 | |
| 17212 | save_LIBS="$LIBS" |
| 17213 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17214 | |
| 17215 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17216 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 17217 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17219 | else |
| 17220 | if test "$cross_compiling" = yes; then : |
| 17221 | lt_cv_dlopen_self=cross |
| 17222 | else |
| 17223 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17224 | lt_status=$lt_dlunknown |
| 17225 | cat > conftest.$ac_ext <<EOF |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 17226 | #line 17226 "configure" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17227 | #include "confdefs.h" |
| 17228 | |
| 17229 | #if HAVE_DLFCN_H |
| 17230 | #include <dlfcn.h> |
| 17231 | #endif |
| 17232 | |
| 17233 | #include <stdio.h> |
| 17234 | |
| 17235 | #ifdef RTLD_GLOBAL |
| 17236 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17237 | #else |
| 17238 | # ifdef DL_GLOBAL |
| 17239 | # define LT_DLGLOBAL DL_GLOBAL |
| 17240 | # else |
| 17241 | # define LT_DLGLOBAL 0 |
| 17242 | # endif |
| 17243 | #endif |
| 17244 | |
| 17245 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17246 | find out it does not work in some platform. */ |
| 17247 | #ifndef LT_DLLAZY_OR_NOW |
| 17248 | # ifdef RTLD_LAZY |
| 17249 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17250 | # else |
| 17251 | # ifdef DL_LAZY |
| 17252 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17253 | # else |
| 17254 | # ifdef RTLD_NOW |
| 17255 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17256 | # else |
| 17257 | # ifdef DL_NOW |
| 17258 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17259 | # else |
| 17260 | # define LT_DLLAZY_OR_NOW 0 |
| 17261 | # endif |
| 17262 | # endif |
| 17263 | # endif |
| 17264 | # endif |
| 17265 | #endif |
| 17266 | |
| 17267 | #ifdef __cplusplus |
| 17268 | extern "C" void exit (int); |
| 17269 | #endif |
| 17270 | |
| 17271 | void fnord() { int i=42;} |
| 17272 | int main () |
| 17273 | { |
| 17274 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17275 | int status = $lt_dlunknown; |
| 17276 | |
| 17277 | if (self) |
| 17278 | { |
| 17279 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17280 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17281 | /* dlclose (self); */ |
| 17282 | } |
| 17283 | |
| 17284 | exit (status); |
| 17285 | } |
| 17286 | EOF |
| 17287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17288 | (eval $ac_link) 2>&5 |
| 17289 | ac_status=$? |
| 17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17291 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17292 | (./conftest; exit; ) 2>/dev/null |
| 17293 | lt_status=$? |
| 17294 | case x$lt_status in |
| 17295 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17296 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 17297 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 17298 | esac |
| 17299 | else : |
| 17300 | # compilation failed |
| 17301 | lt_cv_dlopen_self=no |
| 17302 | fi |
| 17303 | fi |
| 17304 | rm -fr conftest* |
| 17305 | |
| 17306 | |
| 17307 | fi |
| 17308 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17309 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 17310 | |
| 17311 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 17312 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 17313 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17314 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 17315 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17317 | else |
| 17318 | if test "$cross_compiling" = yes; then : |
| 17319 | lt_cv_dlopen_self_static=cross |
| 17320 | else |
| 17321 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17322 | lt_status=$lt_dlunknown |
| 17323 | cat > conftest.$ac_ext <<EOF |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 17324 | #line 17324 "configure" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17325 | #include "confdefs.h" |
| 17326 | |
| 17327 | #if HAVE_DLFCN_H |
| 17328 | #include <dlfcn.h> |
| 17329 | #endif |
| 17330 | |
| 17331 | #include <stdio.h> |
| 17332 | |
| 17333 | #ifdef RTLD_GLOBAL |
| 17334 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17335 | #else |
| 17336 | # ifdef DL_GLOBAL |
| 17337 | # define LT_DLGLOBAL DL_GLOBAL |
| 17338 | # else |
| 17339 | # define LT_DLGLOBAL 0 |
| 17340 | # endif |
| 17341 | #endif |
| 17342 | |
| 17343 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17344 | find out it does not work in some platform. */ |
| 17345 | #ifndef LT_DLLAZY_OR_NOW |
| 17346 | # ifdef RTLD_LAZY |
| 17347 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17348 | # else |
| 17349 | # ifdef DL_LAZY |
| 17350 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17351 | # else |
| 17352 | # ifdef RTLD_NOW |
| 17353 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17354 | # else |
| 17355 | # ifdef DL_NOW |
| 17356 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17357 | # else |
| 17358 | # define LT_DLLAZY_OR_NOW 0 |
| 17359 | # endif |
| 17360 | # endif |
| 17361 | # endif |
| 17362 | # endif |
| 17363 | #endif |
| 17364 | |
| 17365 | #ifdef __cplusplus |
| 17366 | extern "C" void exit (int); |
| 17367 | #endif |
| 17368 | |
| 17369 | void fnord() { int i=42;} |
| 17370 | int main () |
| 17371 | { |
| 17372 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17373 | int status = $lt_dlunknown; |
| 17374 | |
| 17375 | if (self) |
| 17376 | { |
| 17377 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17378 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17379 | /* dlclose (self); */ |
| 17380 | } |
| 17381 | |
| 17382 | exit (status); |
| 17383 | } |
| 17384 | EOF |
| 17385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17386 | (eval $ac_link) 2>&5 |
| 17387 | ac_status=$? |
| 17388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17389 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17390 | (./conftest; exit; ) 2>/dev/null |
| 17391 | lt_status=$? |
| 17392 | case x$lt_status in |
| 17393 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17394 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17395 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 17396 | esac |
| 17397 | else : |
| 17398 | # compilation failed |
| 17399 | lt_cv_dlopen_self_static=no |
| 17400 | fi |
| 17401 | fi |
| 17402 | rm -fr conftest* |
| 17403 | |
| 17404 | |
| 17405 | fi |
| 17406 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17407 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 17408 | fi |
| 17409 | |
| 17410 | CPPFLAGS="$save_CPPFLAGS" |
| 17411 | LDFLAGS="$save_LDFLAGS" |
| 17412 | LIBS="$save_LIBS" |
| 17413 | ;; |
| 17414 | esac |
| 17415 | |
| 17416 | case $lt_cv_dlopen_self in |
| 17417 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17418 | *) enable_dlopen_self=unknown ;; |
| 17419 | esac |
| 17420 | |
| 17421 | case $lt_cv_dlopen_self_static in |
| 17422 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17423 | *) enable_dlopen_self_static=unknown ;; |
| 17424 | esac |
| 17425 | fi |
| 17426 | |
| 17427 | |
| 17428 | # The else clause should only fire when bootstrapping the |
| 17429 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17430 | # with your package, and you will get complaints that there are |
| 17431 | # no rules to generate ltmain.sh. |
| 17432 | if test -f "$ltmain"; then |
| 17433 | # See if we are running on zsh, and set the options which allow our commands through |
| 17434 | # without removal of \ escapes. |
| 17435 | if test -n "${ZSH_VERSION+set}" ; then |
| 17436 | setopt NO_GLOB_SUBST |
| 17437 | fi |
| 17438 | # Now quote all the things that may contain metacharacters while being |
| 17439 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17440 | # variables and quote the copies for generation of the libtool script. |
| 17441 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 17442 | SED SHELL STRIP \ |
| 17443 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17444 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17445 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17446 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17447 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17448 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17449 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17450 | compiler_GCJ \ |
| 17451 | CC_GCJ \ |
| 17452 | LD_GCJ \ |
| 17453 | lt_prog_compiler_wl_GCJ \ |
| 17454 | lt_prog_compiler_pic_GCJ \ |
| 17455 | lt_prog_compiler_static_GCJ \ |
| 17456 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 17457 | export_dynamic_flag_spec_GCJ \ |
| 17458 | thread_safe_flag_spec_GCJ \ |
| 17459 | whole_archive_flag_spec_GCJ \ |
| 17460 | enable_shared_with_static_runtimes_GCJ \ |
| 17461 | old_archive_cmds_GCJ \ |
| 17462 | old_archive_from_new_cmds_GCJ \ |
| 17463 | predep_objects_GCJ \ |
| 17464 | postdep_objects_GCJ \ |
| 17465 | predeps_GCJ \ |
| 17466 | postdeps_GCJ \ |
| 17467 | compiler_lib_search_path_GCJ \ |
| 17468 | archive_cmds_GCJ \ |
| 17469 | archive_expsym_cmds_GCJ \ |
| 17470 | postinstall_cmds_GCJ \ |
| 17471 | postuninstall_cmds_GCJ \ |
| 17472 | old_archive_from_expsyms_cmds_GCJ \ |
| 17473 | allow_undefined_flag_GCJ \ |
| 17474 | no_undefined_flag_GCJ \ |
| 17475 | export_symbols_cmds_GCJ \ |
| 17476 | hardcode_libdir_flag_spec_GCJ \ |
| 17477 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 17478 | hardcode_libdir_separator_GCJ \ |
| 17479 | hardcode_automatic_GCJ \ |
| 17480 | module_cmds_GCJ \ |
| 17481 | module_expsym_cmds_GCJ \ |
| 17482 | lt_cv_prog_compiler_c_o_GCJ \ |
| 17483 | exclude_expsyms_GCJ \ |
| 17484 | include_expsyms_GCJ; do |
| 17485 | |
| 17486 | case $var in |
| 17487 | old_archive_cmds_GCJ | \ |
| 17488 | old_archive_from_new_cmds_GCJ | \ |
| 17489 | archive_cmds_GCJ | \ |
| 17490 | archive_expsym_cmds_GCJ | \ |
| 17491 | module_cmds_GCJ | \ |
| 17492 | module_expsym_cmds_GCJ | \ |
| 17493 | old_archive_from_expsyms_cmds_GCJ | \ |
| 17494 | export_symbols_cmds_GCJ | \ |
| 17495 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17496 | postinstall_cmds | postuninstall_cmds | \ |
| 17497 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17498 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17499 | # Double-quote double-evaled strings. |
| 17500 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17501 | ;; |
| 17502 | *) |
| 17503 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17504 | ;; |
| 17505 | esac |
| 17506 | done |
| 17507 | |
| 17508 | case $lt_echo in |
| 17509 | *'\$0 --fallback-echo"') |
| 17510 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17511 | ;; |
| 17512 | esac |
| 17513 | |
| 17514 | cfgfile="$ofile" |
| 17515 | |
| 17516 | cat <<__EOF__ >> "$cfgfile" |
| 17517 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17518 | |
| 17519 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17520 | |
| 17521 | # Shell to use when invoking shell scripts. |
| 17522 | SHELL=$lt_SHELL |
| 17523 | |
| 17524 | # Whether or not to build shared libraries. |
| 17525 | build_libtool_libs=$enable_shared |
| 17526 | |
| 17527 | # Whether or not to build static libraries. |
| 17528 | build_old_libs=$enable_static |
| 17529 | |
| 17530 | # Whether or not to add -lc for building shared libraries. |
| 17531 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 17532 | |
| 17533 | # Whether or not to disallow shared libs when runtime libs are static |
| 17534 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 17535 | |
| 17536 | # Whether or not to optimize for fast installation. |
| 17537 | fast_install=$enable_fast_install |
| 17538 | |
| 17539 | # The host system. |
| 17540 | host_alias=$host_alias |
| 17541 | host=$host |
| 17542 | |
| 17543 | # An echo program that does not interpret backslashes. |
| 17544 | echo=$lt_echo |
| 17545 | |
| 17546 | # The archiver. |
| 17547 | AR=$lt_AR |
| 17548 | AR_FLAGS=$lt_AR_FLAGS |
| 17549 | |
| 17550 | # A C compiler. |
| 17551 | LTCC=$lt_LTCC |
| 17552 | |
| 17553 | # A language-specific compiler. |
| 17554 | CC=$lt_compiler_GCJ |
| 17555 | |
| 17556 | # Is the compiler the GNU C compiler? |
| 17557 | with_gcc=$GCC_GCJ |
| 17558 | |
| 17559 | # An ERE matcher. |
| 17560 | EGREP=$lt_EGREP |
| 17561 | |
| 17562 | # The linker used to build libraries. |
| 17563 | LD=$lt_LD_GCJ |
| 17564 | |
| 17565 | # Whether we need hard or soft links. |
| 17566 | LN_S=$lt_LN_S |
| 17567 | |
| 17568 | # A BSD-compatible nm program. |
| 17569 | NM=$lt_NM |
| 17570 | |
| 17571 | # A symbol stripping program |
| 17572 | STRIP=$lt_STRIP |
| 17573 | |
| 17574 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17575 | MAGIC_CMD=$MAGIC_CMD |
| 17576 | |
| 17577 | # Used on cygwin: DLL creation program. |
| 17578 | DLLTOOL="$DLLTOOL" |
| 17579 | |
| 17580 | # Used on cygwin: object dumper. |
| 17581 | OBJDUMP="$OBJDUMP" |
| 17582 | |
| 17583 | # Used on cygwin: assembler. |
| 17584 | AS="$AS" |
| 17585 | |
| 17586 | # The name of the directory that contains temporary libtool files. |
| 17587 | objdir=$objdir |
| 17588 | |
| 17589 | # How to create reloadable object files. |
| 17590 | reload_flag=$lt_reload_flag |
| 17591 | reload_cmds=$lt_reload_cmds |
| 17592 | |
| 17593 | # How to pass a linker flag through the compiler. |
| 17594 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 17595 | |
| 17596 | # Object file suffix (normally "o"). |
| 17597 | objext="$ac_objext" |
| 17598 | |
| 17599 | # Old archive suffix (normally "a"). |
| 17600 | libext="$libext" |
| 17601 | |
| 17602 | # Shared library suffix (normally ".so"). |
| 17603 | shrext='$shrext' |
| 17604 | |
| 17605 | # Executable file suffix (normally ""). |
| 17606 | exeext="$exeext" |
| 17607 | |
| 17608 | # Additional compiler flags for building library objects. |
| 17609 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 17610 | pic_mode=$pic_mode |
| 17611 | |
| 17612 | # What is the maximum length of a command? |
| 17613 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17614 | |
| 17615 | # Does compiler simultaneously support -c and -o options? |
| 17616 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 17617 | |
| 17618 | # Must we lock files when doing compilation ? |
| 17619 | need_locks=$lt_need_locks |
| 17620 | |
| 17621 | # Do we need the lib prefix for modules? |
| 17622 | need_lib_prefix=$need_lib_prefix |
| 17623 | |
| 17624 | # Do we need a version for libraries? |
| 17625 | need_version=$need_version |
| 17626 | |
| 17627 | # Whether dlopen is supported. |
| 17628 | dlopen_support=$enable_dlopen |
| 17629 | |
| 17630 | # Whether dlopen of programs is supported. |
| 17631 | dlopen_self=$enable_dlopen_self |
| 17632 | |
| 17633 | # Whether dlopen of statically linked programs is supported. |
| 17634 | dlopen_self_static=$enable_dlopen_self_static |
| 17635 | |
| 17636 | # Compiler flag to prevent dynamic linking. |
| 17637 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 17638 | |
| 17639 | # Compiler flag to turn off builtin functions. |
| 17640 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 17641 | |
| 17642 | # Compiler flag to allow reflexive dlopens. |
| 17643 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 17644 | |
| 17645 | # Compiler flag to generate shared objects directly from archives. |
| 17646 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 17647 | |
| 17648 | # Compiler flag to generate thread-safe objects. |
| 17649 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 17650 | |
| 17651 | # Library versioning type. |
| 17652 | version_type=$version_type |
| 17653 | |
| 17654 | # Format of library name prefix. |
| 17655 | libname_spec=$lt_libname_spec |
| 17656 | |
| 17657 | # List of archive names. First name is the real one, the rest are links. |
| 17658 | # The last name is the one that the linker finds with -lNAME. |
| 17659 | library_names_spec=$lt_library_names_spec |
| 17660 | |
| 17661 | # The coded name of the library, if different from the real name. |
| 17662 | soname_spec=$lt_soname_spec |
| 17663 | |
| 17664 | # Commands used to build and install an old-style archive. |
| 17665 | RANLIB=$lt_RANLIB |
| 17666 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 17667 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17668 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17669 | |
| 17670 | # Create an old-style archive from a shared archive. |
| 17671 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 17672 | |
| 17673 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17674 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 17675 | |
| 17676 | # Commands used to build and install a shared archive. |
| 17677 | archive_cmds=$lt_archive_cmds_GCJ |
| 17678 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 17679 | postinstall_cmds=$lt_postinstall_cmds |
| 17680 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17681 | |
| 17682 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17683 | module_cmds=$lt_module_cmds_GCJ |
| 17684 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 17685 | |
| 17686 | # Commands to strip libraries. |
| 17687 | old_striplib=$lt_old_striplib |
| 17688 | striplib=$lt_striplib |
| 17689 | |
| 17690 | # Dependencies to place before the objects being linked to create a |
| 17691 | # shared library. |
| 17692 | predep_objects=$lt_predep_objects_GCJ |
| 17693 | |
| 17694 | # Dependencies to place after the objects being linked to create a |
| 17695 | # shared library. |
| 17696 | postdep_objects=$lt_postdep_objects_GCJ |
| 17697 | |
| 17698 | # Dependencies to place before the objects being linked to create a |
| 17699 | # shared library. |
| 17700 | predeps=$lt_predeps_GCJ |
| 17701 | |
| 17702 | # Dependencies to place after the objects being linked to create a |
| 17703 | # shared library. |
| 17704 | postdeps=$lt_postdeps_GCJ |
| 17705 | |
| 17706 | # The library search path used internally by the compiler when linking |
| 17707 | # a shared library. |
| 17708 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 17709 | |
| 17710 | # Method to check whether dependent libraries are shared objects. |
| 17711 | deplibs_check_method=$lt_deplibs_check_method |
| 17712 | |
| 17713 | # Command to use when deplibs_check_method == file_magic. |
| 17714 | file_magic_cmd=$lt_file_magic_cmd |
| 17715 | |
| 17716 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17717 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 17718 | |
| 17719 | # Flag that forces no undefined symbols. |
| 17720 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 17721 | |
| 17722 | # Commands used to finish a libtool library installation in a directory. |
| 17723 | finish_cmds=$lt_finish_cmds |
| 17724 | |
| 17725 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17726 | finish_eval=$lt_finish_eval |
| 17727 | |
| 17728 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17729 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17730 | |
| 17731 | # Transform the output of nm in a proper C declaration |
| 17732 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17733 | |
| 17734 | # Transform the output of nm in a C name address pair |
| 17735 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17736 | |
| 17737 | # This is the shared library runtime path variable. |
| 17738 | runpath_var=$runpath_var |
| 17739 | |
| 17740 | # This is the shared library path variable. |
| 17741 | shlibpath_var=$shlibpath_var |
| 17742 | |
| 17743 | # Is shlibpath searched before the hard-coded library search path? |
| 17744 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17745 | |
| 17746 | # How to hardcode a shared library path into an executable. |
| 17747 | hardcode_action=$hardcode_action_GCJ |
| 17748 | |
| 17749 | # Whether we should hardcode library paths into libraries. |
| 17750 | hardcode_into_libs=$hardcode_into_libs |
| 17751 | |
| 17752 | # Flag to hardcode \$libdir into a binary during linking. |
| 17753 | # This must work even if \$libdir does not exist. |
| 17754 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 17755 | |
| 17756 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17757 | # a binary during linking. This must work even if \$libdir does |
| 17758 | # not exist. |
| 17759 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 17760 | |
| 17761 | # Whether we need a single -rpath flag with a separated argument. |
| 17762 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 17763 | |
| 17764 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17765 | # resulting binary. |
| 17766 | hardcode_direct=$hardcode_direct_GCJ |
| 17767 | |
| 17768 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17769 | # resulting binary. |
| 17770 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 17771 | |
| 17772 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17773 | # the resulting binary. |
| 17774 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 17775 | |
| 17776 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17777 | # and all subsequent libraries and executables linked against it. |
| 17778 | hardcode_automatic=$hardcode_automatic_GCJ |
| 17779 | |
| 17780 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17781 | # restored at relink time. |
| 17782 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17783 | |
| 17784 | # Whether libtool must link a program against all its dependency libraries. |
| 17785 | link_all_deplibs=$link_all_deplibs_GCJ |
| 17786 | |
| 17787 | # Compile-time system search path for libraries |
| 17788 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17789 | |
| 17790 | # Run-time system search path for libraries |
| 17791 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17792 | |
| 17793 | # Fix the shell variable \$srcfile for the compiler. |
| 17794 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 17795 | |
| 17796 | # Set to yes if exported symbols are required. |
| 17797 | always_export_symbols=$always_export_symbols_GCJ |
| 17798 | |
| 17799 | # The commands to list exported symbols. |
| 17800 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 17801 | |
| 17802 | # The commands to extract the exported symbol list from a shared archive. |
| 17803 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17804 | |
| 17805 | # Symbols that should not be listed in the preloaded symbols. |
| 17806 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 17807 | |
| 17808 | # Symbols that must always be exported. |
| 17809 | include_expsyms=$lt_include_expsyms_GCJ |
| 17810 | |
| 17811 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 17812 | |
| 17813 | __EOF__ |
| 17814 | |
| 17815 | |
| 17816 | else |
| 17817 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17818 | # `config.status --recheck' to rerun these tests and create the |
| 17819 | # libtool script then. |
| 17820 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17821 | if test -f "$ltmain_in"; then |
| 17822 | test -f Makefile && make "$ltmain" |
| 17823 | fi |
| 17824 | fi |
| 17825 | |
| 17826 | |
| 17827 | ac_ext=c |
| 17828 | ac_cpp='$CPP $CPPFLAGS' |
| 17829 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17830 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17831 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17832 | |
| 17833 | CC="$lt_save_CC" |
| 17834 | |
| 17835 | else |
| 17836 | tagname="" |
| 17837 | fi |
| 17838 | ;; |
| 17839 | |
| 17840 | RC) |
| 17841 | |
| 17842 | |
| 17843 | |
| 17844 | # Source file extension for RC test sources. |
| 17845 | ac_ext=rc |
| 17846 | |
| 17847 | # Object file extension for compiled RC test sources. |
| 17848 | objext=o |
| 17849 | objext_RC=$objext |
| 17850 | |
| 17851 | # Code to be used in simple compile tests |
| 17852 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 17853 | |
| 17854 | # Code to be used in simple link tests |
| 17855 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 17856 | |
| 17857 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17858 | |
| 17859 | # If no C compiler was specified, use CC. |
| 17860 | LTCC=${LTCC-"$CC"} |
| 17861 | |
| 17862 | # Allow CC to be a program name with arguments. |
| 17863 | compiler=$CC |
| 17864 | |
| 17865 | |
| 17866 | # Allow CC to be a program name with arguments. |
| 17867 | lt_save_CC="$CC" |
| 17868 | CC=${RC-"windres"} |
| 17869 | compiler=$CC |
| 17870 | compiler_RC=$CC |
| 17871 | lt_cv_prog_compiler_c_o_RC=yes |
| 17872 | |
| 17873 | # The else clause should only fire when bootstrapping the |
| 17874 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17875 | # with your package, and you will get complaints that there are |
| 17876 | # no rules to generate ltmain.sh. |
| 17877 | if test -f "$ltmain"; then |
| 17878 | # See if we are running on zsh, and set the options which allow our commands through |
| 17879 | # without removal of \ escapes. |
| 17880 | if test -n "${ZSH_VERSION+set}" ; then |
| 17881 | setopt NO_GLOB_SUBST |
| 17882 | fi |
| 17883 | # Now quote all the things that may contain metacharacters while being |
| 17884 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17885 | # variables and quote the copies for generation of the libtool script. |
| 17886 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 17887 | SED SHELL STRIP \ |
| 17888 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17889 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17890 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17891 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17892 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17893 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17894 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17895 | compiler_RC \ |
| 17896 | CC_RC \ |
| 17897 | LD_RC \ |
| 17898 | lt_prog_compiler_wl_RC \ |
| 17899 | lt_prog_compiler_pic_RC \ |
| 17900 | lt_prog_compiler_static_RC \ |
| 17901 | lt_prog_compiler_no_builtin_flag_RC \ |
| 17902 | export_dynamic_flag_spec_RC \ |
| 17903 | thread_safe_flag_spec_RC \ |
| 17904 | whole_archive_flag_spec_RC \ |
| 17905 | enable_shared_with_static_runtimes_RC \ |
| 17906 | old_archive_cmds_RC \ |
| 17907 | old_archive_from_new_cmds_RC \ |
| 17908 | predep_objects_RC \ |
| 17909 | postdep_objects_RC \ |
| 17910 | predeps_RC \ |
| 17911 | postdeps_RC \ |
| 17912 | compiler_lib_search_path_RC \ |
| 17913 | archive_cmds_RC \ |
| 17914 | archive_expsym_cmds_RC \ |
| 17915 | postinstall_cmds_RC \ |
| 17916 | postuninstall_cmds_RC \ |
| 17917 | old_archive_from_expsyms_cmds_RC \ |
| 17918 | allow_undefined_flag_RC \ |
| 17919 | no_undefined_flag_RC \ |
| 17920 | export_symbols_cmds_RC \ |
| 17921 | hardcode_libdir_flag_spec_RC \ |
| 17922 | hardcode_libdir_flag_spec_ld_RC \ |
| 17923 | hardcode_libdir_separator_RC \ |
| 17924 | hardcode_automatic_RC \ |
| 17925 | module_cmds_RC \ |
| 17926 | module_expsym_cmds_RC \ |
| 17927 | lt_cv_prog_compiler_c_o_RC \ |
| 17928 | exclude_expsyms_RC \ |
| 17929 | include_expsyms_RC; do |
| 17930 | |
| 17931 | case $var in |
| 17932 | old_archive_cmds_RC | \ |
| 17933 | old_archive_from_new_cmds_RC | \ |
| 17934 | archive_cmds_RC | \ |
| 17935 | archive_expsym_cmds_RC | \ |
| 17936 | module_cmds_RC | \ |
| 17937 | module_expsym_cmds_RC | \ |
| 17938 | old_archive_from_expsyms_cmds_RC | \ |
| 17939 | export_symbols_cmds_RC | \ |
| 17940 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17941 | postinstall_cmds | postuninstall_cmds | \ |
| 17942 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17943 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17944 | # Double-quote double-evaled strings. |
| 17945 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17946 | ;; |
| 17947 | *) |
| 17948 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17949 | ;; |
| 17950 | esac |
| 17951 | done |
| 17952 | |
| 17953 | case $lt_echo in |
| 17954 | *'\$0 --fallback-echo"') |
| 17955 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17956 | ;; |
| 17957 | esac |
| 17958 | |
| 17959 | cfgfile="$ofile" |
| 17960 | |
| 17961 | cat <<__EOF__ >> "$cfgfile" |
| 17962 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17963 | |
| 17964 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17965 | |
| 17966 | # Shell to use when invoking shell scripts. |
| 17967 | SHELL=$lt_SHELL |
| 17968 | |
| 17969 | # Whether or not to build shared libraries. |
| 17970 | build_libtool_libs=$enable_shared |
| 17971 | |
| 17972 | # Whether or not to build static libraries. |
| 17973 | build_old_libs=$enable_static |
| 17974 | |
| 17975 | # Whether or not to add -lc for building shared libraries. |
| 17976 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 17977 | |
| 17978 | # Whether or not to disallow shared libs when runtime libs are static |
| 17979 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 17980 | |
| 17981 | # Whether or not to optimize for fast installation. |
| 17982 | fast_install=$enable_fast_install |
| 17983 | |
| 17984 | # The host system. |
| 17985 | host_alias=$host_alias |
| 17986 | host=$host |
| 17987 | |
| 17988 | # An echo program that does not interpret backslashes. |
| 17989 | echo=$lt_echo |
| 17990 | |
| 17991 | # The archiver. |
| 17992 | AR=$lt_AR |
| 17993 | AR_FLAGS=$lt_AR_FLAGS |
| 17994 | |
| 17995 | # A C compiler. |
| 17996 | LTCC=$lt_LTCC |
| 17997 | |
| 17998 | # A language-specific compiler. |
| 17999 | CC=$lt_compiler_RC |
| 18000 | |
| 18001 | # Is the compiler the GNU C compiler? |
| 18002 | with_gcc=$GCC_RC |
| 18003 | |
| 18004 | # An ERE matcher. |
| 18005 | EGREP=$lt_EGREP |
| 18006 | |
| 18007 | # The linker used to build libraries. |
| 18008 | LD=$lt_LD_RC |
| 18009 | |
| 18010 | # Whether we need hard or soft links. |
| 18011 | LN_S=$lt_LN_S |
| 18012 | |
| 18013 | # A BSD-compatible nm program. |
| 18014 | NM=$lt_NM |
| 18015 | |
| 18016 | # A symbol stripping program |
| 18017 | STRIP=$lt_STRIP |
| 18018 | |
| 18019 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18020 | MAGIC_CMD=$MAGIC_CMD |
| 18021 | |
| 18022 | # Used on cygwin: DLL creation program. |
| 18023 | DLLTOOL="$DLLTOOL" |
| 18024 | |
| 18025 | # Used on cygwin: object dumper. |
| 18026 | OBJDUMP="$OBJDUMP" |
| 18027 | |
| 18028 | # Used on cygwin: assembler. |
| 18029 | AS="$AS" |
| 18030 | |
| 18031 | # The name of the directory that contains temporary libtool files. |
| 18032 | objdir=$objdir |
| 18033 | |
| 18034 | # How to create reloadable object files. |
| 18035 | reload_flag=$lt_reload_flag |
| 18036 | reload_cmds=$lt_reload_cmds |
| 18037 | |
| 18038 | # How to pass a linker flag through the compiler. |
| 18039 | wl=$lt_lt_prog_compiler_wl_RC |
| 18040 | |
| 18041 | # Object file suffix (normally "o"). |
| 18042 | objext="$ac_objext" |
| 18043 | |
| 18044 | # Old archive suffix (normally "a"). |
| 18045 | libext="$libext" |
| 18046 | |
| 18047 | # Shared library suffix (normally ".so"). |
| 18048 | shrext='$shrext' |
| 18049 | |
| 18050 | # Executable file suffix (normally ""). |
| 18051 | exeext="$exeext" |
| 18052 | |
| 18053 | # Additional compiler flags for building library objects. |
| 18054 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 18055 | pic_mode=$pic_mode |
| 18056 | |
| 18057 | # What is the maximum length of a command? |
| 18058 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18059 | |
| 18060 | # Does compiler simultaneously support -c and -o options? |
| 18061 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 18062 | |
| 18063 | # Must we lock files when doing compilation ? |
| 18064 | need_locks=$lt_need_locks |
| 18065 | |
| 18066 | # Do we need the lib prefix for modules? |
| 18067 | need_lib_prefix=$need_lib_prefix |
| 18068 | |
| 18069 | # Do we need a version for libraries? |
| 18070 | need_version=$need_version |
| 18071 | |
| 18072 | # Whether dlopen is supported. |
| 18073 | dlopen_support=$enable_dlopen |
| 18074 | |
| 18075 | # Whether dlopen of programs is supported. |
| 18076 | dlopen_self=$enable_dlopen_self |
| 18077 | |
| 18078 | # Whether dlopen of statically linked programs is supported. |
| 18079 | dlopen_self_static=$enable_dlopen_self_static |
| 18080 | |
| 18081 | # Compiler flag to prevent dynamic linking. |
| 18082 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 18083 | |
| 18084 | # Compiler flag to turn off builtin functions. |
| 18085 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 18086 | |
| 18087 | # Compiler flag to allow reflexive dlopens. |
| 18088 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 18089 | |
| 18090 | # Compiler flag to generate shared objects directly from archives. |
| 18091 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 18092 | |
| 18093 | # Compiler flag to generate thread-safe objects. |
| 18094 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 18095 | |
| 18096 | # Library versioning type. |
| 18097 | version_type=$version_type |
| 18098 | |
| 18099 | # Format of library name prefix. |
| 18100 | libname_spec=$lt_libname_spec |
| 18101 | |
| 18102 | # List of archive names. First name is the real one, the rest are links. |
| 18103 | # The last name is the one that the linker finds with -lNAME. |
| 18104 | library_names_spec=$lt_library_names_spec |
| 18105 | |
| 18106 | # The coded name of the library, if different from the real name. |
| 18107 | soname_spec=$lt_soname_spec |
| 18108 | |
| 18109 | # Commands used to build and install an old-style archive. |
| 18110 | RANLIB=$lt_RANLIB |
| 18111 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 18112 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18113 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18114 | |
| 18115 | # Create an old-style archive from a shared archive. |
| 18116 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 18117 | |
| 18118 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18119 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 18120 | |
| 18121 | # Commands used to build and install a shared archive. |
| 18122 | archive_cmds=$lt_archive_cmds_RC |
| 18123 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 18124 | postinstall_cmds=$lt_postinstall_cmds |
| 18125 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18126 | |
| 18127 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18128 | module_cmds=$lt_module_cmds_RC |
| 18129 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 18130 | |
| 18131 | # Commands to strip libraries. |
| 18132 | old_striplib=$lt_old_striplib |
| 18133 | striplib=$lt_striplib |
| 18134 | |
| 18135 | # Dependencies to place before the objects being linked to create a |
| 18136 | # shared library. |
| 18137 | predep_objects=$lt_predep_objects_RC |
| 18138 | |
| 18139 | # Dependencies to place after the objects being linked to create a |
| 18140 | # shared library. |
| 18141 | postdep_objects=$lt_postdep_objects_RC |
| 18142 | |
| 18143 | # Dependencies to place before the objects being linked to create a |
| 18144 | # shared library. |
| 18145 | predeps=$lt_predeps_RC |
| 18146 | |
| 18147 | # Dependencies to place after the objects being linked to create a |
| 18148 | # shared library. |
| 18149 | postdeps=$lt_postdeps_RC |
| 18150 | |
| 18151 | # The library search path used internally by the compiler when linking |
| 18152 | # a shared library. |
| 18153 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 18154 | |
| 18155 | # Method to check whether dependent libraries are shared objects. |
| 18156 | deplibs_check_method=$lt_deplibs_check_method |
| 18157 | |
| 18158 | # Command to use when deplibs_check_method == file_magic. |
| 18159 | file_magic_cmd=$lt_file_magic_cmd |
| 18160 | |
| 18161 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18162 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 18163 | |
| 18164 | # Flag that forces no undefined symbols. |
| 18165 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 18166 | |
| 18167 | # Commands used to finish a libtool library installation in a directory. |
| 18168 | finish_cmds=$lt_finish_cmds |
| 18169 | |
| 18170 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18171 | finish_eval=$lt_finish_eval |
| 18172 | |
| 18173 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18174 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18175 | |
| 18176 | # Transform the output of nm in a proper C declaration |
| 18177 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18178 | |
| 18179 | # Transform the output of nm in a C name address pair |
| 18180 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18181 | |
| 18182 | # This is the shared library runtime path variable. |
| 18183 | runpath_var=$runpath_var |
| 18184 | |
| 18185 | # This is the shared library path variable. |
| 18186 | shlibpath_var=$shlibpath_var |
| 18187 | |
| 18188 | # Is shlibpath searched before the hard-coded library search path? |
| 18189 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18190 | |
| 18191 | # How to hardcode a shared library path into an executable. |
| 18192 | hardcode_action=$hardcode_action_RC |
| 18193 | |
| 18194 | # Whether we should hardcode library paths into libraries. |
| 18195 | hardcode_into_libs=$hardcode_into_libs |
| 18196 | |
| 18197 | # Flag to hardcode \$libdir into a binary during linking. |
| 18198 | # This must work even if \$libdir does not exist. |
| 18199 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 18200 | |
| 18201 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18202 | # a binary during linking. This must work even if \$libdir does |
| 18203 | # not exist. |
| 18204 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 18205 | |
| 18206 | # Whether we need a single -rpath flag with a separated argument. |
| 18207 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 18208 | |
| 18209 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18210 | # resulting binary. |
| 18211 | hardcode_direct=$hardcode_direct_RC |
| 18212 | |
| 18213 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18214 | # resulting binary. |
| 18215 | hardcode_minus_L=$hardcode_minus_L_RC |
| 18216 | |
| 18217 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18218 | # the resulting binary. |
| 18219 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 18220 | |
| 18221 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18222 | # and all subsequent libraries and executables linked against it. |
| 18223 | hardcode_automatic=$hardcode_automatic_RC |
| 18224 | |
| 18225 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18226 | # restored at relink time. |
| 18227 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18228 | |
| 18229 | # Whether libtool must link a program against all its dependency libraries. |
| 18230 | link_all_deplibs=$link_all_deplibs_RC |
| 18231 | |
| 18232 | # Compile-time system search path for libraries |
| 18233 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18234 | |
| 18235 | # Run-time system search path for libraries |
| 18236 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18237 | |
| 18238 | # Fix the shell variable \$srcfile for the compiler. |
| 18239 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 18240 | |
| 18241 | # Set to yes if exported symbols are required. |
| 18242 | always_export_symbols=$always_export_symbols_RC |
| 18243 | |
| 18244 | # The commands to list exported symbols. |
| 18245 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 18246 | |
| 18247 | # The commands to extract the exported symbol list from a shared archive. |
| 18248 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18249 | |
| 18250 | # Symbols that should not be listed in the preloaded symbols. |
| 18251 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 18252 | |
| 18253 | # Symbols that must always be exported. |
| 18254 | include_expsyms=$lt_include_expsyms_RC |
| 18255 | |
| 18256 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18257 | |
| 18258 | __EOF__ |
| 18259 | |
| 18260 | |
| 18261 | else |
| 18262 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18263 | # `config.status --recheck' to rerun these tests and create the |
| 18264 | # libtool script then. |
| 18265 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18266 | if test -f "$ltmain_in"; then |
| 18267 | test -f Makefile && make "$ltmain" |
| 18268 | fi |
| 18269 | fi |
| 18270 | |
| 18271 | |
| 18272 | ac_ext=c |
| 18273 | ac_cpp='$CPP $CPPFLAGS' |
| 18274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18277 | |
| 18278 | CC="$lt_save_CC" |
| 18279 | |
| 18280 | ;; |
| 18281 | |
| 18282 | *) |
| 18283 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 18284 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 18285 | { (exit 1); exit 1; }; } |
| 18286 | ;; |
| 18287 | esac |
| 18288 | |
| 18289 | # Append the new tag name to the list of available tags. |
| 18290 | if test -n "$tagname" ; then |
| 18291 | available_tags="$available_tags $tagname" |
| 18292 | fi |
| 18293 | fi |
| 18294 | done |
| 18295 | IFS="$lt_save_ifs" |
| 18296 | |
| 18297 | # Now substitute the updated list of available tags. |
| 18298 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 18299 | mv "${ofile}T" "$ofile" |
| 18300 | chmod +x "$ofile" |
| 18301 | else |
| 18302 | rm -f "${ofile}T" |
| 18303 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 18304 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 18305 | { (exit 1); exit 1; }; } |
| 18306 | fi |
| 18307 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18308 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18309 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18310 | |
| 18311 | # This can be used to rebuild libtool when needed |
| 18312 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 18313 | |
| 18314 | # Always use our own libtool. |
| 18315 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 18316 | |
| 18317 | # Prevent multiple expansion |
| 18318 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18319 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18320 | |
| 18321 | |
| 18322 | |
| 18323 | |
| 18324 | |
| 18325 | |
| 18326 | |
| 18327 | |
| 18328 | |
| 18329 | |
| 18330 | |
| 18331 | |
| 18332 | |
| 18333 | |
| 18334 | |
| 18335 | |
| 18336 | |
| 18337 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18338 | # Find a good install program. We prefer a C program (faster), |
| 18339 | # so one script is as good as another. But avoid the broken or |
| 18340 | # incompatible versions: |
| 18341 | # SysV /etc/install, /usr/sbin/install |
| 18342 | # SunOS /usr/etc/install |
| 18343 | # IRIX /sbin/install |
| 18344 | # AIX /bin/install |
| 18345 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 18346 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 18347 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 18348 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18349 | # OS/2's system install, which has a completely different semantic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18350 | # ./install, which can be erroneously created by make from ./install.sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18351 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 18352 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18353 | if test -z "$INSTALL"; then |
| 18354 | if test "${ac_cv_path_install+set}" = set; then |
| 18355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18356 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18358 | for as_dir in $PATH |
| 18359 | do |
| 18360 | IFS=$as_save_IFS |
| 18361 | test -z "$as_dir" && as_dir=. |
| 18362 | # Account for people who put trailing slashes in PATH elements. |
| 18363 | case $as_dir/ in |
| 18364 | ./ | .// | /cC/* | \ |
| 18365 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18366 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18367 | /usr/ucb/* ) ;; |
| 18368 | *) |
| 18369 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 18370 | # Don't use installbsd from OSF since it installs stuff as root |
| 18371 | # by default. |
| 18372 | for ac_prog in ginstall scoinst install; do |
| 18373 | for ac_exec_ext in '' $ac_executable_extensions; do |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18374 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 18375 | if test $ac_prog = install && |
| 18376 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 18377 | # AIX install. It has an incompatible calling convention. |
| 18378 | : |
| 18379 | elif test $ac_prog = install && |
| 18380 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 18381 | # program-specific install script used by HP pwplus--don't use. |
| 18382 | : |
| 18383 | else |
| 18384 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 18385 | break 3 |
| 18386 | fi |
| 18387 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18388 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18389 | done |
| 18390 | ;; |
| 18391 | esac |
| 18392 | done |
| 18393 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18394 | |
| 18395 | fi |
| 18396 | if test "${ac_cv_path_install+set}" = set; then |
| 18397 | INSTALL=$ac_cv_path_install |
| 18398 | else |
| 18399 | # As a last resort, use the slow shell script. We don't cache a |
| 18400 | # path for INSTALL within a source directory, because that will |
| 18401 | # break other packages using the cache if that directory is |
| 18402 | # removed, or if the path is relative. |
| 18403 | INSTALL=$ac_install_sh |
| 18404 | fi |
| 18405 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18406 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18407 | echo "${ECHO_T}$INSTALL" >&6 |
| 18408 | |
| 18409 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 18410 | # It thinks the first close brace ends the variable substitution. |
| 18411 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 18412 | |
| 18413 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 18414 | |
| 18415 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 18416 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18417 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18418 | ######### |
| 18419 | # Set up an appropriate program prefix |
| 18420 | # |
| 18421 | if test "$program_prefix" = "NONE"; then |
| 18422 | program_prefix="" |
| 18423 | fi |
| 18424 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18425 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 18426 | VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` |
| 18427 | echo "Version set to $VERSION" |
| 18428 | |
| 18429 | RELEASE=`cat $srcdir/VERSION` |
| 18430 | echo "Release set to $RELEASE" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18431 | |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 18432 | VERSION_NUMBER=`cat $srcdir/VERSION \ |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame^] | 18433 | | sed 's/[^0-9]/ /g' \ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 18434 | | awk '{printf "%d%03d%03d",$1,$2,$3}'` |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 18435 | echo "Version number set to $VERSION_NUMBER" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18436 | |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame^] | 18437 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18438 | ######### |
| 18439 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 18440 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 18441 | # $host is the hostname of the build system. If still no hints are |
| 18442 | # found, try looking in $system.hints and ../$system.hints where |
| 18443 | # $system is the result of uname -s. |
| 18444 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18445 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18446 | # Check whether --with-hints or --without-hints was given. |
| 18447 | if test "${with_hints+set}" = set; then |
| 18448 | withval="$with_hints" |
| 18449 | hints=$withval |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18450 | fi; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18451 | if test "$hints" = ""; then |
| 18452 | host=`hostname | sed 's/\..*//'` |
| 18453 | if test -r $host.hints; then |
| 18454 | hints=$host.hints |
| 18455 | else |
| 18456 | if test -r ../$host.hints; then |
| 18457 | hints=../$host.hints |
| 18458 | fi |
| 18459 | fi |
| 18460 | fi |
| 18461 | if test "$hints" = ""; then |
| 18462 | sys=`uname -s` |
| 18463 | if test -r $sys.hints; then |
| 18464 | hints=$sys.hints |
| 18465 | else |
| 18466 | if test -r ../$sys.hints; then |
| 18467 | hints=../$sys.hints |
| 18468 | fi |
| 18469 | fi |
| 18470 | fi |
| 18471 | if test "$hints" != ""; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18472 | echo "$as_me:$LINENO: result: reading hints from $hints" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18473 | echo "${ECHO_T}reading hints from $hints" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18474 | . $hints |
| 18475 | fi |
| 18476 | |
| 18477 | ######### |
| 18478 | # Locate a compiler for the build machine. This compiler should |
| 18479 | # generate command-line programs that run on the build machine. |
| 18480 | # |
| 18481 | default_build_cflags="-g" |
| 18482 | if test "$config_BUILD_CC" = ""; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18483 | ac_ext=c |
| 18484 | ac_cpp='$CPP $CPPFLAGS' |
| 18485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18488 | if test -n "$ac_tool_prefix"; then |
| 18489 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 18490 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18493 | if test "${ac_cv_prog_CC+set}" = set; then |
| 18494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18495 | else |
| 18496 | if test -n "$CC"; then |
| 18497 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 18498 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18500 | for as_dir in $PATH |
| 18501 | do |
| 18502 | IFS=$as_save_IFS |
| 18503 | test -z "$as_dir" && as_dir=. |
| 18504 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18506 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 18507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18508 | break 2 |
| 18509 | fi |
| 18510 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18511 | done |
| 18512 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18513 | fi |
| 18514 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18515 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18516 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18517 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18518 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18519 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18520 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18521 | echo "${ECHO_T}no" >&6 |
| 18522 | fi |
| 18523 | |
| 18524 | fi |
| 18525 | if test -z "$ac_cv_prog_CC"; then |
| 18526 | ac_ct_CC=$CC |
| 18527 | # Extract the first word of "gcc", so it can be a program name with args. |
| 18528 | set dummy gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18531 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 18532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18533 | else |
| 18534 | if test -n "$ac_ct_CC"; then |
| 18535 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 18536 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18538 | for as_dir in $PATH |
| 18539 | do |
| 18540 | IFS=$as_save_IFS |
| 18541 | test -z "$as_dir" && as_dir=. |
| 18542 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18544 | ac_cv_prog_ac_ct_CC="gcc" |
| 18545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18546 | break 2 |
| 18547 | fi |
| 18548 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18549 | done |
| 18550 | |
| 18551 | fi |
| 18552 | fi |
| 18553 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 18554 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18555 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18556 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 18557 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18558 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18559 | echo "${ECHO_T}no" >&6 |
| 18560 | fi |
| 18561 | |
| 18562 | CC=$ac_ct_CC |
| 18563 | else |
| 18564 | CC="$ac_cv_prog_CC" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18565 | fi |
| 18566 | |
| 18567 | if test -z "$CC"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18568 | if test -n "$ac_tool_prefix"; then |
| 18569 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 18570 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18571 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18573 | if test "${ac_cv_prog_CC+set}" = set; then |
| 18574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18575 | else |
| 18576 | if test -n "$CC"; then |
| 18577 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 18578 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18580 | for as_dir in $PATH |
| 18581 | do |
| 18582 | IFS=$as_save_IFS |
| 18583 | test -z "$as_dir" && as_dir=. |
| 18584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18586 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 18587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18588 | break 2 |
| 18589 | fi |
| 18590 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18591 | done |
| 18592 | |
| 18593 | fi |
| 18594 | fi |
| 18595 | CC=$ac_cv_prog_CC |
| 18596 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18597 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18598 | echo "${ECHO_T}$CC" >&6 |
| 18599 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18600 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18601 | echo "${ECHO_T}no" >&6 |
| 18602 | fi |
| 18603 | |
| 18604 | fi |
| 18605 | if test -z "$ac_cv_prog_CC"; then |
| 18606 | ac_ct_CC=$CC |
| 18607 | # Extract the first word of "cc", so it can be a program name with args. |
| 18608 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18611 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 18612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18613 | else |
| 18614 | if test -n "$ac_ct_CC"; then |
| 18615 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 18616 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18618 | for as_dir in $PATH |
| 18619 | do |
| 18620 | IFS=$as_save_IFS |
| 18621 | test -z "$as_dir" && as_dir=. |
| 18622 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18624 | ac_cv_prog_ac_ct_CC="cc" |
| 18625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18626 | break 2 |
| 18627 | fi |
| 18628 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18629 | done |
| 18630 | |
| 18631 | fi |
| 18632 | fi |
| 18633 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 18634 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18635 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18636 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 18637 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18638 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18639 | echo "${ECHO_T}no" >&6 |
| 18640 | fi |
| 18641 | |
| 18642 | CC=$ac_ct_CC |
| 18643 | else |
| 18644 | CC="$ac_cv_prog_CC" |
| 18645 | fi |
| 18646 | |
| 18647 | fi |
| 18648 | if test -z "$CC"; then |
| 18649 | # Extract the first word of "cc", so it can be a program name with args. |
| 18650 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18653 | if test "${ac_cv_prog_CC+set}" = set; then |
| 18654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18655 | else |
| 18656 | if test -n "$CC"; then |
| 18657 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 18658 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18659 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18661 | for as_dir in $PATH |
| 18662 | do |
| 18663 | IFS=$as_save_IFS |
| 18664 | test -z "$as_dir" && as_dir=. |
| 18665 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18667 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 18668 | ac_prog_rejected=yes |
| 18669 | continue |
| 18670 | fi |
| 18671 | ac_cv_prog_CC="cc" |
| 18672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18673 | break 2 |
| 18674 | fi |
| 18675 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18676 | done |
| 18677 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18678 | if test $ac_prog_rejected = yes; then |
| 18679 | # We found a bogon in the path, so make sure we never use it. |
| 18680 | set dummy $ac_cv_prog_CC |
| 18681 | shift |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18682 | if test $# != 0; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18683 | # We chose a different compiler from the bogus one. |
| 18684 | # However, it has the same basename, so the bogon will be chosen |
| 18685 | # first if we set CC to just the basename; use the full file name. |
| 18686 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18687 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18688 | fi |
| 18689 | fi |
| 18690 | fi |
| 18691 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18692 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18693 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18694 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18695 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18696 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18697 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18698 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18699 | fi |
| 18700 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18701 | fi |
| 18702 | if test -z "$CC"; then |
| 18703 | if test -n "$ac_tool_prefix"; then |
| 18704 | for ac_prog in cl |
| 18705 | do |
| 18706 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 18707 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18710 | if test "${ac_cv_prog_CC+set}" = set; then |
| 18711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18712 | else |
| 18713 | if test -n "$CC"; then |
| 18714 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 18715 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18717 | for as_dir in $PATH |
| 18718 | do |
| 18719 | IFS=$as_save_IFS |
| 18720 | test -z "$as_dir" && as_dir=. |
| 18721 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18723 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 18724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18725 | break 2 |
| 18726 | fi |
| 18727 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18728 | done |
| 18729 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18730 | fi |
| 18731 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18732 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18733 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18734 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18735 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18736 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18737 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18738 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18739 | fi |
| 18740 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18741 | test -n "$CC" && break |
| 18742 | done |
| 18743 | fi |
| 18744 | if test -z "$CC"; then |
| 18745 | ac_ct_CC=$CC |
| 18746 | for ac_prog in cl |
| 18747 | do |
| 18748 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18749 | set dummy $ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18752 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 18753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18754 | else |
| 18755 | if test -n "$ac_ct_CC"; then |
| 18756 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 18757 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18759 | for as_dir in $PATH |
| 18760 | do |
| 18761 | IFS=$as_save_IFS |
| 18762 | test -z "$as_dir" && as_dir=. |
| 18763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18765 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 18766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18767 | break 2 |
| 18768 | fi |
| 18769 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18770 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18771 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18772 | fi |
| 18773 | fi |
| 18774 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 18775 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18776 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18777 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 18778 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18779 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18780 | echo "${ECHO_T}no" >&6 |
| 18781 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18782 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18783 | test -n "$ac_ct_CC" && break |
| 18784 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18785 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18786 | CC=$ac_ct_CC |
| 18787 | fi |
| 18788 | |
| 18789 | fi |
| 18790 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18791 | |
| 18792 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 18793 | See \`config.log' for more details." >&5 |
| 18794 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 18795 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18796 | { (exit 1); exit 1; }; } |
| 18797 | |
| 18798 | # Provide some information about the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18799 | echo "$as_me:$LINENO:" \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18800 | "checking for C compiler version" >&5 |
| 18801 | ac_compiler=`set X $ac_compile; echo $2` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18802 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18803 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 18804 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18806 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18807 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18808 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 18809 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18811 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18812 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18813 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 18814 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18816 | (exit $ac_status); } |
| 18817 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18818 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18819 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 18820 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 18821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18822 | else |
| 18823 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18824 | /* confdefs.h. */ |
| 18825 | _ACEOF |
| 18826 | cat confdefs.h >>conftest.$ac_ext |
| 18827 | cat >>conftest.$ac_ext <<_ACEOF |
| 18828 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18829 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18830 | int |
| 18831 | main () |
| 18832 | { |
| 18833 | #ifndef __GNUC__ |
| 18834 | choke me |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18835 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18836 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18837 | ; |
| 18838 | return 0; |
| 18839 | } |
| 18840 | _ACEOF |
| 18841 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18843 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18844 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18846 | rm -f conftest.er1 |
| 18847 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18849 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 18850 | { ac_try='test -z "$ac_c_werror_flag" |
| 18851 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18853 | (eval $ac_try) 2>&5 |
| 18854 | ac_status=$? |
| 18855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18856 | (exit $ac_status); }; } && |
| 18857 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18859 | (eval $ac_try) 2>&5 |
| 18860 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18862 | (exit $ac_status); }; }; then |
| 18863 | ac_compiler_gnu=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18864 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18865 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18867 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18868 | ac_compiler_gnu=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18869 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18871 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18872 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18873 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18874 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18875 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 18876 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 18877 | ac_test_CFLAGS=${CFLAGS+set} |
| 18878 | ac_save_CFLAGS=$CFLAGS |
| 18879 | CFLAGS="-g" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18880 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18881 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 18882 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 18883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18884 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18885 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18886 | /* confdefs.h. */ |
| 18887 | _ACEOF |
| 18888 | cat confdefs.h >>conftest.$ac_ext |
| 18889 | cat >>conftest.$ac_ext <<_ACEOF |
| 18890 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18891 | |
| 18892 | int |
| 18893 | main () |
| 18894 | { |
| 18895 | |
| 18896 | ; |
| 18897 | return 0; |
| 18898 | } |
| 18899 | _ACEOF |
| 18900 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18902 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18903 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18905 | rm -f conftest.er1 |
| 18906 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18908 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 18909 | { ac_try='test -z "$ac_c_werror_flag" |
| 18910 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18912 | (eval $ac_try) 2>&5 |
| 18913 | ac_status=$? |
| 18914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18915 | (exit $ac_status); }; } && |
| 18916 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18918 | (eval $ac_try) 2>&5 |
| 18919 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18921 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18922 | ac_cv_prog_cc_g=yes |
| 18923 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18924 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18926 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18927 | ac_cv_prog_cc_g=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18928 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18930 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18931 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18932 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18933 | if test "$ac_test_CFLAGS" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18934 | CFLAGS=$ac_save_CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18935 | elif test $ac_cv_prog_cc_g = yes; then |
| 18936 | if test "$GCC" = yes; then |
| 18937 | CFLAGS="-g -O2" |
| 18938 | else |
| 18939 | CFLAGS="-g" |
| 18940 | fi |
| 18941 | else |
| 18942 | if test "$GCC" = yes; then |
| 18943 | CFLAGS="-O2" |
| 18944 | else |
| 18945 | CFLAGS= |
| 18946 | fi |
| 18947 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18948 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 18949 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 18950 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 18951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18952 | else |
| 18953 | ac_cv_prog_cc_stdc=no |
| 18954 | ac_save_CC=$CC |
| 18955 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18956 | /* confdefs.h. */ |
| 18957 | _ACEOF |
| 18958 | cat confdefs.h >>conftest.$ac_ext |
| 18959 | cat >>conftest.$ac_ext <<_ACEOF |
| 18960 | /* end confdefs.h. */ |
| 18961 | #include <stdarg.h> |
| 18962 | #include <stdio.h> |
| 18963 | #include <sys/types.h> |
| 18964 | #include <sys/stat.h> |
| 18965 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 18966 | struct buf { int x; }; |
| 18967 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 18968 | static char *e (p, i) |
| 18969 | char **p; |
| 18970 | int i; |
| 18971 | { |
| 18972 | return p[i]; |
| 18973 | } |
| 18974 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 18975 | { |
| 18976 | char *s; |
| 18977 | va_list v; |
| 18978 | va_start (v,p); |
| 18979 | s = g (p, va_arg (v,int)); |
| 18980 | va_end (v); |
| 18981 | return s; |
| 18982 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18983 | |
| 18984 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 18985 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 18986 | These don't provoke an error unfortunately, instead are silently treated |
| 18987 | as 'x'. The following induces an error, until -std1 is added to get |
| 18988 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 18989 | array size at least. It's necessary to write '\x00'==0 to get something |
| 18990 | that's true only with -std1. */ |
| 18991 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 18992 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18993 | int test (int i, double x); |
| 18994 | struct s1 {int (*f) (int a);}; |
| 18995 | struct s2 {int (*f) (double a);}; |
| 18996 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 18997 | int argc; |
| 18998 | char **argv; |
| 18999 | int |
| 19000 | main () |
| 19001 | { |
| 19002 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 19003 | ; |
| 19004 | return 0; |
| 19005 | } |
| 19006 | _ACEOF |
| 19007 | # Don't try gcc -ansi; that turns off useful extensions and |
| 19008 | # breaks some systems' header files. |
| 19009 | # AIX -qlanglvl=ansi |
| 19010 | # Ultrix and OSF/1 -std1 |
| 19011 | # HP-UX 10.20 and later -Ae |
| 19012 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 19013 | # SVR4 -Xc -D__EXTENSIONS__ |
| 19014 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 19015 | do |
| 19016 | CC="$ac_save_CC $ac_arg" |
| 19017 | rm -f conftest.$ac_objext |
| 19018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19019 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19020 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19022 | rm -f conftest.er1 |
| 19023 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19025 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19026 | { ac_try='test -z "$ac_c_werror_flag" |
| 19027 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19029 | (eval $ac_try) 2>&5 |
| 19030 | ac_status=$? |
| 19031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19032 | (exit $ac_status); }; } && |
| 19033 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19035 | (eval $ac_try) 2>&5 |
| 19036 | ac_status=$? |
| 19037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19038 | (exit $ac_status); }; }; then |
| 19039 | ac_cv_prog_cc_stdc=$ac_arg |
| 19040 | break |
| 19041 | else |
| 19042 | echo "$as_me: failed program was:" >&5 |
| 19043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19044 | |
| 19045 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19046 | rm -f conftest.err conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19047 | done |
| 19048 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 19049 | CC=$ac_save_CC |
| 19050 | |
| 19051 | fi |
| 19052 | |
| 19053 | case "x$ac_cv_prog_cc_stdc" in |
| 19054 | x|xno) |
| 19055 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 19056 | echo "${ECHO_T}none needed" >&6 ;; |
| 19057 | *) |
| 19058 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 19059 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 19060 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 19061 | esac |
| 19062 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19063 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 19064 | # in C++ we need to declare it. In case someone uses the same compiler |
| 19065 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 19066 | # the declaration of exit, since it's the most demanding environment. |
| 19067 | cat >conftest.$ac_ext <<_ACEOF |
| 19068 | #ifndef __cplusplus |
| 19069 | choke me |
| 19070 | #endif |
| 19071 | _ACEOF |
| 19072 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19074 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19075 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19077 | rm -f conftest.er1 |
| 19078 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19080 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19081 | { ac_try='test -z "$ac_c_werror_flag" |
| 19082 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19084 | (eval $ac_try) 2>&5 |
| 19085 | ac_status=$? |
| 19086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19087 | (exit $ac_status); }; } && |
| 19088 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19090 | (eval $ac_try) 2>&5 |
| 19091 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19093 | (exit $ac_status); }; }; then |
| 19094 | for ac_declaration in \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19095 | '' \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19096 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 19097 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 19098 | 'extern "C" void exit (int) throw ();' \ |
| 19099 | 'extern "C" void exit (int);' \ |
| 19100 | 'void exit (int);' |
| 19101 | do |
| 19102 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19103 | /* confdefs.h. */ |
| 19104 | _ACEOF |
| 19105 | cat confdefs.h >>conftest.$ac_ext |
| 19106 | cat >>conftest.$ac_ext <<_ACEOF |
| 19107 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19108 | $ac_declaration |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19109 | #include <stdlib.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19110 | int |
| 19111 | main () |
| 19112 | { |
| 19113 | exit (42); |
| 19114 | ; |
| 19115 | return 0; |
| 19116 | } |
| 19117 | _ACEOF |
| 19118 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19120 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19121 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19123 | rm -f conftest.er1 |
| 19124 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19126 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19127 | { ac_try='test -z "$ac_c_werror_flag" |
| 19128 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19130 | (eval $ac_try) 2>&5 |
| 19131 | ac_status=$? |
| 19132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19133 | (exit $ac_status); }; } && |
| 19134 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19136 | (eval $ac_try) 2>&5 |
| 19137 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19139 | (exit $ac_status); }; }; then |
| 19140 | : |
| 19141 | else |
| 19142 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19144 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19145 | continue |
| 19146 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19148 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19149 | /* confdefs.h. */ |
| 19150 | _ACEOF |
| 19151 | cat confdefs.h >>conftest.$ac_ext |
| 19152 | cat >>conftest.$ac_ext <<_ACEOF |
| 19153 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19154 | $ac_declaration |
| 19155 | int |
| 19156 | main () |
| 19157 | { |
| 19158 | exit (42); |
| 19159 | ; |
| 19160 | return 0; |
| 19161 | } |
| 19162 | _ACEOF |
| 19163 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19165 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19166 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19168 | rm -f conftest.er1 |
| 19169 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19171 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19172 | { ac_try='test -z "$ac_c_werror_flag" |
| 19173 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19175 | (eval $ac_try) 2>&5 |
| 19176 | ac_status=$? |
| 19177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19178 | (exit $ac_status); }; } && |
| 19179 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19181 | (eval $ac_try) 2>&5 |
| 19182 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19184 | (exit $ac_status); }; }; then |
| 19185 | break |
| 19186 | else |
| 19187 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19189 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19190 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19192 | done |
| 19193 | rm -f conftest* |
| 19194 | if test -n "$ac_declaration"; then |
| 19195 | echo '#ifdef __cplusplus' >>confdefs.h |
| 19196 | echo $ac_declaration >>confdefs.h |
| 19197 | echo '#endif' >>confdefs.h |
| 19198 | fi |
| 19199 | |
| 19200 | else |
| 19201 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19203 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19204 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19206 | ac_ext=c |
| 19207 | ac_cpp='$CPP $CPPFLAGS' |
| 19208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19211 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19212 | if test "$cross_compiling" = "yes"; then |
| 19213 | { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5 |
| 19214 | echo "$as_me: error: unable to find a compiler for building build tools" >&2;} |
| 19215 | { (exit 1); exit 1; }; } |
| 19216 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19217 | BUILD_CC=$CC |
| 19218 | default_build_cflags=$CFLAGS |
| 19219 | else |
| 19220 | BUILD_CC=$config_BUILD_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19221 | echo "$as_me:$LINENO: checking host compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19222 | echo $ECHO_N "checking host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19223 | CC=$BUILD_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19224 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19225 | echo "${ECHO_T}$BUILD_CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19226 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19227 | echo "$as_me:$LINENO: checking switches for the host compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19228 | echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19229 | if test "$config_BUILD_CFLAGS" != ""; then |
| 19230 | CFLAGS=$config_BUILD_CFLAGS |
| 19231 | BUILD_CFLAGS=$config_BUILD_CFLAGS |
| 19232 | else |
| 19233 | BUILD_CFLAGS=$default_build_cflags |
| 19234 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19235 | echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19236 | echo "${ECHO_T}$BUILD_CFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19237 | if test "$config_BUILD_LIBS" != ""; then |
| 19238 | BUILD_LIBS=$config_BUILD_LIBS |
| 19239 | fi |
| 19240 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19241 | |
| 19242 | |
| 19243 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19244 | ########## |
| 19245 | # Locate a compiler that converts C code into *.o files that run on |
| 19246 | # the target machine. |
| 19247 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19248 | echo "$as_me:$LINENO: checking target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19249 | echo $ECHO_N "checking target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19250 | if test "$config_TARGET_CC" != ""; then |
| 19251 | TARGET_CC=$config_TARGET_CC |
| 19252 | else |
| 19253 | TARGET_CC=$BUILD_CC |
| 19254 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19255 | echo "$as_me:$LINENO: result: $TARGET_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19256 | echo "${ECHO_T}$TARGET_CC" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19257 | echo "$as_me:$LINENO: checking switches on the target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19258 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19259 | if test "$config_TARGET_CFLAGS" != ""; then |
| 19260 | TARGET_CFLAGS=$config_TARGET_CFLAGS |
| 19261 | else |
| 19262 | TARGET_CFLAGS=$BUILD_CFLAGS |
| 19263 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19264 | echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19265 | echo "${ECHO_T}$TARGET_CFLAGS" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19266 | echo "$as_me:$LINENO: checking target linker" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19267 | echo $ECHO_N "checking target linker... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19268 | if test "$config_TARGET_LINK" = ""; then |
| 19269 | TARGET_LINK=$TARGET_CC |
| 19270 | else |
| 19271 | TARGET_LINK=$config_TARGET_LINK |
| 19272 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19273 | echo "$as_me:$LINENO: result: $TARGET_LINK" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19274 | echo "${ECHO_T}$TARGET_LINK" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19275 | echo "$as_me:$LINENO: checking switches on the target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19276 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19277 | if test "$config_TARGET_TFLAGS" != ""; then |
| 19278 | TARGET_TFLAGS=$config_TARGET_TFLAGS |
| 19279 | else |
| 19280 | TARGET_TFLAGS=$BUILD_CFLAGS |
| 19281 | fi |
| 19282 | if test "$config_TARGET_RANLIB" != ""; then |
| 19283 | TARGET_RANLIB=$config_TARGET_RANLIB |
| 19284 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19285 | if test -n "$ac_tool_prefix"; then |
| 19286 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 19287 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19288 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19289 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19290 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 19291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19292 | else |
| 19293 | if test -n "$RANLIB"; then |
| 19294 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 19295 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19297 | for as_dir in $PATH |
| 19298 | do |
| 19299 | IFS=$as_save_IFS |
| 19300 | test -z "$as_dir" && as_dir=. |
| 19301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19302 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19303 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 19304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19305 | break 2 |
| 19306 | fi |
| 19307 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19308 | done |
| 19309 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19310 | fi |
| 19311 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19312 | RANLIB=$ac_cv_prog_RANLIB |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19313 | if test -n "$RANLIB"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19314 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19315 | echo "${ECHO_T}$RANLIB" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19316 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19317 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19318 | echo "${ECHO_T}no" >&6 |
| 19319 | fi |
| 19320 | |
| 19321 | fi |
| 19322 | if test -z "$ac_cv_prog_RANLIB"; then |
| 19323 | ac_ct_RANLIB=$RANLIB |
| 19324 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 19325 | set dummy ranlib; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19326 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19328 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 19329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19330 | else |
| 19331 | if test -n "$ac_ct_RANLIB"; then |
| 19332 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 19333 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19335 | for as_dir in $PATH |
| 19336 | do |
| 19337 | IFS=$as_save_IFS |
| 19338 | test -z "$as_dir" && as_dir=. |
| 19339 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19341 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 19342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19343 | break 2 |
| 19344 | fi |
| 19345 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19346 | done |
| 19347 | |
| 19348 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 19349 | fi |
| 19350 | fi |
| 19351 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 19352 | if test -n "$ac_ct_RANLIB"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19353 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19354 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 19355 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19356 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19357 | echo "${ECHO_T}no" >&6 |
| 19358 | fi |
| 19359 | |
| 19360 | RANLIB=$ac_ct_RANLIB |
| 19361 | else |
| 19362 | RANLIB="$ac_cv_prog_RANLIB" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19363 | fi |
| 19364 | |
| 19365 | TARGET_RANLIB=$RANLIB |
| 19366 | fi |
| 19367 | if test "$config_TARGET_AR" != ""; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 19368 | TARGET_AR=$config_TARGET_AR |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19369 | else |
| 19370 | TARGET_AR='ar cr' |
| 19371 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19372 | echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19373 | echo "${ECHO_T}$TARGET_TFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19374 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19375 | |
| 19376 | |
| 19377 | |
| 19378 | |
| 19379 | |
| 19380 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19381 | # Set the $cross variable if we are cross-compiling. Make |
| 19382 | # it 0 if we are not. |
| 19383 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19384 | echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19385 | echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19386 | if test "$BUILD_CC" = "$TARGET_CC"; then |
| 19387 | cross=0 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19388 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19389 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19390 | else |
| 19391 | cross=1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19392 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19393 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19394 | fi |
| 19395 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19396 | ########## |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19397 | # Do we want to support multithreaded use of sqlite |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19398 | # |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19399 | # Check whether --enable-threadsafe or --disable-threadsafe was given. |
| 19400 | if test "${enable_threadsafe+set}" = set; then |
| 19401 | enableval="$enable_threadsafe" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19402 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19403 | else |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19404 | enable_threadsafe=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19405 | fi; |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19406 | echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 |
| 19407 | echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6 |
| 19408 | if test "$enable_threadsafe" = "no"; then |
| 19409 | THREADSAFE=0 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19410 | echo "$as_me:$LINENO: result: no" >&5 |
| 19411 | echo "${ECHO_T}no" >&6 |
| 19412 | else |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19413 | THREADSAFE=1 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19414 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19415 | echo "${ECHO_T}yes" >&6 |
| 19416 | fi |
| 19417 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19418 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19419 | if test "$THREADSAFE" = "1"; then |
| 19420 | LIBS="" |
| 19421 | |
| 19422 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 19423 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 19424 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 19425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19426 | else |
| 19427 | ac_check_lib_save_LIBS=$LIBS |
| 19428 | LIBS="-lpthread $LIBS" |
| 19429 | cat >conftest.$ac_ext <<_ACEOF |
| 19430 | /* confdefs.h. */ |
| 19431 | _ACEOF |
| 19432 | cat confdefs.h >>conftest.$ac_ext |
| 19433 | cat >>conftest.$ac_ext <<_ACEOF |
| 19434 | /* end confdefs.h. */ |
| 19435 | |
| 19436 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19437 | #ifdef __cplusplus |
| 19438 | extern "C" |
| 19439 | #endif |
| 19440 | /* We use char because int might match the return type of a gcc2 |
| 19441 | builtin and then its argument prototype would still apply. */ |
| 19442 | char pthread_create (); |
| 19443 | int |
| 19444 | main () |
| 19445 | { |
| 19446 | pthread_create (); |
| 19447 | ; |
| 19448 | return 0; |
| 19449 | } |
| 19450 | _ACEOF |
| 19451 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19453 | (eval $ac_link) 2>conftest.er1 |
| 19454 | ac_status=$? |
| 19455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19456 | rm -f conftest.er1 |
| 19457 | cat conftest.err >&5 |
| 19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19459 | (exit $ac_status); } && |
| 19460 | { ac_try='test -z "$ac_c_werror_flag" |
| 19461 | || test ! -s conftest.err' |
| 19462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19463 | (eval $ac_try) 2>&5 |
| 19464 | ac_status=$? |
| 19465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19466 | (exit $ac_status); }; } && |
| 19467 | { ac_try='test -s conftest$ac_exeext' |
| 19468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19469 | (eval $ac_try) 2>&5 |
| 19470 | ac_status=$? |
| 19471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19472 | (exit $ac_status); }; }; then |
| 19473 | ac_cv_lib_pthread_pthread_create=yes |
| 19474 | else |
| 19475 | echo "$as_me: failed program was:" >&5 |
| 19476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19477 | |
| 19478 | ac_cv_lib_pthread_pthread_create=no |
| 19479 | fi |
| 19480 | rm -f conftest.err conftest.$ac_objext \ |
| 19481 | conftest$ac_exeext conftest.$ac_ext |
| 19482 | LIBS=$ac_check_lib_save_LIBS |
| 19483 | fi |
| 19484 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 19485 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 19486 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 19487 | cat >>confdefs.h <<_ACEOF |
| 19488 | #define HAVE_LIBPTHREAD 1 |
| 19489 | _ACEOF |
| 19490 | |
| 19491 | LIBS="-lpthread $LIBS" |
| 19492 | |
| 19493 | fi |
| 19494 | |
| 19495 | TARGET_THREAD_LIB="$LIBS" |
| 19496 | LIBS="" |
| 19497 | else |
| 19498 | TARGET_THREAD_LIB="" |
| 19499 | fi |
| 19500 | |
| 19501 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19502 | ########## |
| 19503 | # Do we want to support release |
| 19504 | # |
| 19505 | # Check whether --enable-releasemode or --disable-releasemode was given. |
| 19506 | if test "${enable_releasemode+set}" = set; then |
| 19507 | enableval="$enable_releasemode" |
| 19508 | |
| 19509 | else |
| 19510 | enable_releasemode=no |
| 19511 | fi; |
| 19512 | echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 |
| 19513 | echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6 |
| 19514 | if test "$enable_releasemode" = "no"; then |
| 19515 | ALLOWRELEASE="" |
| 19516 | echo "$as_me:$LINENO: result: no" >&5 |
| 19517 | echo "${ECHO_T}no" >&6 |
| 19518 | else |
| 19519 | ALLOWRELEASE="-release `cat VERSION`" |
| 19520 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19521 | echo "${ECHO_T}yes" >&6 |
| 19522 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19523 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19524 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19525 | ########## |
| 19526 | # Do we want temporary databases in memory |
| 19527 | # |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19528 | # Check whether --enable-tempstore or --disable-tempstore was given. |
| 19529 | if test "${enable_tempstore+set}" = set; then |
| 19530 | enableval="$enable_tempstore" |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19531 | |
| 19532 | else |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19533 | enable_tempstore=yes |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19534 | fi; |
| 19535 | echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 |
| 19536 | echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6 |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19537 | case "$enable_tempstore" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19538 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 19539 | TEMP_STORE=0 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19540 | echo "$as_me:$LINENO: result: never" >&5 |
| 19541 | echo "${ECHO_T}never" >&6 |
| 19542 | ;; |
| 19543 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 19544 | TEMP_STORE=1 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19545 | echo "$as_me:$LINENO: result: no" >&5 |
| 19546 | echo "${ECHO_T}no" >&6 |
| 19547 | ;; |
| 19548 | always ) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19549 | TEMP_STORE=3 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19550 | echo "$as_me:$LINENO: result: always" >&5 |
| 19551 | echo "${ECHO_T}always" >&6 |
| 19552 | ;; |
| 19553 | * ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 19554 | TEMP_STORE=2 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19555 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19556 | echo "${ECHO_T}yes" >&6 |
| 19557 | ;; |
| 19558 | esac |
| 19559 | |
| 19560 | |
| 19561 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19562 | ########### |
| 19563 | # Lots of things are different if we are compiling for Windows using |
| 19564 | # the CYGWIN environment. So check for that special case and handle |
| 19565 | # things accordingly. |
| 19566 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19567 | echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19568 | echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19569 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 19570 | CYGWIN=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19571 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19572 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19573 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19574 | echo "$as_me:$LINENO: result: unknown" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19575 | echo "${ECHO_T}unknown" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19576 | fi |
| 19577 | if test "$CYGWIN" != "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19578 | |
| 19579 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19580 | *cygwin* ) CYGWIN=yes;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19581 | * ) CYGWIN=no;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19582 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19583 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19584 | fi |
| 19585 | if test "$CYGWIN" = "yes"; then |
| 19586 | BUILD_EXEEXT=.exe |
| 19587 | else |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 19588 | BUILD_EXEEXT=$EXEEXT |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19589 | fi |
| 19590 | if test "$cross" = "0"; then |
| 19591 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 19592 | else |
| 19593 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 19594 | fi |
| 19595 | if test "$TARGET_EXEEXT" = ".exe"; then |
| 19596 | OS_UNIX=0 |
| 19597 | OS_WIN=1 |
| 19598 | tclsubdir=win |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19599 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19600 | else |
| 19601 | OS_UNIX=1 |
| 19602 | OS_WIN=0 |
| 19603 | tclsubdir=unix |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19604 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19605 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19606 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19607 | |
| 19608 | |
| 19609 | |
| 19610 | |
| 19611 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19612 | ########## |
| 19613 | # Extract generic linker options from the environment. |
| 19614 | # |
| 19615 | if test "$config_TARGET_LIBS" != ""; then |
| 19616 | TARGET_LIBS=$config_TARGET_LIBS |
| 19617 | else |
| 19618 | TARGET_LIBS="" |
| 19619 | fi |
| 19620 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19621 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19622 | ########## |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19623 | # Figure out all the parameters needed to compile against Tcl. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19624 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19625 | # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG |
| 19626 | # macros in the in the tcl.m4 file of the standard TCL distribution. |
| 19627 | # Those macros could not be used directly since we have to make some |
| 19628 | # minor changes to accomodate systems that do not have TCL installed. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19629 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19630 | # Check whether --enable-tcl or --disable-tcl was given. |
| 19631 | if test "${enable_tcl+set}" = set; then |
| 19632 | enableval="$enable_tcl" |
| 19633 | use_tcl=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19634 | else |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19635 | use_tcl=yes |
| 19636 | fi; |
| 19637 | if test "${use_tcl}" = "yes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19638 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19639 | # Check whether --with-tcl or --without-tcl was given. |
| 19640 | if test "${with_tcl+set}" = set; then |
| 19641 | withval="$with_tcl" |
| 19642 | with_tclconfig=${withval} |
| 19643 | fi; |
| 19644 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 19645 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
| 19646 | if test "${ac_cv_c_tclconfig+set}" = set; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19648 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19649 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19650 | # First check to see if --with-tcl was specified. |
| 19651 | if test x"${with_tclconfig}" != x ; then |
| 19652 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 19653 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 19654 | else |
| 19655 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 19656 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19657 | { (exit 1); exit 1; }; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19658 | fi |
| 19659 | fi |
| 19660 | # then check for a private Tcl installation |
| 19661 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19662 | for i in \ |
| 19663 | ../tcl \ |
| 19664 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19665 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19666 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 19667 | ../../tcl \ |
| 19668 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19669 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19670 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 19671 | ../../../tcl \ |
| 19672 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19673 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19674 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` |
| 19675 | do |
| 19676 | if test -f "$i/unix/tclConfig.sh" ; then |
| 19677 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 19678 | break |
| 19679 | fi |
| 19680 | done |
| 19681 | fi |
| 19682 | |
| 19683 | # check in a few common install locations |
| 19684 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19685 | for i in \ |
| 19686 | `ls -d ${libdir} 2>/dev/null` \ |
| 19687 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 19688 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 19689 | `ls -d /usr/lib 2>/dev/null` |
| 19690 | do |
| 19691 | if test -f "$i/tclConfig.sh" ; then |
| 19692 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 19693 | break |
| 19694 | fi |
| 19695 | done |
| 19696 | fi |
| 19697 | |
| 19698 | # check in a few other private locations |
| 19699 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19700 | for i in \ |
| 19701 | ${srcdir}/../tcl \ |
| 19702 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19703 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19704 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` |
| 19705 | do |
| 19706 | if test -f "$i/unix/tclConfig.sh" ; then |
| 19707 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 19708 | break |
| 19709 | fi |
| 19710 | done |
| 19711 | fi |
| 19712 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19713 | fi |
| 19714 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19715 | |
| 19716 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19717 | use_tcl=no |
| 19718 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 19719 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 19720 | { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 |
| 19721 | echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} |
| 19722 | { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 |
| 19723 | echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} |
| 19724 | else |
| 19725 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
| 19726 | echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 19727 | echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6 |
| 19728 | |
| 19729 | echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 19730 | echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6 |
| 19731 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
| 19732 | echo "$as_me:$LINENO: result: loading" >&5 |
| 19733 | echo "${ECHO_T}loading" >&6 |
| 19734 | . $TCL_BIN_DIR/tclConfig.sh |
| 19735 | else |
| 19736 | echo "$as_me:$LINENO: result: file not found" >&5 |
| 19737 | echo "${ECHO_T}file not found" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19738 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19739 | |
| 19740 | # |
| 19741 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 19742 | # then set the common variable name to the value of the build variables. |
| 19743 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 19744 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 19745 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 19746 | # installed and uninstalled version of Tcl. |
| 19747 | # |
| 19748 | |
| 19749 | if test -f $TCL_BIN_DIR/Makefile ; then |
| 19750 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 19751 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 19752 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 19753 | fi |
| 19754 | |
| 19755 | # |
| 19756 | # eval is required to do the TCL_DBGX substitution |
| 19757 | # |
| 19758 | |
| 19759 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 19760 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 19761 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 19762 | |
| 19763 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 19764 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 19765 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 19766 | |
| 19767 | |
| 19768 | |
| 19769 | |
| 19770 | |
| 19771 | |
| 19772 | |
| 19773 | |
| 19774 | |
| 19775 | |
| 19776 | |
| 19777 | |
| 19778 | |
| 19779 | |
| 19780 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19781 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19782 | if test "${use_tcl}" = "no" ; then |
| 19783 | HAVE_TCL="" |
| 19784 | else |
| 19785 | HAVE_TCL=1 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 19786 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19787 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19788 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19789 | ########## |
| 19790 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19791 | # that use "readline()" library. |
| 19792 | # |
| 19793 | if test "$config_TARGET_READLINE_LIBS" != ""; then |
| 19794 | TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS" |
| 19795 | else |
| 19796 | CC=$TARGET_CC |
| 19797 | LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19798 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 19799 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
| 19800 | if test "${ac_cv_search_tgetent+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19802 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19803 | ac_func_search_save_LIBS=$LIBS |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19804 | ac_cv_search_tgetent=no |
| 19805 | cat >conftest.$ac_ext <<_ACEOF |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19806 | /* confdefs.h. */ |
| 19807 | _ACEOF |
| 19808 | cat confdefs.h >>conftest.$ac_ext |
| 19809 | cat >>conftest.$ac_ext <<_ACEOF |
| 19810 | /* end confdefs.h. */ |
| 19811 | |
| 19812 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19813 | #ifdef __cplusplus |
| 19814 | extern "C" |
| 19815 | #endif |
| 19816 | /* We use char because int might match the return type of a gcc2 |
| 19817 | builtin and then its argument prototype would still apply. */ |
| 19818 | char tgetent (); |
| 19819 | int |
| 19820 | main () |
| 19821 | { |
| 19822 | tgetent (); |
| 19823 | ; |
| 19824 | return 0; |
| 19825 | } |
| 19826 | _ACEOF |
| 19827 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19829 | (eval $ac_link) 2>conftest.er1 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19830 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19832 | rm -f conftest.er1 |
| 19833 | cat conftest.err >&5 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19835 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19836 | { ac_try='test -z "$ac_c_werror_flag" |
| 19837 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19839 | (eval $ac_try) 2>&5 |
| 19840 | ac_status=$? |
| 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19842 | (exit $ac_status); }; } && |
| 19843 | { ac_try='test -s conftest$ac_exeext' |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19845 | (eval $ac_try) 2>&5 |
| 19846 | ac_status=$? |
| 19847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19848 | (exit $ac_status); }; }; then |
| 19849 | ac_cv_search_tgetent="none required" |
| 19850 | else |
| 19851 | echo "$as_me: failed program was:" >&5 |
| 19852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19853 | |
| 19854 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19855 | rm -f conftest.err conftest.$ac_objext \ |
| 19856 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19857 | if test "$ac_cv_search_tgetent" = no; then |
| 19858 | for ac_lib in readline ncurses curses termcap; do |
| 19859 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19860 | cat >conftest.$ac_ext <<_ACEOF |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19861 | /* confdefs.h. */ |
| 19862 | _ACEOF |
| 19863 | cat confdefs.h >>conftest.$ac_ext |
| 19864 | cat >>conftest.$ac_ext <<_ACEOF |
| 19865 | /* end confdefs.h. */ |
| 19866 | |
| 19867 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19868 | #ifdef __cplusplus |
| 19869 | extern "C" |
| 19870 | #endif |
| 19871 | /* We use char because int might match the return type of a gcc2 |
| 19872 | builtin and then its argument prototype would still apply. */ |
| 19873 | char tgetent (); |
| 19874 | int |
| 19875 | main () |
| 19876 | { |
| 19877 | tgetent (); |
| 19878 | ; |
| 19879 | return 0; |
| 19880 | } |
| 19881 | _ACEOF |
| 19882 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19884 | (eval $ac_link) 2>conftest.er1 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19885 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19887 | rm -f conftest.er1 |
| 19888 | cat conftest.err >&5 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19890 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19891 | { ac_try='test -z "$ac_c_werror_flag" |
| 19892 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19894 | (eval $ac_try) 2>&5 |
| 19895 | ac_status=$? |
| 19896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19897 | (exit $ac_status); }; } && |
| 19898 | { ac_try='test -s conftest$ac_exeext' |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19900 | (eval $ac_try) 2>&5 |
| 19901 | ac_status=$? |
| 19902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19903 | (exit $ac_status); }; }; then |
| 19904 | ac_cv_search_tgetent="-l$ac_lib" |
| 19905 | break |
| 19906 | else |
| 19907 | echo "$as_me: failed program was:" >&5 |
| 19908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19909 | |
| 19910 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19911 | rm -f conftest.err conftest.$ac_objext \ |
| 19912 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19913 | done |
| 19914 | fi |
| 19915 | LIBS=$ac_func_search_save_LIBS |
| 19916 | fi |
| 19917 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 19918 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 19919 | if test "$ac_cv_search_tgetent" != no; then |
| 19920 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 19921 | |
| 19922 | fi |
| 19923 | |
| 19924 | |
| 19925 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 19926 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 19927 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 19928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19929 | else |
| 19930 | ac_check_lib_save_LIBS=$LIBS |
| 19931 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19932 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19933 | /* confdefs.h. */ |
| 19934 | _ACEOF |
| 19935 | cat confdefs.h >>conftest.$ac_ext |
| 19936 | cat >>conftest.$ac_ext <<_ACEOF |
| 19937 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19938 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19939 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19940 | #ifdef __cplusplus |
| 19941 | extern "C" |
| 19942 | #endif |
| 19943 | /* We use char because int might match the return type of a gcc2 |
| 19944 | builtin and then its argument prototype would still apply. */ |
| 19945 | char readline (); |
| 19946 | int |
| 19947 | main () |
| 19948 | { |
| 19949 | readline (); |
| 19950 | ; |
| 19951 | return 0; |
| 19952 | } |
| 19953 | _ACEOF |
| 19954 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19956 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19957 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19959 | rm -f conftest.er1 |
| 19960 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19962 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19963 | { ac_try='test -z "$ac_c_werror_flag" |
| 19964 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19966 | (eval $ac_try) 2>&5 |
| 19967 | ac_status=$? |
| 19968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19969 | (exit $ac_status); }; } && |
| 19970 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19972 | (eval $ac_try) 2>&5 |
| 19973 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19975 | (exit $ac_status); }; }; then |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19976 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19977 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19978 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19980 | |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19981 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19982 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19983 | rm -f conftest.err conftest.$ac_objext \ |
| 19984 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19985 | LIBS=$ac_check_lib_save_LIBS |
| 19986 | fi |
| 19987 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 19988 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 19989 | if test $ac_cv_lib_readline_readline = yes; then |
| 19990 | cat >>confdefs.h <<_ACEOF |
| 19991 | #define HAVE_LIBREADLINE 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19992 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19993 | |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19994 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19995 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19996 | fi |
| 19997 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19998 | TARGET_READLINE_LIBS="$LIBS" |
| 19999 | fi |
| 20000 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20001 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20002 | ########## |
| 20003 | # Figure out where to get the READLINE header files. |
| 20004 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20005 | echo "$as_me:$LINENO: checking readline header files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20006 | echo $ECHO_N "checking readline header files... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20007 | found=no |
| 20008 | if test "$config_TARGET_READLINE_INC" != ""; then |
| 20009 | TARGET_READLINE_INC=$config_TARGET_READLINE_INC |
| 20010 | found=yes |
| 20011 | fi |
| 20012 | if test "$found" = "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20013 | echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20014 | echo "${ECHO_T}$TARGET_READLINE_INC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20015 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20016 | echo "$as_me:$LINENO: result: not specified: still searching..." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20017 | echo "${ECHO_T}not specified: still searching..." >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20018 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 20019 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20020 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 20021 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 20022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20023 | fi |
| 20024 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 20025 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20026 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20027 | # Is the header compilable? |
| 20028 | echo "$as_me:$LINENO: checking readline.h usability" >&5 |
| 20029 | echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6 |
| 20030 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20031 | /* confdefs.h. */ |
| 20032 | _ACEOF |
| 20033 | cat confdefs.h >>conftest.$ac_ext |
| 20034 | cat >>conftest.$ac_ext <<_ACEOF |
| 20035 | /* end confdefs.h. */ |
| 20036 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20037 | #include <readline.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20038 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20039 | rm -f conftest.$ac_objext |
| 20040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20041 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20042 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20044 | rm -f conftest.er1 |
| 20045 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20047 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 20048 | { ac_try='test -z "$ac_c_werror_flag" |
| 20049 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20051 | (eval $ac_try) 2>&5 |
| 20052 | ac_status=$? |
| 20053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20054 | (exit $ac_status); }; } && |
| 20055 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20057 | (eval $ac_try) 2>&5 |
| 20058 | ac_status=$? |
| 20059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20060 | (exit $ac_status); }; }; then |
| 20061 | ac_header_compiler=yes |
| 20062 | else |
| 20063 | echo "$as_me: failed program was:" >&5 |
| 20064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20065 | |
| 20066 | ac_header_compiler=no |
| 20067 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20069 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20070 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20071 | |
| 20072 | # Is the header present? |
| 20073 | echo "$as_me:$LINENO: checking readline.h presence" >&5 |
| 20074 | echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6 |
| 20075 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20076 | /* confdefs.h. */ |
| 20077 | _ACEOF |
| 20078 | cat confdefs.h >>conftest.$ac_ext |
| 20079 | cat >>conftest.$ac_ext <<_ACEOF |
| 20080 | /* end confdefs.h. */ |
| 20081 | #include <readline.h> |
| 20082 | _ACEOF |
| 20083 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20084 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20085 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20086 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20087 | rm -f conftest.er1 |
| 20088 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20090 | (exit $ac_status); } >/dev/null; then |
| 20091 | if test -s conftest.err; then |
| 20092 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20093 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20094 | else |
| 20095 | ac_cpp_err= |
| 20096 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20097 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20098 | ac_cpp_err=yes |
| 20099 | fi |
| 20100 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20101 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20102 | else |
| 20103 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20105 | |
| 20106 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20107 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20108 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20109 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20110 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20111 | |
| 20112 | # So? What about this header? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20114 | yes:no: ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20115 | { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20116 | echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20117 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 |
| 20118 | echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} |
| 20119 | ac_header_preproc=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20120 | ;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20121 | no:yes:* ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20122 | { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 |
| 20123 | echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20124 | { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 |
| 20125 | echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} |
| 20126 | { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 |
| 20127 | echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} |
| 20128 | { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20129 | echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20130 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 20131 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20132 | { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 |
| 20133 | echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20134 | ( |
| 20135 | cat <<\_ASBOX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20136 | ## ------------------------------------------ ## |
| 20137 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 20138 | ## ------------------------------------------ ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20139 | _ASBOX |
| 20140 | ) | |
| 20141 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20142 | ;; |
| 20143 | esac |
| 20144 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 20145 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 20146 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 20147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20148 | else |
| 20149 | ac_cv_header_readline_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20150 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20151 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20152 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20153 | |
| 20154 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20155 | if test $ac_cv_header_readline_h = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20156 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20157 | fi |
| 20158 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20159 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20160 | fi |
| 20161 | if test "$found" = "no"; then |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 20162 | for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20163 | as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20164 | echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20165 | echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6 |
| 20166 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 20167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 20168 | else |
| 20169 | test "$cross_compiling" = yes && |
| 20170 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 20171 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 20172 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20173 | if test -r "$dir/include/readline.h"; then |
| 20174 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20175 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20176 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20177 | fi |
| 20178 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20180 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 20181 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20182 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20183 | fi |
| 20184 | |
| 20185 | if test "$found" = "yes"; then |
| 20186 | TARGET_READLINE_INC="-I$dir/include" |
| 20187 | break |
| 20188 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20189 | as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20190 | echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20191 | echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6 |
| 20192 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 20193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 20194 | else |
| 20195 | test "$cross_compiling" = yes && |
| 20196 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 20197 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 20198 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20199 | if test -r "$dir/include/readline/readline.h"; then |
| 20200 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20201 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20202 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20203 | fi |
| 20204 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20206 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 20207 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20208 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20209 | fi |
| 20210 | |
| 20211 | if test "$found" = "yes"; then |
| 20212 | TARGET_READLINE_INC="-I$dir/include/readline" |
| 20213 | break |
| 20214 | fi |
| 20215 | done |
| 20216 | fi |
| 20217 | if test "$found" = "yes"; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 20218 | if test "$TARGET_READLINE_LIBS" = ""; then |
| 20219 | TARGET_HAVE_READLINE=0 |
| 20220 | else |
| 20221 | TARGET_HAVE_READLINE=1 |
| 20222 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20223 | else |
| 20224 | TARGET_HAVE_READLINE=0 |
| 20225 | fi |
| 20226 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20227 | |
| 20228 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20229 | ######### |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 20230 | # check for debug enabled |
| 20231 | # Check whether --enable-debug or --disable-debug was given. |
| 20232 | if test "${enable_debug+set}" = set; then |
| 20233 | enableval="$enable_debug" |
| 20234 | use_debug=$enableval |
| 20235 | else |
| 20236 | use_debug=no |
| 20237 | fi; |
| 20238 | if test "${use_debug}" = "yes" ; then |
| 20239 | TARGET_DEBUG="" |
| 20240 | else |
| 20241 | TARGET_DEBUG="-DNDEBUG" |
| 20242 | fi |
| 20243 | |
| 20244 | |
| 20245 | ######### |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20246 | # Figure out whether or not we have a "usleep()" function. |
| 20247 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20248 | echo "$as_me:$LINENO: checking for usleep" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20249 | echo $ECHO_N "checking for usleep... $ECHO_C" >&6 |
| 20250 | if test "${ac_cv_func_usleep+set}" = set; then |
| 20251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20252 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20253 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20254 | /* confdefs.h. */ |
| 20255 | _ACEOF |
| 20256 | cat confdefs.h >>conftest.$ac_ext |
| 20257 | cat >>conftest.$ac_ext <<_ACEOF |
| 20258 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20259 | /* Define usleep to an innocuous variant, in case <limits.h> declares usleep. |
| 20260 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20261 | #define usleep innocuous_usleep |
| 20262 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20263 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20264 | which can conflict with char usleep (); below. |
| 20265 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20266 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20267 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20268 | #ifdef __STDC__ |
| 20269 | # include <limits.h> |
| 20270 | #else |
| 20271 | # include <assert.h> |
| 20272 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20273 | |
| 20274 | #undef usleep |
| 20275 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20276 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20277 | #ifdef __cplusplus |
| 20278 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20279 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20280 | #endif |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20281 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20282 | builtin and then its argument prototype would still apply. */ |
| 20283 | char usleep (); |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20284 | /* The GNU C library defines this for functions which it implements |
| 20285 | to always fail with ENOSYS. Some functions are actually named |
| 20286 | something starting with __ and the normal name is an alias. */ |
| 20287 | #if defined (__stub_usleep) || defined (__stub___usleep) |
| 20288 | choke me |
| 20289 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20290 | char (*f) () = usleep; |
| 20291 | #endif |
| 20292 | #ifdef __cplusplus |
| 20293 | } |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20294 | #endif |
| 20295 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20296 | int |
| 20297 | main () |
| 20298 | { |
| 20299 | return f != usleep; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20300 | ; |
| 20301 | return 0; |
| 20302 | } |
| 20303 | _ACEOF |
| 20304 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20306 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20307 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20309 | rm -f conftest.er1 |
| 20310 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20312 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 20313 | { ac_try='test -z "$ac_c_werror_flag" |
| 20314 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20316 | (eval $ac_try) 2>&5 |
| 20317 | ac_status=$? |
| 20318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20319 | (exit $ac_status); }; } && |
| 20320 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20322 | (eval $ac_try) 2>&5 |
| 20323 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20325 | (exit $ac_status); }; }; then |
| 20326 | ac_cv_func_usleep=yes |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20327 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20328 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20330 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20331 | ac_cv_func_usleep=no |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20332 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20333 | rm -f conftest.err conftest.$ac_objext \ |
| 20334 | conftest$ac_exeext conftest.$ac_ext |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20335 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20336 | echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20337 | echo "${ECHO_T}$ac_cv_func_usleep" >&6 |
| 20338 | if test $ac_cv_func_usleep = yes; then |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20339 | TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1" |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20340 | fi |
| 20341 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20342 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20343 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20344 | # Generate the output files. |
| 20345 | # |
dougcurrie | 12b3444 | 2004-07-19 03:24:59 +0000 | [diff] [blame] | 20346 | ac_config_files="$ac_config_files Makefile sqlite3.pc" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20347 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20348 | # This file is a shell script that caches the results of configure |
| 20349 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20350 | # scripts and configure runs, see configure's option --config-cache. |
| 20351 | # It is not useful on other systems. If it contains results you don't |
| 20352 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20353 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20354 | # config.status only pays attention to the cache file if you give it |
| 20355 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20356 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20357 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20358 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20359 | # following values. |
| 20360 | |
| 20361 | _ACEOF |
| 20362 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20363 | # The following way of writing the cache mishandles newlines in values, |
| 20364 | # but we know of no workaround that is simple, portable, and efficient. |
| 20365 | # So, don't put newlines in cache variables' values. |
| 20366 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20367 | # and sets the high bit in the cache file unless we assign to the vars. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20368 | { |
| 20369 | (set) 2>&1 | |
| 20370 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20371 | *ac_space=\ *) |
| 20372 | # `set' does not quote correctly, so add quotes (double-quote |
| 20373 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20374 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20375 | "s/'/'\\\\''/g; |
| 20376 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20377 | ;; |
| 20378 | *) |
| 20379 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20380 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20381 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20382 | ;; |
| 20383 | esac; |
| 20384 | } | |
| 20385 | sed ' |
| 20386 | t clear |
| 20387 | : clear |
| 20388 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20389 | t end |
| 20390 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20391 | : end' >>confcache |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20392 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20393 | if test -w $cache_file; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20394 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20395 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20396 | else |
| 20397 | echo "not updating unwritable cache $cache_file" |
| 20398 | fi |
| 20399 | fi |
| 20400 | rm -f confcache |
| 20401 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20402 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20403 | # Let make expand exec_prefix. |
| 20404 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20405 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20406 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20407 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20408 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20409 | # (actually we leave an empty line to preserve line numbers). |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20410 | if test "x$srcdir" = x.; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20411 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20412 | s/:*\$(srcdir):*/:/; |
| 20413 | s/:*\${srcdir}:*/:/; |
| 20414 | s/:*@srcdir@:*/:/; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20415 | s/^\([^=]*=[ ]*\):*/\1/; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20416 | s/:*$//; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20417 | s/^[^=]*=[ ]*$//; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20418 | }' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20419 | fi |
| 20420 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20421 | # Transform confdefs.h into DEFS. |
| 20422 | # Protect against shell expansion while executing Makefile rules. |
| 20423 | # Protect against Makefile macro expansion. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20424 | # |
| 20425 | # If the first sed substitution is executed (which looks for macros that |
| 20426 | # take arguments), then we branch to the quote section. Otherwise, |
| 20427 | # look for a macro that doesn't take arguments. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20428 | cat >confdef2opt.sed <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20429 | t clear |
| 20430 | : clear |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20431 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20432 | t quote |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20433 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20434 | t quote |
| 20435 | d |
| 20436 | : quote |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20437 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20438 | s,\[,\\&,g |
| 20439 | s,\],\\&,g |
| 20440 | s,\$,$$,g |
| 20441 | p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20442 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20443 | # We use echo to avoid assuming a particular line-breaking character. |
| 20444 | # The extra dot is to prevent the shell from consuming trailing |
| 20445 | # line-breaks from the sub-command output. A line-break within |
| 20446 | # single-quotes doesn't work because, if this script is created in a |
| 20447 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 20448 | # would break. |
| 20449 | ac_LF_and_DOT=`echo; echo .` |
| 20450 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 20451 | rm -f confdef2opt.sed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20452 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20453 | |
| 20454 | ac_libobjs= |
| 20455 | ac_ltlibobjs= |
| 20456 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20457 | # 1. Remove the extension, and $U if already installed. |
| 20458 | ac_i=`echo "$ac_i" | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20459 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20460 | # 2. Add them. |
| 20461 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20462 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20463 | done |
| 20464 | LIBOBJS=$ac_libobjs |
| 20465 | |
| 20466 | LTLIBOBJS=$ac_ltlibobjs |
| 20467 | |
| 20468 | |
| 20469 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20470 | : ${CONFIG_STATUS=./config.status} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20471 | ac_clean_files_save=$ac_clean_files |
| 20472 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20473 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20474 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20475 | cat >$CONFIG_STATUS <<_ACEOF |
| 20476 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20477 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20478 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20479 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20480 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20481 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20482 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20483 | ac_cs_recheck=false |
| 20484 | ac_cs_silent=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20485 | SHELL=\${CONFIG_SHELL-$SHELL} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20486 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20487 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20488 | cat >>$CONFIG_STATUS <<\_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20489 | ## --------------------- ## |
| 20490 | ## M4sh Initialization. ## |
| 20491 | ## --------------------- ## |
| 20492 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20493 | # Be Bourne compatible |
| 20494 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20495 | emulate sh |
| 20496 | NULLCMD=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20497 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20498 | # is contrary to our usage. Disable this feature. |
| 20499 | alias -g '${1+"$@"}'='"$@"' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20500 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20501 | set -o posix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20502 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20503 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20504 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20505 | # Support unset when possible. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20506 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20507 | as_unset=unset |
| 20508 | else |
| 20509 | as_unset=false |
| 20510 | fi |
| 20511 | |
| 20512 | |
| 20513 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20514 | $as_unset ENV MAIL MAILPATH |
| 20515 | PS1='$ ' |
| 20516 | PS2='> ' |
| 20517 | PS4='+ ' |
| 20518 | |
| 20519 | # NLS nuisances. |
| 20520 | for as_var in \ |
| 20521 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20522 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20523 | LC_TELEPHONE LC_TIME |
| 20524 | do |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20525 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20526 | eval $as_var=C; export $as_var |
| 20527 | else |
| 20528 | $as_unset $as_var |
| 20529 | fi |
| 20530 | done |
| 20531 | |
| 20532 | # Required to use basename. |
| 20533 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20534 | as_expr=expr |
| 20535 | else |
| 20536 | as_expr=false |
| 20537 | fi |
| 20538 | |
| 20539 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20540 | as_basename=basename |
| 20541 | else |
| 20542 | as_basename=false |
| 20543 | fi |
| 20544 | |
| 20545 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20546 | # Name of the executable. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20547 | as_me=`$as_basename "$0" || |
| 20548 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20549 | X"$0" : 'X\(//\)$' \| \ |
| 20550 | X"$0" : 'X\(/\)$' \| \ |
| 20551 | . : '\(.\)' 2>/dev/null || |
| 20552 | echo X/"$0" | |
| 20553 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20554 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20555 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20556 | s/.*/./; q'` |
| 20557 | |
| 20558 | |
| 20559 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20560 | # Avoid depending upon Character Ranges. |
| 20561 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20562 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20563 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20564 | as_cr_digits='0123456789' |
| 20565 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20566 | |
| 20567 | # The user is always right. |
| 20568 | if test "${PATH_SEPARATOR+set}" != set; then |
| 20569 | echo "#! /bin/sh" >conf$$.sh |
| 20570 | echo "exit 0" >>conf$$.sh |
| 20571 | chmod +x conf$$.sh |
| 20572 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20573 | PATH_SEPARATOR=';' |
| 20574 | else |
| 20575 | PATH_SEPARATOR=: |
| 20576 | fi |
| 20577 | rm -f conf$$.sh |
| 20578 | fi |
| 20579 | |
| 20580 | |
| 20581 | as_lineno_1=$LINENO |
| 20582 | as_lineno_2=$LINENO |
| 20583 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20584 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20585 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20586 | # Find who we are. Look in the path if we contain no path at all |
| 20587 | # relative or not. |
| 20588 | case $0 in |
| 20589 | *[\\/]* ) as_myself=$0 ;; |
| 20590 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20591 | for as_dir in $PATH |
| 20592 | do |
| 20593 | IFS=$as_save_IFS |
| 20594 | test -z "$as_dir" && as_dir=. |
| 20595 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20596 | done |
| 20597 | |
| 20598 | ;; |
| 20599 | esac |
| 20600 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20601 | # in which case we are not to be found in the path. |
| 20602 | if test "x$as_myself" = x; then |
| 20603 | as_myself=$0 |
| 20604 | fi |
| 20605 | if test ! -f "$as_myself"; then |
| 20606 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20607 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20608 | { (exit 1); exit 1; }; } |
| 20609 | fi |
| 20610 | case $CONFIG_SHELL in |
| 20611 | '') |
| 20612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20613 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20614 | do |
| 20615 | IFS=$as_save_IFS |
| 20616 | test -z "$as_dir" && as_dir=. |
| 20617 | for as_base in sh bash ksh sh5; do |
| 20618 | case $as_dir in |
| 20619 | /*) |
| 20620 | if ("$as_dir/$as_base" -c ' |
| 20621 | as_lineno_1=$LINENO |
| 20622 | as_lineno_2=$LINENO |
| 20623 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20624 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20625 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 20626 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20627 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 20628 | CONFIG_SHELL=$as_dir/$as_base |
| 20629 | export CONFIG_SHELL |
| 20630 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20631 | fi;; |
| 20632 | esac |
| 20633 | done |
| 20634 | done |
| 20635 | ;; |
| 20636 | esac |
| 20637 | |
| 20638 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20639 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20640 | # line-number line before each line; the second 'sed' does the real |
| 20641 | # work. The second script uses 'N' to pair each line-number line |
| 20642 | # with the numbered line, and appends trailing '-' during |
| 20643 | # substitution so that $LINENO is not a special case at line end. |
| 20644 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20645 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20646 | sed '=' <$as_myself | |
| 20647 | sed ' |
| 20648 | N |
| 20649 | s,$,-, |
| 20650 | : loop |
| 20651 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20652 | t loop |
| 20653 | s,-$,, |
| 20654 | s,^['$as_cr_digits']*\n,, |
| 20655 | ' >$as_me.lineno && |
| 20656 | chmod +x $as_me.lineno || |
| 20657 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20658 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20659 | { (exit 1); exit 1; }; } |
| 20660 | |
| 20661 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20662 | # (the dirname of $[0] is not the place where we might find the |
| 20663 | # original and so on. Autoconf is especially sensible to this). |
| 20664 | . ./$as_me.lineno |
| 20665 | # Exit status is that of the last command. |
| 20666 | exit |
| 20667 | } |
| 20668 | |
| 20669 | |
| 20670 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20671 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20672 | ' ECHO_T=' ' ;; |
| 20673 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20674 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20675 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20676 | |
| 20677 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20678 | as_expr=expr |
| 20679 | else |
| 20680 | as_expr=false |
| 20681 | fi |
| 20682 | |
| 20683 | rm -f conf$$ conf$$.exe conf$$.file |
| 20684 | echo >conf$$.file |
| 20685 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20686 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20687 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20688 | if test -f conf$$.exe; then |
| 20689 | # Don't use ln at all; we don't have any links |
| 20690 | as_ln_s='cp -p' |
| 20691 | else |
| 20692 | as_ln_s='ln -s' |
| 20693 | fi |
| 20694 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20695 | as_ln_s=ln |
| 20696 | else |
| 20697 | as_ln_s='cp -p' |
| 20698 | fi |
| 20699 | rm -f conf$$ conf$$.exe conf$$.file |
| 20700 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20701 | if mkdir -p . 2>/dev/null; then |
| 20702 | as_mkdir_p=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20703 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20704 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20705 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20706 | fi |
| 20707 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20708 | as_executable_p="test -f" |
| 20709 | |
| 20710 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20711 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20712 | |
| 20713 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20714 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20715 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20716 | |
| 20717 | # IFS |
| 20718 | # We need space, tab and new line, in precisely that order. |
| 20719 | as_nl=' |
| 20720 | ' |
| 20721 | IFS=" $as_nl" |
| 20722 | |
| 20723 | # CDPATH. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20724 | $as_unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20725 | |
| 20726 | exec 6>&1 |
| 20727 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20728 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20729 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20730 | # values after options handling. Logging --version etc. is OK. |
| 20731 | exec 5>>config.log |
| 20732 | { |
| 20733 | echo |
| 20734 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20735 | ## Running $as_me. ## |
| 20736 | _ASBOX |
| 20737 | } >&5 |
| 20738 | cat >&5 <<_CSEOF |
| 20739 | |
| 20740 | This file was extended by $as_me, which was |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20741 | generated by GNU Autoconf 2.59. Invocation command line was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20742 | |
| 20743 | CONFIG_FILES = $CONFIG_FILES |
| 20744 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20745 | CONFIG_LINKS = $CONFIG_LINKS |
| 20746 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20747 | $ $0 $@ |
| 20748 | |
| 20749 | _CSEOF |
| 20750 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20751 | echo >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20752 | _ACEOF |
| 20753 | |
| 20754 | # Files that config.status was made for. |
| 20755 | if test -n "$ac_config_files"; then |
| 20756 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20757 | fi |
| 20758 | |
| 20759 | if test -n "$ac_config_headers"; then |
| 20760 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20761 | fi |
| 20762 | |
| 20763 | if test -n "$ac_config_links"; then |
| 20764 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20765 | fi |
| 20766 | |
| 20767 | if test -n "$ac_config_commands"; then |
| 20768 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20769 | fi |
| 20770 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20771 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20772 | |
| 20773 | ac_cs_usage="\ |
| 20774 | \`$as_me' instantiates files from templates according to the |
| 20775 | current configuration. |
| 20776 | |
| 20777 | Usage: $0 [OPTIONS] [FILE]... |
| 20778 | |
| 20779 | -h, --help print this help, then exit |
| 20780 | -V, --version print version number, then exit |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20781 | -q, --quiet do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20782 | -d, --debug don't remove temporary files |
| 20783 | --recheck update $as_me by reconfiguring in the same conditions |
| 20784 | --file=FILE[:TEMPLATE] |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20785 | instantiate the configuration file FILE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20786 | |
| 20787 | Configuration files: |
| 20788 | $config_files |
| 20789 | |
| 20790 | Report bugs to <bug-autoconf@gnu.org>." |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20791 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20792 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20793 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20794 | ac_cs_version="\\ |
| 20795 | config.status |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20796 | configured by $0, generated by GNU Autoconf 2.59, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20797 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20798 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20799 | Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20800 | This config.status script is free software; the Free Software Foundation |
| 20801 | gives unlimited permission to copy, distribute and modify it." |
| 20802 | srcdir=$srcdir |
| 20803 | INSTALL="$INSTALL" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20804 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20805 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20806 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20807 | # If no file are specified by the user, then we need to provide default |
| 20808 | # value. By we need to know if files were specified by the user. |
| 20809 | ac_need_defaults=: |
| 20810 | while test $# != 0 |
| 20811 | do |
| 20812 | case $1 in |
| 20813 | --*=*) |
| 20814 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20815 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20816 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20817 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20818 | -*) |
| 20819 | ac_option=$1 |
| 20820 | ac_optarg=$2 |
| 20821 | ac_shift=shift |
| 20822 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20823 | *) # This is not an option, so the user has probably given explicit |
| 20824 | # arguments. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20825 | ac_option=$1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20826 | ac_need_defaults=false;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20827 | esac |
| 20828 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20829 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20830 | # Handling of the options. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20831 | _ACEOF |
| 20832 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20833 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20834 | ac_cs_recheck=: ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20835 | --version | --vers* | -V ) |
| 20836 | echo "$ac_cs_version"; exit 0 ;; |
| 20837 | --he | --h) |
| 20838 | # Conflict between --help and --header |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20839 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20840 | Try \`$0 --help' for more information." >&5 |
| 20841 | echo "$as_me: error: ambiguous option: $1 |
| 20842 | Try \`$0 --help' for more information." >&2;} |
| 20843 | { (exit 1); exit 1; }; };; |
| 20844 | --help | --hel | -h ) |
| 20845 | echo "$ac_cs_usage"; exit 0 ;; |
| 20846 | --debug | --d* | -d ) |
| 20847 | debug=: ;; |
| 20848 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20849 | $ac_shift |
| 20850 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20851 | ac_need_defaults=false;; |
| 20852 | --header | --heade | --head | --hea ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20853 | $ac_shift |
| 20854 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20855 | ac_need_defaults=false;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20856 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20857 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20858 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20859 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20860 | # This is an error. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20861 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20862 | Try \`$0 --help' for more information." >&5 |
| 20863 | echo "$as_me: error: unrecognized option: $1 |
| 20864 | Try \`$0 --help' for more information." >&2;} |
| 20865 | { (exit 1); exit 1; }; } ;; |
| 20866 | |
| 20867 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 20868 | |
| 20869 | esac |
| 20870 | shift |
| 20871 | done |
| 20872 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20873 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20874 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20875 | if $ac_cs_silent; then |
| 20876 | exec 6>/dev/null |
| 20877 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20878 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20879 | |
| 20880 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20881 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20882 | if \$ac_cs_recheck; then |
| 20883 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20884 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20885 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20886 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20887 | _ACEOF |
| 20888 | |
| 20889 | |
| 20890 | |
| 20891 | |
| 20892 | |
| 20893 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20894 | for ac_config_target in $ac_config_targets |
| 20895 | do |
| 20896 | case "$ac_config_target" in |
| 20897 | # Handling of arguments. |
dougcurrie | 001c0bd | 2004-06-21 21:44:49 +0000 | [diff] [blame] | 20898 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
dougcurrie | 12b3444 | 2004-07-19 03:24:59 +0000 | [diff] [blame] | 20899 | "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20900 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20901 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20902 | { (exit 1); exit 1; }; };; |
| 20903 | esac |
| 20904 | done |
| 20905 | |
| 20906 | # If the user did not use the arguments to specify the items to instantiate, |
| 20907 | # then the envvar interface is used. Set only those that are not. |
| 20908 | # We use the long form for the default assignment because of an extremely |
| 20909 | # bizarre bug on SunOS 4.1.3. |
| 20910 | if $ac_need_defaults; then |
| 20911 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20912 | fi |
| 20913 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20914 | # Have a temporary directory for convenience. Make it in the build tree |
| 20915 | # simply because there is no reason to put it here, and in addition, |
| 20916 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20917 | # Create a temporary directory, and hook for its removal unless debugging. |
| 20918 | $debug || |
| 20919 | { |
| 20920 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 20921 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20922 | } |
| 20923 | |
| 20924 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20925 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20926 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20927 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20928 | test -n "$tmp" && test -d "$tmp" |
| 20929 | } || |
| 20930 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20931 | tmp=./confstat$$-$RANDOM |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20932 | (umask 077 && mkdir $tmp) |
| 20933 | } || |
| 20934 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20935 | echo "$me: cannot create a temporary directory in ." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20936 | { (exit 1); exit 1; } |
| 20937 | } |
| 20938 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20939 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20940 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20941 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20942 | |
| 20943 | # |
| 20944 | # CONFIG_FILES section. |
| 20945 | # |
| 20946 | |
| 20947 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20948 | # This happens for instance when ./config.status config.h |
| 20949 | if test -n "\$CONFIG_FILES"; then |
| 20950 | # Protect against being on the right side of a sed subst in config.status. |
| 20951 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 20952 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 20953 | s,@SHELL@,$SHELL,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20954 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 20955 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 20956 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 20957 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 20958 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 20959 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20960 | s,@exec_prefix@,$exec_prefix,;t t |
| 20961 | s,@prefix@,$prefix,;t t |
| 20962 | s,@program_transform_name@,$program_transform_name,;t t |
| 20963 | s,@bindir@,$bindir,;t t |
| 20964 | s,@sbindir@,$sbindir,;t t |
| 20965 | s,@libexecdir@,$libexecdir,;t t |
| 20966 | s,@datadir@,$datadir,;t t |
| 20967 | s,@sysconfdir@,$sysconfdir,;t t |
| 20968 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 20969 | s,@localstatedir@,$localstatedir,;t t |
| 20970 | s,@libdir@,$libdir,;t t |
| 20971 | s,@includedir@,$includedir,;t t |
| 20972 | s,@oldincludedir@,$oldincludedir,;t t |
| 20973 | s,@infodir@,$infodir,;t t |
| 20974 | s,@mandir@,$mandir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20975 | s,@build_alias@,$build_alias,;t t |
| 20976 | s,@host_alias@,$host_alias,;t t |
| 20977 | s,@target_alias@,$target_alias,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20978 | s,@DEFS@,$DEFS,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20979 | s,@ECHO_C@,$ECHO_C,;t t |
| 20980 | s,@ECHO_N@,$ECHO_N,;t t |
| 20981 | s,@ECHO_T@,$ECHO_T,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20982 | s,@LIBS@,$LIBS,;t t |
| 20983 | s,@build@,$build,;t t |
| 20984 | s,@build_cpu@,$build_cpu,;t t |
| 20985 | s,@build_vendor@,$build_vendor,;t t |
| 20986 | s,@build_os@,$build_os,;t t |
| 20987 | s,@host@,$host,;t t |
| 20988 | s,@host_cpu@,$host_cpu,;t t |
| 20989 | s,@host_vendor@,$host_vendor,;t t |
| 20990 | s,@host_os@,$host_os,;t t |
| 20991 | s,@CC@,$CC,;t t |
| 20992 | s,@CFLAGS@,$CFLAGS,;t t |
| 20993 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 20994 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 20995 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 20996 | s,@EXEEXT@,$EXEEXT,;t t |
| 20997 | s,@OBJEXT@,$OBJEXT,;t t |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 20998 | s,@EGREP@,$EGREP,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20999 | s,@LN_S@,$LN_S,;t t |
| 21000 | s,@ECHO@,$ECHO,;t t |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 21001 | s,@AR@,$AR,;t t |
| 21002 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21003 | s,@RANLIB@,$RANLIB,;t t |
| 21004 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 21005 | s,@STRIP@,$STRIP,;t t |
| 21006 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 21007 | s,@CPP@,$CPP,;t t |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 21008 | s,@CXX@,$CXX,;t t |
| 21009 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 21010 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 21011 | s,@CXXCPP@,$CXXCPP,;t t |
| 21012 | s,@F77@,$F77,;t t |
| 21013 | s,@FFLAGS@,$FFLAGS,;t t |
| 21014 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21015 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 21016 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 21017 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 21018 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 21019 | s,@program_prefix@,$program_prefix,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21020 | s,@VERSION@,$VERSION,;t t |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 21021 | s,@RELEASE@,$RELEASE,;t t |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame^] | 21022 | s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21023 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 21024 | s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t |
| 21025 | s,@BUILD_LIBS@,$BUILD_LIBS,;t t |
| 21026 | s,@TARGET_CC@,$TARGET_CC,;t t |
| 21027 | s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t |
| 21028 | s,@TARGET_LINK@,$TARGET_LINK,;t t |
| 21029 | s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t |
| 21030 | s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t |
| 21031 | s,@TARGET_AR@,$TARGET_AR,;t t |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 21032 | s,@THREADSAFE@,$THREADSAFE,;t t |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 21033 | s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 21034 | s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 21035 | s,@TEMP_STORE@,$TEMP_STORE,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21036 | s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t |
| 21037 | s,@OS_UNIX@,$OS_UNIX,;t t |
| 21038 | s,@OS_WIN@,$OS_WIN,;t t |
| 21039 | s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t |
| 21040 | s,@TARGET_LIBS@,$TARGET_LIBS,;t t |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 21041 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
| 21042 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t |
| 21043 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t |
| 21044 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 21045 | s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t |
| 21046 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t |
| 21047 | s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t |
| 21048 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
| 21049 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
| 21050 | s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t |
| 21051 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t |
| 21052 | s,@HAVE_TCL@,$HAVE_TCL,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21053 | s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t |
| 21054 | s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t |
| 21055 | s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 21056 | s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21057 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21058 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21059 | CEOF |
| 21060 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21061 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21062 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21063 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21064 | # Split the substitutions into bite-sized pieces for seds with |
| 21065 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21066 | ac_max_sed_lines=48 |
| 21067 | ac_sed_frag=1 # Number of current file. |
| 21068 | ac_beg=1 # First line for current file. |
| 21069 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21070 | ac_more_lines=: |
| 21071 | ac_sed_cmds= |
| 21072 | while $ac_more_lines; do |
| 21073 | if test $ac_beg -gt 1; then |
| 21074 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21075 | else |
| 21076 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21077 | fi |
| 21078 | if test ! -s $tmp/subs.frag; then |
| 21079 | ac_more_lines=false |
| 21080 | else |
| 21081 | # The purpose of the label and of the branching condition is to |
| 21082 | # speed up the sed processing (if there are no `@' at all, there |
| 21083 | # is no need to browse any of the substitutions). |
| 21084 | # These are the two extra sed commands mentioned above. |
| 21085 | (echo ':t |
| 21086 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21087 | if test -z "$ac_sed_cmds"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21088 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21089 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21090 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21091 | fi |
| 21092 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21093 | ac_beg=$ac_end |
| 21094 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21095 | fi |
| 21096 | done |
| 21097 | if test -z "$ac_sed_cmds"; then |
| 21098 | ac_sed_cmds=cat |
| 21099 | fi |
| 21100 | fi # test -n "$CONFIG_FILES" |
| 21101 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21102 | _ACEOF |
| 21103 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21104 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21105 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21106 | case $ac_file in |
| 21107 | - | *:- | *:-:* ) # input from stdin |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21108 | cat >$tmp/stdin |
| 21109 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21110 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21111 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21112 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21113 | * ) ac_file_in=$ac_file.in ;; |
| 21114 | esac |
| 21115 | |
| 21116 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21117 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21118 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21119 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21120 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21121 | X"$ac_file" : 'X\(/\)' \| \ |
| 21122 | . : '\(.\)' 2>/dev/null || |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21123 | echo X"$ac_file" | |
| 21124 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21125 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21126 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21127 | /^X\(\/\).*/{ s//\1/; q; } |
| 21128 | s/.*/./; q'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21129 | { if $as_mkdir_p; then |
| 21130 | mkdir -p "$ac_dir" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21131 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21132 | as_dir="$ac_dir" |
| 21133 | as_dirs= |
| 21134 | while test ! -d "$as_dir"; do |
| 21135 | as_dirs="$as_dir $as_dirs" |
| 21136 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21137 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21138 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21139 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21140 | X"$as_dir" : 'X\(/\)' \| \ |
| 21141 | . : '\(.\)' 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21142 | echo X"$as_dir" | |
| 21143 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21144 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21145 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21146 | /^X\(\/\).*/{ s//\1/; q; } |
| 21147 | s/.*/./; q'` |
| 21148 | done |
| 21149 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21150 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21151 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21152 | { (exit 1); exit 1; }; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21153 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21154 | ac_builddir=. |
| 21155 | |
| 21156 | if test "$ac_dir" != .; then |
| 21157 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21158 | # A "../" for each directory in $ac_dir_suffix. |
| 21159 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21160 | else |
| 21161 | ac_dir_suffix= ac_top_builddir= |
| 21162 | fi |
| 21163 | |
| 21164 | case $srcdir in |
| 21165 | .) # No --srcdir option. We are building in place. |
| 21166 | ac_srcdir=. |
| 21167 | if test -z "$ac_top_builddir"; then |
| 21168 | ac_top_srcdir=. |
| 21169 | else |
| 21170 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21171 | fi ;; |
| 21172 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21173 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21174 | ac_top_srcdir=$srcdir ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21175 | *) # Relative path. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21176 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21177 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21178 | esac |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21179 | |
| 21180 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21181 | # the directories may not exist. |
| 21182 | case `pwd` in |
| 21183 | .) ac_abs_builddir="$ac_dir";; |
| 21184 | *) |
| 21185 | case "$ac_dir" in |
| 21186 | .) ac_abs_builddir=`pwd`;; |
| 21187 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21188 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21189 | esac;; |
| 21190 | esac |
| 21191 | case $ac_abs_builddir in |
| 21192 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21193 | *) |
| 21194 | case ${ac_top_builddir}. in |
| 21195 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21196 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21197 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21198 | esac;; |
| 21199 | esac |
| 21200 | case $ac_abs_builddir in |
| 21201 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21202 | *) |
| 21203 | case $ac_srcdir in |
| 21204 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21205 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21206 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21207 | esac;; |
| 21208 | esac |
| 21209 | case $ac_abs_builddir in |
| 21210 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21211 | *) |
| 21212 | case $ac_top_srcdir in |
| 21213 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21214 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21215 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21216 | esac;; |
| 21217 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21218 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21219 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21220 | case $INSTALL in |
| 21221 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21222 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21223 | esac |
| 21224 | |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 21225 | if test x"$ac_file" != x-; then |
| 21226 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21227 | echo "$as_me: creating $ac_file" >&6;} |
| 21228 | rm -f "$ac_file" |
| 21229 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21230 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21231 | # use $as_me), people would be surprised to read: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21232 | # /* config.h. Generated by config.status. */ |
| 21233 | if test x"$ac_file" = x-; then |
| 21234 | configure_input= |
| 21235 | else |
| 21236 | configure_input="$ac_file. " |
| 21237 | fi |
| 21238 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21239 | sed 's,.*/,,'` by configure." |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21240 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21241 | # First look for the input files in the build tree, otherwise in the |
| 21242 | # src tree. |
| 21243 | ac_file_inputs=`IFS=: |
| 21244 | for f in $ac_file_in; do |
| 21245 | case $f in |
| 21246 | -) echo $tmp/stdin ;; |
| 21247 | [\\/$]*) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21248 | # Absolute (can't be DOS-style, as IFS=:) |
| 21249 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21250 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21251 | { (exit 1); exit 1; }; } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21252 | echo "$f";; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21253 | *) # Relative |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21254 | if test -f "$f"; then |
| 21255 | # Build tree |
| 21256 | echo "$f" |
| 21257 | elif test -f "$srcdir/$f"; then |
| 21258 | # Source tree |
| 21259 | echo "$srcdir/$f" |
| 21260 | else |
| 21261 | # /dev/null tree |
| 21262 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21263 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21264 | { (exit 1); exit 1; }; } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21265 | fi;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21266 | esac |
| 21267 | done` || { (exit 1); exit 1; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21268 | _ACEOF |
| 21269 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21270 | sed "$ac_vpsub |
| 21271 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21272 | _ACEOF |
| 21273 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21274 | :t |
| 21275 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21276 | s,@configure_input@,$configure_input,;t t |
| 21277 | s,@srcdir@,$ac_srcdir,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21278 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21279 | s,@top_srcdir@,$ac_top_srcdir,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21280 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21281 | s,@builddir@,$ac_builddir,;t t |
| 21282 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21283 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21284 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21285 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21286 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21287 | rm -f $tmp/stdin |
| 21288 | if test x"$ac_file" != x-; then |
| 21289 | mv $tmp/out $ac_file |
| 21290 | else |
| 21291 | cat $tmp/out |
| 21292 | rm -f $tmp/out |
| 21293 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21294 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21295 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21296 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21297 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21298 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21299 | |
| 21300 | { (exit 0); exit 0; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21301 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21302 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21303 | ac_clean_files=$ac_clean_files_save |
| 21304 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21305 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21306 | # configure is writing to config.log, and then calls config.status. |
| 21307 | # config.status does its own redirection, appending to config.log. |
| 21308 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21309 | # by configure, so config.status won't be able to write to it; its |
| 21310 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21311 | # effectively closing config.log, so it can be properly (re)opened and |
| 21312 | # appended to by config.status. When coming back to configure, we |
| 21313 | # need to make the FD available again. |
| 21314 | if test "$no_create" != yes; then |
| 21315 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21316 | ac_config_status_args= |
| 21317 | test "$silent" = yes && |
| 21318 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21319 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21320 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21321 | exec 5>>config.log |
| 21322 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21323 | # would make configure fail if this is the last instruction. |
| 21324 | $ac_cs_success || { (exit 1); exit 1; } |
| 21325 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21326 | |