John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
John Criswell | e250389 | 2005-11-08 21:13:01 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for llvm 1.7cvs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10 | # |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 11 | # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
| 16 | # Be Bourne compatible |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 24 | set -o posix |
| 25 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | |
| 28 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | as_unset=unset |
| 31 | else |
| 32 | as_unset=false |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | # Work around bugs in pre-3.0 UWIN ksh. |
| 37 | $as_unset ENV MAIL MAILPATH |
| 38 | PS1='$ ' |
| 39 | PS2='> ' |
| 40 | PS4='+ ' |
| 41 | |
| 42 | # NLS nuisances. |
| 43 | for as_var in \ |
| 44 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 45 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 46 | LC_TELEPHONE LC_TIME |
| 47 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 48 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 49 | eval $as_var=C; export $as_var |
| 50 | else |
| 51 | $as_unset $as_var |
| 52 | fi |
| 53 | done |
| 54 | |
| 55 | # Required to use basename. |
| 56 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 57 | as_expr=expr |
| 58 | else |
| 59 | as_expr=false |
| 60 | fi |
| 61 | |
| 62 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 63 | as_basename=basename |
| 64 | else |
| 65 | as_basename=false |
| 66 | fi |
| 67 | |
| 68 | |
| 69 | # Name of the executable. |
| 70 | as_me=`$as_basename "$0" || |
| 71 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 72 | X"$0" : 'X\(//\)$' \| \ |
| 73 | X"$0" : 'X\(/\)$' \| \ |
| 74 | . : '\(.\)' 2>/dev/null || |
| 75 | echo X/"$0" | |
| 76 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 78 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 79 | s/.*/./; q'` |
| 80 | |
| 81 | |
| 82 | # PATH needs CR, and LINENO needs CR and PATH. |
| 83 | # Avoid depending upon Character Ranges. |
| 84 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 85 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 86 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 87 | as_cr_digits='0123456789' |
| 88 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 89 | |
| 90 | # The user is always right. |
| 91 | if test "${PATH_SEPARATOR+set}" != set; then |
| 92 | echo "#! /bin/sh" >conf$$.sh |
| 93 | echo "exit 0" >>conf$$.sh |
| 94 | chmod +x conf$$.sh |
| 95 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 96 | PATH_SEPARATOR=';' |
| 97 | else |
| 98 | PATH_SEPARATOR=: |
| 99 | fi |
| 100 | rm -f conf$$.sh |
| 101 | fi |
| 102 | |
| 103 | |
| 104 | as_lineno_1=$LINENO |
| 105 | as_lineno_2=$LINENO |
| 106 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 107 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 108 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 109 | # Find who we are. Look in the path if we contain no path at all |
| 110 | # relative or not. |
| 111 | case $0 in |
| 112 | *[\\/]* ) as_myself=$0 ;; |
| 113 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 114 | for as_dir in $PATH |
| 115 | do |
| 116 | IFS=$as_save_IFS |
| 117 | test -z "$as_dir" && as_dir=. |
| 118 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 119 | done |
| 120 | |
| 121 | ;; |
| 122 | esac |
| 123 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 124 | # in which case we are not to be found in the path. |
| 125 | if test "x$as_myself" = x; then |
| 126 | as_myself=$0 |
| 127 | fi |
| 128 | if test ! -f "$as_myself"; then |
| 129 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 130 | { (exit 1); exit 1; }; } |
| 131 | fi |
| 132 | case $CONFIG_SHELL in |
| 133 | '') |
| 134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 135 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 136 | do |
| 137 | IFS=$as_save_IFS |
| 138 | test -z "$as_dir" && as_dir=. |
| 139 | for as_base in sh bash ksh sh5; do |
| 140 | case $as_dir in |
| 141 | /*) |
| 142 | if ("$as_dir/$as_base" -c ' |
| 143 | as_lineno_1=$LINENO |
| 144 | as_lineno_2=$LINENO |
| 145 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 146 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 147 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 148 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 149 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 150 | CONFIG_SHELL=$as_dir/$as_base |
| 151 | export CONFIG_SHELL |
| 152 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 153 | fi;; |
| 154 | esac |
| 155 | done |
| 156 | done |
| 157 | ;; |
| 158 | esac |
| 159 | |
| 160 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 161 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 162 | # line-number line before each line; the second 'sed' does the real |
| 163 | # work. The second script uses 'N' to pair each line-number line |
| 164 | # with the numbered line, and appends trailing '-' during |
| 165 | # substitution so that $LINENO is not a special case at line end. |
| 166 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 167 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 168 | sed '=' <$as_myself | |
| 169 | sed ' |
| 170 | N |
| 171 | s,$,-, |
| 172 | : loop |
| 173 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 174 | t loop |
| 175 | s,-$,, |
| 176 | s,^['$as_cr_digits']*\n,, |
| 177 | ' >$as_me.lineno && |
| 178 | chmod +x $as_me.lineno || |
| 179 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 180 | { (exit 1); exit 1; }; } |
| 181 | |
| 182 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 183 | # (the dirname of $[0] is not the place where we might find the |
| 184 | # original and so on. Autoconf is especially sensible to this). |
| 185 | . ./$as_me.lineno |
| 186 | # Exit status is that of the last command. |
| 187 | exit |
| 188 | } |
| 189 | |
| 190 | |
| 191 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 192 | *c*,-n*) ECHO_N= ECHO_C=' |
| 193 | ' ECHO_T=' ' ;; |
| 194 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 195 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 196 | esac |
| 197 | |
| 198 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 199 | as_expr=expr |
| 200 | else |
| 201 | as_expr=false |
| 202 | fi |
| 203 | |
| 204 | rm -f conf$$ conf$$.exe conf$$.file |
| 205 | echo >conf$$.file |
| 206 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 207 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 208 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 209 | if test -f conf$$.exe; then |
| 210 | # Don't use ln at all; we don't have any links |
| 211 | as_ln_s='cp -p' |
| 212 | else |
| 213 | as_ln_s='ln -s' |
| 214 | fi |
| 215 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 216 | as_ln_s=ln |
| 217 | else |
| 218 | as_ln_s='cp -p' |
| 219 | fi |
| 220 | rm -f conf$$ conf$$.exe conf$$.file |
| 221 | |
| 222 | if mkdir -p . 2>/dev/null; then |
| 223 | as_mkdir_p=: |
| 224 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 225 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 226 | as_mkdir_p=false |
| 227 | fi |
| 228 | |
| 229 | as_executable_p="test -f" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 232 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 233 | |
| 234 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 235 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 236 | |
| 237 | |
| 238 | # IFS |
| 239 | # We need space, tab and new line, in precisely that order. |
| 240 | as_nl=' |
| 241 | ' |
| 242 | IFS=" $as_nl" |
| 243 | |
| 244 | # CDPATH. |
| 245 | $as_unset CDPATH |
| 246 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 247 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 248 | |
| 249 | # Check that we are running under the correct shell. |
| 250 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 251 | |
| 252 | case X$ECHO in |
| 253 | X*--fallback-echo) |
| 254 | # Remove one level of quotation (which was required for Make). |
| 255 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 256 | ;; |
| 257 | esac |
| 258 | |
| 259 | echo=${ECHO-echo} |
| 260 | if test "X$1" = X--no-reexec; then |
| 261 | # Discard the --no-reexec flag, and continue. |
| 262 | shift |
| 263 | elif test "X$1" = X--fallback-echo; then |
| 264 | # Avoid inline document here, it may be left over |
| 265 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 266 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 267 | # Yippee, $echo works! |
| 268 | : |
| 269 | else |
| 270 | # Restart under the correct shell. |
| 271 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 272 | fi |
| 273 | |
| 274 | if test "X$1" = X--fallback-echo; then |
| 275 | # used as fallback echo |
| 276 | shift |
| 277 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 278 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 279 | EOF |
| 280 | exit 0 |
| 281 | fi |
| 282 | |
| 283 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 284 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 285 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 286 | |
| 287 | if test -z "$ECHO"; then |
| 288 | if test "X${echo_test_string+set}" != Xset; then |
| 289 | # find a string as large as possible, as long as the shell can cope with it |
| 290 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 291 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 292 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 293 | echo_test_string="`eval $cmd`" && |
| 294 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 295 | then |
| 296 | break |
| 297 | fi |
| 298 | done |
| 299 | fi |
| 300 | |
| 301 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 302 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 303 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 304 | : |
| 305 | else |
| 306 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 307 | # backslashes. This makes it impossible to quote backslashes using |
| 308 | # echo "$something" | sed 's/\\/\\\\/g' |
| 309 | # |
| 310 | # So, first we look for a working echo in the user's PATH. |
| 311 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 314 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 315 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 316 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 317 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 318 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 319 | echo="$dir/echo" |
| 320 | break |
| 321 | fi |
| 322 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 323 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 324 | |
| 325 | if test "X$echo" = Xecho; then |
| 326 | # We didn't find a better echo, so look for alternatives. |
| 327 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 328 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 329 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 330 | # This shell has a builtin print -r that does the trick. |
| 331 | echo='print -r' |
| 332 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 333 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 334 | # If we have ksh, try running configure again with it. |
| 335 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 336 | export ORIGINAL_CONFIG_SHELL |
| 337 | CONFIG_SHELL=/bin/ksh |
| 338 | export CONFIG_SHELL |
| 339 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 340 | else |
| 341 | # Try using printf. |
| 342 | echo='printf %s\n' |
| 343 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 344 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 345 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 346 | # Cool, printf works |
| 347 | : |
| 348 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 349 | test "X$echo_testing_string" = 'X\t' && |
| 350 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 351 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 352 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 353 | export CONFIG_SHELL |
| 354 | SHELL="$CONFIG_SHELL" |
| 355 | export SHELL |
| 356 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 357 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = 'X\t' && |
| 359 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 360 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 362 | else |
| 363 | # maybe with a smaller string... |
| 364 | prev=: |
| 365 | |
| 366 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 367 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 368 | then |
| 369 | break |
| 370 | fi |
| 371 | prev="$cmd" |
| 372 | done |
| 373 | |
| 374 | if test "$prev" != 'sed 50q "$0"'; then |
| 375 | echo_test_string=`eval $prev` |
| 376 | export echo_test_string |
| 377 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 378 | else |
| 379 | # Oops. We lost completely, so just stick with echo. |
| 380 | echo=echo |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | fi |
| 385 | fi |
| 386 | fi |
| 387 | |
| 388 | # Copy echo and quote the copy suitably for passing to libtool from |
| 389 | # the Makefile, instead of quoting the original, which is used later. |
| 390 | ECHO=$echo |
| 391 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 392 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 393 | fi |
| 394 | |
| 395 | |
| 396 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 397 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 398 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 400 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 401 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 402 | # Name of the host. |
| 403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 404 | # so uname gets run too. |
| 405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 406 | |
| 407 | exec 6>&1 |
| 408 | |
| 409 | # |
| 410 | # Initializations. |
| 411 | # |
| 412 | ac_default_prefix=/usr/local |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 413 | ac_config_libobj_dir=. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 414 | cross_compiling=no |
| 415 | subdirs= |
| 416 | MFLAGS= |
| 417 | MAKEFLAGS= |
| 418 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 419 | |
| 420 | # Maximum number of lines to put in a shell here document. |
| 421 | # This variable seems obsolete. It should probably be removed, and |
| 422 | # only ac_max_sed_lines should be used. |
| 423 | : ${ac_max_here_lines=38} |
| 424 | |
| 425 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 426 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 427 | PACKAGE_TARNAME='-llvm-' |
John Criswell | e250389 | 2005-11-08 21:13:01 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.7cvs' |
| 429 | PACKAGE_STRING='llvm 1.7cvs' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 432 | ac_unique_file="lib/VMCore/Module.cpp" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 433 | ac_subdirs_all="$ac_subdirs_all projects/sample" |
| 434 | ac_subdirs_all="$ac_subdirs_all projects/Stacker" |
| 435 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" |
| 436 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" |
| 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" |
Alkis Evlogimenos | eadc9ef | 2005-01-05 17:57:28 +0000 | [diff] [blame] | 438 | ac_subdirs_all="$ac_subdirs_all projects/llvm-java" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 439 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 440 | ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 441 | ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 442 | # Factoring default headers for most tests. |
| 443 | ac_includes_default="\ |
| 444 | #include <stdio.h> |
| 445 | #if HAVE_SYS_TYPES_H |
| 446 | # include <sys/types.h> |
| 447 | #endif |
| 448 | #if HAVE_SYS_STAT_H |
| 449 | # include <sys/stat.h> |
| 450 | #endif |
| 451 | #if STDC_HEADERS |
| 452 | # include <stdlib.h> |
| 453 | # include <stddef.h> |
| 454 | #else |
| 455 | # if HAVE_STDLIB_H |
| 456 | # include <stdlib.h> |
| 457 | # endif |
| 458 | #endif |
| 459 | #if HAVE_STRING_H |
| 460 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 461 | # include <memory.h> |
| 462 | # endif |
| 463 | # include <string.h> |
| 464 | #endif |
| 465 | #if HAVE_STRINGS_H |
| 466 | # include <strings.h> |
| 467 | #endif |
| 468 | #if HAVE_INTTYPES_H |
| 469 | # include <inttypes.h> |
| 470 | #else |
| 471 | # if HAVE_STDINT_H |
| 472 | # include <stdint.h> |
| 473 | # endif |
| 474 | #endif |
| 475 | #if HAVE_UNISTD_H |
| 476 | # include <unistd.h> |
| 477 | #endif" |
| 478 | |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 479 | 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED ENABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 480 | ac_subst_files='' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 481 | |
| 482 | # Initialize some variables set by options. |
| 483 | ac_init_help= |
| 484 | ac_init_version=false |
| 485 | # The variables have the same names as the options, with |
| 486 | # dashes changed to underlines. |
| 487 | cache_file=/dev/null |
| 488 | exec_prefix=NONE |
| 489 | no_create= |
| 490 | no_recursion= |
| 491 | prefix=NONE |
| 492 | program_prefix=NONE |
| 493 | program_suffix=NONE |
| 494 | program_transform_name=s,x,x, |
| 495 | silent= |
| 496 | site= |
| 497 | srcdir= |
| 498 | verbose= |
| 499 | x_includes=NONE |
| 500 | x_libraries=NONE |
| 501 | |
| 502 | # Installation directory options. |
| 503 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 504 | # and all the variables that are supposed to be based on exec_prefix |
| 505 | # by default will actually change. |
| 506 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 507 | bindir='${exec_prefix}/bin' |
| 508 | sbindir='${exec_prefix}/sbin' |
| 509 | libexecdir='${exec_prefix}/libexec' |
| 510 | datadir='${prefix}/share' |
| 511 | sysconfdir='${prefix}/etc' |
| 512 | sharedstatedir='${prefix}/com' |
| 513 | localstatedir='${prefix}/var' |
| 514 | libdir='${exec_prefix}/lib' |
| 515 | includedir='${prefix}/include' |
| 516 | oldincludedir='/usr/include' |
| 517 | infodir='${prefix}/info' |
| 518 | mandir='${prefix}/man' |
| 519 | |
| 520 | ac_prev= |
| 521 | for ac_option |
| 522 | do |
| 523 | # If the previous option needs an argument, assign it. |
| 524 | if test -n "$ac_prev"; then |
| 525 | eval "$ac_prev=\$ac_option" |
| 526 | ac_prev= |
| 527 | continue |
| 528 | fi |
| 529 | |
| 530 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 531 | |
| 532 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 533 | |
| 534 | case $ac_option in |
| 535 | |
| 536 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 537 | ac_prev=bindir ;; |
| 538 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 539 | bindir=$ac_optarg ;; |
| 540 | |
| 541 | -build | --build | --buil | --bui | --bu) |
| 542 | ac_prev=build_alias ;; |
| 543 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 544 | build_alias=$ac_optarg ;; |
| 545 | |
| 546 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 547 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 548 | ac_prev=cache_file ;; |
| 549 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 550 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 551 | cache_file=$ac_optarg ;; |
| 552 | |
| 553 | --config-cache | -C) |
| 554 | cache_file=config.cache ;; |
| 555 | |
| 556 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 557 | ac_prev=datadir ;; |
| 558 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 559 | | --da=*) |
| 560 | datadir=$ac_optarg ;; |
| 561 | |
| 562 | -disable-* | --disable-*) |
| 563 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 564 | # Reject names that are not valid shell variable names. |
| 565 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 566 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 567 | { (exit 1); exit 1; }; } |
| 568 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 569 | eval "enable_$ac_feature=no" ;; |
| 570 | |
| 571 | -enable-* | --enable-*) |
| 572 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 573 | # Reject names that are not valid shell variable names. |
| 574 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 575 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 576 | { (exit 1); exit 1; }; } |
| 577 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 578 | case $ac_option in |
| 579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 580 | *) ac_optarg=yes ;; |
| 581 | esac |
| 582 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 583 | |
| 584 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 585 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 586 | | --exec | --exe | --ex) |
| 587 | ac_prev=exec_prefix ;; |
| 588 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 589 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 590 | | --exec=* | --exe=* | --ex=*) |
| 591 | exec_prefix=$ac_optarg ;; |
| 592 | |
| 593 | -gas | --gas | --ga | --g) |
| 594 | # Obsolete; use --with-gas. |
| 595 | with_gas=yes ;; |
| 596 | |
| 597 | -help | --help | --hel | --he | -h) |
| 598 | ac_init_help=long ;; |
| 599 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 600 | ac_init_help=recursive ;; |
| 601 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 602 | ac_init_help=short ;; |
| 603 | |
| 604 | -host | --host | --hos | --ho) |
| 605 | ac_prev=host_alias ;; |
| 606 | -host=* | --host=* | --hos=* | --ho=*) |
| 607 | host_alias=$ac_optarg ;; |
| 608 | |
| 609 | -includedir | --includedir | --includedi | --included | --include \ |
| 610 | | --includ | --inclu | --incl | --inc) |
| 611 | ac_prev=includedir ;; |
| 612 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 613 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 614 | includedir=$ac_optarg ;; |
| 615 | |
| 616 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 617 | ac_prev=infodir ;; |
| 618 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 619 | infodir=$ac_optarg ;; |
| 620 | |
| 621 | -libdir | --libdir | --libdi | --libd) |
| 622 | ac_prev=libdir ;; |
| 623 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 624 | libdir=$ac_optarg ;; |
| 625 | |
| 626 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 627 | | --libexe | --libex | --libe) |
| 628 | ac_prev=libexecdir ;; |
| 629 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 630 | | --libexe=* | --libex=* | --libe=*) |
| 631 | libexecdir=$ac_optarg ;; |
| 632 | |
| 633 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 634 | | --localstate | --localstat | --localsta | --localst \ |
| 635 | | --locals | --local | --loca | --loc | --lo) |
| 636 | ac_prev=localstatedir ;; |
| 637 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 638 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 639 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 640 | localstatedir=$ac_optarg ;; |
| 641 | |
| 642 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 643 | ac_prev=mandir ;; |
| 644 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 645 | mandir=$ac_optarg ;; |
| 646 | |
| 647 | -nfp | --nfp | --nf) |
| 648 | # Obsolete; use --without-fp. |
| 649 | with_fp=no ;; |
| 650 | |
| 651 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 652 | | --no-cr | --no-c | -n) |
| 653 | no_create=yes ;; |
| 654 | |
| 655 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 656 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 657 | no_recursion=yes ;; |
| 658 | |
| 659 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 660 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 661 | | --oldin | --oldi | --old | --ol | --o) |
| 662 | ac_prev=oldincludedir ;; |
| 663 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 664 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 665 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 666 | oldincludedir=$ac_optarg ;; |
| 667 | |
| 668 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 669 | ac_prev=prefix ;; |
| 670 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 671 | prefix=$ac_optarg ;; |
| 672 | |
| 673 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 674 | | --program-pre | --program-pr | --program-p) |
| 675 | ac_prev=program_prefix ;; |
| 676 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 677 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 678 | program_prefix=$ac_optarg ;; |
| 679 | |
| 680 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 681 | | --program-suf | --program-su | --program-s) |
| 682 | ac_prev=program_suffix ;; |
| 683 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 684 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 685 | program_suffix=$ac_optarg ;; |
| 686 | |
| 687 | -program-transform-name | --program-transform-name \ |
| 688 | | --program-transform-nam | --program-transform-na \ |
| 689 | | --program-transform-n | --program-transform- \ |
| 690 | | --program-transform | --program-transfor \ |
| 691 | | --program-transfo | --program-transf \ |
| 692 | | --program-trans | --program-tran \ |
| 693 | | --progr-tra | --program-tr | --program-t) |
| 694 | ac_prev=program_transform_name ;; |
| 695 | -program-transform-name=* | --program-transform-name=* \ |
| 696 | | --program-transform-nam=* | --program-transform-na=* \ |
| 697 | | --program-transform-n=* | --program-transform-=* \ |
| 698 | | --program-transform=* | --program-transfor=* \ |
| 699 | | --program-transfo=* | --program-transf=* \ |
| 700 | | --program-trans=* | --program-tran=* \ |
| 701 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 702 | program_transform_name=$ac_optarg ;; |
| 703 | |
| 704 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 705 | | -silent | --silent | --silen | --sile | --sil) |
| 706 | silent=yes ;; |
| 707 | |
| 708 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 709 | ac_prev=sbindir ;; |
| 710 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 711 | | --sbi=* | --sb=*) |
| 712 | sbindir=$ac_optarg ;; |
| 713 | |
| 714 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 715 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 716 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 717 | | --sha | --sh) |
| 718 | ac_prev=sharedstatedir ;; |
| 719 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 720 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 721 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 722 | | --sha=* | --sh=*) |
| 723 | sharedstatedir=$ac_optarg ;; |
| 724 | |
| 725 | -site | --site | --sit) |
| 726 | ac_prev=site ;; |
| 727 | -site=* | --site=* | --sit=*) |
| 728 | site=$ac_optarg ;; |
| 729 | |
| 730 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 731 | ac_prev=srcdir ;; |
| 732 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 733 | srcdir=$ac_optarg ;; |
| 734 | |
| 735 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 736 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 737 | ac_prev=sysconfdir ;; |
| 738 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 739 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 740 | sysconfdir=$ac_optarg ;; |
| 741 | |
| 742 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 743 | ac_prev=target_alias ;; |
| 744 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 745 | target_alias=$ac_optarg ;; |
| 746 | |
| 747 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 748 | verbose=yes ;; |
| 749 | |
| 750 | -version | --version | --versio | --versi | --vers | -V) |
| 751 | ac_init_version=: ;; |
| 752 | |
| 753 | -with-* | --with-*) |
| 754 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 755 | # Reject names that are not valid shell variable names. |
| 756 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 757 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 758 | { (exit 1); exit 1; }; } |
| 759 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 760 | case $ac_option in |
| 761 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 762 | *) ac_optarg=yes ;; |
| 763 | esac |
| 764 | eval "with_$ac_package='$ac_optarg'" ;; |
| 765 | |
| 766 | -without-* | --without-*) |
| 767 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 768 | # Reject names that are not valid shell variable names. |
| 769 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 770 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 771 | { (exit 1); exit 1; }; } |
| 772 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 773 | eval "with_$ac_package=no" ;; |
| 774 | |
| 775 | --x) |
| 776 | # Obsolete; use --with-x. |
| 777 | with_x=yes ;; |
| 778 | |
| 779 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 780 | | --x-incl | --x-inc | --x-in | --x-i) |
| 781 | ac_prev=x_includes ;; |
| 782 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 783 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 784 | x_includes=$ac_optarg ;; |
| 785 | |
| 786 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 787 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 788 | ac_prev=x_libraries ;; |
| 789 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 790 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 791 | x_libraries=$ac_optarg ;; |
| 792 | |
| 793 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 794 | Try \`$0 --help' for more information." >&2 |
| 795 | { (exit 1); exit 1; }; } |
| 796 | ;; |
| 797 | |
| 798 | *=*) |
| 799 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 800 | # Reject names that are not valid shell variable names. |
| 801 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 802 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 803 | { (exit 1); exit 1; }; } |
| 804 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 805 | eval "$ac_envvar='$ac_optarg'" |
| 806 | export $ac_envvar ;; |
| 807 | |
| 808 | *) |
| 809 | # FIXME: should be removed in autoconf 3.0. |
| 810 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 811 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 812 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 813 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 814 | ;; |
| 815 | |
| 816 | esac |
| 817 | done |
| 818 | |
| 819 | if test -n "$ac_prev"; then |
| 820 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 821 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 822 | { (exit 1); exit 1; }; } |
| 823 | fi |
| 824 | |
| 825 | # Be sure to have absolute paths. |
| 826 | for ac_var in exec_prefix prefix |
| 827 | do |
| 828 | eval ac_val=$`echo $ac_var` |
| 829 | case $ac_val in |
| 830 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 831 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 832 | { (exit 1); exit 1; }; };; |
| 833 | esac |
| 834 | done |
| 835 | |
| 836 | # Be sure to have absolute paths. |
| 837 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 838 | localstatedir libdir includedir oldincludedir infodir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 839 | do |
| 840 | eval ac_val=$`echo $ac_var` |
| 841 | case $ac_val in |
| 842 | [\\/$]* | ?:[\\/]* ) ;; |
| 843 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 844 | { (exit 1); exit 1; }; };; |
| 845 | esac |
| 846 | done |
| 847 | |
| 848 | # There might be people who depend on the old broken behavior: `$host' |
| 849 | # used to hold the argument of --host etc. |
| 850 | # FIXME: To remove some day. |
| 851 | build=$build_alias |
| 852 | host=$host_alias |
| 853 | target=$target_alias |
| 854 | |
| 855 | # FIXME: To remove some day. |
| 856 | if test "x$host_alias" != x; then |
| 857 | if test "x$build_alias" = x; then |
| 858 | cross_compiling=maybe |
| 859 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 860 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 861 | elif test "x$build_alias" != "x$host_alias"; then |
| 862 | cross_compiling=yes |
| 863 | fi |
| 864 | fi |
| 865 | |
| 866 | ac_tool_prefix= |
| 867 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 868 | |
| 869 | test "$silent" = yes && exec 6>/dev/null |
| 870 | |
| 871 | |
| 872 | # Find the source files, if location was not specified. |
| 873 | if test -z "$srcdir"; then |
| 874 | ac_srcdir_defaulted=yes |
| 875 | # Try the directory containing this script, then its parent. |
| 876 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 877 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 878 | X"$0" : 'X\(//\)[^/]' \| \ |
| 879 | X"$0" : 'X\(//\)$' \| \ |
| 880 | X"$0" : 'X\(/\)' \| \ |
| 881 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | echo X"$0" | |
| 883 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 884 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 885 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 886 | /^X\(\/\).*/{ s//\1/; q; } |
| 887 | s/.*/./; q'` |
| 888 | srcdir=$ac_confdir |
| 889 | if test ! -r $srcdir/$ac_unique_file; then |
| 890 | srcdir=.. |
| 891 | fi |
| 892 | else |
| 893 | ac_srcdir_defaulted=no |
| 894 | fi |
| 895 | if test ! -r $srcdir/$ac_unique_file; then |
| 896 | if test "$ac_srcdir_defaulted" = yes; then |
| 897 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 898 | { (exit 1); exit 1; }; } |
| 899 | else |
| 900 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 901 | { (exit 1); exit 1; }; } |
| 902 | fi |
| 903 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 904 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 905 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 906 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 907 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 908 | ac_env_build_alias_set=${build_alias+set} |
| 909 | ac_env_build_alias_value=$build_alias |
| 910 | ac_cv_env_build_alias_set=${build_alias+set} |
| 911 | ac_cv_env_build_alias_value=$build_alias |
| 912 | ac_env_host_alias_set=${host_alias+set} |
| 913 | ac_env_host_alias_value=$host_alias |
| 914 | ac_cv_env_host_alias_set=${host_alias+set} |
| 915 | ac_cv_env_host_alias_value=$host_alias |
| 916 | ac_env_target_alias_set=${target_alias+set} |
| 917 | ac_env_target_alias_value=$target_alias |
| 918 | ac_cv_env_target_alias_set=${target_alias+set} |
| 919 | ac_cv_env_target_alias_value=$target_alias |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | ac_env_CC_set=${CC+set} |
| 921 | ac_env_CC_value=$CC |
| 922 | ac_cv_env_CC_set=${CC+set} |
| 923 | ac_cv_env_CC_value=$CC |
| 924 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 925 | ac_env_CFLAGS_value=$CFLAGS |
| 926 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 927 | ac_cv_env_CFLAGS_value=$CFLAGS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 928 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 929 | ac_env_LDFLAGS_value=$LDFLAGS |
| 930 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 931 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 932 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 933 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 934 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 935 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 936 | ac_env_CPP_set=${CPP+set} |
| 937 | ac_env_CPP_value=$CPP |
| 938 | ac_cv_env_CPP_set=${CPP+set} |
| 939 | ac_cv_env_CPP_value=$CPP |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 940 | ac_env_CXX_set=${CXX+set} |
| 941 | ac_env_CXX_value=$CXX |
| 942 | ac_cv_env_CXX_set=${CXX+set} |
| 943 | ac_cv_env_CXX_value=$CXX |
| 944 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 945 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 946 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 947 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 948 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 949 | ac_env_CXXCPP_value=$CXXCPP |
| 950 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 951 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 952 | ac_env_F77_set=${F77+set} |
| 953 | ac_env_F77_value=$F77 |
| 954 | ac_cv_env_F77_set=${F77+set} |
| 955 | ac_cv_env_F77_value=$F77 |
| 956 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 957 | ac_env_FFLAGS_value=$FFLAGS |
| 958 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 959 | ac_cv_env_FFLAGS_value=$FFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 960 | |
| 961 | # |
| 962 | # Report the --help message. |
| 963 | # |
| 964 | if test "$ac_init_help" = "long"; then |
| 965 | # Omit some internal or obsolete options to make the list less imposing. |
| 966 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 967 | cat <<_ACEOF |
John Criswell | e250389 | 2005-11-08 21:13:01 +0000 | [diff] [blame] | 968 | \`configure' configures llvm 1.7cvs to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 969 | |
| 970 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 971 | |
| 972 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 973 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 974 | |
| 975 | Defaults for the options are specified in brackets. |
| 976 | |
| 977 | Configuration: |
| 978 | -h, --help display this help and exit |
| 979 | --help=short display options specific to this package |
| 980 | --help=recursive display the short help of all the included packages |
| 981 | -V, --version display version information and exit |
| 982 | -q, --quiet, --silent do not print \`checking...' messages |
| 983 | --cache-file=FILE cache test results in FILE [disabled] |
| 984 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 985 | -n, --no-create do not create output files |
| 986 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 987 | |
| 988 | _ACEOF |
| 989 | |
| 990 | cat <<_ACEOF |
| 991 | Installation directories: |
| 992 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 993 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 995 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 996 | |
| 997 | By default, \`make install' will install all the files in |
| 998 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 999 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1000 | for instance \`--prefix=\$HOME'. |
| 1001 | |
| 1002 | For better control, use the options below. |
| 1003 | |
| 1004 | Fine tuning of the installation directories: |
| 1005 | --bindir=DIR user executables [EPREFIX/bin] |
| 1006 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1007 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1008 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 1009 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1010 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1011 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1012 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1013 | --includedir=DIR C header files [PREFIX/include] |
| 1014 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1015 | --infodir=DIR info documentation [PREFIX/info] |
| 1016 | --mandir=DIR man documentation [PREFIX/man] |
| 1017 | _ACEOF |
| 1018 | |
| 1019 | cat <<\_ACEOF |
| 1020 | |
| 1021 | System types: |
| 1022 | --build=BUILD configure for building on BUILD [guessed] |
| 1023 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1024 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1025 | _ACEOF |
| 1026 | fi |
| 1027 | |
| 1028 | if test -n "$ac_init_help"; then |
| 1029 | case $ac_init_help in |
John Criswell | e250389 | 2005-11-08 21:13:01 +0000 | [diff] [blame] | 1030 | short | recursive ) echo "Configuration of llvm 1.7cvs:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1031 | esac |
| 1032 | cat <<\_ACEOF |
| 1033 | |
| 1034 | Optional Features: |
| 1035 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1036 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1037 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1038 | --enable-assertions |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 1039 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1040 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1041 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1042 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1043 | --enable-target Build specific host targets: |
| 1044 | all,host-only,{target-name} (default=all) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1045 | --enable-ltdl-install install libltdl |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1046 | --enable-shared[=PKGS] |
| 1047 | build shared libraries [default=yes] |
| 1048 | --enable-static[=PKGS] |
| 1049 | build static libraries [default=yes] |
| 1050 | --enable-fast-install[=PKGS] |
| 1051 | optimize for fast installation [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1052 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 | |
| 1054 | Optional Packages: |
| 1055 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1056 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1057 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1058 | searches PATH) |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1059 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1060 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1061 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1062 | both] |
| 1063 | --with-tags[=TAGS] |
| 1064 | include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1065 | |
| 1066 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1067 | CC C compiler command |
| 1068 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1069 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1070 | nonstandard directory <lib dir> |
| 1071 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1072 | headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1073 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1074 | CXX C++ compiler command |
| 1075 | CXXFLAGS C++ compiler flags |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1076 | CXXCPP C++ preprocessor |
| 1077 | F77 Fortran 77 compiler command |
| 1078 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1079 | |
| 1080 | Use these variables to override the choices made by `configure' or to help |
| 1081 | it to find libraries and programs with nonstandard names/locations. |
| 1082 | |
| 1083 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1084 | _ACEOF |
| 1085 | fi |
| 1086 | |
| 1087 | if test "$ac_init_help" = "recursive"; then |
| 1088 | # If there are subdirs, report their specific --help. |
| 1089 | ac_popdir=`pwd` |
| 1090 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1091 | test -d $ac_dir || continue |
| 1092 | ac_builddir=. |
| 1093 | |
| 1094 | if test "$ac_dir" != .; then |
| 1095 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1096 | # A "../" for each directory in $ac_dir_suffix. |
| 1097 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1098 | else |
| 1099 | ac_dir_suffix= ac_top_builddir= |
| 1100 | fi |
| 1101 | |
| 1102 | case $srcdir in |
| 1103 | .) # No --srcdir option. We are building in place. |
| 1104 | ac_srcdir=. |
| 1105 | if test -z "$ac_top_builddir"; then |
| 1106 | ac_top_srcdir=. |
| 1107 | else |
| 1108 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1109 | fi ;; |
| 1110 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1111 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1112 | ac_top_srcdir=$srcdir ;; |
| 1113 | *) # Relative path. |
| 1114 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1115 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1116 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1117 | |
| 1118 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1119 | # the directories may not exist. |
| 1120 | case `pwd` in |
| 1121 | .) ac_abs_builddir="$ac_dir";; |
| 1122 | *) |
| 1123 | case "$ac_dir" in |
| 1124 | .) ac_abs_builddir=`pwd`;; |
| 1125 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1126 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1127 | esac;; |
| 1128 | esac |
| 1129 | case $ac_abs_builddir in |
| 1130 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1131 | *) |
| 1132 | case ${ac_top_builddir}. in |
| 1133 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1134 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1135 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1136 | esac;; |
| 1137 | esac |
| 1138 | case $ac_abs_builddir in |
| 1139 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1140 | *) |
| 1141 | case $ac_srcdir in |
| 1142 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1143 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1144 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1145 | esac;; |
| 1146 | esac |
| 1147 | case $ac_abs_builddir in |
| 1148 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1149 | *) |
| 1150 | case $ac_top_srcdir in |
| 1151 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1152 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1153 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1154 | esac;; |
| 1155 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 | |
| 1157 | cd $ac_dir |
| 1158 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1159 | if test -f $ac_srcdir/configure.gnu; then |
| 1160 | echo |
| 1161 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1162 | elif test -f $ac_srcdir/configure; then |
| 1163 | echo |
| 1164 | $SHELL $ac_srcdir/configure --help=recursive |
| 1165 | elif test -f $ac_srcdir/configure.ac || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1166 | test -f $ac_srcdir/configure.in; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1167 | echo |
| 1168 | $ac_configure --help |
| 1169 | else |
| 1170 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1171 | fi |
| 1172 | cd $ac_popdir |
| 1173 | done |
| 1174 | fi |
| 1175 | |
| 1176 | test -n "$ac_init_help" && exit 0 |
| 1177 | if $ac_init_version; then |
| 1178 | cat <<\_ACEOF |
John Criswell | e250389 | 2005-11-08 21:13:01 +0000 | [diff] [blame] | 1179 | llvm configure 1.7cvs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1180 | generated by GNU Autoconf 2.59 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1181 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1182 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 | This configure script is free software; the Free Software Foundation |
| 1184 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1185 | |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 1186 | Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1187 | _ACEOF |
| 1188 | exit 0 |
| 1189 | fi |
| 1190 | exec 5>config.log |
| 1191 | cat >&5 <<_ACEOF |
| 1192 | This file contains any messages produced by compilers while |
| 1193 | running configure, to aid debugging if configure makes a mistake. |
| 1194 | |
John Criswell | e250389 | 2005-11-08 21:13:01 +0000 | [diff] [blame] | 1195 | It was created by llvm $as_me 1.7cvs, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1196 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1197 | |
| 1198 | $ $0 $@ |
| 1199 | |
| 1200 | _ACEOF |
| 1201 | { |
| 1202 | cat <<_ASUNAME |
| 1203 | ## --------- ## |
| 1204 | ## Platform. ## |
| 1205 | ## --------- ## |
| 1206 | |
| 1207 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1208 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1209 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1210 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1211 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1212 | |
| 1213 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1214 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1215 | |
| 1216 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1217 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1218 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1219 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1220 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1221 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1222 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1223 | |
| 1224 | _ASUNAME |
| 1225 | |
| 1226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1227 | for as_dir in $PATH |
| 1228 | do |
| 1229 | IFS=$as_save_IFS |
| 1230 | test -z "$as_dir" && as_dir=. |
| 1231 | echo "PATH: $as_dir" |
| 1232 | done |
| 1233 | |
| 1234 | } >&5 |
| 1235 | |
| 1236 | cat >&5 <<_ACEOF |
| 1237 | |
| 1238 | |
| 1239 | ## ----------- ## |
| 1240 | ## Core tests. ## |
| 1241 | ## ----------- ## |
| 1242 | |
| 1243 | _ACEOF |
| 1244 | |
| 1245 | |
| 1246 | # Keep a trace of the command line. |
| 1247 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1248 | # Strip out --silent because we don't want to record it for future runs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1249 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1250 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1251 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1252 | ac_configure_args0= |
| 1253 | ac_configure_args1= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1254 | ac_sep= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1255 | ac_must_keep_next=false |
| 1256 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1257 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1258 | for ac_arg |
| 1259 | do |
| 1260 | case $ac_arg in |
| 1261 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1262 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1263 | | -silent | --silent | --silen | --sile | --sil) |
| 1264 | continue ;; |
| 1265 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1266 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1267 | esac |
| 1268 | case $ac_pass in |
| 1269 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1270 | 2) |
| 1271 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1272 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1273 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1274 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1275 | case $ac_arg in |
| 1276 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1277 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1278 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1279 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1280 | case "$ac_configure_args0 " in |
| 1281 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1282 | esac |
| 1283 | ;; |
| 1284 | -* ) ac_must_keep_next=true ;; |
| 1285 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1286 | fi |
| 1287 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1288 | # Get rid of the leading space. |
| 1289 | ac_sep=" " |
| 1290 | ;; |
| 1291 | esac |
| 1292 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1293 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1294 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1295 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1296 | |
| 1297 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1298 | # config.log. We remove comments because anyway the quotes in there |
| 1299 | # would cause problems or look ugly. |
| 1300 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1301 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1302 | trap 'exit_status=$? |
| 1303 | # Save into config.log some information that might help in debugging. |
| 1304 | { |
| 1305 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1306 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1307 | cat <<\_ASBOX |
| 1308 | ## ---------------- ## |
| 1309 | ## Cache variables. ## |
| 1310 | ## ---------------- ## |
| 1311 | _ASBOX |
| 1312 | echo |
| 1313 | # The following way of writing the cache mishandles newlines in values, |
| 1314 | { |
| 1315 | (set) 2>&1 | |
| 1316 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1317 | *ac_space=\ *) |
| 1318 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1319 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1320 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1321 | ;; |
| 1322 | *) |
| 1323 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1324 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1325 | ;; |
| 1326 | esac; |
| 1327 | } |
| 1328 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1329 | |
| 1330 | cat <<\_ASBOX |
| 1331 | ## ----------------- ## |
| 1332 | ## Output variables. ## |
| 1333 | ## ----------------- ## |
| 1334 | _ASBOX |
| 1335 | echo |
| 1336 | for ac_var in $ac_subst_vars |
| 1337 | do |
| 1338 | eval ac_val=$`echo $ac_var` |
| 1339 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1340 | done | sort |
| 1341 | echo |
| 1342 | |
| 1343 | if test -n "$ac_subst_files"; then |
| 1344 | cat <<\_ASBOX |
| 1345 | ## ------------- ## |
| 1346 | ## Output files. ## |
| 1347 | ## ------------- ## |
| 1348 | _ASBOX |
| 1349 | echo |
| 1350 | for ac_var in $ac_subst_files |
| 1351 | do |
| 1352 | eval ac_val=$`echo $ac_var` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1353 | echo "$ac_var='"'"'$ac_val'"'"'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1354 | done | sort |
| 1355 | echo |
| 1356 | fi |
| 1357 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1358 | if test -s confdefs.h; then |
| 1359 | cat <<\_ASBOX |
| 1360 | ## ----------- ## |
| 1361 | ## confdefs.h. ## |
| 1362 | ## ----------- ## |
| 1363 | _ASBOX |
| 1364 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1365 | sed "/^$/d" confdefs.h | sort |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1366 | echo |
| 1367 | fi |
| 1368 | test "$ac_signal" != 0 && |
| 1369 | echo "$as_me: caught signal $ac_signal" |
| 1370 | echo "$as_me: exit $exit_status" |
| 1371 | } >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1372 | rm -f core *.core && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1373 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1374 | exit $exit_status |
| 1375 | ' 0 |
| 1376 | for ac_signal in 1 2 13 15; do |
| 1377 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1378 | done |
| 1379 | ac_signal=0 |
| 1380 | |
| 1381 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1382 | rm -rf conftest* confdefs.h |
| 1383 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1384 | echo >confdefs.h |
| 1385 | |
| 1386 | # Predefined preprocessor variables. |
| 1387 | |
| 1388 | cat >>confdefs.h <<_ACEOF |
| 1389 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1390 | _ACEOF |
| 1391 | |
| 1392 | |
| 1393 | cat >>confdefs.h <<_ACEOF |
| 1394 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1395 | _ACEOF |
| 1396 | |
| 1397 | |
| 1398 | cat >>confdefs.h <<_ACEOF |
| 1399 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1400 | _ACEOF |
| 1401 | |
| 1402 | |
| 1403 | cat >>confdefs.h <<_ACEOF |
| 1404 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1405 | _ACEOF |
| 1406 | |
| 1407 | |
| 1408 | cat >>confdefs.h <<_ACEOF |
| 1409 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1410 | _ACEOF |
| 1411 | |
| 1412 | |
| 1413 | # Let the site file select an alternate cache file if it wants to. |
| 1414 | # Prefer explicitly selected file to automatically selected ones. |
| 1415 | if test -z "$CONFIG_SITE"; then |
| 1416 | if test "x$prefix" != xNONE; then |
| 1417 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1418 | else |
| 1419 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1420 | fi |
| 1421 | fi |
| 1422 | for ac_site_file in $CONFIG_SITE; do |
| 1423 | if test -r "$ac_site_file"; then |
| 1424 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1425 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1426 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1427 | . "$ac_site_file" |
| 1428 | fi |
| 1429 | done |
| 1430 | |
| 1431 | if test -r "$cache_file"; then |
| 1432 | # Some versions of bash will fail to source /dev/null (special |
| 1433 | # files actually), so we avoid doing that. |
| 1434 | if test -f "$cache_file"; then |
| 1435 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1436 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1437 | case $cache_file in |
| 1438 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1439 | *) . ./$cache_file;; |
| 1440 | esac |
| 1441 | fi |
| 1442 | else |
| 1443 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1444 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1445 | >$cache_file |
| 1446 | fi |
| 1447 | |
| 1448 | # Check that the precious variables saved in the cache have kept the same |
| 1449 | # value. |
| 1450 | ac_cache_corrupted=false |
| 1451 | for ac_var in `(set) 2>&1 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1452 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1453 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1454 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1455 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1456 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1457 | case $ac_old_set,$ac_new_set in |
| 1458 | set,) |
| 1459 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1460 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1461 | ac_cache_corrupted=: ;; |
| 1462 | ,set) |
| 1463 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1464 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1465 | ac_cache_corrupted=: ;; |
| 1466 | ,);; |
| 1467 | *) |
| 1468 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1469 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1470 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1471 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1473 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1474 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1475 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1476 | fi;; |
| 1477 | esac |
| 1478 | # Pass precious variables to config.status. |
| 1479 | if test "$ac_new_set" = set; then |
| 1480 | case $ac_new_val in |
| 1481 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1482 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1483 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1484 | esac |
| 1485 | case " $ac_configure_args " in |
| 1486 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1487 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1488 | esac |
| 1489 | fi |
| 1490 | done |
| 1491 | if $ac_cache_corrupted; then |
| 1492 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1493 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1494 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1495 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1496 | { (exit 1); exit 1; }; } |
| 1497 | fi |
| 1498 | |
| 1499 | ac_ext=c |
| 1500 | ac_cpp='$CPP $CPPFLAGS' |
| 1501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | |
| 1518 | |
| 1519 | |
| 1520 | |
| 1521 | |
| 1522 | |
| 1523 | |
| 1524 | |
| 1525 | |
| 1526 | |
| 1527 | |
| 1528 | |
| 1529 | |
| 1530 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1531 | |
Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 1532 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1533 | |
| 1534 | |
| 1535 | |
| 1536 | |
| 1537 | |
| 1538 | |
| 1539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | ac_aux_dir= |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1541 | for ac_dir in autoconf $srcdir/autoconf; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1542 | if test -f $ac_dir/install-sh; then |
| 1543 | ac_aux_dir=$ac_dir |
| 1544 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1545 | break |
| 1546 | elif test -f $ac_dir/install.sh; then |
| 1547 | ac_aux_dir=$ac_dir |
| 1548 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1549 | break |
| 1550 | elif test -f $ac_dir/shtool; then |
| 1551 | ac_aux_dir=$ac_dir |
| 1552 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1553 | break |
| 1554 | fi |
| 1555 | done |
| 1556 | if test -z "$ac_aux_dir"; then |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1557 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
| 1558 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | { (exit 1); exit 1; }; } |
| 1560 | fi |
| 1561 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1562 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1563 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1564 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1565 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1566 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1567 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 1568 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1569 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1570 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1571 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1572 | fi |
| 1573 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1574 | for i in `ls ${srcdir}/projects` |
| 1575 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1576 | if test -d ${srcdir}/projects/${i} ; then |
| 1577 | case ${i} in |
| 1578 | "CVS") ;; |
| 1579 | "sample") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1580 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1581 | subdirs="$subdirs projects/sample" |
| 1582 | ;; |
| 1583 | "Stacker") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1584 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1585 | subdirs="$subdirs projects/Stacker" |
| 1586 | ;; |
| 1587 | "llvm-test") |
John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1588 | |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1589 | subdirs="$subdirs projects/llvm-test" |
| 1590 | ;; |
| 1591 | "llvm-reopt") |
| 1592 | |
| 1593 | subdirs="$subdirs projects/llvm-reopt" |
| 1594 | ;; |
| 1595 | "llvm-gcc") |
| 1596 | |
| 1597 | subdirs="$subdirs projects/llvm-gcc" |
| 1598 | ;; |
Alkis Evlogimenos | 7bd1ede | 2005-01-16 09:44:58 +0000 | [diff] [blame] | 1599 | "llvm-java") |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1600 | |
Alkis Evlogimenos | ae192d3 | 2005-01-14 07:52:28 +0000 | [diff] [blame] | 1601 | subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1602 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1603 | "llvm-tv") |
| 1604 | |
| 1605 | subdirs="$subdirs projects/llvm-tv" |
| 1606 | ;; |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1607 | "llvm-poolalloc") |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1608 | |
Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1609 | subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1610 | ;; |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 1611 | "llvm-kernel") |
| 1612 | |
| 1613 | subdirs="$subdirs projects/llvm-kernel" |
| 1614 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1615 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1616 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 1617 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 1618 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1619 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1620 | fi |
| 1621 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1622 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1623 | |
| 1624 | # Make sure we can run config.sub. |
| 1625 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1626 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1627 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1628 | { (exit 1); exit 1; }; } |
| 1629 | |
| 1630 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1631 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1632 | if test "${ac_cv_build+set}" = set; then |
| 1633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1634 | else |
| 1635 | ac_cv_build_alias=$build_alias |
| 1636 | test -z "$ac_cv_build_alias" && |
| 1637 | ac_cv_build_alias=`$ac_config_guess` |
| 1638 | test -z "$ac_cv_build_alias" && |
| 1639 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1640 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1641 | { (exit 1); exit 1; }; } |
| 1642 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1643 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1644 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1645 | { (exit 1); exit 1; }; } |
| 1646 | |
| 1647 | fi |
| 1648 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1649 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1650 | build=$ac_cv_build |
| 1651 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1652 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1653 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1654 | |
| 1655 | |
| 1656 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1657 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1658 | if test "${ac_cv_host+set}" = set; then |
| 1659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1660 | else |
| 1661 | ac_cv_host_alias=$host_alias |
| 1662 | test -z "$ac_cv_host_alias" && |
| 1663 | ac_cv_host_alias=$ac_cv_build_alias |
| 1664 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1665 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1666 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1667 | { (exit 1); exit 1; }; } |
| 1668 | |
| 1669 | fi |
| 1670 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1671 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1672 | host=$ac_cv_host |
| 1673 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1674 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1675 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1676 | |
| 1677 | |
| 1678 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1679 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1680 | if test "${ac_cv_target+set}" = set; then |
| 1681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1682 | else |
| 1683 | ac_cv_target_alias=$target_alias |
| 1684 | test "x$ac_cv_target_alias" = "x" && |
| 1685 | ac_cv_target_alias=$ac_cv_host_alias |
| 1686 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1687 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1688 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1689 | { (exit 1); exit 1; }; } |
| 1690 | |
| 1691 | fi |
| 1692 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1693 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1694 | target=$ac_cv_target |
| 1695 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1696 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1697 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1698 | |
| 1699 | |
| 1700 | # The aliases save the names the user supplied, while $host etc. |
| 1701 | # will get canonicalized. |
| 1702 | test -n "$target_alias" && |
| 1703 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1704 | NONENONEs,x,x, && |
| 1705 | program_prefix=${target_alias}- |
| 1706 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1707 | echo "$as_me:$LINENO: checking type of operating system we're on" >&5 |
| 1708 | echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6 |
| 1709 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1711 | else |
| 1712 | case $build in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1713 | *-*-aix*) |
| 1714 | llvm_cv_os_type="AIX" |
| 1715 | llvm_cv_platform_type="Unix" ;; |
| 1716 | *-*-cygwin*) |
| 1717 | llvm_cv_os_type="Cygwin" |
| 1718 | llvm_cv_platform_type="Unix" ;; |
| 1719 | *-*-darwin*) |
| 1720 | llvm_cv_os_type="Darwin" |
| 1721 | llvm_cv_platform_type="Unix" ;; |
| 1722 | *-*-freebsd*) |
| 1723 | llvm_cv_os_type="FreeBSD" |
| 1724 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 1725 | *-*-hpux*) |
| 1726 | llvm_cv_os_type="HP-UX" |
| 1727 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1728 | *-*-interix*) |
| 1729 | llvm_cv_os_type="Interix" |
| 1730 | llvm_cv_platform_type="Unix" ;; |
| 1731 | *-*-linux*) |
| 1732 | llvm_cv_os_type="Linux" |
| 1733 | llvm_cv_platform_type="Unix" ;; |
| 1734 | *-*-solaris*) |
| 1735 | llvm_cv_os_type="SunOS" |
| 1736 | llvm_cv_platform_type="Unix" ;; |
| 1737 | *-*-win32*) |
| 1738 | llvm_cv_os_type="Win32" |
| 1739 | llvm_cv_platform_type="Win32" ;; |
| 1740 | *-*-mingw*) |
| 1741 | llvm_cv_os_type="MingW" |
| 1742 | llvm_cv_platform_type="Win32" ;; |
| 1743 | *) |
| 1744 | llvm_cv_os_type="Unknown" |
| 1745 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1746 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1747 | fi |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 1749 | echo "${ECHO_T}$llvm_cv_os_type" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1751 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 1752 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 1753 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1754 | { (exit 1); exit 1; }; } |
| 1755 | fi |
| 1756 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1757 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1758 | |
| 1759 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1760 | case $llvm_cv_platform_type in |
| 1761 | Unix) |
| 1762 | |
| 1763 | cat >>confdefs.h <<\_ACEOF |
| 1764 | #define LLVM_ON_UNIX 1 |
| 1765 | _ACEOF |
| 1766 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1767 | LLVM_ON_UNIX=1 |
| 1768 | |
| 1769 | LLVM_ON_WIN32=0 |
| 1770 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1771 | ;; |
| 1772 | Win32) |
| 1773 | |
| 1774 | cat >>confdefs.h <<\_ACEOF |
| 1775 | #define LLVM_ON_WIN32 1 |
| 1776 | _ACEOF |
| 1777 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1778 | LLVM_ON_UNIX=0 |
| 1779 | |
| 1780 | LLVM_ON_WIN32=1 |
| 1781 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1782 | ;; |
| 1783 | esac |
| 1784 | |
Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1785 | echo "$as_me:$LINENO: checking target architecture" >&5 |
| 1786 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1787 | if test "${llvm_cv_target_arch+set}" = set; then |
| 1788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1789 | else |
| 1790 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1791 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 1792 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1793 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 1794 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 1795 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 1796 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1797 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1798 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1799 | fi |
| 1800 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 1801 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1802 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1803 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 1804 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 1805 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 1806 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1807 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1808 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1809 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1810 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1811 | ac_ext=c |
| 1812 | ac_cpp='$CPP $CPPFLAGS' |
| 1813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1816 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1817 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1818 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1819 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1821 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1823 | else |
| 1824 | if test -n "$CC"; then |
| 1825 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1826 | else |
| 1827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1828 | for as_dir in $PATH |
| 1829 | do |
| 1830 | IFS=$as_save_IFS |
| 1831 | test -z "$as_dir" && as_dir=. |
| 1832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1833 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1834 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1836 | break 2 |
| 1837 | fi |
| 1838 | done |
| 1839 | done |
| 1840 | |
| 1841 | fi |
| 1842 | fi |
| 1843 | CC=$ac_cv_prog_CC |
| 1844 | if test -n "$CC"; then |
| 1845 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1846 | echo "${ECHO_T}$CC" >&6 |
| 1847 | else |
| 1848 | echo "$as_me:$LINENO: result: no" >&5 |
| 1849 | echo "${ECHO_T}no" >&6 |
| 1850 | fi |
| 1851 | |
| 1852 | fi |
| 1853 | if test -z "$ac_cv_prog_CC"; then |
| 1854 | ac_ct_CC=$CC |
| 1855 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1856 | set dummy gcc; ac_word=$2 |
| 1857 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1858 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1859 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1861 | else |
| 1862 | if test -n "$ac_ct_CC"; then |
| 1863 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1864 | else |
| 1865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1866 | for as_dir in $PATH |
| 1867 | do |
| 1868 | IFS=$as_save_IFS |
| 1869 | test -z "$as_dir" && as_dir=. |
| 1870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1871 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1872 | ac_cv_prog_ac_ct_CC="gcc" |
| 1873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1874 | break 2 |
| 1875 | fi |
| 1876 | done |
| 1877 | done |
| 1878 | |
| 1879 | fi |
| 1880 | fi |
| 1881 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1882 | if test -n "$ac_ct_CC"; then |
| 1883 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1884 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1885 | else |
| 1886 | echo "$as_me:$LINENO: result: no" >&5 |
| 1887 | echo "${ECHO_T}no" >&6 |
| 1888 | fi |
| 1889 | |
| 1890 | CC=$ac_ct_CC |
| 1891 | else |
| 1892 | CC="$ac_cv_prog_CC" |
| 1893 | fi |
| 1894 | |
| 1895 | if test -z "$CC"; then |
| 1896 | if test -n "$ac_tool_prefix"; then |
| 1897 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1898 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1899 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1900 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1901 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1903 | else |
| 1904 | if test -n "$CC"; then |
| 1905 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1906 | else |
| 1907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1908 | for as_dir in $PATH |
| 1909 | do |
| 1910 | IFS=$as_save_IFS |
| 1911 | test -z "$as_dir" && as_dir=. |
| 1912 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1913 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1914 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1915 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1916 | break 2 |
| 1917 | fi |
| 1918 | done |
| 1919 | done |
| 1920 | |
| 1921 | fi |
| 1922 | fi |
| 1923 | CC=$ac_cv_prog_CC |
| 1924 | if test -n "$CC"; then |
| 1925 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1926 | echo "${ECHO_T}$CC" >&6 |
| 1927 | else |
| 1928 | echo "$as_me:$LINENO: result: no" >&5 |
| 1929 | echo "${ECHO_T}no" >&6 |
| 1930 | fi |
| 1931 | |
| 1932 | fi |
| 1933 | if test -z "$ac_cv_prog_CC"; then |
| 1934 | ac_ct_CC=$CC |
| 1935 | # Extract the first word of "cc", so it can be a program name with args. |
| 1936 | set dummy cc; ac_word=$2 |
| 1937 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1939 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1941 | else |
| 1942 | if test -n "$ac_ct_CC"; then |
| 1943 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1944 | else |
| 1945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1946 | for as_dir in $PATH |
| 1947 | do |
| 1948 | IFS=$as_save_IFS |
| 1949 | test -z "$as_dir" && as_dir=. |
| 1950 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1951 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1952 | ac_cv_prog_ac_ct_CC="cc" |
| 1953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1954 | break 2 |
| 1955 | fi |
| 1956 | done |
| 1957 | done |
| 1958 | |
| 1959 | fi |
| 1960 | fi |
| 1961 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1962 | if test -n "$ac_ct_CC"; then |
| 1963 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1964 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1965 | else |
| 1966 | echo "$as_me:$LINENO: result: no" >&5 |
| 1967 | echo "${ECHO_T}no" >&6 |
| 1968 | fi |
| 1969 | |
| 1970 | CC=$ac_ct_CC |
| 1971 | else |
| 1972 | CC="$ac_cv_prog_CC" |
| 1973 | fi |
| 1974 | |
| 1975 | fi |
| 1976 | if test -z "$CC"; then |
| 1977 | # Extract the first word of "cc", so it can be a program name with args. |
| 1978 | set dummy cc; ac_word=$2 |
| 1979 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1981 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1983 | else |
| 1984 | if test -n "$CC"; then |
| 1985 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1986 | else |
| 1987 | ac_prog_rejected=no |
| 1988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1989 | for as_dir in $PATH |
| 1990 | do |
| 1991 | IFS=$as_save_IFS |
| 1992 | test -z "$as_dir" && as_dir=. |
| 1993 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1995 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1996 | ac_prog_rejected=yes |
| 1997 | continue |
| 1998 | fi |
| 1999 | ac_cv_prog_CC="cc" |
| 2000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2001 | break 2 |
| 2002 | fi |
| 2003 | done |
| 2004 | done |
| 2005 | |
| 2006 | if test $ac_prog_rejected = yes; then |
| 2007 | # We found a bogon in the path, so make sure we never use it. |
| 2008 | set dummy $ac_cv_prog_CC |
| 2009 | shift |
| 2010 | if test $# != 0; then |
| 2011 | # We chose a different compiler from the bogus one. |
| 2012 | # However, it has the same basename, so the bogon will be chosen |
| 2013 | # first if we set CC to just the basename; use the full file name. |
| 2014 | shift |
| 2015 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2016 | fi |
| 2017 | fi |
| 2018 | fi |
| 2019 | fi |
| 2020 | CC=$ac_cv_prog_CC |
| 2021 | if test -n "$CC"; then |
| 2022 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2023 | echo "${ECHO_T}$CC" >&6 |
| 2024 | else |
| 2025 | echo "$as_me:$LINENO: result: no" >&5 |
| 2026 | echo "${ECHO_T}no" >&6 |
| 2027 | fi |
| 2028 | |
| 2029 | fi |
| 2030 | if test -z "$CC"; then |
| 2031 | if test -n "$ac_tool_prefix"; then |
| 2032 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2033 | do |
| 2034 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2035 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2036 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2038 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2040 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2041 | if test -n "$CC"; then |
| 2042 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2043 | else |
| 2044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2045 | for as_dir in $PATH |
| 2046 | do |
| 2047 | IFS=$as_save_IFS |
| 2048 | test -z "$as_dir" && as_dir=. |
| 2049 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2050 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2051 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2053 | break 2 |
| 2054 | fi |
| 2055 | done |
| 2056 | done |
| 2057 | |
| 2058 | fi |
| 2059 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2060 | CC=$ac_cv_prog_CC |
| 2061 | if test -n "$CC"; then |
| 2062 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2063 | echo "${ECHO_T}$CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2064 | else |
| 2065 | echo "$as_me:$LINENO: result: no" >&5 |
| 2066 | echo "${ECHO_T}no" >&6 |
| 2067 | fi |
| 2068 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2069 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | done |
| 2071 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2072 | if test -z "$CC"; then |
| 2073 | ac_ct_CC=$CC |
| 2074 | for ac_prog in cl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2075 | do |
| 2076 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2077 | set dummy $ac_prog; ac_word=$2 |
| 2078 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2080 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2082 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2083 | if test -n "$ac_ct_CC"; then |
| 2084 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2085 | else |
| 2086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2087 | for as_dir in $PATH |
| 2088 | do |
| 2089 | IFS=$as_save_IFS |
| 2090 | test -z "$as_dir" && as_dir=. |
| 2091 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2092 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2093 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2095 | break 2 |
| 2096 | fi |
| 2097 | done |
| 2098 | done |
| 2099 | |
| 2100 | fi |
| 2101 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2102 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2103 | if test -n "$ac_ct_CC"; then |
| 2104 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2105 | echo "${ECHO_T}$ac_ct_CC" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2106 | else |
| 2107 | echo "$as_me:$LINENO: result: no" >&5 |
| 2108 | echo "${ECHO_T}no" >&6 |
| 2109 | fi |
| 2110 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2111 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2113 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2114 | CC=$ac_ct_CC |
| 2115 | fi |
| 2116 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2117 | fi |
| 2118 | |
| 2119 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2120 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2121 | See \`config.log' for more details." >&5 |
| 2122 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2123 | See \`config.log' for more details." >&2;} |
| 2124 | { (exit 1); exit 1; }; } |
| 2125 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2126 | # Provide some information about the compiler. |
| 2127 | echo "$as_me:$LINENO:" \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2128 | "checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2129 | ac_compiler=`set X $ac_compile; echo $2` |
| 2130 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2131 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2132 | ac_status=$? |
| 2133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2134 | (exit $ac_status); } |
| 2135 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2136 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2137 | ac_status=$? |
| 2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2139 | (exit $ac_status); } |
| 2140 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2141 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2142 | ac_status=$? |
| 2143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2144 | (exit $ac_status); } |
| 2145 | |
| 2146 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +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. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2152 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2153 | int |
| 2154 | main () |
| 2155 | { |
| 2156 | |
| 2157 | ; |
| 2158 | return 0; |
| 2159 | } |
| 2160 | _ACEOF |
| 2161 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2162 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2163 | # Try to create an executable without -o first, disregard a.out. |
| 2164 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2165 | # of exeext. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2166 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2167 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2168 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2169 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2170 | (eval $ac_link_default) 2>&5 |
| 2171 | ac_status=$? |
| 2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2173 | (exit $ac_status); }; then |
| 2174 | # Find the output, starting from the most likely. This scheme is |
| 2175 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2176 | # resort. |
| 2177 | |
| 2178 | # Be careful to initialize this variable, since it used to be cached. |
| 2179 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2180 | ac_cv_exeext= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2181 | # b.out is created by i960 compilers. |
| 2182 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2183 | do |
| 2184 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2185 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2186 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2187 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2188 | conftest.$ac_ext ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2189 | # This is the source file. |
| 2190 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2191 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2192 | # We found the default executable, but exeext='' is most |
| 2193 | # certainly right. |
| 2194 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2195 | *.* ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2196 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2197 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2198 | # but it would be cool to find out if it's true. Does anybody |
| 2199 | # maintain Libtool? --akim. |
| 2200 | export ac_cv_exeext |
| 2201 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2202 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2203 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2204 | esac |
| 2205 | done |
| 2206 | else |
| 2207 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2209 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2210 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2211 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2212 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2213 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2214 | { (exit 77); exit 77; }; } |
| 2215 | fi |
| 2216 | |
| 2217 | ac_exeext=$ac_cv_exeext |
| 2218 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2219 | echo "${ECHO_T}$ac_file" >&6 |
| 2220 | |
| 2221 | # Check the compiler produces executables we can run. If not, either |
| 2222 | # the compiler is broken, or we cross compile. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2223 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2224 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2225 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2226 | # If not cross compiling, check that we can run a simple program. |
| 2227 | if test "$cross_compiling" != yes; then |
| 2228 | if { ac_try='./$ac_file' |
| 2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2230 | (eval $ac_try) 2>&5 |
| 2231 | ac_status=$? |
| 2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2233 | (exit $ac_status); }; }; then |
| 2234 | cross_compiling=no |
| 2235 | else |
| 2236 | if test "$cross_compiling" = maybe; then |
| 2237 | cross_compiling=yes |
| 2238 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2239 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2240 | If you meant to cross compile, use \`--host'. |
| 2241 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2242 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2243 | If you meant to cross compile, use \`--host'. |
| 2244 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2245 | { (exit 1); exit 1; }; } |
| 2246 | fi |
| 2247 | fi |
| 2248 | fi |
| 2249 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2250 | echo "${ECHO_T}yes" >&6 |
| 2251 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2252 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2253 | ac_clean_files=$ac_clean_files_save |
| 2254 | # Check the compiler produces executables we can run. If not, either |
| 2255 | # the compiler is broken, or we cross compile. |
| 2256 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2257 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2258 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2259 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2260 | |
| 2261 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2262 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2264 | (eval $ac_link) 2>&5 |
| 2265 | ac_status=$? |
| 2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2267 | (exit $ac_status); }; then |
| 2268 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2269 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2270 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2271 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2272 | for ac_file in conftest.exe conftest conftest.*; do |
| 2273 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2274 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2275 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2276 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2277 | export ac_cv_exeext |
| 2278 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2279 | * ) break;; |
| 2280 | esac |
| 2281 | done |
| 2282 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2283 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2284 | See \`config.log' for more details." >&5 |
| 2285 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2286 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2287 | { (exit 1); exit 1; }; } |
| 2288 | fi |
| 2289 | |
| 2290 | rm -f conftest$ac_cv_exeext |
| 2291 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2292 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2293 | |
| 2294 | rm -f conftest.$ac_ext |
| 2295 | EXEEXT=$ac_cv_exeext |
| 2296 | ac_exeext=$EXEEXT |
| 2297 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2298 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2299 | if test "${ac_cv_objext+set}" = set; then |
| 2300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2301 | else |
| 2302 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2303 | /* confdefs.h. */ |
| 2304 | _ACEOF |
| 2305 | cat confdefs.h >>conftest.$ac_ext |
| 2306 | cat >>conftest.$ac_ext <<_ACEOF |
| 2307 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2308 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2309 | int |
| 2310 | main () |
| 2311 | { |
| 2312 | |
| 2313 | ; |
| 2314 | return 0; |
| 2315 | } |
| 2316 | _ACEOF |
| 2317 | rm -f conftest.o conftest.obj |
| 2318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2319 | (eval $ac_compile) 2>&5 |
| 2320 | ac_status=$? |
| 2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2322 | (exit $ac_status); }; then |
| 2323 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2324 | case $ac_file in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2325 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2326 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2327 | break;; |
| 2328 | esac |
| 2329 | done |
| 2330 | else |
| 2331 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2333 | |
| 2334 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2335 | See \`config.log' for more details." >&5 |
| 2336 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2337 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2338 | { (exit 1); exit 1; }; } |
| 2339 | fi |
| 2340 | |
| 2341 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2342 | fi |
| 2343 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2344 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2345 | OBJEXT=$ac_cv_objext |
| 2346 | ac_objext=$OBJEXT |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2347 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2348 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2349 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2351 | else |
| 2352 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2353 | /* confdefs.h. */ |
| 2354 | _ACEOF |
| 2355 | cat confdefs.h >>conftest.$ac_ext |
| 2356 | cat >>conftest.$ac_ext <<_ACEOF |
| 2357 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2358 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2359 | int |
| 2360 | main () |
| 2361 | { |
| 2362 | #ifndef __GNUC__ |
| 2363 | choke me |
| 2364 | #endif |
| 2365 | |
| 2366 | ; |
| 2367 | return 0; |
| 2368 | } |
| 2369 | _ACEOF |
| 2370 | rm -f conftest.$ac_objext |
| 2371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2372 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2373 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2375 | rm -f conftest.er1 |
| 2376 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2378 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2379 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2380 | || test ! -s conftest.err' |
| 2381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2382 | (eval $ac_try) 2>&5 |
| 2383 | ac_status=$? |
| 2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2385 | (exit $ac_status); }; } && |
| 2386 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2388 | (eval $ac_try) 2>&5 |
| 2389 | ac_status=$? |
| 2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2391 | (exit $ac_status); }; }; then |
| 2392 | ac_compiler_gnu=yes |
| 2393 | else |
| 2394 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2396 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2397 | ac_compiler_gnu=no |
| 2398 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2400 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2401 | |
| 2402 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2403 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2404 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2405 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2406 | ac_test_CFLAGS=${CFLAGS+set} |
| 2407 | ac_save_CFLAGS=$CFLAGS |
| 2408 | CFLAGS="-g" |
| 2409 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2410 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2411 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2413 | else |
| 2414 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2415 | /* confdefs.h. */ |
| 2416 | _ACEOF |
| 2417 | cat confdefs.h >>conftest.$ac_ext |
| 2418 | cat >>conftest.$ac_ext <<_ACEOF |
| 2419 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2420 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2421 | int |
| 2422 | main () |
| 2423 | { |
| 2424 | |
| 2425 | ; |
| 2426 | return 0; |
| 2427 | } |
| 2428 | _ACEOF |
| 2429 | rm -f conftest.$ac_objext |
| 2430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2431 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2432 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2434 | rm -f conftest.er1 |
| 2435 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2437 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2438 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2439 | || test ! -s conftest.err' |
| 2440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2441 | (eval $ac_try) 2>&5 |
| 2442 | ac_status=$? |
| 2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2444 | (exit $ac_status); }; } && |
| 2445 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2447 | (eval $ac_try) 2>&5 |
| 2448 | ac_status=$? |
| 2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2450 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2451 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2452 | else |
| 2453 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2455 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2456 | ac_cv_prog_cc_g=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2457 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2459 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2461 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2462 | if test "$ac_test_CFLAGS" = set; then |
| 2463 | CFLAGS=$ac_save_CFLAGS |
| 2464 | elif test $ac_cv_prog_cc_g = yes; then |
| 2465 | if test "$GCC" = yes; then |
| 2466 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2467 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2468 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2469 | fi |
| 2470 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2471 | if test "$GCC" = yes; then |
| 2472 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2473 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2474 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2475 | fi |
| 2476 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2477 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2478 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2479 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2481 | else |
| 2482 | ac_cv_prog_cc_stdc=no |
| 2483 | ac_save_CC=$CC |
| 2484 | cat >conftest.$ac_ext <<_ACEOF |
| 2485 | /* confdefs.h. */ |
| 2486 | _ACEOF |
| 2487 | cat confdefs.h >>conftest.$ac_ext |
| 2488 | cat >>conftest.$ac_ext <<_ACEOF |
| 2489 | /* end confdefs.h. */ |
| 2490 | #include <stdarg.h> |
| 2491 | #include <stdio.h> |
| 2492 | #include <sys/types.h> |
| 2493 | #include <sys/stat.h> |
| 2494 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2495 | struct buf { int x; }; |
| 2496 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2497 | static char *e (p, i) |
| 2498 | char **p; |
| 2499 | int i; |
| 2500 | { |
| 2501 | return p[i]; |
| 2502 | } |
| 2503 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2504 | { |
| 2505 | char *s; |
| 2506 | va_list v; |
| 2507 | va_start (v,p); |
| 2508 | s = g (p, va_arg (v,int)); |
| 2509 | va_end (v); |
| 2510 | return s; |
| 2511 | } |
| 2512 | |
| 2513 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2514 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2515 | These don't provoke an error unfortunately, instead are silently treated |
| 2516 | as 'x'. The following induces an error, until -std1 is added to get |
| 2517 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2518 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2519 | that's true only with -std1. */ |
| 2520 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2521 | |
| 2522 | int test (int i, double x); |
| 2523 | struct s1 {int (*f) (int a);}; |
| 2524 | struct s2 {int (*f) (double a);}; |
| 2525 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2526 | int argc; |
| 2527 | char **argv; |
| 2528 | int |
| 2529 | main () |
| 2530 | { |
| 2531 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2532 | ; |
| 2533 | return 0; |
| 2534 | } |
| 2535 | _ACEOF |
| 2536 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2537 | # breaks some systems' header files. |
| 2538 | # AIX -qlanglvl=ansi |
| 2539 | # Ultrix and OSF/1 -std1 |
| 2540 | # HP-UX 10.20 and later -Ae |
| 2541 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2542 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2543 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2544 | do |
| 2545 | CC="$ac_save_CC $ac_arg" |
| 2546 | rm -f conftest.$ac_objext |
| 2547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2548 | (eval $ac_compile) 2>conftest.er1 |
| 2549 | ac_status=$? |
| 2550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2551 | rm -f conftest.er1 |
| 2552 | cat conftest.err >&5 |
| 2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2554 | (exit $ac_status); } && |
| 2555 | { ac_try='test -z "$ac_c_werror_flag" |
| 2556 | || test ! -s conftest.err' |
| 2557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2558 | (eval $ac_try) 2>&5 |
| 2559 | ac_status=$? |
| 2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2561 | (exit $ac_status); }; } && |
| 2562 | { ac_try='test -s conftest.$ac_objext' |
| 2563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2564 | (eval $ac_try) 2>&5 |
| 2565 | ac_status=$? |
| 2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2567 | (exit $ac_status); }; }; then |
| 2568 | ac_cv_prog_cc_stdc=$ac_arg |
| 2569 | break |
| 2570 | else |
| 2571 | echo "$as_me: failed program was:" >&5 |
| 2572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2573 | |
| 2574 | fi |
| 2575 | rm -f conftest.err conftest.$ac_objext |
| 2576 | done |
| 2577 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2578 | CC=$ac_save_CC |
| 2579 | |
| 2580 | fi |
| 2581 | |
| 2582 | case "x$ac_cv_prog_cc_stdc" in |
| 2583 | x|xno) |
| 2584 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2585 | echo "${ECHO_T}none needed" >&6 ;; |
| 2586 | *) |
| 2587 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2588 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2589 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2590 | esac |
| 2591 | |
| 2592 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2593 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2594 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2595 | # the declaration of exit, since it's the most demanding environment. |
| 2596 | cat >conftest.$ac_ext <<_ACEOF |
| 2597 | #ifndef __cplusplus |
| 2598 | choke me |
| 2599 | #endif |
| 2600 | _ACEOF |
| 2601 | rm -f conftest.$ac_objext |
| 2602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2603 | (eval $ac_compile) 2>conftest.er1 |
| 2604 | ac_status=$? |
| 2605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2606 | rm -f conftest.er1 |
| 2607 | cat conftest.err >&5 |
| 2608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2609 | (exit $ac_status); } && |
| 2610 | { ac_try='test -z "$ac_c_werror_flag" |
| 2611 | || test ! -s conftest.err' |
| 2612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2613 | (eval $ac_try) 2>&5 |
| 2614 | ac_status=$? |
| 2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2616 | (exit $ac_status); }; } && |
| 2617 | { ac_try='test -s conftest.$ac_objext' |
| 2618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2619 | (eval $ac_try) 2>&5 |
| 2620 | ac_status=$? |
| 2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2622 | (exit $ac_status); }; }; then |
| 2623 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2624 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2625 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2626 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2627 | 'extern "C" void exit (int) throw ();' \ |
| 2628 | 'extern "C" void exit (int);' \ |
| 2629 | 'void exit (int);' |
| 2630 | do |
| 2631 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2632 | /* confdefs.h. */ |
| 2633 | _ACEOF |
| 2634 | cat confdefs.h >>conftest.$ac_ext |
| 2635 | cat >>conftest.$ac_ext <<_ACEOF |
| 2636 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2637 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2638 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2639 | int |
| 2640 | main () |
| 2641 | { |
| 2642 | exit (42); |
| 2643 | ; |
| 2644 | return 0; |
| 2645 | } |
| 2646 | _ACEOF |
| 2647 | rm -f conftest.$ac_objext |
| 2648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2649 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2650 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2652 | rm -f conftest.er1 |
| 2653 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2655 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2656 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2657 | || test ! -s conftest.err' |
| 2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2659 | (eval $ac_try) 2>&5 |
| 2660 | ac_status=$? |
| 2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2662 | (exit $ac_status); }; } && |
| 2663 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2665 | (eval $ac_try) 2>&5 |
| 2666 | ac_status=$? |
| 2667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2668 | (exit $ac_status); }; }; then |
| 2669 | : |
| 2670 | else |
| 2671 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2673 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2674 | continue |
| 2675 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2678 | /* confdefs.h. */ |
| 2679 | _ACEOF |
| 2680 | cat confdefs.h >>conftest.$ac_ext |
| 2681 | cat >>conftest.$ac_ext <<_ACEOF |
| 2682 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2683 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2684 | int |
| 2685 | main () |
| 2686 | { |
| 2687 | exit (42); |
| 2688 | ; |
| 2689 | return 0; |
| 2690 | } |
| 2691 | _ACEOF |
| 2692 | rm -f conftest.$ac_objext |
| 2693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2694 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2697 | rm -f conftest.er1 |
| 2698 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2700 | (exit $ac_status); } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2701 | { ac_try='test -z "$ac_c_werror_flag" |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2702 | || test ! -s conftest.err' |
| 2703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2704 | (eval $ac_try) 2>&5 |
| 2705 | ac_status=$? |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); }; } && |
| 2708 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2710 | (eval $ac_try) 2>&5 |
| 2711 | ac_status=$? |
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2713 | (exit $ac_status); }; }; then |
| 2714 | break |
| 2715 | else |
| 2716 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2718 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2719 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2721 | done |
| 2722 | rm -f conftest* |
| 2723 | if test -n "$ac_declaration"; then |
| 2724 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2725 | echo $ac_declaration >>confdefs.h |
| 2726 | echo '#endif' >>confdefs.h |
| 2727 | fi |
| 2728 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2729 | else |
| 2730 | echo "$as_me: failed program was:" >&5 |
| 2731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2732 | |
| 2733 | fi |
| 2734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2735 | ac_ext=c |
| 2736 | ac_cpp='$CPP $CPPFLAGS' |
| 2737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2740 | |
| 2741 | |
| 2742 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 2743 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 2744 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2746 | else |
| 2747 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 2748 | cat >conftest.$ac_ext <<_ACEOF |
| 2749 | /* confdefs.h. */ |
| 2750 | _ACEOF |
| 2751 | cat confdefs.h >>conftest.$ac_ext |
| 2752 | cat >>conftest.$ac_ext <<_ACEOF |
| 2753 | /* end confdefs.h. */ |
| 2754 | #include <sys/types.h> |
| 2755 | #include <sys/param.h> |
| 2756 | |
| 2757 | int |
| 2758 | main () |
| 2759 | { |
| 2760 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2761 | bogus endian macros |
| 2762 | #endif |
| 2763 | |
| 2764 | ; |
| 2765 | return 0; |
| 2766 | } |
| 2767 | _ACEOF |
| 2768 | rm -f conftest.$ac_objext |
| 2769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2770 | (eval $ac_compile) 2>conftest.er1 |
| 2771 | ac_status=$? |
| 2772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2773 | rm -f conftest.er1 |
| 2774 | cat conftest.err >&5 |
| 2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2776 | (exit $ac_status); } && |
| 2777 | { ac_try='test -z "$ac_c_werror_flag" |
| 2778 | || test ! -s conftest.err' |
| 2779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2780 | (eval $ac_try) 2>&5 |
| 2781 | ac_status=$? |
| 2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2783 | (exit $ac_status); }; } && |
| 2784 | { ac_try='test -s conftest.$ac_objext' |
| 2785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2786 | (eval $ac_try) 2>&5 |
| 2787 | ac_status=$? |
| 2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2789 | (exit $ac_status); }; }; then |
| 2790 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 2791 | cat >conftest.$ac_ext <<_ACEOF |
| 2792 | /* confdefs.h. */ |
| 2793 | _ACEOF |
| 2794 | cat confdefs.h >>conftest.$ac_ext |
| 2795 | cat >>conftest.$ac_ext <<_ACEOF |
| 2796 | /* end confdefs.h. */ |
| 2797 | #include <sys/types.h> |
| 2798 | #include <sys/param.h> |
| 2799 | |
| 2800 | int |
| 2801 | main () |
| 2802 | { |
| 2803 | #if BYTE_ORDER != BIG_ENDIAN |
| 2804 | not big endian |
| 2805 | #endif |
| 2806 | |
| 2807 | ; |
| 2808 | return 0; |
| 2809 | } |
| 2810 | _ACEOF |
| 2811 | rm -f conftest.$ac_objext |
| 2812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2813 | (eval $ac_compile) 2>conftest.er1 |
| 2814 | ac_status=$? |
| 2815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2816 | rm -f conftest.er1 |
| 2817 | cat conftest.err >&5 |
| 2818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2819 | (exit $ac_status); } && |
| 2820 | { ac_try='test -z "$ac_c_werror_flag" |
| 2821 | || test ! -s conftest.err' |
| 2822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2823 | (eval $ac_try) 2>&5 |
| 2824 | ac_status=$? |
| 2825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2826 | (exit $ac_status); }; } && |
| 2827 | { ac_try='test -s conftest.$ac_objext' |
| 2828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2829 | (eval $ac_try) 2>&5 |
| 2830 | ac_status=$? |
| 2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2832 | (exit $ac_status); }; }; then |
| 2833 | ac_cv_c_bigendian=yes |
| 2834 | else |
| 2835 | echo "$as_me: failed program was:" >&5 |
| 2836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2837 | |
| 2838 | ac_cv_c_bigendian=no |
| 2839 | fi |
| 2840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2841 | else |
| 2842 | echo "$as_me: failed program was:" >&5 |
| 2843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2844 | |
| 2845 | # It does not; compile a test program. |
| 2846 | if test "$cross_compiling" = yes; then |
| 2847 | # try to guess the endianness by grepping values into an object file |
| 2848 | ac_cv_c_bigendian=unknown |
| 2849 | cat >conftest.$ac_ext <<_ACEOF |
| 2850 | /* confdefs.h. */ |
| 2851 | _ACEOF |
| 2852 | cat confdefs.h >>conftest.$ac_ext |
| 2853 | cat >>conftest.$ac_ext <<_ACEOF |
| 2854 | /* end confdefs.h. */ |
| 2855 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 2856 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 2857 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 2858 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 2859 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 2860 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 2861 | int |
| 2862 | main () |
| 2863 | { |
| 2864 | _ascii (); _ebcdic (); |
| 2865 | ; |
| 2866 | return 0; |
| 2867 | } |
| 2868 | _ACEOF |
| 2869 | rm -f conftest.$ac_objext |
| 2870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2871 | (eval $ac_compile) 2>conftest.er1 |
| 2872 | ac_status=$? |
| 2873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2874 | rm -f conftest.er1 |
| 2875 | cat conftest.err >&5 |
| 2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2877 | (exit $ac_status); } && |
| 2878 | { ac_try='test -z "$ac_c_werror_flag" |
| 2879 | || test ! -s conftest.err' |
| 2880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2881 | (eval $ac_try) 2>&5 |
| 2882 | ac_status=$? |
| 2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2884 | (exit $ac_status); }; } && |
| 2885 | { ac_try='test -s conftest.$ac_objext' |
| 2886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2887 | (eval $ac_try) 2>&5 |
| 2888 | ac_status=$? |
| 2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2890 | (exit $ac_status); }; }; then |
| 2891 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 2892 | ac_cv_c_bigendian=yes |
| 2893 | fi |
| 2894 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 2895 | if test "$ac_cv_c_bigendian" = unknown; then |
| 2896 | ac_cv_c_bigendian=no |
| 2897 | else |
| 2898 | # finding both strings is unlikely to happen, but who knows? |
| 2899 | ac_cv_c_bigendian=unknown |
| 2900 | fi |
| 2901 | fi |
| 2902 | else |
| 2903 | echo "$as_me: failed program was:" >&5 |
| 2904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2905 | |
| 2906 | fi |
| 2907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2908 | else |
| 2909 | cat >conftest.$ac_ext <<_ACEOF |
| 2910 | /* confdefs.h. */ |
| 2911 | _ACEOF |
| 2912 | cat confdefs.h >>conftest.$ac_ext |
| 2913 | cat >>conftest.$ac_ext <<_ACEOF |
| 2914 | /* end confdefs.h. */ |
| 2915 | int |
| 2916 | main () |
| 2917 | { |
| 2918 | /* Are we little or big endian? From Harbison&Steele. */ |
| 2919 | union |
| 2920 | { |
| 2921 | long l; |
| 2922 | char c[sizeof (long)]; |
| 2923 | } u; |
| 2924 | u.l = 1; |
| 2925 | exit (u.c[sizeof (long) - 1] == 1); |
| 2926 | } |
| 2927 | _ACEOF |
| 2928 | rm -f conftest$ac_exeext |
| 2929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2930 | (eval $ac_link) 2>&5 |
| 2931 | ac_status=$? |
| 2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2933 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2935 | (eval $ac_try) 2>&5 |
| 2936 | ac_status=$? |
| 2937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2938 | (exit $ac_status); }; }; then |
| 2939 | ac_cv_c_bigendian=no |
| 2940 | else |
| 2941 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2942 | echo "$as_me: failed program was:" >&5 |
| 2943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2944 | |
| 2945 | ( exit $ac_status ) |
| 2946 | ac_cv_c_bigendian=yes |
| 2947 | fi |
| 2948 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2949 | fi |
| 2950 | fi |
| 2951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2952 | fi |
| 2953 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 2954 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 2955 | case $ac_cv_c_bigendian in |
| 2956 | yes) |
| 2957 | ENDIAN=big |
| 2958 | ;; |
| 2959 | no) |
| 2960 | ENDIAN=little |
| 2961 | ;; |
| 2962 | *) |
| 2963 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 2964 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 2965 | echo "$as_me: error: unknown endianness |
| 2966 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 2967 | { (exit 1); exit 1; }; } ;; |
| 2968 | esac |
| 2969 | |
| 2970 | |
Reid Spencer | 4ebf331 | 2006-04-08 01:41:26 +0000 | [diff] [blame^] | 2971 | if test -d "CVS" -o -d "${srcdir}/CVS"; then |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 2972 | cvsbuild="yes" |
| 2973 | optimize="no" |
| 2974 | asserts="yes" |
| 2975 | CVSBUILD=CVSBUILD=1 |
| 2976 | |
| 2977 | else |
| 2978 | cvsbuild="no" |
| 2979 | optimize="yes" |
| 2980 | asserts="no" |
| 2981 | fi |
| 2982 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2983 | |
| 2984 | # Check whether --enable-optimized or --disable-optimized was given. |
| 2985 | if test "${enable_optimized+set}" = set; then |
| 2986 | enableval="$enable_optimized" |
| 2987 | |
| 2988 | else |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 2989 | enableval=$optimize |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2990 | fi; |
| 2991 | if test ${enableval} = "no" ; then |
| 2992 | ENABLE_OPTIMIZED= |
| 2993 | |
| 2994 | else |
| 2995 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 2996 | |
| 2997 | fi |
| 2998 | |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 2999 | # Check whether --enable-assertions or --disable-assertions was given. |
| 3000 | if test "${enable_assertions+set}" = set; then |
| 3001 | enableval="$enable_assertions" |
| 3002 | |
| 3003 | else |
| 3004 | enableval=$asserts |
| 3005 | fi; |
| 3006 | if test ${enableval} = "no" ; then |
| 3007 | ENABLE_ASSERTIONS= |
| 3008 | |
| 3009 | else |
| 3010 | ENABLE_ASSERTIONS=ENABLE_ASSERTIONS=1 |
| 3011 | |
| 3012 | fi |
| 3013 | |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 3014 | # Check whether --enable-debug-runtime or --disable-debug-runtime was given. |
| 3015 | if test "${enable_debug_runtime+set}" = set; then |
| 3016 | enableval="$enable_debug_runtime" |
| 3017 | |
| 3018 | else |
| 3019 | enableval=no |
| 3020 | fi; |
| 3021 | if test ${enableval} = "no" ; then |
| 3022 | DEBUG_RUNTIME= |
| 3023 | |
| 3024 | else |
| 3025 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 3026 | |
| 3027 | fi |
| 3028 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3029 | # Check whether --enable-jit or --disable-jit was given. |
| 3030 | if test "${enable_jit+set}" = set; then |
| 3031 | enableval="$enable_jit" |
| 3032 | |
| 3033 | else |
| 3034 | enableval=default |
| 3035 | fi; |
| 3036 | if test ${enableval} = "no" |
| 3037 | then |
| 3038 | JIT= |
| 3039 | |
| 3040 | else |
Reid Spencer | efbe40a | 2004-11-25 07:28:19 +0000 | [diff] [blame] | 3041 | case "$llvm_cv_target_arch" in |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3042 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3043 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3044 | Sparc) TARGET_HAS_JIT=1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3045 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3046 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3047 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3048 | x86_64) TARGET_HAS_JIT=0 |
Reid Spencer | 95ed843 | 2004-12-23 06:22:33 +0000 | [diff] [blame] | 3049 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3050 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3051 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3052 | IA64) TARGET_HAS_JIT=0 |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3053 | ;; |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 3054 | *) TARGET_HAS_JIT=0 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3055 | ;; |
| 3056 | esac |
| 3057 | fi |
| 3058 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3059 | # Check whether --enable-doxygen or --disable-doxygen was given. |
| 3060 | if test "${enable_doxygen+set}" = set; then |
| 3061 | enableval="$enable_doxygen" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3062 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3063 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3064 | enableval=default |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3065 | fi; |
| 3066 | case "$enableval" in |
| 3067 | yes) ENABLE_DOXYGEN=1 |
| 3068 | ;; |
| 3069 | no) ENABLE_DOXYGEN=0 |
| 3070 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3071 | default) ENABLE_DOXYGEN=0 |
| 3072 | ;; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3073 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 3074 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 3075 | { (exit 1); exit 1; }; } ;; |
| 3076 | esac |
| 3077 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 3078 | # Check whether --enable-threads or --disable-threads was given. |
| 3079 | if test "${enable_threads+set}" = set; then |
| 3080 | enableval="$enable_threads" |
| 3081 | |
| 3082 | else |
| 3083 | enableval=yes |
| 3084 | fi; |
| 3085 | case "$enableval" in |
| 3086 | yes) ENABLE_THREADS=1 |
| 3087 | ;; |
| 3088 | no) ENABLE_THREADS=0 |
| 3089 | ;; |
| 3090 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 3091 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 3092 | { (exit 1); exit 1; }; } ;; |
| 3093 | esac |
| 3094 | |
| 3095 | cat >>confdefs.h <<_ACEOF |
| 3096 | #define ENABLE_THREADS $ENABLE_THREADS |
| 3097 | _ACEOF |
| 3098 | |
| 3099 | |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3100 | TARGETS_TO_BUILD="" |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3101 | # Check whether --enable-targets or --disable-targets was given. |
| 3102 | if test "${enable_targets+set}" = set; then |
| 3103 | enableval="$enable_targets" |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3104 | |
| 3105 | else |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3106 | enableval=all |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3107 | fi; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3108 | case "$enableval" in |
Chris Lattner | 56b9e1c | 2006-02-16 21:12:54 +0000 | [diff] [blame] | 3109 | all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3110 | host-only) |
| 3111 | case "$llvm_cv_target_arch" in |
| 3112 | x86) TARGETS_TO_BUILD="X86" ;; |
| 3113 | x86_64) TARGETS_TO_BUILD="X86" ;; |
Chris Lattner | 3540922 | 2006-02-05 06:26:43 +0000 | [diff] [blame] | 3114 | Sparc) TARGETS_TO_BUILD="Sparc SparcV9" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3115 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 3116 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 3117 | IA64) TARGETS_TO_BUILD="IA64" ;; |
| 3118 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3119 | echo "$as_me: error: Can not set target to build" >&2;} |
| 3120 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3121 | esac |
| 3122 | ;; |
| 3123 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 3124 | case "$a_target" in |
| 3125 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 3126 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
Chris Lattner | 3540922 | 2006-02-05 06:26:43 +0000 | [diff] [blame] | 3127 | sparc) TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3128 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 3129 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 3130 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3131 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 3132 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 3133 | { (exit 1); exit 1; }; } ;; |
| 3134 | esac |
| 3135 | done |
| 3136 | ;; |
| 3137 | esac |
Reid Spencer | 675f092 | 2005-04-22 17:06:18 +0000 | [diff] [blame] | 3138 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3139 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 3140 | |
| 3141 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3142 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 3143 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. |
| 3144 | if test "${with_llvmgccdir+set}" = set; then |
| 3145 | withval="$with_llvmgccdir" |
| 3146 | |
| 3147 | else |
| 3148 | withval=default |
| 3149 | fi; |
| 3150 | case "$withval" in |
| 3151 | default) WITH_LLVMGCCDIR=default ;; |
| 3152 | /*) WITH_LLVMGCCDIR=$withval ;; |
| 3153 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 3154 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 3155 | { (exit 1); exit 1; }; } ;; |
| 3156 | esac |
| 3157 | |
| 3158 | |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3159 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3160 | ac_ext=c |
| 3161 | ac_cpp='$CPP $CPPFLAGS' |
| 3162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3165 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3166 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3167 | # On Suns, sometimes $CPP names a directory. |
| 3168 | if test -n "$CPP" && test -d "$CPP"; then |
| 3169 | CPP= |
| 3170 | fi |
| 3171 | if test -z "$CPP"; then |
| 3172 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3174 | else |
| 3175 | # Double quotes because CPP needs to be expanded |
| 3176 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3177 | do |
| 3178 | ac_preproc_ok=false |
| 3179 | for ac_c_preproc_warn_flag in '' yes |
| 3180 | do |
| 3181 | # Use a header file that comes with gcc, so configuring glibc |
| 3182 | # with a fresh cross-compiler works. |
| 3183 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3184 | # <limits.h> exists even on freestanding compilers. |
| 3185 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3186 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3187 | cat >conftest.$ac_ext <<_ACEOF |
| 3188 | /* confdefs.h. */ |
| 3189 | _ACEOF |
| 3190 | cat confdefs.h >>conftest.$ac_ext |
| 3191 | cat >>conftest.$ac_ext <<_ACEOF |
| 3192 | /* end confdefs.h. */ |
| 3193 | #ifdef __STDC__ |
| 3194 | # include <limits.h> |
| 3195 | #else |
| 3196 | # include <assert.h> |
| 3197 | #endif |
| 3198 | Syntax error |
| 3199 | _ACEOF |
| 3200 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3201 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3202 | ac_status=$? |
| 3203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3204 | rm -f conftest.er1 |
| 3205 | cat conftest.err >&5 |
| 3206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3207 | (exit $ac_status); } >/dev/null; then |
| 3208 | if test -s conftest.err; then |
| 3209 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3210 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3211 | else |
| 3212 | ac_cpp_err= |
| 3213 | fi |
| 3214 | else |
| 3215 | ac_cpp_err=yes |
| 3216 | fi |
| 3217 | if test -z "$ac_cpp_err"; then |
| 3218 | : |
| 3219 | else |
| 3220 | echo "$as_me: failed program was:" >&5 |
| 3221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3222 | |
| 3223 | # Broken: fails on valid input. |
| 3224 | continue |
| 3225 | fi |
| 3226 | rm -f conftest.err conftest.$ac_ext |
| 3227 | |
| 3228 | # OK, works on sane cases. Now check whether non-existent headers |
| 3229 | # can be detected and how. |
| 3230 | cat >conftest.$ac_ext <<_ACEOF |
| 3231 | /* confdefs.h. */ |
| 3232 | _ACEOF |
| 3233 | cat confdefs.h >>conftest.$ac_ext |
| 3234 | cat >>conftest.$ac_ext <<_ACEOF |
| 3235 | /* end confdefs.h. */ |
| 3236 | #include <ac_nonexistent.h> |
| 3237 | _ACEOF |
| 3238 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3239 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3240 | ac_status=$? |
| 3241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3242 | rm -f conftest.er1 |
| 3243 | cat conftest.err >&5 |
| 3244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3245 | (exit $ac_status); } >/dev/null; then |
| 3246 | if test -s conftest.err; then |
| 3247 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3248 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3249 | else |
| 3250 | ac_cpp_err= |
| 3251 | fi |
| 3252 | else |
| 3253 | ac_cpp_err=yes |
| 3254 | fi |
| 3255 | if test -z "$ac_cpp_err"; then |
| 3256 | # Broken: success on invalid input. |
| 3257 | continue |
| 3258 | else |
| 3259 | echo "$as_me: failed program was:" >&5 |
| 3260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3261 | |
| 3262 | # Passes both tests. |
| 3263 | ac_preproc_ok=: |
| 3264 | break |
| 3265 | fi |
| 3266 | rm -f conftest.err conftest.$ac_ext |
| 3267 | |
| 3268 | done |
| 3269 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3270 | rm -f conftest.err conftest.$ac_ext |
| 3271 | if $ac_preproc_ok; then |
| 3272 | break |
| 3273 | fi |
| 3274 | |
| 3275 | done |
| 3276 | ac_cv_prog_CPP=$CPP |
| 3277 | |
| 3278 | fi |
| 3279 | CPP=$ac_cv_prog_CPP |
| 3280 | else |
| 3281 | ac_cv_prog_CPP=$CPP |
| 3282 | fi |
| 3283 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3284 | echo "${ECHO_T}$CPP" >&6 |
| 3285 | ac_preproc_ok=false |
| 3286 | for ac_c_preproc_warn_flag in '' yes |
| 3287 | do |
| 3288 | # Use a header file that comes with gcc, so configuring glibc |
| 3289 | # with a fresh cross-compiler works. |
| 3290 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3291 | # <limits.h> exists even on freestanding compilers. |
| 3292 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3293 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3294 | cat >conftest.$ac_ext <<_ACEOF |
| 3295 | /* confdefs.h. */ |
| 3296 | _ACEOF |
| 3297 | cat confdefs.h >>conftest.$ac_ext |
| 3298 | cat >>conftest.$ac_ext <<_ACEOF |
| 3299 | /* end confdefs.h. */ |
| 3300 | #ifdef __STDC__ |
| 3301 | # include <limits.h> |
| 3302 | #else |
| 3303 | # include <assert.h> |
| 3304 | #endif |
| 3305 | Syntax error |
| 3306 | _ACEOF |
| 3307 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3308 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3309 | ac_status=$? |
| 3310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3311 | rm -f conftest.er1 |
| 3312 | cat conftest.err >&5 |
| 3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3314 | (exit $ac_status); } >/dev/null; then |
| 3315 | if test -s conftest.err; then |
| 3316 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3317 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3318 | else |
| 3319 | ac_cpp_err= |
| 3320 | fi |
| 3321 | else |
| 3322 | ac_cpp_err=yes |
| 3323 | fi |
| 3324 | if test -z "$ac_cpp_err"; then |
| 3325 | : |
| 3326 | else |
| 3327 | echo "$as_me: failed program was:" >&5 |
| 3328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3329 | |
| 3330 | # Broken: fails on valid input. |
| 3331 | continue |
| 3332 | fi |
| 3333 | rm -f conftest.err conftest.$ac_ext |
| 3334 | |
| 3335 | # OK, works on sane cases. Now check whether non-existent headers |
| 3336 | # can be detected and how. |
| 3337 | cat >conftest.$ac_ext <<_ACEOF |
| 3338 | /* confdefs.h. */ |
| 3339 | _ACEOF |
| 3340 | cat confdefs.h >>conftest.$ac_ext |
| 3341 | cat >>conftest.$ac_ext <<_ACEOF |
| 3342 | /* end confdefs.h. */ |
| 3343 | #include <ac_nonexistent.h> |
| 3344 | _ACEOF |
| 3345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3347 | ac_status=$? |
| 3348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3349 | rm -f conftest.er1 |
| 3350 | cat conftest.err >&5 |
| 3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3352 | (exit $ac_status); } >/dev/null; then |
| 3353 | if test -s conftest.err; then |
| 3354 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3356 | else |
| 3357 | ac_cpp_err= |
| 3358 | fi |
| 3359 | else |
| 3360 | ac_cpp_err=yes |
| 3361 | fi |
| 3362 | if test -z "$ac_cpp_err"; then |
| 3363 | # Broken: success on invalid input. |
| 3364 | continue |
| 3365 | else |
| 3366 | echo "$as_me: failed program was:" >&5 |
| 3367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3368 | |
| 3369 | # Passes both tests. |
| 3370 | ac_preproc_ok=: |
| 3371 | break |
| 3372 | fi |
| 3373 | rm -f conftest.err conftest.$ac_ext |
| 3374 | |
| 3375 | done |
| 3376 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3377 | rm -f conftest.err conftest.$ac_ext |
| 3378 | if $ac_preproc_ok; then |
| 3379 | : |
| 3380 | else |
| 3381 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3382 | See \`config.log' for more details." >&5 |
| 3383 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3384 | See \`config.log' for more details." >&2;} |
| 3385 | { (exit 1); exit 1; }; } |
| 3386 | fi |
| 3387 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3388 | ac_ext=c |
| 3389 | ac_cpp='$CPP $CPPFLAGS' |
| 3390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3393 | |
| 3394 | ac_ext=c |
| 3395 | ac_cpp='$CPP $CPPFLAGS' |
| 3396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3399 | if test -n "$ac_tool_prefix"; then |
| 3400 | for ac_prog in gcc |
| 3401 | do |
| 3402 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3403 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3404 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3406 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3408 | else |
| 3409 | if test -n "$CC"; then |
| 3410 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3411 | else |
| 3412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3413 | for as_dir in $PATH |
| 3414 | do |
| 3415 | IFS=$as_save_IFS |
| 3416 | test -z "$as_dir" && as_dir=. |
| 3417 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3419 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3421 | break 2 |
| 3422 | fi |
| 3423 | done |
| 3424 | done |
| 3425 | |
| 3426 | fi |
| 3427 | fi |
| 3428 | CC=$ac_cv_prog_CC |
| 3429 | if test -n "$CC"; then |
| 3430 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3431 | echo "${ECHO_T}$CC" >&6 |
| 3432 | else |
| 3433 | echo "$as_me:$LINENO: result: no" >&5 |
| 3434 | echo "${ECHO_T}no" >&6 |
| 3435 | fi |
| 3436 | |
| 3437 | test -n "$CC" && break |
| 3438 | done |
| 3439 | fi |
| 3440 | if test -z "$CC"; then |
| 3441 | ac_ct_CC=$CC |
| 3442 | for ac_prog in gcc |
| 3443 | do |
| 3444 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3445 | set dummy $ac_prog; ac_word=$2 |
| 3446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3448 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3450 | else |
| 3451 | if test -n "$ac_ct_CC"; then |
| 3452 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3453 | else |
| 3454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3455 | for as_dir in $PATH |
| 3456 | do |
| 3457 | IFS=$as_save_IFS |
| 3458 | test -z "$as_dir" && as_dir=. |
| 3459 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3461 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3463 | break 2 |
| 3464 | fi |
| 3465 | done |
| 3466 | done |
| 3467 | |
| 3468 | fi |
| 3469 | fi |
| 3470 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3471 | if test -n "$ac_ct_CC"; then |
| 3472 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3473 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3474 | else |
| 3475 | echo "$as_me:$LINENO: result: no" >&5 |
| 3476 | echo "${ECHO_T}no" >&6 |
| 3477 | fi |
| 3478 | |
| 3479 | test -n "$ac_ct_CC" && break |
| 3480 | done |
| 3481 | |
| 3482 | CC=$ac_ct_CC |
| 3483 | fi |
| 3484 | |
| 3485 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3486 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3487 | See \`config.log' for more details." >&5 |
| 3488 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3489 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3490 | { (exit 1); exit 1; }; } |
| 3491 | |
| 3492 | # Provide some information about the compiler. |
| 3493 | echo "$as_me:$LINENO:" \ |
| 3494 | "checking for C compiler version" >&5 |
| 3495 | ac_compiler=`set X $ac_compile; echo $2` |
| 3496 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3497 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3498 | ac_status=$? |
| 3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3500 | (exit $ac_status); } |
| 3501 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3502 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3503 | ac_status=$? |
| 3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3505 | (exit $ac_status); } |
| 3506 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3507 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3508 | ac_status=$? |
| 3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3510 | (exit $ac_status); } |
| 3511 | |
| 3512 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3513 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3514 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3516 | else |
| 3517 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3518 | /* confdefs.h. */ |
| 3519 | _ACEOF |
| 3520 | cat confdefs.h >>conftest.$ac_ext |
| 3521 | cat >>conftest.$ac_ext <<_ACEOF |
| 3522 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3523 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3524 | int |
| 3525 | main () |
| 3526 | { |
| 3527 | #ifndef __GNUC__ |
| 3528 | choke me |
| 3529 | #endif |
| 3530 | |
| 3531 | ; |
| 3532 | return 0; |
| 3533 | } |
| 3534 | _ACEOF |
| 3535 | rm -f conftest.$ac_objext |
| 3536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3537 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3538 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3540 | rm -f conftest.er1 |
| 3541 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3543 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3544 | { ac_try='test -z "$ac_c_werror_flag" |
| 3545 | || test ! -s conftest.err' |
| 3546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3547 | (eval $ac_try) 2>&5 |
| 3548 | ac_status=$? |
| 3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3550 | (exit $ac_status); }; } && |
| 3551 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3553 | (eval $ac_try) 2>&5 |
| 3554 | ac_status=$? |
| 3555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3556 | (exit $ac_status); }; }; then |
| 3557 | ac_compiler_gnu=yes |
| 3558 | else |
| 3559 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3561 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3562 | ac_compiler_gnu=no |
| 3563 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3565 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3566 | |
| 3567 | fi |
| 3568 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3569 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3570 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3571 | ac_test_CFLAGS=${CFLAGS+set} |
| 3572 | ac_save_CFLAGS=$CFLAGS |
| 3573 | CFLAGS="-g" |
| 3574 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3575 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3576 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3578 | else |
| 3579 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3580 | /* confdefs.h. */ |
| 3581 | _ACEOF |
| 3582 | cat confdefs.h >>conftest.$ac_ext |
| 3583 | cat >>conftest.$ac_ext <<_ACEOF |
| 3584 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3585 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3586 | int |
| 3587 | main () |
| 3588 | { |
| 3589 | |
| 3590 | ; |
| 3591 | return 0; |
| 3592 | } |
| 3593 | _ACEOF |
| 3594 | rm -f conftest.$ac_objext |
| 3595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3596 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3597 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3599 | rm -f conftest.er1 |
| 3600 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3602 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3603 | { ac_try='test -z "$ac_c_werror_flag" |
| 3604 | || test ! -s conftest.err' |
| 3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3606 | (eval $ac_try) 2>&5 |
| 3607 | ac_status=$? |
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3609 | (exit $ac_status); }; } && |
| 3610 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3612 | (eval $ac_try) 2>&5 |
| 3613 | ac_status=$? |
| 3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3615 | (exit $ac_status); }; }; then |
| 3616 | ac_cv_prog_cc_g=yes |
| 3617 | else |
| 3618 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3620 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3621 | ac_cv_prog_cc_g=no |
| 3622 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3624 | fi |
| 3625 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3626 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3627 | if test "$ac_test_CFLAGS" = set; then |
| 3628 | CFLAGS=$ac_save_CFLAGS |
| 3629 | elif test $ac_cv_prog_cc_g = yes; then |
| 3630 | if test "$GCC" = yes; then |
| 3631 | CFLAGS="-g -O2" |
| 3632 | else |
| 3633 | CFLAGS="-g" |
| 3634 | fi |
| 3635 | else |
| 3636 | if test "$GCC" = yes; then |
| 3637 | CFLAGS="-O2" |
| 3638 | else |
| 3639 | CFLAGS= |
| 3640 | fi |
| 3641 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3642 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3643 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3644 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3646 | else |
| 3647 | ac_cv_prog_cc_stdc=no |
| 3648 | ac_save_CC=$CC |
| 3649 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3650 | /* confdefs.h. */ |
| 3651 | _ACEOF |
| 3652 | cat confdefs.h >>conftest.$ac_ext |
| 3653 | cat >>conftest.$ac_ext <<_ACEOF |
| 3654 | /* end confdefs.h. */ |
| 3655 | #include <stdarg.h> |
| 3656 | #include <stdio.h> |
| 3657 | #include <sys/types.h> |
| 3658 | #include <sys/stat.h> |
| 3659 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3660 | struct buf { int x; }; |
| 3661 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3662 | static char *e (p, i) |
| 3663 | char **p; |
| 3664 | int i; |
| 3665 | { |
| 3666 | return p[i]; |
| 3667 | } |
| 3668 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3669 | { |
| 3670 | char *s; |
| 3671 | va_list v; |
| 3672 | va_start (v,p); |
| 3673 | s = g (p, va_arg (v,int)); |
| 3674 | va_end (v); |
| 3675 | return s; |
| 3676 | } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3677 | |
| 3678 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3679 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3680 | These don't provoke an error unfortunately, instead are silently treated |
| 3681 | as 'x'. The following induces an error, until -std1 is added to get |
| 3682 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3683 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3684 | that's true only with -std1. */ |
| 3685 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3686 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3687 | int test (int i, double x); |
| 3688 | struct s1 {int (*f) (int a);}; |
| 3689 | struct s2 {int (*f) (double a);}; |
| 3690 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3691 | int argc; |
| 3692 | char **argv; |
| 3693 | int |
| 3694 | main () |
| 3695 | { |
| 3696 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3697 | ; |
| 3698 | return 0; |
| 3699 | } |
| 3700 | _ACEOF |
| 3701 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3702 | # breaks some systems' header files. |
| 3703 | # AIX -qlanglvl=ansi |
| 3704 | # Ultrix and OSF/1 -std1 |
| 3705 | # HP-UX 10.20 and later -Ae |
| 3706 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3707 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3708 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3709 | do |
| 3710 | CC="$ac_save_CC $ac_arg" |
| 3711 | rm -f conftest.$ac_objext |
| 3712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3713 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3714 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3716 | rm -f conftest.er1 |
| 3717 | cat conftest.err >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3719 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3720 | { ac_try='test -z "$ac_c_werror_flag" |
| 3721 | || test ! -s conftest.err' |
| 3722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3723 | (eval $ac_try) 2>&5 |
| 3724 | ac_status=$? |
| 3725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3726 | (exit $ac_status); }; } && |
| 3727 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3729 | (eval $ac_try) 2>&5 |
| 3730 | ac_status=$? |
| 3731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3732 | (exit $ac_status); }; }; then |
| 3733 | ac_cv_prog_cc_stdc=$ac_arg |
| 3734 | break |
| 3735 | else |
| 3736 | echo "$as_me: failed program was:" >&5 |
| 3737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3738 | |
| 3739 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3740 | rm -f conftest.err conftest.$ac_objext |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3741 | done |
| 3742 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3743 | CC=$ac_save_CC |
| 3744 | |
| 3745 | fi |
| 3746 | |
| 3747 | case "x$ac_cv_prog_cc_stdc" in |
| 3748 | x|xno) |
| 3749 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3750 | echo "${ECHO_T}none needed" >&6 ;; |
| 3751 | *) |
| 3752 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3753 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3754 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3755 | esac |
| 3756 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3757 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3758 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3759 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3760 | # the declaration of exit, since it's the most demanding environment. |
| 3761 | cat >conftest.$ac_ext <<_ACEOF |
| 3762 | #ifndef __cplusplus |
| 3763 | choke me |
| 3764 | #endif |
| 3765 | _ACEOF |
| 3766 | rm -f conftest.$ac_objext |
| 3767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3768 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3769 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3771 | rm -f conftest.er1 |
| 3772 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3774 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3775 | { ac_try='test -z "$ac_c_werror_flag" |
| 3776 | || test ! -s conftest.err' |
| 3777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3778 | (eval $ac_try) 2>&5 |
| 3779 | ac_status=$? |
| 3780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3781 | (exit $ac_status); }; } && |
| 3782 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3784 | (eval $ac_try) 2>&5 |
| 3785 | ac_status=$? |
| 3786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3787 | (exit $ac_status); }; }; then |
| 3788 | for ac_declaration in \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3789 | '' \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3790 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3791 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3792 | 'extern "C" void exit (int) throw ();' \ |
| 3793 | 'extern "C" void exit (int);' \ |
| 3794 | 'void exit (int);' |
| 3795 | do |
| 3796 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3797 | /* confdefs.h. */ |
| 3798 | _ACEOF |
| 3799 | cat confdefs.h >>conftest.$ac_ext |
| 3800 | cat >>conftest.$ac_ext <<_ACEOF |
| 3801 | /* end confdefs.h. */ |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 3802 | $ac_declaration |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3803 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3804 | int |
| 3805 | main () |
| 3806 | { |
| 3807 | exit (42); |
| 3808 | ; |
| 3809 | return 0; |
| 3810 | } |
| 3811 | _ACEOF |
| 3812 | rm -f conftest.$ac_objext |
| 3813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3814 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3815 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3817 | rm -f conftest.er1 |
| 3818 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3820 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3821 | { ac_try='test -z "$ac_c_werror_flag" |
| 3822 | || test ! -s conftest.err' |
| 3823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3824 | (eval $ac_try) 2>&5 |
| 3825 | ac_status=$? |
| 3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3827 | (exit $ac_status); }; } && |
| 3828 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3830 | (eval $ac_try) 2>&5 |
| 3831 | ac_status=$? |
| 3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3833 | (exit $ac_status); }; }; then |
| 3834 | : |
| 3835 | else |
| 3836 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3838 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3839 | continue |
| 3840 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3842 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3843 | /* confdefs.h. */ |
| 3844 | _ACEOF |
| 3845 | cat confdefs.h >>conftest.$ac_ext |
| 3846 | cat >>conftest.$ac_ext <<_ACEOF |
| 3847 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3848 | $ac_declaration |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3849 | int |
| 3850 | main () |
| 3851 | { |
| 3852 | exit (42); |
| 3853 | ; |
| 3854 | return 0; |
| 3855 | } |
| 3856 | _ACEOF |
| 3857 | rm -f conftest.$ac_objext |
| 3858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3859 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3860 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3862 | rm -f conftest.er1 |
| 3863 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3865 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3866 | { ac_try='test -z "$ac_c_werror_flag" |
| 3867 | || test ! -s conftest.err' |
| 3868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3869 | (eval $ac_try) 2>&5 |
| 3870 | ac_status=$? |
| 3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3872 | (exit $ac_status); }; } && |
| 3873 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3875 | (eval $ac_try) 2>&5 |
| 3876 | ac_status=$? |
| 3877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3878 | (exit $ac_status); }; }; then |
| 3879 | break |
| 3880 | else |
| 3881 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3883 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3884 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3886 | done |
| 3887 | rm -f conftest* |
| 3888 | if test -n "$ac_declaration"; then |
| 3889 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3890 | echo $ac_declaration >>confdefs.h |
| 3891 | echo '#endif' >>confdefs.h |
| 3892 | fi |
| 3893 | |
| 3894 | else |
| 3895 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3898 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3900 | ac_ext=c |
| 3901 | ac_cpp='$CPP $CPPFLAGS' |
| 3902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3905 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3906 | ac_ext=cc |
| 3907 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3908 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3909 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3910 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3911 | if test -n "$ac_tool_prefix"; then |
| 3912 | for ac_prog in $CCC g++ |
| 3913 | do |
| 3914 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3915 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3918 | if test "${ac_cv_prog_CXX+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3920 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3921 | if test -n "$CXX"; then |
| 3922 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3923 | else |
| 3924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3925 | for as_dir in $PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3926 | do |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3927 | IFS=$as_save_IFS |
| 3928 | test -z "$as_dir" && as_dir=. |
| 3929 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3931 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3933 | break 2 |
| 3934 | fi |
| 3935 | done |
| 3936 | done |
| 3937 | |
| 3938 | fi |
| 3939 | fi |
| 3940 | CXX=$ac_cv_prog_CXX |
| 3941 | if test -n "$CXX"; then |
| 3942 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3943 | echo "${ECHO_T}$CXX" >&6 |
| 3944 | else |
| 3945 | echo "$as_me:$LINENO: result: no" >&5 |
| 3946 | echo "${ECHO_T}no" >&6 |
| 3947 | fi |
| 3948 | |
| 3949 | test -n "$CXX" && break |
| 3950 | done |
| 3951 | fi |
| 3952 | if test -z "$CXX"; then |
| 3953 | ac_ct_CXX=$CXX |
| 3954 | for ac_prog in $CCC g++ |
| 3955 | do |
| 3956 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3957 | set dummy $ac_prog; ac_word=$2 |
| 3958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3960 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3962 | else |
| 3963 | if test -n "$ac_ct_CXX"; then |
| 3964 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3965 | else |
| 3966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3967 | for as_dir in $PATH |
| 3968 | do |
| 3969 | IFS=$as_save_IFS |
| 3970 | test -z "$as_dir" && as_dir=. |
| 3971 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3973 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3975 | break 2 |
| 3976 | fi |
| 3977 | done |
| 3978 | done |
| 3979 | |
| 3980 | fi |
| 3981 | fi |
| 3982 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3983 | if test -n "$ac_ct_CXX"; then |
| 3984 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3985 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 3986 | else |
| 3987 | echo "$as_me:$LINENO: result: no" >&5 |
| 3988 | echo "${ECHO_T}no" >&6 |
| 3989 | fi |
| 3990 | |
| 3991 | test -n "$ac_ct_CXX" && break |
| 3992 | done |
| 3993 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3994 | |
| 3995 | CXX=$ac_ct_CXX |
| 3996 | fi |
| 3997 | |
| 3998 | |
| 3999 | # Provide some information about the compiler. |
| 4000 | echo "$as_me:$LINENO:" \ |
| 4001 | "checking for C++ compiler version" >&5 |
| 4002 | ac_compiler=`set X $ac_compile; echo $2` |
| 4003 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4004 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4005 | ac_status=$? |
| 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4007 | (exit $ac_status); } |
| 4008 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4009 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4010 | ac_status=$? |
| 4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4012 | (exit $ac_status); } |
| 4013 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4014 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4015 | ac_status=$? |
| 4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4017 | (exit $ac_status); } |
| 4018 | |
| 4019 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 4020 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 4021 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 4022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4023 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4024 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4025 | /* confdefs.h. */ |
| 4026 | _ACEOF |
| 4027 | cat confdefs.h >>conftest.$ac_ext |
| 4028 | cat >>conftest.$ac_ext <<_ACEOF |
| 4029 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4030 | |
| 4031 | int |
| 4032 | main () |
| 4033 | { |
| 4034 | #ifndef __GNUC__ |
| 4035 | choke me |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4036 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4037 | |
| 4038 | ; |
| 4039 | return 0; |
| 4040 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4041 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4042 | rm -f conftest.$ac_objext |
| 4043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4044 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4045 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4046 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4047 | rm -f conftest.er1 |
| 4048 | cat conftest.err >&5 |
| 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4050 | (exit $ac_status); } && |
| 4051 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4052 | || test ! -s conftest.err' |
| 4053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4054 | (eval $ac_try) 2>&5 |
| 4055 | ac_status=$? |
| 4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4057 | (exit $ac_status); }; } && |
| 4058 | { ac_try='test -s conftest.$ac_objext' |
| 4059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4060 | (eval $ac_try) 2>&5 |
| 4061 | ac_status=$? |
| 4062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4063 | (exit $ac_status); }; }; then |
| 4064 | ac_compiler_gnu=yes |
| 4065 | else |
| 4066 | echo "$as_me: failed program was:" >&5 |
| 4067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4068 | |
| 4069 | ac_compiler_gnu=no |
| 4070 | fi |
| 4071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4072 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4073 | |
| 4074 | fi |
| 4075 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4076 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 4077 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4078 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4079 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4080 | CXXFLAGS="-g" |
| 4081 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4082 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 4083 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4085 | else |
| 4086 | cat >conftest.$ac_ext <<_ACEOF |
| 4087 | /* confdefs.h. */ |
| 4088 | _ACEOF |
| 4089 | cat confdefs.h >>conftest.$ac_ext |
| 4090 | cat >>conftest.$ac_ext <<_ACEOF |
| 4091 | /* end confdefs.h. */ |
| 4092 | |
| 4093 | int |
| 4094 | main () |
| 4095 | { |
| 4096 | |
| 4097 | ; |
| 4098 | return 0; |
| 4099 | } |
| 4100 | _ACEOF |
| 4101 | rm -f conftest.$ac_objext |
| 4102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4103 | (eval $ac_compile) 2>conftest.er1 |
| 4104 | ac_status=$? |
| 4105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4106 | rm -f conftest.er1 |
| 4107 | cat conftest.err >&5 |
| 4108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4109 | (exit $ac_status); } && |
| 4110 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4111 | || test ! -s conftest.err' |
| 4112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4113 | (eval $ac_try) 2>&5 |
| 4114 | ac_status=$? |
| 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4116 | (exit $ac_status); }; } && |
| 4117 | { ac_try='test -s conftest.$ac_objext' |
| 4118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4119 | (eval $ac_try) 2>&5 |
| 4120 | ac_status=$? |
| 4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4122 | (exit $ac_status); }; }; then |
| 4123 | ac_cv_prog_cxx_g=yes |
| 4124 | else |
| 4125 | echo "$as_me: failed program was:" >&5 |
| 4126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4127 | |
| 4128 | ac_cv_prog_cxx_g=no |
| 4129 | fi |
| 4130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4131 | fi |
| 4132 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4133 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4134 | if test "$ac_test_CXXFLAGS" = set; then |
| 4135 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4136 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4137 | if test "$GXX" = yes; then |
| 4138 | CXXFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4139 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4140 | CXXFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4141 | fi |
| 4142 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4143 | if test "$GXX" = yes; then |
| 4144 | CXXFLAGS="-O2" |
| 4145 | else |
| 4146 | CXXFLAGS= |
| 4147 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4148 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4149 | for ac_declaration in \ |
| 4150 | '' \ |
| 4151 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4152 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 4153 | 'extern "C" void exit (int) throw ();' \ |
| 4154 | 'extern "C" void exit (int);' \ |
| 4155 | 'void exit (int);' |
| 4156 | do |
| 4157 | cat >conftest.$ac_ext <<_ACEOF |
| 4158 | /* confdefs.h. */ |
| 4159 | _ACEOF |
| 4160 | cat confdefs.h >>conftest.$ac_ext |
| 4161 | cat >>conftest.$ac_ext <<_ACEOF |
| 4162 | /* end confdefs.h. */ |
| 4163 | $ac_declaration |
| 4164 | #include <stdlib.h> |
| 4165 | int |
| 4166 | main () |
| 4167 | { |
| 4168 | exit (42); |
| 4169 | ; |
| 4170 | return 0; |
| 4171 | } |
| 4172 | _ACEOF |
| 4173 | rm -f conftest.$ac_objext |
| 4174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4175 | (eval $ac_compile) 2>conftest.er1 |
| 4176 | ac_status=$? |
| 4177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4178 | rm -f conftest.er1 |
| 4179 | cat conftest.err >&5 |
| 4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4181 | (exit $ac_status); } && |
| 4182 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4183 | || test ! -s conftest.err' |
| 4184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4185 | (eval $ac_try) 2>&5 |
| 4186 | ac_status=$? |
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4188 | (exit $ac_status); }; } && |
| 4189 | { ac_try='test -s conftest.$ac_objext' |
| 4190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4191 | (eval $ac_try) 2>&5 |
| 4192 | ac_status=$? |
| 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4194 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4195 | : |
| 4196 | else |
| 4197 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4199 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4200 | continue |
| 4201 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4203 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4204 | /* confdefs.h. */ |
| 4205 | _ACEOF |
| 4206 | cat confdefs.h >>conftest.$ac_ext |
| 4207 | cat >>conftest.$ac_ext <<_ACEOF |
| 4208 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4209 | $ac_declaration |
| 4210 | int |
| 4211 | main () |
| 4212 | { |
| 4213 | exit (42); |
| 4214 | ; |
| 4215 | return 0; |
| 4216 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4217 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4218 | rm -f conftest.$ac_objext |
| 4219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4220 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4221 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4222 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4223 | rm -f conftest.er1 |
| 4224 | cat conftest.err >&5 |
| 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4226 | (exit $ac_status); } && |
| 4227 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4228 | || test ! -s conftest.err' |
| 4229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4230 | (eval $ac_try) 2>&5 |
| 4231 | ac_status=$? |
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4233 | (exit $ac_status); }; } && |
| 4234 | { ac_try='test -s conftest.$ac_objext' |
| 4235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4236 | (eval $ac_try) 2>&5 |
| 4237 | ac_status=$? |
| 4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4239 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4240 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4241 | else |
| 4242 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4244 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4245 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4247 | done |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4248 | rm -f conftest* |
| 4249 | if test -n "$ac_declaration"; then |
| 4250 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4251 | echo $ac_declaration >>confdefs.h |
| 4252 | echo '#endif' >>confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4253 | fi |
| 4254 | |
| 4255 | ac_ext=c |
| 4256 | ac_cpp='$CPP $CPPFLAGS' |
| 4257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4260 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4261 | echo "$as_me:$LINENO: checking " >&5 |
| 4262 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
| 4263 | if test "${ac_cv_has_flex+set}" = set; then |
| 4264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4265 | else |
| 4266 | for ac_prog in flex lex |
| 4267 | do |
| 4268 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4269 | set dummy $ac_prog; ac_word=$2 |
| 4270 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4272 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4274 | else |
| 4275 | if test -n "$LEX"; then |
| 4276 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4277 | else |
| 4278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4279 | for as_dir in $PATH |
| 4280 | do |
| 4281 | IFS=$as_save_IFS |
| 4282 | test -z "$as_dir" && as_dir=. |
| 4283 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4285 | ac_cv_prog_LEX="$ac_prog" |
| 4286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4287 | break 2 |
| 4288 | fi |
| 4289 | done |
| 4290 | done |
| 4291 | |
| 4292 | fi |
| 4293 | fi |
| 4294 | LEX=$ac_cv_prog_LEX |
| 4295 | if test -n "$LEX"; then |
| 4296 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 4297 | echo "${ECHO_T}$LEX" >&6 |
| 4298 | else |
| 4299 | echo "$as_me:$LINENO: result: no" >&5 |
| 4300 | echo "${ECHO_T}no" >&6 |
| 4301 | fi |
| 4302 | |
| 4303 | test -n "$LEX" && break |
| 4304 | done |
| 4305 | test -n "$LEX" || LEX=":" |
| 4306 | |
| 4307 | if test -z "$LEXLIB" |
| 4308 | then |
| 4309 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 4310 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4311 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4313 | else |
| 4314 | ac_check_lib_save_LIBS=$LIBS |
| 4315 | LIBS="-lfl $LIBS" |
| 4316 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4317 | /* confdefs.h. */ |
| 4318 | _ACEOF |
| 4319 | cat confdefs.h >>conftest.$ac_ext |
| 4320 | cat >>conftest.$ac_ext <<_ACEOF |
| 4321 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4322 | |
| 4323 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4324 | #ifdef __cplusplus |
| 4325 | extern "C" |
| 4326 | #endif |
| 4327 | /* We use char because int might match the return type of a gcc2 |
| 4328 | builtin and then its argument prototype would still apply. */ |
| 4329 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4330 | int |
| 4331 | main () |
| 4332 | { |
| 4333 | yywrap (); |
| 4334 | ; |
| 4335 | return 0; |
| 4336 | } |
| 4337 | _ACEOF |
| 4338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4340 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4341 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4343 | rm -f conftest.er1 |
| 4344 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4346 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4347 | { ac_try='test -z "$ac_c_werror_flag" |
| 4348 | || test ! -s conftest.err' |
| 4349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4350 | (eval $ac_try) 2>&5 |
| 4351 | ac_status=$? |
| 4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4353 | (exit $ac_status); }; } && |
| 4354 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4356 | (eval $ac_try) 2>&5 |
| 4357 | ac_status=$? |
| 4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4359 | (exit $ac_status); }; }; then |
| 4360 | ac_cv_lib_fl_yywrap=yes |
| 4361 | else |
| 4362 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4364 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4365 | ac_cv_lib_fl_yywrap=no |
| 4366 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4367 | rm -f conftest.err conftest.$ac_objext \ |
| 4368 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4369 | LIBS=$ac_check_lib_save_LIBS |
| 4370 | fi |
| 4371 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 4372 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4373 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4374 | LEXLIB="-lfl" |
| 4375 | else |
| 4376 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 4377 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4378 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4380 | else |
| 4381 | ac_check_lib_save_LIBS=$LIBS |
| 4382 | LIBS="-ll $LIBS" |
| 4383 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4384 | /* confdefs.h. */ |
| 4385 | _ACEOF |
| 4386 | cat confdefs.h >>conftest.$ac_ext |
| 4387 | cat >>conftest.$ac_ext <<_ACEOF |
| 4388 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4389 | |
| 4390 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4391 | #ifdef __cplusplus |
| 4392 | extern "C" |
| 4393 | #endif |
| 4394 | /* We use char because int might match the return type of a gcc2 |
| 4395 | builtin and then its argument prototype would still apply. */ |
| 4396 | char yywrap (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4397 | int |
| 4398 | main () |
| 4399 | { |
| 4400 | yywrap (); |
| 4401 | ; |
| 4402 | return 0; |
| 4403 | } |
| 4404 | _ACEOF |
| 4405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4407 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4408 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4410 | rm -f conftest.er1 |
| 4411 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4413 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4414 | { ac_try='test -z "$ac_c_werror_flag" |
| 4415 | || test ! -s conftest.err' |
| 4416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4417 | (eval $ac_try) 2>&5 |
| 4418 | ac_status=$? |
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4420 | (exit $ac_status); }; } && |
| 4421 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4423 | (eval $ac_try) 2>&5 |
| 4424 | ac_status=$? |
| 4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4426 | (exit $ac_status); }; }; then |
| 4427 | ac_cv_lib_l_yywrap=yes |
| 4428 | else |
| 4429 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4431 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4432 | ac_cv_lib_l_yywrap=no |
| 4433 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4434 | rm -f conftest.err conftest.$ac_objext \ |
| 4435 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4436 | LIBS=$ac_check_lib_save_LIBS |
| 4437 | fi |
| 4438 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 4439 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4440 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4441 | LEXLIB="-ll" |
| 4442 | fi |
| 4443 | |
| 4444 | fi |
| 4445 | |
| 4446 | fi |
| 4447 | |
| 4448 | if test "x$LEX" != "x:"; then |
| 4449 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 4450 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4451 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4453 | else |
| 4454 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4455 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 4456 | cat >conftest.l <<_ACEOF |
| 4457 | %% |
| 4458 | %% |
| 4459 | _ACEOF |
| 4460 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4461 | (eval $LEX conftest.l) 2>&5 |
| 4462 | ac_status=$? |
| 4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4464 | (exit $ac_status); } |
| 4465 | if test -f lex.yy.c; then |
| 4466 | ac_cv_prog_lex_root=lex.yy |
| 4467 | elif test -f lexyy.c; then |
| 4468 | ac_cv_prog_lex_root=lexyy |
| 4469 | else |
| 4470 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 4471 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4472 | { (exit 1); exit 1; }; } |
| 4473 | fi |
| 4474 | fi |
| 4475 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 4476 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 4477 | rm -f conftest.l |
| 4478 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4479 | |
| 4480 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 4481 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4482 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4484 | else |
| 4485 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4486 | # default is implementation-dependent. Figure out which it is, since |
| 4487 | # not all implementations provide the %pointer and %array declarations. |
| 4488 | ac_cv_prog_lex_yytext_pointer=no |
| 4489 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4490 | ac_save_LIBS=$LIBS |
| 4491 | LIBS="$LIBS $LEXLIB" |
| 4492 | cat >conftest.$ac_ext <<_ACEOF |
| 4493 | `cat $LEX_OUTPUT_ROOT.c` |
| 4494 | _ACEOF |
| 4495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4497 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4498 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4500 | rm -f conftest.er1 |
| 4501 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4503 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4504 | { ac_try='test -z "$ac_c_werror_flag" |
| 4505 | || test ! -s conftest.err' |
| 4506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4507 | (eval $ac_try) 2>&5 |
| 4508 | ac_status=$? |
| 4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4510 | (exit $ac_status); }; } && |
| 4511 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4513 | (eval $ac_try) 2>&5 |
| 4514 | ac_status=$? |
| 4515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4516 | (exit $ac_status); }; }; then |
| 4517 | ac_cv_prog_lex_yytext_pointer=yes |
| 4518 | else |
| 4519 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4521 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4522 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4523 | rm -f conftest.err conftest.$ac_objext \ |
| 4524 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4525 | LIBS=$ac_save_LIBS |
| 4526 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4527 | |
| 4528 | fi |
| 4529 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 4530 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4531 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4532 | |
| 4533 | cat >>confdefs.h <<\_ACEOF |
| 4534 | #define YYTEXT_POINTER 1 |
| 4535 | _ACEOF |
| 4536 | |
| 4537 | fi |
| 4538 | |
| 4539 | fi |
| 4540 | |
| 4541 | fi |
| 4542 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 4543 | echo "${ECHO_T}$ac_cv_has_flex" >&6 |
| 4544 | if test "$LEX" != "flex"; then |
| 4545 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 4546 | echo "$as_me: error: flex not found but required" >&2;} |
| 4547 | { (exit 1); exit 1; }; } |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4548 | else |
| 4549 | FLEX=flex |
| 4550 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4551 | fi |
| 4552 | |
| 4553 | echo "$as_me:$LINENO: checking " >&5 |
| 4554 | echo $ECHO_N "checking ... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4555 | if test "${llvm_cv_has_bison+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4557 | else |
| 4558 | for ac_prog in 'bison -y' byacc |
| 4559 | do |
| 4560 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4561 | set dummy $ac_prog; ac_word=$2 |
| 4562 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4564 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 4565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4566 | else |
| 4567 | if test -n "$YACC"; then |
| 4568 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4569 | else |
| 4570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4571 | for as_dir in $PATH |
| 4572 | do |
| 4573 | IFS=$as_save_IFS |
| 4574 | test -z "$as_dir" && as_dir=. |
| 4575 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4577 | ac_cv_prog_YACC="$ac_prog" |
| 4578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4579 | break 2 |
| 4580 | fi |
| 4581 | done |
| 4582 | done |
| 4583 | |
| 4584 | fi |
| 4585 | fi |
| 4586 | YACC=$ac_cv_prog_YACC |
| 4587 | if test -n "$YACC"; then |
| 4588 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4589 | echo "${ECHO_T}$YACC" >&6 |
| 4590 | else |
| 4591 | echo "$as_me:$LINENO: result: no" >&5 |
| 4592 | echo "${ECHO_T}no" >&6 |
| 4593 | fi |
| 4594 | |
| 4595 | test -n "$YACC" && break |
| 4596 | done |
| 4597 | test -n "$YACC" || YACC="yacc" |
| 4598 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4599 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4600 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 4601 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4602 | if test "$YACC" != "bison -y"; then |
| 4603 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 4604 | echo "$as_me: error: bison not found but required" >&2;} |
| 4605 | { (exit 1); exit 1; }; } |
| 4606 | else |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4607 | BISON=bison |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4608 | |
| 4609 | fi |
| 4610 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4611 | echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 4612 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 |
| 4613 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4615 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4616 | llvm_cv_gnu_make_command='' |
| 4617 | for a in "$MAKE" make gmake gnumake ; do |
| 4618 | if test -z "$a" ; then continue ; fi ; |
| 4619 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 4620 | then |
| 4621 | llvm_cv_gnu_make_command=$a ; |
| 4622 | break; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4623 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4624 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4625 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4626 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 4627 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 |
| 4628 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 4629 | ifGNUmake='' ; |
| 4630 | else |
| 4631 | ifGNUmake='#' ; |
| 4632 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 4633 | echo "${ECHO_T}\"Not found\"" >&6; |
| 4634 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4635 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4636 | |
| 4637 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4638 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4639 | LN_S=$as_ln_s |
| 4640 | if test "$LN_S" = "ln -s"; then |
| 4641 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4642 | echo "${ECHO_T}yes" >&6 |
| 4643 | else |
| 4644 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4645 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4646 | fi |
| 4647 | |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 4648 | # Extract the first word of "cmp", so it can be a program name with args. |
| 4649 | set dummy cmp; ac_word=$2 |
| 4650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4652 | if test "${ac_cv_path_CMP+set}" = set; then |
| 4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4654 | else |
| 4655 | case $CMP in |
| 4656 | [\\/]* | ?:[\\/]*) |
| 4657 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 4658 | ;; |
| 4659 | *) |
| 4660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4661 | for as_dir in $PATH |
| 4662 | do |
| 4663 | IFS=$as_save_IFS |
| 4664 | test -z "$as_dir" && as_dir=. |
| 4665 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4667 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 4668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4669 | break 2 |
| 4670 | fi |
| 4671 | done |
| 4672 | done |
| 4673 | |
| 4674 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 4675 | ;; |
| 4676 | esac |
| 4677 | fi |
| 4678 | CMP=$ac_cv_path_CMP |
| 4679 | |
| 4680 | if test -n "$CMP"; then |
| 4681 | echo "$as_me:$LINENO: result: $CMP" >&5 |
| 4682 | echo "${ECHO_T}$CMP" >&6 |
| 4683 | else |
| 4684 | echo "$as_me:$LINENO: result: no" >&5 |
| 4685 | echo "${ECHO_T}no" >&6 |
| 4686 | fi |
| 4687 | |
| 4688 | # Extract the first word of "cp", so it can be a program name with args. |
| 4689 | set dummy cp; ac_word=$2 |
| 4690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4692 | if test "${ac_cv_path_CP+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4694 | else |
| 4695 | case $CP in |
| 4696 | [\\/]* | ?:[\\/]*) |
| 4697 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4698 | ;; |
| 4699 | *) |
| 4700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4701 | for as_dir in $PATH |
| 4702 | do |
| 4703 | IFS=$as_save_IFS |
| 4704 | test -z "$as_dir" && as_dir=. |
| 4705 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4707 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 4708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4709 | break 2 |
| 4710 | fi |
| 4711 | done |
| 4712 | done |
| 4713 | |
| 4714 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4715 | ;; |
| 4716 | esac |
| 4717 | fi |
| 4718 | CP=$ac_cv_path_CP |
| 4719 | |
| 4720 | if test -n "$CP"; then |
| 4721 | echo "$as_me:$LINENO: result: $CP" >&5 |
| 4722 | echo "${ECHO_T}$CP" >&6 |
| 4723 | else |
| 4724 | echo "$as_me:$LINENO: result: no" >&5 |
| 4725 | echo "${ECHO_T}no" >&6 |
| 4726 | fi |
| 4727 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4728 | # Extract the first word of "date", so it can be a program name with args. |
| 4729 | set dummy date; ac_word=$2 |
| 4730 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4732 | if test "${ac_cv_path_DATE+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4734 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4735 | case $DATE in |
| 4736 | [\\/]* | ?:[\\/]*) |
| 4737 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4738 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4739 | *) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4741 | for as_dir in $PATH |
| 4742 | do |
| 4743 | IFS=$as_save_IFS |
| 4744 | test -z "$as_dir" && as_dir=. |
| 4745 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4747 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 4748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4749 | break 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4750 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4751 | done |
| 4752 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4753 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4754 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4755 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4756 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4757 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4758 | DATE=$ac_cv_path_DATE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4759 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4760 | if test -n "$DATE"; then |
| 4761 | echo "$as_me:$LINENO: result: $DATE" >&5 |
| 4762 | echo "${ECHO_T}$DATE" >&6 |
| 4763 | else |
| 4764 | echo "$as_me:$LINENO: result: no" >&5 |
| 4765 | echo "${ECHO_T}no" >&6 |
| 4766 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4767 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4768 | # Extract the first word of "find", so it can be a program name with args. |
| 4769 | set dummy find; ac_word=$2 |
| 4770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4772 | if test "${ac_cv_path_FIND+set}" = set; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4774 | else |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4775 | case $FIND in |
| 4776 | [\\/]* | ?:[\\/]*) |
| 4777 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 4778 | ;; |
| 4779 | *) |
| 4780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4781 | for as_dir in $PATH |
| 4782 | do |
| 4783 | IFS=$as_save_IFS |
| 4784 | test -z "$as_dir" && as_dir=. |
| 4785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4786 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4787 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 4788 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4789 | break 2 |
| 4790 | fi |
| 4791 | done |
| 4792 | done |
| 4793 | |
| 4794 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 4795 | ;; |
| 4796 | esac |
| 4797 | fi |
| 4798 | FIND=$ac_cv_path_FIND |
| 4799 | |
| 4800 | if test -n "$FIND"; then |
| 4801 | echo "$as_me:$LINENO: result: $FIND" >&5 |
| 4802 | echo "${ECHO_T}$FIND" >&6 |
| 4803 | else |
| 4804 | echo "$as_me:$LINENO: result: no" >&5 |
| 4805 | echo "${ECHO_T}no" >&6 |
| 4806 | fi |
| 4807 | |
| 4808 | # Extract the first word of "grep", so it can be a program name with args. |
| 4809 | set dummy grep; ac_word=$2 |
| 4810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4812 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4814 | else |
| 4815 | case $GREP in |
| 4816 | [\\/]* | ?:[\\/]*) |
| 4817 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 4818 | ;; |
| 4819 | *) |
| 4820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4821 | for as_dir in $PATH |
| 4822 | do |
| 4823 | IFS=$as_save_IFS |
| 4824 | test -z "$as_dir" && as_dir=. |
| 4825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4826 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4827 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 4828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4829 | break 2 |
| 4830 | fi |
| 4831 | done |
| 4832 | done |
| 4833 | |
| 4834 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 4835 | ;; |
| 4836 | esac |
| 4837 | fi |
| 4838 | GREP=$ac_cv_path_GREP |
| 4839 | |
| 4840 | if test -n "$GREP"; then |
| 4841 | echo "$as_me:$LINENO: result: $GREP" >&5 |
| 4842 | echo "${ECHO_T}$GREP" >&6 |
| 4843 | else |
| 4844 | echo "$as_me:$LINENO: result: no" >&5 |
| 4845 | echo "${ECHO_T}no" >&6 |
| 4846 | fi |
| 4847 | |
| 4848 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 4849 | set dummy mkdir; ac_word=$2 |
| 4850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4852 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 4853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4854 | else |
| 4855 | case $MKDIR in |
| 4856 | [\\/]* | ?:[\\/]*) |
| 4857 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 4858 | ;; |
| 4859 | *) |
| 4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4861 | for as_dir in $PATH |
| 4862 | do |
| 4863 | IFS=$as_save_IFS |
| 4864 | test -z "$as_dir" && as_dir=. |
| 4865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4867 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 4868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4869 | break 2 |
| 4870 | fi |
| 4871 | done |
| 4872 | done |
| 4873 | |
| 4874 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 4875 | ;; |
| 4876 | esac |
| 4877 | fi |
| 4878 | MKDIR=$ac_cv_path_MKDIR |
| 4879 | |
| 4880 | if test -n "$MKDIR"; then |
| 4881 | echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 4882 | echo "${ECHO_T}$MKDIR" >&6 |
| 4883 | else |
| 4884 | echo "$as_me:$LINENO: result: no" >&5 |
| 4885 | echo "${ECHO_T}no" >&6 |
| 4886 | fi |
| 4887 | |
| 4888 | # Extract the first word of "mv", so it can be a program name with args. |
| 4889 | set dummy mv; ac_word=$2 |
| 4890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4892 | if test "${ac_cv_path_MV+set}" = set; then |
| 4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4894 | else |
| 4895 | case $MV in |
| 4896 | [\\/]* | ?:[\\/]*) |
| 4897 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4898 | ;; |
| 4899 | *) |
| 4900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4901 | for as_dir in $PATH |
| 4902 | do |
| 4903 | IFS=$as_save_IFS |
| 4904 | test -z "$as_dir" && as_dir=. |
| 4905 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4907 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 4908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4909 | break 2 |
| 4910 | fi |
| 4911 | done |
| 4912 | done |
| 4913 | |
| 4914 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4915 | ;; |
| 4916 | esac |
| 4917 | fi |
| 4918 | MV=$ac_cv_path_MV |
| 4919 | |
| 4920 | if test -n "$MV"; then |
| 4921 | echo "$as_me:$LINENO: result: $MV" >&5 |
| 4922 | echo "${ECHO_T}$MV" >&6 |
| 4923 | else |
| 4924 | echo "$as_me:$LINENO: result: no" >&5 |
| 4925 | echo "${ECHO_T}no" >&6 |
| 4926 | fi |
| 4927 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4928 | if test -n "$ac_tool_prefix"; then |
| 4929 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4930 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4931 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4933 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4935 | else |
| 4936 | if test -n "$RANLIB"; then |
| 4937 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4938 | else |
| 4939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4940 | for as_dir in $PATH |
| 4941 | do |
| 4942 | IFS=$as_save_IFS |
| 4943 | test -z "$as_dir" && as_dir=. |
| 4944 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4946 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4948 | break 2 |
| 4949 | fi |
| 4950 | done |
| 4951 | done |
| 4952 | |
| 4953 | fi |
| 4954 | fi |
| 4955 | RANLIB=$ac_cv_prog_RANLIB |
| 4956 | if test -n "$RANLIB"; then |
| 4957 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4958 | echo "${ECHO_T}$RANLIB" >&6 |
| 4959 | else |
| 4960 | echo "$as_me:$LINENO: result: no" >&5 |
| 4961 | echo "${ECHO_T}no" >&6 |
| 4962 | fi |
| 4963 | |
| 4964 | fi |
| 4965 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4966 | ac_ct_RANLIB=$RANLIB |
| 4967 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4968 | set dummy ranlib; ac_word=$2 |
| 4969 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4971 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4973 | else |
| 4974 | if test -n "$ac_ct_RANLIB"; then |
| 4975 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4976 | else |
| 4977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4978 | for as_dir in $PATH |
| 4979 | do |
| 4980 | IFS=$as_save_IFS |
| 4981 | test -z "$as_dir" && as_dir=. |
| 4982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4983 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4984 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4986 | break 2 |
| 4987 | fi |
| 4988 | done |
| 4989 | done |
| 4990 | |
| 4991 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4992 | fi |
| 4993 | fi |
| 4994 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4995 | if test -n "$ac_ct_RANLIB"; then |
| 4996 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4997 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4998 | else |
| 4999 | echo "$as_me:$LINENO: result: no" >&5 |
| 5000 | echo "${ECHO_T}no" >&6 |
| 5001 | fi |
| 5002 | |
| 5003 | RANLIB=$ac_ct_RANLIB |
| 5004 | else |
| 5005 | RANLIB="$ac_cv_prog_RANLIB" |
| 5006 | fi |
| 5007 | |
| 5008 | # Extract the first word of "rm", so it can be a program name with args. |
| 5009 | set dummy rm; ac_word=$2 |
| 5010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5012 | if test "${ac_cv_path_RM+set}" = set; then |
| 5013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5014 | else |
| 5015 | case $RM in |
| 5016 | [\\/]* | ?:[\\/]*) |
| 5017 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 5018 | ;; |
| 5019 | *) |
| 5020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5021 | for as_dir in $PATH |
| 5022 | do |
| 5023 | IFS=$as_save_IFS |
| 5024 | test -z "$as_dir" && as_dir=. |
| 5025 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5027 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 5028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5029 | break 2 |
| 5030 | fi |
| 5031 | done |
| 5032 | done |
| 5033 | |
| 5034 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 5035 | ;; |
| 5036 | esac |
| 5037 | fi |
| 5038 | RM=$ac_cv_path_RM |
| 5039 | |
| 5040 | if test -n "$RM"; then |
| 5041 | echo "$as_me:$LINENO: result: $RM" >&5 |
| 5042 | echo "${ECHO_T}$RM" >&6 |
| 5043 | else |
| 5044 | echo "$as_me:$LINENO: result: no" >&5 |
| 5045 | echo "${ECHO_T}no" >&6 |
| 5046 | fi |
| 5047 | |
| 5048 | # Extract the first word of "sed", so it can be a program name with args. |
| 5049 | set dummy sed; ac_word=$2 |
| 5050 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5052 | if test "${ac_cv_path_SED+set}" = set; then |
| 5053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5054 | else |
| 5055 | case $SED in |
| 5056 | [\\/]* | ?:[\\/]*) |
| 5057 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 5058 | ;; |
| 5059 | *) |
| 5060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5061 | for as_dir in $PATH |
| 5062 | do |
| 5063 | IFS=$as_save_IFS |
| 5064 | test -z "$as_dir" && as_dir=. |
| 5065 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5066 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5067 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 5068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5069 | break 2 |
| 5070 | fi |
| 5071 | done |
| 5072 | done |
| 5073 | |
| 5074 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 5075 | ;; |
| 5076 | esac |
| 5077 | fi |
| 5078 | SED=$ac_cv_path_SED |
| 5079 | |
| 5080 | if test -n "$SED"; then |
| 5081 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 5082 | echo "${ECHO_T}$SED" >&6 |
| 5083 | else |
| 5084 | echo "$as_me:$LINENO: result: no" >&5 |
| 5085 | echo "${ECHO_T}no" >&6 |
| 5086 | fi |
| 5087 | |
| 5088 | # Extract the first word of "tar", so it can be a program name with args. |
| 5089 | set dummy tar; ac_word=$2 |
| 5090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5092 | if test "${ac_cv_path_TAR+set}" = set; then |
| 5093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5094 | else |
| 5095 | case $TAR in |
| 5096 | [\\/]* | ?:[\\/]*) |
| 5097 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 5098 | ;; |
| 5099 | *) |
| 5100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5101 | for as_dir in $PATH |
| 5102 | do |
| 5103 | IFS=$as_save_IFS |
| 5104 | test -z "$as_dir" && as_dir=. |
| 5105 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5106 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5107 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 5108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5109 | break 2 |
| 5110 | fi |
| 5111 | done |
| 5112 | done |
| 5113 | |
| 5114 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 5115 | ;; |
| 5116 | esac |
| 5117 | fi |
| 5118 | TAR=$ac_cv_path_TAR |
| 5119 | |
| 5120 | if test -n "$TAR"; then |
| 5121 | echo "$as_me:$LINENO: result: $TAR" >&5 |
| 5122 | echo "${ECHO_T}$TAR" >&6 |
| 5123 | else |
| 5124 | echo "$as_me:$LINENO: result: no" >&5 |
| 5125 | echo "${ECHO_T}no" >&6 |
| 5126 | fi |
| 5127 | |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5128 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 5129 | set dummy Graphviz; ac_word=$2 |
| 5130 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5132 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 5133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5134 | else |
| 5135 | case $GRAPHVIZ in |
| 5136 | [\\/]* | ?:[\\/]*) |
| 5137 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 5138 | ;; |
| 5139 | *) |
| 5140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5141 | for as_dir in $PATH |
| 5142 | do |
| 5143 | IFS=$as_save_IFS |
| 5144 | test -z "$as_dir" && as_dir=. |
| 5145 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5146 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5147 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 5148 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5149 | break 2 |
| 5150 | fi |
| 5151 | done |
| 5152 | done |
| 5153 | |
Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5154 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5155 | ;; |
| 5156 | esac |
| 5157 | fi |
| 5158 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 5159 | |
| 5160 | if test -n "$GRAPHVIZ"; then |
| 5161 | echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 5162 | echo "${ECHO_T}$GRAPHVIZ" >&6 |
| 5163 | else |
| 5164 | echo "$as_me:$LINENO: result: no" >&5 |
| 5165 | echo "${ECHO_T}no" >&6 |
| 5166 | fi |
| 5167 | |
Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5168 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5169 | |
| 5170 | cat >>confdefs.h <<\_ACEOF |
| 5171 | #define HAVE_GRAPHVIZ 1 |
| 5172 | _ACEOF |
| 5173 | |
Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5174 | |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5175 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | c232a65 | 2005-07-14 02:25:12 +0000 | [diff] [blame] | 5176 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ" |
| 5177 | _ACEOF |
| 5178 | |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 5179 | fi |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5180 | # Extract the first word of "gv", so it can be a program name with args. |
| 5181 | set dummy gv; ac_word=$2 |
| 5182 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5184 | if test "${ac_cv_path_GV+set}" = set; then |
| 5185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5186 | else |
| 5187 | case $GV in |
| 5188 | [\\/]* | ?:[\\/]*) |
| 5189 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 5190 | ;; |
| 5191 | *) |
| 5192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5193 | for as_dir in $PATH |
| 5194 | do |
| 5195 | IFS=$as_save_IFS |
| 5196 | test -z "$as_dir" && as_dir=. |
| 5197 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5198 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5199 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 5200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5201 | break 2 |
| 5202 | fi |
| 5203 | done |
| 5204 | done |
| 5205 | |
| 5206 | test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv" |
| 5207 | ;; |
| 5208 | esac |
| 5209 | fi |
| 5210 | GV=$ac_cv_path_GV |
| 5211 | |
| 5212 | if test -n "$GV"; then |
| 5213 | echo "$as_me:$LINENO: result: $GV" >&5 |
| 5214 | echo "${ECHO_T}$GV" >&6 |
| 5215 | else |
| 5216 | echo "$as_me:$LINENO: result: no" >&5 |
| 5217 | echo "${ECHO_T}no" >&6 |
| 5218 | fi |
| 5219 | |
Misha Brukman | f83d406 | 2005-11-01 21:00:49 +0000 | [diff] [blame] | 5220 | if test "$GV" != "echo gv" ; then |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 5221 | |
| 5222 | cat >>confdefs.h <<\_ACEOF |
| 5223 | #define HAVE_GV 1 |
| 5224 | _ACEOF |
| 5225 | |
| 5226 | |
| 5227 | cat >>confdefs.h <<_ACEOF |
| 5228 | #define LLVM_PATH_GV "$GV" |
| 5229 | _ACEOF |
| 5230 | |
| 5231 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5232 | |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 5233 | |
| 5234 | # Extract the first word of "perl", so it can be a program name with args. |
| 5235 | set dummy perl; ac_word=$2 |
| 5236 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5238 | if test "${ac_cv_path_PERL+set}" = set; then |
| 5239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5240 | else |
| 5241 | case $PERL in |
| 5242 | [\\/]* | ?:[\\/]*) |
| 5243 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 5244 | ;; |
| 5245 | *) |
| 5246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5247 | for as_dir in $PATH |
| 5248 | do |
| 5249 | IFS=$as_save_IFS |
| 5250 | test -z "$as_dir" && as_dir=. |
| 5251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5253 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 5254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5255 | break 2 |
| 5256 | fi |
| 5257 | done |
| 5258 | done |
| 5259 | |
| 5260 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 5261 | ;; |
| 5262 | esac |
| 5263 | fi |
| 5264 | PERL=$ac_cv_path_PERL |
| 5265 | |
| 5266 | if test -n "$PERL"; then |
| 5267 | echo "$as_me:$LINENO: result: $PERL" >&5 |
| 5268 | echo "${ECHO_T}$PERL" >&6 |
| 5269 | else |
| 5270 | echo "$as_me:$LINENO: result: no" >&5 |
| 5271 | echo "${ECHO_T}no" >&6 |
| 5272 | fi |
| 5273 | |
| 5274 | if test "$PERL" != "none"; then |
| 5275 | echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 5276 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6 |
| 5277 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 5278 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5279 | echo "${ECHO_T}yes" >&6 |
| 5280 | else |
| 5281 | PERL=none |
| 5282 | echo "$as_me:$LINENO: result: not found" >&5 |
| 5283 | echo "${ECHO_T}not found" >&6 |
| 5284 | fi |
| 5285 | fi |
| 5286 | |
| 5287 | |
| 5288 | if test x"$PERL" = xnone; then |
| 5289 | HAVE_PERL=0 |
| 5290 | |
| 5291 | else |
| 5292 | HAVE_PERL=1 |
| 5293 | |
| 5294 | fi |
| 5295 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5296 | # Find a good install program. We prefer a C program (faster), |
| 5297 | # so one script is as good as another. But avoid the broken or |
| 5298 | # incompatible versions: |
| 5299 | # SysV /etc/install, /usr/sbin/install |
| 5300 | # SunOS /usr/etc/install |
| 5301 | # IRIX /sbin/install |
| 5302 | # AIX /bin/install |
| 5303 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5304 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5305 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5306 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5307 | # OS/2's system install, which has a completely different semantic |
| 5308 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5309 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5310 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 5311 | if test -z "$INSTALL"; then |
| 5312 | if test "${ac_cv_path_install+set}" = set; then |
| 5313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5314 | else |
| 5315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5316 | for as_dir in $PATH |
| 5317 | do |
| 5318 | IFS=$as_save_IFS |
| 5319 | test -z "$as_dir" && as_dir=. |
| 5320 | # Account for people who put trailing slashes in PATH elements. |
| 5321 | case $as_dir/ in |
| 5322 | ./ | .// | /cC/* | \ |
| 5323 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5324 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5325 | /usr/ucb/* ) ;; |
| 5326 | *) |
| 5327 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5328 | # Don't use installbsd from OSF since it installs stuff as root |
| 5329 | # by default. |
| 5330 | for ac_prog in ginstall scoinst install; do |
| 5331 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5332 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5333 | if test $ac_prog = install && |
| 5334 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5335 | # AIX install. It has an incompatible calling convention. |
| 5336 | : |
| 5337 | elif test $ac_prog = install && |
| 5338 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5339 | # program-specific install script used by HP pwplus--don't use. |
| 5340 | : |
| 5341 | else |
| 5342 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5343 | break 3 |
| 5344 | fi |
| 5345 | fi |
| 5346 | done |
| 5347 | done |
| 5348 | ;; |
| 5349 | esac |
| 5350 | done |
| 5351 | |
| 5352 | |
| 5353 | fi |
| 5354 | if test "${ac_cv_path_install+set}" = set; then |
| 5355 | INSTALL=$ac_cv_path_install |
| 5356 | else |
| 5357 | # As a last resort, use the slow shell script. We don't cache a |
| 5358 | # path for INSTALL within a source directory, because that will |
| 5359 | # break other packages using the cache if that directory is |
| 5360 | # removed, or if the path is relative. |
| 5361 | INSTALL=$ac_install_sh |
| 5362 | fi |
| 5363 | fi |
| 5364 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5365 | echo "${ECHO_T}$INSTALL" >&6 |
| 5366 | |
| 5367 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5368 | # It thinks the first close brace ends the variable substitution. |
| 5369 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5370 | |
| 5371 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5372 | |
| 5373 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5374 | |
| 5375 | |
| 5376 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 5377 | set dummy bzip2; ac_word=$2 |
| 5378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5380 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 5381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5382 | else |
| 5383 | case $BZIP2 in |
| 5384 | [\\/]* | ?:[\\/]*) |
| 5385 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 5386 | ;; |
| 5387 | *) |
| 5388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5389 | for as_dir in $PATH |
| 5390 | do |
| 5391 | IFS=$as_save_IFS |
| 5392 | test -z "$as_dir" && as_dir=. |
| 5393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5395 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 5396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5397 | break 2 |
| 5398 | fi |
| 5399 | done |
| 5400 | done |
| 5401 | |
| 5402 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2" |
| 5403 | ;; |
| 5404 | esac |
| 5405 | fi |
| 5406 | BZIP2=$ac_cv_path_BZIP2 |
| 5407 | |
| 5408 | if test -n "$BZIP2"; then |
| 5409 | echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 5410 | echo "${ECHO_T}$BZIP2" >&6 |
| 5411 | else |
| 5412 | echo "$as_me:$LINENO: result: no" >&5 |
| 5413 | echo "${ECHO_T}no" >&6 |
| 5414 | fi |
| 5415 | |
| 5416 | # Extract the first word of "dot", so it can be a program name with args. |
| 5417 | set dummy dot; ac_word=$2 |
| 5418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5420 | if test "${ac_cv_path_DOT+set}" = set; then |
| 5421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5422 | else |
| 5423 | case $DOT in |
| 5424 | [\\/]* | ?:[\\/]*) |
| 5425 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 5426 | ;; |
| 5427 | *) |
| 5428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5429 | for as_dir in $PATH |
| 5430 | do |
| 5431 | IFS=$as_save_IFS |
| 5432 | test -z "$as_dir" && as_dir=. |
| 5433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5435 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 5436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5437 | break 2 |
| 5438 | fi |
| 5439 | done |
| 5440 | done |
| 5441 | |
| 5442 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" |
| 5443 | ;; |
| 5444 | esac |
| 5445 | fi |
| 5446 | DOT=$ac_cv_path_DOT |
| 5447 | |
| 5448 | if test -n "$DOT"; then |
| 5449 | echo "$as_me:$LINENO: result: $DOT" >&5 |
| 5450 | echo "${ECHO_T}$DOT" >&6 |
| 5451 | else |
| 5452 | echo "$as_me:$LINENO: result: no" >&5 |
| 5453 | echo "${ECHO_T}no" >&6 |
| 5454 | fi |
| 5455 | |
| 5456 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 5457 | set dummy doxygen; ac_word=$2 |
| 5458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5460 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 5461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5462 | else |
| 5463 | case $DOXYGEN in |
| 5464 | [\\/]* | ?:[\\/]*) |
| 5465 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 5466 | ;; |
| 5467 | *) |
| 5468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5469 | for as_dir in $PATH |
| 5470 | do |
| 5471 | IFS=$as_save_IFS |
| 5472 | test -z "$as_dir" && as_dir=. |
| 5473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5475 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 5476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5477 | break 2 |
| 5478 | fi |
| 5479 | done |
| 5480 | done |
| 5481 | |
| 5482 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen" |
| 5483 | ;; |
| 5484 | esac |
| 5485 | fi |
| 5486 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 5487 | |
| 5488 | if test -n "$DOXYGEN"; then |
| 5489 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 5490 | echo "${ECHO_T}$DOXYGEN" >&6 |
| 5491 | else |
| 5492 | echo "$as_me:$LINENO: result: no" >&5 |
| 5493 | echo "${ECHO_T}no" >&6 |
| 5494 | fi |
| 5495 | |
| 5496 | # Extract the first word of "etags", so it can be a program name with args. |
| 5497 | set dummy etags; ac_word=$2 |
| 5498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5500 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 5501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5502 | else |
| 5503 | case $ETAGS in |
| 5504 | [\\/]* | ?:[\\/]*) |
| 5505 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 5506 | ;; |
| 5507 | *) |
| 5508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5509 | for as_dir in $PATH |
| 5510 | do |
| 5511 | IFS=$as_save_IFS |
| 5512 | test -z "$as_dir" && as_dir=. |
| 5513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5515 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 5516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5517 | break 2 |
| 5518 | fi |
| 5519 | done |
| 5520 | done |
| 5521 | |
| 5522 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" |
| 5523 | ;; |
| 5524 | esac |
| 5525 | fi |
| 5526 | ETAGS=$ac_cv_path_ETAGS |
| 5527 | |
| 5528 | if test -n "$ETAGS"; then |
| 5529 | echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 5530 | echo "${ECHO_T}$ETAGS" >&6 |
| 5531 | else |
| 5532 | echo "$as_me:$LINENO: result: no" >&5 |
| 5533 | echo "${ECHO_T}no" >&6 |
| 5534 | fi |
| 5535 | |
| 5536 | # Extract the first word of "groff", so it can be a program name with args. |
| 5537 | set dummy groff; ac_word=$2 |
| 5538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5540 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 5541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5542 | else |
| 5543 | case $GROFF in |
| 5544 | [\\/]* | ?:[\\/]*) |
| 5545 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 5546 | ;; |
| 5547 | *) |
| 5548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5549 | for as_dir in $PATH |
| 5550 | do |
| 5551 | IFS=$as_save_IFS |
| 5552 | test -z "$as_dir" && as_dir=. |
| 5553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5555 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 5556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5557 | break 2 |
| 5558 | fi |
| 5559 | done |
| 5560 | done |
| 5561 | |
| 5562 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff" |
| 5563 | ;; |
| 5564 | esac |
| 5565 | fi |
| 5566 | GROFF=$ac_cv_path_GROFF |
| 5567 | |
| 5568 | if test -n "$GROFF"; then |
| 5569 | echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 5570 | echo "${ECHO_T}$GROFF" >&6 |
| 5571 | else |
| 5572 | echo "$as_me:$LINENO: result: no" >&5 |
| 5573 | echo "${ECHO_T}no" >&6 |
| 5574 | fi |
| 5575 | |
| 5576 | # Extract the first word of "gzip", so it can be a program name with args. |
| 5577 | set dummy gzip; ac_word=$2 |
| 5578 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5580 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 5581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5582 | else |
| 5583 | case $GZIP in |
| 5584 | [\\/]* | ?:[\\/]*) |
| 5585 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 5586 | ;; |
| 5587 | *) |
| 5588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5589 | for as_dir in $PATH |
| 5590 | do |
| 5591 | IFS=$as_save_IFS |
| 5592 | test -z "$as_dir" && as_dir=. |
| 5593 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5594 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5595 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 5596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5597 | break 2 |
| 5598 | fi |
| 5599 | done |
| 5600 | done |
| 5601 | |
| 5602 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip" |
| 5603 | ;; |
| 5604 | esac |
| 5605 | fi |
| 5606 | GZIP=$ac_cv_path_GZIP |
| 5607 | |
| 5608 | if test -n "$GZIP"; then |
| 5609 | echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 5610 | echo "${ECHO_T}$GZIP" >&6 |
| 5611 | else |
| 5612 | echo "$as_me:$LINENO: result: no" >&5 |
| 5613 | echo "${ECHO_T}no" >&6 |
| 5614 | fi |
| 5615 | |
| 5616 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 5617 | set dummy pod2html; ac_word=$2 |
| 5618 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5620 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 5621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5622 | else |
| 5623 | case $POD2HTML in |
| 5624 | [\\/]* | ?:[\\/]*) |
| 5625 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 5626 | ;; |
| 5627 | *) |
| 5628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5629 | for as_dir in $PATH |
| 5630 | do |
| 5631 | IFS=$as_save_IFS |
| 5632 | test -z "$as_dir" && as_dir=. |
| 5633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5634 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5635 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 5636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5637 | break 2 |
| 5638 | fi |
| 5639 | done |
| 5640 | done |
| 5641 | |
| 5642 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html" |
| 5643 | ;; |
| 5644 | esac |
| 5645 | fi |
| 5646 | POD2HTML=$ac_cv_path_POD2HTML |
| 5647 | |
| 5648 | if test -n "$POD2HTML"; then |
| 5649 | echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 5650 | echo "${ECHO_T}$POD2HTML" >&6 |
| 5651 | else |
| 5652 | echo "$as_me:$LINENO: result: no" >&5 |
| 5653 | echo "${ECHO_T}no" >&6 |
| 5654 | fi |
| 5655 | |
| 5656 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 5657 | set dummy pod2man; ac_word=$2 |
| 5658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5660 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 5661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5662 | else |
| 5663 | case $POD2MAN in |
| 5664 | [\\/]* | ?:[\\/]*) |
| 5665 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 5666 | ;; |
| 5667 | *) |
| 5668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5669 | for as_dir in $PATH |
| 5670 | do |
| 5671 | IFS=$as_save_IFS |
| 5672 | test -z "$as_dir" && as_dir=. |
| 5673 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5675 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 5676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5677 | break 2 |
| 5678 | fi |
| 5679 | done |
| 5680 | done |
| 5681 | |
| 5682 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man" |
| 5683 | ;; |
| 5684 | esac |
| 5685 | fi |
| 5686 | POD2MAN=$ac_cv_path_POD2MAN |
| 5687 | |
| 5688 | if test -n "$POD2MAN"; then |
| 5689 | echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 5690 | echo "${ECHO_T}$POD2MAN" >&6 |
| 5691 | else |
| 5692 | echo "$as_me:$LINENO: result: no" >&5 |
| 5693 | echo "${ECHO_T}no" >&6 |
| 5694 | fi |
| 5695 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5696 | # Extract the first word of "runtest", so it can be a program name with args. |
| 5697 | set dummy runtest; ac_word=$2 |
| 5698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5700 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 5701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5702 | else |
| 5703 | case $RUNTEST in |
| 5704 | [\\/]* | ?:[\\/]*) |
| 5705 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 5706 | ;; |
| 5707 | *) |
| 5708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5709 | for as_dir in $PATH |
| 5710 | do |
| 5711 | IFS=$as_save_IFS |
| 5712 | test -z "$as_dir" && as_dir=. |
| 5713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5714 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5715 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 5716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5717 | break 2 |
| 5718 | fi |
| 5719 | done |
| 5720 | done |
| 5721 | |
| 5722 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" |
| 5723 | ;; |
| 5724 | esac |
| 5725 | fi |
| 5726 | RUNTEST=$ac_cv_path_RUNTEST |
| 5727 | |
| 5728 | if test -n "$RUNTEST"; then |
| 5729 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 5730 | echo "${ECHO_T}$RUNTEST" >&6 |
| 5731 | else |
| 5732 | echo "$as_me:$LINENO: result: no" >&5 |
| 5733 | echo "${ECHO_T}no" >&6 |
| 5734 | fi |
| 5735 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5736 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5737 | no_itcl=true |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5738 | echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 5739 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5740 | |
| 5741 | # Check whether --with-tclinclude or --without-tclinclude was given. |
| 5742 | if test "${with_tclinclude+set}" = set; then |
| 5743 | withval="$with_tclinclude" |
| 5744 | with_tclinclude=${withval} |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5745 | else |
| 5746 | with_tclinclude='' |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5747 | fi; |
| 5748 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 5749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5750 | else |
| 5751 | |
| 5752 | if test x"${with_tclinclude}" != x ; then |
| 5753 | if test -f ${with_tclinclude}/tclsh ; then |
| 5754 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 5755 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 5756 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 5757 | else |
| 5758 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 5759 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 5760 | { (exit 1); exit 1; }; } |
| 5761 | fi |
| 5762 | fi |
| 5763 | |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5764 | if test x"${ac_cv_path_tclsh}" = x ; then |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5765 | echo "$as_me:$LINENO: result: none" >&5 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5766 | echo "${ECHO_T}none" >&6 |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 5767 | for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5768 | do |
| 5769 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5770 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5771 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5773 | if test "${ac_cv_path_TCLSH+set}" = set; then |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5775 | else |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5776 | case $TCLSH in |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5777 | [\\/]* | ?:[\\/]*) |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5778 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5779 | ;; |
| 5780 | *) |
| 5781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5782 | for as_dir in $PATH |
| 5783 | do |
| 5784 | IFS=$as_save_IFS |
| 5785 | test -z "$as_dir" && as_dir=. |
| 5786 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5787 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5788 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5790 | break 2 |
| 5791 | fi |
| 5792 | done |
| 5793 | done |
| 5794 | |
| 5795 | ;; |
| 5796 | esac |
| 5797 | fi |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5798 | TCLSH=$ac_cv_path_TCLSH |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5799 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5800 | if test -n "$TCLSH"; then |
| 5801 | echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 5802 | echo "${ECHO_T}$TCLSH" >&6 |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5803 | else |
| 5804 | echo "$as_me:$LINENO: result: no" >&5 |
| 5805 | echo "${ECHO_T}no" >&6 |
| 5806 | fi |
| 5807 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5808 | test -n "$TCLSH" && break |
| 5809 | done |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5810 | |
Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5811 | if test x"${TCLSH}" = x ; then |
| 5812 | ac_cv_path_tclsh=''; |
| 5813 | else |
| 5814 | ac_cv_path_tclsh="${TCLSH}"; |
| 5815 | fi |
| 5816 | else |
| 5817 | echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 5818 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6 |
| 5819 | TCLSH="${ac_cv_path_tclsh}" |
| 5820 | |
| 5821 | fi |
| 5822 | |
| 5823 | fi |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5824 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5825 | # Extract the first word of "zip", so it can be a program name with args. |
| 5826 | set dummy zip; ac_word=$2 |
| 5827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5829 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 5830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5831 | else |
| 5832 | case $ZIP in |
| 5833 | [\\/]* | ?:[\\/]*) |
| 5834 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 5835 | ;; |
| 5836 | *) |
| 5837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5838 | for as_dir in $PATH |
| 5839 | do |
| 5840 | IFS=$as_save_IFS |
| 5841 | test -z "$as_dir" && as_dir=. |
| 5842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5844 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 5845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5846 | break 2 |
| 5847 | fi |
| 5848 | done |
| 5849 | done |
| 5850 | |
| 5851 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip" |
| 5852 | ;; |
| 5853 | esac |
| 5854 | fi |
| 5855 | ZIP=$ac_cv_path_ZIP |
| 5856 | |
| 5857 | if test -n "$ZIP"; then |
| 5858 | echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 5859 | echo "${ECHO_T}$ZIP" >&6 |
| 5860 | else |
| 5861 | echo "$as_me:$LINENO: result: no" >&5 |
| 5862 | echo "${ECHO_T}no" >&6 |
| 5863 | fi |
| 5864 | |
| 5865 | |
| 5866 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 5867 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 |
| 5868 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 5869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5870 | else |
| 5871 | ac_ext=c |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5872 | ac_cpp='$CPP $CPPFLAGS' |
| 5873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5876 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5877 | oldcflags="$CFLAGS" |
| 5878 | CFLAGS="$CFLAGS -Wl,-R." |
| 5879 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5880 | /* confdefs.h. */ |
| 5881 | _ACEOF |
| 5882 | cat confdefs.h >>conftest.$ac_ext |
| 5883 | cat >>conftest.$ac_ext <<_ACEOF |
| 5884 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5885 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5886 | int |
| 5887 | main () |
| 5888 | { |
| 5889 | int main() { return 0; } |
| 5890 | ; |
| 5891 | return 0; |
| 5892 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5893 | _ACEOF |
| 5894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5896 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5897 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5899 | rm -f conftest.er1 |
| 5900 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5902 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5903 | { ac_try='test -z "$ac_c_werror_flag" |
| 5904 | || test ! -s conftest.err' |
| 5905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5906 | (eval $ac_try) 2>&5 |
| 5907 | ac_status=$? |
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5909 | (exit $ac_status); }; } && |
| 5910 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5912 | (eval $ac_try) 2>&5 |
| 5913 | ac_status=$? |
| 5914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5915 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5916 | llvm_cv_link_use_r=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5917 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5918 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5920 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5921 | llvm_cv_link_use_r=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5922 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5923 | rm -f conftest.err conftest.$ac_objext \ |
| 5924 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5925 | CFLAGS="$oldcflags" |
| 5926 | ac_ext=c |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5927 | ac_cpp='$CPP $CPPFLAGS' |
| 5928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5931 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5932 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5933 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5934 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 5935 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 |
| 5936 | if test "$llvm_cv_link_use_r" = yes ; then |
| 5937 | |
| 5938 | cat >>confdefs.h <<\_ACEOF |
| 5939 | #define HAVE_LINK_R 1 |
| 5940 | _ACEOF |
| 5941 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5942 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5943 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5944 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5945 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5946 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5947 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5948 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 5949 | if test "${ac_cv_c_const+set}" = set; then |
| 5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5951 | else |
| 5952 | cat >conftest.$ac_ext <<_ACEOF |
| 5953 | /* confdefs.h. */ |
| 5954 | _ACEOF |
| 5955 | cat confdefs.h >>conftest.$ac_ext |
| 5956 | cat >>conftest.$ac_ext <<_ACEOF |
| 5957 | /* end confdefs.h. */ |
| 5958 | |
| 5959 | int |
| 5960 | main () |
| 5961 | { |
| 5962 | /* FIXME: Include the comments suggested by Paul. */ |
| 5963 | #ifndef __cplusplus |
| 5964 | /* Ultrix mips cc rejects this. */ |
| 5965 | typedef int charset[2]; |
| 5966 | const charset x; |
| 5967 | /* SunOS 4.1.1 cc rejects this. */ |
| 5968 | char const *const *ccp; |
| 5969 | char **p; |
| 5970 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5971 | struct point {int x, y;}; |
| 5972 | static struct point const zero = {0,0}; |
| 5973 | /* AIX XL C 1.02.0.0 rejects this. |
| 5974 | It does not let you subtract one const X* pointer from another in |
| 5975 | an arm of an if-expression whose if-part is not a constant |
| 5976 | expression */ |
| 5977 | const char *g = "string"; |
| 5978 | ccp = &g + (g ? g-g : 0); |
| 5979 | /* HPUX 7.0 cc rejects these. */ |
| 5980 | ++ccp; |
| 5981 | p = (char**) ccp; |
| 5982 | ccp = (char const *const *) p; |
| 5983 | { /* SCO 3.2v4 cc rejects this. */ |
| 5984 | char *t; |
| 5985 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5986 | |
| 5987 | *t++ = 0; |
| 5988 | } |
| 5989 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5990 | int x[] = {25, 17}; |
| 5991 | const int *foo = &x[0]; |
| 5992 | ++foo; |
| 5993 | } |
| 5994 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5995 | typedef const int *iptr; |
| 5996 | iptr p = 0; |
| 5997 | ++p; |
| 5998 | } |
| 5999 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6000 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6001 | struct s { int j; const int *ap[3]; }; |
| 6002 | struct s *b; b->j = 5; |
| 6003 | } |
| 6004 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6005 | const int foo = 10; |
| 6006 | } |
| 6007 | #endif |
| 6008 | |
| 6009 | ; |
| 6010 | return 0; |
| 6011 | } |
| 6012 | _ACEOF |
| 6013 | rm -f conftest.$ac_objext |
| 6014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6015 | (eval $ac_compile) 2>conftest.er1 |
| 6016 | ac_status=$? |
| 6017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6018 | rm -f conftest.er1 |
| 6019 | cat conftest.err >&5 |
| 6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6021 | (exit $ac_status); } && |
| 6022 | { ac_try='test -z "$ac_c_werror_flag" |
| 6023 | || test ! -s conftest.err' |
| 6024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6025 | (eval $ac_try) 2>&5 |
| 6026 | ac_status=$? |
| 6027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6028 | (exit $ac_status); }; } && |
| 6029 | { ac_try='test -s conftest.$ac_objext' |
| 6030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6031 | (eval $ac_try) 2>&5 |
| 6032 | ac_status=$? |
| 6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6034 | (exit $ac_status); }; }; then |
| 6035 | ac_cv_c_const=yes |
| 6036 | else |
| 6037 | echo "$as_me: failed program was:" >&5 |
| 6038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6039 | |
| 6040 | ac_cv_c_const=no |
| 6041 | fi |
| 6042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6043 | fi |
| 6044 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 6045 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 6046 | if test $ac_cv_c_const = no; then |
| 6047 | |
| 6048 | cat >>confdefs.h <<\_ACEOF |
| 6049 | #define const |
| 6050 | _ACEOF |
| 6051 | |
| 6052 | fi |
| 6053 | |
| 6054 | |
| 6055 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 6056 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 6057 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 6058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6059 | else |
| 6060 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 6061 | then ac_cv_prog_egrep='grep -E' |
| 6062 | else ac_cv_prog_egrep='egrep' |
| 6063 | fi |
| 6064 | fi |
| 6065 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 6066 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 6067 | EGREP=$ac_cv_prog_egrep |
| 6068 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6069 | |
| 6070 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 6071 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 6072 | if test "${ac_cv_header_stdc+set}" = set; then |
| 6073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6074 | else |
| 6075 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6076 | /* confdefs.h. */ |
| 6077 | _ACEOF |
| 6078 | cat confdefs.h >>conftest.$ac_ext |
| 6079 | cat >>conftest.$ac_ext <<_ACEOF |
| 6080 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6081 | #include <stdlib.h> |
| 6082 | #include <stdarg.h> |
| 6083 | #include <string.h> |
| 6084 | #include <float.h> |
| 6085 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6086 | int |
| 6087 | main () |
| 6088 | { |
| 6089 | |
| 6090 | ; |
| 6091 | return 0; |
| 6092 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6093 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6094 | rm -f conftest.$ac_objext |
| 6095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6096 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6097 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6099 | rm -f conftest.er1 |
| 6100 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6102 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6103 | { ac_try='test -z "$ac_c_werror_flag" |
| 6104 | || test ! -s conftest.err' |
| 6105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6106 | (eval $ac_try) 2>&5 |
| 6107 | ac_status=$? |
| 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6109 | (exit $ac_status); }; } && |
| 6110 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6112 | (eval $ac_try) 2>&5 |
| 6113 | ac_status=$? |
| 6114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6115 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6116 | ac_cv_header_stdc=yes |
| 6117 | else |
| 6118 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6120 | |
| 6121 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6122 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6124 | |
| 6125 | if test $ac_cv_header_stdc = yes; then |
| 6126 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6127 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6128 | /* confdefs.h. */ |
| 6129 | _ACEOF |
| 6130 | cat confdefs.h >>conftest.$ac_ext |
| 6131 | cat >>conftest.$ac_ext <<_ACEOF |
| 6132 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6133 | #include <string.h> |
| 6134 | |
| 6135 | _ACEOF |
| 6136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6137 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6138 | : |
| 6139 | else |
| 6140 | ac_cv_header_stdc=no |
| 6141 | fi |
| 6142 | rm -f conftest* |
| 6143 | |
| 6144 | fi |
| 6145 | |
| 6146 | if test $ac_cv_header_stdc = yes; then |
| 6147 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6148 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6149 | /* confdefs.h. */ |
| 6150 | _ACEOF |
| 6151 | cat confdefs.h >>conftest.$ac_ext |
| 6152 | cat >>conftest.$ac_ext <<_ACEOF |
| 6153 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6154 | #include <stdlib.h> |
| 6155 | |
| 6156 | _ACEOF |
| 6157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6158 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6159 | : |
| 6160 | else |
| 6161 | ac_cv_header_stdc=no |
| 6162 | fi |
| 6163 | rm -f conftest* |
| 6164 | |
| 6165 | fi |
| 6166 | |
| 6167 | if test $ac_cv_header_stdc = yes; then |
| 6168 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6169 | if test "$cross_compiling" = yes; then |
| 6170 | : |
| 6171 | else |
| 6172 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6173 | /* confdefs.h. */ |
| 6174 | _ACEOF |
| 6175 | cat confdefs.h >>conftest.$ac_ext |
| 6176 | cat >>conftest.$ac_ext <<_ACEOF |
| 6177 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6178 | #include <ctype.h> |
| 6179 | #if ((' ' & 0x0FF) == 0x020) |
| 6180 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6181 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6182 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6183 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6184 | (('a' <= (c) && (c) <= 'i') \ |
| 6185 | || ('j' <= (c) && (c) <= 'r') \ |
| 6186 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6187 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6188 | #endif |
| 6189 | |
| 6190 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6191 | int |
| 6192 | main () |
| 6193 | { |
| 6194 | int i; |
| 6195 | for (i = 0; i < 256; i++) |
| 6196 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6197 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6198 | exit(2); |
| 6199 | exit (0); |
| 6200 | } |
| 6201 | _ACEOF |
| 6202 | rm -f conftest$ac_exeext |
| 6203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6204 | (eval $ac_link) 2>&5 |
| 6205 | ac_status=$? |
| 6206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6209 | (eval $ac_try) 2>&5 |
| 6210 | ac_status=$? |
| 6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6212 | (exit $ac_status); }; }; then |
| 6213 | : |
| 6214 | else |
| 6215 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6216 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6218 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6219 | ( exit $ac_status ) |
| 6220 | ac_cv_header_stdc=no |
| 6221 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6222 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6223 | fi |
| 6224 | fi |
| 6225 | fi |
| 6226 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6227 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6228 | if test $ac_cv_header_stdc = yes; then |
| 6229 | |
| 6230 | cat >>confdefs.h <<\_ACEOF |
| 6231 | #define STDC_HEADERS 1 |
| 6232 | _ACEOF |
| 6233 | |
| 6234 | fi |
| 6235 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6236 | |
| 6237 | |
| 6238 | |
| 6239 | |
| 6240 | |
| 6241 | ac_header_dirent=no |
| 6242 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 6243 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6244 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 6245 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 6246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6248 | else |
| 6249 | cat >conftest.$ac_ext <<_ACEOF |
| 6250 | /* confdefs.h. */ |
| 6251 | _ACEOF |
| 6252 | cat confdefs.h >>conftest.$ac_ext |
| 6253 | cat >>conftest.$ac_ext <<_ACEOF |
| 6254 | /* end confdefs.h. */ |
| 6255 | #include <sys/types.h> |
| 6256 | #include <$ac_hdr> |
| 6257 | |
| 6258 | int |
| 6259 | main () |
| 6260 | { |
| 6261 | if ((DIR *) 0) |
| 6262 | return 0; |
| 6263 | ; |
| 6264 | return 0; |
| 6265 | } |
| 6266 | _ACEOF |
| 6267 | rm -f conftest.$ac_objext |
| 6268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6269 | (eval $ac_compile) 2>conftest.er1 |
| 6270 | ac_status=$? |
| 6271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6272 | rm -f conftest.er1 |
| 6273 | cat conftest.err >&5 |
| 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6275 | (exit $ac_status); } && |
| 6276 | { ac_try='test -z "$ac_c_werror_flag" |
| 6277 | || test ! -s conftest.err' |
| 6278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6279 | (eval $ac_try) 2>&5 |
| 6280 | ac_status=$? |
| 6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6282 | (exit $ac_status); }; } && |
| 6283 | { ac_try='test -s conftest.$ac_objext' |
| 6284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6285 | (eval $ac_try) 2>&5 |
| 6286 | ac_status=$? |
| 6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6288 | (exit $ac_status); }; }; then |
| 6289 | eval "$as_ac_Header=yes" |
| 6290 | else |
| 6291 | echo "$as_me: failed program was:" >&5 |
| 6292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6293 | |
| 6294 | eval "$as_ac_Header=no" |
| 6295 | fi |
| 6296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6297 | fi |
| 6298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6299 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6300 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6301 | cat >>confdefs.h <<_ACEOF |
| 6302 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 6303 | _ACEOF |
| 6304 | |
| 6305 | ac_header_dirent=$ac_hdr; break |
| 6306 | fi |
| 6307 | |
| 6308 | done |
| 6309 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6310 | if test $ac_header_dirent = dirent.h; then |
| 6311 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6312 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6313 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6315 | else |
| 6316 | ac_func_search_save_LIBS=$LIBS |
| 6317 | ac_cv_search_opendir=no |
| 6318 | cat >conftest.$ac_ext <<_ACEOF |
| 6319 | /* confdefs.h. */ |
| 6320 | _ACEOF |
| 6321 | cat confdefs.h >>conftest.$ac_ext |
| 6322 | cat >>conftest.$ac_ext <<_ACEOF |
| 6323 | /* end confdefs.h. */ |
| 6324 | |
| 6325 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6326 | #ifdef __cplusplus |
| 6327 | extern "C" |
| 6328 | #endif |
| 6329 | /* We use char because int might match the return type of a gcc2 |
| 6330 | builtin and then its argument prototype would still apply. */ |
| 6331 | char opendir (); |
| 6332 | int |
| 6333 | main () |
| 6334 | { |
| 6335 | opendir (); |
| 6336 | ; |
| 6337 | return 0; |
| 6338 | } |
| 6339 | _ACEOF |
| 6340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6342 | (eval $ac_link) 2>conftest.er1 |
| 6343 | ac_status=$? |
| 6344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6345 | rm -f conftest.er1 |
| 6346 | cat conftest.err >&5 |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); } && |
| 6349 | { ac_try='test -z "$ac_c_werror_flag" |
| 6350 | || test ! -s conftest.err' |
| 6351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6352 | (eval $ac_try) 2>&5 |
| 6353 | ac_status=$? |
| 6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6355 | (exit $ac_status); }; } && |
| 6356 | { ac_try='test -s conftest$ac_exeext' |
| 6357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6358 | (eval $ac_try) 2>&5 |
| 6359 | ac_status=$? |
| 6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6361 | (exit $ac_status); }; }; then |
| 6362 | ac_cv_search_opendir="none required" |
| 6363 | else |
| 6364 | echo "$as_me: failed program was:" >&5 |
| 6365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6366 | |
| 6367 | fi |
| 6368 | rm -f conftest.err conftest.$ac_objext \ |
| 6369 | conftest$ac_exeext conftest.$ac_ext |
| 6370 | if test "$ac_cv_search_opendir" = no; then |
| 6371 | for ac_lib in dir; do |
| 6372 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6373 | cat >conftest.$ac_ext <<_ACEOF |
| 6374 | /* confdefs.h. */ |
| 6375 | _ACEOF |
| 6376 | cat confdefs.h >>conftest.$ac_ext |
| 6377 | cat >>conftest.$ac_ext <<_ACEOF |
| 6378 | /* end confdefs.h. */ |
| 6379 | |
| 6380 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6381 | #ifdef __cplusplus |
| 6382 | extern "C" |
| 6383 | #endif |
| 6384 | /* We use char because int might match the return type of a gcc2 |
| 6385 | builtin and then its argument prototype would still apply. */ |
| 6386 | char opendir (); |
| 6387 | int |
| 6388 | main () |
| 6389 | { |
| 6390 | opendir (); |
| 6391 | ; |
| 6392 | return 0; |
| 6393 | } |
| 6394 | _ACEOF |
| 6395 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6397 | (eval $ac_link) 2>conftest.er1 |
| 6398 | ac_status=$? |
| 6399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6400 | rm -f conftest.er1 |
| 6401 | cat conftest.err >&5 |
| 6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6403 | (exit $ac_status); } && |
| 6404 | { ac_try='test -z "$ac_c_werror_flag" |
| 6405 | || test ! -s conftest.err' |
| 6406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6407 | (eval $ac_try) 2>&5 |
| 6408 | ac_status=$? |
| 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6410 | (exit $ac_status); }; } && |
| 6411 | { ac_try='test -s conftest$ac_exeext' |
| 6412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6413 | (eval $ac_try) 2>&5 |
| 6414 | ac_status=$? |
| 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6416 | (exit $ac_status); }; }; then |
| 6417 | ac_cv_search_opendir="-l$ac_lib" |
| 6418 | break |
| 6419 | else |
| 6420 | echo "$as_me: failed program was:" >&5 |
| 6421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6422 | |
| 6423 | fi |
| 6424 | rm -f conftest.err conftest.$ac_objext \ |
| 6425 | conftest$ac_exeext conftest.$ac_ext |
| 6426 | done |
| 6427 | fi |
| 6428 | LIBS=$ac_func_search_save_LIBS |
| 6429 | fi |
| 6430 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6431 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6432 | if test "$ac_cv_search_opendir" != no; then |
| 6433 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6434 | |
| 6435 | fi |
| 6436 | |
| 6437 | else |
| 6438 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6439 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6440 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6442 | else |
| 6443 | ac_func_search_save_LIBS=$LIBS |
| 6444 | ac_cv_search_opendir=no |
| 6445 | cat >conftest.$ac_ext <<_ACEOF |
| 6446 | /* confdefs.h. */ |
| 6447 | _ACEOF |
| 6448 | cat confdefs.h >>conftest.$ac_ext |
| 6449 | cat >>conftest.$ac_ext <<_ACEOF |
| 6450 | /* end confdefs.h. */ |
| 6451 | |
| 6452 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6453 | #ifdef __cplusplus |
| 6454 | extern "C" |
| 6455 | #endif |
| 6456 | /* We use char because int might match the return type of a gcc2 |
| 6457 | builtin and then its argument prototype would still apply. */ |
| 6458 | char opendir (); |
| 6459 | int |
| 6460 | main () |
| 6461 | { |
| 6462 | opendir (); |
| 6463 | ; |
| 6464 | return 0; |
| 6465 | } |
| 6466 | _ACEOF |
| 6467 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6469 | (eval $ac_link) 2>conftest.er1 |
| 6470 | ac_status=$? |
| 6471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6472 | rm -f conftest.er1 |
| 6473 | cat conftest.err >&5 |
| 6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6475 | (exit $ac_status); } && |
| 6476 | { ac_try='test -z "$ac_c_werror_flag" |
| 6477 | || test ! -s conftest.err' |
| 6478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6479 | (eval $ac_try) 2>&5 |
| 6480 | ac_status=$? |
| 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6482 | (exit $ac_status); }; } && |
| 6483 | { ac_try='test -s conftest$ac_exeext' |
| 6484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6485 | (eval $ac_try) 2>&5 |
| 6486 | ac_status=$? |
| 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6488 | (exit $ac_status); }; }; then |
| 6489 | ac_cv_search_opendir="none required" |
| 6490 | else |
| 6491 | echo "$as_me: failed program was:" >&5 |
| 6492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6493 | |
| 6494 | fi |
| 6495 | rm -f conftest.err conftest.$ac_objext \ |
| 6496 | conftest$ac_exeext conftest.$ac_ext |
| 6497 | if test "$ac_cv_search_opendir" = no; then |
| 6498 | for ac_lib in x; do |
| 6499 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6500 | cat >conftest.$ac_ext <<_ACEOF |
| 6501 | /* confdefs.h. */ |
| 6502 | _ACEOF |
| 6503 | cat confdefs.h >>conftest.$ac_ext |
| 6504 | cat >>conftest.$ac_ext <<_ACEOF |
| 6505 | /* end confdefs.h. */ |
| 6506 | |
| 6507 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6508 | #ifdef __cplusplus |
| 6509 | extern "C" |
| 6510 | #endif |
| 6511 | /* We use char because int might match the return type of a gcc2 |
| 6512 | builtin and then its argument prototype would still apply. */ |
| 6513 | char opendir (); |
| 6514 | int |
| 6515 | main () |
| 6516 | { |
| 6517 | opendir (); |
| 6518 | ; |
| 6519 | return 0; |
| 6520 | } |
| 6521 | _ACEOF |
| 6522 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6524 | (eval $ac_link) 2>conftest.er1 |
| 6525 | ac_status=$? |
| 6526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6527 | rm -f conftest.er1 |
| 6528 | cat conftest.err >&5 |
| 6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6530 | (exit $ac_status); } && |
| 6531 | { ac_try='test -z "$ac_c_werror_flag" |
| 6532 | || test ! -s conftest.err' |
| 6533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6534 | (eval $ac_try) 2>&5 |
| 6535 | ac_status=$? |
| 6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6537 | (exit $ac_status); }; } && |
| 6538 | { ac_try='test -s conftest$ac_exeext' |
| 6539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6540 | (eval $ac_try) 2>&5 |
| 6541 | ac_status=$? |
| 6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6543 | (exit $ac_status); }; }; then |
| 6544 | ac_cv_search_opendir="-l$ac_lib" |
| 6545 | break |
| 6546 | else |
| 6547 | echo "$as_me: failed program was:" >&5 |
| 6548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6549 | |
| 6550 | fi |
| 6551 | rm -f conftest.err conftest.$ac_objext \ |
| 6552 | conftest$ac_exeext conftest.$ac_ext |
| 6553 | done |
| 6554 | fi |
| 6555 | LIBS=$ac_func_search_save_LIBS |
| 6556 | fi |
| 6557 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6558 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6559 | if test "$ac_cv_search_opendir" != no; then |
| 6560 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6561 | |
| 6562 | fi |
| 6563 | |
| 6564 | fi |
| 6565 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6566 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6567 | |
| 6568 | |
| 6569 | |
| 6570 | |
| 6571 | |
| 6572 | |
| 6573 | |
| 6574 | |
| 6575 | |
| 6576 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6577 | inttypes.h stdint.h unistd.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6578 | do |
| 6579 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6580 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6581 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6584 | else |
| 6585 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6586 | /* confdefs.h. */ |
| 6587 | _ACEOF |
| 6588 | cat confdefs.h >>conftest.$ac_ext |
| 6589 | cat >>conftest.$ac_ext <<_ACEOF |
| 6590 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6591 | $ac_includes_default |
| 6592 | |
| 6593 | #include <$ac_header> |
| 6594 | _ACEOF |
| 6595 | rm -f conftest.$ac_objext |
| 6596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6597 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6598 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6600 | rm -f conftest.er1 |
| 6601 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6603 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6604 | { ac_try='test -z "$ac_c_werror_flag" |
| 6605 | || test ! -s conftest.err' |
| 6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6607 | (eval $ac_try) 2>&5 |
| 6608 | ac_status=$? |
| 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6610 | (exit $ac_status); }; } && |
| 6611 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6613 | (eval $ac_try) 2>&5 |
| 6614 | ac_status=$? |
| 6615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6616 | (exit $ac_status); }; }; then |
| 6617 | eval "$as_ac_Header=yes" |
| 6618 | else |
| 6619 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6621 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6622 | eval "$as_ac_Header=no" |
| 6623 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6625 | fi |
| 6626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6627 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6629 | cat >>confdefs.h <<_ACEOF |
| 6630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6631 | _ACEOF |
| 6632 | |
| 6633 | fi |
| 6634 | |
| 6635 | done |
| 6636 | |
| 6637 | |
| 6638 | |
| 6639 | for ac_header in dlfcn.h |
| 6640 | do |
| 6641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6643 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6645 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6647 | fi |
| 6648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6650 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6651 | # Is the header compilable? |
| 6652 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6653 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6654 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6655 | /* confdefs.h. */ |
| 6656 | _ACEOF |
| 6657 | cat confdefs.h >>conftest.$ac_ext |
| 6658 | cat >>conftest.$ac_ext <<_ACEOF |
| 6659 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6660 | $ac_includes_default |
| 6661 | #include <$ac_header> |
| 6662 | _ACEOF |
| 6663 | rm -f conftest.$ac_objext |
| 6664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6665 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6666 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6668 | rm -f conftest.er1 |
| 6669 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6671 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6672 | { ac_try='test -z "$ac_c_werror_flag" |
| 6673 | || test ! -s conftest.err' |
| 6674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6675 | (eval $ac_try) 2>&5 |
| 6676 | ac_status=$? |
| 6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6678 | (exit $ac_status); }; } && |
| 6679 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6681 | (eval $ac_try) 2>&5 |
| 6682 | ac_status=$? |
| 6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6684 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6685 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6686 | else |
| 6687 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6689 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6690 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6691 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6693 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6694 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6695 | |
| 6696 | # Is the header present? |
| 6697 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6698 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6699 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6700 | /* confdefs.h. */ |
| 6701 | _ACEOF |
| 6702 | cat confdefs.h >>conftest.$ac_ext |
| 6703 | cat >>conftest.$ac_ext <<_ACEOF |
| 6704 | /* end confdefs.h. */ |
| 6705 | #include <$ac_header> |
| 6706 | _ACEOF |
| 6707 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6708 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6709 | ac_status=$? |
| 6710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6711 | rm -f conftest.er1 |
| 6712 | cat conftest.err >&5 |
| 6713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6714 | (exit $ac_status); } >/dev/null; then |
| 6715 | if test -s conftest.err; then |
| 6716 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6717 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6718 | else |
| 6719 | ac_cpp_err= |
| 6720 | fi |
| 6721 | else |
| 6722 | ac_cpp_err=yes |
| 6723 | fi |
| 6724 | if test -z "$ac_cpp_err"; then |
| 6725 | ac_header_preproc=yes |
| 6726 | else |
| 6727 | echo "$as_me: failed program was:" >&5 |
| 6728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6729 | |
| 6730 | ac_header_preproc=no |
| 6731 | fi |
| 6732 | rm -f conftest.err conftest.$ac_ext |
| 6733 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6734 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6735 | |
| 6736 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6737 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6738 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6739 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6740 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6741 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6742 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6743 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6744 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6745 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6746 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6747 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6748 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6749 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6750 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6751 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6752 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6753 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6754 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6755 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6756 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6757 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6758 | ( |
| 6759 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6760 | ## ----------------------------------- ## |
| 6761 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 6762 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6763 | _ASBOX |
| 6764 | ) | |
| 6765 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6766 | ;; |
| 6767 | esac |
| 6768 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6769 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6770 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6772 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6773 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6774 | fi |
| 6775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6776 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6777 | |
| 6778 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6779 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6780 | cat >>confdefs.h <<_ACEOF |
| 6781 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6782 | _ACEOF |
| 6783 | |
| 6784 | fi |
| 6785 | |
| 6786 | done |
| 6787 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6788 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. |
| 6789 | if test "${enable_ltdl_install+set}" = set; then |
| 6790 | enableval="$enable_ltdl_install" |
| 6791 | |
| 6792 | fi; |
| 6793 | |
| 6794 | |
| 6795 | |
| 6796 | if test x"${enable_ltdl_install-no}" != xno; then |
| 6797 | INSTALL_LTDL_TRUE= |
| 6798 | INSTALL_LTDL_FALSE='#' |
| 6799 | else |
| 6800 | INSTALL_LTDL_TRUE='#' |
| 6801 | INSTALL_LTDL_FALSE= |
| 6802 | fi |
| 6803 | |
| 6804 | |
| 6805 | |
| 6806 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 6807 | CONVENIENCE_LTDL_TRUE= |
| 6808 | CONVENIENCE_LTDL_FALSE='#' |
| 6809 | else |
| 6810 | CONVENIENCE_LTDL_TRUE='#' |
| 6811 | CONVENIENCE_LTDL_FALSE= |
| 6812 | fi |
| 6813 | |
| 6814 | |
| 6815 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6816 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6817 | library_names_spec= |
| 6818 | libname_spec='lib$name' |
| 6819 | soname_spec= |
| 6820 | shrext_cmds=".so" |
| 6821 | postinstall_cmds= |
| 6822 | postuninstall_cmds= |
| 6823 | finish_cmds= |
| 6824 | finish_eval= |
| 6825 | shlibpath_var= |
| 6826 | shlibpath_overrides_runpath=unknown |
| 6827 | version_type=none |
| 6828 | dynamic_linker="$host_os ld.so" |
| 6829 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 6830 | if test "$GCC" = yes; then |
| 6831 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6832 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 6833 | # if the path contains ";" then we assume it to be the separator |
| 6834 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 6835 | # assumed that no part of a normal pathname contains ";" but that should |
| 6836 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 6837 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6838 | else |
| 6839 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6840 | fi |
| 6841 | else |
| 6842 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6843 | fi |
| 6844 | need_lib_prefix=unknown |
| 6845 | hardcode_into_libs=no |
| 6846 | |
| 6847 | # when you set need_version to no, make sure it does not cause -set_version |
| 6848 | # flags to be left without arguments |
| 6849 | need_version=unknown |
| 6850 | |
| 6851 | case $host_os in |
| 6852 | aix3*) |
| 6853 | version_type=linux |
| 6854 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 6855 | shlibpath_var=LIBPATH |
| 6856 | |
| 6857 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 6858 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6859 | ;; |
| 6860 | |
| 6861 | aix4* | aix5*) |
| 6862 | version_type=linux |
| 6863 | need_lib_prefix=no |
| 6864 | need_version=no |
| 6865 | hardcode_into_libs=yes |
| 6866 | if test "$host_cpu" = ia64; then |
| 6867 | # AIX 5 supports IA64 |
| 6868 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 6869 | shlibpath_var=LD_LIBRARY_PATH |
| 6870 | else |
| 6871 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6872 | # for dependence libraries. The import file would start with |
| 6873 | # the line `#! .'. This would cause the generated library to |
| 6874 | # depend on `.', always an invalid library. This was fixed in |
| 6875 | # development snapshots of GCC prior to 3.0. |
| 6876 | case $host_os in |
| 6877 | aix4 | aix4.[01] | aix4.[01].*) |
| 6878 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6879 | echo ' yes ' |
| 6880 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6881 | : |
| 6882 | else |
| 6883 | can_build_shared=no |
| 6884 | fi |
| 6885 | ;; |
| 6886 | esac |
| 6887 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 6888 | # soname into executable. Probably we can add versioning support to |
| 6889 | # collect2, so additional links can be useful in future. |
| 6890 | if test "$aix_use_runtimelinking" = yes; then |
| 6891 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6892 | # instead of lib<name>.a to let people know that these are not |
| 6893 | # typical AIX shared libraries. |
| 6894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6895 | else |
| 6896 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6897 | # and later when we are not doing run time linking. |
| 6898 | library_names_spec='${libname}${release}.a $libname.a' |
| 6899 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6900 | fi |
| 6901 | shlibpath_var=LIBPATH |
| 6902 | fi |
| 6903 | ;; |
| 6904 | |
| 6905 | amigaos*) |
| 6906 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6907 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6908 | 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' |
| 6909 | ;; |
| 6910 | |
| 6911 | beos*) |
| 6912 | library_names_spec='${libname}${shared_ext}' |
| 6913 | dynamic_linker="$host_os ld.so" |
| 6914 | shlibpath_var=LIBRARY_PATH |
| 6915 | ;; |
| 6916 | |
| 6917 | bsdi[45]*) |
| 6918 | version_type=linux |
| 6919 | need_version=no |
| 6920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6921 | soname_spec='${libname}${release}${shared_ext}$major' |
| 6922 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6923 | shlibpath_var=LD_LIBRARY_PATH |
| 6924 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6925 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6926 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6927 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6928 | # libtool to hard-code these into programs |
| 6929 | ;; |
| 6930 | |
| 6931 | cygwin* | mingw* | pw32*) |
| 6932 | version_type=windows |
| 6933 | shrext_cmds=".dll" |
| 6934 | need_version=no |
| 6935 | need_lib_prefix=no |
| 6936 | |
| 6937 | case $GCC,$host_os in |
| 6938 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 6939 | library_names_spec='$libname.dll.a' |
| 6940 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 6941 | postinstall_cmds='base_file=`basename \${file}`~ |
| 6942 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 6943 | dldir=$destdir/`dirname \$dlpath`~ |
| 6944 | test -d \$dldir || mkdir -p \$dldir~ |
| 6945 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 6946 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6947 | dlpath=$dir/\$dldll~ |
| 6948 | $rm \$dlpath' |
| 6949 | shlibpath_overrides_runpath=yes |
| 6950 | |
| 6951 | case $host_os in |
| 6952 | cygwin*) |
| 6953 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 6954 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6955 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 6956 | ;; |
| 6957 | mingw*) |
| 6958 | # MinGW DLLs use traditional 'lib' prefix |
| 6959 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6960 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6961 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 6962 | # It is most probably a Windows format PATH printed by |
| 6963 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 6964 | # path with ; separators, and with drive letters. We can handle the |
| 6965 | # drive letters (cygwin fileutils understands them), so leave them, |
| 6966 | # especially as we might pass files found there to a mingw objdump, |
| 6967 | # which wouldn't understand a cygwinified path. Ahh. |
| 6968 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6969 | else |
| 6970 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6971 | fi |
| 6972 | ;; |
| 6973 | pw32*) |
| 6974 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 6975 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 6976 | ;; |
| 6977 | esac |
| 6978 | ;; |
| 6979 | |
| 6980 | *) |
| 6981 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 6982 | ;; |
| 6983 | esac |
| 6984 | dynamic_linker='Win32 ld.exe' |
| 6985 | # FIXME: first we should search . and the directory the executable is in |
| 6986 | shlibpath_var=PATH |
| 6987 | ;; |
| 6988 | |
| 6989 | darwin* | rhapsody*) |
| 6990 | dynamic_linker="$host_os dyld" |
| 6991 | version_type=darwin |
| 6992 | need_lib_prefix=no |
| 6993 | need_version=no |
| 6994 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 6995 | soname_spec='${libname}${release}${major}$shared_ext' |
| 6996 | shlibpath_overrides_runpath=yes |
| 6997 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6998 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 6999 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7000 | if test "$GCC" = yes; then |
| 7001 | 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"` |
| 7002 | else |
| 7003 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 7004 | fi |
| 7005 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7006 | ;; |
| 7007 | |
| 7008 | dgux*) |
| 7009 | version_type=linux |
| 7010 | need_lib_prefix=no |
| 7011 | need_version=no |
| 7012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7013 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7014 | shlibpath_var=LD_LIBRARY_PATH |
| 7015 | ;; |
| 7016 | |
| 7017 | freebsd1*) |
| 7018 | dynamic_linker=no |
| 7019 | ;; |
| 7020 | |
| 7021 | kfreebsd*-gnu) |
| 7022 | version_type=linux |
| 7023 | need_lib_prefix=no |
| 7024 | need_version=no |
| 7025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7026 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7027 | shlibpath_var=LD_LIBRARY_PATH |
| 7028 | shlibpath_overrides_runpath=no |
| 7029 | hardcode_into_libs=yes |
| 7030 | dynamic_linker='GNU ld.so' |
| 7031 | ;; |
| 7032 | |
| 7033 | freebsd*) |
| 7034 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7035 | version_type=freebsd-$objformat |
| 7036 | case $version_type in |
| 7037 | freebsd-elf*) |
| 7038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 7039 | need_version=no |
| 7040 | need_lib_prefix=no |
| 7041 | ;; |
| 7042 | freebsd-*) |
| 7043 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 7044 | need_version=yes |
| 7045 | ;; |
| 7046 | esac |
| 7047 | shlibpath_var=LD_LIBRARY_PATH |
| 7048 | case $host_os in |
| 7049 | freebsd2*) |
| 7050 | shlibpath_overrides_runpath=yes |
| 7051 | ;; |
| 7052 | freebsd3.01* | freebsdelf3.01*) |
| 7053 | shlibpath_overrides_runpath=yes |
| 7054 | hardcode_into_libs=yes |
| 7055 | ;; |
| 7056 | *) # from 3.2 on |
| 7057 | shlibpath_overrides_runpath=no |
| 7058 | hardcode_into_libs=yes |
| 7059 | ;; |
| 7060 | esac |
| 7061 | ;; |
| 7062 | |
| 7063 | gnu*) |
| 7064 | version_type=linux |
| 7065 | need_lib_prefix=no |
| 7066 | need_version=no |
| 7067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7068 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7069 | shlibpath_var=LD_LIBRARY_PATH |
| 7070 | hardcode_into_libs=yes |
| 7071 | ;; |
| 7072 | |
| 7073 | hpux9* | hpux10* | hpux11*) |
| 7074 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7075 | # link against other versions. |
| 7076 | version_type=sunos |
| 7077 | need_lib_prefix=no |
| 7078 | need_version=no |
| 7079 | case "$host_cpu" in |
| 7080 | ia64*) |
| 7081 | shrext_cmds='.so' |
| 7082 | hardcode_into_libs=yes |
| 7083 | dynamic_linker="$host_os dld.so" |
| 7084 | shlibpath_var=LD_LIBRARY_PATH |
| 7085 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7087 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7088 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7089 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7090 | else |
| 7091 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7092 | fi |
| 7093 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7094 | ;; |
| 7095 | hppa*64*) |
| 7096 | shrext_cmds='.sl' |
| 7097 | hardcode_into_libs=yes |
| 7098 | dynamic_linker="$host_os dld.sl" |
| 7099 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7100 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7102 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7103 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7104 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7105 | ;; |
| 7106 | *) |
| 7107 | shrext_cmds='.sl' |
| 7108 | dynamic_linker="$host_os dld.sl" |
| 7109 | shlibpath_var=SHLIB_PATH |
| 7110 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7112 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7113 | ;; |
| 7114 | esac |
| 7115 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7116 | postinstall_cmds='chmod 555 $lib' |
| 7117 | ;; |
| 7118 | |
| 7119 | irix5* | irix6* | nonstopux*) |
| 7120 | case $host_os in |
| 7121 | nonstopux*) version_type=nonstopux ;; |
| 7122 | *) |
| 7123 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7124 | version_type=linux |
| 7125 | else |
| 7126 | version_type=irix |
| 7127 | fi ;; |
| 7128 | esac |
| 7129 | need_lib_prefix=no |
| 7130 | need_version=no |
| 7131 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 7133 | case $host_os in |
| 7134 | irix5* | nonstopux*) |
| 7135 | libsuff= shlibsuff= |
| 7136 | ;; |
| 7137 | *) |
| 7138 | case $LD in # libtool.m4 will add one of these switches to LD |
| 7139 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7140 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7141 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7142 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7143 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7144 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 7145 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7146 | esac |
| 7147 | ;; |
| 7148 | esac |
| 7149 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7150 | shlibpath_overrides_runpath=no |
| 7151 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7152 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 7153 | hardcode_into_libs=yes |
| 7154 | ;; |
| 7155 | |
| 7156 | # No shared lib support for Linux oldld, aout, or coff. |
| 7157 | linux*oldld* | linux*aout* | linux*coff*) |
| 7158 | dynamic_linker=no |
| 7159 | ;; |
| 7160 | |
| 7161 | # This must be Linux ELF. |
| 7162 | linux*) |
| 7163 | version_type=linux |
| 7164 | need_lib_prefix=no |
| 7165 | need_version=no |
| 7166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7167 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7168 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7169 | shlibpath_var=LD_LIBRARY_PATH |
| 7170 | shlibpath_overrides_runpath=no |
| 7171 | # This implies no fast_install, which is unacceptable. |
| 7172 | # Some rework will be needed to allow for fast_install |
| 7173 | # before this can be enabled. |
| 7174 | hardcode_into_libs=yes |
| 7175 | |
| 7176 | # Append ld.so.conf contents to the search path |
| 7177 | if test -f /etc/ld.so.conf; then |
| 7178 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 7179 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 7180 | fi |
| 7181 | |
| 7182 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7183 | # powerpc, because MkLinux only supported shared libraries with the |
| 7184 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7185 | # most powerpc-linux boxes support dynamic linking these days and |
| 7186 | # people can always --disable-shared, the test was removed, and we |
| 7187 | # assume the GNU/Linux dynamic linker is in use. |
| 7188 | dynamic_linker='GNU/Linux ld.so' |
| 7189 | ;; |
| 7190 | |
| 7191 | knetbsd*-gnu) |
| 7192 | version_type=linux |
| 7193 | need_lib_prefix=no |
| 7194 | need_version=no |
| 7195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7196 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7197 | shlibpath_var=LD_LIBRARY_PATH |
| 7198 | shlibpath_overrides_runpath=no |
| 7199 | hardcode_into_libs=yes |
| 7200 | dynamic_linker='GNU ld.so' |
| 7201 | ;; |
| 7202 | |
| 7203 | netbsd*) |
| 7204 | version_type=sunos |
| 7205 | need_lib_prefix=no |
| 7206 | need_version=no |
| 7207 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7209 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7210 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7211 | else |
| 7212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7213 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7214 | dynamic_linker='NetBSD ld.elf_so' |
| 7215 | fi |
| 7216 | shlibpath_var=LD_LIBRARY_PATH |
| 7217 | shlibpath_overrides_runpath=yes |
| 7218 | hardcode_into_libs=yes |
| 7219 | ;; |
| 7220 | |
| 7221 | newsos6) |
| 7222 | version_type=linux |
| 7223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7224 | shlibpath_var=LD_LIBRARY_PATH |
| 7225 | shlibpath_overrides_runpath=yes |
| 7226 | ;; |
| 7227 | |
| 7228 | nto-qnx*) |
| 7229 | version_type=linux |
| 7230 | need_lib_prefix=no |
| 7231 | need_version=no |
| 7232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7233 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7234 | shlibpath_var=LD_LIBRARY_PATH |
| 7235 | shlibpath_overrides_runpath=yes |
| 7236 | ;; |
| 7237 | |
| 7238 | openbsd*) |
| 7239 | version_type=sunos |
| 7240 | need_lib_prefix=no |
| 7241 | need_version=no |
| 7242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7243 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7244 | shlibpath_var=LD_LIBRARY_PATH |
| 7245 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7246 | case $host_os in |
| 7247 | openbsd2.[89] | openbsd2.[89].*) |
| 7248 | shlibpath_overrides_runpath=no |
| 7249 | ;; |
| 7250 | *) |
| 7251 | shlibpath_overrides_runpath=yes |
| 7252 | ;; |
| 7253 | esac |
| 7254 | else |
| 7255 | shlibpath_overrides_runpath=yes |
| 7256 | fi |
| 7257 | ;; |
| 7258 | |
| 7259 | os2*) |
| 7260 | libname_spec='$name' |
| 7261 | shrext_cmds=".dll" |
| 7262 | need_lib_prefix=no |
| 7263 | library_names_spec='$libname${shared_ext} $libname.a' |
| 7264 | dynamic_linker='OS/2 ld.exe' |
| 7265 | shlibpath_var=LIBPATH |
| 7266 | ;; |
| 7267 | |
| 7268 | osf3* | osf4* | osf5*) |
| 7269 | version_type=osf |
| 7270 | need_lib_prefix=no |
| 7271 | need_version=no |
| 7272 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7274 | shlibpath_var=LD_LIBRARY_PATH |
| 7275 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7276 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7277 | ;; |
| 7278 | |
| 7279 | sco3.2v5*) |
| 7280 | version_type=osf |
| 7281 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7283 | shlibpath_var=LD_LIBRARY_PATH |
| 7284 | ;; |
| 7285 | |
| 7286 | solaris*) |
| 7287 | version_type=linux |
| 7288 | need_lib_prefix=no |
| 7289 | need_version=no |
| 7290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7291 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7292 | shlibpath_var=LD_LIBRARY_PATH |
| 7293 | shlibpath_overrides_runpath=yes |
| 7294 | hardcode_into_libs=yes |
| 7295 | # ldd complains unless libraries are executable |
| 7296 | postinstall_cmds='chmod +x $lib' |
| 7297 | ;; |
| 7298 | |
| 7299 | sunos4*) |
| 7300 | version_type=sunos |
| 7301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7302 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7303 | shlibpath_var=LD_LIBRARY_PATH |
| 7304 | shlibpath_overrides_runpath=yes |
| 7305 | if test "$with_gnu_ld" = yes; then |
| 7306 | need_lib_prefix=no |
| 7307 | fi |
| 7308 | need_version=yes |
| 7309 | ;; |
| 7310 | |
| 7311 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7312 | version_type=linux |
| 7313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7314 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7315 | shlibpath_var=LD_LIBRARY_PATH |
| 7316 | case $host_vendor in |
| 7317 | sni) |
| 7318 | shlibpath_overrides_runpath=no |
| 7319 | need_lib_prefix=no |
| 7320 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7321 | runpath_var=LD_RUN_PATH |
| 7322 | ;; |
| 7323 | siemens) |
| 7324 | need_lib_prefix=no |
| 7325 | ;; |
| 7326 | motorola) |
| 7327 | need_lib_prefix=no |
| 7328 | need_version=no |
| 7329 | shlibpath_overrides_runpath=no |
| 7330 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7331 | ;; |
| 7332 | esac |
| 7333 | ;; |
| 7334 | |
| 7335 | sysv4*MP*) |
| 7336 | if test -d /usr/nec ;then |
| 7337 | version_type=linux |
| 7338 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7339 | soname_spec='$libname${shared_ext}.$major' |
| 7340 | shlibpath_var=LD_LIBRARY_PATH |
| 7341 | fi |
| 7342 | ;; |
| 7343 | |
| 7344 | uts4*) |
| 7345 | version_type=linux |
| 7346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7347 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7348 | shlibpath_var=LD_LIBRARY_PATH |
| 7349 | ;; |
| 7350 | |
| 7351 | *) |
| 7352 | dynamic_linker=no |
| 7353 | ;; |
| 7354 | esac |
| 7355 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 7356 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7357 | test "$dynamic_linker" = no && can_build_shared=no |
| 7358 | |
| 7359 | |
| 7360 | echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 7361 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 |
| 7362 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 7363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7364 | else |
| 7365 | |
| 7366 | module=yes |
| 7367 | eval libltdl_cv_shlibext=$shrext_cmds |
| 7368 | |
| 7369 | fi |
| 7370 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 7371 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 |
| 7372 | if test -n "$libltdl_cv_shlibext"; then |
| 7373 | |
| 7374 | cat >>confdefs.h <<_ACEOF |
| 7375 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 7376 | _ACEOF |
| 7377 | |
| 7378 | fi |
| 7379 | |
| 7380 | |
| 7381 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 7382 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 |
| 7383 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7385 | else |
| 7386 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 7387 | fi |
| 7388 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 7389 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 |
| 7390 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 7391 | |
| 7392 | cat >>confdefs.h <<_ACEOF |
| 7393 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 7394 | _ACEOF |
| 7395 | |
| 7396 | fi |
| 7397 | |
| 7398 | |
| 7399 | echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 7400 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 |
| 7401 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7403 | else |
| 7404 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 7405 | fi |
| 7406 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 7407 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 |
| 7408 | if test -n "$libltdl_cv_sys_search_path"; then |
| 7409 | sys_search_path= |
| 7410 | for dir in $libltdl_cv_sys_search_path; do |
| 7411 | if test -z "$sys_search_path"; then |
| 7412 | sys_search_path="$dir" |
| 7413 | else |
| 7414 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 7415 | fi |
| 7416 | done |
| 7417 | |
| 7418 | cat >>confdefs.h <<_ACEOF |
| 7419 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 7420 | _ACEOF |
| 7421 | |
| 7422 | fi |
| 7423 | |
| 7424 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 7425 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 7426 | if test "${libltdl_cv_objdir+set}" = set; then |
| 7427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7428 | else |
| 7429 | libltdl_cv_objdir="$objdir" |
| 7430 | if test -n "$objdir"; then |
| 7431 | : |
| 7432 | else |
| 7433 | rm -f .libs 2>/dev/null |
| 7434 | mkdir .libs 2>/dev/null |
| 7435 | if test -d .libs; then |
| 7436 | libltdl_cv_objdir=.libs |
| 7437 | else |
| 7438 | # MS-DOS does not allow filenames that begin with a dot. |
| 7439 | libltdl_cv_objdir=_libs |
| 7440 | fi |
| 7441 | rmdir .libs 2>/dev/null |
| 7442 | fi |
| 7443 | |
| 7444 | fi |
| 7445 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 7446 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 |
| 7447 | |
| 7448 | cat >>confdefs.h <<_ACEOF |
| 7449 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 7450 | _ACEOF |
| 7451 | |
| 7452 | |
| 7453 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 7454 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 7455 | if test "${lt_cv_path_NM+set}" = set; then |
| 7456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7457 | else |
| 7458 | if test -n "$NM"; then |
| 7459 | # Let the user override the test. |
| 7460 | lt_cv_path_NM="$NM" |
| 7461 | else |
| 7462 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7463 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 7464 | IFS="$lt_save_ifs" |
| 7465 | test -z "$ac_dir" && ac_dir=. |
| 7466 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 7467 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 7468 | # Check to see if the nm accepts a BSD-compat flag. |
| 7469 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 7470 | # nm: unknown option "B" ignored |
| 7471 | # Tru64's nm complains that /dev/null is an invalid object file |
| 7472 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 7473 | */dev/null* | *'Invalid file or object type'*) |
| 7474 | lt_cv_path_NM="$tmp_nm -B" |
| 7475 | break |
| 7476 | ;; |
| 7477 | *) |
| 7478 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 7479 | */dev/null*) |
| 7480 | lt_cv_path_NM="$tmp_nm -p" |
| 7481 | break |
| 7482 | ;; |
| 7483 | *) |
| 7484 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 7485 | continue # so that we can try to find one that supports BSD flags |
| 7486 | ;; |
| 7487 | esac |
| 7488 | esac |
| 7489 | fi |
| 7490 | done |
| 7491 | IFS="$lt_save_ifs" |
| 7492 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 7493 | fi |
| 7494 | fi |
| 7495 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 7496 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 7497 | NM="$lt_cv_path_NM" |
| 7498 | |
| 7499 | |
| 7500 | |
| 7501 | |
| 7502 | |
| 7503 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7504 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 7505 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 7506 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 7507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7508 | else |
| 7509 | |
| 7510 | # These are sane defaults that work on at least a few old systems. |
| 7511 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7512 | |
| 7513 | # Character class describing NM global symbol codes. |
| 7514 | symcode='[BCDEGRST]' |
| 7515 | |
| 7516 | # Regexp to match symbols that can be accessed directly from C. |
| 7517 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7518 | |
| 7519 | # Transform the above into a raw symbol and a C symbol. |
| 7520 | symxfrm='\1 \2\3 \3' |
| 7521 | |
| 7522 | # Transform an extracted symbol line into a proper C declaration |
| 7523 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 7524 | |
| 7525 | # Transform an extracted symbol line into symbol name and symbol address |
| 7526 | 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'" |
| 7527 | |
| 7528 | # Define system-specific variables. |
| 7529 | case $host_os in |
| 7530 | aix*) |
| 7531 | symcode='[BCDT]' |
| 7532 | ;; |
| 7533 | cygwin* | mingw* | pw32*) |
| 7534 | symcode='[ABCDGISTW]' |
| 7535 | ;; |
| 7536 | hpux*) # Its linker distinguishes data from code symbols |
| 7537 | if test "$host_cpu" = ia64; then |
| 7538 | symcode='[ABCDEGRST]' |
| 7539 | fi |
| 7540 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7541 | 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'" |
| 7542 | ;; |
| 7543 | linux*) |
| 7544 | if test "$host_cpu" = ia64; then |
| 7545 | symcode='[ABCDGIRSTW]' |
| 7546 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7547 | 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'" |
| 7548 | fi |
| 7549 | ;; |
| 7550 | irix* | nonstopux*) |
| 7551 | symcode='[BCDEGRST]' |
| 7552 | ;; |
| 7553 | osf*) |
| 7554 | symcode='[BCDEGQRST]' |
| 7555 | ;; |
| 7556 | solaris* | sysv5*) |
| 7557 | symcode='[BDRT]' |
| 7558 | ;; |
| 7559 | sysv4) |
| 7560 | symcode='[DFNSTU]' |
| 7561 | ;; |
| 7562 | esac |
| 7563 | |
| 7564 | # Handle CRLF in mingw tool chain |
| 7565 | opt_cr= |
| 7566 | case $build_os in |
| 7567 | mingw*) |
| 7568 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7569 | ;; |
| 7570 | esac |
| 7571 | |
| 7572 | # If we're using GNU nm, then use its standard symbol codes. |
| 7573 | case `$NM -V 2>&1` in |
| 7574 | *GNU* | *'with BFD'*) |
| 7575 | symcode='[ABCDGIRSTW]' ;; |
| 7576 | esac |
| 7577 | |
| 7578 | # Try without a prefix undercore, then with it. |
| 7579 | for ac_symprfx in "" "_"; do |
| 7580 | |
| 7581 | # Write the raw and C identifiers. |
| 7582 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 7583 | |
| 7584 | # Check to see that the pipe works correctly. |
| 7585 | pipe_works=no |
| 7586 | |
| 7587 | rm -f conftest* |
| 7588 | cat > conftest.$ac_ext <<EOF |
| 7589 | #ifdef __cplusplus |
| 7590 | extern "C" { |
| 7591 | #endif |
| 7592 | char nm_test_var; |
| 7593 | void nm_test_func(){} |
| 7594 | #ifdef __cplusplus |
| 7595 | } |
| 7596 | #endif |
| 7597 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7598 | EOF |
| 7599 | |
| 7600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7601 | (eval $ac_compile) 2>&5 |
| 7602 | ac_status=$? |
| 7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7604 | (exit $ac_status); }; then |
| 7605 | # Now try to grab the symbols. |
| 7606 | nlist=conftest.nm |
| 7607 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 7608 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 7609 | ac_status=$? |
| 7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7611 | (exit $ac_status); } && test -s "$nlist"; then |
| 7612 | # Try sorting and uniquifying the output. |
| 7613 | if sort "$nlist" | uniq > "$nlist"T; then |
| 7614 | mv -f "$nlist"T "$nlist" |
| 7615 | else |
| 7616 | rm -f "$nlist"T |
| 7617 | fi |
| 7618 | |
| 7619 | # Make sure that we snagged all the symbols we need. |
| 7620 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 7621 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 7622 | cat <<EOF > conftest.$ac_ext |
| 7623 | #ifdef __cplusplus |
| 7624 | extern "C" { |
| 7625 | #endif |
| 7626 | |
| 7627 | EOF |
| 7628 | # Now generate the symbol file. |
| 7629 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 7630 | |
| 7631 | cat <<EOF >> conftest.$ac_ext |
| 7632 | #if defined (__STDC__) && __STDC__ |
| 7633 | # define lt_ptr_t void * |
| 7634 | #else |
| 7635 | # define lt_ptr_t char * |
| 7636 | # define const |
| 7637 | #endif |
| 7638 | |
| 7639 | /* The mapping between symbol names and symbols. */ |
| 7640 | const struct { |
| 7641 | const char *name; |
| 7642 | lt_ptr_t address; |
| 7643 | } |
| 7644 | lt_preloaded_symbols[] = |
| 7645 | { |
| 7646 | EOF |
| 7647 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 7648 | cat <<\EOF >> conftest.$ac_ext |
| 7649 | {0, (lt_ptr_t) 0} |
| 7650 | }; |
| 7651 | |
| 7652 | #ifdef __cplusplus |
| 7653 | } |
| 7654 | #endif |
| 7655 | EOF |
| 7656 | # Now try linking the two files. |
| 7657 | mv conftest.$ac_objext conftstm.$ac_objext |
| 7658 | lt_save_LIBS="$LIBS" |
| 7659 | lt_save_CFLAGS="$CFLAGS" |
| 7660 | LIBS="conftstm.$ac_objext" |
| 7661 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7663 | (eval $ac_link) 2>&5 |
| 7664 | ac_status=$? |
| 7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7666 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 7667 | pipe_works=yes |
| 7668 | fi |
| 7669 | LIBS="$lt_save_LIBS" |
| 7670 | CFLAGS="$lt_save_CFLAGS" |
| 7671 | else |
| 7672 | echo "cannot find nm_test_func in $nlist" >&5 |
| 7673 | fi |
| 7674 | else |
| 7675 | echo "cannot find nm_test_var in $nlist" >&5 |
| 7676 | fi |
| 7677 | else |
| 7678 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7679 | fi |
| 7680 | else |
| 7681 | echo "$progname: failed program was:" >&5 |
| 7682 | cat conftest.$ac_ext >&5 |
| 7683 | fi |
| 7684 | rm -f conftest* conftst* |
| 7685 | |
| 7686 | # Do not use the global_symbol_pipe unless it works. |
| 7687 | if test "$pipe_works" = yes; then |
| 7688 | break |
| 7689 | else |
| 7690 | lt_cv_sys_global_symbol_pipe= |
| 7691 | fi |
| 7692 | done |
| 7693 | |
| 7694 | fi |
| 7695 | |
| 7696 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7697 | lt_cv_sys_global_symbol_to_cdecl= |
| 7698 | fi |
| 7699 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7700 | echo "$as_me:$LINENO: result: failed" >&5 |
| 7701 | echo "${ECHO_T}failed" >&6 |
| 7702 | else |
| 7703 | echo "$as_me:$LINENO: result: ok" >&5 |
| 7704 | echo "${ECHO_T}ok" >&6 |
| 7705 | fi |
| 7706 | |
| 7707 | |
| 7708 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 7709 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 |
| 7710 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 7711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7712 | else |
| 7713 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 7714 | libltdl_cv_preloaded_symbols=yes |
| 7715 | else |
| 7716 | libltdl_cv_preloaded_symbols=no |
| 7717 | fi |
| 7718 | |
| 7719 | fi |
| 7720 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 7721 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 |
| 7722 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 7723 | |
| 7724 | cat >>confdefs.h <<\_ACEOF |
| 7725 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 7726 | _ACEOF |
| 7727 | |
| 7728 | fi |
| 7729 | |
| 7730 | LIBADD_DL= |
| 7731 | |
| 7732 | ac_ext=c |
| 7733 | ac_cpp='$CPP $CPPFLAGS' |
| 7734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7737 | |
| 7738 | |
| 7739 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 7740 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 7741 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 7742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7743 | else |
| 7744 | cat >conftest.$ac_ext <<_ACEOF |
| 7745 | /* confdefs.h. */ |
| 7746 | _ACEOF |
| 7747 | cat confdefs.h >>conftest.$ac_ext |
| 7748 | cat >>conftest.$ac_ext <<_ACEOF |
| 7749 | /* end confdefs.h. */ |
| 7750 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 7751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7752 | #define shl_load innocuous_shl_load |
| 7753 | |
| 7754 | /* System header to define __stub macros and hopefully few prototypes, |
| 7755 | which can conflict with char shl_load (); below. |
| 7756 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7757 | <limits.h> exists even on freestanding compilers. */ |
| 7758 | |
| 7759 | #ifdef __STDC__ |
| 7760 | # include <limits.h> |
| 7761 | #else |
| 7762 | # include <assert.h> |
| 7763 | #endif |
| 7764 | |
| 7765 | #undef shl_load |
| 7766 | |
| 7767 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7768 | #ifdef __cplusplus |
| 7769 | extern "C" |
| 7770 | { |
| 7771 | #endif |
| 7772 | /* We use char because int might match the return type of a gcc2 |
| 7773 | builtin and then its argument prototype would still apply. */ |
| 7774 | char shl_load (); |
| 7775 | /* The GNU C library defines this for functions which it implements |
| 7776 | to always fail with ENOSYS. Some functions are actually named |
| 7777 | something starting with __ and the normal name is an alias. */ |
| 7778 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 7779 | choke me |
| 7780 | #else |
| 7781 | char (*f) () = shl_load; |
| 7782 | #endif |
| 7783 | #ifdef __cplusplus |
| 7784 | } |
| 7785 | #endif |
| 7786 | |
| 7787 | int |
| 7788 | main () |
| 7789 | { |
| 7790 | return f != shl_load; |
| 7791 | ; |
| 7792 | return 0; |
| 7793 | } |
| 7794 | _ACEOF |
| 7795 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7797 | (eval $ac_link) 2>conftest.er1 |
| 7798 | ac_status=$? |
| 7799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7800 | rm -f conftest.er1 |
| 7801 | cat conftest.err >&5 |
| 7802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7803 | (exit $ac_status); } && |
| 7804 | { ac_try='test -z "$ac_c_werror_flag" |
| 7805 | || test ! -s conftest.err' |
| 7806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7807 | (eval $ac_try) 2>&5 |
| 7808 | ac_status=$? |
| 7809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7810 | (exit $ac_status); }; } && |
| 7811 | { ac_try='test -s conftest$ac_exeext' |
| 7812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7813 | (eval $ac_try) 2>&5 |
| 7814 | ac_status=$? |
| 7815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7816 | (exit $ac_status); }; }; then |
| 7817 | ac_cv_func_shl_load=yes |
| 7818 | else |
| 7819 | echo "$as_me: failed program was:" >&5 |
| 7820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7821 | |
| 7822 | ac_cv_func_shl_load=no |
| 7823 | fi |
| 7824 | rm -f conftest.err conftest.$ac_objext \ |
| 7825 | conftest$ac_exeext conftest.$ac_ext |
| 7826 | fi |
| 7827 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 7828 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 7829 | if test $ac_cv_func_shl_load = yes; then |
| 7830 | |
| 7831 | cat >>confdefs.h <<\_ACEOF |
| 7832 | #define HAVE_SHL_LOAD 1 |
| 7833 | _ACEOF |
| 7834 | |
| 7835 | else |
| 7836 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 7837 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 7838 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 7839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7840 | else |
| 7841 | ac_check_lib_save_LIBS=$LIBS |
| 7842 | LIBS="-ldld $LIBS" |
| 7843 | cat >conftest.$ac_ext <<_ACEOF |
| 7844 | /* confdefs.h. */ |
| 7845 | _ACEOF |
| 7846 | cat confdefs.h >>conftest.$ac_ext |
| 7847 | cat >>conftest.$ac_ext <<_ACEOF |
| 7848 | /* end confdefs.h. */ |
| 7849 | |
| 7850 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7851 | #ifdef __cplusplus |
| 7852 | extern "C" |
| 7853 | #endif |
| 7854 | /* We use char because int might match the return type of a gcc2 |
| 7855 | builtin and then its argument prototype would still apply. */ |
| 7856 | char shl_load (); |
| 7857 | int |
| 7858 | main () |
| 7859 | { |
| 7860 | shl_load (); |
| 7861 | ; |
| 7862 | return 0; |
| 7863 | } |
| 7864 | _ACEOF |
| 7865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7867 | (eval $ac_link) 2>conftest.er1 |
| 7868 | ac_status=$? |
| 7869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7870 | rm -f conftest.er1 |
| 7871 | cat conftest.err >&5 |
| 7872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7873 | (exit $ac_status); } && |
| 7874 | { ac_try='test -z "$ac_c_werror_flag" |
| 7875 | || test ! -s conftest.err' |
| 7876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7877 | (eval $ac_try) 2>&5 |
| 7878 | ac_status=$? |
| 7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7880 | (exit $ac_status); }; } && |
| 7881 | { ac_try='test -s conftest$ac_exeext' |
| 7882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7883 | (eval $ac_try) 2>&5 |
| 7884 | ac_status=$? |
| 7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7886 | (exit $ac_status); }; }; then |
| 7887 | ac_cv_lib_dld_shl_load=yes |
| 7888 | else |
| 7889 | echo "$as_me: failed program was:" >&5 |
| 7890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7891 | |
| 7892 | ac_cv_lib_dld_shl_load=no |
| 7893 | fi |
| 7894 | rm -f conftest.err conftest.$ac_objext \ |
| 7895 | conftest$ac_exeext conftest.$ac_ext |
| 7896 | LIBS=$ac_check_lib_save_LIBS |
| 7897 | fi |
| 7898 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7899 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 7900 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 7901 | |
| 7902 | cat >>confdefs.h <<\_ACEOF |
| 7903 | #define HAVE_SHL_LOAD 1 |
| 7904 | _ACEOF |
| 7905 | |
| 7906 | LIBADD_DL="$LIBADD_DL -ldld" |
| 7907 | else |
| 7908 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7909 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7910 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7912 | else |
| 7913 | ac_check_lib_save_LIBS=$LIBS |
| 7914 | LIBS="-ldl $LIBS" |
| 7915 | cat >conftest.$ac_ext <<_ACEOF |
| 7916 | /* confdefs.h. */ |
| 7917 | _ACEOF |
| 7918 | cat confdefs.h >>conftest.$ac_ext |
| 7919 | cat >>conftest.$ac_ext <<_ACEOF |
| 7920 | /* end confdefs.h. */ |
| 7921 | |
| 7922 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7923 | #ifdef __cplusplus |
| 7924 | extern "C" |
| 7925 | #endif |
| 7926 | /* We use char because int might match the return type of a gcc2 |
| 7927 | builtin and then its argument prototype would still apply. */ |
| 7928 | char dlopen (); |
| 7929 | int |
| 7930 | main () |
| 7931 | { |
| 7932 | dlopen (); |
| 7933 | ; |
| 7934 | return 0; |
| 7935 | } |
| 7936 | _ACEOF |
| 7937 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7939 | (eval $ac_link) 2>conftest.er1 |
| 7940 | ac_status=$? |
| 7941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7942 | rm -f conftest.er1 |
| 7943 | cat conftest.err >&5 |
| 7944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7945 | (exit $ac_status); } && |
| 7946 | { ac_try='test -z "$ac_c_werror_flag" |
| 7947 | || test ! -s conftest.err' |
| 7948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7949 | (eval $ac_try) 2>&5 |
| 7950 | ac_status=$? |
| 7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7952 | (exit $ac_status); }; } && |
| 7953 | { ac_try='test -s conftest$ac_exeext' |
| 7954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7955 | (eval $ac_try) 2>&5 |
| 7956 | ac_status=$? |
| 7957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7958 | (exit $ac_status); }; }; then |
| 7959 | ac_cv_lib_dl_dlopen=yes |
| 7960 | else |
| 7961 | echo "$as_me: failed program was:" >&5 |
| 7962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7963 | |
| 7964 | ac_cv_lib_dl_dlopen=no |
| 7965 | fi |
| 7966 | rm -f conftest.err conftest.$ac_objext \ |
| 7967 | conftest$ac_exeext conftest.$ac_ext |
| 7968 | LIBS=$ac_check_lib_save_LIBS |
| 7969 | fi |
| 7970 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7971 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7972 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7973 | |
| 7974 | cat >>confdefs.h <<\_ACEOF |
| 7975 | #define HAVE_LIBDL 1 |
| 7976 | _ACEOF |
| 7977 | |
| 7978 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 7979 | else |
| 7980 | cat >conftest.$ac_ext <<_ACEOF |
| 7981 | /* confdefs.h. */ |
| 7982 | _ACEOF |
| 7983 | cat confdefs.h >>conftest.$ac_ext |
| 7984 | cat >>conftest.$ac_ext <<_ACEOF |
| 7985 | /* end confdefs.h. */ |
| 7986 | #if HAVE_DLFCN_H |
| 7987 | # include <dlfcn.h> |
| 7988 | #endif |
| 7989 | |
| 7990 | int |
| 7991 | main () |
| 7992 | { |
| 7993 | dlopen(0, 0); |
| 7994 | ; |
| 7995 | return 0; |
| 7996 | } |
| 7997 | _ACEOF |
| 7998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8000 | (eval $ac_link) 2>conftest.er1 |
| 8001 | ac_status=$? |
| 8002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8003 | rm -f conftest.er1 |
| 8004 | cat conftest.err >&5 |
| 8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8006 | (exit $ac_status); } && |
| 8007 | { ac_try='test -z "$ac_c_werror_flag" |
| 8008 | || test ! -s conftest.err' |
| 8009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8010 | (eval $ac_try) 2>&5 |
| 8011 | ac_status=$? |
| 8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8013 | (exit $ac_status); }; } && |
| 8014 | { ac_try='test -s conftest$ac_exeext' |
| 8015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8016 | (eval $ac_try) 2>&5 |
| 8017 | ac_status=$? |
| 8018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8019 | (exit $ac_status); }; }; then |
| 8020 | |
| 8021 | cat >>confdefs.h <<\_ACEOF |
| 8022 | #define HAVE_LIBDL 1 |
| 8023 | _ACEOF |
| 8024 | libltdl_cv_func_dlopen="yes" |
| 8025 | else |
| 8026 | echo "$as_me: failed program was:" >&5 |
| 8027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8028 | |
| 8029 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8030 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 8031 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8033 | else |
| 8034 | ac_check_lib_save_LIBS=$LIBS |
| 8035 | LIBS="-lsvld $LIBS" |
| 8036 | cat >conftest.$ac_ext <<_ACEOF |
| 8037 | /* confdefs.h. */ |
| 8038 | _ACEOF |
| 8039 | cat confdefs.h >>conftest.$ac_ext |
| 8040 | cat >>conftest.$ac_ext <<_ACEOF |
| 8041 | /* end confdefs.h. */ |
| 8042 | |
| 8043 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8044 | #ifdef __cplusplus |
| 8045 | extern "C" |
| 8046 | #endif |
| 8047 | /* We use char because int might match the return type of a gcc2 |
| 8048 | builtin and then its argument prototype would still apply. */ |
| 8049 | char dlopen (); |
| 8050 | int |
| 8051 | main () |
| 8052 | { |
| 8053 | dlopen (); |
| 8054 | ; |
| 8055 | return 0; |
| 8056 | } |
| 8057 | _ACEOF |
| 8058 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8060 | (eval $ac_link) 2>conftest.er1 |
| 8061 | ac_status=$? |
| 8062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8063 | rm -f conftest.er1 |
| 8064 | cat conftest.err >&5 |
| 8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8066 | (exit $ac_status); } && |
| 8067 | { ac_try='test -z "$ac_c_werror_flag" |
| 8068 | || test ! -s conftest.err' |
| 8069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8070 | (eval $ac_try) 2>&5 |
| 8071 | ac_status=$? |
| 8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8073 | (exit $ac_status); }; } && |
| 8074 | { ac_try='test -s conftest$ac_exeext' |
| 8075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8076 | (eval $ac_try) 2>&5 |
| 8077 | ac_status=$? |
| 8078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8079 | (exit $ac_status); }; }; then |
| 8080 | ac_cv_lib_svld_dlopen=yes |
| 8081 | else |
| 8082 | echo "$as_me: failed program was:" >&5 |
| 8083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8084 | |
| 8085 | ac_cv_lib_svld_dlopen=no |
| 8086 | fi |
| 8087 | rm -f conftest.err conftest.$ac_objext \ |
| 8088 | conftest$ac_exeext conftest.$ac_ext |
| 8089 | LIBS=$ac_check_lib_save_LIBS |
| 8090 | fi |
| 8091 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8092 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 8093 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8094 | |
| 8095 | cat >>confdefs.h <<\_ACEOF |
| 8096 | #define HAVE_LIBDL 1 |
| 8097 | _ACEOF |
| 8098 | |
| 8099 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 8100 | else |
| 8101 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8102 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 8103 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 8104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8105 | else |
| 8106 | ac_check_lib_save_LIBS=$LIBS |
| 8107 | LIBS="-ldld $LIBS" |
| 8108 | cat >conftest.$ac_ext <<_ACEOF |
| 8109 | /* confdefs.h. */ |
| 8110 | _ACEOF |
| 8111 | cat confdefs.h >>conftest.$ac_ext |
| 8112 | cat >>conftest.$ac_ext <<_ACEOF |
| 8113 | /* end confdefs.h. */ |
| 8114 | |
| 8115 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8116 | #ifdef __cplusplus |
| 8117 | extern "C" |
| 8118 | #endif |
| 8119 | /* We use char because int might match the return type of a gcc2 |
| 8120 | builtin and then its argument prototype would still apply. */ |
| 8121 | char dld_link (); |
| 8122 | int |
| 8123 | main () |
| 8124 | { |
| 8125 | dld_link (); |
| 8126 | ; |
| 8127 | return 0; |
| 8128 | } |
| 8129 | _ACEOF |
| 8130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8132 | (eval $ac_link) 2>conftest.er1 |
| 8133 | ac_status=$? |
| 8134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8135 | rm -f conftest.er1 |
| 8136 | cat conftest.err >&5 |
| 8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8138 | (exit $ac_status); } && |
| 8139 | { ac_try='test -z "$ac_c_werror_flag" |
| 8140 | || test ! -s conftest.err' |
| 8141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8142 | (eval $ac_try) 2>&5 |
| 8143 | ac_status=$? |
| 8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8145 | (exit $ac_status); }; } && |
| 8146 | { ac_try='test -s conftest$ac_exeext' |
| 8147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8148 | (eval $ac_try) 2>&5 |
| 8149 | ac_status=$? |
| 8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8151 | (exit $ac_status); }; }; then |
| 8152 | ac_cv_lib_dld_dld_link=yes |
| 8153 | else |
| 8154 | echo "$as_me: failed program was:" >&5 |
| 8155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8156 | |
| 8157 | ac_cv_lib_dld_dld_link=no |
| 8158 | fi |
| 8159 | rm -f conftest.err conftest.$ac_objext \ |
| 8160 | conftest$ac_exeext conftest.$ac_ext |
| 8161 | LIBS=$ac_check_lib_save_LIBS |
| 8162 | fi |
| 8163 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8164 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 8165 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 8166 | |
| 8167 | cat >>confdefs.h <<\_ACEOF |
| 8168 | #define HAVE_DLD 1 |
| 8169 | _ACEOF |
| 8170 | |
| 8171 | LIBADD_DL="$LIBADD_DL -ldld" |
| 8172 | else |
| 8173 | echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 8174 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 |
| 8175 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 8176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8177 | else |
| 8178 | cat >conftest.$ac_ext <<_ACEOF |
| 8179 | /* confdefs.h. */ |
| 8180 | _ACEOF |
| 8181 | cat confdefs.h >>conftest.$ac_ext |
| 8182 | cat >>conftest.$ac_ext <<_ACEOF |
| 8183 | /* end confdefs.h. */ |
| 8184 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 8185 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8186 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 8187 | |
| 8188 | /* System header to define __stub macros and hopefully few prototypes, |
| 8189 | which can conflict with char _dyld_func_lookup (); below. |
| 8190 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8191 | <limits.h> exists even on freestanding compilers. */ |
| 8192 | |
| 8193 | #ifdef __STDC__ |
| 8194 | # include <limits.h> |
| 8195 | #else |
| 8196 | # include <assert.h> |
| 8197 | #endif |
| 8198 | |
| 8199 | #undef _dyld_func_lookup |
| 8200 | |
| 8201 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8202 | #ifdef __cplusplus |
| 8203 | extern "C" |
| 8204 | { |
| 8205 | #endif |
| 8206 | /* We use char because int might match the return type of a gcc2 |
| 8207 | builtin and then its argument prototype would still apply. */ |
| 8208 | char _dyld_func_lookup (); |
| 8209 | /* The GNU C library defines this for functions which it implements |
| 8210 | to always fail with ENOSYS. Some functions are actually named |
| 8211 | something starting with __ and the normal name is an alias. */ |
| 8212 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) |
| 8213 | choke me |
| 8214 | #else |
| 8215 | char (*f) () = _dyld_func_lookup; |
| 8216 | #endif |
| 8217 | #ifdef __cplusplus |
| 8218 | } |
| 8219 | #endif |
| 8220 | |
| 8221 | int |
| 8222 | main () |
| 8223 | { |
| 8224 | return f != _dyld_func_lookup; |
| 8225 | ; |
| 8226 | return 0; |
| 8227 | } |
| 8228 | _ACEOF |
| 8229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8231 | (eval $ac_link) 2>conftest.er1 |
| 8232 | ac_status=$? |
| 8233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8234 | rm -f conftest.er1 |
| 8235 | cat conftest.err >&5 |
| 8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8237 | (exit $ac_status); } && |
| 8238 | { ac_try='test -z "$ac_c_werror_flag" |
| 8239 | || test ! -s conftest.err' |
| 8240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8241 | (eval $ac_try) 2>&5 |
| 8242 | ac_status=$? |
| 8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8244 | (exit $ac_status); }; } && |
| 8245 | { ac_try='test -s conftest$ac_exeext' |
| 8246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8247 | (eval $ac_try) 2>&5 |
| 8248 | ac_status=$? |
| 8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8250 | (exit $ac_status); }; }; then |
| 8251 | ac_cv_func__dyld_func_lookup=yes |
| 8252 | else |
| 8253 | echo "$as_me: failed program was:" >&5 |
| 8254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8255 | |
| 8256 | ac_cv_func__dyld_func_lookup=no |
| 8257 | fi |
| 8258 | rm -f conftest.err conftest.$ac_objext \ |
| 8259 | conftest$ac_exeext conftest.$ac_ext |
| 8260 | fi |
| 8261 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 8262 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 |
| 8263 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 8264 | |
| 8265 | cat >>confdefs.h <<\_ACEOF |
| 8266 | #define HAVE_DYLD 1 |
| 8267 | _ACEOF |
| 8268 | |
| 8269 | fi |
| 8270 | |
| 8271 | |
| 8272 | fi |
| 8273 | |
| 8274 | |
| 8275 | fi |
| 8276 | |
| 8277 | |
| 8278 | fi |
| 8279 | rm -f conftest.err conftest.$ac_objext \ |
| 8280 | conftest$ac_exeext conftest.$ac_ext |
| 8281 | |
| 8282 | fi |
| 8283 | |
| 8284 | |
| 8285 | fi |
| 8286 | |
| 8287 | |
| 8288 | fi |
| 8289 | |
| 8290 | |
| 8291 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 8292 | then |
| 8293 | lt_save_LIBS="$LIBS" |
| 8294 | LIBS="$LIBS $LIBADD_DL" |
| 8295 | |
| 8296 | for ac_func in dlerror |
| 8297 | do |
| 8298 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8299 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8300 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8301 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8303 | else |
| 8304 | cat >conftest.$ac_ext <<_ACEOF |
| 8305 | /* confdefs.h. */ |
| 8306 | _ACEOF |
| 8307 | cat confdefs.h >>conftest.$ac_ext |
| 8308 | cat >>conftest.$ac_ext <<_ACEOF |
| 8309 | /* end confdefs.h. */ |
| 8310 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8311 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8312 | #define $ac_func innocuous_$ac_func |
| 8313 | |
| 8314 | /* System header to define __stub macros and hopefully few prototypes, |
| 8315 | which can conflict with char $ac_func (); below. |
| 8316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8317 | <limits.h> exists even on freestanding compilers. */ |
| 8318 | |
| 8319 | #ifdef __STDC__ |
| 8320 | # include <limits.h> |
| 8321 | #else |
| 8322 | # include <assert.h> |
| 8323 | #endif |
| 8324 | |
| 8325 | #undef $ac_func |
| 8326 | |
| 8327 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8328 | #ifdef __cplusplus |
| 8329 | extern "C" |
| 8330 | { |
| 8331 | #endif |
| 8332 | /* We use char because int might match the return type of a gcc2 |
| 8333 | builtin and then its argument prototype would still apply. */ |
| 8334 | char $ac_func (); |
| 8335 | /* The GNU C library defines this for functions which it implements |
| 8336 | to always fail with ENOSYS. Some functions are actually named |
| 8337 | something starting with __ and the normal name is an alias. */ |
| 8338 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8339 | choke me |
| 8340 | #else |
| 8341 | char (*f) () = $ac_func; |
| 8342 | #endif |
| 8343 | #ifdef __cplusplus |
| 8344 | } |
| 8345 | #endif |
| 8346 | |
| 8347 | int |
| 8348 | main () |
| 8349 | { |
| 8350 | return f != $ac_func; |
| 8351 | ; |
| 8352 | return 0; |
| 8353 | } |
| 8354 | _ACEOF |
| 8355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8357 | (eval $ac_link) 2>conftest.er1 |
| 8358 | ac_status=$? |
| 8359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8360 | rm -f conftest.er1 |
| 8361 | cat conftest.err >&5 |
| 8362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8363 | (exit $ac_status); } && |
| 8364 | { ac_try='test -z "$ac_c_werror_flag" |
| 8365 | || test ! -s conftest.err' |
| 8366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8367 | (eval $ac_try) 2>&5 |
| 8368 | ac_status=$? |
| 8369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8370 | (exit $ac_status); }; } && |
| 8371 | { ac_try='test -s conftest$ac_exeext' |
| 8372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8373 | (eval $ac_try) 2>&5 |
| 8374 | ac_status=$? |
| 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8376 | (exit $ac_status); }; }; then |
| 8377 | eval "$as_ac_var=yes" |
| 8378 | else |
| 8379 | echo "$as_me: failed program was:" >&5 |
| 8380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8381 | |
| 8382 | eval "$as_ac_var=no" |
| 8383 | fi |
| 8384 | rm -f conftest.err conftest.$ac_objext \ |
| 8385 | conftest$ac_exeext conftest.$ac_ext |
| 8386 | fi |
| 8387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8390 | cat >>confdefs.h <<_ACEOF |
| 8391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8392 | _ACEOF |
| 8393 | |
| 8394 | fi |
| 8395 | done |
| 8396 | |
| 8397 | LIBS="$lt_save_LIBS" |
| 8398 | fi |
| 8399 | ac_ext=c |
| 8400 | ac_cpp='$CPP $CPPFLAGS' |
| 8401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 8408 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 |
| 8409 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 8410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8411 | else |
| 8412 | ac_cv_sys_symbol_underscore=no |
| 8413 | cat > conftest.$ac_ext <<EOF |
| 8414 | void nm_test_func(){} |
| 8415 | int main(){nm_test_func;return 0;} |
| 8416 | EOF |
| 8417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8418 | (eval $ac_compile) 2>&5 |
| 8419 | ac_status=$? |
| 8420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8421 | (exit $ac_status); }; then |
| 8422 | # Now try to grab the symbols. |
| 8423 | ac_nlist=conftest.nm |
| 8424 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 8425 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 8426 | ac_status=$? |
| 8427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8428 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 8429 | # See whether the symbols have a leading underscore. |
| 8430 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 8431 | ac_cv_sys_symbol_underscore=yes |
| 8432 | else |
| 8433 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 8434 | : |
| 8435 | else |
| 8436 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 8437 | fi |
| 8438 | fi |
| 8439 | else |
| 8440 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 8441 | fi |
| 8442 | else |
| 8443 | echo "configure: failed program was:" >&5 |
| 8444 | cat conftest.c >&5 |
| 8445 | fi |
| 8446 | rm -rf conftest* |
| 8447 | |
| 8448 | fi |
| 8449 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 8450 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 |
| 8451 | |
| 8452 | |
| 8453 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 8454 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 8455 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 8456 | echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 8457 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 |
| 8458 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 8459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8460 | else |
| 8461 | libltdl_cv_need_uscore=unknown |
| 8462 | save_LIBS="$LIBS" |
| 8463 | LIBS="$LIBS $LIBADD_DL" |
| 8464 | if test "$cross_compiling" = yes; then : |
| 8465 | libltdl_cv_need_uscore=cross |
| 8466 | else |
| 8467 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8468 | lt_status=$lt_dlunknown |
| 8469 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 8470 | #line 8470 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8471 | #include "confdefs.h" |
| 8472 | |
| 8473 | #if HAVE_DLFCN_H |
| 8474 | #include <dlfcn.h> |
| 8475 | #endif |
| 8476 | |
| 8477 | #include <stdio.h> |
| 8478 | |
| 8479 | #ifdef RTLD_GLOBAL |
| 8480 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8481 | #else |
| 8482 | # ifdef DL_GLOBAL |
| 8483 | # define LT_DLGLOBAL DL_GLOBAL |
| 8484 | # else |
| 8485 | # define LT_DLGLOBAL 0 |
| 8486 | # endif |
| 8487 | #endif |
| 8488 | |
| 8489 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8490 | find out it does not work in some platform. */ |
| 8491 | #ifndef LT_DLLAZY_OR_NOW |
| 8492 | # ifdef RTLD_LAZY |
| 8493 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8494 | # else |
| 8495 | # ifdef DL_LAZY |
| 8496 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8497 | # else |
| 8498 | # ifdef RTLD_NOW |
| 8499 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8500 | # else |
| 8501 | # ifdef DL_NOW |
| 8502 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8503 | # else |
| 8504 | # define LT_DLLAZY_OR_NOW 0 |
| 8505 | # endif |
| 8506 | # endif |
| 8507 | # endif |
| 8508 | # endif |
| 8509 | #endif |
| 8510 | |
| 8511 | #ifdef __cplusplus |
| 8512 | extern "C" void exit (int); |
| 8513 | #endif |
| 8514 | |
| 8515 | void fnord() { int i=42;} |
| 8516 | int main () |
| 8517 | { |
| 8518 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8519 | int status = $lt_dlunknown; |
| 8520 | |
| 8521 | if (self) |
| 8522 | { |
| 8523 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8524 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8525 | /* dlclose (self); */ |
| 8526 | } |
| 8527 | |
| 8528 | exit (status); |
| 8529 | } |
| 8530 | EOF |
| 8531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8532 | (eval $ac_link) 2>&5 |
| 8533 | ac_status=$? |
| 8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8535 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8536 | (./conftest; exit; ) 2>/dev/null |
| 8537 | lt_status=$? |
| 8538 | case x$lt_status in |
| 8539 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 8540 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 8541 | x$lt_unknown|x*) ;; |
| 8542 | esac |
| 8543 | else : |
| 8544 | # compilation failed |
| 8545 | |
| 8546 | fi |
| 8547 | fi |
| 8548 | rm -fr conftest* |
| 8549 | |
| 8550 | LIBS="$save_LIBS" |
| 8551 | |
| 8552 | fi |
| 8553 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 8554 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 |
| 8555 | fi |
| 8556 | fi |
| 8557 | |
| 8558 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 8559 | |
| 8560 | cat >>confdefs.h <<\_ACEOF |
| 8561 | #define NEED_USCORE 1 |
| 8562 | _ACEOF |
| 8563 | |
| 8564 | fi |
| 8565 | |
| 8566 | |
| 8567 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 8568 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 |
| 8569 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 8570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8571 | else |
| 8572 | # PORTME does your system automatically load deplibs for dlopen? |
| 8573 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 8574 | # For now, we just catch OSes we know something about -- in the |
| 8575 | # future, we'll try test this programmatically. |
| 8576 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8577 | case "$host_os" in |
| 8578 | aix3*|aix4.1.*|aix4.2.*) |
| 8579 | # Unknown whether this is true for these versions of AIX, but |
| 8580 | # we want this `case' here to explicitly catch those versions. |
| 8581 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8582 | ;; |
| 8583 | aix[45]*) |
| 8584 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8585 | ;; |
| 8586 | darwin*) |
| 8587 | # Assuming the user has installed a libdl from somewhere, this is true |
| 8588 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 8589 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8590 | ;; |
| 8591 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 8592 | # GNU and its variants, using gnu ld.so (Glibc) |
| 8593 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8594 | ;; |
| 8595 | hpux10*|hpux11*) |
| 8596 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8597 | ;; |
| 8598 | irix[12345]*|irix6.[01]*) |
| 8599 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 8600 | # know how it worked for any of those versions. |
| 8601 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8602 | ;; |
| 8603 | irix*) |
| 8604 | # The case above catches anything before 6.2, and it's known that |
| 8605 | # at 6.2 and later dlopen does load deplibs. |
| 8606 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8607 | ;; |
| 8608 | netbsd*) |
| 8609 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8610 | ;; |
| 8611 | openbsd*) |
| 8612 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8613 | ;; |
| 8614 | osf[1234]*) |
| 8615 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 8616 | # it did *not* use an RPATH in a shared library to find objects the |
| 8617 | # library depends on, so we explictly say `no'. |
| 8618 | libltdl_cv_sys_dlopen_deplibs=no |
| 8619 | ;; |
| 8620 | osf5.0|osf5.0a|osf5.1) |
| 8621 | # dlopen *does* load deplibs and with the right loader patch applied |
| 8622 | # it even uses RPATH in a shared library to search for shared objects |
| 8623 | # that the library depends on, but there's no easy way to know if that |
| 8624 | # patch is installed. Since this is the case, all we can really |
| 8625 | # say is unknown -- it depends on the patch being installed. If |
| 8626 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 8627 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 8628 | ;; |
| 8629 | osf*) |
| 8630 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 8631 | # the comments above for what we know about them. |
| 8632 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 8633 | # is used to find them so we can finally say `yes'. |
| 8634 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8635 | ;; |
| 8636 | solaris*) |
| 8637 | libltdl_cv_sys_dlopen_deplibs=yes |
| 8638 | ;; |
| 8639 | esac |
| 8640 | |
| 8641 | fi |
| 8642 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 8643 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 |
| 8644 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 8645 | |
| 8646 | cat >>confdefs.h <<\_ACEOF |
| 8647 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 8648 | _ACEOF |
| 8649 | |
| 8650 | fi |
| 8651 | |
| 8652 | |
| 8653 | for ac_header in argz.h |
| 8654 | do |
| 8655 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8656 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8657 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8661 | fi |
| 8662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8664 | else |
| 8665 | # Is the header compilable? |
| 8666 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8667 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8668 | cat >conftest.$ac_ext <<_ACEOF |
| 8669 | /* confdefs.h. */ |
| 8670 | _ACEOF |
| 8671 | cat confdefs.h >>conftest.$ac_ext |
| 8672 | cat >>conftest.$ac_ext <<_ACEOF |
| 8673 | /* end confdefs.h. */ |
| 8674 | $ac_includes_default |
| 8675 | #include <$ac_header> |
| 8676 | _ACEOF |
| 8677 | rm -f conftest.$ac_objext |
| 8678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8679 | (eval $ac_compile) 2>conftest.er1 |
| 8680 | ac_status=$? |
| 8681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8682 | rm -f conftest.er1 |
| 8683 | cat conftest.err >&5 |
| 8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8685 | (exit $ac_status); } && |
| 8686 | { ac_try='test -z "$ac_c_werror_flag" |
| 8687 | || test ! -s conftest.err' |
| 8688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8689 | (eval $ac_try) 2>&5 |
| 8690 | ac_status=$? |
| 8691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8692 | (exit $ac_status); }; } && |
| 8693 | { ac_try='test -s conftest.$ac_objext' |
| 8694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8695 | (eval $ac_try) 2>&5 |
| 8696 | ac_status=$? |
| 8697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8698 | (exit $ac_status); }; }; then |
| 8699 | ac_header_compiler=yes |
| 8700 | else |
| 8701 | echo "$as_me: failed program was:" >&5 |
| 8702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8703 | |
| 8704 | ac_header_compiler=no |
| 8705 | fi |
| 8706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8707 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8708 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8709 | |
| 8710 | # Is the header present? |
| 8711 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8712 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8713 | cat >conftest.$ac_ext <<_ACEOF |
| 8714 | /* confdefs.h. */ |
| 8715 | _ACEOF |
| 8716 | cat confdefs.h >>conftest.$ac_ext |
| 8717 | cat >>conftest.$ac_ext <<_ACEOF |
| 8718 | /* end confdefs.h. */ |
| 8719 | #include <$ac_header> |
| 8720 | _ACEOF |
| 8721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8723 | ac_status=$? |
| 8724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8725 | rm -f conftest.er1 |
| 8726 | cat conftest.err >&5 |
| 8727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8728 | (exit $ac_status); } >/dev/null; then |
| 8729 | if test -s conftest.err; then |
| 8730 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8731 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8732 | else |
| 8733 | ac_cpp_err= |
| 8734 | fi |
| 8735 | else |
| 8736 | ac_cpp_err=yes |
| 8737 | fi |
| 8738 | if test -z "$ac_cpp_err"; then |
| 8739 | ac_header_preproc=yes |
| 8740 | else |
| 8741 | echo "$as_me: failed program was:" >&5 |
| 8742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8743 | |
| 8744 | ac_header_preproc=no |
| 8745 | fi |
| 8746 | rm -f conftest.err conftest.$ac_ext |
| 8747 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8748 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8749 | |
| 8750 | # So? What about this header? |
| 8751 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8752 | yes:no: ) |
| 8753 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8754 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8755 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8756 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8757 | ac_header_preproc=yes |
| 8758 | ;; |
| 8759 | no:yes:* ) |
| 8760 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8761 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8762 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8763 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8764 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8765 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8766 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8767 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8768 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8769 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8770 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8771 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8772 | ( |
| 8773 | cat <<\_ASBOX |
| 8774 | ## ----------------------------------- ## |
| 8775 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8776 | ## ----------------------------------- ## |
| 8777 | _ASBOX |
| 8778 | ) | |
| 8779 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8780 | ;; |
| 8781 | esac |
| 8782 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8783 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8786 | else |
| 8787 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8788 | fi |
| 8789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8790 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8791 | |
| 8792 | fi |
| 8793 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8794 | cat >>confdefs.h <<_ACEOF |
| 8795 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8796 | _ACEOF |
| 8797 | |
| 8798 | fi |
| 8799 | |
| 8800 | done |
| 8801 | |
| 8802 | |
| 8803 | echo "$as_me:$LINENO: checking for error_t" >&5 |
| 8804 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 |
| 8805 | if test "${ac_cv_type_error_t+set}" = set; then |
| 8806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8807 | else |
| 8808 | cat >conftest.$ac_ext <<_ACEOF |
| 8809 | /* confdefs.h. */ |
| 8810 | _ACEOF |
| 8811 | cat confdefs.h >>conftest.$ac_ext |
| 8812 | cat >>conftest.$ac_ext <<_ACEOF |
| 8813 | /* end confdefs.h. */ |
| 8814 | #if HAVE_ARGZ_H |
| 8815 | # include <argz.h> |
| 8816 | #endif |
| 8817 | |
| 8818 | int |
| 8819 | main () |
| 8820 | { |
| 8821 | if ((error_t *) 0) |
| 8822 | return 0; |
| 8823 | if (sizeof (error_t)) |
| 8824 | return 0; |
| 8825 | ; |
| 8826 | return 0; |
| 8827 | } |
| 8828 | _ACEOF |
| 8829 | rm -f conftest.$ac_objext |
| 8830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8831 | (eval $ac_compile) 2>conftest.er1 |
| 8832 | ac_status=$? |
| 8833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8834 | rm -f conftest.er1 |
| 8835 | cat conftest.err >&5 |
| 8836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8837 | (exit $ac_status); } && |
| 8838 | { ac_try='test -z "$ac_c_werror_flag" |
| 8839 | || test ! -s conftest.err' |
| 8840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8841 | (eval $ac_try) 2>&5 |
| 8842 | ac_status=$? |
| 8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8844 | (exit $ac_status); }; } && |
| 8845 | { ac_try='test -s conftest.$ac_objext' |
| 8846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8847 | (eval $ac_try) 2>&5 |
| 8848 | ac_status=$? |
| 8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8850 | (exit $ac_status); }; }; then |
| 8851 | ac_cv_type_error_t=yes |
| 8852 | else |
| 8853 | echo "$as_me: failed program was:" >&5 |
| 8854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8855 | |
| 8856 | ac_cv_type_error_t=no |
| 8857 | fi |
| 8858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8859 | fi |
| 8860 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 8861 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 |
| 8862 | if test $ac_cv_type_error_t = yes; then |
| 8863 | |
| 8864 | cat >>confdefs.h <<_ACEOF |
| 8865 | #define HAVE_ERROR_T 1 |
| 8866 | _ACEOF |
| 8867 | |
| 8868 | |
| 8869 | else |
| 8870 | |
| 8871 | cat >>confdefs.h <<\_ACEOF |
| 8872 | #define error_t int |
| 8873 | _ACEOF |
| 8874 | |
| 8875 | fi |
| 8876 | |
| 8877 | |
| 8878 | |
| 8879 | |
| 8880 | |
| 8881 | |
| 8882 | |
| 8883 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 8884 | do |
| 8885 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8886 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8887 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8888 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8890 | else |
| 8891 | cat >conftest.$ac_ext <<_ACEOF |
| 8892 | /* confdefs.h. */ |
| 8893 | _ACEOF |
| 8894 | cat confdefs.h >>conftest.$ac_ext |
| 8895 | cat >>conftest.$ac_ext <<_ACEOF |
| 8896 | /* end confdefs.h. */ |
| 8897 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8899 | #define $ac_func innocuous_$ac_func |
| 8900 | |
| 8901 | /* System header to define __stub macros and hopefully few prototypes, |
| 8902 | which can conflict with char $ac_func (); below. |
| 8903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8904 | <limits.h> exists even on freestanding compilers. */ |
| 8905 | |
| 8906 | #ifdef __STDC__ |
| 8907 | # include <limits.h> |
| 8908 | #else |
| 8909 | # include <assert.h> |
| 8910 | #endif |
| 8911 | |
| 8912 | #undef $ac_func |
| 8913 | |
| 8914 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8915 | #ifdef __cplusplus |
| 8916 | extern "C" |
| 8917 | { |
| 8918 | #endif |
| 8919 | /* We use char because int might match the return type of a gcc2 |
| 8920 | builtin and then its argument prototype would still apply. */ |
| 8921 | char $ac_func (); |
| 8922 | /* The GNU C library defines this for functions which it implements |
| 8923 | to always fail with ENOSYS. Some functions are actually named |
| 8924 | something starting with __ and the normal name is an alias. */ |
| 8925 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8926 | choke me |
| 8927 | #else |
| 8928 | char (*f) () = $ac_func; |
| 8929 | #endif |
| 8930 | #ifdef __cplusplus |
| 8931 | } |
| 8932 | #endif |
| 8933 | |
| 8934 | int |
| 8935 | main () |
| 8936 | { |
| 8937 | return f != $ac_func; |
| 8938 | ; |
| 8939 | return 0; |
| 8940 | } |
| 8941 | _ACEOF |
| 8942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8944 | (eval $ac_link) 2>conftest.er1 |
| 8945 | ac_status=$? |
| 8946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8947 | rm -f conftest.er1 |
| 8948 | cat conftest.err >&5 |
| 8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8950 | (exit $ac_status); } && |
| 8951 | { ac_try='test -z "$ac_c_werror_flag" |
| 8952 | || test ! -s conftest.err' |
| 8953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8954 | (eval $ac_try) 2>&5 |
| 8955 | ac_status=$? |
| 8956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8957 | (exit $ac_status); }; } && |
| 8958 | { ac_try='test -s conftest$ac_exeext' |
| 8959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8960 | (eval $ac_try) 2>&5 |
| 8961 | ac_status=$? |
| 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8963 | (exit $ac_status); }; }; then |
| 8964 | eval "$as_ac_var=yes" |
| 8965 | else |
| 8966 | echo "$as_me: failed program was:" >&5 |
| 8967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8968 | |
| 8969 | eval "$as_ac_var=no" |
| 8970 | fi |
| 8971 | rm -f conftest.err conftest.$ac_objext \ |
| 8972 | conftest$ac_exeext conftest.$ac_ext |
| 8973 | fi |
| 8974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8975 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8976 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8977 | cat >>confdefs.h <<_ACEOF |
| 8978 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8979 | _ACEOF |
| 8980 | |
| 8981 | fi |
| 8982 | done |
| 8983 | |
| 8984 | |
| 8985 | |
| 8986 | |
| 8987 | |
| 8988 | |
| 8989 | |
| 8990 | |
| 8991 | |
| 8992 | |
| 8993 | |
| 8994 | |
| 8995 | |
| 8996 | |
| 8997 | |
| 8998 | |
| 8999 | |
| 9000 | |
| 9001 | |
| 9002 | |
| 9003 | |
| 9004 | |
| 9005 | |
| 9006 | |
| 9007 | |
| 9008 | |
| 9009 | |
| 9010 | |
| 9011 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 9012 | stdio.h unistd.h |
| 9013 | do |
| 9014 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9020 | fi |
| 9021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9023 | else |
| 9024 | # Is the header compilable? |
| 9025 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9026 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9027 | cat >conftest.$ac_ext <<_ACEOF |
| 9028 | /* confdefs.h. */ |
| 9029 | _ACEOF |
| 9030 | cat confdefs.h >>conftest.$ac_ext |
| 9031 | cat >>conftest.$ac_ext <<_ACEOF |
| 9032 | /* end confdefs.h. */ |
| 9033 | $ac_includes_default |
| 9034 | #include <$ac_header> |
| 9035 | _ACEOF |
| 9036 | rm -f conftest.$ac_objext |
| 9037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9038 | (eval $ac_compile) 2>conftest.er1 |
| 9039 | ac_status=$? |
| 9040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9041 | rm -f conftest.er1 |
| 9042 | cat conftest.err >&5 |
| 9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9044 | (exit $ac_status); } && |
| 9045 | { ac_try='test -z "$ac_c_werror_flag" |
| 9046 | || test ! -s conftest.err' |
| 9047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9048 | (eval $ac_try) 2>&5 |
| 9049 | ac_status=$? |
| 9050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9051 | (exit $ac_status); }; } && |
| 9052 | { ac_try='test -s conftest.$ac_objext' |
| 9053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9054 | (eval $ac_try) 2>&5 |
| 9055 | ac_status=$? |
| 9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9057 | (exit $ac_status); }; }; then |
| 9058 | ac_header_compiler=yes |
| 9059 | else |
| 9060 | echo "$as_me: failed program was:" >&5 |
| 9061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9062 | |
| 9063 | ac_header_compiler=no |
| 9064 | fi |
| 9065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9066 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9067 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9068 | |
| 9069 | # Is the header present? |
| 9070 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9071 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9072 | cat >conftest.$ac_ext <<_ACEOF |
| 9073 | /* confdefs.h. */ |
| 9074 | _ACEOF |
| 9075 | cat confdefs.h >>conftest.$ac_ext |
| 9076 | cat >>conftest.$ac_ext <<_ACEOF |
| 9077 | /* end confdefs.h. */ |
| 9078 | #include <$ac_header> |
| 9079 | _ACEOF |
| 9080 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9081 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9082 | ac_status=$? |
| 9083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9084 | rm -f conftest.er1 |
| 9085 | cat conftest.err >&5 |
| 9086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9087 | (exit $ac_status); } >/dev/null; then |
| 9088 | if test -s conftest.err; then |
| 9089 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9090 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9091 | else |
| 9092 | ac_cpp_err= |
| 9093 | fi |
| 9094 | else |
| 9095 | ac_cpp_err=yes |
| 9096 | fi |
| 9097 | if test -z "$ac_cpp_err"; then |
| 9098 | ac_header_preproc=yes |
| 9099 | else |
| 9100 | echo "$as_me: failed program was:" >&5 |
| 9101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9102 | |
| 9103 | ac_header_preproc=no |
| 9104 | fi |
| 9105 | rm -f conftest.err conftest.$ac_ext |
| 9106 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9107 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9108 | |
| 9109 | # So? What about this header? |
| 9110 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9111 | yes:no: ) |
| 9112 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9113 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9115 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9116 | ac_header_preproc=yes |
| 9117 | ;; |
| 9118 | no:yes:* ) |
| 9119 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9120 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9121 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9122 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9123 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9124 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9125 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9126 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9127 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9128 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9129 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9130 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9131 | ( |
| 9132 | cat <<\_ASBOX |
| 9133 | ## ----------------------------------- ## |
| 9134 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9135 | ## ----------------------------------- ## |
| 9136 | _ASBOX |
| 9137 | ) | |
| 9138 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9139 | ;; |
| 9140 | esac |
| 9141 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9142 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9143 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9145 | else |
| 9146 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9147 | fi |
| 9148 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9149 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9150 | |
| 9151 | fi |
| 9152 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9153 | cat >>confdefs.h <<_ACEOF |
| 9154 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9155 | _ACEOF |
| 9156 | |
| 9157 | fi |
| 9158 | |
| 9159 | done |
| 9160 | |
| 9161 | |
| 9162 | |
| 9163 | |
| 9164 | |
| 9165 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 9166 | do |
| 9167 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9169 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9171 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9173 | fi |
| 9174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9176 | else |
| 9177 | # Is the header compilable? |
| 9178 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9179 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9180 | cat >conftest.$ac_ext <<_ACEOF |
| 9181 | /* confdefs.h. */ |
| 9182 | _ACEOF |
| 9183 | cat confdefs.h >>conftest.$ac_ext |
| 9184 | cat >>conftest.$ac_ext <<_ACEOF |
| 9185 | /* end confdefs.h. */ |
| 9186 | $ac_includes_default |
| 9187 | #include <$ac_header> |
| 9188 | _ACEOF |
| 9189 | rm -f conftest.$ac_objext |
| 9190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9191 | (eval $ac_compile) 2>conftest.er1 |
| 9192 | ac_status=$? |
| 9193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9194 | rm -f conftest.er1 |
| 9195 | cat conftest.err >&5 |
| 9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9197 | (exit $ac_status); } && |
| 9198 | { ac_try='test -z "$ac_c_werror_flag" |
| 9199 | || test ! -s conftest.err' |
| 9200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9201 | (eval $ac_try) 2>&5 |
| 9202 | ac_status=$? |
| 9203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9204 | (exit $ac_status); }; } && |
| 9205 | { ac_try='test -s conftest.$ac_objext' |
| 9206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9207 | (eval $ac_try) 2>&5 |
| 9208 | ac_status=$? |
| 9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9210 | (exit $ac_status); }; }; then |
| 9211 | ac_header_compiler=yes |
| 9212 | else |
| 9213 | echo "$as_me: failed program was:" >&5 |
| 9214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9215 | |
| 9216 | ac_header_compiler=no |
| 9217 | fi |
| 9218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9219 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9220 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9221 | |
| 9222 | # Is the header present? |
| 9223 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9224 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9225 | cat >conftest.$ac_ext <<_ACEOF |
| 9226 | /* confdefs.h. */ |
| 9227 | _ACEOF |
| 9228 | cat confdefs.h >>conftest.$ac_ext |
| 9229 | cat >>conftest.$ac_ext <<_ACEOF |
| 9230 | /* end confdefs.h. */ |
| 9231 | #include <$ac_header> |
| 9232 | _ACEOF |
| 9233 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9234 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9235 | ac_status=$? |
| 9236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9237 | rm -f conftest.er1 |
| 9238 | cat conftest.err >&5 |
| 9239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9240 | (exit $ac_status); } >/dev/null; then |
| 9241 | if test -s conftest.err; then |
| 9242 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9243 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9244 | else |
| 9245 | ac_cpp_err= |
| 9246 | fi |
| 9247 | else |
| 9248 | ac_cpp_err=yes |
| 9249 | fi |
| 9250 | if test -z "$ac_cpp_err"; then |
| 9251 | ac_header_preproc=yes |
| 9252 | else |
| 9253 | echo "$as_me: failed program was:" >&5 |
| 9254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9255 | |
| 9256 | ac_header_preproc=no |
| 9257 | fi |
| 9258 | rm -f conftest.err conftest.$ac_ext |
| 9259 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9260 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9261 | |
| 9262 | # So? What about this header? |
| 9263 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9264 | yes:no: ) |
| 9265 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9266 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9267 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9268 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9269 | ac_header_preproc=yes |
| 9270 | ;; |
| 9271 | no:yes:* ) |
| 9272 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9273 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9274 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9275 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9276 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9277 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9278 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9279 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9280 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9281 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9282 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9283 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9284 | ( |
| 9285 | cat <<\_ASBOX |
| 9286 | ## ----------------------------------- ## |
| 9287 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9288 | ## ----------------------------------- ## |
| 9289 | _ASBOX |
| 9290 | ) | |
| 9291 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9292 | ;; |
| 9293 | esac |
| 9294 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9298 | else |
| 9299 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9300 | fi |
| 9301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9302 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9303 | |
| 9304 | fi |
| 9305 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9306 | cat >>confdefs.h <<_ACEOF |
| 9307 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9308 | _ACEOF |
| 9309 | |
| 9310 | fi |
| 9311 | |
| 9312 | done |
| 9313 | |
| 9314 | |
| 9315 | |
| 9316 | for ac_header in string.h strings.h |
| 9317 | do |
| 9318 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9320 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9321 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9322 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9324 | fi |
| 9325 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9326 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9327 | else |
| 9328 | # Is the header compilable? |
| 9329 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9330 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9331 | cat >conftest.$ac_ext <<_ACEOF |
| 9332 | /* confdefs.h. */ |
| 9333 | _ACEOF |
| 9334 | cat confdefs.h >>conftest.$ac_ext |
| 9335 | cat >>conftest.$ac_ext <<_ACEOF |
| 9336 | /* end confdefs.h. */ |
| 9337 | $ac_includes_default |
| 9338 | #include <$ac_header> |
| 9339 | _ACEOF |
| 9340 | rm -f conftest.$ac_objext |
| 9341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9342 | (eval $ac_compile) 2>conftest.er1 |
| 9343 | ac_status=$? |
| 9344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9345 | rm -f conftest.er1 |
| 9346 | cat conftest.err >&5 |
| 9347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9348 | (exit $ac_status); } && |
| 9349 | { ac_try='test -z "$ac_c_werror_flag" |
| 9350 | || test ! -s conftest.err' |
| 9351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9352 | (eval $ac_try) 2>&5 |
| 9353 | ac_status=$? |
| 9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9355 | (exit $ac_status); }; } && |
| 9356 | { ac_try='test -s conftest.$ac_objext' |
| 9357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9358 | (eval $ac_try) 2>&5 |
| 9359 | ac_status=$? |
| 9360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9361 | (exit $ac_status); }; }; then |
| 9362 | ac_header_compiler=yes |
| 9363 | else |
| 9364 | echo "$as_me: failed program was:" >&5 |
| 9365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9366 | |
| 9367 | ac_header_compiler=no |
| 9368 | fi |
| 9369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9370 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9371 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9372 | |
| 9373 | # Is the header present? |
| 9374 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9375 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9376 | cat >conftest.$ac_ext <<_ACEOF |
| 9377 | /* confdefs.h. */ |
| 9378 | _ACEOF |
| 9379 | cat confdefs.h >>conftest.$ac_ext |
| 9380 | cat >>conftest.$ac_ext <<_ACEOF |
| 9381 | /* end confdefs.h. */ |
| 9382 | #include <$ac_header> |
| 9383 | _ACEOF |
| 9384 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9385 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9386 | ac_status=$? |
| 9387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9388 | rm -f conftest.er1 |
| 9389 | cat conftest.err >&5 |
| 9390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9391 | (exit $ac_status); } >/dev/null; then |
| 9392 | if test -s conftest.err; then |
| 9393 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9394 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9395 | else |
| 9396 | ac_cpp_err= |
| 9397 | fi |
| 9398 | else |
| 9399 | ac_cpp_err=yes |
| 9400 | fi |
| 9401 | if test -z "$ac_cpp_err"; then |
| 9402 | ac_header_preproc=yes |
| 9403 | else |
| 9404 | echo "$as_me: failed program was:" >&5 |
| 9405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9406 | |
| 9407 | ac_header_preproc=no |
| 9408 | fi |
| 9409 | rm -f conftest.err conftest.$ac_ext |
| 9410 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9411 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9412 | |
| 9413 | # So? What about this header? |
| 9414 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9415 | yes:no: ) |
| 9416 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9417 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9418 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9419 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9420 | ac_header_preproc=yes |
| 9421 | ;; |
| 9422 | no:yes:* ) |
| 9423 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9424 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9425 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9426 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9427 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9428 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9429 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9430 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9431 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9432 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9433 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9434 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9435 | ( |
| 9436 | cat <<\_ASBOX |
| 9437 | ## ----------------------------------- ## |
| 9438 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9439 | ## ----------------------------------- ## |
| 9440 | _ASBOX |
| 9441 | ) | |
| 9442 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9443 | ;; |
| 9444 | esac |
| 9445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9449 | else |
| 9450 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9451 | fi |
| 9452 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9453 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9454 | |
| 9455 | fi |
| 9456 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9457 | cat >>confdefs.h <<_ACEOF |
| 9458 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9459 | _ACEOF |
| 9460 | break |
| 9461 | fi |
| 9462 | |
| 9463 | done |
| 9464 | |
| 9465 | |
| 9466 | |
| 9467 | |
| 9468 | for ac_func in strchr index |
| 9469 | do |
| 9470 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9471 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9472 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9473 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9475 | else |
| 9476 | cat >conftest.$ac_ext <<_ACEOF |
| 9477 | /* confdefs.h. */ |
| 9478 | _ACEOF |
| 9479 | cat confdefs.h >>conftest.$ac_ext |
| 9480 | cat >>conftest.$ac_ext <<_ACEOF |
| 9481 | /* end confdefs.h. */ |
| 9482 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9483 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9484 | #define $ac_func innocuous_$ac_func |
| 9485 | |
| 9486 | /* System header to define __stub macros and hopefully few prototypes, |
| 9487 | which can conflict with char $ac_func (); below. |
| 9488 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9489 | <limits.h> exists even on freestanding compilers. */ |
| 9490 | |
| 9491 | #ifdef __STDC__ |
| 9492 | # include <limits.h> |
| 9493 | #else |
| 9494 | # include <assert.h> |
| 9495 | #endif |
| 9496 | |
| 9497 | #undef $ac_func |
| 9498 | |
| 9499 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9500 | #ifdef __cplusplus |
| 9501 | extern "C" |
| 9502 | { |
| 9503 | #endif |
| 9504 | /* We use char because int might match the return type of a gcc2 |
| 9505 | builtin and then its argument prototype would still apply. */ |
| 9506 | char $ac_func (); |
| 9507 | /* The GNU C library defines this for functions which it implements |
| 9508 | to always fail with ENOSYS. Some functions are actually named |
| 9509 | something starting with __ and the normal name is an alias. */ |
| 9510 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9511 | choke me |
| 9512 | #else |
| 9513 | char (*f) () = $ac_func; |
| 9514 | #endif |
| 9515 | #ifdef __cplusplus |
| 9516 | } |
| 9517 | #endif |
| 9518 | |
| 9519 | int |
| 9520 | main () |
| 9521 | { |
| 9522 | return f != $ac_func; |
| 9523 | ; |
| 9524 | return 0; |
| 9525 | } |
| 9526 | _ACEOF |
| 9527 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9529 | (eval $ac_link) 2>conftest.er1 |
| 9530 | ac_status=$? |
| 9531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9532 | rm -f conftest.er1 |
| 9533 | cat conftest.err >&5 |
| 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9535 | (exit $ac_status); } && |
| 9536 | { ac_try='test -z "$ac_c_werror_flag" |
| 9537 | || test ! -s conftest.err' |
| 9538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9539 | (eval $ac_try) 2>&5 |
| 9540 | ac_status=$? |
| 9541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9542 | (exit $ac_status); }; } && |
| 9543 | { ac_try='test -s conftest$ac_exeext' |
| 9544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9545 | (eval $ac_try) 2>&5 |
| 9546 | ac_status=$? |
| 9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9548 | (exit $ac_status); }; }; then |
| 9549 | eval "$as_ac_var=yes" |
| 9550 | else |
| 9551 | echo "$as_me: failed program was:" >&5 |
| 9552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9553 | |
| 9554 | eval "$as_ac_var=no" |
| 9555 | fi |
| 9556 | rm -f conftest.err conftest.$ac_objext \ |
| 9557 | conftest$ac_exeext conftest.$ac_ext |
| 9558 | fi |
| 9559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9560 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9561 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9562 | cat >>confdefs.h <<_ACEOF |
| 9563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9564 | _ACEOF |
| 9565 | break |
| 9566 | fi |
| 9567 | done |
| 9568 | |
| 9569 | |
| 9570 | |
| 9571 | for ac_func in strrchr rindex |
| 9572 | do |
| 9573 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9574 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9575 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9576 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9578 | else |
| 9579 | cat >conftest.$ac_ext <<_ACEOF |
| 9580 | /* confdefs.h. */ |
| 9581 | _ACEOF |
| 9582 | cat confdefs.h >>conftest.$ac_ext |
| 9583 | cat >>conftest.$ac_ext <<_ACEOF |
| 9584 | /* end confdefs.h. */ |
| 9585 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9587 | #define $ac_func innocuous_$ac_func |
| 9588 | |
| 9589 | /* System header to define __stub macros and hopefully few prototypes, |
| 9590 | which can conflict with char $ac_func (); below. |
| 9591 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9592 | <limits.h> exists even on freestanding compilers. */ |
| 9593 | |
| 9594 | #ifdef __STDC__ |
| 9595 | # include <limits.h> |
| 9596 | #else |
| 9597 | # include <assert.h> |
| 9598 | #endif |
| 9599 | |
| 9600 | #undef $ac_func |
| 9601 | |
| 9602 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9603 | #ifdef __cplusplus |
| 9604 | extern "C" |
| 9605 | { |
| 9606 | #endif |
| 9607 | /* We use char because int might match the return type of a gcc2 |
| 9608 | builtin and then its argument prototype would still apply. */ |
| 9609 | char $ac_func (); |
| 9610 | /* The GNU C library defines this for functions which it implements |
| 9611 | to always fail with ENOSYS. Some functions are actually named |
| 9612 | something starting with __ and the normal name is an alias. */ |
| 9613 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9614 | choke me |
| 9615 | #else |
| 9616 | char (*f) () = $ac_func; |
| 9617 | #endif |
| 9618 | #ifdef __cplusplus |
| 9619 | } |
| 9620 | #endif |
| 9621 | |
| 9622 | int |
| 9623 | main () |
| 9624 | { |
| 9625 | return f != $ac_func; |
| 9626 | ; |
| 9627 | return 0; |
| 9628 | } |
| 9629 | _ACEOF |
| 9630 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9632 | (eval $ac_link) 2>conftest.er1 |
| 9633 | ac_status=$? |
| 9634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9635 | rm -f conftest.er1 |
| 9636 | cat conftest.err >&5 |
| 9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9638 | (exit $ac_status); } && |
| 9639 | { ac_try='test -z "$ac_c_werror_flag" |
| 9640 | || test ! -s conftest.err' |
| 9641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9642 | (eval $ac_try) 2>&5 |
| 9643 | ac_status=$? |
| 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9645 | (exit $ac_status); }; } && |
| 9646 | { ac_try='test -s conftest$ac_exeext' |
| 9647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9648 | (eval $ac_try) 2>&5 |
| 9649 | ac_status=$? |
| 9650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9651 | (exit $ac_status); }; }; then |
| 9652 | eval "$as_ac_var=yes" |
| 9653 | else |
| 9654 | echo "$as_me: failed program was:" >&5 |
| 9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9656 | |
| 9657 | eval "$as_ac_var=no" |
| 9658 | fi |
| 9659 | rm -f conftest.err conftest.$ac_objext \ |
| 9660 | conftest$ac_exeext conftest.$ac_ext |
| 9661 | fi |
| 9662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9663 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9664 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9665 | cat >>confdefs.h <<_ACEOF |
| 9666 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9667 | _ACEOF |
| 9668 | break |
| 9669 | fi |
| 9670 | done |
| 9671 | |
| 9672 | |
| 9673 | |
| 9674 | for ac_func in memcpy bcopy |
| 9675 | do |
| 9676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9677 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9679 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9681 | else |
| 9682 | cat >conftest.$ac_ext <<_ACEOF |
| 9683 | /* confdefs.h. */ |
| 9684 | _ACEOF |
| 9685 | cat confdefs.h >>conftest.$ac_ext |
| 9686 | cat >>conftest.$ac_ext <<_ACEOF |
| 9687 | /* end confdefs.h. */ |
| 9688 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9690 | #define $ac_func innocuous_$ac_func |
| 9691 | |
| 9692 | /* System header to define __stub macros and hopefully few prototypes, |
| 9693 | which can conflict with char $ac_func (); below. |
| 9694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9695 | <limits.h> exists even on freestanding compilers. */ |
| 9696 | |
| 9697 | #ifdef __STDC__ |
| 9698 | # include <limits.h> |
| 9699 | #else |
| 9700 | # include <assert.h> |
| 9701 | #endif |
| 9702 | |
| 9703 | #undef $ac_func |
| 9704 | |
| 9705 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9706 | #ifdef __cplusplus |
| 9707 | extern "C" |
| 9708 | { |
| 9709 | #endif |
| 9710 | /* We use char because int might match the return type of a gcc2 |
| 9711 | builtin and then its argument prototype would still apply. */ |
| 9712 | char $ac_func (); |
| 9713 | /* The GNU C library defines this for functions which it implements |
| 9714 | to always fail with ENOSYS. Some functions are actually named |
| 9715 | something starting with __ and the normal name is an alias. */ |
| 9716 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9717 | choke me |
| 9718 | #else |
| 9719 | char (*f) () = $ac_func; |
| 9720 | #endif |
| 9721 | #ifdef __cplusplus |
| 9722 | } |
| 9723 | #endif |
| 9724 | |
| 9725 | int |
| 9726 | main () |
| 9727 | { |
| 9728 | return f != $ac_func; |
| 9729 | ; |
| 9730 | return 0; |
| 9731 | } |
| 9732 | _ACEOF |
| 9733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9735 | (eval $ac_link) 2>conftest.er1 |
| 9736 | ac_status=$? |
| 9737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9738 | rm -f conftest.er1 |
| 9739 | cat conftest.err >&5 |
| 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9741 | (exit $ac_status); } && |
| 9742 | { ac_try='test -z "$ac_c_werror_flag" |
| 9743 | || test ! -s conftest.err' |
| 9744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9745 | (eval $ac_try) 2>&5 |
| 9746 | ac_status=$? |
| 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9748 | (exit $ac_status); }; } && |
| 9749 | { ac_try='test -s conftest$ac_exeext' |
| 9750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9751 | (eval $ac_try) 2>&5 |
| 9752 | ac_status=$? |
| 9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9754 | (exit $ac_status); }; }; then |
| 9755 | eval "$as_ac_var=yes" |
| 9756 | else |
| 9757 | echo "$as_me: failed program was:" >&5 |
| 9758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9759 | |
| 9760 | eval "$as_ac_var=no" |
| 9761 | fi |
| 9762 | rm -f conftest.err conftest.$ac_objext \ |
| 9763 | conftest$ac_exeext conftest.$ac_ext |
| 9764 | fi |
| 9765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9766 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9767 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9768 | cat >>confdefs.h <<_ACEOF |
| 9769 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9770 | _ACEOF |
| 9771 | break |
| 9772 | fi |
| 9773 | done |
| 9774 | |
| 9775 | |
| 9776 | |
| 9777 | for ac_func in memmove strcmp |
| 9778 | do |
| 9779 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9780 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9781 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9782 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9784 | else |
| 9785 | cat >conftest.$ac_ext <<_ACEOF |
| 9786 | /* confdefs.h. */ |
| 9787 | _ACEOF |
| 9788 | cat confdefs.h >>conftest.$ac_ext |
| 9789 | cat >>conftest.$ac_ext <<_ACEOF |
| 9790 | /* end confdefs.h. */ |
| 9791 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9792 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9793 | #define $ac_func innocuous_$ac_func |
| 9794 | |
| 9795 | /* System header to define __stub macros and hopefully few prototypes, |
| 9796 | which can conflict with char $ac_func (); below. |
| 9797 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9798 | <limits.h> exists even on freestanding compilers. */ |
| 9799 | |
| 9800 | #ifdef __STDC__ |
| 9801 | # include <limits.h> |
| 9802 | #else |
| 9803 | # include <assert.h> |
| 9804 | #endif |
| 9805 | |
| 9806 | #undef $ac_func |
| 9807 | |
| 9808 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9809 | #ifdef __cplusplus |
| 9810 | extern "C" |
| 9811 | { |
| 9812 | #endif |
| 9813 | /* We use char because int might match the return type of a gcc2 |
| 9814 | builtin and then its argument prototype would still apply. */ |
| 9815 | char $ac_func (); |
| 9816 | /* The GNU C library defines this for functions which it implements |
| 9817 | to always fail with ENOSYS. Some functions are actually named |
| 9818 | something starting with __ and the normal name is an alias. */ |
| 9819 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9820 | choke me |
| 9821 | #else |
| 9822 | char (*f) () = $ac_func; |
| 9823 | #endif |
| 9824 | #ifdef __cplusplus |
| 9825 | } |
| 9826 | #endif |
| 9827 | |
| 9828 | int |
| 9829 | main () |
| 9830 | { |
| 9831 | return f != $ac_func; |
| 9832 | ; |
| 9833 | return 0; |
| 9834 | } |
| 9835 | _ACEOF |
| 9836 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9838 | (eval $ac_link) 2>conftest.er1 |
| 9839 | ac_status=$? |
| 9840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9841 | rm -f conftest.er1 |
| 9842 | cat conftest.err >&5 |
| 9843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9844 | (exit $ac_status); } && |
| 9845 | { ac_try='test -z "$ac_c_werror_flag" |
| 9846 | || test ! -s conftest.err' |
| 9847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9848 | (eval $ac_try) 2>&5 |
| 9849 | ac_status=$? |
| 9850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9851 | (exit $ac_status); }; } && |
| 9852 | { ac_try='test -s conftest$ac_exeext' |
| 9853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9854 | (eval $ac_try) 2>&5 |
| 9855 | ac_status=$? |
| 9856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9857 | (exit $ac_status); }; }; then |
| 9858 | eval "$as_ac_var=yes" |
| 9859 | else |
| 9860 | echo "$as_me: failed program was:" >&5 |
| 9861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9862 | |
| 9863 | eval "$as_ac_var=no" |
| 9864 | fi |
| 9865 | rm -f conftest.err conftest.$ac_objext \ |
| 9866 | conftest$ac_exeext conftest.$ac_ext |
| 9867 | fi |
| 9868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9869 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9870 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9871 | cat >>confdefs.h <<_ACEOF |
| 9872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9873 | _ACEOF |
| 9874 | |
| 9875 | fi |
| 9876 | done |
| 9877 | |
| 9878 | |
| 9879 | |
| 9880 | |
| 9881 | for ac_func in closedir opendir readdir |
| 9882 | do |
| 9883 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9884 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9885 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9886 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9888 | else |
| 9889 | cat >conftest.$ac_ext <<_ACEOF |
| 9890 | /* confdefs.h. */ |
| 9891 | _ACEOF |
| 9892 | cat confdefs.h >>conftest.$ac_ext |
| 9893 | cat >>conftest.$ac_ext <<_ACEOF |
| 9894 | /* end confdefs.h. */ |
| 9895 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9897 | #define $ac_func innocuous_$ac_func |
| 9898 | |
| 9899 | /* System header to define __stub macros and hopefully few prototypes, |
| 9900 | which can conflict with char $ac_func (); below. |
| 9901 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9902 | <limits.h> exists even on freestanding compilers. */ |
| 9903 | |
| 9904 | #ifdef __STDC__ |
| 9905 | # include <limits.h> |
| 9906 | #else |
| 9907 | # include <assert.h> |
| 9908 | #endif |
| 9909 | |
| 9910 | #undef $ac_func |
| 9911 | |
| 9912 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9913 | #ifdef __cplusplus |
| 9914 | extern "C" |
| 9915 | { |
| 9916 | #endif |
| 9917 | /* We use char because int might match the return type of a gcc2 |
| 9918 | builtin and then its argument prototype would still apply. */ |
| 9919 | char $ac_func (); |
| 9920 | /* The GNU C library defines this for functions which it implements |
| 9921 | to always fail with ENOSYS. Some functions are actually named |
| 9922 | something starting with __ and the normal name is an alias. */ |
| 9923 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9924 | choke me |
| 9925 | #else |
| 9926 | char (*f) () = $ac_func; |
| 9927 | #endif |
| 9928 | #ifdef __cplusplus |
| 9929 | } |
| 9930 | #endif |
| 9931 | |
| 9932 | int |
| 9933 | main () |
| 9934 | { |
| 9935 | return f != $ac_func; |
| 9936 | ; |
| 9937 | return 0; |
| 9938 | } |
| 9939 | _ACEOF |
| 9940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9942 | (eval $ac_link) 2>conftest.er1 |
| 9943 | ac_status=$? |
| 9944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9945 | rm -f conftest.er1 |
| 9946 | cat conftest.err >&5 |
| 9947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9948 | (exit $ac_status); } && |
| 9949 | { ac_try='test -z "$ac_c_werror_flag" |
| 9950 | || test ! -s conftest.err' |
| 9951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9952 | (eval $ac_try) 2>&5 |
| 9953 | ac_status=$? |
| 9954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9955 | (exit $ac_status); }; } && |
| 9956 | { ac_try='test -s conftest$ac_exeext' |
| 9957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9958 | (eval $ac_try) 2>&5 |
| 9959 | ac_status=$? |
| 9960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9961 | (exit $ac_status); }; }; then |
| 9962 | eval "$as_ac_var=yes" |
| 9963 | else |
| 9964 | echo "$as_me: failed program was:" >&5 |
| 9965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9966 | |
| 9967 | eval "$as_ac_var=no" |
| 9968 | fi |
| 9969 | rm -f conftest.err conftest.$ac_objext \ |
| 9970 | conftest$ac_exeext conftest.$ac_ext |
| 9971 | fi |
| 9972 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9973 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9974 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9975 | cat >>confdefs.h <<_ACEOF |
| 9976 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9977 | _ACEOF |
| 9978 | |
| 9979 | fi |
| 9980 | done |
| 9981 | |
| 9982 | |
| 9983 | # Check whether --enable-shared or --disable-shared was given. |
| 9984 | if test "${enable_shared+set}" = set; then |
| 9985 | enableval="$enable_shared" |
| 9986 | p=${PACKAGE-default} |
| 9987 | case $enableval in |
| 9988 | yes) enable_shared=yes ;; |
| 9989 | no) enable_shared=no ;; |
| 9990 | *) |
| 9991 | enable_shared=no |
| 9992 | # Look at the argument we got. We use all the common list separators. |
| 9993 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9994 | for pkg in $enableval; do |
| 9995 | IFS="$lt_save_ifs" |
| 9996 | if test "X$pkg" = "X$p"; then |
| 9997 | enable_shared=yes |
| 9998 | fi |
| 9999 | done |
| 10000 | IFS="$lt_save_ifs" |
| 10001 | ;; |
| 10002 | esac |
| 10003 | else |
| 10004 | enable_shared=yes |
| 10005 | fi; |
| 10006 | |
| 10007 | # Check whether --enable-static or --disable-static was given. |
| 10008 | if test "${enable_static+set}" = set; then |
| 10009 | enableval="$enable_static" |
| 10010 | p=${PACKAGE-default} |
| 10011 | case $enableval in |
| 10012 | yes) enable_static=yes ;; |
| 10013 | no) enable_static=no ;; |
| 10014 | *) |
| 10015 | enable_static=no |
| 10016 | # Look at the argument we got. We use all the common list separators. |
| 10017 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10018 | for pkg in $enableval; do |
| 10019 | IFS="$lt_save_ifs" |
| 10020 | if test "X$pkg" = "X$p"; then |
| 10021 | enable_static=yes |
| 10022 | fi |
| 10023 | done |
| 10024 | IFS="$lt_save_ifs" |
| 10025 | ;; |
| 10026 | esac |
| 10027 | else |
| 10028 | enable_static=yes |
| 10029 | fi; |
| 10030 | |
| 10031 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 10032 | if test "${enable_fast_install+set}" = set; then |
| 10033 | enableval="$enable_fast_install" |
| 10034 | p=${PACKAGE-default} |
| 10035 | case $enableval in |
| 10036 | yes) enable_fast_install=yes ;; |
| 10037 | no) enable_fast_install=no ;; |
| 10038 | *) |
| 10039 | enable_fast_install=no |
| 10040 | # Look at the argument we got. We use all the common list separators. |
| 10041 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10042 | for pkg in $enableval; do |
| 10043 | IFS="$lt_save_ifs" |
| 10044 | if test "X$pkg" = "X$p"; then |
| 10045 | enable_fast_install=yes |
| 10046 | fi |
| 10047 | done |
| 10048 | IFS="$lt_save_ifs" |
| 10049 | ;; |
| 10050 | esac |
| 10051 | else |
| 10052 | enable_fast_install=yes |
| 10053 | fi; |
| 10054 | |
| 10055 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 10056 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 10057 | if test "${lt_cv_path_SED+set}" = set; then |
| 10058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10059 | else |
| 10060 | # Loop through the user's path and test for sed and gsed. |
| 10061 | # Then use that list of sed's as ones to test for truncation. |
| 10062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10063 | for as_dir in $PATH |
| 10064 | do |
| 10065 | IFS=$as_save_IFS |
| 10066 | test -z "$as_dir" && as_dir=. |
| 10067 | for lt_ac_prog in sed gsed; do |
| 10068 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10069 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 10070 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 10071 | fi |
| 10072 | done |
| 10073 | done |
| 10074 | done |
| 10075 | lt_ac_max=0 |
| 10076 | lt_ac_count=0 |
| 10077 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 10078 | # along with /bin/sed that truncates output. |
| 10079 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 10080 | test ! -f $lt_ac_sed && break |
| 10081 | cat /dev/null > conftest.in |
| 10082 | lt_ac_count=0 |
| 10083 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 10084 | # Check for GNU sed and select it if it is found. |
| 10085 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 10086 | lt_cv_path_SED=$lt_ac_sed |
| 10087 | break |
| 10088 | fi |
| 10089 | while true; do |
| 10090 | cat conftest.in conftest.in >conftest.tmp |
| 10091 | mv conftest.tmp conftest.in |
| 10092 | cp conftest.in conftest.nl |
| 10093 | echo >>conftest.nl |
| 10094 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 10095 | cmp -s conftest.out conftest.nl || break |
| 10096 | # 10000 chars as input seems more than enough |
| 10097 | test $lt_ac_count -gt 10 && break |
| 10098 | lt_ac_count=`expr $lt_ac_count + 1` |
| 10099 | if test $lt_ac_count -gt $lt_ac_max; then |
| 10100 | lt_ac_max=$lt_ac_count |
| 10101 | lt_cv_path_SED=$lt_ac_sed |
| 10102 | fi |
| 10103 | done |
| 10104 | done |
| 10105 | |
| 10106 | fi |
| 10107 | |
| 10108 | SED=$lt_cv_path_SED |
| 10109 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 10110 | echo "${ECHO_T}$SED" >&6 |
| 10111 | |
| 10112 | |
| 10113 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 10114 | if test "${with_gnu_ld+set}" = set; then |
| 10115 | withval="$with_gnu_ld" |
| 10116 | test "$withval" = no || with_gnu_ld=yes |
| 10117 | else |
| 10118 | with_gnu_ld=no |
| 10119 | fi; |
| 10120 | ac_prog=ld |
| 10121 | if test "$GCC" = yes; then |
| 10122 | # Check if gcc -print-prog-name=ld gives a path. |
| 10123 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 10124 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 10125 | case $host in |
| 10126 | *-*-mingw*) |
| 10127 | # gcc leaves a trailing carriage return which upsets mingw |
| 10128 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10129 | *) |
| 10130 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10131 | esac |
| 10132 | case $ac_prog in |
| 10133 | # Accept absolute paths. |
| 10134 | [\\/]* | ?:[\\/]*) |
| 10135 | re_direlt='/[^/][^/]*/\.\./' |
| 10136 | # Canonicalize the pathname of ld |
| 10137 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 10138 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10139 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 10140 | done |
| 10141 | test -z "$LD" && LD="$ac_prog" |
| 10142 | ;; |
| 10143 | "") |
| 10144 | # If it fails, then pretend we aren't using GCC. |
| 10145 | ac_prog=ld |
| 10146 | ;; |
| 10147 | *) |
| 10148 | # If it is relative, then search for the first ld in PATH. |
| 10149 | with_gnu_ld=unknown |
| 10150 | ;; |
| 10151 | esac |
| 10152 | elif test "$with_gnu_ld" = yes; then |
| 10153 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10154 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 10155 | else |
| 10156 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10157 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 10158 | fi |
| 10159 | if test "${lt_cv_path_LD+set}" = set; then |
| 10160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10161 | else |
| 10162 | if test -z "$LD"; then |
| 10163 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10164 | for ac_dir in $PATH; do |
| 10165 | IFS="$lt_save_ifs" |
| 10166 | test -z "$ac_dir" && ac_dir=. |
| 10167 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10168 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 10169 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 10170 | # but apparently some GNU ld's only accept -v. |
| 10171 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10172 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 10173 | *GNU* | *'with BFD'*) |
| 10174 | test "$with_gnu_ld" != no && break |
| 10175 | ;; |
| 10176 | *) |
| 10177 | test "$with_gnu_ld" != yes && break |
| 10178 | ;; |
| 10179 | esac |
| 10180 | fi |
| 10181 | done |
| 10182 | IFS="$lt_save_ifs" |
| 10183 | else |
| 10184 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10185 | fi |
| 10186 | fi |
| 10187 | |
| 10188 | LD="$lt_cv_path_LD" |
| 10189 | if test -n "$LD"; then |
| 10190 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 10191 | echo "${ECHO_T}$LD" >&6 |
| 10192 | else |
| 10193 | echo "$as_me:$LINENO: result: no" >&5 |
| 10194 | echo "${ECHO_T}no" >&6 |
| 10195 | fi |
| 10196 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10197 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10198 | { (exit 1); exit 1; }; } |
| 10199 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10200 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 10201 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 10202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10203 | else |
| 10204 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 10205 | case `$LD -v 2>&1 </dev/null` in |
| 10206 | *GNU* | *'with BFD'*) |
| 10207 | lt_cv_prog_gnu_ld=yes |
| 10208 | ;; |
| 10209 | *) |
| 10210 | lt_cv_prog_gnu_ld=no |
| 10211 | ;; |
| 10212 | esac |
| 10213 | fi |
| 10214 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 10215 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 10216 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10217 | |
| 10218 | |
| 10219 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 10220 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 10221 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 10222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10223 | else |
| 10224 | lt_cv_ld_reload_flag='-r' |
| 10225 | fi |
| 10226 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 10227 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 10228 | reload_flag=$lt_cv_ld_reload_flag |
| 10229 | case $reload_flag in |
| 10230 | "" | " "*) ;; |
| 10231 | *) reload_flag=" $reload_flag" ;; |
| 10232 | esac |
| 10233 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10234 | case $host_os in |
| 10235 | darwin*) |
| 10236 | if test "$GCC" = yes; then |
| 10237 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
| 10238 | else |
| 10239 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10240 | fi |
| 10241 | ;; |
| 10242 | esac |
| 10243 | |
| 10244 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 10245 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 10246 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 10247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10248 | else |
| 10249 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 10250 | lt_cv_file_magic_test_file= |
| 10251 | lt_cv_deplibs_check_method='unknown' |
| 10252 | # Need to set the preceding variable on all platforms that support |
| 10253 | # interlibrary dependencies. |
| 10254 | # 'none' -- dependencies not supported. |
| 10255 | # `unknown' -- same as none, but documents that we really don't know. |
| 10256 | # 'pass_all' -- all dependencies passed with no checks. |
| 10257 | # 'test_compile' -- check by making test program. |
| 10258 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 10259 | # which responds to the $file_magic_cmd with a given extended regex. |
| 10260 | # If you have `file' or equivalent on your system and you're not sure |
| 10261 | # whether `pass_all' will *always* work, you probably want this one. |
| 10262 | |
| 10263 | case $host_os in |
| 10264 | aix4* | aix5*) |
| 10265 | lt_cv_deplibs_check_method=pass_all |
| 10266 | ;; |
| 10267 | |
| 10268 | beos*) |
| 10269 | lt_cv_deplibs_check_method=pass_all |
| 10270 | ;; |
| 10271 | |
| 10272 | bsdi[45]*) |
| 10273 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 10274 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 10275 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 10276 | ;; |
| 10277 | |
| 10278 | cygwin*) |
| 10279 | # func_win32_libid is a shell function defined in ltmain.sh |
| 10280 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 10281 | lt_cv_file_magic_cmd='func_win32_libid' |
| 10282 | ;; |
| 10283 | |
| 10284 | mingw* | pw32*) |
| 10285 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 10286 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 10287 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 10288 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 10289 | ;; |
| 10290 | |
| 10291 | darwin* | rhapsody*) |
| 10292 | lt_cv_deplibs_check_method=pass_all |
| 10293 | ;; |
| 10294 | |
| 10295 | freebsd* | kfreebsd*-gnu) |
| 10296 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 10297 | case $host_cpu in |
| 10298 | i*86 ) |
| 10299 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 10300 | # Let's accept both of them until this is cleared up. |
| 10301 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 10302 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10303 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 10304 | ;; |
| 10305 | esac |
| 10306 | else |
| 10307 | lt_cv_deplibs_check_method=pass_all |
| 10308 | fi |
| 10309 | ;; |
| 10310 | |
| 10311 | gnu*) |
| 10312 | lt_cv_deplibs_check_method=pass_all |
| 10313 | ;; |
| 10314 | |
| 10315 | hpux10.20* | hpux11*) |
| 10316 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10317 | case "$host_cpu" in |
| 10318 | ia64*) |
| 10319 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 10320 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 10321 | ;; |
| 10322 | hppa*64*) |
| 10323 | 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]' |
| 10324 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 10325 | ;; |
| 10326 | *) |
| 10327 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 10328 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 10329 | ;; |
| 10330 | esac |
| 10331 | ;; |
| 10332 | |
| 10333 | irix5* | irix6* | nonstopux*) |
| 10334 | case $LD in |
| 10335 | *-32|*"-32 ") libmagic=32-bit;; |
| 10336 | *-n32|*"-n32 ") libmagic=N32;; |
| 10337 | *-64|*"-64 ") libmagic=64-bit;; |
| 10338 | *) libmagic=never-match;; |
| 10339 | esac |
| 10340 | lt_cv_deplibs_check_method=pass_all |
| 10341 | ;; |
| 10342 | |
| 10343 | # This must be Linux ELF. |
| 10344 | linux*) |
| 10345 | lt_cv_deplibs_check_method=pass_all |
| 10346 | ;; |
| 10347 | |
| 10348 | netbsd*) |
| 10349 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 10350 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10351 | else |
| 10352 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 10353 | fi |
| 10354 | ;; |
| 10355 | |
| 10356 | newos6*) |
| 10357 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 10358 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10359 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 10360 | ;; |
| 10361 | |
| 10362 | nto-qnx*) |
| 10363 | lt_cv_deplibs_check_method=unknown |
| 10364 | ;; |
| 10365 | |
| 10366 | openbsd*) |
| 10367 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10368 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 10369 | else |
| 10370 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10371 | fi |
| 10372 | ;; |
| 10373 | |
| 10374 | osf3* | osf4* | osf5*) |
| 10375 | lt_cv_deplibs_check_method=pass_all |
| 10376 | ;; |
| 10377 | |
| 10378 | sco3.2v5*) |
| 10379 | lt_cv_deplibs_check_method=pass_all |
| 10380 | ;; |
| 10381 | |
| 10382 | solaris*) |
| 10383 | lt_cv_deplibs_check_method=pass_all |
| 10384 | ;; |
| 10385 | |
| 10386 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10387 | case $host_vendor in |
| 10388 | motorola) |
| 10389 | 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]' |
| 10390 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 10391 | ;; |
| 10392 | ncr) |
| 10393 | lt_cv_deplibs_check_method=pass_all |
| 10394 | ;; |
| 10395 | sequent) |
| 10396 | lt_cv_file_magic_cmd='/bin/file' |
| 10397 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 10398 | ;; |
| 10399 | sni) |
| 10400 | lt_cv_file_magic_cmd='/bin/file' |
| 10401 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 10402 | lt_cv_file_magic_test_file=/lib/libc.so |
| 10403 | ;; |
| 10404 | siemens) |
| 10405 | lt_cv_deplibs_check_method=pass_all |
| 10406 | ;; |
| 10407 | esac |
| 10408 | ;; |
| 10409 | |
| 10410 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 10411 | lt_cv_deplibs_check_method=pass_all |
| 10412 | ;; |
| 10413 | esac |
| 10414 | |
| 10415 | fi |
| 10416 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 10417 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 10418 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 10419 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 10420 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 10421 | |
| 10422 | |
| 10423 | |
| 10424 | # If no C compiler was specified, use CC. |
| 10425 | LTCC=${LTCC-"$CC"} |
| 10426 | |
| 10427 | # Allow CC to be a program name with arguments. |
| 10428 | compiler=$CC |
| 10429 | |
| 10430 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 10431 | if test "${enable_libtool_lock+set}" = set; then |
| 10432 | enableval="$enable_libtool_lock" |
| 10433 | |
| 10434 | fi; |
| 10435 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 10436 | |
| 10437 | # Some flags need to be propagated to the compiler or linker for good |
| 10438 | # libtool support. |
| 10439 | case $host in |
| 10440 | ia64-*-hpux*) |
| 10441 | # Find out which ABI we are using. |
| 10442 | echo 'int i;' > conftest.$ac_ext |
| 10443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10444 | (eval $ac_compile) 2>&5 |
| 10445 | ac_status=$? |
| 10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10447 | (exit $ac_status); }; then |
| 10448 | case `/usr/bin/file conftest.$ac_objext` in |
| 10449 | *ELF-32*) |
| 10450 | HPUX_IA64_MODE="32" |
| 10451 | ;; |
| 10452 | *ELF-64*) |
| 10453 | HPUX_IA64_MODE="64" |
| 10454 | ;; |
| 10455 | esac |
| 10456 | fi |
| 10457 | rm -rf conftest* |
| 10458 | ;; |
| 10459 | *-*-irix6*) |
| 10460 | # Find out which ABI we are using. |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 10461 | echo '#line 10461 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10463 | (eval $ac_compile) 2>&5 |
| 10464 | ac_status=$? |
| 10465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10466 | (exit $ac_status); }; then |
| 10467 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10468 | case `/usr/bin/file conftest.$ac_objext` in |
| 10469 | *32-bit*) |
| 10470 | LD="${LD-ld} -melf32bsmip" |
| 10471 | ;; |
| 10472 | *N32*) |
| 10473 | LD="${LD-ld} -melf32bmipn32" |
| 10474 | ;; |
| 10475 | *64-bit*) |
| 10476 | LD="${LD-ld} -melf64bmip" |
| 10477 | ;; |
| 10478 | esac |
| 10479 | else |
| 10480 | case `/usr/bin/file conftest.$ac_objext` in |
| 10481 | *32-bit*) |
| 10482 | LD="${LD-ld} -32" |
| 10483 | ;; |
| 10484 | *N32*) |
| 10485 | LD="${LD-ld} -n32" |
| 10486 | ;; |
| 10487 | *64-bit*) |
| 10488 | LD="${LD-ld} -64" |
| 10489 | ;; |
| 10490 | esac |
| 10491 | fi |
| 10492 | fi |
| 10493 | rm -rf conftest* |
| 10494 | ;; |
| 10495 | |
| 10496 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 10497 | # Find out which ABI we are using. |
| 10498 | echo 'int i;' > conftest.$ac_ext |
| 10499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10500 | (eval $ac_compile) 2>&5 |
| 10501 | ac_status=$? |
| 10502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10503 | (exit $ac_status); }; then |
| 10504 | case "`/usr/bin/file conftest.o`" in |
| 10505 | *32-bit*) |
| 10506 | case $host in |
| 10507 | x86_64-*linux*) |
| 10508 | LD="${LD-ld} -m elf_i386" |
| 10509 | ;; |
| 10510 | ppc64-*linux*|powerpc64-*linux*) |
| 10511 | LD="${LD-ld} -m elf32ppclinux" |
| 10512 | ;; |
| 10513 | s390x-*linux*) |
| 10514 | LD="${LD-ld} -m elf_s390" |
| 10515 | ;; |
| 10516 | sparc64-*linux*) |
| 10517 | LD="${LD-ld} -m elf32_sparc" |
| 10518 | ;; |
| 10519 | esac |
| 10520 | ;; |
| 10521 | *64-bit*) |
| 10522 | case $host in |
| 10523 | x86_64-*linux*) |
| 10524 | LD="${LD-ld} -m elf_x86_64" |
| 10525 | ;; |
| 10526 | ppc*-*linux*|powerpc*-*linux*) |
| 10527 | LD="${LD-ld} -m elf64ppc" |
| 10528 | ;; |
| 10529 | s390*-*linux*) |
| 10530 | LD="${LD-ld} -m elf64_s390" |
| 10531 | ;; |
| 10532 | sparc*-*linux*) |
| 10533 | LD="${LD-ld} -m elf64_sparc" |
| 10534 | ;; |
| 10535 | esac |
| 10536 | ;; |
| 10537 | esac |
| 10538 | fi |
| 10539 | rm -rf conftest* |
| 10540 | ;; |
| 10541 | |
| 10542 | *-*-sco3.2v5*) |
| 10543 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 10544 | SAVE_CFLAGS="$CFLAGS" |
| 10545 | CFLAGS="$CFLAGS -belf" |
| 10546 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 10547 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 10548 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 10549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10550 | else |
| 10551 | ac_ext=c |
| 10552 | ac_cpp='$CPP $CPPFLAGS' |
| 10553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10556 | |
| 10557 | cat >conftest.$ac_ext <<_ACEOF |
| 10558 | /* confdefs.h. */ |
| 10559 | _ACEOF |
| 10560 | cat confdefs.h >>conftest.$ac_ext |
| 10561 | cat >>conftest.$ac_ext <<_ACEOF |
| 10562 | /* end confdefs.h. */ |
| 10563 | |
| 10564 | _ACEOF |
| 10565 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10567 | (eval $ac_link) 2>conftest.er1 |
| 10568 | ac_status=$? |
| 10569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10570 | rm -f conftest.er1 |
| 10571 | cat conftest.err >&5 |
| 10572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10573 | (exit $ac_status); } && |
| 10574 | { ac_try='test -z "$ac_c_werror_flag" |
| 10575 | || test ! -s conftest.err' |
| 10576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10577 | (eval $ac_try) 2>&5 |
| 10578 | ac_status=$? |
| 10579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10580 | (exit $ac_status); }; } && |
| 10581 | { ac_try='test -s conftest$ac_exeext' |
| 10582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10583 | (eval $ac_try) 2>&5 |
| 10584 | ac_status=$? |
| 10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10586 | (exit $ac_status); }; }; then |
| 10587 | lt_cv_cc_needs_belf=yes |
| 10588 | else |
| 10589 | echo "$as_me: failed program was:" >&5 |
| 10590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10591 | |
| 10592 | lt_cv_cc_needs_belf=no |
| 10593 | fi |
| 10594 | rm -f conftest.err conftest.$ac_objext \ |
| 10595 | conftest$ac_exeext conftest.$ac_ext |
| 10596 | ac_ext=c |
| 10597 | ac_cpp='$CPP $CPPFLAGS' |
| 10598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10601 | |
| 10602 | fi |
| 10603 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 10604 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 10605 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 10606 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 10607 | CFLAGS="$SAVE_CFLAGS" |
| 10608 | fi |
| 10609 | ;; |
| 10610 | |
| 10611 | esac |
| 10612 | |
| 10613 | need_locks="$enable_libtool_lock" |
| 10614 | |
| 10615 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10616 | |
| 10617 | |
| 10618 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10619 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10620 | (test "X$CXX" != "Xg++"))) ; then |
| 10621 | ac_ext=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10622 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10623 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10624 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10625 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10626 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 10627 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 10628 | if test -z "$CXXCPP"; then |
| 10629 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10631 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10632 | # Double quotes because CXXCPP needs to be expanded |
| 10633 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 10634 | do |
| 10635 | ac_preproc_ok=false |
| 10636 | for ac_cxx_preproc_warn_flag in '' yes |
| 10637 | do |
| 10638 | # Use a header file that comes with gcc, so configuring glibc |
| 10639 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10640 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10641 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10642 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10643 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10644 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10645 | /* confdefs.h. */ |
| 10646 | _ACEOF |
| 10647 | cat confdefs.h >>conftest.$ac_ext |
| 10648 | cat >>conftest.$ac_ext <<_ACEOF |
| 10649 | /* end confdefs.h. */ |
| 10650 | #ifdef __STDC__ |
| 10651 | # include <limits.h> |
| 10652 | #else |
| 10653 | # include <assert.h> |
| 10654 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10655 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10656 | _ACEOF |
| 10657 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10658 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10659 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10660 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10661 | rm -f conftest.er1 |
| 10662 | cat conftest.err >&5 |
| 10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10664 | (exit $ac_status); } >/dev/null; then |
| 10665 | if test -s conftest.err; then |
| 10666 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10667 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10668 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10669 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10670 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10671 | else |
| 10672 | ac_cpp_err=yes |
| 10673 | fi |
| 10674 | if test -z "$ac_cpp_err"; then |
| 10675 | : |
| 10676 | else |
| 10677 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10679 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10680 | # Broken: fails on valid input. |
| 10681 | continue |
| 10682 | fi |
| 10683 | rm -f conftest.err conftest.$ac_ext |
| 10684 | |
| 10685 | # OK, works on sane cases. Now check whether non-existent headers |
| 10686 | # can be detected and how. |
| 10687 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10688 | /* confdefs.h. */ |
| 10689 | _ACEOF |
| 10690 | cat confdefs.h >>conftest.$ac_ext |
| 10691 | cat >>conftest.$ac_ext <<_ACEOF |
| 10692 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10693 | #include <ac_nonexistent.h> |
| 10694 | _ACEOF |
| 10695 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10696 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10697 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10698 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10699 | rm -f conftest.er1 |
| 10700 | cat conftest.err >&5 |
| 10701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10702 | (exit $ac_status); } >/dev/null; then |
| 10703 | if test -s conftest.err; then |
| 10704 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10705 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10706 | else |
| 10707 | ac_cpp_err= |
| 10708 | fi |
| 10709 | else |
| 10710 | ac_cpp_err=yes |
| 10711 | fi |
| 10712 | if test -z "$ac_cpp_err"; then |
| 10713 | # Broken: success on invalid input. |
| 10714 | continue |
| 10715 | else |
| 10716 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10718 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10719 | # Passes both tests. |
| 10720 | ac_preproc_ok=: |
| 10721 | break |
| 10722 | fi |
| 10723 | rm -f conftest.err conftest.$ac_ext |
| 10724 | |
| 10725 | done |
| 10726 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10727 | rm -f conftest.err conftest.$ac_ext |
| 10728 | if $ac_preproc_ok; then |
| 10729 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10730 | fi |
| 10731 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10732 | done |
| 10733 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10734 | |
| 10735 | fi |
| 10736 | CXXCPP=$ac_cv_prog_CXXCPP |
| 10737 | else |
| 10738 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10739 | fi |
| 10740 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 10741 | echo "${ECHO_T}$CXXCPP" >&6 |
| 10742 | ac_preproc_ok=false |
| 10743 | for ac_cxx_preproc_warn_flag in '' yes |
| 10744 | do |
| 10745 | # Use a header file that comes with gcc, so configuring glibc |
| 10746 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10747 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10748 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10749 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10750 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10751 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10752 | /* confdefs.h. */ |
| 10753 | _ACEOF |
| 10754 | cat confdefs.h >>conftest.$ac_ext |
| 10755 | cat >>conftest.$ac_ext <<_ACEOF |
| 10756 | /* end confdefs.h. */ |
| 10757 | #ifdef __STDC__ |
| 10758 | # include <limits.h> |
| 10759 | #else |
| 10760 | # include <assert.h> |
| 10761 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10762 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10763 | _ACEOF |
| 10764 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10765 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10766 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10767 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10768 | rm -f conftest.er1 |
| 10769 | cat conftest.err >&5 |
| 10770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10771 | (exit $ac_status); } >/dev/null; then |
| 10772 | if test -s conftest.err; then |
| 10773 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10774 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10775 | else |
| 10776 | ac_cpp_err= |
| 10777 | fi |
| 10778 | else |
| 10779 | ac_cpp_err=yes |
| 10780 | fi |
| 10781 | if test -z "$ac_cpp_err"; then |
| 10782 | : |
| 10783 | else |
| 10784 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10786 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10787 | # Broken: fails on valid input. |
| 10788 | continue |
| 10789 | fi |
| 10790 | rm -f conftest.err conftest.$ac_ext |
| 10791 | |
| 10792 | # OK, works on sane cases. Now check whether non-existent headers |
| 10793 | # can be detected and how. |
| 10794 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10795 | /* confdefs.h. */ |
| 10796 | _ACEOF |
| 10797 | cat confdefs.h >>conftest.$ac_ext |
| 10798 | cat >>conftest.$ac_ext <<_ACEOF |
| 10799 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10800 | #include <ac_nonexistent.h> |
| 10801 | _ACEOF |
| 10802 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10803 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10804 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10805 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10806 | rm -f conftest.er1 |
| 10807 | cat conftest.err >&5 |
| 10808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10809 | (exit $ac_status); } >/dev/null; then |
| 10810 | if test -s conftest.err; then |
| 10811 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10812 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10813 | else |
| 10814 | ac_cpp_err= |
| 10815 | fi |
| 10816 | else |
| 10817 | ac_cpp_err=yes |
| 10818 | fi |
| 10819 | if test -z "$ac_cpp_err"; then |
| 10820 | # Broken: success on invalid input. |
| 10821 | continue |
| 10822 | else |
| 10823 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10825 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10826 | # Passes both tests. |
| 10827 | ac_preproc_ok=: |
| 10828 | break |
| 10829 | fi |
| 10830 | rm -f conftest.err conftest.$ac_ext |
| 10831 | |
| 10832 | done |
| 10833 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10834 | rm -f conftest.err conftest.$ac_ext |
| 10835 | if $ac_preproc_ok; then |
| 10836 | : |
| 10837 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10838 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 10839 | See \`config.log' for more details." >&5 |
| 10840 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 10841 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10842 | { (exit 1); exit 1; }; } |
| 10843 | fi |
| 10844 | |
| 10845 | ac_ext=cc |
| 10846 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10847 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10848 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10849 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10850 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10851 | fi |
| 10852 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10853 | |
| 10854 | ac_ext=f |
| 10855 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 10856 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10857 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 10858 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10859 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10860 | do |
| 10861 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10862 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10865 | if test "${ac_cv_prog_F77+set}" = set; then |
| 10866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10867 | else |
| 10868 | if test -n "$F77"; then |
| 10869 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 10870 | else |
| 10871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10872 | for as_dir in $PATH |
| 10873 | do |
| 10874 | IFS=$as_save_IFS |
| 10875 | test -z "$as_dir" && as_dir=. |
| 10876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10878 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 10879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10880 | break 2 |
| 10881 | fi |
| 10882 | done |
| 10883 | done |
| 10884 | |
| 10885 | fi |
| 10886 | fi |
| 10887 | F77=$ac_cv_prog_F77 |
| 10888 | if test -n "$F77"; then |
| 10889 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 10890 | echo "${ECHO_T}$F77" >&6 |
| 10891 | else |
| 10892 | echo "$as_me:$LINENO: result: no" >&5 |
| 10893 | echo "${ECHO_T}no" >&6 |
| 10894 | fi |
| 10895 | |
| 10896 | test -n "$F77" && break |
| 10897 | done |
| 10898 | fi |
| 10899 | if test -z "$F77"; then |
| 10900 | ac_ct_F77=$F77 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10901 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10902 | do |
| 10903 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10904 | set dummy $ac_prog; ac_word=$2 |
| 10905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10907 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 10908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10909 | else |
| 10910 | if test -n "$ac_ct_F77"; then |
| 10911 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 10912 | else |
| 10913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10914 | for as_dir in $PATH |
| 10915 | do |
| 10916 | IFS=$as_save_IFS |
| 10917 | test -z "$as_dir" && as_dir=. |
| 10918 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10920 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 10921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10922 | break 2 |
| 10923 | fi |
| 10924 | done |
| 10925 | done |
| 10926 | |
| 10927 | fi |
| 10928 | fi |
| 10929 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 10930 | if test -n "$ac_ct_F77"; then |
| 10931 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 10932 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 10933 | else |
| 10934 | echo "$as_me:$LINENO: result: no" >&5 |
| 10935 | echo "${ECHO_T}no" >&6 |
| 10936 | fi |
| 10937 | |
| 10938 | test -n "$ac_ct_F77" && break |
| 10939 | done |
| 10940 | |
| 10941 | F77=$ac_ct_F77 |
| 10942 | fi |
| 10943 | |
| 10944 | |
| 10945 | # Provide some information about the compiler. |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 10946 | echo "$as_me:10946:" \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10947 | "checking for Fortran 77 compiler version" >&5 |
| 10948 | ac_compiler=`set X $ac_compile; echo $2` |
| 10949 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 10950 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 10951 | ac_status=$? |
| 10952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10953 | (exit $ac_status); } |
| 10954 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 10955 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 10956 | ac_status=$? |
| 10957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10958 | (exit $ac_status); } |
| 10959 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 10960 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 10961 | ac_status=$? |
| 10962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10963 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10964 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10965 | |
| 10966 | # If we don't use `.F' as extension, the preprocessor is not run on the |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10967 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10968 | ac_save_ext=$ac_ext |
| 10969 | ac_ext=F |
| 10970 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 10971 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 10972 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 10973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10974 | else |
| 10975 | cat >conftest.$ac_ext <<_ACEOF |
| 10976 | program main |
| 10977 | #ifndef __GNUC__ |
| 10978 | choke me |
| 10979 | #endif |
| 10980 | |
| 10981 | end |
| 10982 | _ACEOF |
| 10983 | rm -f conftest.$ac_objext |
| 10984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10985 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10986 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10988 | rm -f conftest.er1 |
| 10989 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10991 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10992 | { ac_try='test -z "$ac_f77_werror_flag" |
| 10993 | || test ! -s conftest.err' |
| 10994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10995 | (eval $ac_try) 2>&5 |
| 10996 | ac_status=$? |
| 10997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10998 | (exit $ac_status); }; } && |
| 10999 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11001 | (eval $ac_try) 2>&5 |
| 11002 | ac_status=$? |
| 11003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11004 | (exit $ac_status); }; }; then |
| 11005 | ac_compiler_gnu=yes |
| 11006 | else |
| 11007 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11009 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11010 | ac_compiler_gnu=no |
| 11011 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11013 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 11014 | |
| 11015 | fi |
| 11016 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 11017 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 11018 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11019 | ac_test_FFLAGS=${FFLAGS+set} |
| 11020 | ac_save_FFLAGS=$FFLAGS |
| 11021 | FFLAGS= |
| 11022 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 11023 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 11024 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 11025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11026 | else |
| 11027 | FFLAGS=-g |
| 11028 | cat >conftest.$ac_ext <<_ACEOF |
| 11029 | program main |
| 11030 | |
| 11031 | end |
| 11032 | _ACEOF |
| 11033 | rm -f conftest.$ac_objext |
| 11034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11035 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11036 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11038 | rm -f conftest.er1 |
| 11039 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11041 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11042 | { ac_try='test -z "$ac_f77_werror_flag" |
| 11043 | || test ! -s conftest.err' |
| 11044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11045 | (eval $ac_try) 2>&5 |
| 11046 | ac_status=$? |
| 11047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11048 | (exit $ac_status); }; } && |
| 11049 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11051 | (eval $ac_try) 2>&5 |
| 11052 | ac_status=$? |
| 11053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11054 | (exit $ac_status); }; }; then |
| 11055 | ac_cv_prog_f77_g=yes |
| 11056 | else |
| 11057 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11059 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11060 | ac_cv_prog_f77_g=no |
| 11061 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11063 | |
| 11064 | fi |
| 11065 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 11066 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 11067 | if test "$ac_test_FFLAGS" = set; then |
| 11068 | FFLAGS=$ac_save_FFLAGS |
| 11069 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11070 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11071 | FFLAGS="-g -O2" |
| 11072 | else |
| 11073 | FFLAGS="-g" |
| 11074 | fi |
| 11075 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11076 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11077 | FFLAGS="-O2" |
| 11078 | else |
| 11079 | FFLAGS= |
| 11080 | fi |
| 11081 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11082 | |
| 11083 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11084 | ac_ext=c |
| 11085 | ac_cpp='$CPP $CPPFLAGS' |
| 11086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11089 | |
| 11090 | |
| 11091 | |
| 11092 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 11093 | |
| 11094 | # find the maximum length of command line arguments |
| 11095 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 11096 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 11097 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 11098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11099 | else |
| 11100 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11101 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11102 | |
| 11103 | case $build_os in |
| 11104 | msdosdjgpp*) |
| 11105 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 11106 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 11107 | # during glob expansion). Even if it were fixed, the result of this |
| 11108 | # check would be larger than it should be. |
| 11109 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 11110 | ;; |
| 11111 | |
| 11112 | gnu*) |
| 11113 | # Under GNU Hurd, this test is not required because there is |
| 11114 | # no limit to the length of command line arguments. |
| 11115 | # Libtool will interpret -1 as no limit whatsoever |
| 11116 | lt_cv_sys_max_cmd_len=-1; |
| 11117 | ;; |
| 11118 | |
| 11119 | cygwin* | mingw*) |
| 11120 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 11121 | # about 5 minutes as the teststring grows exponentially. |
| 11122 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 11123 | # you end up with a "frozen" computer, even though with patience |
| 11124 | # the test eventually succeeds (with a max line length of 256k). |
| 11125 | # Instead, let's just punt: use the minimum linelength reported by |
| 11126 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 11127 | lt_cv_sys_max_cmd_len=8192; |
| 11128 | ;; |
| 11129 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11130 | amigaos*) |
| 11131 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 11132 | # So we just punt and use a minimum line length of 8192. |
| 11133 | lt_cv_sys_max_cmd_len=8192; |
| 11134 | ;; |
| 11135 | |
| 11136 | netbsd* | freebsd* | openbsd* | darwin* ) |
| 11137 | # This has been around since 386BSD, at least. Likely further. |
| 11138 | if test -x /sbin/sysctl; then |
| 11139 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 11140 | elif test -x /usr/sbin/sysctl; then |
| 11141 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 11142 | else |
| 11143 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
| 11144 | fi |
| 11145 | # And add a safety zone |
| 11146 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 11147 | ;; |
| 11148 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11149 | *) |
| 11150 | # If test is not a shell built-in, we'll probably end up computing a |
| 11151 | # maximum length that is only half of the actual maximum length, but |
| 11152 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11153 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 11154 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 11155 | = "XX$teststring") >/dev/null 2>&1 && |
| 11156 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11157 | lt_cv_sys_max_cmd_len=$new_result && |
| 11158 | test $i != 17 # 1/2 MB should be enough |
| 11159 | do |
| 11160 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11161 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11162 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11163 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11164 | # Add a significant safety factor because C++ compilers can tack on massive |
| 11165 | # amounts of additional arguments before passing them to the linker. |
| 11166 | # It appears as though 1/2 is a usable value. |
| 11167 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 11168 | ;; |
| 11169 | esac |
| 11170 | |
| 11171 | fi |
| 11172 | |
| 11173 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 11174 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 11175 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 11176 | else |
| 11177 | echo "$as_me:$LINENO: result: none" >&5 |
| 11178 | echo "${ECHO_T}none" >&6 |
| 11179 | fi |
| 11180 | |
| 11181 | |
| 11182 | |
| 11183 | |
| 11184 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 11185 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 11186 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 11187 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 11188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11189 | else |
| 11190 | |
| 11191 | # These are sane defaults that work on at least a few old systems. |
| 11192 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 11193 | |
| 11194 | # Character class describing NM global symbol codes. |
| 11195 | symcode='[BCDEGRST]' |
| 11196 | |
| 11197 | # Regexp to match symbols that can be accessed directly from C. |
| 11198 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 11199 | |
| 11200 | # Transform the above into a raw symbol and a C symbol. |
| 11201 | symxfrm='\1 \2\3 \3' |
| 11202 | |
| 11203 | # Transform an extracted symbol line into a proper C declaration |
| 11204 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 11205 | |
| 11206 | # Transform an extracted symbol line into symbol name and symbol address |
| 11207 | 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'" |
| 11208 | |
| 11209 | # Define system-specific variables. |
| 11210 | case $host_os in |
| 11211 | aix*) |
| 11212 | symcode='[BCDT]' |
| 11213 | ;; |
| 11214 | cygwin* | mingw* | pw32*) |
| 11215 | symcode='[ABCDGISTW]' |
| 11216 | ;; |
| 11217 | hpux*) # Its linker distinguishes data from code symbols |
| 11218 | if test "$host_cpu" = ia64; then |
| 11219 | symcode='[ABCDEGRST]' |
| 11220 | fi |
| 11221 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 11222 | 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'" |
| 11223 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11224 | linux*) |
| 11225 | if test "$host_cpu" = ia64; then |
| 11226 | symcode='[ABCDGIRSTW]' |
| 11227 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 11228 | 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'" |
| 11229 | fi |
| 11230 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11231 | irix* | nonstopux*) |
| 11232 | symcode='[BCDEGRST]' |
| 11233 | ;; |
| 11234 | osf*) |
| 11235 | symcode='[BCDEGQRST]' |
| 11236 | ;; |
| 11237 | solaris* | sysv5*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11238 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11239 | ;; |
| 11240 | sysv4) |
| 11241 | symcode='[DFNSTU]' |
| 11242 | ;; |
| 11243 | esac |
| 11244 | |
| 11245 | # Handle CRLF in mingw tool chain |
| 11246 | opt_cr= |
| 11247 | case $build_os in |
| 11248 | mingw*) |
| 11249 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 11250 | ;; |
| 11251 | esac |
| 11252 | |
| 11253 | # If we're using GNU nm, then use its standard symbol codes. |
| 11254 | case `$NM -V 2>&1` in |
| 11255 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11256 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11257 | esac |
| 11258 | |
| 11259 | # Try without a prefix undercore, then with it. |
| 11260 | for ac_symprfx in "" "_"; do |
| 11261 | |
| 11262 | # Write the raw and C identifiers. |
| 11263 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 11264 | |
| 11265 | # Check to see that the pipe works correctly. |
| 11266 | pipe_works=no |
| 11267 | |
| 11268 | rm -f conftest* |
| 11269 | cat > conftest.$ac_ext <<EOF |
| 11270 | #ifdef __cplusplus |
| 11271 | extern "C" { |
| 11272 | #endif |
| 11273 | char nm_test_var; |
| 11274 | void nm_test_func(){} |
| 11275 | #ifdef __cplusplus |
| 11276 | } |
| 11277 | #endif |
| 11278 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 11279 | EOF |
| 11280 | |
| 11281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11282 | (eval $ac_compile) 2>&5 |
| 11283 | ac_status=$? |
| 11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11285 | (exit $ac_status); }; then |
| 11286 | # Now try to grab the symbols. |
| 11287 | nlist=conftest.nm |
| 11288 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 11289 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 11290 | ac_status=$? |
| 11291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11292 | (exit $ac_status); } && test -s "$nlist"; then |
| 11293 | # Try sorting and uniquifying the output. |
| 11294 | if sort "$nlist" | uniq > "$nlist"T; then |
| 11295 | mv -f "$nlist"T "$nlist" |
| 11296 | else |
| 11297 | rm -f "$nlist"T |
| 11298 | fi |
| 11299 | |
| 11300 | # Make sure that we snagged all the symbols we need. |
| 11301 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 11302 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 11303 | cat <<EOF > conftest.$ac_ext |
| 11304 | #ifdef __cplusplus |
| 11305 | extern "C" { |
| 11306 | #endif |
| 11307 | |
| 11308 | EOF |
| 11309 | # Now generate the symbol file. |
| 11310 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 11311 | |
| 11312 | cat <<EOF >> conftest.$ac_ext |
| 11313 | #if defined (__STDC__) && __STDC__ |
| 11314 | # define lt_ptr_t void * |
| 11315 | #else |
| 11316 | # define lt_ptr_t char * |
| 11317 | # define const |
| 11318 | #endif |
| 11319 | |
| 11320 | /* The mapping between symbol names and symbols. */ |
| 11321 | const struct { |
| 11322 | const char *name; |
| 11323 | lt_ptr_t address; |
| 11324 | } |
| 11325 | lt_preloaded_symbols[] = |
| 11326 | { |
| 11327 | EOF |
| 11328 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 11329 | cat <<\EOF >> conftest.$ac_ext |
| 11330 | {0, (lt_ptr_t) 0} |
| 11331 | }; |
| 11332 | |
| 11333 | #ifdef __cplusplus |
| 11334 | } |
| 11335 | #endif |
| 11336 | EOF |
| 11337 | # Now try linking the two files. |
| 11338 | mv conftest.$ac_objext conftstm.$ac_objext |
| 11339 | lt_save_LIBS="$LIBS" |
| 11340 | lt_save_CFLAGS="$CFLAGS" |
| 11341 | LIBS="conftstm.$ac_objext" |
| 11342 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 11343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11344 | (eval $ac_link) 2>&5 |
| 11345 | ac_status=$? |
| 11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11347 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 11348 | pipe_works=yes |
| 11349 | fi |
| 11350 | LIBS="$lt_save_LIBS" |
| 11351 | CFLAGS="$lt_save_CFLAGS" |
| 11352 | else |
| 11353 | echo "cannot find nm_test_func in $nlist" >&5 |
| 11354 | fi |
| 11355 | else |
| 11356 | echo "cannot find nm_test_var in $nlist" >&5 |
| 11357 | fi |
| 11358 | else |
| 11359 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11360 | fi |
| 11361 | else |
| 11362 | echo "$progname: failed program was:" >&5 |
| 11363 | cat conftest.$ac_ext >&5 |
| 11364 | fi |
| 11365 | rm -f conftest* conftst* |
| 11366 | |
| 11367 | # Do not use the global_symbol_pipe unless it works. |
| 11368 | if test "$pipe_works" = yes; then |
| 11369 | break |
| 11370 | else |
| 11371 | lt_cv_sys_global_symbol_pipe= |
| 11372 | fi |
| 11373 | done |
| 11374 | |
| 11375 | fi |
| 11376 | |
| 11377 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 11378 | lt_cv_sys_global_symbol_to_cdecl= |
| 11379 | fi |
| 11380 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 11381 | echo "$as_me:$LINENO: result: failed" >&5 |
| 11382 | echo "${ECHO_T}failed" >&6 |
| 11383 | else |
| 11384 | echo "$as_me:$LINENO: result: ok" >&5 |
| 11385 | echo "${ECHO_T}ok" >&6 |
| 11386 | fi |
| 11387 | |
| 11388 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 11389 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 11390 | if test "${lt_cv_objdir+set}" = set; then |
| 11391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11392 | else |
| 11393 | rm -f .libs 2>/dev/null |
| 11394 | mkdir .libs 2>/dev/null |
| 11395 | if test -d .libs; then |
| 11396 | lt_cv_objdir=.libs |
| 11397 | else |
| 11398 | # MS-DOS does not allow filenames that begin with a dot. |
| 11399 | lt_cv_objdir=_libs |
| 11400 | fi |
| 11401 | rmdir .libs 2>/dev/null |
| 11402 | fi |
| 11403 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 11404 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 11405 | objdir=$lt_cv_objdir |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | case $host_os in |
| 11412 | aix3*) |
| 11413 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11414 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11415 | # vanish in a puff of smoke. |
| 11416 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11417 | COLLECT_NAMES= |
| 11418 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11419 | fi |
| 11420 | ;; |
| 11421 | esac |
| 11422 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11423 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 11424 | # metacharacters that are still active within double-quoted strings. |
| 11425 | Xsed='sed -e s/^X//' |
| 11426 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 11427 | |
| 11428 | # Same as above, but do not quote variable references. |
| 11429 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 11430 | |
| 11431 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 11432 | # double_quote_subst'ed string. |
| 11433 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 11434 | |
| 11435 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 11436 | no_glob_subst='s/\*/\\\*/g' |
| 11437 | |
| 11438 | # Constants: |
| 11439 | rm="rm -f" |
| 11440 | |
| 11441 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 11442 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11443 | can_build_shared=yes |
| 11444 | |
| 11445 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 11446 | # which needs '.lib'). |
| 11447 | libext=a |
| 11448 | ltmain="$ac_aux_dir/ltmain.sh" |
| 11449 | ofile="$default_ofile" |
| 11450 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 11451 | |
| 11452 | if test -n "$ac_tool_prefix"; then |
| 11453 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 11454 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 11455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11457 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11459 | else |
| 11460 | if test -n "$AR"; then |
| 11461 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11462 | else |
| 11463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11464 | for as_dir in $PATH |
| 11465 | do |
| 11466 | IFS=$as_save_IFS |
| 11467 | test -z "$as_dir" && as_dir=. |
| 11468 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11470 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11472 | break 2 |
| 11473 | fi |
| 11474 | done |
| 11475 | done |
| 11476 | |
| 11477 | fi |
| 11478 | fi |
| 11479 | AR=$ac_cv_prog_AR |
| 11480 | if test -n "$AR"; then |
| 11481 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 11482 | echo "${ECHO_T}$AR" >&6 |
| 11483 | else |
| 11484 | echo "$as_me:$LINENO: result: no" >&5 |
| 11485 | echo "${ECHO_T}no" >&6 |
| 11486 | fi |
| 11487 | |
| 11488 | fi |
| 11489 | if test -z "$ac_cv_prog_AR"; then |
| 11490 | ac_ct_AR=$AR |
| 11491 | # Extract the first word of "ar", so it can be a program name with args. |
| 11492 | set dummy ar; ac_word=$2 |
| 11493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11495 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11497 | else |
| 11498 | if test -n "$ac_ct_AR"; then |
| 11499 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 11500 | else |
| 11501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11502 | for as_dir in $PATH |
| 11503 | do |
| 11504 | IFS=$as_save_IFS |
| 11505 | test -z "$as_dir" && as_dir=. |
| 11506 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11508 | ac_cv_prog_ac_ct_AR="ar" |
| 11509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11510 | break 2 |
| 11511 | fi |
| 11512 | done |
| 11513 | done |
| 11514 | |
| 11515 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 11516 | fi |
| 11517 | fi |
| 11518 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11519 | if test -n "$ac_ct_AR"; then |
| 11520 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11521 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 11522 | else |
| 11523 | echo "$as_me:$LINENO: result: no" >&5 |
| 11524 | echo "${ECHO_T}no" >&6 |
| 11525 | fi |
| 11526 | |
| 11527 | AR=$ac_ct_AR |
| 11528 | else |
| 11529 | AR="$ac_cv_prog_AR" |
| 11530 | fi |
| 11531 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11532 | if test -n "$ac_tool_prefix"; then |
| 11533 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 11534 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11537 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11539 | else |
| 11540 | if test -n "$RANLIB"; then |
| 11541 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11542 | else |
| 11543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11544 | for as_dir in $PATH |
| 11545 | do |
| 11546 | IFS=$as_save_IFS |
| 11547 | test -z "$as_dir" && as_dir=. |
| 11548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11550 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11552 | break 2 |
| 11553 | fi |
| 11554 | done |
| 11555 | done |
| 11556 | |
| 11557 | fi |
| 11558 | fi |
| 11559 | RANLIB=$ac_cv_prog_RANLIB |
| 11560 | if test -n "$RANLIB"; then |
| 11561 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11562 | echo "${ECHO_T}$RANLIB" >&6 |
| 11563 | else |
| 11564 | echo "$as_me:$LINENO: result: no" >&5 |
| 11565 | echo "${ECHO_T}no" >&6 |
| 11566 | fi |
| 11567 | |
| 11568 | fi |
| 11569 | if test -z "$ac_cv_prog_RANLIB"; then |
| 11570 | ac_ct_RANLIB=$RANLIB |
| 11571 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11572 | set dummy ranlib; ac_word=$2 |
| 11573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11575 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11577 | else |
| 11578 | if test -n "$ac_ct_RANLIB"; then |
| 11579 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11580 | else |
| 11581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11582 | for as_dir in $PATH |
| 11583 | do |
| 11584 | IFS=$as_save_IFS |
| 11585 | test -z "$as_dir" && as_dir=. |
| 11586 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11588 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11590 | break 2 |
| 11591 | fi |
| 11592 | done |
| 11593 | done |
| 11594 | |
| 11595 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 11596 | fi |
| 11597 | fi |
| 11598 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11599 | if test -n "$ac_ct_RANLIB"; then |
| 11600 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11601 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 11602 | else |
| 11603 | echo "$as_me:$LINENO: result: no" >&5 |
| 11604 | echo "${ECHO_T}no" >&6 |
| 11605 | fi |
| 11606 | |
| 11607 | RANLIB=$ac_ct_RANLIB |
| 11608 | else |
| 11609 | RANLIB="$ac_cv_prog_RANLIB" |
| 11610 | fi |
| 11611 | |
| 11612 | if test -n "$ac_tool_prefix"; then |
| 11613 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 11614 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 11615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11617 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11619 | else |
| 11620 | if test -n "$STRIP"; then |
| 11621 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11622 | else |
| 11623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11624 | for as_dir in $PATH |
| 11625 | do |
| 11626 | IFS=$as_save_IFS |
| 11627 | test -z "$as_dir" && as_dir=. |
| 11628 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11629 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11630 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11631 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11632 | break 2 |
| 11633 | fi |
| 11634 | done |
| 11635 | done |
| 11636 | |
| 11637 | fi |
| 11638 | fi |
| 11639 | STRIP=$ac_cv_prog_STRIP |
| 11640 | if test -n "$STRIP"; then |
| 11641 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11642 | echo "${ECHO_T}$STRIP" >&6 |
| 11643 | else |
| 11644 | echo "$as_me:$LINENO: result: no" >&5 |
| 11645 | echo "${ECHO_T}no" >&6 |
| 11646 | fi |
| 11647 | |
| 11648 | fi |
| 11649 | if test -z "$ac_cv_prog_STRIP"; then |
| 11650 | ac_ct_STRIP=$STRIP |
| 11651 | # Extract the first word of "strip", so it can be a program name with args. |
| 11652 | set dummy strip; ac_word=$2 |
| 11653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11655 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11657 | else |
| 11658 | if test -n "$ac_ct_STRIP"; then |
| 11659 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 11660 | else |
| 11661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11662 | for as_dir in $PATH |
| 11663 | do |
| 11664 | IFS=$as_save_IFS |
| 11665 | test -z "$as_dir" && as_dir=. |
| 11666 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11668 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11670 | break 2 |
| 11671 | fi |
| 11672 | done |
| 11673 | done |
| 11674 | |
| 11675 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 11676 | fi |
| 11677 | fi |
| 11678 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11679 | if test -n "$ac_ct_STRIP"; then |
| 11680 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11681 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 11682 | else |
| 11683 | echo "$as_me:$LINENO: result: no" >&5 |
| 11684 | echo "${ECHO_T}no" >&6 |
| 11685 | fi |
| 11686 | |
| 11687 | STRIP=$ac_ct_STRIP |
| 11688 | else |
| 11689 | STRIP="$ac_cv_prog_STRIP" |
| 11690 | fi |
| 11691 | |
| 11692 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11693 | old_CC="$CC" |
| 11694 | old_CFLAGS="$CFLAGS" |
| 11695 | |
| 11696 | # Set sane defaults for various variables |
| 11697 | test -z "$AR" && AR=ar |
| 11698 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 11699 | test -z "$AS" && AS=as |
| 11700 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11701 | test -z "$LTCC" && LTCC=$CC |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11702 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 11703 | test -z "$LD" && LD=ld |
| 11704 | test -z "$LN_S" && LN_S="ln -s" |
| 11705 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 11706 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11707 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11708 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 11709 | test -z "$RANLIB" && RANLIB=: |
| 11710 | test -z "$STRIP" && STRIP=: |
| 11711 | test -z "$ac_objext" && ac_objext=o |
| 11712 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11713 | # Determine commands to create old-style static archives. |
| 11714 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 11715 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11716 | old_postuninstall_cmds= |
| 11717 | |
| 11718 | if test -n "$RANLIB"; then |
| 11719 | case $host_os in |
| 11720 | openbsd*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11721 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11722 | ;; |
| 11723 | *) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11724 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11725 | ;; |
| 11726 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11727 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11728 | fi |
| 11729 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11730 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 11731 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11732 | # Only perform the check for file, if the check method requires it |
| 11733 | case $deplibs_check_method in |
| 11734 | file_magic*) |
| 11735 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 11736 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 11737 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 11738 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 11739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11740 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11741 | case $MAGIC_CMD in |
| 11742 | [\\/*] | ?:[\\/]*) |
| 11743 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11744 | ;; |
| 11745 | *) |
| 11746 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11747 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11748 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11749 | for ac_dir in $ac_dummy; do |
| 11750 | IFS="$lt_save_ifs" |
| 11751 | test -z "$ac_dir" && ac_dir=. |
| 11752 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 11753 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 11754 | if test -n "$file_magic_test_file"; then |
| 11755 | case $deplibs_check_method in |
| 11756 | "file_magic "*) |
| 11757 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 11758 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11759 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11760 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11761 | : |
| 11762 | else |
| 11763 | cat <<EOF 1>&2 |
| 11764 | |
| 11765 | *** Warning: the command libtool uses to detect shared libraries, |
| 11766 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11767 | *** The result is that libtool may fail to recognize shared libraries |
| 11768 | *** as such. This will affect the creation of libtool libraries that |
| 11769 | *** depend on shared libraries, but programs linked with such libtool |
| 11770 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11771 | *** may want to report the problem to your system manager and/or to |
| 11772 | *** bug-libtool@gnu.org |
| 11773 | |
| 11774 | EOF |
| 11775 | fi ;; |
| 11776 | esac |
| 11777 | fi |
| 11778 | break |
| 11779 | fi |
| 11780 | done |
| 11781 | IFS="$lt_save_ifs" |
| 11782 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11783 | ;; |
| 11784 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11785 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11786 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11787 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11788 | if test -n "$MAGIC_CMD"; then |
| 11789 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 11790 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 11791 | else |
| 11792 | echo "$as_me:$LINENO: result: no" >&5 |
| 11793 | echo "${ECHO_T}no" >&6 |
| 11794 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11795 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11796 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 11797 | if test -n "$ac_tool_prefix"; then |
| 11798 | echo "$as_me:$LINENO: checking for file" >&5 |
| 11799 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 11800 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 11801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11802 | else |
| 11803 | case $MAGIC_CMD in |
| 11804 | [\\/*] | ?:[\\/]*) |
| 11805 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11806 | ;; |
| 11807 | *) |
| 11808 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11809 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11810 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11811 | for ac_dir in $ac_dummy; do |
| 11812 | IFS="$lt_save_ifs" |
| 11813 | test -z "$ac_dir" && ac_dir=. |
| 11814 | if test -f $ac_dir/file; then |
| 11815 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 11816 | if test -n "$file_magic_test_file"; then |
| 11817 | case $deplibs_check_method in |
| 11818 | "file_magic "*) |
| 11819 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 11820 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11821 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11822 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11823 | : |
| 11824 | else |
| 11825 | cat <<EOF 1>&2 |
| 11826 | |
| 11827 | *** Warning: the command libtool uses to detect shared libraries, |
| 11828 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11829 | *** The result is that libtool may fail to recognize shared libraries |
| 11830 | *** as such. This will affect the creation of libtool libraries that |
| 11831 | *** depend on shared libraries, but programs linked with such libtool |
| 11832 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11833 | *** may want to report the problem to your system manager and/or to |
| 11834 | *** bug-libtool@gnu.org |
| 11835 | |
| 11836 | EOF |
| 11837 | fi ;; |
| 11838 | esac |
| 11839 | fi |
| 11840 | break |
| 11841 | fi |
| 11842 | done |
| 11843 | IFS="$lt_save_ifs" |
| 11844 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11845 | ;; |
| 11846 | esac |
| 11847 | fi |
| 11848 | |
| 11849 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11850 | if test -n "$MAGIC_CMD"; then |
| 11851 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 11852 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 11853 | else |
| 11854 | echo "$as_me:$LINENO: result: no" >&5 |
| 11855 | echo "${ECHO_T}no" >&6 |
| 11856 | fi |
| 11857 | |
| 11858 | else |
| 11859 | MAGIC_CMD=: |
| 11860 | fi |
| 11861 | fi |
| 11862 | |
| 11863 | fi |
| 11864 | ;; |
| 11865 | esac |
| 11866 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 11867 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11868 | enable_win32_dll=no |
| 11869 | |
| 11870 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 11871 | if test "${enable_libtool_lock+set}" = set; then |
| 11872 | enableval="$enable_libtool_lock" |
| 11873 | |
| 11874 | fi; |
| 11875 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 11876 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11877 | |
| 11878 | # Check whether --with-pic or --without-pic was given. |
| 11879 | if test "${with_pic+set}" = set; then |
| 11880 | withval="$with_pic" |
| 11881 | pic_mode="$withval" |
| 11882 | else |
| 11883 | pic_mode=default |
| 11884 | fi; |
| 11885 | test -z "$pic_mode" && pic_mode=default |
| 11886 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11887 | # Use C for the default configuration in the libtool script |
| 11888 | tagname= |
| 11889 | lt_save_CC="$CC" |
| 11890 | ac_ext=c |
| 11891 | ac_cpp='$CPP $CPPFLAGS' |
| 11892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11895 | |
| 11896 | |
| 11897 | # Source file extension for C test sources. |
| 11898 | ac_ext=c |
| 11899 | |
| 11900 | # Object file extension for compiled C test sources. |
| 11901 | objext=o |
| 11902 | objext=$objext |
| 11903 | |
| 11904 | # Code to be used in simple compile tests |
| 11905 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 11906 | |
| 11907 | # Code to be used in simple link tests |
| 11908 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 11909 | |
| 11910 | |
| 11911 | # If no C compiler was specified, use CC. |
| 11912 | LTCC=${LTCC-"$CC"} |
| 11913 | |
| 11914 | # Allow CC to be a program name with arguments. |
| 11915 | compiler=$CC |
| 11916 | |
| 11917 | |
| 11918 | # |
| 11919 | # Check for any special shared library compilation flags. |
| 11920 | # |
| 11921 | lt_prog_cc_shlib= |
| 11922 | if test "$GCC" = no; then |
| 11923 | case $host_os in |
| 11924 | sco3.2v5*) |
| 11925 | lt_prog_cc_shlib='-belf' |
| 11926 | ;; |
| 11927 | esac |
| 11928 | fi |
| 11929 | if test -n "$lt_prog_cc_shlib"; then |
| 11930 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 11931 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 11932 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 11933 | else |
| 11934 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 11935 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 11936 | lt_cv_prog_cc_can_build_shared=no |
| 11937 | fi |
| 11938 | fi |
| 11939 | |
| 11940 | |
| 11941 | # |
| 11942 | # Check to make sure the static flag actually works. |
| 11943 | # |
| 11944 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 11945 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 11946 | if test "${lt_prog_compiler_static_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11948 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11949 | lt_prog_compiler_static_works=no |
| 11950 | save_LDFLAGS="$LDFLAGS" |
| 11951 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 11952 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11953 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11954 | # The compiler can only warn and ignore the option if not recognized |
| 11955 | # So say no if there are warnings |
| 11956 | if test -s conftest.err; then |
| 11957 | # Append any errors to the config.log. |
| 11958 | cat conftest.err 1>&5 |
| 11959 | else |
| 11960 | lt_prog_compiler_static_works=yes |
| 11961 | fi |
| 11962 | fi |
| 11963 | $rm conftest* |
| 11964 | LDFLAGS="$save_LDFLAGS" |
| 11965 | |
| 11966 | fi |
| 11967 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 11968 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 11969 | |
| 11970 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 11971 | : |
| 11972 | else |
| 11973 | lt_prog_compiler_static= |
| 11974 | fi |
| 11975 | |
| 11976 | |
| 11977 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11978 | |
| 11979 | lt_prog_compiler_no_builtin_flag= |
| 11980 | |
| 11981 | if test "$GCC" = yes; then |
| 11982 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 11983 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11984 | |
| 11985 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11986 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 11987 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 11988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11989 | else |
| 11990 | lt_cv_prog_compiler_rtti_exceptions=no |
| 11991 | ac_outfile=conftest.$ac_objext |
| 11992 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11993 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 11994 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11995 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11996 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11997 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11998 | # The option is referenced via a variable to avoid confusing sed. |
| 11999 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12000 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12001 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12002 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 12003 | (eval echo "\"\$as_me:12003: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12004 | (eval "$lt_compile" 2>conftest.err) |
| 12005 | ac_status=$? |
| 12006 | cat conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 12007 | echo "$as_me:12007: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12008 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12009 | # The compiler can only warn and ignore the option if not recognized |
| 12010 | # So say no if there are warnings |
| 12011 | if test ! -s conftest.err; then |
| 12012 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 12013 | fi |
| 12014 | fi |
| 12015 | $rm conftest* |
| 12016 | |
| 12017 | fi |
| 12018 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 12019 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 12020 | |
| 12021 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 12022 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 12023 | else |
| 12024 | : |
| 12025 | fi |
| 12026 | |
| 12027 | fi |
| 12028 | |
| 12029 | lt_prog_compiler_wl= |
| 12030 | lt_prog_compiler_pic= |
| 12031 | lt_prog_compiler_static= |
| 12032 | |
| 12033 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12034 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12035 | |
| 12036 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12037 | lt_prog_compiler_wl='-Wl,' |
| 12038 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12039 | |
| 12040 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12041 | aix*) |
| 12042 | # All AIX code is PIC. |
| 12043 | if test "$host_cpu" = ia64; then |
| 12044 | # AIX 5 now supports IA64 processor |
| 12045 | lt_prog_compiler_static='-Bstatic' |
| 12046 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12047 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12048 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12049 | amigaos*) |
| 12050 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12051 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12052 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12053 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12054 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12055 | |
| 12056 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12057 | # PIC is the default for these OSes. |
| 12058 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12059 | |
| 12060 | mingw* | pw32* | os2*) |
| 12061 | # This hack is so that the source file can tell whether it is being |
| 12062 | # built for inclusion in a dll (and should export symbols for example). |
| 12063 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 12064 | ;; |
| 12065 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12066 | darwin* | rhapsody*) |
| 12067 | # PIC is the default on this platform |
| 12068 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12069 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12070 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12071 | |
| 12072 | msdosdjgpp*) |
| 12073 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12074 | # on systems that don't support them. |
| 12075 | lt_prog_compiler_can_build_shared=no |
| 12076 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12077 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12078 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12079 | sysv4*MP*) |
| 12080 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12081 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12082 | fi |
| 12083 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12084 | |
| 12085 | hpux*) |
| 12086 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12087 | # not for PA HP-UX. |
| 12088 | case "$host_cpu" in |
| 12089 | hppa*64*|ia64*) |
| 12090 | # +Z the default |
| 12091 | ;; |
| 12092 | *) |
| 12093 | lt_prog_compiler_pic='-fPIC' |
| 12094 | ;; |
| 12095 | esac |
| 12096 | ;; |
| 12097 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12098 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12099 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12100 | ;; |
| 12101 | esac |
| 12102 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12103 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12104 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12105 | aix*) |
| 12106 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12107 | if test "$host_cpu" = ia64; then |
| 12108 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12109 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12110 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12111 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12112 | fi |
| 12113 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12114 | darwin*) |
| 12115 | # PIC is the default on this platform |
| 12116 | # Common symbols not allowed in MH_DYLIB files |
| 12117 | case "$cc_basename" in |
| 12118 | xlc*) |
| 12119 | lt_prog_compiler_pic='-qnocommon' |
| 12120 | lt_prog_compiler_wl='-Wl,' |
| 12121 | ;; |
| 12122 | esac |
| 12123 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12124 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12125 | mingw* | pw32* | os2*) |
| 12126 | # This hack is so that the source file can tell whether it is being |
| 12127 | # built for inclusion in a dll (and should export symbols for example). |
| 12128 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 12129 | ;; |
| 12130 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12131 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12132 | lt_prog_compiler_wl='-Wl,' |
| 12133 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12134 | # not for PA HP-UX. |
| 12135 | case "$host_cpu" in |
| 12136 | hppa*64*|ia64*) |
| 12137 | # +Z the default |
| 12138 | ;; |
| 12139 | *) |
| 12140 | lt_prog_compiler_pic='+Z' |
| 12141 | ;; |
| 12142 | esac |
| 12143 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12144 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12145 | ;; |
| 12146 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12147 | irix5* | irix6* | nonstopux*) |
| 12148 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12149 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12150 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12151 | ;; |
| 12152 | |
| 12153 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12154 | lt_prog_compiler_pic='-KPIC' |
| 12155 | lt_prog_compiler_static='-Bstatic' |
| 12156 | ;; |
| 12157 | |
| 12158 | linux*) |
| 12159 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12160 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12161 | lt_prog_compiler_wl='-Wl,' |
| 12162 | lt_prog_compiler_pic='-KPIC' |
| 12163 | lt_prog_compiler_static='-static' |
| 12164 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12165 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12166 | lt_prog_compiler_wl='-Wl,' |
| 12167 | # All Alpha code is PIC. |
| 12168 | lt_prog_compiler_static='-non_shared' |
| 12169 | ;; |
| 12170 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12171 | ;; |
| 12172 | |
| 12173 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12174 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12175 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12176 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12177 | ;; |
| 12178 | |
| 12179 | sco3.2v5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12180 | lt_prog_compiler_pic='-Kpic' |
| 12181 | lt_prog_compiler_static='-dn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12182 | ;; |
| 12183 | |
| 12184 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12185 | lt_prog_compiler_wl='-Wl,' |
| 12186 | lt_prog_compiler_pic='-KPIC' |
| 12187 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12188 | ;; |
| 12189 | |
| 12190 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12191 | lt_prog_compiler_wl='-Qoption ld ' |
| 12192 | lt_prog_compiler_pic='-PIC' |
| 12193 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12194 | ;; |
| 12195 | |
| 12196 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12197 | lt_prog_compiler_wl='-Wl,' |
| 12198 | lt_prog_compiler_pic='-KPIC' |
| 12199 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12200 | ;; |
| 12201 | |
| 12202 | sysv4*MP*) |
| 12203 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12204 | lt_prog_compiler_pic='-Kconform_pic' |
| 12205 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12206 | fi |
| 12207 | ;; |
| 12208 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12209 | uts4*) |
| 12210 | lt_prog_compiler_pic='-pic' |
| 12211 | lt_prog_compiler_static='-Bstatic' |
| 12212 | ;; |
| 12213 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12214 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12215 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12216 | ;; |
| 12217 | esac |
| 12218 | fi |
| 12219 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12220 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 12221 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12222 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12223 | # |
| 12224 | # Check to make sure the PIC flag actually works. |
| 12225 | # |
| 12226 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12227 | |
| 12228 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12229 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 12230 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12232 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12233 | lt_prog_compiler_pic_works=no |
| 12234 | ac_outfile=conftest.$ac_objext |
| 12235 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12236 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 12237 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12238 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12239 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12240 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12241 | # The option is referenced via a variable to avoid confusing sed. |
| 12242 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12243 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12244 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12245 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 12246 | (eval echo "\"\$as_me:12246: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12247 | (eval "$lt_compile" 2>conftest.err) |
| 12248 | ac_status=$? |
| 12249 | cat conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 12250 | echo "$as_me:12250: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12251 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12252 | # The compiler can only warn and ignore the option if not recognized |
| 12253 | # So say no if there are warnings |
| 12254 | if test ! -s conftest.err; then |
| 12255 | lt_prog_compiler_pic_works=yes |
| 12256 | fi |
| 12257 | fi |
| 12258 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12259 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12260 | fi |
| 12261 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 12262 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12263 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12264 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 12265 | case $lt_prog_compiler_pic in |
| 12266 | "" | " "*) ;; |
| 12267 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 12268 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12269 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12270 | lt_prog_compiler_pic= |
| 12271 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12272 | fi |
| 12273 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12274 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12275 | case "$host_os" in |
| 12276 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12277 | *djgpp*) |
| 12278 | lt_prog_compiler_pic= |
| 12279 | ;; |
| 12280 | *) |
| 12281 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 12282 | ;; |
| 12283 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12284 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12285 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12286 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12287 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12289 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12290 | lt_cv_prog_compiler_c_o=no |
| 12291 | $rm -r conftest 2>/dev/null |
| 12292 | mkdir conftest |
| 12293 | cd conftest |
| 12294 | mkdir out |
| 12295 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12296 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12297 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12298 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12299 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12300 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12301 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12302 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12303 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12304 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12305 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 12306 | (eval echo "\"\$as_me:12306: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12307 | (eval "$lt_compile" 2>out/conftest.err) |
| 12308 | ac_status=$? |
| 12309 | cat out/conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 12310 | echo "$as_me:12310: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12311 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12312 | then |
| 12313 | # The compiler can only warn and ignore the option if not recognized |
| 12314 | # So say no if there are warnings |
| 12315 | if test ! -s out/conftest.err; then |
| 12316 | lt_cv_prog_compiler_c_o=yes |
| 12317 | fi |
| 12318 | fi |
| 12319 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12320 | $rm conftest* |
| 12321 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12322 | # template instantiation |
| 12323 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12324 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12325 | cd .. |
| 12326 | rmdir conftest |
| 12327 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12328 | |
| 12329 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12330 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 12331 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12332 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12333 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12334 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12335 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12336 | # do not overwrite the value of need_locks provided by the user |
| 12337 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12338 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 12339 | hard_links=yes |
| 12340 | $rm conftest* |
| 12341 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12342 | touch conftest.a |
| 12343 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12344 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12345 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12346 | echo "${ECHO_T}$hard_links" >&6 |
| 12347 | if test "$hard_links" = no; then |
| 12348 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12349 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12350 | need_locks=warn |
| 12351 | fi |
| 12352 | else |
| 12353 | need_locks=no |
| 12354 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12355 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12356 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12357 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12358 | |
| 12359 | runpath_var= |
| 12360 | allow_undefined_flag= |
| 12361 | enable_shared_with_static_runtimes=no |
| 12362 | archive_cmds= |
| 12363 | archive_expsym_cmds= |
| 12364 | old_archive_From_new_cmds= |
| 12365 | old_archive_from_expsyms_cmds= |
| 12366 | export_dynamic_flag_spec= |
| 12367 | whole_archive_flag_spec= |
| 12368 | thread_safe_flag_spec= |
| 12369 | hardcode_libdir_flag_spec= |
| 12370 | hardcode_libdir_flag_spec_ld= |
| 12371 | hardcode_libdir_separator= |
| 12372 | hardcode_direct=no |
| 12373 | hardcode_minus_L=no |
| 12374 | hardcode_shlibpath_var=unsupported |
| 12375 | link_all_deplibs=unknown |
| 12376 | hardcode_automatic=no |
| 12377 | module_cmds= |
| 12378 | module_expsym_cmds= |
| 12379 | always_export_symbols=no |
| 12380 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12381 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12382 | # included in the symbol list |
| 12383 | include_expsyms= |
| 12384 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12385 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12386 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12387 | # as well as any symbol that contains `d'. |
| 12388 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 12389 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12390 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12391 | # the symbol is explicitly referenced. Since portable code cannot |
| 12392 | # rely on this symbol name, it's probably fine to never include it in |
| 12393 | # preloaded symbol tables. |
| 12394 | extract_expsyms_cmds= |
| 12395 | |
| 12396 | case $host_os in |
| 12397 | cygwin* | mingw* | pw32*) |
| 12398 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12399 | # When not using gcc, we currently assume that we are using |
| 12400 | # Microsoft Visual C++. |
| 12401 | if test "$GCC" != yes; then |
| 12402 | with_gnu_ld=no |
| 12403 | fi |
| 12404 | ;; |
| 12405 | openbsd*) |
| 12406 | with_gnu_ld=no |
| 12407 | ;; |
| 12408 | esac |
| 12409 | |
| 12410 | ld_shlibs=yes |
| 12411 | if test "$with_gnu_ld" = yes; then |
| 12412 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12413 | wlarc='${wl}' |
| 12414 | |
| 12415 | # See if GNU ld supports shared libraries. |
| 12416 | case $host_os in |
| 12417 | aix3* | aix4* | aix5*) |
| 12418 | # On AIX/PPC, the GNU linker is very broken |
| 12419 | if test "$host_cpu" != ia64; then |
| 12420 | ld_shlibs=no |
| 12421 | cat <<EOF 1>&2 |
| 12422 | |
| 12423 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12424 | *** to be unable to reliably create shared libraries on AIX. |
| 12425 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12426 | *** really care for shared libraries, you may want to modify your PATH |
| 12427 | *** so that a non-GNU linker is found, and then restart. |
| 12428 | |
| 12429 | EOF |
| 12430 | fi |
| 12431 | ;; |
| 12432 | |
| 12433 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12434 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12435 | hardcode_libdir_flag_spec='-L$libdir' |
| 12436 | hardcode_minus_L=yes |
| 12437 | |
| 12438 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 12439 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 12440 | # to version 4, is to share data among multiple programs linked |
| 12441 | # with the same dynamic library. Since this doesn't match the |
| 12442 | # behavior of shared libraries on other platforms, we can't use |
| 12443 | # them. |
| 12444 | ld_shlibs=no |
| 12445 | ;; |
| 12446 | |
| 12447 | beos*) |
| 12448 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12449 | allow_undefined_flag=unsupported |
| 12450 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12451 | # support --undefined. This deserves some investigation. FIXME |
| 12452 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12453 | else |
| 12454 | ld_shlibs=no |
| 12455 | fi |
| 12456 | ;; |
| 12457 | |
| 12458 | cygwin* | mingw* | pw32*) |
| 12459 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 12460 | # as there is no search path for DLLs. |
| 12461 | hardcode_libdir_flag_spec='-L$libdir' |
| 12462 | allow_undefined_flag=unsupported |
| 12463 | always_export_symbols=no |
| 12464 | enable_shared_with_static_runtimes=yes |
| 12465 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12466 | |
| 12467 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12468 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12469 | # If the export-symbols file already is a .def file (1st line |
| 12470 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12471 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12472 | cp $export_symbols $output_objdir/$soname.def; |
| 12473 | else |
| 12474 | echo EXPORTS > $output_objdir/$soname.def; |
| 12475 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12476 | fi~ |
| 12477 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12478 | else |
| 12479 | ld_shlibs=no |
| 12480 | fi |
| 12481 | ;; |
| 12482 | |
| 12483 | netbsd*) |
| 12484 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12485 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12486 | wlarc= |
| 12487 | else |
| 12488 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12489 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12490 | fi |
| 12491 | ;; |
| 12492 | |
| 12493 | solaris* | sysv5*) |
| 12494 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 12495 | ld_shlibs=no |
| 12496 | cat <<EOF 1>&2 |
| 12497 | |
| 12498 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12499 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12500 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12501 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12502 | *** your PATH or compiler configuration so that the native linker is |
| 12503 | *** used, and then restart. |
| 12504 | |
| 12505 | EOF |
| 12506 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12507 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12508 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12509 | else |
| 12510 | ld_shlibs=no |
| 12511 | fi |
| 12512 | ;; |
| 12513 | |
| 12514 | sunos4*) |
| 12515 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12516 | wlarc= |
| 12517 | hardcode_direct=yes |
| 12518 | hardcode_shlibpath_var=no |
| 12519 | ;; |
| 12520 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12521 | linux*) |
| 12522 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12523 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12524 | archive_cmds="$tmp_archive_cmds" |
| 12525 | supports_anon_versioning=no |
| 12526 | case `$LD -v 2>/dev/null` in |
| 12527 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12528 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12529 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12530 | *\ 2.11.*) ;; # other 2.11 versions |
| 12531 | *) supports_anon_versioning=yes ;; |
| 12532 | esac |
| 12533 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12534 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 12535 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12536 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12537 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12538 | else |
| 12539 | archive_expsym_cmds="$tmp_archive_cmds" |
| 12540 | fi |
| 12541 | else |
| 12542 | ld_shlibs=no |
| 12543 | fi |
| 12544 | ;; |
| 12545 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12546 | *) |
| 12547 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12548 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12549 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12550 | else |
| 12551 | ld_shlibs=no |
| 12552 | fi |
| 12553 | ;; |
| 12554 | esac |
| 12555 | |
| 12556 | if test "$ld_shlibs" = yes; then |
| 12557 | runpath_var=LD_RUN_PATH |
| 12558 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 12559 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 12560 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12561 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 12562 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12563 | else |
| 12564 | whole_archive_flag_spec= |
| 12565 | fi |
| 12566 | fi |
| 12567 | else |
| 12568 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12569 | case $host_os in |
| 12570 | aix3*) |
| 12571 | allow_undefined_flag=unsupported |
| 12572 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12573 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12574 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12575 | # are no directories specified by -L. |
| 12576 | hardcode_minus_L=yes |
| 12577 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 12578 | # Neither direct hardcoding nor static linking is supported with a |
| 12579 | # broken collect2. |
| 12580 | hardcode_direct=unsupported |
| 12581 | fi |
| 12582 | ;; |
| 12583 | |
| 12584 | aix4* | aix5*) |
| 12585 | if test "$host_cpu" = ia64; then |
| 12586 | # On IA64, the linker does run time linking by default, so we don't |
| 12587 | # have to do anything special. |
| 12588 | aix_use_runtimelinking=no |
| 12589 | exp_sym_flag='-Bexport' |
| 12590 | no_entry_flag="" |
| 12591 | else |
| 12592 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12593 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12594 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12595 | 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' |
| 12596 | else |
| 12597 | 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' |
| 12598 | fi |
| 12599 | aix_use_runtimelinking=no |
| 12600 | |
| 12601 | # Test if we are trying to use run time linking or normal |
| 12602 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12603 | # need to do runtime linking. |
| 12604 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 12605 | for ld_flag in $LDFLAGS; do |
| 12606 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 12607 | aix_use_runtimelinking=yes |
| 12608 | break |
| 12609 | fi |
| 12610 | done |
| 12611 | esac |
| 12612 | |
| 12613 | exp_sym_flag='-bexport' |
| 12614 | no_entry_flag='-bnoentry' |
| 12615 | fi |
| 12616 | |
| 12617 | # When large executables or shared objects are built, AIX ld can |
| 12618 | # have problems creating the table of contents. If linking a library |
| 12619 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12620 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12621 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12622 | |
| 12623 | archive_cmds='' |
| 12624 | hardcode_direct=yes |
| 12625 | hardcode_libdir_separator=':' |
| 12626 | link_all_deplibs=yes |
| 12627 | |
| 12628 | if test "$GCC" = yes; then |
| 12629 | case $host_os in aix4.012|aix4.012.*) |
| 12630 | # We only want to do this on AIX 4.2 and lower, the check |
| 12631 | # below for broken collect2 doesn't work under 4.3+ |
| 12632 | collect2name=`${CC} -print-prog-name=collect2` |
| 12633 | if test -f "$collect2name" && \ |
| 12634 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 12635 | then |
| 12636 | # We have reworked collect2 |
| 12637 | hardcode_direct=yes |
| 12638 | else |
| 12639 | # We have old collect2 |
| 12640 | hardcode_direct=unsupported |
| 12641 | # It fails to find uninstalled libraries when the uninstalled |
| 12642 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12643 | # to unsupported forces relinking |
| 12644 | hardcode_minus_L=yes |
| 12645 | hardcode_libdir_flag_spec='-L$libdir' |
| 12646 | hardcode_libdir_separator= |
| 12647 | fi |
| 12648 | esac |
| 12649 | shared_flag='-shared' |
| 12650 | else |
| 12651 | # not using gcc |
| 12652 | if test "$host_cpu" = ia64; then |
| 12653 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12654 | # chokes on -Wl,-G. The following line is correct: |
| 12655 | shared_flag='-G' |
| 12656 | else |
| 12657 | if test "$aix_use_runtimelinking" = yes; then |
| 12658 | shared_flag='${wl}-G' |
| 12659 | else |
| 12660 | shared_flag='${wl}-bM:SRE' |
| 12661 | fi |
| 12662 | fi |
| 12663 | fi |
| 12664 | |
| 12665 | # It seems that -bexpall does not export symbols beginning with |
| 12666 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12667 | always_export_symbols=yes |
| 12668 | if test "$aix_use_runtimelinking" = yes; then |
| 12669 | # Warning - without using the other runtime loading flags (-brtl), |
| 12670 | # -berok will link without error, but may produce a broken library. |
| 12671 | allow_undefined_flag='-berok' |
| 12672 | # Determine the default libpath from the value encoded in an empty executable. |
| 12673 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12674 | /* confdefs.h. */ |
| 12675 | _ACEOF |
| 12676 | cat confdefs.h >>conftest.$ac_ext |
| 12677 | cat >>conftest.$ac_ext <<_ACEOF |
| 12678 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12679 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12680 | int |
| 12681 | main () |
| 12682 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12683 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12684 | ; |
| 12685 | return 0; |
| 12686 | } |
| 12687 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12690 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12691 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12693 | rm -f conftest.er1 |
| 12694 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12696 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12697 | { ac_try='test -z "$ac_c_werror_flag" |
| 12698 | || test ! -s conftest.err' |
| 12699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12700 | (eval $ac_try) 2>&5 |
| 12701 | ac_status=$? |
| 12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12703 | (exit $ac_status); }; } && |
| 12704 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12706 | (eval $ac_try) 2>&5 |
| 12707 | ac_status=$? |
| 12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12709 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12710 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12711 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12712 | }'` |
| 12713 | # Check for a 64-bit object if we didn't find anything. |
| 12714 | 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; } |
| 12715 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12716 | else |
| 12717 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12719 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12720 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12721 | rm -f conftest.err conftest.$ac_objext \ |
| 12722 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12723 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12724 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12725 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12726 | 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" |
| 12727 | else |
| 12728 | if test "$host_cpu" = ia64; then |
| 12729 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 12730 | allow_undefined_flag="-z nodefs" |
| 12731 | 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" |
| 12732 | else |
| 12733 | # Determine the default libpath from the value encoded in an empty executable. |
| 12734 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12735 | /* confdefs.h. */ |
| 12736 | _ACEOF |
| 12737 | cat confdefs.h >>conftest.$ac_ext |
| 12738 | cat >>conftest.$ac_ext <<_ACEOF |
| 12739 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12740 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12741 | int |
| 12742 | main () |
| 12743 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12744 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12745 | ; |
| 12746 | return 0; |
| 12747 | } |
| 12748 | _ACEOF |
| 12749 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12751 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12752 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12754 | rm -f conftest.er1 |
| 12755 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12757 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12758 | { ac_try='test -z "$ac_c_werror_flag" |
| 12759 | || test ! -s conftest.err' |
| 12760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12761 | (eval $ac_try) 2>&5 |
| 12762 | ac_status=$? |
| 12763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12764 | (exit $ac_status); }; } && |
| 12765 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12767 | (eval $ac_try) 2>&5 |
| 12768 | ac_status=$? |
| 12769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12770 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12771 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12772 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 12773 | }'` |
| 12774 | # Check for a 64-bit object if we didn't find anything. |
| 12775 | 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; } |
| 12776 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12777 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12778 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12780 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12781 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12782 | rm -f conftest.err conftest.$ac_objext \ |
| 12783 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12784 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12785 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12786 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12787 | # Warning - without using the other run time loading flags, |
| 12788 | # -berok will link without error, but may produce a broken library. |
| 12789 | no_undefined_flag=' ${wl}-bernotok' |
| 12790 | allow_undefined_flag=' ${wl}-berok' |
| 12791 | # -bexpall does not export symbols beginning with underscore (_) |
| 12792 | always_export_symbols=yes |
| 12793 | # Exported symbols can be pulled into shared objects from archives |
| 12794 | whole_archive_flag_spec=' ' |
| 12795 | archive_cmds_need_lc=yes |
| 12796 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12797 | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12798 | fi |
| 12799 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12800 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12801 | |
| 12802 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12803 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12804 | hardcode_libdir_flag_spec='-L$libdir' |
| 12805 | hardcode_minus_L=yes |
| 12806 | # see comment about different semantics on the GNU ld section |
| 12807 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12808 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12809 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12810 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12811 | export_dynamic_flag_spec=-rdynamic |
| 12812 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12813 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12814 | cygwin* | mingw* | pw32*) |
| 12815 | # When not using gcc, we currently assume that we are using |
| 12816 | # Microsoft Visual C++. |
| 12817 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12818 | # no search path for DLLs. |
| 12819 | hardcode_libdir_flag_spec=' ' |
| 12820 | allow_undefined_flag=unsupported |
| 12821 | # Tell ltmain to make .lib files, not .a files. |
| 12822 | libext=lib |
| 12823 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12824 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12825 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12826 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12827 | # The linker will automatically build a .lib file if we build a DLL. |
| 12828 | old_archive_From_new_cmds='true' |
| 12829 | # FIXME: Should let the user specify the lib program. |
| 12830 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 12831 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 12832 | enable_shared_with_static_runtimes=yes |
| 12833 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12834 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12835 | darwin* | rhapsody*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12836 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12837 | rhapsody* | darwin1.[012]) |
| 12838 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 12839 | ;; |
| 12840 | *) # Darwin 1.3 on |
| 12841 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 12842 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12843 | else |
| 12844 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 12845 | 10.[012]) |
| 12846 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12847 | ;; |
| 12848 | 10.*) |
| 12849 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 12850 | ;; |
| 12851 | esac |
| 12852 | fi |
| 12853 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12854 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12855 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12856 | hardcode_direct=no |
| 12857 | hardcode_automatic=yes |
| 12858 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12859 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12860 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12861 | if test "$GCC" = yes ; then |
| 12862 | output_verbose_link_cmd='echo' |
| 12863 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 12864 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12865 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12866 | 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}' |
| 12867 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12868 | else |
| 12869 | case "$cc_basename" in |
| 12870 | xlc*) |
| 12871 | output_verbose_link_cmd='echo' |
| 12872 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 12873 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12874 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12875 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12876 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12877 | ;; |
| 12878 | *) |
| 12879 | ld_shlibs=no |
| 12880 | ;; |
| 12881 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12882 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12883 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12884 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12885 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12886 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12887 | hardcode_libdir_flag_spec='-L$libdir' |
| 12888 | hardcode_shlibpath_var=no |
| 12889 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12890 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12891 | freebsd1*) |
| 12892 | ld_shlibs=no |
| 12893 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12894 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12895 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 12896 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 12897 | # does not break anything, and helps significantly (at the cost of a little |
| 12898 | # extra space). |
| 12899 | freebsd2.2*) |
| 12900 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 12901 | hardcode_libdir_flag_spec='-R$libdir' |
| 12902 | hardcode_direct=yes |
| 12903 | hardcode_shlibpath_var=no |
| 12904 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12905 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12906 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 12907 | freebsd2*) |
| 12908 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12909 | hardcode_direct=yes |
| 12910 | hardcode_minus_L=yes |
| 12911 | hardcode_shlibpath_var=no |
| 12912 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12913 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12914 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12915 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12916 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 12917 | hardcode_libdir_flag_spec='-R$libdir' |
| 12918 | hardcode_direct=yes |
| 12919 | hardcode_shlibpath_var=no |
| 12920 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12921 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12922 | hpux9*) |
| 12923 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12924 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12925 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12926 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12927 | fi |
| 12928 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12929 | hardcode_libdir_separator=: |
| 12930 | hardcode_direct=yes |
| 12931 | |
| 12932 | # hardcode_minus_L: Not really in the search PATH, |
| 12933 | # but as the default location of the library. |
| 12934 | hardcode_minus_L=yes |
| 12935 | export_dynamic_flag_spec='${wl}-E' |
| 12936 | ;; |
| 12937 | |
| 12938 | hpux10* | hpux11*) |
| 12939 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 12940 | case "$host_cpu" in |
| 12941 | hppa*64*|ia64*) |
| 12942 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12943 | ;; |
| 12944 | *) |
| 12945 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12946 | ;; |
| 12947 | esac |
| 12948 | else |
| 12949 | case "$host_cpu" in |
| 12950 | hppa*64*|ia64*) |
| 12951 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12952 | ;; |
| 12953 | *) |
| 12954 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12955 | ;; |
| 12956 | esac |
| 12957 | fi |
| 12958 | if test "$with_gnu_ld" = no; then |
| 12959 | case "$host_cpu" in |
| 12960 | hppa*64*) |
| 12961 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12962 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 12963 | hardcode_libdir_separator=: |
| 12964 | hardcode_direct=no |
| 12965 | hardcode_shlibpath_var=no |
| 12966 | ;; |
| 12967 | ia64*) |
| 12968 | hardcode_libdir_flag_spec='-L$libdir' |
| 12969 | hardcode_direct=no |
| 12970 | hardcode_shlibpath_var=no |
| 12971 | |
| 12972 | # hardcode_minus_L: Not really in the search PATH, |
| 12973 | # but as the default location of the library. |
| 12974 | hardcode_minus_L=yes |
| 12975 | ;; |
| 12976 | *) |
| 12977 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12978 | hardcode_libdir_separator=: |
| 12979 | hardcode_direct=yes |
| 12980 | export_dynamic_flag_spec='${wl}-E' |
| 12981 | |
| 12982 | # hardcode_minus_L: Not really in the search PATH, |
| 12983 | # but as the default location of the library. |
| 12984 | hardcode_minus_L=yes |
| 12985 | ;; |
| 12986 | esac |
| 12987 | fi |
| 12988 | ;; |
| 12989 | |
| 12990 | irix5* | irix6* | nonstopux*) |
| 12991 | if test "$GCC" = yes; then |
| 12992 | 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' |
| 12993 | else |
| 12994 | 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' |
| 12995 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 12996 | fi |
| 12997 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12998 | hardcode_libdir_separator=: |
| 12999 | link_all_deplibs=yes |
| 13000 | ;; |
| 13001 | |
| 13002 | netbsd*) |
| 13003 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13004 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13005 | else |
| 13006 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13007 | fi |
| 13008 | hardcode_libdir_flag_spec='-R$libdir' |
| 13009 | hardcode_direct=yes |
| 13010 | hardcode_shlibpath_var=no |
| 13011 | ;; |
| 13012 | |
| 13013 | newsos6) |
| 13014 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13015 | hardcode_direct=yes |
| 13016 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13017 | hardcode_libdir_separator=: |
| 13018 | hardcode_shlibpath_var=no |
| 13019 | ;; |
| 13020 | |
| 13021 | openbsd*) |
| 13022 | hardcode_direct=yes |
| 13023 | hardcode_shlibpath_var=no |
| 13024 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13025 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13026 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13027 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 13028 | export_dynamic_flag_spec='${wl}-E' |
| 13029 | else |
| 13030 | case $host_os in |
| 13031 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13032 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13033 | hardcode_libdir_flag_spec='-R$libdir' |
| 13034 | ;; |
| 13035 | *) |
| 13036 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13037 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 13038 | ;; |
| 13039 | esac |
| 13040 | fi |
| 13041 | ;; |
| 13042 | |
| 13043 | os2*) |
| 13044 | hardcode_libdir_flag_spec='-L$libdir' |
| 13045 | hardcode_minus_L=yes |
| 13046 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13047 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13048 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 13049 | ;; |
| 13050 | |
| 13051 | osf3*) |
| 13052 | if test "$GCC" = yes; then |
| 13053 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 13054 | 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' |
| 13055 | else |
| 13056 | allow_undefined_flag=' -expect_unresolved \*' |
| 13057 | 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' |
| 13058 | fi |
| 13059 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13060 | hardcode_libdir_separator=: |
| 13061 | ;; |
| 13062 | |
| 13063 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13064 | if test "$GCC" = yes; then |
| 13065 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 13066 | 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' |
| 13067 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13068 | else |
| 13069 | allow_undefined_flag=' -expect_unresolved \*' |
| 13070 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13071 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 13072 | $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' |
| 13073 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13074 | # Both c and cxx compiler support -rpath directly |
| 13075 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 13076 | fi |
| 13077 | hardcode_libdir_separator=: |
| 13078 | ;; |
| 13079 | |
| 13080 | sco3.2v5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13081 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13082 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13083 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13084 | runpath_var=LD_RUN_PATH |
| 13085 | hardcode_runpath_var=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13086 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13087 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13088 | solaris*) |
| 13089 | no_undefined_flag=' -z text' |
| 13090 | if test "$GCC" = yes; then |
| 13091 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13092 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13093 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13094 | else |
| 13095 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13096 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13097 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13098 | fi |
| 13099 | hardcode_libdir_flag_spec='-R$libdir' |
| 13100 | hardcode_shlibpath_var=no |
| 13101 | case $host_os in |
| 13102 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13103 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13104 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 13105 | esac |
| 13106 | link_all_deplibs=yes |
| 13107 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13108 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13109 | sunos4*) |
| 13110 | if test "x$host_vendor" = xsequent; then |
| 13111 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13112 | # files that make .init and .fini sections work. |
| 13113 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13114 | else |
| 13115 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13116 | fi |
| 13117 | hardcode_libdir_flag_spec='-L$libdir' |
| 13118 | hardcode_direct=yes |
| 13119 | hardcode_minus_L=yes |
| 13120 | hardcode_shlibpath_var=no |
| 13121 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13122 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13123 | sysv4) |
| 13124 | case $host_vendor in |
| 13125 | sni) |
| 13126 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13127 | hardcode_direct=yes # is this really true??? |
| 13128 | ;; |
| 13129 | siemens) |
| 13130 | ## LD is ld it makes a PLAMLIB |
| 13131 | ## CC just makes a GrossModule. |
| 13132 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13133 | reload_cmds='$CC -r -o $output$reload_objs' |
| 13134 | hardcode_direct=no |
| 13135 | ;; |
| 13136 | motorola) |
| 13137 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13138 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 13139 | ;; |
| 13140 | esac |
| 13141 | runpath_var='LD_RUN_PATH' |
| 13142 | hardcode_shlibpath_var=no |
| 13143 | ;; |
| 13144 | |
| 13145 | sysv4.3*) |
| 13146 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13147 | hardcode_shlibpath_var=no |
| 13148 | export_dynamic_flag_spec='-Bexport' |
| 13149 | ;; |
| 13150 | |
| 13151 | sysv4*MP*) |
| 13152 | if test -d /usr/nec; then |
| 13153 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13154 | hardcode_shlibpath_var=no |
| 13155 | runpath_var=LD_RUN_PATH |
| 13156 | hardcode_runpath_var=yes |
| 13157 | ld_shlibs=yes |
| 13158 | fi |
| 13159 | ;; |
| 13160 | |
| 13161 | sysv4.2uw2*) |
| 13162 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13163 | hardcode_direct=yes |
| 13164 | hardcode_minus_L=no |
| 13165 | hardcode_shlibpath_var=no |
| 13166 | hardcode_runpath_var=yes |
| 13167 | runpath_var=LD_RUN_PATH |
| 13168 | ;; |
| 13169 | |
| 13170 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 13171 | no_undefined_flag='${wl}-z ${wl}text' |
| 13172 | if test "$GCC" = yes; then |
| 13173 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13174 | else |
| 13175 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13176 | fi |
| 13177 | runpath_var='LD_RUN_PATH' |
| 13178 | hardcode_shlibpath_var=no |
| 13179 | ;; |
| 13180 | |
| 13181 | sysv5*) |
| 13182 | no_undefined_flag=' -z text' |
| 13183 | # $CC -shared without GNU ld will not create a library from C++ |
| 13184 | # object files and a static libstdc++, better avoid it by now |
| 13185 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13186 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13187 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13188 | hardcode_libdir_flag_spec= |
| 13189 | hardcode_shlibpath_var=no |
| 13190 | runpath_var='LD_RUN_PATH' |
| 13191 | ;; |
| 13192 | |
| 13193 | uts4*) |
| 13194 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13195 | hardcode_libdir_flag_spec='-L$libdir' |
| 13196 | hardcode_shlibpath_var=no |
| 13197 | ;; |
| 13198 | |
| 13199 | *) |
| 13200 | ld_shlibs=no |
| 13201 | ;; |
| 13202 | esac |
| 13203 | fi |
| 13204 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13205 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 13206 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 13207 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13208 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13209 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13210 | if test "$GCC" = yes; then |
| 13211 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13212 | fi |
| 13213 | |
| 13214 | # |
| 13215 | # Do we need to explicitly link libc? |
| 13216 | # |
| 13217 | case "x$archive_cmds_need_lc" in |
| 13218 | x|xyes) |
| 13219 | # Assume -lc should be added |
| 13220 | archive_cmds_need_lc=yes |
| 13221 | |
| 13222 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13223 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13224 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13225 | # FIXME: we may have to deal with multi-command sequences. |
| 13226 | ;; |
| 13227 | '$CC '*) |
| 13228 | # Test whether the compiler implicitly links with -lc since on some |
| 13229 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13230 | # to ld, don't add -lc before -lgcc. |
| 13231 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13232 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13233 | $rm conftest* |
| 13234 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13235 | |
| 13236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13237 | (eval $ac_compile) 2>&5 |
| 13238 | ac_status=$? |
| 13239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13240 | (exit $ac_status); } 2>conftest.err; then |
| 13241 | soname=conftest |
| 13242 | lib=conftest |
| 13243 | libobjs=conftest.$ac_objext |
| 13244 | deplibs= |
| 13245 | wl=$lt_prog_compiler_wl |
| 13246 | compiler_flags=-v |
| 13247 | linker_flags=-v |
| 13248 | verstring= |
| 13249 | output_objdir=. |
| 13250 | libname=conftest |
| 13251 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 13252 | allow_undefined_flag= |
| 13253 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13254 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13255 | ac_status=$? |
| 13256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13257 | (exit $ac_status); } |
| 13258 | then |
| 13259 | archive_cmds_need_lc=no |
| 13260 | else |
| 13261 | archive_cmds_need_lc=yes |
| 13262 | fi |
| 13263 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 13264 | else |
| 13265 | cat conftest.err 1>&5 |
| 13266 | fi |
| 13267 | $rm conftest* |
| 13268 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 13269 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 13270 | ;; |
| 13271 | esac |
| 13272 | fi |
| 13273 | ;; |
| 13274 | esac |
| 13275 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13276 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13277 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13278 | library_names_spec= |
| 13279 | libname_spec='lib$name' |
| 13280 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13281 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13282 | postinstall_cmds= |
| 13283 | postuninstall_cmds= |
| 13284 | finish_cmds= |
| 13285 | finish_eval= |
| 13286 | shlibpath_var= |
| 13287 | shlibpath_overrides_runpath=unknown |
| 13288 | version_type=none |
| 13289 | dynamic_linker="$host_os ld.so" |
| 13290 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13291 | if test "$GCC" = yes; then |
| 13292 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13293 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13294 | # if the path contains ";" then we assume it to be the separator |
| 13295 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13296 | # assumed that no part of a normal pathname contains ";" but that should |
| 13297 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13298 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13299 | else |
| 13300 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13301 | fi |
| 13302 | else |
| 13303 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13304 | fi |
| 13305 | need_lib_prefix=unknown |
| 13306 | hardcode_into_libs=no |
| 13307 | |
| 13308 | # when you set need_version to no, make sure it does not cause -set_version |
| 13309 | # flags to be left without arguments |
| 13310 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13311 | |
| 13312 | case $host_os in |
| 13313 | aix3*) |
| 13314 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13315 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13316 | shlibpath_var=LIBPATH |
| 13317 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13318 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13319 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13320 | ;; |
| 13321 | |
| 13322 | aix4* | aix5*) |
| 13323 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13324 | need_lib_prefix=no |
| 13325 | need_version=no |
| 13326 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13327 | if test "$host_cpu" = ia64; then |
| 13328 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13329 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13330 | shlibpath_var=LD_LIBRARY_PATH |
| 13331 | else |
| 13332 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13333 | # for dependence libraries. The import file would start with |
| 13334 | # the line `#! .'. This would cause the generated library to |
| 13335 | # depend on `.', always an invalid library. This was fixed in |
| 13336 | # development snapshots of GCC prior to 3.0. |
| 13337 | case $host_os in |
| 13338 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13339 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13340 | echo ' yes ' |
| 13341 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13342 | : |
| 13343 | else |
| 13344 | can_build_shared=no |
| 13345 | fi |
| 13346 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13347 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13348 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13349 | # soname into executable. Probably we can add versioning support to |
| 13350 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13351 | if test "$aix_use_runtimelinking" = yes; then |
| 13352 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13353 | # instead of lib<name>.a to let people know that these are not |
| 13354 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13356 | else |
| 13357 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13358 | # and later when we are not doing run time linking. |
| 13359 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13360 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13361 | fi |
| 13362 | shlibpath_var=LIBPATH |
| 13363 | fi |
| 13364 | ;; |
| 13365 | |
| 13366 | amigaos*) |
| 13367 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13368 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13369 | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13370 | ;; |
| 13371 | |
| 13372 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13373 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13374 | dynamic_linker="$host_os ld.so" |
| 13375 | shlibpath_var=LIBRARY_PATH |
| 13376 | ;; |
| 13377 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13378 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13379 | version_type=linux |
| 13380 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13382 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13383 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13384 | shlibpath_var=LD_LIBRARY_PATH |
| 13385 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13386 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13387 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13388 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13389 | # libtool to hard-code these into programs |
| 13390 | ;; |
| 13391 | |
| 13392 | cygwin* | mingw* | pw32*) |
| 13393 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13394 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13395 | need_version=no |
| 13396 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13398 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13399 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13400 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13401 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13402 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13403 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13404 | dldir=$destdir/`dirname \$dlpath`~ |
| 13405 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13406 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13407 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13408 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13409 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13410 | shlibpath_overrides_runpath=yes |
| 13411 | |
| 13412 | case $host_os in |
| 13413 | cygwin*) |
| 13414 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13415 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13416 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13417 | ;; |
| 13418 | mingw*) |
| 13419 | # MinGW DLLs use traditional 'lib' prefix |
| 13420 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13421 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13422 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13423 | # It is most probably a Windows format PATH printed by |
| 13424 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13425 | # path with ; separators, and with drive letters. We can handle the |
| 13426 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13427 | # especially as we might pass files found there to a mingw objdump, |
| 13428 | # which wouldn't understand a cygwinified path. Ahh. |
| 13429 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13430 | else |
| 13431 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13432 | fi |
| 13433 | ;; |
| 13434 | pw32*) |
| 13435 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13436 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 13437 | ;; |
| 13438 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13439 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13440 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13441 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13442 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13443 | ;; |
| 13444 | esac |
| 13445 | dynamic_linker='Win32 ld.exe' |
| 13446 | # FIXME: first we should search . and the directory the executable is in |
| 13447 | shlibpath_var=PATH |
| 13448 | ;; |
| 13449 | |
| 13450 | darwin* | rhapsody*) |
| 13451 | dynamic_linker="$host_os dyld" |
| 13452 | version_type=darwin |
| 13453 | need_lib_prefix=no |
| 13454 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13455 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13456 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13457 | shlibpath_overrides_runpath=yes |
| 13458 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13459 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13460 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13461 | if test "$GCC" = yes; then |
| 13462 | 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"` |
| 13463 | else |
| 13464 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13465 | fi |
| 13466 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13467 | ;; |
| 13468 | |
| 13469 | dgux*) |
| 13470 | version_type=linux |
| 13471 | need_lib_prefix=no |
| 13472 | need_version=no |
| 13473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13474 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13475 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13476 | ;; |
| 13477 | |
| 13478 | freebsd1*) |
| 13479 | dynamic_linker=no |
| 13480 | ;; |
| 13481 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13482 | kfreebsd*-gnu) |
| 13483 | version_type=linux |
| 13484 | need_lib_prefix=no |
| 13485 | need_version=no |
| 13486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13488 | shlibpath_var=LD_LIBRARY_PATH |
| 13489 | shlibpath_overrides_runpath=no |
| 13490 | hardcode_into_libs=yes |
| 13491 | dynamic_linker='GNU ld.so' |
| 13492 | ;; |
| 13493 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13494 | freebsd*) |
| 13495 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 13496 | version_type=freebsd-$objformat |
| 13497 | case $version_type in |
| 13498 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13500 | need_version=no |
| 13501 | need_lib_prefix=no |
| 13502 | ;; |
| 13503 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13504 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13505 | need_version=yes |
| 13506 | ;; |
| 13507 | esac |
| 13508 | shlibpath_var=LD_LIBRARY_PATH |
| 13509 | case $host_os in |
| 13510 | freebsd2*) |
| 13511 | shlibpath_overrides_runpath=yes |
| 13512 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13513 | freebsd3.01* | freebsdelf3.01*) |
| 13514 | shlibpath_overrides_runpath=yes |
| 13515 | hardcode_into_libs=yes |
| 13516 | ;; |
| 13517 | *) # from 3.2 on |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13518 | shlibpath_overrides_runpath=no |
| 13519 | hardcode_into_libs=yes |
| 13520 | ;; |
| 13521 | esac |
| 13522 | ;; |
| 13523 | |
| 13524 | gnu*) |
| 13525 | version_type=linux |
| 13526 | need_lib_prefix=no |
| 13527 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13529 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13530 | shlibpath_var=LD_LIBRARY_PATH |
| 13531 | hardcode_into_libs=yes |
| 13532 | ;; |
| 13533 | |
| 13534 | hpux9* | hpux10* | hpux11*) |
| 13535 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13536 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13537 | version_type=sunos |
| 13538 | need_lib_prefix=no |
| 13539 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13540 | case "$host_cpu" in |
| 13541 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13542 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13543 | hardcode_into_libs=yes |
| 13544 | dynamic_linker="$host_os dld.so" |
| 13545 | shlibpath_var=LD_LIBRARY_PATH |
| 13546 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13548 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13549 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13550 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13551 | else |
| 13552 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13553 | fi |
| 13554 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13555 | ;; |
| 13556 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13557 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13558 | hardcode_into_libs=yes |
| 13559 | dynamic_linker="$host_os dld.sl" |
| 13560 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13561 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13563 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13564 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13565 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13566 | ;; |
| 13567 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13568 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13569 | dynamic_linker="$host_os dld.sl" |
| 13570 | shlibpath_var=SHLIB_PATH |
| 13571 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13573 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13574 | ;; |
| 13575 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13576 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13577 | postinstall_cmds='chmod 555 $lib' |
| 13578 | ;; |
| 13579 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13580 | irix5* | irix6* | nonstopux*) |
| 13581 | case $host_os in |
| 13582 | nonstopux*) version_type=nonstopux ;; |
| 13583 | *) |
| 13584 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13585 | version_type=linux |
| 13586 | else |
| 13587 | version_type=irix |
| 13588 | fi ;; |
| 13589 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13590 | need_lib_prefix=no |
| 13591 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13592 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13594 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13595 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13596 | libsuff= shlibsuff= |
| 13597 | ;; |
| 13598 | *) |
| 13599 | case $LD in # libtool.m4 will add one of these switches to LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13600 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13601 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13602 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13603 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13604 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13605 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13606 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13607 | esac |
| 13608 | ;; |
| 13609 | esac |
| 13610 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13611 | shlibpath_overrides_runpath=no |
| 13612 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13613 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13614 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13615 | ;; |
| 13616 | |
| 13617 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13618 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13619 | dynamic_linker=no |
| 13620 | ;; |
| 13621 | |
| 13622 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13623 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13624 | version_type=linux |
| 13625 | need_lib_prefix=no |
| 13626 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13628 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13629 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13630 | shlibpath_var=LD_LIBRARY_PATH |
| 13631 | shlibpath_overrides_runpath=no |
| 13632 | # This implies no fast_install, which is unacceptable. |
| 13633 | # Some rework will be needed to allow for fast_install |
| 13634 | # before this can be enabled. |
| 13635 | hardcode_into_libs=yes |
| 13636 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13637 | # Append ld.so.conf contents to the search path |
| 13638 | if test -f /etc/ld.so.conf; then |
| 13639 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 13640 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13641 | fi |
| 13642 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13643 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13644 | # powerpc, because MkLinux only supported shared libraries with the |
| 13645 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13646 | # most powerpc-linux boxes support dynamic linking these days and |
| 13647 | # people can always --disable-shared, the test was removed, and we |
| 13648 | # assume the GNU/Linux dynamic linker is in use. |
| 13649 | dynamic_linker='GNU/Linux ld.so' |
| 13650 | ;; |
| 13651 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13652 | knetbsd*-gnu) |
| 13653 | version_type=linux |
| 13654 | need_lib_prefix=no |
| 13655 | need_version=no |
| 13656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13657 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13658 | shlibpath_var=LD_LIBRARY_PATH |
| 13659 | shlibpath_overrides_runpath=no |
| 13660 | hardcode_into_libs=yes |
| 13661 | dynamic_linker='GNU ld.so' |
| 13662 | ;; |
| 13663 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13664 | netbsd*) |
| 13665 | version_type=sunos |
| 13666 | need_lib_prefix=no |
| 13667 | need_version=no |
| 13668 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13670 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13671 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13672 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13673 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13674 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13675 | dynamic_linker='NetBSD ld.elf_so' |
| 13676 | fi |
| 13677 | shlibpath_var=LD_LIBRARY_PATH |
| 13678 | shlibpath_overrides_runpath=yes |
| 13679 | hardcode_into_libs=yes |
| 13680 | ;; |
| 13681 | |
| 13682 | newsos6) |
| 13683 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13685 | shlibpath_var=LD_LIBRARY_PATH |
| 13686 | shlibpath_overrides_runpath=yes |
| 13687 | ;; |
| 13688 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13689 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13690 | version_type=linux |
| 13691 | need_lib_prefix=no |
| 13692 | need_version=no |
| 13693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13694 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13695 | shlibpath_var=LD_LIBRARY_PATH |
| 13696 | shlibpath_overrides_runpath=yes |
| 13697 | ;; |
| 13698 | |
| 13699 | openbsd*) |
| 13700 | version_type=sunos |
| 13701 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 13702 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13704 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13705 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13706 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13707 | case $host_os in |
| 13708 | openbsd2.[89] | openbsd2.[89].*) |
| 13709 | shlibpath_overrides_runpath=no |
| 13710 | ;; |
| 13711 | *) |
| 13712 | shlibpath_overrides_runpath=yes |
| 13713 | ;; |
| 13714 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13715 | else |
| 13716 | shlibpath_overrides_runpath=yes |
| 13717 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13718 | ;; |
| 13719 | |
| 13720 | os2*) |
| 13721 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13722 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13723 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13724 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13725 | dynamic_linker='OS/2 ld.exe' |
| 13726 | shlibpath_var=LIBPATH |
| 13727 | ;; |
| 13728 | |
| 13729 | osf3* | osf4* | osf5*) |
| 13730 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13731 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13732 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13733 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13734 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13735 | shlibpath_var=LD_LIBRARY_PATH |
| 13736 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13737 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13738 | ;; |
| 13739 | |
| 13740 | sco3.2v5*) |
| 13741 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13742 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13744 | shlibpath_var=LD_LIBRARY_PATH |
| 13745 | ;; |
| 13746 | |
| 13747 | solaris*) |
| 13748 | version_type=linux |
| 13749 | need_lib_prefix=no |
| 13750 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13752 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13753 | shlibpath_var=LD_LIBRARY_PATH |
| 13754 | shlibpath_overrides_runpath=yes |
| 13755 | hardcode_into_libs=yes |
| 13756 | # ldd complains unless libraries are executable |
| 13757 | postinstall_cmds='chmod +x $lib' |
| 13758 | ;; |
| 13759 | |
| 13760 | sunos4*) |
| 13761 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13763 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13764 | shlibpath_var=LD_LIBRARY_PATH |
| 13765 | shlibpath_overrides_runpath=yes |
| 13766 | if test "$with_gnu_ld" = yes; then |
| 13767 | need_lib_prefix=no |
| 13768 | fi |
| 13769 | need_version=yes |
| 13770 | ;; |
| 13771 | |
| 13772 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13773 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13775 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13776 | shlibpath_var=LD_LIBRARY_PATH |
| 13777 | case $host_vendor in |
| 13778 | sni) |
| 13779 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13780 | need_lib_prefix=no |
| 13781 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13782 | runpath_var=LD_RUN_PATH |
| 13783 | ;; |
| 13784 | siemens) |
| 13785 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13786 | ;; |
| 13787 | motorola) |
| 13788 | need_lib_prefix=no |
| 13789 | need_version=no |
| 13790 | shlibpath_overrides_runpath=no |
| 13791 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13792 | ;; |
| 13793 | esac |
| 13794 | ;; |
| 13795 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13796 | sysv4*MP*) |
| 13797 | if test -d /usr/nec ;then |
| 13798 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13799 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13800 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13801 | shlibpath_var=LD_LIBRARY_PATH |
| 13802 | fi |
| 13803 | ;; |
| 13804 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13805 | uts4*) |
| 13806 | version_type=linux |
| 13807 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13808 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13809 | shlibpath_var=LD_LIBRARY_PATH |
| 13810 | ;; |
| 13811 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13812 | *) |
| 13813 | dynamic_linker=no |
| 13814 | ;; |
| 13815 | esac |
| 13816 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13817 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 13818 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13819 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13820 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13821 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 13822 | hardcode_action= |
| 13823 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 13824 | test -n "$runpath_var" || \ |
| 13825 | test "X$hardcode_automatic" = "Xyes" ; then |
| 13826 | |
| 13827 | # We can hardcode non-existant directories. |
| 13828 | if test "$hardcode_direct" != no && |
| 13829 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13830 | # have to relink, otherwise we might link with an installed library |
| 13831 | # when we should be linking with a yet-to-be-installed one |
| 13832 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 13833 | test "$hardcode_minus_L" != no; then |
| 13834 | # Linking always hardcodes the temporary library directory. |
| 13835 | hardcode_action=relink |
| 13836 | else |
| 13837 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13838 | hardcode_action=immediate |
| 13839 | fi |
| 13840 | else |
| 13841 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13842 | # directories. |
| 13843 | hardcode_action=unsupported |
| 13844 | fi |
| 13845 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 13846 | echo "${ECHO_T}$hardcode_action" >&6 |
| 13847 | |
| 13848 | if test "$hardcode_action" = relink; then |
| 13849 | # Fast installation is not supported |
| 13850 | enable_fast_install=no |
| 13851 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13852 | test "$enable_shared" = no; then |
| 13853 | # Fast installation is not necessary |
| 13854 | enable_fast_install=needless |
| 13855 | fi |
| 13856 | |
| 13857 | striplib= |
| 13858 | old_striplib= |
| 13859 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 13860 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 13861 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 13862 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 13863 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 13864 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13865 | echo "${ECHO_T}yes" >&6 |
| 13866 | else |
| 13867 | # FIXME - insert some real tests, host_os isn't really good enough |
| 13868 | case $host_os in |
| 13869 | darwin*) |
| 13870 | if test -n "$STRIP" ; then |
| 13871 | striplib="$STRIP -x" |
| 13872 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13873 | echo "${ECHO_T}yes" >&6 |
| 13874 | else |
| 13875 | echo "$as_me:$LINENO: result: no" >&5 |
| 13876 | echo "${ECHO_T}no" >&6 |
| 13877 | fi |
| 13878 | ;; |
| 13879 | *) |
| 13880 | echo "$as_me:$LINENO: result: no" >&5 |
| 13881 | echo "${ECHO_T}no" >&6 |
| 13882 | ;; |
| 13883 | esac |
| 13884 | fi |
| 13885 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13886 | if test "x$enable_dlopen" != xyes; then |
| 13887 | enable_dlopen=unknown |
| 13888 | enable_dlopen_self=unknown |
| 13889 | enable_dlopen_self_static=unknown |
| 13890 | else |
| 13891 | lt_cv_dlopen=no |
| 13892 | lt_cv_dlopen_libs= |
| 13893 | |
| 13894 | case $host_os in |
| 13895 | beos*) |
| 13896 | lt_cv_dlopen="load_add_on" |
| 13897 | lt_cv_dlopen_libs= |
| 13898 | lt_cv_dlopen_self=yes |
| 13899 | ;; |
| 13900 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13901 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13902 | lt_cv_dlopen="LoadLibrary" |
| 13903 | lt_cv_dlopen_libs= |
| 13904 | ;; |
| 13905 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13906 | cygwin*) |
| 13907 | lt_cv_dlopen="dlopen" |
| 13908 | lt_cv_dlopen_libs= |
| 13909 | ;; |
| 13910 | |
| 13911 | darwin*) |
| 13912 | # if libdl is installed we need to link against it |
| 13913 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13914 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 13915 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13917 | else |
| 13918 | ac_check_lib_save_LIBS=$LIBS |
| 13919 | LIBS="-ldl $LIBS" |
| 13920 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13921 | /* confdefs.h. */ |
| 13922 | _ACEOF |
| 13923 | cat confdefs.h >>conftest.$ac_ext |
| 13924 | cat >>conftest.$ac_ext <<_ACEOF |
| 13925 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13926 | |
| 13927 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13928 | #ifdef __cplusplus |
| 13929 | extern "C" |
| 13930 | #endif |
| 13931 | /* We use char because int might match the return type of a gcc2 |
| 13932 | builtin and then its argument prototype would still apply. */ |
| 13933 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13934 | int |
| 13935 | main () |
| 13936 | { |
| 13937 | dlopen (); |
| 13938 | ; |
| 13939 | return 0; |
| 13940 | } |
| 13941 | _ACEOF |
| 13942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13944 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13945 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13947 | rm -f conftest.er1 |
| 13948 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13950 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13951 | { ac_try='test -z "$ac_c_werror_flag" |
| 13952 | || test ! -s conftest.err' |
| 13953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13954 | (eval $ac_try) 2>&5 |
| 13955 | ac_status=$? |
| 13956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13957 | (exit $ac_status); }; } && |
| 13958 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13960 | (eval $ac_try) 2>&5 |
| 13961 | ac_status=$? |
| 13962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13963 | (exit $ac_status); }; }; then |
| 13964 | ac_cv_lib_dl_dlopen=yes |
| 13965 | else |
| 13966 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13968 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13969 | ac_cv_lib_dl_dlopen=no |
| 13970 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13971 | rm -f conftest.err conftest.$ac_objext \ |
| 13972 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13973 | LIBS=$ac_check_lib_save_LIBS |
| 13974 | fi |
| 13975 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13976 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 13977 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13978 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 13979 | else |
| 13980 | |
| 13981 | lt_cv_dlopen="dyld" |
| 13982 | lt_cv_dlopen_libs= |
| 13983 | lt_cv_dlopen_self=yes |
| 13984 | |
| 13985 | fi |
| 13986 | |
| 13987 | ;; |
| 13988 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13989 | *) |
| 13990 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 13991 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 13992 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 13993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13994 | else |
| 13995 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13996 | /* confdefs.h. */ |
| 13997 | _ACEOF |
| 13998 | cat confdefs.h >>conftest.$ac_ext |
| 13999 | cat >>conftest.$ac_ext <<_ACEOF |
| 14000 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14001 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 14002 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14003 | #define shl_load innocuous_shl_load |
| 14004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14005 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14006 | which can conflict with char shl_load (); below. |
| 14007 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14008 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14009 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14010 | #ifdef __STDC__ |
| 14011 | # include <limits.h> |
| 14012 | #else |
| 14013 | # include <assert.h> |
| 14014 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14015 | |
| 14016 | #undef shl_load |
| 14017 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14018 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14019 | #ifdef __cplusplus |
| 14020 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14021 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14022 | #endif |
| 14023 | /* We use char because int might match the return type of a gcc2 |
| 14024 | builtin and then its argument prototype would still apply. */ |
| 14025 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14026 | /* The GNU C library defines this for functions which it implements |
| 14027 | to always fail with ENOSYS. Some functions are actually named |
| 14028 | something starting with __ and the normal name is an alias. */ |
| 14029 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 14030 | choke me |
| 14031 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14032 | char (*f) () = shl_load; |
| 14033 | #endif |
| 14034 | #ifdef __cplusplus |
| 14035 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14036 | #endif |
| 14037 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14038 | int |
| 14039 | main () |
| 14040 | { |
| 14041 | return f != shl_load; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14042 | ; |
| 14043 | return 0; |
| 14044 | } |
| 14045 | _ACEOF |
| 14046 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14048 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14049 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14051 | rm -f conftest.er1 |
| 14052 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14054 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14055 | { ac_try='test -z "$ac_c_werror_flag" |
| 14056 | || test ! -s conftest.err' |
| 14057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14058 | (eval $ac_try) 2>&5 |
| 14059 | ac_status=$? |
| 14060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14061 | (exit $ac_status); }; } && |
| 14062 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14064 | (eval $ac_try) 2>&5 |
| 14065 | ac_status=$? |
| 14066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14067 | (exit $ac_status); }; }; then |
| 14068 | ac_cv_func_shl_load=yes |
| 14069 | else |
| 14070 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14072 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14073 | ac_cv_func_shl_load=no |
| 14074 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14075 | rm -f conftest.err conftest.$ac_objext \ |
| 14076 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14077 | fi |
| 14078 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 14079 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 14080 | if test $ac_cv_func_shl_load = yes; then |
| 14081 | lt_cv_dlopen="shl_load" |
| 14082 | else |
| 14083 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 14084 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 14085 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 14086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14087 | else |
| 14088 | ac_check_lib_save_LIBS=$LIBS |
| 14089 | LIBS="-ldld $LIBS" |
| 14090 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14091 | /* confdefs.h. */ |
| 14092 | _ACEOF |
| 14093 | cat confdefs.h >>conftest.$ac_ext |
| 14094 | cat >>conftest.$ac_ext <<_ACEOF |
| 14095 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14096 | |
| 14097 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14098 | #ifdef __cplusplus |
| 14099 | extern "C" |
| 14100 | #endif |
| 14101 | /* We use char because int might match the return type of a gcc2 |
| 14102 | builtin and then its argument prototype would still apply. */ |
| 14103 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14104 | int |
| 14105 | main () |
| 14106 | { |
| 14107 | shl_load (); |
| 14108 | ; |
| 14109 | return 0; |
| 14110 | } |
| 14111 | _ACEOF |
| 14112 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14114 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14115 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14117 | rm -f conftest.er1 |
| 14118 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14120 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14121 | { ac_try='test -z "$ac_c_werror_flag" |
| 14122 | || test ! -s conftest.err' |
| 14123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14124 | (eval $ac_try) 2>&5 |
| 14125 | ac_status=$? |
| 14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14127 | (exit $ac_status); }; } && |
| 14128 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14130 | (eval $ac_try) 2>&5 |
| 14131 | ac_status=$? |
| 14132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14133 | (exit $ac_status); }; }; then |
| 14134 | ac_cv_lib_dld_shl_load=yes |
| 14135 | else |
| 14136 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14138 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14139 | ac_cv_lib_dld_shl_load=no |
| 14140 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14141 | rm -f conftest.err conftest.$ac_objext \ |
| 14142 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14143 | LIBS=$ac_check_lib_save_LIBS |
| 14144 | fi |
| 14145 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 14146 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 14147 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 14148 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 14149 | else |
| 14150 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 14151 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 14152 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 14153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14154 | else |
| 14155 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14156 | /* confdefs.h. */ |
| 14157 | _ACEOF |
| 14158 | cat confdefs.h >>conftest.$ac_ext |
| 14159 | cat >>conftest.$ac_ext <<_ACEOF |
| 14160 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14161 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 14162 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14163 | #define dlopen innocuous_dlopen |
| 14164 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14165 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14166 | which can conflict with char dlopen (); below. |
| 14167 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14168 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14169 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14170 | #ifdef __STDC__ |
| 14171 | # include <limits.h> |
| 14172 | #else |
| 14173 | # include <assert.h> |
| 14174 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14175 | |
| 14176 | #undef dlopen |
| 14177 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14178 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14179 | #ifdef __cplusplus |
| 14180 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14181 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14182 | #endif |
| 14183 | /* We use char because int might match the return type of a gcc2 |
| 14184 | builtin and then its argument prototype would still apply. */ |
| 14185 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14186 | /* The GNU C library defines this for functions which it implements |
| 14187 | to always fail with ENOSYS. Some functions are actually named |
| 14188 | something starting with __ and the normal name is an alias. */ |
| 14189 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 14190 | choke me |
| 14191 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14192 | char (*f) () = dlopen; |
| 14193 | #endif |
| 14194 | #ifdef __cplusplus |
| 14195 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14196 | #endif |
| 14197 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14198 | int |
| 14199 | main () |
| 14200 | { |
| 14201 | return f != dlopen; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14202 | ; |
| 14203 | return 0; |
| 14204 | } |
| 14205 | _ACEOF |
| 14206 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14208 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14209 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14211 | rm -f conftest.er1 |
| 14212 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14214 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14215 | { ac_try='test -z "$ac_c_werror_flag" |
| 14216 | || test ! -s conftest.err' |
| 14217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14218 | (eval $ac_try) 2>&5 |
| 14219 | ac_status=$? |
| 14220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14221 | (exit $ac_status); }; } && |
| 14222 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14224 | (eval $ac_try) 2>&5 |
| 14225 | ac_status=$? |
| 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14227 | (exit $ac_status); }; }; then |
| 14228 | ac_cv_func_dlopen=yes |
| 14229 | else |
| 14230 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14232 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14233 | ac_cv_func_dlopen=no |
| 14234 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14235 | rm -f conftest.err conftest.$ac_objext \ |
| 14236 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14237 | fi |
| 14238 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 14239 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 14240 | if test $ac_cv_func_dlopen = yes; then |
| 14241 | lt_cv_dlopen="dlopen" |
| 14242 | else |
| 14243 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14244 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 14245 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14247 | else |
| 14248 | ac_check_lib_save_LIBS=$LIBS |
| 14249 | LIBS="-ldl $LIBS" |
| 14250 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14251 | /* confdefs.h. */ |
| 14252 | _ACEOF |
| 14253 | cat confdefs.h >>conftest.$ac_ext |
| 14254 | cat >>conftest.$ac_ext <<_ACEOF |
| 14255 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14256 | |
| 14257 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14258 | #ifdef __cplusplus |
| 14259 | extern "C" |
| 14260 | #endif |
| 14261 | /* We use char because int might match the return type of a gcc2 |
| 14262 | builtin and then its argument prototype would still apply. */ |
| 14263 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14264 | int |
| 14265 | main () |
| 14266 | { |
| 14267 | dlopen (); |
| 14268 | ; |
| 14269 | return 0; |
| 14270 | } |
| 14271 | _ACEOF |
| 14272 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14274 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14275 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14277 | rm -f conftest.er1 |
| 14278 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14280 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14281 | { ac_try='test -z "$ac_c_werror_flag" |
| 14282 | || test ! -s conftest.err' |
| 14283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14284 | (eval $ac_try) 2>&5 |
| 14285 | ac_status=$? |
| 14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14287 | (exit $ac_status); }; } && |
| 14288 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14290 | (eval $ac_try) 2>&5 |
| 14291 | ac_status=$? |
| 14292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14293 | (exit $ac_status); }; }; then |
| 14294 | ac_cv_lib_dl_dlopen=yes |
| 14295 | else |
| 14296 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14298 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14299 | ac_cv_lib_dl_dlopen=no |
| 14300 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14301 | rm -f conftest.err conftest.$ac_objext \ |
| 14302 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14303 | LIBS=$ac_check_lib_save_LIBS |
| 14304 | fi |
| 14305 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14306 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 14307 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 14308 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14309 | else |
| 14310 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 14311 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 14312 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 14313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14314 | else |
| 14315 | ac_check_lib_save_LIBS=$LIBS |
| 14316 | LIBS="-lsvld $LIBS" |
| 14317 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14318 | /* confdefs.h. */ |
| 14319 | _ACEOF |
| 14320 | cat confdefs.h >>conftest.$ac_ext |
| 14321 | cat >>conftest.$ac_ext <<_ACEOF |
| 14322 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14323 | |
| 14324 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14325 | #ifdef __cplusplus |
| 14326 | extern "C" |
| 14327 | #endif |
| 14328 | /* We use char because int might match the return type of a gcc2 |
| 14329 | builtin and then its argument prototype would still apply. */ |
| 14330 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14331 | int |
| 14332 | main () |
| 14333 | { |
| 14334 | dlopen (); |
| 14335 | ; |
| 14336 | return 0; |
| 14337 | } |
| 14338 | _ACEOF |
| 14339 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14341 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14342 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14344 | rm -f conftest.er1 |
| 14345 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14347 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14348 | { ac_try='test -z "$ac_c_werror_flag" |
| 14349 | || test ! -s conftest.err' |
| 14350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14351 | (eval $ac_try) 2>&5 |
| 14352 | ac_status=$? |
| 14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14354 | (exit $ac_status); }; } && |
| 14355 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14357 | (eval $ac_try) 2>&5 |
| 14358 | ac_status=$? |
| 14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14360 | (exit $ac_status); }; }; then |
| 14361 | ac_cv_lib_svld_dlopen=yes |
| 14362 | else |
| 14363 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14365 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14366 | ac_cv_lib_svld_dlopen=no |
| 14367 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14368 | rm -f conftest.err conftest.$ac_objext \ |
| 14369 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14370 | LIBS=$ac_check_lib_save_LIBS |
| 14371 | fi |
| 14372 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 14373 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 14374 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 14375 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 14376 | else |
| 14377 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 14378 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 14379 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 14380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14381 | else |
| 14382 | ac_check_lib_save_LIBS=$LIBS |
| 14383 | LIBS="-ldld $LIBS" |
| 14384 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14385 | /* confdefs.h. */ |
| 14386 | _ACEOF |
| 14387 | cat confdefs.h >>conftest.$ac_ext |
| 14388 | cat >>conftest.$ac_ext <<_ACEOF |
| 14389 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14390 | |
| 14391 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14392 | #ifdef __cplusplus |
| 14393 | extern "C" |
| 14394 | #endif |
| 14395 | /* We use char because int might match the return type of a gcc2 |
| 14396 | builtin and then its argument prototype would still apply. */ |
| 14397 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14398 | int |
| 14399 | main () |
| 14400 | { |
| 14401 | dld_link (); |
| 14402 | ; |
| 14403 | return 0; |
| 14404 | } |
| 14405 | _ACEOF |
| 14406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14408 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14409 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14411 | rm -f conftest.er1 |
| 14412 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14414 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14415 | { ac_try='test -z "$ac_c_werror_flag" |
| 14416 | || test ! -s conftest.err' |
| 14417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14418 | (eval $ac_try) 2>&5 |
| 14419 | ac_status=$? |
| 14420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14421 | (exit $ac_status); }; } && |
| 14422 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14424 | (eval $ac_try) 2>&5 |
| 14425 | ac_status=$? |
| 14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14427 | (exit $ac_status); }; }; then |
| 14428 | ac_cv_lib_dld_dld_link=yes |
| 14429 | else |
| 14430 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14432 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14433 | ac_cv_lib_dld_dld_link=no |
| 14434 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14435 | rm -f conftest.err conftest.$ac_objext \ |
| 14436 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14437 | LIBS=$ac_check_lib_save_LIBS |
| 14438 | fi |
| 14439 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 14440 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 14441 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 14442 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 14443 | fi |
| 14444 | |
| 14445 | |
| 14446 | fi |
| 14447 | |
| 14448 | |
| 14449 | fi |
| 14450 | |
| 14451 | |
| 14452 | fi |
| 14453 | |
| 14454 | |
| 14455 | fi |
| 14456 | |
| 14457 | |
| 14458 | fi |
| 14459 | |
| 14460 | ;; |
| 14461 | esac |
| 14462 | |
| 14463 | if test "x$lt_cv_dlopen" != xno; then |
| 14464 | enable_dlopen=yes |
| 14465 | else |
| 14466 | enable_dlopen=no |
| 14467 | fi |
| 14468 | |
| 14469 | case $lt_cv_dlopen in |
| 14470 | dlopen) |
| 14471 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14472 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14473 | |
| 14474 | save_LDFLAGS="$LDFLAGS" |
| 14475 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 14476 | |
| 14477 | save_LIBS="$LIBS" |
| 14478 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 14479 | |
| 14480 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 14481 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 14482 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 14483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14484 | else |
| 14485 | if test "$cross_compiling" = yes; then : |
| 14486 | lt_cv_dlopen_self=cross |
| 14487 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14488 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14489 | lt_status=$lt_dlunknown |
| 14490 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 14491 | #line 14491 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14492 | #include "confdefs.h" |
| 14493 | |
| 14494 | #if HAVE_DLFCN_H |
| 14495 | #include <dlfcn.h> |
| 14496 | #endif |
| 14497 | |
| 14498 | #include <stdio.h> |
| 14499 | |
| 14500 | #ifdef RTLD_GLOBAL |
| 14501 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14502 | #else |
| 14503 | # ifdef DL_GLOBAL |
| 14504 | # define LT_DLGLOBAL DL_GLOBAL |
| 14505 | # else |
| 14506 | # define LT_DLGLOBAL 0 |
| 14507 | # endif |
| 14508 | #endif |
| 14509 | |
| 14510 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14511 | find out it does not work in some platform. */ |
| 14512 | #ifndef LT_DLLAZY_OR_NOW |
| 14513 | # ifdef RTLD_LAZY |
| 14514 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14515 | # else |
| 14516 | # ifdef DL_LAZY |
| 14517 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14518 | # else |
| 14519 | # ifdef RTLD_NOW |
| 14520 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14521 | # else |
| 14522 | # ifdef DL_NOW |
| 14523 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14524 | # else |
| 14525 | # define LT_DLLAZY_OR_NOW 0 |
| 14526 | # endif |
| 14527 | # endif |
| 14528 | # endif |
| 14529 | # endif |
| 14530 | #endif |
| 14531 | |
| 14532 | #ifdef __cplusplus |
| 14533 | extern "C" void exit (int); |
| 14534 | #endif |
| 14535 | |
| 14536 | void fnord() { int i=42;} |
| 14537 | int main () |
| 14538 | { |
| 14539 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14540 | int status = $lt_dlunknown; |
| 14541 | |
| 14542 | if (self) |
| 14543 | { |
| 14544 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14545 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14546 | /* dlclose (self); */ |
| 14547 | } |
| 14548 | |
| 14549 | exit (status); |
| 14550 | } |
| 14551 | EOF |
| 14552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14553 | (eval $ac_link) 2>&5 |
| 14554 | ac_status=$? |
| 14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14556 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14557 | (./conftest; exit; ) 2>/dev/null |
| 14558 | lt_status=$? |
| 14559 | case x$lt_status in |
| 14560 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 14561 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 14562 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 14563 | esac |
| 14564 | else : |
| 14565 | # compilation failed |
| 14566 | lt_cv_dlopen_self=no |
| 14567 | fi |
| 14568 | fi |
| 14569 | rm -fr conftest* |
| 14570 | |
| 14571 | |
| 14572 | fi |
| 14573 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 14574 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 14575 | |
| 14576 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 14577 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 14578 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 14579 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 14580 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 14581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14582 | else |
| 14583 | if test "$cross_compiling" = yes; then : |
| 14584 | lt_cv_dlopen_self_static=cross |
| 14585 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14586 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14587 | lt_status=$lt_dlunknown |
| 14588 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 14589 | #line 14589 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14590 | #include "confdefs.h" |
| 14591 | |
| 14592 | #if HAVE_DLFCN_H |
| 14593 | #include <dlfcn.h> |
| 14594 | #endif |
| 14595 | |
| 14596 | #include <stdio.h> |
| 14597 | |
| 14598 | #ifdef RTLD_GLOBAL |
| 14599 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14600 | #else |
| 14601 | # ifdef DL_GLOBAL |
| 14602 | # define LT_DLGLOBAL DL_GLOBAL |
| 14603 | # else |
| 14604 | # define LT_DLGLOBAL 0 |
| 14605 | # endif |
| 14606 | #endif |
| 14607 | |
| 14608 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14609 | find out it does not work in some platform. */ |
| 14610 | #ifndef LT_DLLAZY_OR_NOW |
| 14611 | # ifdef RTLD_LAZY |
| 14612 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14613 | # else |
| 14614 | # ifdef DL_LAZY |
| 14615 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14616 | # else |
| 14617 | # ifdef RTLD_NOW |
| 14618 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14619 | # else |
| 14620 | # ifdef DL_NOW |
| 14621 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14622 | # else |
| 14623 | # define LT_DLLAZY_OR_NOW 0 |
| 14624 | # endif |
| 14625 | # endif |
| 14626 | # endif |
| 14627 | # endif |
| 14628 | #endif |
| 14629 | |
| 14630 | #ifdef __cplusplus |
| 14631 | extern "C" void exit (int); |
| 14632 | #endif |
| 14633 | |
| 14634 | void fnord() { int i=42;} |
| 14635 | int main () |
| 14636 | { |
| 14637 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14638 | int status = $lt_dlunknown; |
| 14639 | |
| 14640 | if (self) |
| 14641 | { |
| 14642 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14643 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14644 | /* dlclose (self); */ |
| 14645 | } |
| 14646 | |
| 14647 | exit (status); |
| 14648 | } |
| 14649 | EOF |
| 14650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14651 | (eval $ac_link) 2>&5 |
| 14652 | ac_status=$? |
| 14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14654 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14655 | (./conftest; exit; ) 2>/dev/null |
| 14656 | lt_status=$? |
| 14657 | case x$lt_status in |
| 14658 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14659 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14660 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14661 | esac |
| 14662 | else : |
| 14663 | # compilation failed |
| 14664 | lt_cv_dlopen_self_static=no |
| 14665 | fi |
| 14666 | fi |
| 14667 | rm -fr conftest* |
| 14668 | |
| 14669 | |
| 14670 | fi |
| 14671 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 14672 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 14673 | fi |
| 14674 | |
| 14675 | CPPFLAGS="$save_CPPFLAGS" |
| 14676 | LDFLAGS="$save_LDFLAGS" |
| 14677 | LIBS="$save_LIBS" |
| 14678 | ;; |
| 14679 | esac |
| 14680 | |
| 14681 | case $lt_cv_dlopen_self in |
| 14682 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14683 | *) enable_dlopen_self=unknown ;; |
| 14684 | esac |
| 14685 | |
| 14686 | case $lt_cv_dlopen_self_static in |
| 14687 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14688 | *) enable_dlopen_self_static=unknown ;; |
| 14689 | esac |
| 14690 | fi |
| 14691 | |
| 14692 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14693 | # Report which librarie types wil actually be built |
| 14694 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14695 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 14696 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14697 | echo "${ECHO_T}$can_build_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14698 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14699 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14700 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 14701 | test "$can_build_shared" = "no" && enable_shared=no |
| 14702 | |
| 14703 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14704 | # are all built from PIC. |
| 14705 | case "$host_os" in |
| 14706 | aix3*) |
| 14707 | test "$enable_shared" = yes && enable_static=no |
| 14708 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14709 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14710 | postinstall_cmds='$RANLIB $lib' |
| 14711 | fi |
| 14712 | ;; |
| 14713 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14714 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14715 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14716 | test "$enable_shared" = yes && enable_static=no |
| 14717 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14718 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14719 | esac |
| 14720 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14721 | echo "${ECHO_T}$enable_shared" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14722 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14723 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14724 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 14725 | # Make sure either enable_shared or enable_static is yes. |
| 14726 | test "$enable_shared" = yes || enable_static=yes |
| 14727 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14728 | echo "${ECHO_T}$enable_static" >&6 |
| 14729 | |
| 14730 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14731 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14732 | # with your package, and you will get complaints that there are |
| 14733 | # no rules to generate ltmain.sh. |
| 14734 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14735 | # See if we are running on zsh, and set the options which allow our commands through |
| 14736 | # without removal of \ escapes. |
| 14737 | if test -n "${ZSH_VERSION+set}" ; then |
| 14738 | setopt NO_GLOB_SUBST |
| 14739 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14740 | # Now quote all the things that may contain metacharacters while being |
| 14741 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14742 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14743 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 14744 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14745 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14746 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14747 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14748 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14749 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14750 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14751 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14752 | compiler \ |
| 14753 | CC \ |
| 14754 | LD \ |
| 14755 | lt_prog_compiler_wl \ |
| 14756 | lt_prog_compiler_pic \ |
| 14757 | lt_prog_compiler_static \ |
| 14758 | lt_prog_compiler_no_builtin_flag \ |
| 14759 | export_dynamic_flag_spec \ |
| 14760 | thread_safe_flag_spec \ |
| 14761 | whole_archive_flag_spec \ |
| 14762 | enable_shared_with_static_runtimes \ |
| 14763 | old_archive_cmds \ |
| 14764 | old_archive_from_new_cmds \ |
| 14765 | predep_objects \ |
| 14766 | postdep_objects \ |
| 14767 | predeps \ |
| 14768 | postdeps \ |
| 14769 | compiler_lib_search_path \ |
| 14770 | archive_cmds \ |
| 14771 | archive_expsym_cmds \ |
| 14772 | postinstall_cmds \ |
| 14773 | postuninstall_cmds \ |
| 14774 | old_archive_from_expsyms_cmds \ |
| 14775 | allow_undefined_flag \ |
| 14776 | no_undefined_flag \ |
| 14777 | export_symbols_cmds \ |
| 14778 | hardcode_libdir_flag_spec \ |
| 14779 | hardcode_libdir_flag_spec_ld \ |
| 14780 | hardcode_libdir_separator \ |
| 14781 | hardcode_automatic \ |
| 14782 | module_cmds \ |
| 14783 | module_expsym_cmds \ |
| 14784 | lt_cv_prog_compiler_c_o \ |
| 14785 | exclude_expsyms \ |
| 14786 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14787 | |
| 14788 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14789 | old_archive_cmds | \ |
| 14790 | old_archive_from_new_cmds | \ |
| 14791 | archive_cmds | \ |
| 14792 | archive_expsym_cmds | \ |
| 14793 | module_cmds | \ |
| 14794 | module_expsym_cmds | \ |
| 14795 | old_archive_from_expsyms_cmds | \ |
| 14796 | export_symbols_cmds | \ |
| 14797 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14798 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14799 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14800 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14801 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14802 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14803 | ;; |
| 14804 | *) |
| 14805 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14806 | ;; |
| 14807 | esac |
| 14808 | done |
| 14809 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14810 | case $lt_echo in |
| 14811 | *'\$0 --fallback-echo"') |
| 14812 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14813 | ;; |
| 14814 | esac |
| 14815 | |
| 14816 | cfgfile="${ofile}T" |
| 14817 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 14818 | $rm -f "$cfgfile" |
| 14819 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 14820 | echo "$as_me: creating $ofile" >&6;} |
| 14821 | |
| 14822 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14823 | #! $SHELL |
| 14824 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14825 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14826 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 14827 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 14828 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14829 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 14830 | # Free Software Foundation, Inc. |
| 14831 | # |
| 14832 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14833 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 14834 | # |
| 14835 | # This program is free software; you can redistribute it and/or modify |
| 14836 | # it under the terms of the GNU General Public License as published by |
| 14837 | # the Free Software Foundation; either version 2 of the License, or |
| 14838 | # (at your option) any later version. |
| 14839 | # |
| 14840 | # This program is distributed in the hope that it will be useful, but |
| 14841 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14842 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14843 | # General Public License for more details. |
| 14844 | # |
| 14845 | # You should have received a copy of the GNU General Public License |
| 14846 | # along with this program; if not, write to the Free Software |
| 14847 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 14848 | # |
| 14849 | # As a special exception to the GNU General Public License, if you |
| 14850 | # distribute this file as part of a program that contains a |
| 14851 | # configuration script generated by Autoconf, you may include it under |
| 14852 | # the same distribution terms that you use for the rest of that program. |
| 14853 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14854 | # A sed program that does not truncate output. |
| 14855 | SED=$lt_SED |
| 14856 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14857 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14858 | Xsed="$SED -e s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14859 | |
| 14860 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 14861 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14862 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14863 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14864 | # The names of the tagged configurations supported by this script. |
| 14865 | available_tags= |
| 14866 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14867 | # ### BEGIN LIBTOOL CONFIG |
| 14868 | |
| 14869 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14870 | |
| 14871 | # Shell to use when invoking shell scripts. |
| 14872 | SHELL=$lt_SHELL |
| 14873 | |
| 14874 | # Whether or not to build shared libraries. |
| 14875 | build_libtool_libs=$enable_shared |
| 14876 | |
| 14877 | # Whether or not to build static libraries. |
| 14878 | build_old_libs=$enable_static |
| 14879 | |
| 14880 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14881 | build_libtool_need_lc=$archive_cmds_need_lc |
| 14882 | |
| 14883 | # Whether or not to disallow shared libs when runtime libs are static |
| 14884 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14885 | |
| 14886 | # Whether or not to optimize for fast installation. |
| 14887 | fast_install=$enable_fast_install |
| 14888 | |
| 14889 | # The host system. |
| 14890 | host_alias=$host_alias |
| 14891 | host=$host |
| 14892 | |
| 14893 | # An echo program that does not interpret backslashes. |
| 14894 | echo=$lt_echo |
| 14895 | |
| 14896 | # The archiver. |
| 14897 | AR=$lt_AR |
| 14898 | AR_FLAGS=$lt_AR_FLAGS |
| 14899 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14900 | # A C compiler. |
| 14901 | LTCC=$lt_LTCC |
| 14902 | |
| 14903 | # A language-specific compiler. |
| 14904 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14905 | |
| 14906 | # Is the compiler the GNU C compiler? |
| 14907 | with_gcc=$GCC |
| 14908 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14909 | # An ERE matcher. |
| 14910 | EGREP=$lt_EGREP |
| 14911 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14912 | # The linker used to build libraries. |
| 14913 | LD=$lt_LD |
| 14914 | |
| 14915 | # Whether we need hard or soft links. |
| 14916 | LN_S=$lt_LN_S |
| 14917 | |
| 14918 | # A BSD-compatible nm program. |
| 14919 | NM=$lt_NM |
| 14920 | |
| 14921 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14922 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14923 | |
| 14924 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14925 | MAGIC_CMD=$MAGIC_CMD |
| 14926 | |
| 14927 | # Used on cygwin: DLL creation program. |
| 14928 | DLLTOOL="$DLLTOOL" |
| 14929 | |
| 14930 | # Used on cygwin: object dumper. |
| 14931 | OBJDUMP="$OBJDUMP" |
| 14932 | |
| 14933 | # Used on cygwin: assembler. |
| 14934 | AS="$AS" |
| 14935 | |
| 14936 | # The name of the directory that contains temporary libtool files. |
| 14937 | objdir=$objdir |
| 14938 | |
| 14939 | # How to create reloadable object files. |
| 14940 | reload_flag=$lt_reload_flag |
| 14941 | reload_cmds=$lt_reload_cmds |
| 14942 | |
| 14943 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14944 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14945 | |
| 14946 | # Object file suffix (normally "o"). |
| 14947 | objext="$ac_objext" |
| 14948 | |
| 14949 | # Old archive suffix (normally "a"). |
| 14950 | libext="$libext" |
| 14951 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14952 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14953 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14954 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14955 | # Executable file suffix (normally ""). |
| 14956 | exeext="$exeext" |
| 14957 | |
| 14958 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14959 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14960 | pic_mode=$pic_mode |
| 14961 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14962 | # What is the maximum length of a command? |
| 14963 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14964 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14965 | # Does compiler simultaneously support -c and -o options? |
| 14966 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14967 | |
| 14968 | # Must we lock files when doing compilation ? |
| 14969 | need_locks=$lt_need_locks |
| 14970 | |
| 14971 | # Do we need the lib prefix for modules? |
| 14972 | need_lib_prefix=$need_lib_prefix |
| 14973 | |
| 14974 | # Do we need a version for libraries? |
| 14975 | need_version=$need_version |
| 14976 | |
| 14977 | # Whether dlopen is supported. |
| 14978 | dlopen_support=$enable_dlopen |
| 14979 | |
| 14980 | # Whether dlopen of programs is supported. |
| 14981 | dlopen_self=$enable_dlopen_self |
| 14982 | |
| 14983 | # Whether dlopen of statically linked programs is supported. |
| 14984 | dlopen_self_static=$enable_dlopen_self_static |
| 14985 | |
| 14986 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14987 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14988 | |
| 14989 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14990 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14991 | |
| 14992 | # Compiler flag to allow reflexive dlopens. |
| 14993 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 14994 | |
| 14995 | # Compiler flag to generate shared objects directly from archives. |
| 14996 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 14997 | |
| 14998 | # Compiler flag to generate thread-safe objects. |
| 14999 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 15000 | |
| 15001 | # Library versioning type. |
| 15002 | version_type=$version_type |
| 15003 | |
| 15004 | # Format of library name prefix. |
| 15005 | libname_spec=$lt_libname_spec |
| 15006 | |
| 15007 | # List of archive names. First name is the real one, the rest are links. |
| 15008 | # The last name is the one that the linker finds with -lNAME. |
| 15009 | library_names_spec=$lt_library_names_spec |
| 15010 | |
| 15011 | # The coded name of the library, if different from the real name. |
| 15012 | soname_spec=$lt_soname_spec |
| 15013 | |
| 15014 | # Commands used to build and install an old-style archive. |
| 15015 | RANLIB=$lt_RANLIB |
| 15016 | old_archive_cmds=$lt_old_archive_cmds |
| 15017 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15018 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15019 | |
| 15020 | # Create an old-style archive from a shared archive. |
| 15021 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 15022 | |
| 15023 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15024 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 15025 | |
| 15026 | # Commands used to build and install a shared archive. |
| 15027 | archive_cmds=$lt_archive_cmds |
| 15028 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 15029 | postinstall_cmds=$lt_postinstall_cmds |
| 15030 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15031 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15032 | # Commands used to build a loadable module (assumed same as above if empty) |
| 15033 | module_cmds=$lt_module_cmds |
| 15034 | module_expsym_cmds=$lt_module_expsym_cmds |
| 15035 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15036 | # Commands to strip libraries. |
| 15037 | old_striplib=$lt_old_striplib |
| 15038 | striplib=$lt_striplib |
| 15039 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15040 | # Dependencies to place before the objects being linked to create a |
| 15041 | # shared library. |
| 15042 | predep_objects=$lt_predep_objects |
| 15043 | |
| 15044 | # Dependencies to place after the objects being linked to create a |
| 15045 | # shared library. |
| 15046 | postdep_objects=$lt_postdep_objects |
| 15047 | |
| 15048 | # Dependencies to place before the objects being linked to create a |
| 15049 | # shared library. |
| 15050 | predeps=$lt_predeps |
| 15051 | |
| 15052 | # Dependencies to place after the objects being linked to create a |
| 15053 | # shared library. |
| 15054 | postdeps=$lt_postdeps |
| 15055 | |
| 15056 | # The library search path used internally by the compiler when linking |
| 15057 | # a shared library. |
| 15058 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 15059 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15060 | # Method to check whether dependent libraries are shared objects. |
| 15061 | deplibs_check_method=$lt_deplibs_check_method |
| 15062 | |
| 15063 | # Command to use when deplibs_check_method == file_magic. |
| 15064 | file_magic_cmd=$lt_file_magic_cmd |
| 15065 | |
| 15066 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15067 | allow_undefined_flag=$lt_allow_undefined_flag |
| 15068 | |
| 15069 | # Flag that forces no undefined symbols. |
| 15070 | no_undefined_flag=$lt_no_undefined_flag |
| 15071 | |
| 15072 | # Commands used to finish a libtool library installation in a directory. |
| 15073 | finish_cmds=$lt_finish_cmds |
| 15074 | |
| 15075 | # Same as above, but a single script fragment to be evaled but not shown. |
| 15076 | finish_eval=$lt_finish_eval |
| 15077 | |
| 15078 | # Take the output of nm and produce a listing of raw symbols and C names. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15079 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15080 | |
| 15081 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15082 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15083 | |
| 15084 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15085 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15086 | |
| 15087 | # This is the shared library runtime path variable. |
| 15088 | runpath_var=$runpath_var |
| 15089 | |
| 15090 | # This is the shared library path variable. |
| 15091 | shlibpath_var=$shlibpath_var |
| 15092 | |
| 15093 | # Is shlibpath searched before the hard-coded library search path? |
| 15094 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15095 | |
| 15096 | # How to hardcode a shared library path into an executable. |
| 15097 | hardcode_action=$hardcode_action |
| 15098 | |
| 15099 | # Whether we should hardcode library paths into libraries. |
| 15100 | hardcode_into_libs=$hardcode_into_libs |
| 15101 | |
| 15102 | # Flag to hardcode \$libdir into a binary during linking. |
| 15103 | # This must work even if \$libdir does not exist. |
| 15104 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 15105 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15106 | # If ld is used when linking, flag to hardcode \$libdir into |
| 15107 | # a binary during linking. This must work even if \$libdir does |
| 15108 | # not exist. |
| 15109 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 15110 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15111 | # Whether we need a single -rpath flag with a separated argument. |
| 15112 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 15113 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15114 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15115 | # resulting binary. |
| 15116 | hardcode_direct=$hardcode_direct |
| 15117 | |
| 15118 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 15119 | # resulting binary. |
| 15120 | hardcode_minus_L=$hardcode_minus_L |
| 15121 | |
| 15122 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 15123 | # the resulting binary. |
| 15124 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 15125 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15126 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 15127 | # and all subsequent libraries and executables linked against it. |
| 15128 | hardcode_automatic=$hardcode_automatic |
| 15129 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15130 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15131 | # restored at relink time. |
| 15132 | variables_saved_for_relink="$variables_saved_for_relink" |
| 15133 | |
| 15134 | # Whether libtool must link a program against all its dependency libraries. |
| 15135 | link_all_deplibs=$link_all_deplibs |
| 15136 | |
| 15137 | # Compile-time system search path for libraries |
| 15138 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15139 | |
| 15140 | # Run-time system search path for libraries |
| 15141 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15142 | |
| 15143 | # Fix the shell variable \$srcfile for the compiler. |
| 15144 | fix_srcfile_path="$fix_srcfile_path" |
| 15145 | |
| 15146 | # Set to yes if exported symbols are required. |
| 15147 | always_export_symbols=$always_export_symbols |
| 15148 | |
| 15149 | # The commands to list exported symbols. |
| 15150 | export_symbols_cmds=$lt_export_symbols_cmds |
| 15151 | |
| 15152 | # The commands to extract the exported symbol list from a shared archive. |
| 15153 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15154 | |
| 15155 | # Symbols that should not be listed in the preloaded symbols. |
| 15156 | exclude_expsyms=$lt_exclude_expsyms |
| 15157 | |
| 15158 | # Symbols that must always be exported. |
| 15159 | include_expsyms=$lt_include_expsyms |
| 15160 | |
| 15161 | # ### END LIBTOOL CONFIG |
| 15162 | |
| 15163 | __EOF__ |
| 15164 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15165 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15166 | case $host_os in |
| 15167 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15168 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15169 | |
| 15170 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 15171 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 15172 | # vanish in a puff of smoke. |
| 15173 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 15174 | COLLECT_NAMES= |
| 15175 | export COLLECT_NAMES |
| 15176 | fi |
| 15177 | EOF |
| 15178 | ;; |
| 15179 | esac |
| 15180 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15181 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 15182 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 15183 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 15184 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15185 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15186 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15187 | mv -f "$cfgfile" "$ofile" || \ |
| 15188 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15189 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15190 | |
| 15191 | else |
| 15192 | # If there is no Makefile yet, we rely on a make rule to execute |
| 15193 | # `config.status --recheck' to rerun these tests and create the |
| 15194 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15195 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 15196 | if test -f "$ltmain_in"; then |
| 15197 | test -f Makefile && make "$ltmain" |
| 15198 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15199 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15200 | |
| 15201 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15202 | ac_ext=c |
| 15203 | ac_cpp='$CPP $CPPFLAGS' |
| 15204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15207 | |
| 15208 | CC="$lt_save_CC" |
| 15209 | |
| 15210 | |
| 15211 | # Check whether --with-tags or --without-tags was given. |
| 15212 | if test "${with_tags+set}" = set; then |
| 15213 | withval="$with_tags" |
| 15214 | tagnames="$withval" |
| 15215 | fi; |
| 15216 | |
| 15217 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 15218 | if test ! -f "${ofile}"; then |
| 15219 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 15220 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 15221 | fi |
| 15222 | |
| 15223 | if test -z "$LTCC"; then |
| 15224 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 15225 | if test -z "$LTCC"; then |
| 15226 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 15227 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 15228 | else |
| 15229 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 15230 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 15231 | fi |
| 15232 | fi |
| 15233 | |
| 15234 | # Extract list of available tagged configurations in $ofile. |
| 15235 | # Note that this assumes the entire list is on one line. |
| 15236 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 15237 | |
| 15238 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 15239 | for tagname in $tagnames; do |
| 15240 | IFS="$lt_save_ifs" |
| 15241 | # Check whether tagname contains only valid characters |
| 15242 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 15243 | "") ;; |
| 15244 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 15245 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 15246 | { (exit 1); exit 1; }; } |
| 15247 | ;; |
| 15248 | esac |
| 15249 | |
| 15250 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 15251 | then |
| 15252 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 15253 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 15254 | { (exit 1); exit 1; }; } |
| 15255 | fi |
| 15256 | |
| 15257 | # Update the list of available tags. |
| 15258 | if test -n "$tagname"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15259 | echo appending configuration tag "$tagname" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15260 | |
| 15261 | case $tagname in |
| 15262 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15263 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 15264 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 15265 | (test "X$CXX" != "Xg++"))) ; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15266 | ac_ext=cc |
| 15267 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15268 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15269 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15270 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15271 | |
| 15272 | |
| 15273 | |
| 15274 | |
| 15275 | archive_cmds_need_lc_CXX=no |
| 15276 | allow_undefined_flag_CXX= |
| 15277 | always_export_symbols_CXX=no |
| 15278 | archive_expsym_cmds_CXX= |
| 15279 | export_dynamic_flag_spec_CXX= |
| 15280 | hardcode_direct_CXX=no |
| 15281 | hardcode_libdir_flag_spec_CXX= |
| 15282 | hardcode_libdir_flag_spec_ld_CXX= |
| 15283 | hardcode_libdir_separator_CXX= |
| 15284 | hardcode_minus_L_CXX=no |
| 15285 | hardcode_automatic_CXX=no |
| 15286 | module_cmds_CXX= |
| 15287 | module_expsym_cmds_CXX= |
| 15288 | link_all_deplibs_CXX=unknown |
| 15289 | old_archive_cmds_CXX=$old_archive_cmds |
| 15290 | no_undefined_flag_CXX= |
| 15291 | whole_archive_flag_spec_CXX= |
| 15292 | enable_shared_with_static_runtimes_CXX=no |
| 15293 | |
| 15294 | # Dependencies to place before and after the object being linked: |
| 15295 | predep_objects_CXX= |
| 15296 | postdep_objects_CXX= |
| 15297 | predeps_CXX= |
| 15298 | postdeps_CXX= |
| 15299 | compiler_lib_search_path_CXX= |
| 15300 | |
| 15301 | # Source file extension for C++ test sources. |
| 15302 | ac_ext=cc |
| 15303 | |
| 15304 | # Object file extension for compiled C++ test sources. |
| 15305 | objext=o |
| 15306 | objext_CXX=$objext |
| 15307 | |
| 15308 | # Code to be used in simple compile tests |
| 15309 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 15310 | |
| 15311 | # Code to be used in simple link tests |
| 15312 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 15313 | |
| 15314 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15315 | |
| 15316 | # If no C compiler was specified, use CC. |
| 15317 | LTCC=${LTCC-"$CC"} |
| 15318 | |
| 15319 | # Allow CC to be a program name with arguments. |
| 15320 | compiler=$CC |
| 15321 | |
| 15322 | |
| 15323 | # Allow CC to be a program name with arguments. |
| 15324 | lt_save_CC=$CC |
| 15325 | lt_save_LD=$LD |
| 15326 | lt_save_GCC=$GCC |
| 15327 | GCC=$GXX |
| 15328 | lt_save_with_gnu_ld=$with_gnu_ld |
| 15329 | lt_save_path_LD=$lt_cv_path_LD |
| 15330 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 15331 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 15332 | else |
| 15333 | unset lt_cv_prog_gnu_ld |
| 15334 | fi |
| 15335 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 15336 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 15337 | else |
| 15338 | unset lt_cv_path_LD |
| 15339 | fi |
| 15340 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 15341 | CC=${CXX-"c++"} |
| 15342 | compiler=$CC |
| 15343 | compiler_CXX=$CC |
| 15344 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 15345 | |
| 15346 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 15347 | # no_builtin_flag separately |
| 15348 | if test "$GXX" = yes; then |
| 15349 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 15350 | else |
| 15351 | lt_prog_compiler_no_builtin_flag_CXX= |
| 15352 | fi |
| 15353 | |
| 15354 | if test "$GXX" = yes; then |
| 15355 | # Set up default GNU C++ configuration |
| 15356 | |
| 15357 | |
| 15358 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 15359 | if test "${with_gnu_ld+set}" = set; then |
| 15360 | withval="$with_gnu_ld" |
| 15361 | test "$withval" = no || with_gnu_ld=yes |
| 15362 | else |
| 15363 | with_gnu_ld=no |
| 15364 | fi; |
| 15365 | ac_prog=ld |
| 15366 | if test "$GCC" = yes; then |
| 15367 | # Check if gcc -print-prog-name=ld gives a path. |
| 15368 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 15369 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 15370 | case $host in |
| 15371 | *-*-mingw*) |
| 15372 | # gcc leaves a trailing carriage return which upsets mingw |
| 15373 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 15374 | *) |
| 15375 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 15376 | esac |
| 15377 | case $ac_prog in |
| 15378 | # Accept absolute paths. |
| 15379 | [\\/]* | ?:[\\/]*) |
| 15380 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15381 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15382 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 15383 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 15384 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 15385 | done |
| 15386 | test -z "$LD" && LD="$ac_prog" |
| 15387 | ;; |
| 15388 | "") |
| 15389 | # If it fails, then pretend we aren't using GCC. |
| 15390 | ac_prog=ld |
| 15391 | ;; |
| 15392 | *) |
| 15393 | # If it is relative, then search for the first ld in PATH. |
| 15394 | with_gnu_ld=unknown |
| 15395 | ;; |
| 15396 | esac |
| 15397 | elif test "$with_gnu_ld" = yes; then |
| 15398 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 15399 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 15400 | else |
| 15401 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 15402 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 15403 | fi |
| 15404 | if test "${lt_cv_path_LD+set}" = set; then |
| 15405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15406 | else |
| 15407 | if test -z "$LD"; then |
| 15408 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 15409 | for ac_dir in $PATH; do |
| 15410 | IFS="$lt_save_ifs" |
| 15411 | test -z "$ac_dir" && ac_dir=. |
| 15412 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 15413 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 15414 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 15415 | # but apparently some GNU ld's only accept -v. |
| 15416 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 15417 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 15418 | *GNU* | *'with BFD'*) |
| 15419 | test "$with_gnu_ld" != no && break |
| 15420 | ;; |
| 15421 | *) |
| 15422 | test "$with_gnu_ld" != yes && break |
| 15423 | ;; |
| 15424 | esac |
| 15425 | fi |
| 15426 | done |
| 15427 | IFS="$lt_save_ifs" |
| 15428 | else |
| 15429 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 15430 | fi |
| 15431 | fi |
| 15432 | |
| 15433 | LD="$lt_cv_path_LD" |
| 15434 | if test -n "$LD"; then |
| 15435 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 15436 | echo "${ECHO_T}$LD" >&6 |
| 15437 | else |
| 15438 | echo "$as_me:$LINENO: result: no" >&5 |
| 15439 | echo "${ECHO_T}no" >&6 |
| 15440 | fi |
| 15441 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 15442 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 15443 | { (exit 1); exit 1; }; } |
| 15444 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 15445 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 15446 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 15447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15448 | else |
| 15449 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15450 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15451 | *GNU* | *'with BFD'*) |
| 15452 | lt_cv_prog_gnu_ld=yes |
| 15453 | ;; |
| 15454 | *) |
| 15455 | lt_cv_prog_gnu_ld=no |
| 15456 | ;; |
| 15457 | esac |
| 15458 | fi |
| 15459 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 15460 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 15461 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 15462 | |
| 15463 | |
| 15464 | |
| 15465 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 15466 | # archiving commands below assume that GNU ld is being used. |
| 15467 | if test "$with_gnu_ld" = yes; then |
| 15468 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15469 | 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' |
| 15470 | |
| 15471 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 15472 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15473 | |
| 15474 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15475 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 15476 | # investigate it a little bit more. (MM) |
| 15477 | wlarc='${wl}' |
| 15478 | |
| 15479 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15480 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 15481 | grep 'no-whole-archive' > /dev/null; then |
| 15482 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15483 | else |
| 15484 | whole_archive_flag_spec_CXX= |
| 15485 | fi |
| 15486 | else |
| 15487 | with_gnu_ld=no |
| 15488 | wlarc= |
| 15489 | |
| 15490 | # A generic and very simple default shared library creation |
| 15491 | # command for GNU C++ for the case where it uses the native |
| 15492 | # linker, instead of GNU ld. If possible, this setting should |
| 15493 | # overridden to take advantage of the native linker features on |
| 15494 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15495 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15496 | fi |
| 15497 | |
| 15498 | # Commands to make compiler produce verbose output that lists |
| 15499 | # what "hidden" libraries, object files and flags are used when |
| 15500 | # linking a shared library. |
| 15501 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 15502 | |
| 15503 | else |
| 15504 | GXX=no |
| 15505 | with_gnu_ld=no |
| 15506 | wlarc= |
| 15507 | fi |
| 15508 | |
| 15509 | # PORTME: fill in a description of your system's C++ link characteristics |
| 15510 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15511 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15512 | ld_shlibs_CXX=yes |
| 15513 | case $host_os in |
| 15514 | aix3*) |
| 15515 | # FIXME: insert proper C++ library support |
| 15516 | ld_shlibs_CXX=no |
| 15517 | ;; |
| 15518 | aix4* | aix5*) |
| 15519 | if test "$host_cpu" = ia64; then |
| 15520 | # On IA64, the linker does run time linking by default, so we don't |
| 15521 | # have to do anything special. |
| 15522 | aix_use_runtimelinking=no |
| 15523 | exp_sym_flag='-Bexport' |
| 15524 | no_entry_flag="" |
| 15525 | else |
| 15526 | aix_use_runtimelinking=no |
| 15527 | |
| 15528 | # Test if we are trying to use run time linking or normal |
| 15529 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15530 | # need to do runtime linking. |
| 15531 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15532 | for ld_flag in $LDFLAGS; do |
| 15533 | case $ld_flag in |
| 15534 | *-brtl*) |
| 15535 | aix_use_runtimelinking=yes |
| 15536 | break |
| 15537 | ;; |
| 15538 | esac |
| 15539 | done |
| 15540 | esac |
| 15541 | |
| 15542 | exp_sym_flag='-bexport' |
| 15543 | no_entry_flag='-bnoentry' |
| 15544 | fi |
| 15545 | |
| 15546 | # When large executables or shared objects are built, AIX ld can |
| 15547 | # have problems creating the table of contents. If linking a library |
| 15548 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15549 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15550 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15551 | |
| 15552 | archive_cmds_CXX='' |
| 15553 | hardcode_direct_CXX=yes |
| 15554 | hardcode_libdir_separator_CXX=':' |
| 15555 | link_all_deplibs_CXX=yes |
| 15556 | |
| 15557 | if test "$GXX" = yes; then |
| 15558 | case $host_os in aix4.012|aix4.012.*) |
| 15559 | # We only want to do this on AIX 4.2 and lower, the check |
| 15560 | # below for broken collect2 doesn't work under 4.3+ |
| 15561 | collect2name=`${CC} -print-prog-name=collect2` |
| 15562 | if test -f "$collect2name" && \ |
| 15563 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15564 | then |
| 15565 | # We have reworked collect2 |
| 15566 | hardcode_direct_CXX=yes |
| 15567 | else |
| 15568 | # We have old collect2 |
| 15569 | hardcode_direct_CXX=unsupported |
| 15570 | # It fails to find uninstalled libraries when the uninstalled |
| 15571 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15572 | # to unsupported forces relinking |
| 15573 | hardcode_minus_L_CXX=yes |
| 15574 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15575 | hardcode_libdir_separator_CXX= |
| 15576 | fi |
| 15577 | esac |
| 15578 | shared_flag='-shared' |
| 15579 | else |
| 15580 | # not using gcc |
| 15581 | if test "$host_cpu" = ia64; then |
| 15582 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15583 | # chokes on -Wl,-G. The following line is correct: |
| 15584 | shared_flag='-G' |
| 15585 | else |
| 15586 | if test "$aix_use_runtimelinking" = yes; then |
| 15587 | shared_flag='${wl}-G' |
| 15588 | else |
| 15589 | shared_flag='${wl}-bM:SRE' |
| 15590 | fi |
| 15591 | fi |
| 15592 | fi |
| 15593 | |
| 15594 | # It seems that -bexpall does not export symbols beginning with |
| 15595 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15596 | always_export_symbols_CXX=yes |
| 15597 | if test "$aix_use_runtimelinking" = yes; then |
| 15598 | # Warning - without using the other runtime loading flags (-brtl), |
| 15599 | # -berok will link without error, but may produce a broken library. |
| 15600 | allow_undefined_flag_CXX='-berok' |
| 15601 | # Determine the default libpath from the value encoded in an empty executable. |
| 15602 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15603 | /* confdefs.h. */ |
| 15604 | _ACEOF |
| 15605 | cat confdefs.h >>conftest.$ac_ext |
| 15606 | cat >>conftest.$ac_ext <<_ACEOF |
| 15607 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15608 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15609 | int |
| 15610 | main () |
| 15611 | { |
| 15612 | |
| 15613 | ; |
| 15614 | return 0; |
| 15615 | } |
| 15616 | _ACEOF |
| 15617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15619 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15620 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15622 | rm -f conftest.er1 |
| 15623 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15625 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15626 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 15627 | || test ! -s conftest.err' |
| 15628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15629 | (eval $ac_try) 2>&5 |
| 15630 | ac_status=$? |
| 15631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15632 | (exit $ac_status); }; } && |
| 15633 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15635 | (eval $ac_try) 2>&5 |
| 15636 | ac_status=$? |
| 15637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15638 | (exit $ac_status); }; }; then |
| 15639 | |
| 15640 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15641 | }'` |
| 15642 | # Check for a 64-bit object if we didn't find anything. |
| 15643 | 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; } |
| 15644 | }'`; fi |
| 15645 | else |
| 15646 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15648 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15649 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15650 | rm -f conftest.err conftest.$ac_objext \ |
| 15651 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15652 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15653 | |
| 15654 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15655 | |
| 15656 | 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" |
| 15657 | else |
| 15658 | if test "$host_cpu" = ia64; then |
| 15659 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 15660 | allow_undefined_flag_CXX="-z nodefs" |
| 15661 | 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" |
| 15662 | else |
| 15663 | # Determine the default libpath from the value encoded in an empty executable. |
| 15664 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15665 | /* confdefs.h. */ |
| 15666 | _ACEOF |
| 15667 | cat confdefs.h >>conftest.$ac_ext |
| 15668 | cat >>conftest.$ac_ext <<_ACEOF |
| 15669 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15670 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15671 | int |
| 15672 | main () |
| 15673 | { |
| 15674 | |
| 15675 | ; |
| 15676 | return 0; |
| 15677 | } |
| 15678 | _ACEOF |
| 15679 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15681 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15682 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15684 | rm -f conftest.er1 |
| 15685 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15687 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15688 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 15689 | || test ! -s conftest.err' |
| 15690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15691 | (eval $ac_try) 2>&5 |
| 15692 | ac_status=$? |
| 15693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15694 | (exit $ac_status); }; } && |
| 15695 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15697 | (eval $ac_try) 2>&5 |
| 15698 | ac_status=$? |
| 15699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15700 | (exit $ac_status); }; }; then |
| 15701 | |
| 15702 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15703 | }'` |
| 15704 | # Check for a 64-bit object if we didn't find anything. |
| 15705 | 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; } |
| 15706 | }'`; fi |
| 15707 | else |
| 15708 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15710 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15711 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15712 | rm -f conftest.err conftest.$ac_objext \ |
| 15713 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15714 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15715 | |
| 15716 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15717 | # Warning - without using the other run time loading flags, |
| 15718 | # -berok will link without error, but may produce a broken library. |
| 15719 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 15720 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 15721 | # -bexpall does not export symbols beginning with underscore (_) |
| 15722 | always_export_symbols_CXX=yes |
| 15723 | # Exported symbols can be pulled into shared objects from archives |
| 15724 | whole_archive_flag_spec_CXX=' ' |
| 15725 | archive_cmds_need_lc_CXX=yes |
| 15726 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15727 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15728 | fi |
| 15729 | fi |
| 15730 | ;; |
| 15731 | chorus*) |
| 15732 | case $cc_basename in |
| 15733 | *) |
| 15734 | # FIXME: insert proper C++ library support |
| 15735 | ld_shlibs_CXX=no |
| 15736 | ;; |
| 15737 | esac |
| 15738 | ;; |
| 15739 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15740 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15741 | cygwin* | mingw* | pw32*) |
| 15742 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 15743 | # as there is no search path for DLLs. |
| 15744 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15745 | allow_undefined_flag_CXX=unsupported |
| 15746 | always_export_symbols_CXX=no |
| 15747 | enable_shared_with_static_runtimes_CXX=yes |
| 15748 | |
| 15749 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15750 | 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' |
| 15751 | # If the export-symbols file already is a .def file (1st line |
| 15752 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15753 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15754 | cp $export_symbols $output_objdir/$soname.def; |
| 15755 | else |
| 15756 | echo EXPORTS > $output_objdir/$soname.def; |
| 15757 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15758 | fi~ |
| 15759 | $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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15760 | else |
| 15761 | ld_shlibs_CXX=no |
| 15762 | fi |
| 15763 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15764 | darwin* | rhapsody*) |
| 15765 | case "$host_os" in |
| 15766 | rhapsody* | darwin1.[012]) |
| 15767 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 15768 | ;; |
| 15769 | *) # Darwin 1.3 on |
| 15770 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15771 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15772 | else |
| 15773 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15774 | 10.[012]) |
| 15775 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15776 | ;; |
| 15777 | 10.*) |
| 15778 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 15779 | ;; |
| 15780 | esac |
| 15781 | fi |
| 15782 | ;; |
| 15783 | esac |
| 15784 | archive_cmds_need_lc_CXX=no |
| 15785 | hardcode_direct_CXX=no |
| 15786 | hardcode_automatic_CXX=yes |
| 15787 | hardcode_shlibpath_var_CXX=unsupported |
| 15788 | whole_archive_flag_spec_CXX='' |
| 15789 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15790 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15791 | if test "$GXX" = yes ; then |
| 15792 | lt_int_apple_cc_single_mod=no |
| 15793 | output_verbose_link_cmd='echo' |
| 15794 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 15795 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15796 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15797 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15798 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15799 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15800 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15801 | fi |
| 15802 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15803 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15804 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15805 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15806 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15807 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15808 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15809 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15810 | else |
| 15811 | case "$cc_basename" in |
| 15812 | xlc*) |
| 15813 | output_verbose_link_cmd='echo' |
| 15814 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15815 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15816 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15817 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15818 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15819 | ;; |
| 15820 | *) |
| 15821 | ld_shlibs_CXX=no |
| 15822 | ;; |
| 15823 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15824 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15825 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15826 | |
| 15827 | dgux*) |
| 15828 | case $cc_basename in |
| 15829 | ec++) |
| 15830 | # FIXME: insert proper C++ library support |
| 15831 | ld_shlibs_CXX=no |
| 15832 | ;; |
| 15833 | ghcx) |
| 15834 | # Green Hills C++ Compiler |
| 15835 | # FIXME: insert proper C++ library support |
| 15836 | ld_shlibs_CXX=no |
| 15837 | ;; |
| 15838 | *) |
| 15839 | # FIXME: insert proper C++ library support |
| 15840 | ld_shlibs_CXX=no |
| 15841 | ;; |
| 15842 | esac |
| 15843 | ;; |
| 15844 | freebsd12*) |
| 15845 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 15846 | ld_shlibs_CXX=no |
| 15847 | ;; |
| 15848 | freebsd-elf*) |
| 15849 | archive_cmds_need_lc_CXX=no |
| 15850 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15851 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15852 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 15853 | # conventions |
| 15854 | ld_shlibs_CXX=yes |
| 15855 | ;; |
| 15856 | gnu*) |
| 15857 | ;; |
| 15858 | hpux9*) |
| 15859 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15860 | hardcode_libdir_separator_CXX=: |
| 15861 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15862 | hardcode_direct_CXX=yes |
| 15863 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15864 | # but as the default |
| 15865 | # location of the library. |
| 15866 | |
| 15867 | case $cc_basename in |
| 15868 | CC) |
| 15869 | # FIXME: insert proper C++ library support |
| 15870 | ld_shlibs_CXX=no |
| 15871 | ;; |
| 15872 | aCC) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15873 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15874 | # Commands to make compiler produce verbose output that lists |
| 15875 | # what "hidden" libraries, object files and flags are used when |
| 15876 | # linking a shared library. |
| 15877 | # |
| 15878 | # There doesn't appear to be a way to prevent this compiler from |
| 15879 | # explicitly linking system object files so we need to strip them |
| 15880 | # from the output so that they don't get included in the library |
| 15881 | # dependencies. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15882 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15883 | ;; |
| 15884 | *) |
| 15885 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15886 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15887 | else |
| 15888 | # FIXME: insert proper C++ library support |
| 15889 | ld_shlibs_CXX=no |
| 15890 | fi |
| 15891 | ;; |
| 15892 | esac |
| 15893 | ;; |
| 15894 | hpux10*|hpux11*) |
| 15895 | if test $with_gnu_ld = no; then |
| 15896 | case "$host_cpu" in |
| 15897 | hppa*64*) |
| 15898 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15899 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 15900 | hardcode_libdir_separator_CXX=: |
| 15901 | ;; |
| 15902 | ia64*) |
| 15903 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15904 | ;; |
| 15905 | *) |
| 15906 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15907 | hardcode_libdir_separator_CXX=: |
| 15908 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15909 | ;; |
| 15910 | esac |
| 15911 | fi |
| 15912 | case "$host_cpu" in |
| 15913 | hppa*64*) |
| 15914 | hardcode_direct_CXX=no |
| 15915 | hardcode_shlibpath_var_CXX=no |
| 15916 | ;; |
| 15917 | ia64*) |
| 15918 | hardcode_direct_CXX=no |
| 15919 | hardcode_shlibpath_var_CXX=no |
| 15920 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15921 | # but as the default |
| 15922 | # location of the library. |
| 15923 | ;; |
| 15924 | *) |
| 15925 | hardcode_direct_CXX=yes |
| 15926 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15927 | # but as the default |
| 15928 | # location of the library. |
| 15929 | ;; |
| 15930 | esac |
| 15931 | |
| 15932 | case $cc_basename in |
| 15933 | CC) |
| 15934 | # FIXME: insert proper C++ library support |
| 15935 | ld_shlibs_CXX=no |
| 15936 | ;; |
| 15937 | aCC) |
| 15938 | case "$host_cpu" in |
| 15939 | hppa*64*|ia64*) |
| 15940 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 15941 | ;; |
| 15942 | *) |
| 15943 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15944 | ;; |
| 15945 | esac |
| 15946 | # Commands to make compiler produce verbose output that lists |
| 15947 | # what "hidden" libraries, object files and flags are used when |
| 15948 | # linking a shared library. |
| 15949 | # |
| 15950 | # There doesn't appear to be a way to prevent this compiler from |
| 15951 | # explicitly linking system object files so we need to strip them |
| 15952 | # from the output so that they don't get included in the library |
| 15953 | # dependencies. |
| 15954 | 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' |
| 15955 | ;; |
| 15956 | *) |
| 15957 | if test "$GXX" = yes; then |
| 15958 | if test $with_gnu_ld = no; then |
| 15959 | case "$host_cpu" in |
| 15960 | ia64*|hppa*64*) |
| 15961 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 15962 | ;; |
| 15963 | *) |
| 15964 | 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' |
| 15965 | ;; |
| 15966 | esac |
| 15967 | fi |
| 15968 | else |
| 15969 | # FIXME: insert proper C++ library support |
| 15970 | ld_shlibs_CXX=no |
| 15971 | fi |
| 15972 | ;; |
| 15973 | esac |
| 15974 | ;; |
| 15975 | irix5* | irix6*) |
| 15976 | case $cc_basename in |
| 15977 | CC) |
| 15978 | # SGI C++ |
| 15979 | 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' |
| 15980 | |
| 15981 | # Archives containing C++ object files must be created using |
| 15982 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 15983 | # necessary to make sure instantiated templates are included |
| 15984 | # in the archive. |
| 15985 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 15986 | ;; |
| 15987 | *) |
| 15988 | if test "$GXX" = yes; then |
| 15989 | if test "$with_gnu_ld" = no; then |
| 15990 | 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' |
| 15991 | else |
| 15992 | 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' |
| 15993 | fi |
| 15994 | fi |
| 15995 | link_all_deplibs_CXX=yes |
| 15996 | ;; |
| 15997 | esac |
| 15998 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15999 | hardcode_libdir_separator_CXX=: |
| 16000 | ;; |
| 16001 | linux*) |
| 16002 | case $cc_basename in |
| 16003 | KCC) |
| 16004 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 16005 | |
| 16006 | # KCC will only create a shared library if the output file |
| 16007 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 16008 | # to its proper name (with version) after linking. |
| 16009 | 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' |
| 16010 | 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' |
| 16011 | # Commands to make compiler produce verbose output that lists |
| 16012 | # what "hidden" libraries, object files and flags are used when |
| 16013 | # linking a shared library. |
| 16014 | # |
| 16015 | # There doesn't appear to be a way to prevent this compiler from |
| 16016 | # explicitly linking system object files so we need to strip them |
| 16017 | # from the output so that they don't get included in the library |
| 16018 | # dependencies. |
| 16019 | 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' |
| 16020 | |
| 16021 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 16022 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16023 | |
| 16024 | # Archives containing C++ object files must be created using |
| 16025 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 16026 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 16027 | ;; |
| 16028 | icpc) |
| 16029 | # Intel C++ |
| 16030 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16031 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 16032 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 16033 | # earlier do not add the objects themselves. |
| 16034 | case `$CC -V 2>&1` in |
| 16035 | *"Version 7."*) |
| 16036 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16037 | 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' |
| 16038 | ;; |
| 16039 | *) # Version 8.0 or newer |
| 16040 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16041 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16042 | ;; |
| 16043 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16044 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16045 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16046 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16047 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 16048 | ;; |
| 16049 | cxx) |
| 16050 | # Compaq C++ |
| 16051 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16052 | 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' |
| 16053 | |
| 16054 | runpath_var=LD_RUN_PATH |
| 16055 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 16056 | hardcode_libdir_separator_CXX=: |
| 16057 | |
| 16058 | # Commands to make compiler produce verbose output that lists |
| 16059 | # what "hidden" libraries, object files and flags are used when |
| 16060 | # linking a shared library. |
| 16061 | # |
| 16062 | # There doesn't appear to be a way to prevent this compiler from |
| 16063 | # explicitly linking system object files so we need to strip them |
| 16064 | # from the output so that they don't get included in the library |
| 16065 | # dependencies. |
| 16066 | 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' |
| 16067 | ;; |
| 16068 | esac |
| 16069 | ;; |
| 16070 | lynxos*) |
| 16071 | # FIXME: insert proper C++ library support |
| 16072 | ld_shlibs_CXX=no |
| 16073 | ;; |
| 16074 | m88k*) |
| 16075 | # FIXME: insert proper C++ library support |
| 16076 | ld_shlibs_CXX=no |
| 16077 | ;; |
| 16078 | mvs*) |
| 16079 | case $cc_basename in |
| 16080 | cxx) |
| 16081 | # FIXME: insert proper C++ library support |
| 16082 | ld_shlibs_CXX=no |
| 16083 | ;; |
| 16084 | *) |
| 16085 | # FIXME: insert proper C++ library support |
| 16086 | ld_shlibs_CXX=no |
| 16087 | ;; |
| 16088 | esac |
| 16089 | ;; |
| 16090 | netbsd*) |
| 16091 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16092 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 16093 | wlarc= |
| 16094 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16095 | hardcode_direct_CXX=yes |
| 16096 | hardcode_shlibpath_var_CXX=no |
| 16097 | fi |
| 16098 | # Workaround some broken pre-1.5 toolchains |
| 16099 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 16100 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16101 | openbsd2*) |
| 16102 | # C++ shared libraries are fairly broken |
| 16103 | ld_shlibs_CXX=no |
| 16104 | ;; |
| 16105 | openbsd*) |
| 16106 | hardcode_direct_CXX=yes |
| 16107 | hardcode_shlibpath_var_CXX=no |
| 16108 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 16109 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16110 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16111 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 16112 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 16113 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16114 | fi |
| 16115 | output_verbose_link_cmd='echo' |
| 16116 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16117 | osf3*) |
| 16118 | case $cc_basename in |
| 16119 | KCC) |
| 16120 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 16121 | |
| 16122 | # KCC will only create a shared library if the output file |
| 16123 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 16124 | # to its proper name (with version) after linking. |
| 16125 | 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' |
| 16126 | |
| 16127 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16128 | hardcode_libdir_separator_CXX=: |
| 16129 | |
| 16130 | # Archives containing C++ object files must be created using |
| 16131 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 16132 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 16133 | |
| 16134 | ;; |
| 16135 | RCC) |
| 16136 | # Rational C++ 2.4.1 |
| 16137 | # FIXME: insert proper C++ library support |
| 16138 | ld_shlibs_CXX=no |
| 16139 | ;; |
| 16140 | cxx) |
| 16141 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 16142 | 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' |
| 16143 | |
| 16144 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16145 | hardcode_libdir_separator_CXX=: |
| 16146 | |
| 16147 | # Commands to make compiler produce verbose output that lists |
| 16148 | # what "hidden" libraries, object files and flags are used when |
| 16149 | # linking a shared library. |
| 16150 | # |
| 16151 | # There doesn't appear to be a way to prevent this compiler from |
| 16152 | # explicitly linking system object files so we need to strip them |
| 16153 | # from the output so that they don't get included in the library |
| 16154 | # dependencies. |
| 16155 | 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' |
| 16156 | ;; |
| 16157 | *) |
| 16158 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16159 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 16160 | 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' |
| 16161 | |
| 16162 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16163 | hardcode_libdir_separator_CXX=: |
| 16164 | |
| 16165 | # Commands to make compiler produce verbose output that lists |
| 16166 | # what "hidden" libraries, object files and flags are used when |
| 16167 | # linking a shared library. |
| 16168 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 16169 | |
| 16170 | else |
| 16171 | # FIXME: insert proper C++ library support |
| 16172 | ld_shlibs_CXX=no |
| 16173 | fi |
| 16174 | ;; |
| 16175 | esac |
| 16176 | ;; |
| 16177 | osf4* | osf5*) |
| 16178 | case $cc_basename in |
| 16179 | KCC) |
| 16180 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 16181 | |
| 16182 | # KCC will only create a shared library if the output file |
| 16183 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 16184 | # to its proper name (with version) after linking. |
| 16185 | 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' |
| 16186 | |
| 16187 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16188 | hardcode_libdir_separator_CXX=: |
| 16189 | |
| 16190 | # Archives containing C++ object files must be created using |
| 16191 | # the KAI C++ compiler. |
| 16192 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 16193 | ;; |
| 16194 | RCC) |
| 16195 | # Rational C++ 2.4.1 |
| 16196 | # FIXME: insert proper C++ library support |
| 16197 | ld_shlibs_CXX=no |
| 16198 | ;; |
| 16199 | cxx) |
| 16200 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 16201 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16202 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 16203 | echo "-hidden">> $lib.exp~ |
| 16204 | $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~ |
| 16205 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16206 | |
| 16207 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 16208 | hardcode_libdir_separator_CXX=: |
| 16209 | |
| 16210 | # Commands to make compiler produce verbose output that lists |
| 16211 | # what "hidden" libraries, object files and flags are used when |
| 16212 | # linking a shared library. |
| 16213 | # |
| 16214 | # There doesn't appear to be a way to prevent this compiler from |
| 16215 | # explicitly linking system object files so we need to strip them |
| 16216 | # from the output so that they don't get included in the library |
| 16217 | # dependencies. |
| 16218 | 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' |
| 16219 | ;; |
| 16220 | *) |
| 16221 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16222 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 16223 | 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' |
| 16224 | |
| 16225 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16226 | hardcode_libdir_separator_CXX=: |
| 16227 | |
| 16228 | # Commands to make compiler produce verbose output that lists |
| 16229 | # what "hidden" libraries, object files and flags are used when |
| 16230 | # linking a shared library. |
| 16231 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 16232 | |
| 16233 | else |
| 16234 | # FIXME: insert proper C++ library support |
| 16235 | ld_shlibs_CXX=no |
| 16236 | fi |
| 16237 | ;; |
| 16238 | esac |
| 16239 | ;; |
| 16240 | psos*) |
| 16241 | # FIXME: insert proper C++ library support |
| 16242 | ld_shlibs_CXX=no |
| 16243 | ;; |
| 16244 | sco*) |
| 16245 | archive_cmds_need_lc_CXX=no |
| 16246 | case $cc_basename in |
| 16247 | CC) |
| 16248 | # FIXME: insert proper C++ library support |
| 16249 | ld_shlibs_CXX=no |
| 16250 | ;; |
| 16251 | *) |
| 16252 | # FIXME: insert proper C++ library support |
| 16253 | ld_shlibs_CXX=no |
| 16254 | ;; |
| 16255 | esac |
| 16256 | ;; |
| 16257 | sunos4*) |
| 16258 | case $cc_basename in |
| 16259 | CC) |
| 16260 | # Sun C++ 4.x |
| 16261 | # FIXME: insert proper C++ library support |
| 16262 | ld_shlibs_CXX=no |
| 16263 | ;; |
| 16264 | lcc) |
| 16265 | # Lucid |
| 16266 | # FIXME: insert proper C++ library support |
| 16267 | ld_shlibs_CXX=no |
| 16268 | ;; |
| 16269 | *) |
| 16270 | # FIXME: insert proper C++ library support |
| 16271 | ld_shlibs_CXX=no |
| 16272 | ;; |
| 16273 | esac |
| 16274 | ;; |
| 16275 | solaris*) |
| 16276 | case $cc_basename in |
| 16277 | CC) |
| 16278 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16279 | no_undefined_flag_CXX=' -zdefs' |
| 16280 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16281 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16282 | $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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16283 | |
| 16284 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16285 | hardcode_shlibpath_var_CXX=no |
| 16286 | case $host_os in |
| 16287 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 16288 | *) |
| 16289 | # The C++ compiler is used as linker so we must use $wl |
| 16290 | # flag to pass the commands to the underlying system |
| 16291 | # linker. |
| 16292 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16293 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 16294 | ;; |
| 16295 | esac |
| 16296 | link_all_deplibs_CXX=yes |
| 16297 | |
| 16298 | # Commands to make compiler produce verbose output that lists |
| 16299 | # what "hidden" libraries, object files and flags are used when |
| 16300 | # linking a shared library. |
| 16301 | # |
| 16302 | # There doesn't appear to be a way to prevent this compiler from |
| 16303 | # explicitly linking system object files so we need to strip them |
| 16304 | # from the output so that they don't get included in the library |
| 16305 | # dependencies. |
| 16306 | 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' |
| 16307 | |
| 16308 | # Archives containing C++ object files must be created using |
| 16309 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 16310 | # necessary to make sure instantiated templates are included |
| 16311 | # in the archive. |
| 16312 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 16313 | ;; |
| 16314 | gcx) |
| 16315 | # Green Hills C++ Compiler |
| 16316 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 16317 | |
| 16318 | # The C++ compiler must be used to create the archive. |
| 16319 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 16320 | ;; |
| 16321 | *) |
| 16322 | # GNU C++ compiler with Solaris linker |
| 16323 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16324 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 16325 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16326 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16327 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16328 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 16329 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16330 | # Commands to make compiler produce verbose output that lists |
| 16331 | # what "hidden" libraries, object files and flags are used when |
| 16332 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16333 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16334 | else |
| 16335 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 16336 | # platform. |
| 16337 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16338 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16339 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16340 | |
| 16341 | # Commands to make compiler produce verbose output that lists |
| 16342 | # what "hidden" libraries, object files and flags are used when |
| 16343 | # linking a shared library. |
| 16344 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 16345 | fi |
| 16346 | |
| 16347 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 16348 | fi |
| 16349 | ;; |
| 16350 | esac |
| 16351 | ;; |
| 16352 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 16353 | archive_cmds_need_lc_CXX=no |
| 16354 | ;; |
| 16355 | tandem*) |
| 16356 | case $cc_basename in |
| 16357 | NCC) |
| 16358 | # NonStop-UX NCC 3.20 |
| 16359 | # FIXME: insert proper C++ library support |
| 16360 | ld_shlibs_CXX=no |
| 16361 | ;; |
| 16362 | *) |
| 16363 | # FIXME: insert proper C++ library support |
| 16364 | ld_shlibs_CXX=no |
| 16365 | ;; |
| 16366 | esac |
| 16367 | ;; |
| 16368 | vxworks*) |
| 16369 | # FIXME: insert proper C++ library support |
| 16370 | ld_shlibs_CXX=no |
| 16371 | ;; |
| 16372 | *) |
| 16373 | # FIXME: insert proper C++ library support |
| 16374 | ld_shlibs_CXX=no |
| 16375 | ;; |
| 16376 | esac |
| 16377 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 16378 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 16379 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16380 | |
| 16381 | GCC_CXX="$GXX" |
| 16382 | LD_CXX="$LD" |
| 16383 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16384 | |
| 16385 | cat > conftest.$ac_ext <<EOF |
| 16386 | class Foo |
| 16387 | { |
| 16388 | public: |
| 16389 | Foo (void) { a = 0; } |
| 16390 | private: |
| 16391 | int a; |
| 16392 | }; |
| 16393 | EOF |
| 16394 | |
| 16395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16396 | (eval $ac_compile) 2>&5 |
| 16397 | ac_status=$? |
| 16398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16399 | (exit $ac_status); }; then |
| 16400 | # Parse the compiler output and extract the necessary |
| 16401 | # objects, libraries and library flags. |
| 16402 | |
| 16403 | # Sentinel used to keep track of whether or not we are before |
| 16404 | # the conftest object file. |
| 16405 | pre_test_object_deps_done=no |
| 16406 | |
| 16407 | # The `*' in the case matches for architectures that use `case' in |
| 16408 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 16409 | # eval without this substitution. |
| 16410 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 16411 | |
| 16412 | for p in `eval $output_verbose_link_cmd`; do |
| 16413 | case $p in |
| 16414 | |
| 16415 | -L* | -R* | -l*) |
| 16416 | # Some compilers place space between "-{L,R}" and the path. |
| 16417 | # Remove the space. |
| 16418 | if test $p = "-L" \ |
| 16419 | || test $p = "-R"; then |
| 16420 | prev=$p |
| 16421 | continue |
| 16422 | else |
| 16423 | prev= |
| 16424 | fi |
| 16425 | |
| 16426 | if test "$pre_test_object_deps_done" = no; then |
| 16427 | case $p in |
| 16428 | -L* | -R*) |
| 16429 | # Internal compiler library paths should come after those |
| 16430 | # provided the user. The postdeps already come after the |
| 16431 | # user supplied libs so there is no need to process them. |
| 16432 | if test -z "$compiler_lib_search_path_CXX"; then |
| 16433 | compiler_lib_search_path_CXX="${prev}${p}" |
| 16434 | else |
| 16435 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 16436 | fi |
| 16437 | ;; |
| 16438 | # The "-l" case would never come before the object being |
| 16439 | # linked, so don't bother handling this case. |
| 16440 | esac |
| 16441 | else |
| 16442 | if test -z "$postdeps_CXX"; then |
| 16443 | postdeps_CXX="${prev}${p}" |
| 16444 | else |
| 16445 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 16446 | fi |
| 16447 | fi |
| 16448 | ;; |
| 16449 | |
| 16450 | *.$objext) |
| 16451 | # This assumes that the test object file only shows up |
| 16452 | # once in the compiler output. |
| 16453 | if test "$p" = "conftest.$objext"; then |
| 16454 | pre_test_object_deps_done=yes |
| 16455 | continue |
| 16456 | fi |
| 16457 | |
| 16458 | if test "$pre_test_object_deps_done" = no; then |
| 16459 | if test -z "$predep_objects_CXX"; then |
| 16460 | predep_objects_CXX="$p" |
| 16461 | else |
| 16462 | predep_objects_CXX="$predep_objects_CXX $p" |
| 16463 | fi |
| 16464 | else |
| 16465 | if test -z "$postdep_objects_CXX"; then |
| 16466 | postdep_objects_CXX="$p" |
| 16467 | else |
| 16468 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 16469 | fi |
| 16470 | fi |
| 16471 | ;; |
| 16472 | |
| 16473 | *) ;; # Ignore the rest. |
| 16474 | |
| 16475 | esac |
| 16476 | done |
| 16477 | |
| 16478 | # Clean up. |
| 16479 | rm -f a.out a.exe |
| 16480 | else |
| 16481 | echo "libtool.m4: error: problem compiling CXX test program" |
| 16482 | fi |
| 16483 | |
| 16484 | $rm -f confest.$objext |
| 16485 | |
| 16486 | case " $postdeps_CXX " in |
| 16487 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 16488 | esac |
| 16489 | |
| 16490 | lt_prog_compiler_wl_CXX= |
| 16491 | lt_prog_compiler_pic_CXX= |
| 16492 | lt_prog_compiler_static_CXX= |
| 16493 | |
| 16494 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16495 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 16496 | |
| 16497 | # C++ specific cases for pic, static, wl, etc. |
| 16498 | if test "$GXX" = yes; then |
| 16499 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16500 | lt_prog_compiler_static_CXX='-static' |
| 16501 | |
| 16502 | case $host_os in |
| 16503 | aix*) |
| 16504 | # All AIX code is PIC. |
| 16505 | if test "$host_cpu" = ia64; then |
| 16506 | # AIX 5 now supports IA64 processor |
| 16507 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16508 | fi |
| 16509 | ;; |
| 16510 | amigaos*) |
| 16511 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16512 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16513 | # like `-m68040'. |
| 16514 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 16515 | ;; |
| 16516 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16517 | # PIC is the default for these OSes. |
| 16518 | ;; |
| 16519 | mingw* | os2* | pw32*) |
| 16520 | # This hack is so that the source file can tell whether it is being |
| 16521 | # built for inclusion in a dll (and should export symbols for example). |
| 16522 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 16523 | ;; |
| 16524 | darwin* | rhapsody*) |
| 16525 | # PIC is the default on this platform |
| 16526 | # Common symbols not allowed in MH_DYLIB files |
| 16527 | lt_prog_compiler_pic_CXX='-fno-common' |
| 16528 | ;; |
| 16529 | *djgpp*) |
| 16530 | # DJGPP does not support shared libraries at all |
| 16531 | lt_prog_compiler_pic_CXX= |
| 16532 | ;; |
| 16533 | sysv4*MP*) |
| 16534 | if test -d /usr/nec; then |
| 16535 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 16536 | fi |
| 16537 | ;; |
| 16538 | hpux*) |
| 16539 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16540 | # not for PA HP-UX. |
| 16541 | case "$host_cpu" in |
| 16542 | hppa*64*|ia64*) |
| 16543 | ;; |
| 16544 | *) |
| 16545 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16546 | ;; |
| 16547 | esac |
| 16548 | ;; |
| 16549 | *) |
| 16550 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16551 | ;; |
| 16552 | esac |
| 16553 | else |
| 16554 | case $host_os in |
| 16555 | aix4* | aix5*) |
| 16556 | # All AIX code is PIC. |
| 16557 | if test "$host_cpu" = ia64; then |
| 16558 | # AIX 5 now supports IA64 processor |
| 16559 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16560 | else |
| 16561 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 16562 | fi |
| 16563 | ;; |
| 16564 | chorus*) |
| 16565 | case $cc_basename in |
| 16566 | cxch68) |
| 16567 | # Green Hills C++ Compiler |
| 16568 | # _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" |
| 16569 | ;; |
| 16570 | esac |
| 16571 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16572 | darwin*) |
| 16573 | # PIC is the default on this platform |
| 16574 | # Common symbols not allowed in MH_DYLIB files |
| 16575 | case "$cc_basename" in |
| 16576 | xlc*) |
| 16577 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 16578 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16579 | ;; |
| 16580 | esac |
| 16581 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16582 | dgux*) |
| 16583 | case $cc_basename in |
| 16584 | ec++) |
| 16585 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16586 | ;; |
| 16587 | ghcx) |
| 16588 | # Green Hills C++ Compiler |
| 16589 | lt_prog_compiler_pic_CXX='-pic' |
| 16590 | ;; |
| 16591 | *) |
| 16592 | ;; |
| 16593 | esac |
| 16594 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16595 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16596 | # FreeBSD uses GNU C++ |
| 16597 | ;; |
| 16598 | hpux9* | hpux10* | hpux11*) |
| 16599 | case $cc_basename in |
| 16600 | CC) |
| 16601 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16602 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 16603 | if test "$host_cpu" != ia64; then |
| 16604 | lt_prog_compiler_pic_CXX='+Z' |
| 16605 | fi |
| 16606 | ;; |
| 16607 | aCC) |
| 16608 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16609 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 16610 | case "$host_cpu" in |
| 16611 | hppa*64*|ia64*) |
| 16612 | # +Z the default |
| 16613 | ;; |
| 16614 | *) |
| 16615 | lt_prog_compiler_pic_CXX='+Z' |
| 16616 | ;; |
| 16617 | esac |
| 16618 | ;; |
| 16619 | *) |
| 16620 | ;; |
| 16621 | esac |
| 16622 | ;; |
| 16623 | irix5* | irix6* | nonstopux*) |
| 16624 | case $cc_basename in |
| 16625 | CC) |
| 16626 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16627 | lt_prog_compiler_static_CXX='-non_shared' |
| 16628 | # CC pic flag -KPIC is the default. |
| 16629 | ;; |
| 16630 | *) |
| 16631 | ;; |
| 16632 | esac |
| 16633 | ;; |
| 16634 | linux*) |
| 16635 | case $cc_basename in |
| 16636 | KCC) |
| 16637 | # KAI C++ Compiler |
| 16638 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16639 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16640 | ;; |
| 16641 | icpc) |
| 16642 | # Intel C++ |
| 16643 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16644 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16645 | lt_prog_compiler_static_CXX='-static' |
| 16646 | ;; |
| 16647 | cxx) |
| 16648 | # Compaq C++ |
| 16649 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16650 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16651 | lt_prog_compiler_pic_CXX= |
| 16652 | lt_prog_compiler_static_CXX='-non_shared' |
| 16653 | ;; |
| 16654 | *) |
| 16655 | ;; |
| 16656 | esac |
| 16657 | ;; |
| 16658 | lynxos*) |
| 16659 | ;; |
| 16660 | m88k*) |
| 16661 | ;; |
| 16662 | mvs*) |
| 16663 | case $cc_basename in |
| 16664 | cxx) |
| 16665 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 16666 | ;; |
| 16667 | *) |
| 16668 | ;; |
| 16669 | esac |
| 16670 | ;; |
| 16671 | netbsd*) |
| 16672 | ;; |
| 16673 | osf3* | osf4* | osf5*) |
| 16674 | case $cc_basename in |
| 16675 | KCC) |
| 16676 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16677 | ;; |
| 16678 | RCC) |
| 16679 | # Rational C++ 2.4.1 |
| 16680 | lt_prog_compiler_pic_CXX='-pic' |
| 16681 | ;; |
| 16682 | cxx) |
| 16683 | # Digital/Compaq C++ |
| 16684 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16685 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16686 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16687 | lt_prog_compiler_pic_CXX= |
| 16688 | lt_prog_compiler_static_CXX='-non_shared' |
| 16689 | ;; |
| 16690 | *) |
| 16691 | ;; |
| 16692 | esac |
| 16693 | ;; |
| 16694 | psos*) |
| 16695 | ;; |
| 16696 | sco*) |
| 16697 | case $cc_basename in |
| 16698 | CC) |
| 16699 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16700 | ;; |
| 16701 | *) |
| 16702 | ;; |
| 16703 | esac |
| 16704 | ;; |
| 16705 | solaris*) |
| 16706 | case $cc_basename in |
| 16707 | CC) |
| 16708 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16709 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16710 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16711 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16712 | ;; |
| 16713 | gcx) |
| 16714 | # Green Hills C++ Compiler |
| 16715 | lt_prog_compiler_pic_CXX='-PIC' |
| 16716 | ;; |
| 16717 | *) |
| 16718 | ;; |
| 16719 | esac |
| 16720 | ;; |
| 16721 | sunos4*) |
| 16722 | case $cc_basename in |
| 16723 | CC) |
| 16724 | # Sun C++ 4.x |
| 16725 | lt_prog_compiler_pic_CXX='-pic' |
| 16726 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16727 | ;; |
| 16728 | lcc) |
| 16729 | # Lucid |
| 16730 | lt_prog_compiler_pic_CXX='-pic' |
| 16731 | ;; |
| 16732 | *) |
| 16733 | ;; |
| 16734 | esac |
| 16735 | ;; |
| 16736 | tandem*) |
| 16737 | case $cc_basename in |
| 16738 | NCC) |
| 16739 | # NonStop-UX NCC 3.20 |
| 16740 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16741 | ;; |
| 16742 | *) |
| 16743 | ;; |
| 16744 | esac |
| 16745 | ;; |
| 16746 | unixware*) |
| 16747 | ;; |
| 16748 | vxworks*) |
| 16749 | ;; |
| 16750 | *) |
| 16751 | lt_prog_compiler_can_build_shared_CXX=no |
| 16752 | ;; |
| 16753 | esac |
| 16754 | fi |
| 16755 | |
| 16756 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 16757 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 16758 | |
| 16759 | # |
| 16760 | # Check to make sure the PIC flag actually works. |
| 16761 | # |
| 16762 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16763 | |
| 16764 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16765 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 16766 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 16767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16768 | else |
| 16769 | lt_prog_compiler_pic_works_CXX=no |
| 16770 | ac_outfile=conftest.$ac_objext |
| 16771 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16772 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 16773 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16774 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16775 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16776 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16777 | # The option is referenced via a variable to avoid confusing sed. |
| 16778 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16779 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16780 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16781 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 16782 | (eval echo "\"\$as_me:16782: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16783 | (eval "$lt_compile" 2>conftest.err) |
| 16784 | ac_status=$? |
| 16785 | cat conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 16786 | echo "$as_me:16786: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16787 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16788 | # The compiler can only warn and ignore the option if not recognized |
| 16789 | # So say no if there are warnings |
| 16790 | if test ! -s conftest.err; then |
| 16791 | lt_prog_compiler_pic_works_CXX=yes |
| 16792 | fi |
| 16793 | fi |
| 16794 | $rm conftest* |
| 16795 | |
| 16796 | fi |
| 16797 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 16798 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 16799 | |
| 16800 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 16801 | case $lt_prog_compiler_pic_CXX in |
| 16802 | "" | " "*) ;; |
| 16803 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 16804 | esac |
| 16805 | else |
| 16806 | lt_prog_compiler_pic_CXX= |
| 16807 | lt_prog_compiler_can_build_shared_CXX=no |
| 16808 | fi |
| 16809 | |
| 16810 | fi |
| 16811 | case "$host_os" in |
| 16812 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16813 | *djgpp*) |
| 16814 | lt_prog_compiler_pic_CXX= |
| 16815 | ;; |
| 16816 | *) |
| 16817 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 16818 | ;; |
| 16819 | esac |
| 16820 | |
| 16821 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16822 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 16823 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 16824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16825 | else |
| 16826 | lt_cv_prog_compiler_c_o_CXX=no |
| 16827 | $rm -r conftest 2>/dev/null |
| 16828 | mkdir conftest |
| 16829 | cd conftest |
| 16830 | mkdir out |
| 16831 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16832 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16833 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16834 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16835 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16836 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16837 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16838 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16839 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16840 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16841 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 16842 | (eval echo "\"\$as_me:16842: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16843 | (eval "$lt_compile" 2>out/conftest.err) |
| 16844 | ac_status=$? |
| 16845 | cat out/conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 16846 | echo "$as_me:16846: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16847 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16848 | then |
| 16849 | # The compiler can only warn and ignore the option if not recognized |
| 16850 | # So say no if there are warnings |
| 16851 | if test ! -s out/conftest.err; then |
| 16852 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16853 | fi |
| 16854 | fi |
| 16855 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16856 | $rm conftest* |
| 16857 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16858 | # template instantiation |
| 16859 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 16860 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16861 | cd .. |
| 16862 | rmdir conftest |
| 16863 | $rm conftest* |
| 16864 | |
| 16865 | fi |
| 16866 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 16867 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 16868 | |
| 16869 | |
| 16870 | hard_links="nottested" |
| 16871 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 16872 | # do not overwrite the value of need_locks provided by the user |
| 16873 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 16874 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 16875 | hard_links=yes |
| 16876 | $rm conftest* |
| 16877 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16878 | touch conftest.a |
| 16879 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16880 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16881 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 16882 | echo "${ECHO_T}$hard_links" >&6 |
| 16883 | if test "$hard_links" = no; then |
| 16884 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 16885 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16886 | need_locks=warn |
| 16887 | fi |
| 16888 | else |
| 16889 | need_locks=no |
| 16890 | fi |
| 16891 | |
| 16892 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16893 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 16894 | |
| 16895 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16896 | case $host_os in |
| 16897 | aix4* | aix5*) |
| 16898 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16899 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16900 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 16901 | 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' |
| 16902 | else |
| 16903 | 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' |
| 16904 | fi |
| 16905 | ;; |
| 16906 | pw32*) |
| 16907 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 16908 | ;; |
| 16909 | cygwin* | mingw*) |
| 16910 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 16911 | ;; |
| 16912 | *) |
| 16913 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16914 | ;; |
| 16915 | esac |
| 16916 | |
| 16917 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 16918 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 16919 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16920 | |
| 16921 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16922 | if test "$GCC" = yes; then |
| 16923 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16924 | fi |
| 16925 | |
| 16926 | # |
| 16927 | # Do we need to explicitly link libc? |
| 16928 | # |
| 16929 | case "x$archive_cmds_need_lc_CXX" in |
| 16930 | x|xyes) |
| 16931 | # Assume -lc should be added |
| 16932 | archive_cmds_need_lc_CXX=yes |
| 16933 | |
| 16934 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16935 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16936 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16937 | # FIXME: we may have to deal with multi-command sequences. |
| 16938 | ;; |
| 16939 | '$CC '*) |
| 16940 | # Test whether the compiler implicitly links with -lc since on some |
| 16941 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16942 | # to ld, don't add -lc before -lgcc. |
| 16943 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16944 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16945 | $rm conftest* |
| 16946 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16947 | |
| 16948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16949 | (eval $ac_compile) 2>&5 |
| 16950 | ac_status=$? |
| 16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16952 | (exit $ac_status); } 2>conftest.err; then |
| 16953 | soname=conftest |
| 16954 | lib=conftest |
| 16955 | libobjs=conftest.$ac_objext |
| 16956 | deplibs= |
| 16957 | wl=$lt_prog_compiler_wl_CXX |
| 16958 | compiler_flags=-v |
| 16959 | linker_flags=-v |
| 16960 | verstring= |
| 16961 | output_objdir=. |
| 16962 | libname=conftest |
| 16963 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 16964 | allow_undefined_flag_CXX= |
| 16965 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16966 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16967 | ac_status=$? |
| 16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16969 | (exit $ac_status); } |
| 16970 | then |
| 16971 | archive_cmds_need_lc_CXX=no |
| 16972 | else |
| 16973 | archive_cmds_need_lc_CXX=yes |
| 16974 | fi |
| 16975 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 16976 | else |
| 16977 | cat conftest.err 1>&5 |
| 16978 | fi |
| 16979 | $rm conftest* |
| 16980 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 16981 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 16982 | ;; |
| 16983 | esac |
| 16984 | fi |
| 16985 | ;; |
| 16986 | esac |
| 16987 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16988 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16989 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16990 | library_names_spec= |
| 16991 | libname_spec='lib$name' |
| 16992 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16993 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16994 | postinstall_cmds= |
| 16995 | postuninstall_cmds= |
| 16996 | finish_cmds= |
| 16997 | finish_eval= |
| 16998 | shlibpath_var= |
| 16999 | shlibpath_overrides_runpath=unknown |
| 17000 | version_type=none |
| 17001 | dynamic_linker="$host_os ld.so" |
| 17002 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 17003 | if test "$GCC" = yes; then |
| 17004 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17005 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 17006 | # if the path contains ";" then we assume it to be the separator |
| 17007 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 17008 | # assumed that no part of a normal pathname contains ";" but that should |
| 17009 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 17010 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17011 | else |
| 17012 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17013 | fi |
| 17014 | else |
| 17015 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17016 | fi |
| 17017 | need_lib_prefix=unknown |
| 17018 | hardcode_into_libs=no |
| 17019 | |
| 17020 | # when you set need_version to no, make sure it does not cause -set_version |
| 17021 | # flags to be left without arguments |
| 17022 | need_version=unknown |
| 17023 | |
| 17024 | case $host_os in |
| 17025 | aix3*) |
| 17026 | version_type=linux |
| 17027 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 17028 | shlibpath_var=LIBPATH |
| 17029 | |
| 17030 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 17031 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17032 | ;; |
| 17033 | |
| 17034 | aix4* | aix5*) |
| 17035 | version_type=linux |
| 17036 | need_lib_prefix=no |
| 17037 | need_version=no |
| 17038 | hardcode_into_libs=yes |
| 17039 | if test "$host_cpu" = ia64; then |
| 17040 | # AIX 5 supports IA64 |
| 17041 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 17042 | shlibpath_var=LD_LIBRARY_PATH |
| 17043 | else |
| 17044 | # With GCC up to 2.95.x, collect2 would create an import file |
| 17045 | # for dependence libraries. The import file would start with |
| 17046 | # the line `#! .'. This would cause the generated library to |
| 17047 | # depend on `.', always an invalid library. This was fixed in |
| 17048 | # development snapshots of GCC prior to 3.0. |
| 17049 | case $host_os in |
| 17050 | aix4 | aix4.[01] | aix4.[01].*) |
| 17051 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 17052 | echo ' yes ' |
| 17053 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 17054 | : |
| 17055 | else |
| 17056 | can_build_shared=no |
| 17057 | fi |
| 17058 | ;; |
| 17059 | esac |
| 17060 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 17061 | # soname into executable. Probably we can add versioning support to |
| 17062 | # collect2, so additional links can be useful in future. |
| 17063 | if test "$aix_use_runtimelinking" = yes; then |
| 17064 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 17065 | # instead of lib<name>.a to let people know that these are not |
| 17066 | # typical AIX shared libraries. |
| 17067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17068 | else |
| 17069 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 17070 | # and later when we are not doing run time linking. |
| 17071 | library_names_spec='${libname}${release}.a $libname.a' |
| 17072 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17073 | fi |
| 17074 | shlibpath_var=LIBPATH |
| 17075 | fi |
| 17076 | ;; |
| 17077 | |
| 17078 | amigaos*) |
| 17079 | library_names_spec='$libname.ixlibrary $libname.a' |
| 17080 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17081 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17082 | ;; |
| 17083 | |
| 17084 | beos*) |
| 17085 | library_names_spec='${libname}${shared_ext}' |
| 17086 | dynamic_linker="$host_os ld.so" |
| 17087 | shlibpath_var=LIBRARY_PATH |
| 17088 | ;; |
| 17089 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17090 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17091 | version_type=linux |
| 17092 | need_version=no |
| 17093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17094 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17095 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 17096 | shlibpath_var=LD_LIBRARY_PATH |
| 17097 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 17098 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 17099 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 17100 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 17101 | # libtool to hard-code these into programs |
| 17102 | ;; |
| 17103 | |
| 17104 | cygwin* | mingw* | pw32*) |
| 17105 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17106 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17107 | need_version=no |
| 17108 | need_lib_prefix=no |
| 17109 | |
| 17110 | case $GCC,$host_os in |
| 17111 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 17112 | library_names_spec='$libname.dll.a' |
| 17113 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17114 | postinstall_cmds='base_file=`basename \${file}`~ |
| 17115 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 17116 | dldir=$destdir/`dirname \$dlpath`~ |
| 17117 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17118 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17119 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 17120 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17121 | $rm \$dlpath' |
| 17122 | shlibpath_overrides_runpath=yes |
| 17123 | |
| 17124 | case $host_os in |
| 17125 | cygwin*) |
| 17126 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 17127 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17128 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17129 | ;; |
| 17130 | mingw*) |
| 17131 | # MinGW DLLs use traditional 'lib' prefix |
| 17132 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 17133 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17134 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 17135 | # It is most probably a Windows format PATH printed by |
| 17136 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 17137 | # path with ; separators, and with drive letters. We can handle the |
| 17138 | # drive letters (cygwin fileutils understands them), so leave them, |
| 17139 | # especially as we might pass files found there to a mingw objdump, |
| 17140 | # which wouldn't understand a cygwinified path. Ahh. |
| 17141 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17142 | else |
| 17143 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17144 | fi |
| 17145 | ;; |
| 17146 | pw32*) |
| 17147 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 17148 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 17149 | ;; |
| 17150 | esac |
| 17151 | ;; |
| 17152 | |
| 17153 | *) |
| 17154 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 17155 | ;; |
| 17156 | esac |
| 17157 | dynamic_linker='Win32 ld.exe' |
| 17158 | # FIXME: first we should search . and the directory the executable is in |
| 17159 | shlibpath_var=PATH |
| 17160 | ;; |
| 17161 | |
| 17162 | darwin* | rhapsody*) |
| 17163 | dynamic_linker="$host_os dyld" |
| 17164 | version_type=darwin |
| 17165 | need_lib_prefix=no |
| 17166 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17167 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17168 | soname_spec='${libname}${release}${major}$shared_ext' |
| 17169 | shlibpath_overrides_runpath=yes |
| 17170 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17171 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17172 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17173 | if test "$GCC" = yes; then |
| 17174 | 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"` |
| 17175 | else |
| 17176 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17177 | fi |
| 17178 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 17179 | ;; |
| 17180 | |
| 17181 | dgux*) |
| 17182 | version_type=linux |
| 17183 | need_lib_prefix=no |
| 17184 | need_version=no |
| 17185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 17186 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17187 | shlibpath_var=LD_LIBRARY_PATH |
| 17188 | ;; |
| 17189 | |
| 17190 | freebsd1*) |
| 17191 | dynamic_linker=no |
| 17192 | ;; |
| 17193 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17194 | kfreebsd*-gnu) |
| 17195 | version_type=linux |
| 17196 | need_lib_prefix=no |
| 17197 | need_version=no |
| 17198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17199 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17200 | shlibpath_var=LD_LIBRARY_PATH |
| 17201 | shlibpath_overrides_runpath=no |
| 17202 | hardcode_into_libs=yes |
| 17203 | dynamic_linker='GNU ld.so' |
| 17204 | ;; |
| 17205 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17206 | freebsd*) |
| 17207 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 17208 | version_type=freebsd-$objformat |
| 17209 | case $version_type in |
| 17210 | freebsd-elf*) |
| 17211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17212 | need_version=no |
| 17213 | need_lib_prefix=no |
| 17214 | ;; |
| 17215 | freebsd-*) |
| 17216 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 17217 | need_version=yes |
| 17218 | ;; |
| 17219 | esac |
| 17220 | shlibpath_var=LD_LIBRARY_PATH |
| 17221 | case $host_os in |
| 17222 | freebsd2*) |
| 17223 | shlibpath_overrides_runpath=yes |
| 17224 | ;; |
| 17225 | freebsd3.01* | freebsdelf3.01*) |
| 17226 | shlibpath_overrides_runpath=yes |
| 17227 | hardcode_into_libs=yes |
| 17228 | ;; |
| 17229 | *) # from 3.2 on |
| 17230 | shlibpath_overrides_runpath=no |
| 17231 | hardcode_into_libs=yes |
| 17232 | ;; |
| 17233 | esac |
| 17234 | ;; |
| 17235 | |
| 17236 | gnu*) |
| 17237 | version_type=linux |
| 17238 | need_lib_prefix=no |
| 17239 | need_version=no |
| 17240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17242 | shlibpath_var=LD_LIBRARY_PATH |
| 17243 | hardcode_into_libs=yes |
| 17244 | ;; |
| 17245 | |
| 17246 | hpux9* | hpux10* | hpux11*) |
| 17247 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17248 | # link against other versions. |
| 17249 | version_type=sunos |
| 17250 | need_lib_prefix=no |
| 17251 | need_version=no |
| 17252 | case "$host_cpu" in |
| 17253 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17254 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17255 | hardcode_into_libs=yes |
| 17256 | dynamic_linker="$host_os dld.so" |
| 17257 | shlibpath_var=LD_LIBRARY_PATH |
| 17258 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17260 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17261 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17262 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17263 | else |
| 17264 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17265 | fi |
| 17266 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17267 | ;; |
| 17268 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17269 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17270 | hardcode_into_libs=yes |
| 17271 | dynamic_linker="$host_os dld.sl" |
| 17272 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17273 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17275 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17276 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17277 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17278 | ;; |
| 17279 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17280 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17281 | dynamic_linker="$host_os dld.sl" |
| 17282 | shlibpath_var=SHLIB_PATH |
| 17283 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17285 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17286 | ;; |
| 17287 | esac |
| 17288 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17289 | postinstall_cmds='chmod 555 $lib' |
| 17290 | ;; |
| 17291 | |
| 17292 | irix5* | irix6* | nonstopux*) |
| 17293 | case $host_os in |
| 17294 | nonstopux*) version_type=nonstopux ;; |
| 17295 | *) |
| 17296 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17297 | version_type=linux |
| 17298 | else |
| 17299 | version_type=irix |
| 17300 | fi ;; |
| 17301 | esac |
| 17302 | need_lib_prefix=no |
| 17303 | need_version=no |
| 17304 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17306 | case $host_os in |
| 17307 | irix5* | nonstopux*) |
| 17308 | libsuff= shlibsuff= |
| 17309 | ;; |
| 17310 | *) |
| 17311 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17312 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17313 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17314 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17315 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17316 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17317 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17318 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17319 | esac |
| 17320 | ;; |
| 17321 | esac |
| 17322 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17323 | shlibpath_overrides_runpath=no |
| 17324 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17325 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17326 | hardcode_into_libs=yes |
| 17327 | ;; |
| 17328 | |
| 17329 | # No shared lib support for Linux oldld, aout, or coff. |
| 17330 | linux*oldld* | linux*aout* | linux*coff*) |
| 17331 | dynamic_linker=no |
| 17332 | ;; |
| 17333 | |
| 17334 | # This must be Linux ELF. |
| 17335 | linux*) |
| 17336 | version_type=linux |
| 17337 | need_lib_prefix=no |
| 17338 | need_version=no |
| 17339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17340 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17341 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17342 | shlibpath_var=LD_LIBRARY_PATH |
| 17343 | shlibpath_overrides_runpath=no |
| 17344 | # This implies no fast_install, which is unacceptable. |
| 17345 | # Some rework will be needed to allow for fast_install |
| 17346 | # before this can be enabled. |
| 17347 | hardcode_into_libs=yes |
| 17348 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17349 | # Append ld.so.conf contents to the search path |
| 17350 | if test -f /etc/ld.so.conf; then |
| 17351 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 17352 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17353 | fi |
| 17354 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17355 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17356 | # powerpc, because MkLinux only supported shared libraries with the |
| 17357 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17358 | # most powerpc-linux boxes support dynamic linking these days and |
| 17359 | # people can always --disable-shared, the test was removed, and we |
| 17360 | # assume the GNU/Linux dynamic linker is in use. |
| 17361 | dynamic_linker='GNU/Linux ld.so' |
| 17362 | ;; |
| 17363 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17364 | knetbsd*-gnu) |
| 17365 | version_type=linux |
| 17366 | need_lib_prefix=no |
| 17367 | need_version=no |
| 17368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17369 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17370 | shlibpath_var=LD_LIBRARY_PATH |
| 17371 | shlibpath_overrides_runpath=no |
| 17372 | hardcode_into_libs=yes |
| 17373 | dynamic_linker='GNU ld.so' |
| 17374 | ;; |
| 17375 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17376 | netbsd*) |
| 17377 | version_type=sunos |
| 17378 | need_lib_prefix=no |
| 17379 | need_version=no |
| 17380 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17382 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17383 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17384 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17386 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17387 | dynamic_linker='NetBSD ld.elf_so' |
| 17388 | fi |
| 17389 | shlibpath_var=LD_LIBRARY_PATH |
| 17390 | shlibpath_overrides_runpath=yes |
| 17391 | hardcode_into_libs=yes |
| 17392 | ;; |
| 17393 | |
| 17394 | newsos6) |
| 17395 | version_type=linux |
| 17396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17397 | shlibpath_var=LD_LIBRARY_PATH |
| 17398 | shlibpath_overrides_runpath=yes |
| 17399 | ;; |
| 17400 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17401 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17402 | version_type=linux |
| 17403 | need_lib_prefix=no |
| 17404 | need_version=no |
| 17405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17406 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17407 | shlibpath_var=LD_LIBRARY_PATH |
| 17408 | shlibpath_overrides_runpath=yes |
| 17409 | ;; |
| 17410 | |
| 17411 | openbsd*) |
| 17412 | version_type=sunos |
| 17413 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17414 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17416 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17417 | shlibpath_var=LD_LIBRARY_PATH |
| 17418 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17419 | case $host_os in |
| 17420 | openbsd2.[89] | openbsd2.[89].*) |
| 17421 | shlibpath_overrides_runpath=no |
| 17422 | ;; |
| 17423 | *) |
| 17424 | shlibpath_overrides_runpath=yes |
| 17425 | ;; |
| 17426 | esac |
| 17427 | else |
| 17428 | shlibpath_overrides_runpath=yes |
| 17429 | fi |
| 17430 | ;; |
| 17431 | |
| 17432 | os2*) |
| 17433 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17434 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17435 | need_lib_prefix=no |
| 17436 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17437 | dynamic_linker='OS/2 ld.exe' |
| 17438 | shlibpath_var=LIBPATH |
| 17439 | ;; |
| 17440 | |
| 17441 | osf3* | osf4* | osf5*) |
| 17442 | version_type=osf |
| 17443 | need_lib_prefix=no |
| 17444 | need_version=no |
| 17445 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17446 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17447 | shlibpath_var=LD_LIBRARY_PATH |
| 17448 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17449 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17450 | ;; |
| 17451 | |
| 17452 | sco3.2v5*) |
| 17453 | version_type=osf |
| 17454 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17456 | shlibpath_var=LD_LIBRARY_PATH |
| 17457 | ;; |
| 17458 | |
| 17459 | solaris*) |
| 17460 | version_type=linux |
| 17461 | need_lib_prefix=no |
| 17462 | need_version=no |
| 17463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17464 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17465 | shlibpath_var=LD_LIBRARY_PATH |
| 17466 | shlibpath_overrides_runpath=yes |
| 17467 | hardcode_into_libs=yes |
| 17468 | # ldd complains unless libraries are executable |
| 17469 | postinstall_cmds='chmod +x $lib' |
| 17470 | ;; |
| 17471 | |
| 17472 | sunos4*) |
| 17473 | version_type=sunos |
| 17474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17475 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17476 | shlibpath_var=LD_LIBRARY_PATH |
| 17477 | shlibpath_overrides_runpath=yes |
| 17478 | if test "$with_gnu_ld" = yes; then |
| 17479 | need_lib_prefix=no |
| 17480 | fi |
| 17481 | need_version=yes |
| 17482 | ;; |
| 17483 | |
| 17484 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 17485 | version_type=linux |
| 17486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17488 | shlibpath_var=LD_LIBRARY_PATH |
| 17489 | case $host_vendor in |
| 17490 | sni) |
| 17491 | shlibpath_overrides_runpath=no |
| 17492 | need_lib_prefix=no |
| 17493 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17494 | runpath_var=LD_RUN_PATH |
| 17495 | ;; |
| 17496 | siemens) |
| 17497 | need_lib_prefix=no |
| 17498 | ;; |
| 17499 | motorola) |
| 17500 | need_lib_prefix=no |
| 17501 | need_version=no |
| 17502 | shlibpath_overrides_runpath=no |
| 17503 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17504 | ;; |
| 17505 | esac |
| 17506 | ;; |
| 17507 | |
| 17508 | sysv4*MP*) |
| 17509 | if test -d /usr/nec ;then |
| 17510 | version_type=linux |
| 17511 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17512 | soname_spec='$libname${shared_ext}.$major' |
| 17513 | shlibpath_var=LD_LIBRARY_PATH |
| 17514 | fi |
| 17515 | ;; |
| 17516 | |
| 17517 | uts4*) |
| 17518 | version_type=linux |
| 17519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17520 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17521 | shlibpath_var=LD_LIBRARY_PATH |
| 17522 | ;; |
| 17523 | |
| 17524 | *) |
| 17525 | dynamic_linker=no |
| 17526 | ;; |
| 17527 | esac |
| 17528 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17529 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 17530 | test "$dynamic_linker" = no && can_build_shared=no |
| 17531 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17532 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17533 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 17534 | hardcode_action_CXX= |
| 17535 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 17536 | test -n "$runpath_var_CXX" || \ |
| 17537 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 17538 | |
| 17539 | # We can hardcode non-existant directories. |
| 17540 | if test "$hardcode_direct_CXX" != no && |
| 17541 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17542 | # have to relink, otherwise we might link with an installed library |
| 17543 | # when we should be linking with a yet-to-be-installed one |
| 17544 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 17545 | test "$hardcode_minus_L_CXX" != no; then |
| 17546 | # Linking always hardcodes the temporary library directory. |
| 17547 | hardcode_action_CXX=relink |
| 17548 | else |
| 17549 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17550 | hardcode_action_CXX=immediate |
| 17551 | fi |
| 17552 | else |
| 17553 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17554 | # directories. |
| 17555 | hardcode_action_CXX=unsupported |
| 17556 | fi |
| 17557 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 17558 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 17559 | |
| 17560 | if test "$hardcode_action_CXX" = relink; then |
| 17561 | # Fast installation is not supported |
| 17562 | enable_fast_install=no |
| 17563 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17564 | test "$enable_shared" = no; then |
| 17565 | # Fast installation is not necessary |
| 17566 | enable_fast_install=needless |
| 17567 | fi |
| 17568 | |
| 17569 | striplib= |
| 17570 | old_striplib= |
| 17571 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 17572 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 17573 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 17574 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17575 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 17576 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17577 | echo "${ECHO_T}yes" >&6 |
| 17578 | else |
| 17579 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17580 | case $host_os in |
| 17581 | darwin*) |
| 17582 | if test -n "$STRIP" ; then |
| 17583 | striplib="$STRIP -x" |
| 17584 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17585 | echo "${ECHO_T}yes" >&6 |
| 17586 | else |
| 17587 | echo "$as_me:$LINENO: result: no" >&5 |
| 17588 | echo "${ECHO_T}no" >&6 |
| 17589 | fi |
| 17590 | ;; |
| 17591 | *) |
| 17592 | echo "$as_me:$LINENO: result: no" >&5 |
| 17593 | echo "${ECHO_T}no" >&6 |
| 17594 | ;; |
| 17595 | esac |
| 17596 | fi |
| 17597 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17598 | if test "x$enable_dlopen" != xyes; then |
| 17599 | enable_dlopen=unknown |
| 17600 | enable_dlopen_self=unknown |
| 17601 | enable_dlopen_self_static=unknown |
| 17602 | else |
| 17603 | lt_cv_dlopen=no |
| 17604 | lt_cv_dlopen_libs= |
| 17605 | |
| 17606 | case $host_os in |
| 17607 | beos*) |
| 17608 | lt_cv_dlopen="load_add_on" |
| 17609 | lt_cv_dlopen_libs= |
| 17610 | lt_cv_dlopen_self=yes |
| 17611 | ;; |
| 17612 | |
| 17613 | mingw* | pw32*) |
| 17614 | lt_cv_dlopen="LoadLibrary" |
| 17615 | lt_cv_dlopen_libs= |
| 17616 | ;; |
| 17617 | |
| 17618 | cygwin*) |
| 17619 | lt_cv_dlopen="dlopen" |
| 17620 | lt_cv_dlopen_libs= |
| 17621 | ;; |
| 17622 | |
| 17623 | darwin*) |
| 17624 | # if libdl is installed we need to link against it |
| 17625 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17626 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17627 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17629 | else |
| 17630 | ac_check_lib_save_LIBS=$LIBS |
| 17631 | LIBS="-ldl $LIBS" |
| 17632 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17633 | /* confdefs.h. */ |
| 17634 | _ACEOF |
| 17635 | cat confdefs.h >>conftest.$ac_ext |
| 17636 | cat >>conftest.$ac_ext <<_ACEOF |
| 17637 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17638 | |
| 17639 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17640 | #ifdef __cplusplus |
| 17641 | extern "C" |
| 17642 | #endif |
| 17643 | /* We use char because int might match the return type of a gcc2 |
| 17644 | builtin and then its argument prototype would still apply. */ |
| 17645 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17646 | int |
| 17647 | main () |
| 17648 | { |
| 17649 | dlopen (); |
| 17650 | ; |
| 17651 | return 0; |
| 17652 | } |
| 17653 | _ACEOF |
| 17654 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17656 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17657 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17659 | rm -f conftest.er1 |
| 17660 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17662 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17663 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17664 | || test ! -s conftest.err' |
| 17665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17666 | (eval $ac_try) 2>&5 |
| 17667 | ac_status=$? |
| 17668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17669 | (exit $ac_status); }; } && |
| 17670 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17672 | (eval $ac_try) 2>&5 |
| 17673 | ac_status=$? |
| 17674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17675 | (exit $ac_status); }; }; then |
| 17676 | ac_cv_lib_dl_dlopen=yes |
| 17677 | else |
| 17678 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17680 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17681 | ac_cv_lib_dl_dlopen=no |
| 17682 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17683 | rm -f conftest.err conftest.$ac_objext \ |
| 17684 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17685 | LIBS=$ac_check_lib_save_LIBS |
| 17686 | fi |
| 17687 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17688 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17689 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17690 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17691 | else |
| 17692 | |
| 17693 | lt_cv_dlopen="dyld" |
| 17694 | lt_cv_dlopen_libs= |
| 17695 | lt_cv_dlopen_self=yes |
| 17696 | |
| 17697 | fi |
| 17698 | |
| 17699 | ;; |
| 17700 | |
| 17701 | *) |
| 17702 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17703 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 17704 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17706 | else |
| 17707 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17708 | /* confdefs.h. */ |
| 17709 | _ACEOF |
| 17710 | cat confdefs.h >>conftest.$ac_ext |
| 17711 | cat >>conftest.$ac_ext <<_ACEOF |
| 17712 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17713 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17714 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17715 | #define shl_load innocuous_shl_load |
| 17716 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17717 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17718 | which can conflict with char shl_load (); below. |
| 17719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17720 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17721 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17722 | #ifdef __STDC__ |
| 17723 | # include <limits.h> |
| 17724 | #else |
| 17725 | # include <assert.h> |
| 17726 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17727 | |
| 17728 | #undef shl_load |
| 17729 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17730 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17731 | #ifdef __cplusplus |
| 17732 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17733 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17734 | #endif |
| 17735 | /* We use char because int might match the return type of a gcc2 |
| 17736 | builtin and then its argument prototype would still apply. */ |
| 17737 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17738 | /* The GNU C library defines this for functions which it implements |
| 17739 | to always fail with ENOSYS. Some functions are actually named |
| 17740 | something starting with __ and the normal name is an alias. */ |
| 17741 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 17742 | choke me |
| 17743 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17744 | char (*f) () = shl_load; |
| 17745 | #endif |
| 17746 | #ifdef __cplusplus |
| 17747 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17748 | #endif |
| 17749 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17750 | int |
| 17751 | main () |
| 17752 | { |
| 17753 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17754 | ; |
| 17755 | return 0; |
| 17756 | } |
| 17757 | _ACEOF |
| 17758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17760 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17761 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17763 | rm -f conftest.er1 |
| 17764 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17766 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17767 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17768 | || test ! -s conftest.err' |
| 17769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17770 | (eval $ac_try) 2>&5 |
| 17771 | ac_status=$? |
| 17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17773 | (exit $ac_status); }; } && |
| 17774 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17776 | (eval $ac_try) 2>&5 |
| 17777 | ac_status=$? |
| 17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17779 | (exit $ac_status); }; }; then |
| 17780 | ac_cv_func_shl_load=yes |
| 17781 | else |
| 17782 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17784 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17785 | ac_cv_func_shl_load=no |
| 17786 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17787 | rm -f conftest.err conftest.$ac_objext \ |
| 17788 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17789 | fi |
| 17790 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17791 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 17792 | if test $ac_cv_func_shl_load = yes; then |
| 17793 | lt_cv_dlopen="shl_load" |
| 17794 | else |
| 17795 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17796 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 17797 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17799 | else |
| 17800 | ac_check_lib_save_LIBS=$LIBS |
| 17801 | LIBS="-ldld $LIBS" |
| 17802 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17803 | /* confdefs.h. */ |
| 17804 | _ACEOF |
| 17805 | cat confdefs.h >>conftest.$ac_ext |
| 17806 | cat >>conftest.$ac_ext <<_ACEOF |
| 17807 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17808 | |
| 17809 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17810 | #ifdef __cplusplus |
| 17811 | extern "C" |
| 17812 | #endif |
| 17813 | /* We use char because int might match the return type of a gcc2 |
| 17814 | builtin and then its argument prototype would still apply. */ |
| 17815 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17816 | int |
| 17817 | main () |
| 17818 | { |
| 17819 | shl_load (); |
| 17820 | ; |
| 17821 | return 0; |
| 17822 | } |
| 17823 | _ACEOF |
| 17824 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17826 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17827 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17829 | rm -f conftest.er1 |
| 17830 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17832 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17833 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17834 | || test ! -s conftest.err' |
| 17835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17836 | (eval $ac_try) 2>&5 |
| 17837 | ac_status=$? |
| 17838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17839 | (exit $ac_status); }; } && |
| 17840 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17842 | (eval $ac_try) 2>&5 |
| 17843 | ac_status=$? |
| 17844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17845 | (exit $ac_status); }; }; then |
| 17846 | ac_cv_lib_dld_shl_load=yes |
| 17847 | else |
| 17848 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17850 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17851 | ac_cv_lib_dld_shl_load=no |
| 17852 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17853 | rm -f conftest.err conftest.$ac_objext \ |
| 17854 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17855 | LIBS=$ac_check_lib_save_LIBS |
| 17856 | fi |
| 17857 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17858 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 17859 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17860 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17861 | else |
| 17862 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17863 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 17864 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17866 | else |
| 17867 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17868 | /* confdefs.h. */ |
| 17869 | _ACEOF |
| 17870 | cat confdefs.h >>conftest.$ac_ext |
| 17871 | cat >>conftest.$ac_ext <<_ACEOF |
| 17872 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17873 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17874 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17875 | #define dlopen innocuous_dlopen |
| 17876 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17877 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17878 | which can conflict with char dlopen (); below. |
| 17879 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17880 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17881 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17882 | #ifdef __STDC__ |
| 17883 | # include <limits.h> |
| 17884 | #else |
| 17885 | # include <assert.h> |
| 17886 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17887 | |
| 17888 | #undef dlopen |
| 17889 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17890 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17891 | #ifdef __cplusplus |
| 17892 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17893 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17894 | #endif |
| 17895 | /* We use char because int might match the return type of a gcc2 |
| 17896 | builtin and then its argument prototype would still apply. */ |
| 17897 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17898 | /* The GNU C library defines this for functions which it implements |
| 17899 | to always fail with ENOSYS. Some functions are actually named |
| 17900 | something starting with __ and the normal name is an alias. */ |
| 17901 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 17902 | choke me |
| 17903 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17904 | char (*f) () = dlopen; |
| 17905 | #endif |
| 17906 | #ifdef __cplusplus |
| 17907 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17908 | #endif |
| 17909 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17910 | int |
| 17911 | main () |
| 17912 | { |
| 17913 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17914 | ; |
| 17915 | return 0; |
| 17916 | } |
| 17917 | _ACEOF |
| 17918 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17920 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17921 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17923 | rm -f conftest.er1 |
| 17924 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17926 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17927 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17928 | || test ! -s conftest.err' |
| 17929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17930 | (eval $ac_try) 2>&5 |
| 17931 | ac_status=$? |
| 17932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17933 | (exit $ac_status); }; } && |
| 17934 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17936 | (eval $ac_try) 2>&5 |
| 17937 | ac_status=$? |
| 17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17939 | (exit $ac_status); }; }; then |
| 17940 | ac_cv_func_dlopen=yes |
| 17941 | else |
| 17942 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17944 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17945 | ac_cv_func_dlopen=no |
| 17946 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17947 | rm -f conftest.err conftest.$ac_objext \ |
| 17948 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17949 | fi |
| 17950 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17951 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 17952 | if test $ac_cv_func_dlopen = yes; then |
| 17953 | lt_cv_dlopen="dlopen" |
| 17954 | else |
| 17955 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17956 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17957 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17959 | else |
| 17960 | ac_check_lib_save_LIBS=$LIBS |
| 17961 | LIBS="-ldl $LIBS" |
| 17962 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17963 | /* confdefs.h. */ |
| 17964 | _ACEOF |
| 17965 | cat confdefs.h >>conftest.$ac_ext |
| 17966 | cat >>conftest.$ac_ext <<_ACEOF |
| 17967 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17968 | |
| 17969 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17970 | #ifdef __cplusplus |
| 17971 | extern "C" |
| 17972 | #endif |
| 17973 | /* We use char because int might match the return type of a gcc2 |
| 17974 | builtin and then its argument prototype would still apply. */ |
| 17975 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17976 | int |
| 17977 | main () |
| 17978 | { |
| 17979 | dlopen (); |
| 17980 | ; |
| 17981 | return 0; |
| 17982 | } |
| 17983 | _ACEOF |
| 17984 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17986 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17987 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17989 | rm -f conftest.er1 |
| 17990 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17992 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17993 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 17994 | || test ! -s conftest.err' |
| 17995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17996 | (eval $ac_try) 2>&5 |
| 17997 | ac_status=$? |
| 17998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17999 | (exit $ac_status); }; } && |
| 18000 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18002 | (eval $ac_try) 2>&5 |
| 18003 | ac_status=$? |
| 18004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18005 | (exit $ac_status); }; }; then |
| 18006 | ac_cv_lib_dl_dlopen=yes |
| 18007 | else |
| 18008 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18010 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18011 | ac_cv_lib_dl_dlopen=no |
| 18012 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18013 | rm -f conftest.err conftest.$ac_objext \ |
| 18014 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18015 | LIBS=$ac_check_lib_save_LIBS |
| 18016 | fi |
| 18017 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18018 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 18019 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 18020 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 18021 | else |
| 18022 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 18023 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 18024 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 18025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18026 | else |
| 18027 | ac_check_lib_save_LIBS=$LIBS |
| 18028 | LIBS="-lsvld $LIBS" |
| 18029 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18030 | /* confdefs.h. */ |
| 18031 | _ACEOF |
| 18032 | cat confdefs.h >>conftest.$ac_ext |
| 18033 | cat >>conftest.$ac_ext <<_ACEOF |
| 18034 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18035 | |
| 18036 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18037 | #ifdef __cplusplus |
| 18038 | extern "C" |
| 18039 | #endif |
| 18040 | /* We use char because int might match the return type of a gcc2 |
| 18041 | builtin and then its argument prototype would still apply. */ |
| 18042 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18043 | int |
| 18044 | main () |
| 18045 | { |
| 18046 | dlopen (); |
| 18047 | ; |
| 18048 | return 0; |
| 18049 | } |
| 18050 | _ACEOF |
| 18051 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18053 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18054 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18056 | rm -f conftest.er1 |
| 18057 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18059 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18060 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 18061 | || test ! -s conftest.err' |
| 18062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18063 | (eval $ac_try) 2>&5 |
| 18064 | ac_status=$? |
| 18065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18066 | (exit $ac_status); }; } && |
| 18067 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18069 | (eval $ac_try) 2>&5 |
| 18070 | ac_status=$? |
| 18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18072 | (exit $ac_status); }; }; then |
| 18073 | ac_cv_lib_svld_dlopen=yes |
| 18074 | else |
| 18075 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18078 | ac_cv_lib_svld_dlopen=no |
| 18079 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18080 | rm -f conftest.err conftest.$ac_objext \ |
| 18081 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18082 | LIBS=$ac_check_lib_save_LIBS |
| 18083 | fi |
| 18084 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 18085 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 18086 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 18087 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 18088 | else |
| 18089 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 18090 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 18091 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 18092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18093 | else |
| 18094 | ac_check_lib_save_LIBS=$LIBS |
| 18095 | LIBS="-ldld $LIBS" |
| 18096 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18097 | /* confdefs.h. */ |
| 18098 | _ACEOF |
| 18099 | cat confdefs.h >>conftest.$ac_ext |
| 18100 | cat >>conftest.$ac_ext <<_ACEOF |
| 18101 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18102 | |
| 18103 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18104 | #ifdef __cplusplus |
| 18105 | extern "C" |
| 18106 | #endif |
| 18107 | /* We use char because int might match the return type of a gcc2 |
| 18108 | builtin and then its argument prototype would still apply. */ |
| 18109 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18110 | int |
| 18111 | main () |
| 18112 | { |
| 18113 | dld_link (); |
| 18114 | ; |
| 18115 | return 0; |
| 18116 | } |
| 18117 | _ACEOF |
| 18118 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18120 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18121 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18123 | rm -f conftest.er1 |
| 18124 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18126 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18127 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 18128 | || test ! -s conftest.err' |
| 18129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18130 | (eval $ac_try) 2>&5 |
| 18131 | ac_status=$? |
| 18132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18133 | (exit $ac_status); }; } && |
| 18134 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18136 | (eval $ac_try) 2>&5 |
| 18137 | ac_status=$? |
| 18138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18139 | (exit $ac_status); }; }; then |
| 18140 | ac_cv_lib_dld_dld_link=yes |
| 18141 | else |
| 18142 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18144 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18145 | ac_cv_lib_dld_dld_link=no |
| 18146 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18147 | rm -f conftest.err conftest.$ac_objext \ |
| 18148 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18149 | LIBS=$ac_check_lib_save_LIBS |
| 18150 | fi |
| 18151 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 18152 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 18153 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 18154 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 18155 | fi |
| 18156 | |
| 18157 | |
| 18158 | fi |
| 18159 | |
| 18160 | |
| 18161 | fi |
| 18162 | |
| 18163 | |
| 18164 | fi |
| 18165 | |
| 18166 | |
| 18167 | fi |
| 18168 | |
| 18169 | |
| 18170 | fi |
| 18171 | |
| 18172 | ;; |
| 18173 | esac |
| 18174 | |
| 18175 | if test "x$lt_cv_dlopen" != xno; then |
| 18176 | enable_dlopen=yes |
| 18177 | else |
| 18178 | enable_dlopen=no |
| 18179 | fi |
| 18180 | |
| 18181 | case $lt_cv_dlopen in |
| 18182 | dlopen) |
| 18183 | save_CPPFLAGS="$CPPFLAGS" |
| 18184 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 18185 | |
| 18186 | save_LDFLAGS="$LDFLAGS" |
| 18187 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 18188 | |
| 18189 | save_LIBS="$LIBS" |
| 18190 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 18191 | |
| 18192 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 18193 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 18194 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 18195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18196 | else |
| 18197 | if test "$cross_compiling" = yes; then : |
| 18198 | lt_cv_dlopen_self=cross |
| 18199 | else |
| 18200 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18201 | lt_status=$lt_dlunknown |
| 18202 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 18203 | #line 18203 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18204 | #include "confdefs.h" |
| 18205 | |
| 18206 | #if HAVE_DLFCN_H |
| 18207 | #include <dlfcn.h> |
| 18208 | #endif |
| 18209 | |
| 18210 | #include <stdio.h> |
| 18211 | |
| 18212 | #ifdef RTLD_GLOBAL |
| 18213 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18214 | #else |
| 18215 | # ifdef DL_GLOBAL |
| 18216 | # define LT_DLGLOBAL DL_GLOBAL |
| 18217 | # else |
| 18218 | # define LT_DLGLOBAL 0 |
| 18219 | # endif |
| 18220 | #endif |
| 18221 | |
| 18222 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18223 | find out it does not work in some platform. */ |
| 18224 | #ifndef LT_DLLAZY_OR_NOW |
| 18225 | # ifdef RTLD_LAZY |
| 18226 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18227 | # else |
| 18228 | # ifdef DL_LAZY |
| 18229 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18230 | # else |
| 18231 | # ifdef RTLD_NOW |
| 18232 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18233 | # else |
| 18234 | # ifdef DL_NOW |
| 18235 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18236 | # else |
| 18237 | # define LT_DLLAZY_OR_NOW 0 |
| 18238 | # endif |
| 18239 | # endif |
| 18240 | # endif |
| 18241 | # endif |
| 18242 | #endif |
| 18243 | |
| 18244 | #ifdef __cplusplus |
| 18245 | extern "C" void exit (int); |
| 18246 | #endif |
| 18247 | |
| 18248 | void fnord() { int i=42;} |
| 18249 | int main () |
| 18250 | { |
| 18251 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18252 | int status = $lt_dlunknown; |
| 18253 | |
| 18254 | if (self) |
| 18255 | { |
| 18256 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18257 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18258 | /* dlclose (self); */ |
| 18259 | } |
| 18260 | |
| 18261 | exit (status); |
| 18262 | } |
| 18263 | EOF |
| 18264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18265 | (eval $ac_link) 2>&5 |
| 18266 | ac_status=$? |
| 18267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18268 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18269 | (./conftest; exit; ) 2>/dev/null |
| 18270 | lt_status=$? |
| 18271 | case x$lt_status in |
| 18272 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 18273 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 18274 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 18275 | esac |
| 18276 | else : |
| 18277 | # compilation failed |
| 18278 | lt_cv_dlopen_self=no |
| 18279 | fi |
| 18280 | fi |
| 18281 | rm -fr conftest* |
| 18282 | |
| 18283 | |
| 18284 | fi |
| 18285 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 18286 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 18287 | |
| 18288 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 18289 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 18290 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 18291 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 18292 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 18293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18294 | else |
| 18295 | if test "$cross_compiling" = yes; then : |
| 18296 | lt_cv_dlopen_self_static=cross |
| 18297 | else |
| 18298 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18299 | lt_status=$lt_dlunknown |
| 18300 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 18301 | #line 18301 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18302 | #include "confdefs.h" |
| 18303 | |
| 18304 | #if HAVE_DLFCN_H |
| 18305 | #include <dlfcn.h> |
| 18306 | #endif |
| 18307 | |
| 18308 | #include <stdio.h> |
| 18309 | |
| 18310 | #ifdef RTLD_GLOBAL |
| 18311 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18312 | #else |
| 18313 | # ifdef DL_GLOBAL |
| 18314 | # define LT_DLGLOBAL DL_GLOBAL |
| 18315 | # else |
| 18316 | # define LT_DLGLOBAL 0 |
| 18317 | # endif |
| 18318 | #endif |
| 18319 | |
| 18320 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18321 | find out it does not work in some platform. */ |
| 18322 | #ifndef LT_DLLAZY_OR_NOW |
| 18323 | # ifdef RTLD_LAZY |
| 18324 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18325 | # else |
| 18326 | # ifdef DL_LAZY |
| 18327 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18328 | # else |
| 18329 | # ifdef RTLD_NOW |
| 18330 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18331 | # else |
| 18332 | # ifdef DL_NOW |
| 18333 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18334 | # else |
| 18335 | # define LT_DLLAZY_OR_NOW 0 |
| 18336 | # endif |
| 18337 | # endif |
| 18338 | # endif |
| 18339 | # endif |
| 18340 | #endif |
| 18341 | |
| 18342 | #ifdef __cplusplus |
| 18343 | extern "C" void exit (int); |
| 18344 | #endif |
| 18345 | |
| 18346 | void fnord() { int i=42;} |
| 18347 | int main () |
| 18348 | { |
| 18349 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18350 | int status = $lt_dlunknown; |
| 18351 | |
| 18352 | if (self) |
| 18353 | { |
| 18354 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18355 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18356 | /* dlclose (self); */ |
| 18357 | } |
| 18358 | |
| 18359 | exit (status); |
| 18360 | } |
| 18361 | EOF |
| 18362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18363 | (eval $ac_link) 2>&5 |
| 18364 | ac_status=$? |
| 18365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18366 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18367 | (./conftest; exit; ) 2>/dev/null |
| 18368 | lt_status=$? |
| 18369 | case x$lt_status in |
| 18370 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18371 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18372 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 18373 | esac |
| 18374 | else : |
| 18375 | # compilation failed |
| 18376 | lt_cv_dlopen_self_static=no |
| 18377 | fi |
| 18378 | fi |
| 18379 | rm -fr conftest* |
| 18380 | |
| 18381 | |
| 18382 | fi |
| 18383 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 18384 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 18385 | fi |
| 18386 | |
| 18387 | CPPFLAGS="$save_CPPFLAGS" |
| 18388 | LDFLAGS="$save_LDFLAGS" |
| 18389 | LIBS="$save_LIBS" |
| 18390 | ;; |
| 18391 | esac |
| 18392 | |
| 18393 | case $lt_cv_dlopen_self in |
| 18394 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 18395 | *) enable_dlopen_self=unknown ;; |
| 18396 | esac |
| 18397 | |
| 18398 | case $lt_cv_dlopen_self_static in |
| 18399 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18400 | *) enable_dlopen_self_static=unknown ;; |
| 18401 | esac |
| 18402 | fi |
| 18403 | |
| 18404 | |
| 18405 | # The else clause should only fire when bootstrapping the |
| 18406 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18407 | # with your package, and you will get complaints that there are |
| 18408 | # no rules to generate ltmain.sh. |
| 18409 | if test -f "$ltmain"; then |
| 18410 | # See if we are running on zsh, and set the options which allow our commands through |
| 18411 | # without removal of \ escapes. |
| 18412 | if test -n "${ZSH_VERSION+set}" ; then |
| 18413 | setopt NO_GLOB_SUBST |
| 18414 | fi |
| 18415 | # Now quote all the things that may contain metacharacters while being |
| 18416 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18417 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18418 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18419 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18420 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18421 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18422 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18423 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18424 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18425 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18426 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18427 | compiler_CXX \ |
| 18428 | CC_CXX \ |
| 18429 | LD_CXX \ |
| 18430 | lt_prog_compiler_wl_CXX \ |
| 18431 | lt_prog_compiler_pic_CXX \ |
| 18432 | lt_prog_compiler_static_CXX \ |
| 18433 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 18434 | export_dynamic_flag_spec_CXX \ |
| 18435 | thread_safe_flag_spec_CXX \ |
| 18436 | whole_archive_flag_spec_CXX \ |
| 18437 | enable_shared_with_static_runtimes_CXX \ |
| 18438 | old_archive_cmds_CXX \ |
| 18439 | old_archive_from_new_cmds_CXX \ |
| 18440 | predep_objects_CXX \ |
| 18441 | postdep_objects_CXX \ |
| 18442 | predeps_CXX \ |
| 18443 | postdeps_CXX \ |
| 18444 | compiler_lib_search_path_CXX \ |
| 18445 | archive_cmds_CXX \ |
| 18446 | archive_expsym_cmds_CXX \ |
| 18447 | postinstall_cmds_CXX \ |
| 18448 | postuninstall_cmds_CXX \ |
| 18449 | old_archive_from_expsyms_cmds_CXX \ |
| 18450 | allow_undefined_flag_CXX \ |
| 18451 | no_undefined_flag_CXX \ |
| 18452 | export_symbols_cmds_CXX \ |
| 18453 | hardcode_libdir_flag_spec_CXX \ |
| 18454 | hardcode_libdir_flag_spec_ld_CXX \ |
| 18455 | hardcode_libdir_separator_CXX \ |
| 18456 | hardcode_automatic_CXX \ |
| 18457 | module_cmds_CXX \ |
| 18458 | module_expsym_cmds_CXX \ |
| 18459 | lt_cv_prog_compiler_c_o_CXX \ |
| 18460 | exclude_expsyms_CXX \ |
| 18461 | include_expsyms_CXX; do |
| 18462 | |
| 18463 | case $var in |
| 18464 | old_archive_cmds_CXX | \ |
| 18465 | old_archive_from_new_cmds_CXX | \ |
| 18466 | archive_cmds_CXX | \ |
| 18467 | archive_expsym_cmds_CXX | \ |
| 18468 | module_cmds_CXX | \ |
| 18469 | module_expsym_cmds_CXX | \ |
| 18470 | old_archive_from_expsyms_cmds_CXX | \ |
| 18471 | export_symbols_cmds_CXX | \ |
| 18472 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18473 | postinstall_cmds | postuninstall_cmds | \ |
| 18474 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18475 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18476 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18477 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18478 | ;; |
| 18479 | *) |
| 18480 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18481 | ;; |
| 18482 | esac |
| 18483 | done |
| 18484 | |
| 18485 | case $lt_echo in |
| 18486 | *'\$0 --fallback-echo"') |
| 18487 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18488 | ;; |
| 18489 | esac |
| 18490 | |
| 18491 | cfgfile="$ofile" |
| 18492 | |
| 18493 | cat <<__EOF__ >> "$cfgfile" |
| 18494 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18495 | |
| 18496 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18497 | |
| 18498 | # Shell to use when invoking shell scripts. |
| 18499 | SHELL=$lt_SHELL |
| 18500 | |
| 18501 | # Whether or not to build shared libraries. |
| 18502 | build_libtool_libs=$enable_shared |
| 18503 | |
| 18504 | # Whether or not to build static libraries. |
| 18505 | build_old_libs=$enable_static |
| 18506 | |
| 18507 | # Whether or not to add -lc for building shared libraries. |
| 18508 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 18509 | |
| 18510 | # Whether or not to disallow shared libs when runtime libs are static |
| 18511 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 18512 | |
| 18513 | # Whether or not to optimize for fast installation. |
| 18514 | fast_install=$enable_fast_install |
| 18515 | |
| 18516 | # The host system. |
| 18517 | host_alias=$host_alias |
| 18518 | host=$host |
| 18519 | |
| 18520 | # An echo program that does not interpret backslashes. |
| 18521 | echo=$lt_echo |
| 18522 | |
| 18523 | # The archiver. |
| 18524 | AR=$lt_AR |
| 18525 | AR_FLAGS=$lt_AR_FLAGS |
| 18526 | |
| 18527 | # A C compiler. |
| 18528 | LTCC=$lt_LTCC |
| 18529 | |
| 18530 | # A language-specific compiler. |
| 18531 | CC=$lt_compiler_CXX |
| 18532 | |
| 18533 | # Is the compiler the GNU C compiler? |
| 18534 | with_gcc=$GCC_CXX |
| 18535 | |
| 18536 | # An ERE matcher. |
| 18537 | EGREP=$lt_EGREP |
| 18538 | |
| 18539 | # The linker used to build libraries. |
| 18540 | LD=$lt_LD_CXX |
| 18541 | |
| 18542 | # Whether we need hard or soft links. |
| 18543 | LN_S=$lt_LN_S |
| 18544 | |
| 18545 | # A BSD-compatible nm program. |
| 18546 | NM=$lt_NM |
| 18547 | |
| 18548 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18549 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18550 | |
| 18551 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18552 | MAGIC_CMD=$MAGIC_CMD |
| 18553 | |
| 18554 | # Used on cygwin: DLL creation program. |
| 18555 | DLLTOOL="$DLLTOOL" |
| 18556 | |
| 18557 | # Used on cygwin: object dumper. |
| 18558 | OBJDUMP="$OBJDUMP" |
| 18559 | |
| 18560 | # Used on cygwin: assembler. |
| 18561 | AS="$AS" |
| 18562 | |
| 18563 | # The name of the directory that contains temporary libtool files. |
| 18564 | objdir=$objdir |
| 18565 | |
| 18566 | # How to create reloadable object files. |
| 18567 | reload_flag=$lt_reload_flag |
| 18568 | reload_cmds=$lt_reload_cmds |
| 18569 | |
| 18570 | # How to pass a linker flag through the compiler. |
| 18571 | wl=$lt_lt_prog_compiler_wl_CXX |
| 18572 | |
| 18573 | # Object file suffix (normally "o"). |
| 18574 | objext="$ac_objext" |
| 18575 | |
| 18576 | # Old archive suffix (normally "a"). |
| 18577 | libext="$libext" |
| 18578 | |
| 18579 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18580 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18581 | |
| 18582 | # Executable file suffix (normally ""). |
| 18583 | exeext="$exeext" |
| 18584 | |
| 18585 | # Additional compiler flags for building library objects. |
| 18586 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 18587 | pic_mode=$pic_mode |
| 18588 | |
| 18589 | # What is the maximum length of a command? |
| 18590 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18591 | |
| 18592 | # Does compiler simultaneously support -c and -o options? |
| 18593 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 18594 | |
| 18595 | # Must we lock files when doing compilation ? |
| 18596 | need_locks=$lt_need_locks |
| 18597 | |
| 18598 | # Do we need the lib prefix for modules? |
| 18599 | need_lib_prefix=$need_lib_prefix |
| 18600 | |
| 18601 | # Do we need a version for libraries? |
| 18602 | need_version=$need_version |
| 18603 | |
| 18604 | # Whether dlopen is supported. |
| 18605 | dlopen_support=$enable_dlopen |
| 18606 | |
| 18607 | # Whether dlopen of programs is supported. |
| 18608 | dlopen_self=$enable_dlopen_self |
| 18609 | |
| 18610 | # Whether dlopen of statically linked programs is supported. |
| 18611 | dlopen_self_static=$enable_dlopen_self_static |
| 18612 | |
| 18613 | # Compiler flag to prevent dynamic linking. |
| 18614 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 18615 | |
| 18616 | # Compiler flag to turn off builtin functions. |
| 18617 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 18618 | |
| 18619 | # Compiler flag to allow reflexive dlopens. |
| 18620 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 18621 | |
| 18622 | # Compiler flag to generate shared objects directly from archives. |
| 18623 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 18624 | |
| 18625 | # Compiler flag to generate thread-safe objects. |
| 18626 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 18627 | |
| 18628 | # Library versioning type. |
| 18629 | version_type=$version_type |
| 18630 | |
| 18631 | # Format of library name prefix. |
| 18632 | libname_spec=$lt_libname_spec |
| 18633 | |
| 18634 | # List of archive names. First name is the real one, the rest are links. |
| 18635 | # The last name is the one that the linker finds with -lNAME. |
| 18636 | library_names_spec=$lt_library_names_spec |
| 18637 | |
| 18638 | # The coded name of the library, if different from the real name. |
| 18639 | soname_spec=$lt_soname_spec |
| 18640 | |
| 18641 | # Commands used to build and install an old-style archive. |
| 18642 | RANLIB=$lt_RANLIB |
| 18643 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 18644 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18645 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18646 | |
| 18647 | # Create an old-style archive from a shared archive. |
| 18648 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 18649 | |
| 18650 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18651 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 18652 | |
| 18653 | # Commands used to build and install a shared archive. |
| 18654 | archive_cmds=$lt_archive_cmds_CXX |
| 18655 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 18656 | postinstall_cmds=$lt_postinstall_cmds |
| 18657 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18658 | |
| 18659 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18660 | module_cmds=$lt_module_cmds_CXX |
| 18661 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 18662 | |
| 18663 | # Commands to strip libraries. |
| 18664 | old_striplib=$lt_old_striplib |
| 18665 | striplib=$lt_striplib |
| 18666 | |
| 18667 | # Dependencies to place before the objects being linked to create a |
| 18668 | # shared library. |
| 18669 | predep_objects=$lt_predep_objects_CXX |
| 18670 | |
| 18671 | # Dependencies to place after the objects being linked to create a |
| 18672 | # shared library. |
| 18673 | postdep_objects=$lt_postdep_objects_CXX |
| 18674 | |
| 18675 | # Dependencies to place before the objects being linked to create a |
| 18676 | # shared library. |
| 18677 | predeps=$lt_predeps_CXX |
| 18678 | |
| 18679 | # Dependencies to place after the objects being linked to create a |
| 18680 | # shared library. |
| 18681 | postdeps=$lt_postdeps_CXX |
| 18682 | |
| 18683 | # The library search path used internally by the compiler when linking |
| 18684 | # a shared library. |
| 18685 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 18686 | |
| 18687 | # Method to check whether dependent libraries are shared objects. |
| 18688 | deplibs_check_method=$lt_deplibs_check_method |
| 18689 | |
| 18690 | # Command to use when deplibs_check_method == file_magic. |
| 18691 | file_magic_cmd=$lt_file_magic_cmd |
| 18692 | |
| 18693 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18694 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 18695 | |
| 18696 | # Flag that forces no undefined symbols. |
| 18697 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 18698 | |
| 18699 | # Commands used to finish a libtool library installation in a directory. |
| 18700 | finish_cmds=$lt_finish_cmds |
| 18701 | |
| 18702 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18703 | finish_eval=$lt_finish_eval |
| 18704 | |
| 18705 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18706 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18707 | |
| 18708 | # Transform the output of nm in a proper C declaration |
| 18709 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18710 | |
| 18711 | # Transform the output of nm in a C name address pair |
| 18712 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18713 | |
| 18714 | # This is the shared library runtime path variable. |
| 18715 | runpath_var=$runpath_var |
| 18716 | |
| 18717 | # This is the shared library path variable. |
| 18718 | shlibpath_var=$shlibpath_var |
| 18719 | |
| 18720 | # Is shlibpath searched before the hard-coded library search path? |
| 18721 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18722 | |
| 18723 | # How to hardcode a shared library path into an executable. |
| 18724 | hardcode_action=$hardcode_action_CXX |
| 18725 | |
| 18726 | # Whether we should hardcode library paths into libraries. |
| 18727 | hardcode_into_libs=$hardcode_into_libs |
| 18728 | |
| 18729 | # Flag to hardcode \$libdir into a binary during linking. |
| 18730 | # This must work even if \$libdir does not exist. |
| 18731 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 18732 | |
| 18733 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18734 | # a binary during linking. This must work even if \$libdir does |
| 18735 | # not exist. |
| 18736 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 18737 | |
| 18738 | # Whether we need a single -rpath flag with a separated argument. |
| 18739 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 18740 | |
| 18741 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18742 | # resulting binary. |
| 18743 | hardcode_direct=$hardcode_direct_CXX |
| 18744 | |
| 18745 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18746 | # resulting binary. |
| 18747 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 18748 | |
| 18749 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18750 | # the resulting binary. |
| 18751 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 18752 | |
| 18753 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18754 | # and all subsequent libraries and executables linked against it. |
| 18755 | hardcode_automatic=$hardcode_automatic_CXX |
| 18756 | |
| 18757 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18758 | # restored at relink time. |
| 18759 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18760 | |
| 18761 | # Whether libtool must link a program against all its dependency libraries. |
| 18762 | link_all_deplibs=$link_all_deplibs_CXX |
| 18763 | |
| 18764 | # Compile-time system search path for libraries |
| 18765 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18766 | |
| 18767 | # Run-time system search path for libraries |
| 18768 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18769 | |
| 18770 | # Fix the shell variable \$srcfile for the compiler. |
| 18771 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 18772 | |
| 18773 | # Set to yes if exported symbols are required. |
| 18774 | always_export_symbols=$always_export_symbols_CXX |
| 18775 | |
| 18776 | # The commands to list exported symbols. |
| 18777 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 18778 | |
| 18779 | # The commands to extract the exported symbol list from a shared archive. |
| 18780 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18781 | |
| 18782 | # Symbols that should not be listed in the preloaded symbols. |
| 18783 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 18784 | |
| 18785 | # Symbols that must always be exported. |
| 18786 | include_expsyms=$lt_include_expsyms_CXX |
| 18787 | |
| 18788 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18789 | |
| 18790 | __EOF__ |
| 18791 | |
| 18792 | |
| 18793 | else |
| 18794 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18795 | # `config.status --recheck' to rerun these tests and create the |
| 18796 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18797 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18798 | if test -f "$ltmain_in"; then |
| 18799 | test -f Makefile && make "$ltmain" |
| 18800 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18801 | fi |
| 18802 | |
| 18803 | |
| 18804 | ac_ext=c |
| 18805 | ac_cpp='$CPP $CPPFLAGS' |
| 18806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18809 | |
| 18810 | CC=$lt_save_CC |
| 18811 | LDCXX=$LD |
| 18812 | LD=$lt_save_LD |
| 18813 | GCC=$lt_save_GCC |
| 18814 | with_gnu_ldcxx=$with_gnu_ld |
| 18815 | with_gnu_ld=$lt_save_with_gnu_ld |
| 18816 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 18817 | lt_cv_path_LD=$lt_save_path_LD |
| 18818 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 18819 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 18820 | |
| 18821 | else |
| 18822 | tagname="" |
| 18823 | fi |
| 18824 | ;; |
| 18825 | |
| 18826 | F77) |
| 18827 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 18828 | |
| 18829 | ac_ext=f |
| 18830 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 18831 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18832 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 18833 | |
| 18834 | |
| 18835 | archive_cmds_need_lc_F77=no |
| 18836 | allow_undefined_flag_F77= |
| 18837 | always_export_symbols_F77=no |
| 18838 | archive_expsym_cmds_F77= |
| 18839 | export_dynamic_flag_spec_F77= |
| 18840 | hardcode_direct_F77=no |
| 18841 | hardcode_libdir_flag_spec_F77= |
| 18842 | hardcode_libdir_flag_spec_ld_F77= |
| 18843 | hardcode_libdir_separator_F77= |
| 18844 | hardcode_minus_L_F77=no |
| 18845 | hardcode_automatic_F77=no |
| 18846 | module_cmds_F77= |
| 18847 | module_expsym_cmds_F77= |
| 18848 | link_all_deplibs_F77=unknown |
| 18849 | old_archive_cmds_F77=$old_archive_cmds |
| 18850 | no_undefined_flag_F77= |
| 18851 | whole_archive_flag_spec_F77= |
| 18852 | enable_shared_with_static_runtimes_F77=no |
| 18853 | |
| 18854 | # Source file extension for f77 test sources. |
| 18855 | ac_ext=f |
| 18856 | |
| 18857 | # Object file extension for compiled f77 test sources. |
| 18858 | objext=o |
| 18859 | objext_F77=$objext |
| 18860 | |
| 18861 | # Code to be used in simple compile tests |
| 18862 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 18863 | |
| 18864 | # Code to be used in simple link tests |
| 18865 | lt_simple_link_test_code=" program t\n end\n" |
| 18866 | |
| 18867 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18868 | |
| 18869 | # If no C compiler was specified, use CC. |
| 18870 | LTCC=${LTCC-"$CC"} |
| 18871 | |
| 18872 | # Allow CC to be a program name with arguments. |
| 18873 | compiler=$CC |
| 18874 | |
| 18875 | |
| 18876 | # Allow CC to be a program name with arguments. |
| 18877 | lt_save_CC="$CC" |
| 18878 | CC=${F77-"f77"} |
| 18879 | compiler=$CC |
| 18880 | compiler_F77=$CC |
| 18881 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 18882 | |
| 18883 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 18884 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 18885 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 18886 | echo "${ECHO_T}$can_build_shared" >&6 |
| 18887 | |
| 18888 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 18889 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 18890 | test "$can_build_shared" = "no" && enable_shared=no |
| 18891 | |
| 18892 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 18893 | # are all built from PIC. |
| 18894 | case "$host_os" in |
| 18895 | aix3*) |
| 18896 | test "$enable_shared" = yes && enable_static=no |
| 18897 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18898 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18899 | postinstall_cmds='$RANLIB $lib' |
| 18900 | fi |
| 18901 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18902 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18903 | test "$enable_shared" = yes && enable_static=no |
| 18904 | ;; |
| 18905 | esac |
| 18906 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 18907 | echo "${ECHO_T}$enable_shared" >&6 |
| 18908 | |
| 18909 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 18910 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 18911 | # Make sure either enable_shared or enable_static is yes. |
| 18912 | test "$enable_shared" = yes || enable_static=yes |
| 18913 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 18914 | echo "${ECHO_T}$enable_static" >&6 |
| 18915 | |
| 18916 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 18917 | |
| 18918 | GCC_F77="$G77" |
| 18919 | LD_F77="$LD" |
| 18920 | |
| 18921 | lt_prog_compiler_wl_F77= |
| 18922 | lt_prog_compiler_pic_F77= |
| 18923 | lt_prog_compiler_static_F77= |
| 18924 | |
| 18925 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 18926 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 18927 | |
| 18928 | if test "$GCC" = yes; then |
| 18929 | lt_prog_compiler_wl_F77='-Wl,' |
| 18930 | lt_prog_compiler_static_F77='-static' |
| 18931 | |
| 18932 | case $host_os in |
| 18933 | aix*) |
| 18934 | # All AIX code is PIC. |
| 18935 | if test "$host_cpu" = ia64; then |
| 18936 | # AIX 5 now supports IA64 processor |
| 18937 | lt_prog_compiler_static_F77='-Bstatic' |
| 18938 | fi |
| 18939 | ;; |
| 18940 | |
| 18941 | amigaos*) |
| 18942 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 18943 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 18944 | # like `-m68040'. |
| 18945 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 18946 | ;; |
| 18947 | |
| 18948 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 18949 | # PIC is the default for these OSes. |
| 18950 | ;; |
| 18951 | |
| 18952 | mingw* | pw32* | os2*) |
| 18953 | # This hack is so that the source file can tell whether it is being |
| 18954 | # built for inclusion in a dll (and should export symbols for example). |
| 18955 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 18956 | ;; |
| 18957 | |
| 18958 | darwin* | rhapsody*) |
| 18959 | # PIC is the default on this platform |
| 18960 | # Common symbols not allowed in MH_DYLIB files |
| 18961 | lt_prog_compiler_pic_F77='-fno-common' |
| 18962 | ;; |
| 18963 | |
| 18964 | msdosdjgpp*) |
| 18965 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 18966 | # on systems that don't support them. |
| 18967 | lt_prog_compiler_can_build_shared_F77=no |
| 18968 | enable_shared=no |
| 18969 | ;; |
| 18970 | |
| 18971 | sysv4*MP*) |
| 18972 | if test -d /usr/nec; then |
| 18973 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 18974 | fi |
| 18975 | ;; |
| 18976 | |
| 18977 | hpux*) |
| 18978 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 18979 | # not for PA HP-UX. |
| 18980 | case "$host_cpu" in |
| 18981 | hppa*64*|ia64*) |
| 18982 | # +Z the default |
| 18983 | ;; |
| 18984 | *) |
| 18985 | lt_prog_compiler_pic_F77='-fPIC' |
| 18986 | ;; |
| 18987 | esac |
| 18988 | ;; |
| 18989 | |
| 18990 | *) |
| 18991 | lt_prog_compiler_pic_F77='-fPIC' |
| 18992 | ;; |
| 18993 | esac |
| 18994 | else |
| 18995 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 18996 | case $host_os in |
| 18997 | aix*) |
| 18998 | lt_prog_compiler_wl_F77='-Wl,' |
| 18999 | if test "$host_cpu" = ia64; then |
| 19000 | # AIX 5 now supports IA64 processor |
| 19001 | lt_prog_compiler_static_F77='-Bstatic' |
| 19002 | else |
| 19003 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 19004 | fi |
| 19005 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19006 | darwin*) |
| 19007 | # PIC is the default on this platform |
| 19008 | # Common symbols not allowed in MH_DYLIB files |
| 19009 | case "$cc_basename" in |
| 19010 | xlc*) |
| 19011 | lt_prog_compiler_pic_F77='-qnocommon' |
| 19012 | lt_prog_compiler_wl_F77='-Wl,' |
| 19013 | ;; |
| 19014 | esac |
| 19015 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19016 | |
| 19017 | mingw* | pw32* | os2*) |
| 19018 | # This hack is so that the source file can tell whether it is being |
| 19019 | # built for inclusion in a dll (and should export symbols for example). |
| 19020 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 19021 | ;; |
| 19022 | |
| 19023 | hpux9* | hpux10* | hpux11*) |
| 19024 | lt_prog_compiler_wl_F77='-Wl,' |
| 19025 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19026 | # not for PA HP-UX. |
| 19027 | case "$host_cpu" in |
| 19028 | hppa*64*|ia64*) |
| 19029 | # +Z the default |
| 19030 | ;; |
| 19031 | *) |
| 19032 | lt_prog_compiler_pic_F77='+Z' |
| 19033 | ;; |
| 19034 | esac |
| 19035 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 19036 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 19037 | ;; |
| 19038 | |
| 19039 | irix5* | irix6* | nonstopux*) |
| 19040 | lt_prog_compiler_wl_F77='-Wl,' |
| 19041 | # PIC (with -KPIC) is the default. |
| 19042 | lt_prog_compiler_static_F77='-non_shared' |
| 19043 | ;; |
| 19044 | |
| 19045 | newsos6) |
| 19046 | lt_prog_compiler_pic_F77='-KPIC' |
| 19047 | lt_prog_compiler_static_F77='-Bstatic' |
| 19048 | ;; |
| 19049 | |
| 19050 | linux*) |
| 19051 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19052 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19053 | lt_prog_compiler_wl_F77='-Wl,' |
| 19054 | lt_prog_compiler_pic_F77='-KPIC' |
| 19055 | lt_prog_compiler_static_F77='-static' |
| 19056 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19057 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19058 | lt_prog_compiler_wl_F77='-Wl,' |
| 19059 | # All Alpha code is PIC. |
| 19060 | lt_prog_compiler_static_F77='-non_shared' |
| 19061 | ;; |
| 19062 | esac |
| 19063 | ;; |
| 19064 | |
| 19065 | osf3* | osf4* | osf5*) |
| 19066 | lt_prog_compiler_wl_F77='-Wl,' |
| 19067 | # All OSF/1 code is PIC. |
| 19068 | lt_prog_compiler_static_F77='-non_shared' |
| 19069 | ;; |
| 19070 | |
| 19071 | sco3.2v5*) |
| 19072 | lt_prog_compiler_pic_F77='-Kpic' |
| 19073 | lt_prog_compiler_static_F77='-dn' |
| 19074 | ;; |
| 19075 | |
| 19076 | solaris*) |
| 19077 | lt_prog_compiler_wl_F77='-Wl,' |
| 19078 | lt_prog_compiler_pic_F77='-KPIC' |
| 19079 | lt_prog_compiler_static_F77='-Bstatic' |
| 19080 | ;; |
| 19081 | |
| 19082 | sunos4*) |
| 19083 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 19084 | lt_prog_compiler_pic_F77='-PIC' |
| 19085 | lt_prog_compiler_static_F77='-Bstatic' |
| 19086 | ;; |
| 19087 | |
| 19088 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 19089 | lt_prog_compiler_wl_F77='-Wl,' |
| 19090 | lt_prog_compiler_pic_F77='-KPIC' |
| 19091 | lt_prog_compiler_static_F77='-Bstatic' |
| 19092 | ;; |
| 19093 | |
| 19094 | sysv4*MP*) |
| 19095 | if test -d /usr/nec ;then |
| 19096 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 19097 | lt_prog_compiler_static_F77='-Bstatic' |
| 19098 | fi |
| 19099 | ;; |
| 19100 | |
| 19101 | uts4*) |
| 19102 | lt_prog_compiler_pic_F77='-pic' |
| 19103 | lt_prog_compiler_static_F77='-Bstatic' |
| 19104 | ;; |
| 19105 | |
| 19106 | *) |
| 19107 | lt_prog_compiler_can_build_shared_F77=no |
| 19108 | ;; |
| 19109 | esac |
| 19110 | fi |
| 19111 | |
| 19112 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 19113 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 19114 | |
| 19115 | # |
| 19116 | # Check to make sure the PIC flag actually works. |
| 19117 | # |
| 19118 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19119 | |
| 19120 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19121 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 19122 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 19123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19124 | else |
| 19125 | lt_prog_compiler_pic_works_F77=no |
| 19126 | ac_outfile=conftest.$ac_objext |
| 19127 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19128 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 19129 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19130 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19131 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19132 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19133 | # The option is referenced via a variable to avoid confusing sed. |
| 19134 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19135 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 19136 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19137 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 19138 | (eval echo "\"\$as_me:19138: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19139 | (eval "$lt_compile" 2>conftest.err) |
| 19140 | ac_status=$? |
| 19141 | cat conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 19142 | echo "$as_me:19142: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19143 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19144 | # The compiler can only warn and ignore the option if not recognized |
| 19145 | # So say no if there are warnings |
| 19146 | if test ! -s conftest.err; then |
| 19147 | lt_prog_compiler_pic_works_F77=yes |
| 19148 | fi |
| 19149 | fi |
| 19150 | $rm conftest* |
| 19151 | |
| 19152 | fi |
| 19153 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 19154 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 19155 | |
| 19156 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 19157 | case $lt_prog_compiler_pic_F77 in |
| 19158 | "" | " "*) ;; |
| 19159 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 19160 | esac |
| 19161 | else |
| 19162 | lt_prog_compiler_pic_F77= |
| 19163 | lt_prog_compiler_can_build_shared_F77=no |
| 19164 | fi |
| 19165 | |
| 19166 | fi |
| 19167 | case "$host_os" in |
| 19168 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19169 | *djgpp*) |
| 19170 | lt_prog_compiler_pic_F77= |
| 19171 | ;; |
| 19172 | *) |
| 19173 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 19174 | ;; |
| 19175 | esac |
| 19176 | |
| 19177 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19178 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 19179 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 19180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19181 | else |
| 19182 | lt_cv_prog_compiler_c_o_F77=no |
| 19183 | $rm -r conftest 2>/dev/null |
| 19184 | mkdir conftest |
| 19185 | cd conftest |
| 19186 | mkdir out |
| 19187 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19188 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19189 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19190 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19191 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19192 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19193 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19194 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19195 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 19196 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19197 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 19198 | (eval echo "\"\$as_me:19198: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19199 | (eval "$lt_compile" 2>out/conftest.err) |
| 19200 | ac_status=$? |
| 19201 | cat out/conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 19202 | echo "$as_me:19202: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19203 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19204 | then |
| 19205 | # The compiler can only warn and ignore the option if not recognized |
| 19206 | # So say no if there are warnings |
| 19207 | if test ! -s out/conftest.err; then |
| 19208 | lt_cv_prog_compiler_c_o_F77=yes |
| 19209 | fi |
| 19210 | fi |
| 19211 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19212 | $rm conftest* |
| 19213 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19214 | # template instantiation |
| 19215 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19216 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19217 | cd .. |
| 19218 | rmdir conftest |
| 19219 | $rm conftest* |
| 19220 | |
| 19221 | fi |
| 19222 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 19223 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 19224 | |
| 19225 | |
| 19226 | hard_links="nottested" |
| 19227 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 19228 | # do not overwrite the value of need_locks provided by the user |
| 19229 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19230 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 19231 | hard_links=yes |
| 19232 | $rm conftest* |
| 19233 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19234 | touch conftest.a |
| 19235 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19236 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19237 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19238 | echo "${ECHO_T}$hard_links" >&6 |
| 19239 | if test "$hard_links" = no; then |
| 19240 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19241 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19242 | need_locks=warn |
| 19243 | fi |
| 19244 | else |
| 19245 | need_locks=no |
| 19246 | fi |
| 19247 | |
| 19248 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19249 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 19250 | |
| 19251 | runpath_var= |
| 19252 | allow_undefined_flag_F77= |
| 19253 | enable_shared_with_static_runtimes_F77=no |
| 19254 | archive_cmds_F77= |
| 19255 | archive_expsym_cmds_F77= |
| 19256 | old_archive_From_new_cmds_F77= |
| 19257 | old_archive_from_expsyms_cmds_F77= |
| 19258 | export_dynamic_flag_spec_F77= |
| 19259 | whole_archive_flag_spec_F77= |
| 19260 | thread_safe_flag_spec_F77= |
| 19261 | hardcode_libdir_flag_spec_F77= |
| 19262 | hardcode_libdir_flag_spec_ld_F77= |
| 19263 | hardcode_libdir_separator_F77= |
| 19264 | hardcode_direct_F77=no |
| 19265 | hardcode_minus_L_F77=no |
| 19266 | hardcode_shlibpath_var_F77=unsupported |
| 19267 | link_all_deplibs_F77=unknown |
| 19268 | hardcode_automatic_F77=no |
| 19269 | module_cmds_F77= |
| 19270 | module_expsym_cmds_F77= |
| 19271 | always_export_symbols_F77=no |
| 19272 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19273 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 19274 | # included in the symbol list |
| 19275 | include_expsyms_F77= |
| 19276 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 19277 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 19278 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 19279 | # as well as any symbol that contains `d'. |
| 19280 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 19281 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 19282 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 19283 | # the symbol is explicitly referenced. Since portable code cannot |
| 19284 | # rely on this symbol name, it's probably fine to never include it in |
| 19285 | # preloaded symbol tables. |
| 19286 | extract_expsyms_cmds= |
| 19287 | |
| 19288 | case $host_os in |
| 19289 | cygwin* | mingw* | pw32*) |
| 19290 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 19291 | # When not using gcc, we currently assume that we are using |
| 19292 | # Microsoft Visual C++. |
| 19293 | if test "$GCC" != yes; then |
| 19294 | with_gnu_ld=no |
| 19295 | fi |
| 19296 | ;; |
| 19297 | openbsd*) |
| 19298 | with_gnu_ld=no |
| 19299 | ;; |
| 19300 | esac |
| 19301 | |
| 19302 | ld_shlibs_F77=yes |
| 19303 | if test "$with_gnu_ld" = yes; then |
| 19304 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 19305 | wlarc='${wl}' |
| 19306 | |
| 19307 | # See if GNU ld supports shared libraries. |
| 19308 | case $host_os in |
| 19309 | aix3* | aix4* | aix5*) |
| 19310 | # On AIX/PPC, the GNU linker is very broken |
| 19311 | if test "$host_cpu" != ia64; then |
| 19312 | ld_shlibs_F77=no |
| 19313 | cat <<EOF 1>&2 |
| 19314 | |
| 19315 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 19316 | *** to be unable to reliably create shared libraries on AIX. |
| 19317 | *** Therefore, libtool is disabling shared libraries support. If you |
| 19318 | *** really care for shared libraries, you may want to modify your PATH |
| 19319 | *** so that a non-GNU linker is found, and then restart. |
| 19320 | |
| 19321 | EOF |
| 19322 | fi |
| 19323 | ;; |
| 19324 | |
| 19325 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19326 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19327 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19328 | hardcode_minus_L_F77=yes |
| 19329 | |
| 19330 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 19331 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 19332 | # to version 4, is to share data among multiple programs linked |
| 19333 | # with the same dynamic library. Since this doesn't match the |
| 19334 | # behavior of shared libraries on other platforms, we can't use |
| 19335 | # them. |
| 19336 | ld_shlibs_F77=no |
| 19337 | ;; |
| 19338 | |
| 19339 | beos*) |
| 19340 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19341 | allow_undefined_flag_F77=unsupported |
| 19342 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 19343 | # support --undefined. This deserves some investigation. FIXME |
| 19344 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19345 | else |
| 19346 | ld_shlibs_F77=no |
| 19347 | fi |
| 19348 | ;; |
| 19349 | |
| 19350 | cygwin* | mingw* | pw32*) |
| 19351 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 19352 | # as there is no search path for DLLs. |
| 19353 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19354 | allow_undefined_flag_F77=unsupported |
| 19355 | always_export_symbols_F77=no |
| 19356 | enable_shared_with_static_runtimes_F77=yes |
| 19357 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 19358 | |
| 19359 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 19360 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 19361 | # If the export-symbols file already is a .def file (1st line |
| 19362 | # is EXPORTS), use it as is; otherwise, prepend... |
| 19363 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 19364 | cp $export_symbols $output_objdir/$soname.def; |
| 19365 | else |
| 19366 | echo EXPORTS > $output_objdir/$soname.def; |
| 19367 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19368 | fi~ |
| 19369 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19370 | else |
| 19371 | ld_shlibs=no |
| 19372 | fi |
| 19373 | ;; |
| 19374 | |
| 19375 | netbsd*) |
| 19376 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19377 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 19378 | wlarc= |
| 19379 | else |
| 19380 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19381 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19382 | fi |
| 19383 | ;; |
| 19384 | |
| 19385 | solaris* | sysv5*) |
| 19386 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 19387 | ld_shlibs_F77=no |
| 19388 | cat <<EOF 1>&2 |
| 19389 | |
| 19390 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 19391 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 19392 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 19393 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 19394 | *** your PATH or compiler configuration so that the native linker is |
| 19395 | *** used, and then restart. |
| 19396 | |
| 19397 | EOF |
| 19398 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19399 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19400 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19401 | else |
| 19402 | ld_shlibs_F77=no |
| 19403 | fi |
| 19404 | ;; |
| 19405 | |
| 19406 | sunos4*) |
| 19407 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19408 | wlarc= |
| 19409 | hardcode_direct_F77=yes |
| 19410 | hardcode_shlibpath_var_F77=no |
| 19411 | ;; |
| 19412 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19413 | linux*) |
| 19414 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19415 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19416 | archive_cmds_F77="$tmp_archive_cmds" |
| 19417 | supports_anon_versioning=no |
| 19418 | case `$LD -v 2>/dev/null` in |
| 19419 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 19420 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 19421 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 19422 | *\ 2.11.*) ;; # other 2.11 versions |
| 19423 | *) supports_anon_versioning=yes ;; |
| 19424 | esac |
| 19425 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19426 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 19427 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 19428 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19429 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 19430 | else |
| 19431 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 19432 | fi |
| 19433 | else |
| 19434 | ld_shlibs_F77=no |
| 19435 | fi |
| 19436 | ;; |
| 19437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19438 | *) |
| 19439 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 19440 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19441 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 19442 | else |
| 19443 | ld_shlibs_F77=no |
| 19444 | fi |
| 19445 | ;; |
| 19446 | esac |
| 19447 | |
| 19448 | if test "$ld_shlibs_F77" = yes; then |
| 19449 | runpath_var=LD_RUN_PATH |
| 19450 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 19451 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 19452 | # ancient GNU ld didn't support --whole-archive et. al. |
| 19453 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 19454 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19455 | else |
| 19456 | whole_archive_flag_spec_F77= |
| 19457 | fi |
| 19458 | fi |
| 19459 | else |
| 19460 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 19461 | case $host_os in |
| 19462 | aix3*) |
| 19463 | allow_undefined_flag_F77=unsupported |
| 19464 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19465 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19466 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 19467 | # are no directories specified by -L. |
| 19468 | hardcode_minus_L_F77=yes |
| 19469 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 19470 | # Neither direct hardcoding nor static linking is supported with a |
| 19471 | # broken collect2. |
| 19472 | hardcode_direct_F77=unsupported |
| 19473 | fi |
| 19474 | ;; |
| 19475 | |
| 19476 | aix4* | aix5*) |
| 19477 | if test "$host_cpu" = ia64; then |
| 19478 | # On IA64, the linker does run time linking by default, so we don't |
| 19479 | # have to do anything special. |
| 19480 | aix_use_runtimelinking=no |
| 19481 | exp_sym_flag='-Bexport' |
| 19482 | no_entry_flag="" |
| 19483 | else |
| 19484 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19485 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19486 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19487 | 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' |
| 19488 | else |
| 19489 | 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' |
| 19490 | fi |
| 19491 | aix_use_runtimelinking=no |
| 19492 | |
| 19493 | # Test if we are trying to use run time linking or normal |
| 19494 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 19495 | # need to do runtime linking. |
| 19496 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 19497 | for ld_flag in $LDFLAGS; do |
| 19498 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 19499 | aix_use_runtimelinking=yes |
| 19500 | break |
| 19501 | fi |
| 19502 | done |
| 19503 | esac |
| 19504 | |
| 19505 | exp_sym_flag='-bexport' |
| 19506 | no_entry_flag='-bnoentry' |
| 19507 | fi |
| 19508 | |
| 19509 | # When large executables or shared objects are built, AIX ld can |
| 19510 | # have problems creating the table of contents. If linking a library |
| 19511 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 19512 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 19513 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 19514 | |
| 19515 | archive_cmds_F77='' |
| 19516 | hardcode_direct_F77=yes |
| 19517 | hardcode_libdir_separator_F77=':' |
| 19518 | link_all_deplibs_F77=yes |
| 19519 | |
| 19520 | if test "$GCC" = yes; then |
| 19521 | case $host_os in aix4.012|aix4.012.*) |
| 19522 | # We only want to do this on AIX 4.2 and lower, the check |
| 19523 | # below for broken collect2 doesn't work under 4.3+ |
| 19524 | collect2name=`${CC} -print-prog-name=collect2` |
| 19525 | if test -f "$collect2name" && \ |
| 19526 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 19527 | then |
| 19528 | # We have reworked collect2 |
| 19529 | hardcode_direct_F77=yes |
| 19530 | else |
| 19531 | # We have old collect2 |
| 19532 | hardcode_direct_F77=unsupported |
| 19533 | # It fails to find uninstalled libraries when the uninstalled |
| 19534 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 19535 | # to unsupported forces relinking |
| 19536 | hardcode_minus_L_F77=yes |
| 19537 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19538 | hardcode_libdir_separator_F77= |
| 19539 | fi |
| 19540 | esac |
| 19541 | shared_flag='-shared' |
| 19542 | else |
| 19543 | # not using gcc |
| 19544 | if test "$host_cpu" = ia64; then |
| 19545 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 19546 | # chokes on -Wl,-G. The following line is correct: |
| 19547 | shared_flag='-G' |
| 19548 | else |
| 19549 | if test "$aix_use_runtimelinking" = yes; then |
| 19550 | shared_flag='${wl}-G' |
| 19551 | else |
| 19552 | shared_flag='${wl}-bM:SRE' |
| 19553 | fi |
| 19554 | fi |
| 19555 | fi |
| 19556 | |
| 19557 | # It seems that -bexpall does not export symbols beginning with |
| 19558 | # underscore (_), so it is better to generate a list of symbols to export. |
| 19559 | always_export_symbols_F77=yes |
| 19560 | if test "$aix_use_runtimelinking" = yes; then |
| 19561 | # Warning - without using the other runtime loading flags (-brtl), |
| 19562 | # -berok will link without error, but may produce a broken library. |
| 19563 | allow_undefined_flag_F77='-berok' |
| 19564 | # Determine the default libpath from the value encoded in an empty executable. |
| 19565 | cat >conftest.$ac_ext <<_ACEOF |
| 19566 | program main |
| 19567 | |
| 19568 | end |
| 19569 | _ACEOF |
| 19570 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19572 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19573 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19575 | rm -f conftest.er1 |
| 19576 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19578 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19579 | { ac_try='test -z "$ac_f77_werror_flag" |
| 19580 | || test ! -s conftest.err' |
| 19581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19582 | (eval $ac_try) 2>&5 |
| 19583 | ac_status=$? |
| 19584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19585 | (exit $ac_status); }; } && |
| 19586 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19588 | (eval $ac_try) 2>&5 |
| 19589 | ac_status=$? |
| 19590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19591 | (exit $ac_status); }; }; then |
| 19592 | |
| 19593 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19594 | }'` |
| 19595 | # Check for a 64-bit object if we didn't find anything. |
| 19596 | 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; } |
| 19597 | }'`; fi |
| 19598 | else |
| 19599 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19601 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19602 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19603 | rm -f conftest.err conftest.$ac_objext \ |
| 19604 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19605 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19606 | |
| 19607 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19608 | 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" |
| 19609 | else |
| 19610 | if test "$host_cpu" = ia64; then |
| 19611 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 19612 | allow_undefined_flag_F77="-z nodefs" |
| 19613 | 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" |
| 19614 | else |
| 19615 | # Determine the default libpath from the value encoded in an empty executable. |
| 19616 | cat >conftest.$ac_ext <<_ACEOF |
| 19617 | program main |
| 19618 | |
| 19619 | end |
| 19620 | _ACEOF |
| 19621 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19623 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19624 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19626 | rm -f conftest.er1 |
| 19627 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19629 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19630 | { ac_try='test -z "$ac_f77_werror_flag" |
| 19631 | || test ! -s conftest.err' |
| 19632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19633 | (eval $ac_try) 2>&5 |
| 19634 | ac_status=$? |
| 19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19636 | (exit $ac_status); }; } && |
| 19637 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19639 | (eval $ac_try) 2>&5 |
| 19640 | ac_status=$? |
| 19641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19642 | (exit $ac_status); }; }; then |
| 19643 | |
| 19644 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 19645 | }'` |
| 19646 | # Check for a 64-bit object if we didn't find anything. |
| 19647 | 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; } |
| 19648 | }'`; fi |
| 19649 | else |
| 19650 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19652 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19653 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19654 | rm -f conftest.err conftest.$ac_objext \ |
| 19655 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19656 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 19657 | |
| 19658 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 19659 | # Warning - without using the other run time loading flags, |
| 19660 | # -berok will link without error, but may produce a broken library. |
| 19661 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 19662 | allow_undefined_flag_F77=' ${wl}-berok' |
| 19663 | # -bexpall does not export symbols beginning with underscore (_) |
| 19664 | always_export_symbols_F77=yes |
| 19665 | # Exported symbols can be pulled into shared objects from archives |
| 19666 | whole_archive_flag_spec_F77=' ' |
| 19667 | archive_cmds_need_lc_F77=yes |
| 19668 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19669 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19670 | fi |
| 19671 | fi |
| 19672 | ;; |
| 19673 | |
| 19674 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19675 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19676 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19677 | hardcode_minus_L_F77=yes |
| 19678 | # see comment about different semantics on the GNU ld section |
| 19679 | ld_shlibs_F77=no |
| 19680 | ;; |
| 19681 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19682 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19683 | export_dynamic_flag_spec_F77=-rdynamic |
| 19684 | ;; |
| 19685 | |
| 19686 | cygwin* | mingw* | pw32*) |
| 19687 | # When not using gcc, we currently assume that we are using |
| 19688 | # Microsoft Visual C++. |
| 19689 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 19690 | # no search path for DLLs. |
| 19691 | hardcode_libdir_flag_spec_F77=' ' |
| 19692 | allow_undefined_flag_F77=unsupported |
| 19693 | # Tell ltmain to make .lib files, not .a files. |
| 19694 | libext=lib |
| 19695 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19696 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19697 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19698 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19699 | # The linker will automatically build a .lib file if we build a DLL. |
| 19700 | old_archive_From_new_cmds_F77='true' |
| 19701 | # FIXME: Should let the user specify the lib program. |
| 19702 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 19703 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 19704 | enable_shared_with_static_runtimes_F77=yes |
| 19705 | ;; |
| 19706 | |
| 19707 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19708 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19709 | rhapsody* | darwin1.[012]) |
| 19710 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 19711 | ;; |
| 19712 | *) # Darwin 1.3 on |
| 19713 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 19714 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19715 | else |
| 19716 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 19717 | 10.[012]) |
| 19718 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 19719 | ;; |
| 19720 | 10.*) |
| 19721 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 19722 | ;; |
| 19723 | esac |
| 19724 | fi |
| 19725 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19726 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19727 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19728 | hardcode_direct_F77=no |
| 19729 | hardcode_automatic_F77=yes |
| 19730 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19731 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19732 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19733 | if test "$GCC" = yes ; then |
| 19734 | output_verbose_link_cmd='echo' |
| 19735 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 19736 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 19737 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19738 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 19739 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19740 | else |
| 19741 | case "$cc_basename" in |
| 19742 | xlc*) |
| 19743 | output_verbose_link_cmd='echo' |
| 19744 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 19745 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 19746 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19747 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 19748 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19749 | ;; |
| 19750 | *) |
| 19751 | ld_shlibs_F77=no |
| 19752 | ;; |
| 19753 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19754 | fi |
| 19755 | ;; |
| 19756 | |
| 19757 | dgux*) |
| 19758 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19759 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19760 | hardcode_shlibpath_var_F77=no |
| 19761 | ;; |
| 19762 | |
| 19763 | freebsd1*) |
| 19764 | ld_shlibs_F77=no |
| 19765 | ;; |
| 19766 | |
| 19767 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 19768 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 19769 | # does not break anything, and helps significantly (at the cost of a little |
| 19770 | # extra space). |
| 19771 | freebsd2.2*) |
| 19772 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 19773 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19774 | hardcode_direct_F77=yes |
| 19775 | hardcode_shlibpath_var_F77=no |
| 19776 | ;; |
| 19777 | |
| 19778 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 19779 | freebsd2*) |
| 19780 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19781 | hardcode_direct_F77=yes |
| 19782 | hardcode_minus_L_F77=yes |
| 19783 | hardcode_shlibpath_var_F77=no |
| 19784 | ;; |
| 19785 | |
| 19786 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19787 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19788 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 19789 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19790 | hardcode_direct_F77=yes |
| 19791 | hardcode_shlibpath_var_F77=no |
| 19792 | ;; |
| 19793 | |
| 19794 | hpux9*) |
| 19795 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19796 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19797 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19798 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19799 | fi |
| 19800 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19801 | hardcode_libdir_separator_F77=: |
| 19802 | hardcode_direct_F77=yes |
| 19803 | |
| 19804 | # hardcode_minus_L: Not really in the search PATH, |
| 19805 | # but as the default location of the library. |
| 19806 | hardcode_minus_L_F77=yes |
| 19807 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19808 | ;; |
| 19809 | |
| 19810 | hpux10* | hpux11*) |
| 19811 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 19812 | case "$host_cpu" in |
| 19813 | hppa*64*|ia64*) |
| 19814 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19815 | ;; |
| 19816 | *) |
| 19817 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 19818 | ;; |
| 19819 | esac |
| 19820 | else |
| 19821 | case "$host_cpu" in |
| 19822 | hppa*64*|ia64*) |
| 19823 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19824 | ;; |
| 19825 | *) |
| 19826 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 19827 | ;; |
| 19828 | esac |
| 19829 | fi |
| 19830 | if test "$with_gnu_ld" = no; then |
| 19831 | case "$host_cpu" in |
| 19832 | hppa*64*) |
| 19833 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19834 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 19835 | hardcode_libdir_separator_F77=: |
| 19836 | hardcode_direct_F77=no |
| 19837 | hardcode_shlibpath_var_F77=no |
| 19838 | ;; |
| 19839 | ia64*) |
| 19840 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19841 | hardcode_direct_F77=no |
| 19842 | hardcode_shlibpath_var_F77=no |
| 19843 | |
| 19844 | # hardcode_minus_L: Not really in the search PATH, |
| 19845 | # but as the default location of the library. |
| 19846 | hardcode_minus_L_F77=yes |
| 19847 | ;; |
| 19848 | *) |
| 19849 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 19850 | hardcode_libdir_separator_F77=: |
| 19851 | hardcode_direct_F77=yes |
| 19852 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19853 | |
| 19854 | # hardcode_minus_L: Not really in the search PATH, |
| 19855 | # but as the default location of the library. |
| 19856 | hardcode_minus_L_F77=yes |
| 19857 | ;; |
| 19858 | esac |
| 19859 | fi |
| 19860 | ;; |
| 19861 | |
| 19862 | irix5* | irix6* | nonstopux*) |
| 19863 | if test "$GCC" = yes; then |
| 19864 | 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' |
| 19865 | else |
| 19866 | 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' |
| 19867 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 19868 | fi |
| 19869 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19870 | hardcode_libdir_separator_F77=: |
| 19871 | link_all_deplibs_F77=yes |
| 19872 | ;; |
| 19873 | |
| 19874 | netbsd*) |
| 19875 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19876 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 19877 | else |
| 19878 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 19879 | fi |
| 19880 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19881 | hardcode_direct_F77=yes |
| 19882 | hardcode_shlibpath_var_F77=no |
| 19883 | ;; |
| 19884 | |
| 19885 | newsos6) |
| 19886 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19887 | hardcode_direct_F77=yes |
| 19888 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19889 | hardcode_libdir_separator_F77=: |
| 19890 | hardcode_shlibpath_var_F77=no |
| 19891 | ;; |
| 19892 | |
| 19893 | openbsd*) |
| 19894 | hardcode_direct_F77=yes |
| 19895 | hardcode_shlibpath_var_F77=no |
| 19896 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19897 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19898 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19899 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 19900 | export_dynamic_flag_spec_F77='${wl}-E' |
| 19901 | else |
| 19902 | case $host_os in |
| 19903 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 19904 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 19905 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19906 | ;; |
| 19907 | *) |
| 19908 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 19909 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 19910 | ;; |
| 19911 | esac |
| 19912 | fi |
| 19913 | ;; |
| 19914 | |
| 19915 | os2*) |
| 19916 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19917 | hardcode_minus_L_F77=yes |
| 19918 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19919 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19920 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 19921 | ;; |
| 19922 | |
| 19923 | osf3*) |
| 19924 | if test "$GCC" = yes; then |
| 19925 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 19926 | 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' |
| 19927 | else |
| 19928 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 19929 | 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' |
| 19930 | fi |
| 19931 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19932 | hardcode_libdir_separator_F77=: |
| 19933 | ;; |
| 19934 | |
| 19935 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 19936 | if test "$GCC" = yes; then |
| 19937 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 19938 | 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' |
| 19939 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 19940 | else |
| 19941 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 19942 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19943 | 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~ |
| 19944 | $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' |
| 19945 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19946 | # Both c and cxx compiler support -rpath directly |
| 19947 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 19948 | fi |
| 19949 | hardcode_libdir_separator_F77=: |
| 19950 | ;; |
| 19951 | |
| 19952 | sco3.2v5*) |
| 19953 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19954 | hardcode_shlibpath_var_F77=no |
| 19955 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 19956 | runpath_var=LD_RUN_PATH |
| 19957 | hardcode_runpath_var=yes |
| 19958 | ;; |
| 19959 | |
| 19960 | solaris*) |
| 19961 | no_undefined_flag_F77=' -z text' |
| 19962 | if test "$GCC" = yes; then |
| 19963 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19964 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19965 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19966 | else |
| 19967 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19968 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19969 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19970 | fi |
| 19971 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 19972 | hardcode_shlibpath_var_F77=no |
| 19973 | case $host_os in |
| 19974 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 19975 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 19976 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 19977 | esac |
| 19978 | link_all_deplibs_F77=yes |
| 19979 | ;; |
| 19980 | |
| 19981 | sunos4*) |
| 19982 | if test "x$host_vendor" = xsequent; then |
| 19983 | # Use $CC to link under sequent, because it throws in some extra .o |
| 19984 | # files that make .init and .fini sections work. |
| 19985 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19986 | else |
| 19987 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 19988 | fi |
| 19989 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 19990 | hardcode_direct_F77=yes |
| 19991 | hardcode_minus_L_F77=yes |
| 19992 | hardcode_shlibpath_var_F77=no |
| 19993 | ;; |
| 19994 | |
| 19995 | sysv4) |
| 19996 | case $host_vendor in |
| 19997 | sni) |
| 19998 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 19999 | hardcode_direct_F77=yes # is this really true??? |
| 20000 | ;; |
| 20001 | siemens) |
| 20002 | ## LD is ld it makes a PLAMLIB |
| 20003 | ## CC just makes a GrossModule. |
| 20004 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 20005 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 20006 | hardcode_direct_F77=no |
| 20007 | ;; |
| 20008 | motorola) |
| 20009 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20010 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 20011 | ;; |
| 20012 | esac |
| 20013 | runpath_var='LD_RUN_PATH' |
| 20014 | hardcode_shlibpath_var_F77=no |
| 20015 | ;; |
| 20016 | |
| 20017 | sysv4.3*) |
| 20018 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20019 | hardcode_shlibpath_var_F77=no |
| 20020 | export_dynamic_flag_spec_F77='-Bexport' |
| 20021 | ;; |
| 20022 | |
| 20023 | sysv4*MP*) |
| 20024 | if test -d /usr/nec; then |
| 20025 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20026 | hardcode_shlibpath_var_F77=no |
| 20027 | runpath_var=LD_RUN_PATH |
| 20028 | hardcode_runpath_var=yes |
| 20029 | ld_shlibs_F77=yes |
| 20030 | fi |
| 20031 | ;; |
| 20032 | |
| 20033 | sysv4.2uw2*) |
| 20034 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 20035 | hardcode_direct_F77=yes |
| 20036 | hardcode_minus_L_F77=no |
| 20037 | hardcode_shlibpath_var_F77=no |
| 20038 | hardcode_runpath_var=yes |
| 20039 | runpath_var=LD_RUN_PATH |
| 20040 | ;; |
| 20041 | |
| 20042 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 20043 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 20044 | if test "$GCC" = yes; then |
| 20045 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 20046 | else |
| 20047 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 20048 | fi |
| 20049 | runpath_var='LD_RUN_PATH' |
| 20050 | hardcode_shlibpath_var_F77=no |
| 20051 | ;; |
| 20052 | |
| 20053 | sysv5*) |
| 20054 | no_undefined_flag_F77=' -z text' |
| 20055 | # $CC -shared without GNU ld will not create a library from C++ |
| 20056 | # object files and a static libstdc++, better avoid it by now |
| 20057 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20058 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 20059 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20060 | hardcode_libdir_flag_spec_F77= |
| 20061 | hardcode_shlibpath_var_F77=no |
| 20062 | runpath_var='LD_RUN_PATH' |
| 20063 | ;; |
| 20064 | |
| 20065 | uts4*) |
| 20066 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20067 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20068 | hardcode_shlibpath_var_F77=no |
| 20069 | ;; |
| 20070 | |
| 20071 | *) |
| 20072 | ld_shlibs_F77=no |
| 20073 | ;; |
| 20074 | esac |
| 20075 | fi |
| 20076 | |
| 20077 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 20078 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 20079 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 20080 | |
| 20081 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20082 | if test "$GCC" = yes; then |
| 20083 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20084 | fi |
| 20085 | |
| 20086 | # |
| 20087 | # Do we need to explicitly link libc? |
| 20088 | # |
| 20089 | case "x$archive_cmds_need_lc_F77" in |
| 20090 | x|xyes) |
| 20091 | # Assume -lc should be added |
| 20092 | archive_cmds_need_lc_F77=yes |
| 20093 | |
| 20094 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 20095 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20096 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20097 | # FIXME: we may have to deal with multi-command sequences. |
| 20098 | ;; |
| 20099 | '$CC '*) |
| 20100 | # Test whether the compiler implicitly links with -lc since on some |
| 20101 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20102 | # to ld, don't add -lc before -lgcc. |
| 20103 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20104 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 20105 | $rm conftest* |
| 20106 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20107 | |
| 20108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20109 | (eval $ac_compile) 2>&5 |
| 20110 | ac_status=$? |
| 20111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20112 | (exit $ac_status); } 2>conftest.err; then |
| 20113 | soname=conftest |
| 20114 | lib=conftest |
| 20115 | libobjs=conftest.$ac_objext |
| 20116 | deplibs= |
| 20117 | wl=$lt_prog_compiler_wl_F77 |
| 20118 | compiler_flags=-v |
| 20119 | linker_flags=-v |
| 20120 | verstring= |
| 20121 | output_objdir=. |
| 20122 | libname=conftest |
| 20123 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 20124 | allow_undefined_flag_F77= |
| 20125 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20126 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20127 | ac_status=$? |
| 20128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20129 | (exit $ac_status); } |
| 20130 | then |
| 20131 | archive_cmds_need_lc_F77=no |
| 20132 | else |
| 20133 | archive_cmds_need_lc_F77=yes |
| 20134 | fi |
| 20135 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 20136 | else |
| 20137 | cat conftest.err 1>&5 |
| 20138 | fi |
| 20139 | $rm conftest* |
| 20140 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 20141 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 20142 | ;; |
| 20143 | esac |
| 20144 | fi |
| 20145 | ;; |
| 20146 | esac |
| 20147 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20148 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20149 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 20150 | library_names_spec= |
| 20151 | libname_spec='lib$name' |
| 20152 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20153 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20154 | postinstall_cmds= |
| 20155 | postuninstall_cmds= |
| 20156 | finish_cmds= |
| 20157 | finish_eval= |
| 20158 | shlibpath_var= |
| 20159 | shlibpath_overrides_runpath=unknown |
| 20160 | version_type=none |
| 20161 | dynamic_linker="$host_os ld.so" |
| 20162 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20163 | if test "$GCC" = yes; then |
| 20164 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20165 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20166 | # if the path contains ";" then we assume it to be the separator |
| 20167 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20168 | # assumed that no part of a normal pathname contains ";" but that should |
| 20169 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20170 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20171 | else |
| 20172 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20173 | fi |
| 20174 | else |
| 20175 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20176 | fi |
| 20177 | need_lib_prefix=unknown |
| 20178 | hardcode_into_libs=no |
| 20179 | |
| 20180 | # when you set need_version to no, make sure it does not cause -set_version |
| 20181 | # flags to be left without arguments |
| 20182 | need_version=unknown |
| 20183 | |
| 20184 | case $host_os in |
| 20185 | aix3*) |
| 20186 | version_type=linux |
| 20187 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20188 | shlibpath_var=LIBPATH |
| 20189 | |
| 20190 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20191 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20192 | ;; |
| 20193 | |
| 20194 | aix4* | aix5*) |
| 20195 | version_type=linux |
| 20196 | need_lib_prefix=no |
| 20197 | need_version=no |
| 20198 | hardcode_into_libs=yes |
| 20199 | if test "$host_cpu" = ia64; then |
| 20200 | # AIX 5 supports IA64 |
| 20201 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20202 | shlibpath_var=LD_LIBRARY_PATH |
| 20203 | else |
| 20204 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20205 | # for dependence libraries. The import file would start with |
| 20206 | # the line `#! .'. This would cause the generated library to |
| 20207 | # depend on `.', always an invalid library. This was fixed in |
| 20208 | # development snapshots of GCC prior to 3.0. |
| 20209 | case $host_os in |
| 20210 | aix4 | aix4.[01] | aix4.[01].*) |
| 20211 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20212 | echo ' yes ' |
| 20213 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20214 | : |
| 20215 | else |
| 20216 | can_build_shared=no |
| 20217 | fi |
| 20218 | ;; |
| 20219 | esac |
| 20220 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20221 | # soname into executable. Probably we can add versioning support to |
| 20222 | # collect2, so additional links can be useful in future. |
| 20223 | if test "$aix_use_runtimelinking" = yes; then |
| 20224 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20225 | # instead of lib<name>.a to let people know that these are not |
| 20226 | # typical AIX shared libraries. |
| 20227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20228 | else |
| 20229 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20230 | # and later when we are not doing run time linking. |
| 20231 | library_names_spec='${libname}${release}.a $libname.a' |
| 20232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20233 | fi |
| 20234 | shlibpath_var=LIBPATH |
| 20235 | fi |
| 20236 | ;; |
| 20237 | |
| 20238 | amigaos*) |
| 20239 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20240 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20241 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20242 | ;; |
| 20243 | |
| 20244 | beos*) |
| 20245 | library_names_spec='${libname}${shared_ext}' |
| 20246 | dynamic_linker="$host_os ld.so" |
| 20247 | shlibpath_var=LIBRARY_PATH |
| 20248 | ;; |
| 20249 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20250 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20251 | version_type=linux |
| 20252 | need_version=no |
| 20253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20254 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20255 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20256 | shlibpath_var=LD_LIBRARY_PATH |
| 20257 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20258 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20259 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20260 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20261 | # libtool to hard-code these into programs |
| 20262 | ;; |
| 20263 | |
| 20264 | cygwin* | mingw* | pw32*) |
| 20265 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20266 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20267 | need_version=no |
| 20268 | need_lib_prefix=no |
| 20269 | |
| 20270 | case $GCC,$host_os in |
| 20271 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20272 | library_names_spec='$libname.dll.a' |
| 20273 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20274 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20275 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20276 | dldir=$destdir/`dirname \$dlpath`~ |
| 20277 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20278 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20279 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20280 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20281 | $rm \$dlpath' |
| 20282 | shlibpath_overrides_runpath=yes |
| 20283 | |
| 20284 | case $host_os in |
| 20285 | cygwin*) |
| 20286 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20287 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20288 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20289 | ;; |
| 20290 | mingw*) |
| 20291 | # MinGW DLLs use traditional 'lib' prefix |
| 20292 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20293 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20294 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20295 | # It is most probably a Windows format PATH printed by |
| 20296 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20297 | # path with ; separators, and with drive letters. We can handle the |
| 20298 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20299 | # especially as we might pass files found there to a mingw objdump, |
| 20300 | # which wouldn't understand a cygwinified path. Ahh. |
| 20301 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20302 | else |
| 20303 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20304 | fi |
| 20305 | ;; |
| 20306 | pw32*) |
| 20307 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 20308 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 20309 | ;; |
| 20310 | esac |
| 20311 | ;; |
| 20312 | |
| 20313 | *) |
| 20314 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20315 | ;; |
| 20316 | esac |
| 20317 | dynamic_linker='Win32 ld.exe' |
| 20318 | # FIXME: first we should search . and the directory the executable is in |
| 20319 | shlibpath_var=PATH |
| 20320 | ;; |
| 20321 | |
| 20322 | darwin* | rhapsody*) |
| 20323 | dynamic_linker="$host_os dyld" |
| 20324 | version_type=darwin |
| 20325 | need_lib_prefix=no |
| 20326 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20327 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20328 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20329 | shlibpath_overrides_runpath=yes |
| 20330 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20331 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20332 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20333 | if test "$GCC" = yes; then |
| 20334 | 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"` |
| 20335 | else |
| 20336 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20337 | fi |
| 20338 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20339 | ;; |
| 20340 | |
| 20341 | dgux*) |
| 20342 | version_type=linux |
| 20343 | need_lib_prefix=no |
| 20344 | need_version=no |
| 20345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20346 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20347 | shlibpath_var=LD_LIBRARY_PATH |
| 20348 | ;; |
| 20349 | |
| 20350 | freebsd1*) |
| 20351 | dynamic_linker=no |
| 20352 | ;; |
| 20353 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20354 | kfreebsd*-gnu) |
| 20355 | version_type=linux |
| 20356 | need_lib_prefix=no |
| 20357 | need_version=no |
| 20358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20359 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20360 | shlibpath_var=LD_LIBRARY_PATH |
| 20361 | shlibpath_overrides_runpath=no |
| 20362 | hardcode_into_libs=yes |
| 20363 | dynamic_linker='GNU ld.so' |
| 20364 | ;; |
| 20365 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20366 | freebsd*) |
| 20367 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 20368 | version_type=freebsd-$objformat |
| 20369 | case $version_type in |
| 20370 | freebsd-elf*) |
| 20371 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20372 | need_version=no |
| 20373 | need_lib_prefix=no |
| 20374 | ;; |
| 20375 | freebsd-*) |
| 20376 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20377 | need_version=yes |
| 20378 | ;; |
| 20379 | esac |
| 20380 | shlibpath_var=LD_LIBRARY_PATH |
| 20381 | case $host_os in |
| 20382 | freebsd2*) |
| 20383 | shlibpath_overrides_runpath=yes |
| 20384 | ;; |
| 20385 | freebsd3.01* | freebsdelf3.01*) |
| 20386 | shlibpath_overrides_runpath=yes |
| 20387 | hardcode_into_libs=yes |
| 20388 | ;; |
| 20389 | *) # from 3.2 on |
| 20390 | shlibpath_overrides_runpath=no |
| 20391 | hardcode_into_libs=yes |
| 20392 | ;; |
| 20393 | esac |
| 20394 | ;; |
| 20395 | |
| 20396 | gnu*) |
| 20397 | version_type=linux |
| 20398 | need_lib_prefix=no |
| 20399 | need_version=no |
| 20400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20401 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20402 | shlibpath_var=LD_LIBRARY_PATH |
| 20403 | hardcode_into_libs=yes |
| 20404 | ;; |
| 20405 | |
| 20406 | hpux9* | hpux10* | hpux11*) |
| 20407 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20408 | # link against other versions. |
| 20409 | version_type=sunos |
| 20410 | need_lib_prefix=no |
| 20411 | need_version=no |
| 20412 | case "$host_cpu" in |
| 20413 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20414 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20415 | hardcode_into_libs=yes |
| 20416 | dynamic_linker="$host_os dld.so" |
| 20417 | shlibpath_var=LD_LIBRARY_PATH |
| 20418 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20421 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20422 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20423 | else |
| 20424 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20425 | fi |
| 20426 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20427 | ;; |
| 20428 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20429 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20430 | hardcode_into_libs=yes |
| 20431 | dynamic_linker="$host_os dld.sl" |
| 20432 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20433 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20435 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20436 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20437 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20438 | ;; |
| 20439 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20440 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20441 | dynamic_linker="$host_os dld.sl" |
| 20442 | shlibpath_var=SHLIB_PATH |
| 20443 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20445 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20446 | ;; |
| 20447 | esac |
| 20448 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20449 | postinstall_cmds='chmod 555 $lib' |
| 20450 | ;; |
| 20451 | |
| 20452 | irix5* | irix6* | nonstopux*) |
| 20453 | case $host_os in |
| 20454 | nonstopux*) version_type=nonstopux ;; |
| 20455 | *) |
| 20456 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20457 | version_type=linux |
| 20458 | else |
| 20459 | version_type=irix |
| 20460 | fi ;; |
| 20461 | esac |
| 20462 | need_lib_prefix=no |
| 20463 | need_version=no |
| 20464 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20466 | case $host_os in |
| 20467 | irix5* | nonstopux*) |
| 20468 | libsuff= shlibsuff= |
| 20469 | ;; |
| 20470 | *) |
| 20471 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20472 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20473 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20474 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20475 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20476 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20477 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20478 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20479 | esac |
| 20480 | ;; |
| 20481 | esac |
| 20482 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20483 | shlibpath_overrides_runpath=no |
| 20484 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20485 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20486 | hardcode_into_libs=yes |
| 20487 | ;; |
| 20488 | |
| 20489 | # No shared lib support for Linux oldld, aout, or coff. |
| 20490 | linux*oldld* | linux*aout* | linux*coff*) |
| 20491 | dynamic_linker=no |
| 20492 | ;; |
| 20493 | |
| 20494 | # This must be Linux ELF. |
| 20495 | linux*) |
| 20496 | version_type=linux |
| 20497 | need_lib_prefix=no |
| 20498 | need_version=no |
| 20499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20500 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20501 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20502 | shlibpath_var=LD_LIBRARY_PATH |
| 20503 | shlibpath_overrides_runpath=no |
| 20504 | # This implies no fast_install, which is unacceptable. |
| 20505 | # Some rework will be needed to allow for fast_install |
| 20506 | # before this can be enabled. |
| 20507 | hardcode_into_libs=yes |
| 20508 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20509 | # Append ld.so.conf contents to the search path |
| 20510 | if test -f /etc/ld.so.conf; then |
| 20511 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 20512 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20513 | fi |
| 20514 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20515 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20516 | # powerpc, because MkLinux only supported shared libraries with the |
| 20517 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20518 | # most powerpc-linux boxes support dynamic linking these days and |
| 20519 | # people can always --disable-shared, the test was removed, and we |
| 20520 | # assume the GNU/Linux dynamic linker is in use. |
| 20521 | dynamic_linker='GNU/Linux ld.so' |
| 20522 | ;; |
| 20523 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20524 | knetbsd*-gnu) |
| 20525 | version_type=linux |
| 20526 | need_lib_prefix=no |
| 20527 | need_version=no |
| 20528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20529 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20530 | shlibpath_var=LD_LIBRARY_PATH |
| 20531 | shlibpath_overrides_runpath=no |
| 20532 | hardcode_into_libs=yes |
| 20533 | dynamic_linker='GNU ld.so' |
| 20534 | ;; |
| 20535 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20536 | netbsd*) |
| 20537 | version_type=sunos |
| 20538 | need_lib_prefix=no |
| 20539 | need_version=no |
| 20540 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20542 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20543 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20544 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20545 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20546 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20547 | dynamic_linker='NetBSD ld.elf_so' |
| 20548 | fi |
| 20549 | shlibpath_var=LD_LIBRARY_PATH |
| 20550 | shlibpath_overrides_runpath=yes |
| 20551 | hardcode_into_libs=yes |
| 20552 | ;; |
| 20553 | |
| 20554 | newsos6) |
| 20555 | version_type=linux |
| 20556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20557 | shlibpath_var=LD_LIBRARY_PATH |
| 20558 | shlibpath_overrides_runpath=yes |
| 20559 | ;; |
| 20560 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20561 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20562 | version_type=linux |
| 20563 | need_lib_prefix=no |
| 20564 | need_version=no |
| 20565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20567 | shlibpath_var=LD_LIBRARY_PATH |
| 20568 | shlibpath_overrides_runpath=yes |
| 20569 | ;; |
| 20570 | |
| 20571 | openbsd*) |
| 20572 | version_type=sunos |
| 20573 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20574 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20576 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20577 | shlibpath_var=LD_LIBRARY_PATH |
| 20578 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20579 | case $host_os in |
| 20580 | openbsd2.[89] | openbsd2.[89].*) |
| 20581 | shlibpath_overrides_runpath=no |
| 20582 | ;; |
| 20583 | *) |
| 20584 | shlibpath_overrides_runpath=yes |
| 20585 | ;; |
| 20586 | esac |
| 20587 | else |
| 20588 | shlibpath_overrides_runpath=yes |
| 20589 | fi |
| 20590 | ;; |
| 20591 | |
| 20592 | os2*) |
| 20593 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20594 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20595 | need_lib_prefix=no |
| 20596 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20597 | dynamic_linker='OS/2 ld.exe' |
| 20598 | shlibpath_var=LIBPATH |
| 20599 | ;; |
| 20600 | |
| 20601 | osf3* | osf4* | osf5*) |
| 20602 | version_type=osf |
| 20603 | need_lib_prefix=no |
| 20604 | need_version=no |
| 20605 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20607 | shlibpath_var=LD_LIBRARY_PATH |
| 20608 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20609 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20610 | ;; |
| 20611 | |
| 20612 | sco3.2v5*) |
| 20613 | version_type=osf |
| 20614 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20616 | shlibpath_var=LD_LIBRARY_PATH |
| 20617 | ;; |
| 20618 | |
| 20619 | solaris*) |
| 20620 | version_type=linux |
| 20621 | need_lib_prefix=no |
| 20622 | need_version=no |
| 20623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20624 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20625 | shlibpath_var=LD_LIBRARY_PATH |
| 20626 | shlibpath_overrides_runpath=yes |
| 20627 | hardcode_into_libs=yes |
| 20628 | # ldd complains unless libraries are executable |
| 20629 | postinstall_cmds='chmod +x $lib' |
| 20630 | ;; |
| 20631 | |
| 20632 | sunos4*) |
| 20633 | version_type=sunos |
| 20634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20635 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20636 | shlibpath_var=LD_LIBRARY_PATH |
| 20637 | shlibpath_overrides_runpath=yes |
| 20638 | if test "$with_gnu_ld" = yes; then |
| 20639 | need_lib_prefix=no |
| 20640 | fi |
| 20641 | need_version=yes |
| 20642 | ;; |
| 20643 | |
| 20644 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 20645 | version_type=linux |
| 20646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20647 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20648 | shlibpath_var=LD_LIBRARY_PATH |
| 20649 | case $host_vendor in |
| 20650 | sni) |
| 20651 | shlibpath_overrides_runpath=no |
| 20652 | need_lib_prefix=no |
| 20653 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20654 | runpath_var=LD_RUN_PATH |
| 20655 | ;; |
| 20656 | siemens) |
| 20657 | need_lib_prefix=no |
| 20658 | ;; |
| 20659 | motorola) |
| 20660 | need_lib_prefix=no |
| 20661 | need_version=no |
| 20662 | shlibpath_overrides_runpath=no |
| 20663 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20664 | ;; |
| 20665 | esac |
| 20666 | ;; |
| 20667 | |
| 20668 | sysv4*MP*) |
| 20669 | if test -d /usr/nec ;then |
| 20670 | version_type=linux |
| 20671 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20672 | soname_spec='$libname${shared_ext}.$major' |
| 20673 | shlibpath_var=LD_LIBRARY_PATH |
| 20674 | fi |
| 20675 | ;; |
| 20676 | |
| 20677 | uts4*) |
| 20678 | version_type=linux |
| 20679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20680 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20681 | shlibpath_var=LD_LIBRARY_PATH |
| 20682 | ;; |
| 20683 | |
| 20684 | *) |
| 20685 | dynamic_linker=no |
| 20686 | ;; |
| 20687 | esac |
| 20688 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20689 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 20690 | test "$dynamic_linker" = no && can_build_shared=no |
| 20691 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20692 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20693 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 20694 | hardcode_action_F77= |
| 20695 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 20696 | test -n "$runpath_var_F77" || \ |
| 20697 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 20698 | |
| 20699 | # We can hardcode non-existant directories. |
| 20700 | if test "$hardcode_direct_F77" != no && |
| 20701 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20702 | # have to relink, otherwise we might link with an installed library |
| 20703 | # when we should be linking with a yet-to-be-installed one |
| 20704 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 20705 | test "$hardcode_minus_L_F77" != no; then |
| 20706 | # Linking always hardcodes the temporary library directory. |
| 20707 | hardcode_action_F77=relink |
| 20708 | else |
| 20709 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20710 | hardcode_action_F77=immediate |
| 20711 | fi |
| 20712 | else |
| 20713 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20714 | # directories. |
| 20715 | hardcode_action_F77=unsupported |
| 20716 | fi |
| 20717 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 20718 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 20719 | |
| 20720 | if test "$hardcode_action_F77" = relink; then |
| 20721 | # Fast installation is not supported |
| 20722 | enable_fast_install=no |
| 20723 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20724 | test "$enable_shared" = no; then |
| 20725 | # Fast installation is not necessary |
| 20726 | enable_fast_install=needless |
| 20727 | fi |
| 20728 | |
| 20729 | striplib= |
| 20730 | old_striplib= |
| 20731 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 20732 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 20733 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 20734 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 20735 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 20736 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20737 | echo "${ECHO_T}yes" >&6 |
| 20738 | else |
| 20739 | # FIXME - insert some real tests, host_os isn't really good enough |
| 20740 | case $host_os in |
| 20741 | darwin*) |
| 20742 | if test -n "$STRIP" ; then |
| 20743 | striplib="$STRIP -x" |
| 20744 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20745 | echo "${ECHO_T}yes" >&6 |
| 20746 | else |
| 20747 | echo "$as_me:$LINENO: result: no" >&5 |
| 20748 | echo "${ECHO_T}no" >&6 |
| 20749 | fi |
| 20750 | ;; |
| 20751 | *) |
| 20752 | echo "$as_me:$LINENO: result: no" >&5 |
| 20753 | echo "${ECHO_T}no" >&6 |
| 20754 | ;; |
| 20755 | esac |
| 20756 | fi |
| 20757 | |
| 20758 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20759 | |
| 20760 | # The else clause should only fire when bootstrapping the |
| 20761 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20762 | # with your package, and you will get complaints that there are |
| 20763 | # no rules to generate ltmain.sh. |
| 20764 | if test -f "$ltmain"; then |
| 20765 | # See if we are running on zsh, and set the options which allow our commands through |
| 20766 | # without removal of \ escapes. |
| 20767 | if test -n "${ZSH_VERSION+set}" ; then |
| 20768 | setopt NO_GLOB_SUBST |
| 20769 | fi |
| 20770 | # Now quote all the things that may contain metacharacters while being |
| 20771 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20772 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20773 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 20774 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20775 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20776 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20777 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20778 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20779 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20780 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20781 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20782 | compiler_F77 \ |
| 20783 | CC_F77 \ |
| 20784 | LD_F77 \ |
| 20785 | lt_prog_compiler_wl_F77 \ |
| 20786 | lt_prog_compiler_pic_F77 \ |
| 20787 | lt_prog_compiler_static_F77 \ |
| 20788 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 20789 | export_dynamic_flag_spec_F77 \ |
| 20790 | thread_safe_flag_spec_F77 \ |
| 20791 | whole_archive_flag_spec_F77 \ |
| 20792 | enable_shared_with_static_runtimes_F77 \ |
| 20793 | old_archive_cmds_F77 \ |
| 20794 | old_archive_from_new_cmds_F77 \ |
| 20795 | predep_objects_F77 \ |
| 20796 | postdep_objects_F77 \ |
| 20797 | predeps_F77 \ |
| 20798 | postdeps_F77 \ |
| 20799 | compiler_lib_search_path_F77 \ |
| 20800 | archive_cmds_F77 \ |
| 20801 | archive_expsym_cmds_F77 \ |
| 20802 | postinstall_cmds_F77 \ |
| 20803 | postuninstall_cmds_F77 \ |
| 20804 | old_archive_from_expsyms_cmds_F77 \ |
| 20805 | allow_undefined_flag_F77 \ |
| 20806 | no_undefined_flag_F77 \ |
| 20807 | export_symbols_cmds_F77 \ |
| 20808 | hardcode_libdir_flag_spec_F77 \ |
| 20809 | hardcode_libdir_flag_spec_ld_F77 \ |
| 20810 | hardcode_libdir_separator_F77 \ |
| 20811 | hardcode_automatic_F77 \ |
| 20812 | module_cmds_F77 \ |
| 20813 | module_expsym_cmds_F77 \ |
| 20814 | lt_cv_prog_compiler_c_o_F77 \ |
| 20815 | exclude_expsyms_F77 \ |
| 20816 | include_expsyms_F77; do |
| 20817 | |
| 20818 | case $var in |
| 20819 | old_archive_cmds_F77 | \ |
| 20820 | old_archive_from_new_cmds_F77 | \ |
| 20821 | archive_cmds_F77 | \ |
| 20822 | archive_expsym_cmds_F77 | \ |
| 20823 | module_cmds_F77 | \ |
| 20824 | module_expsym_cmds_F77 | \ |
| 20825 | old_archive_from_expsyms_cmds_F77 | \ |
| 20826 | export_symbols_cmds_F77 | \ |
| 20827 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20828 | postinstall_cmds | postuninstall_cmds | \ |
| 20829 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20830 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20831 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20832 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20833 | ;; |
| 20834 | *) |
| 20835 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20836 | ;; |
| 20837 | esac |
| 20838 | done |
| 20839 | |
| 20840 | case $lt_echo in |
| 20841 | *'\$0 --fallback-echo"') |
| 20842 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20843 | ;; |
| 20844 | esac |
| 20845 | |
| 20846 | cfgfile="$ofile" |
| 20847 | |
| 20848 | cat <<__EOF__ >> "$cfgfile" |
| 20849 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20850 | |
| 20851 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20852 | |
| 20853 | # Shell to use when invoking shell scripts. |
| 20854 | SHELL=$lt_SHELL |
| 20855 | |
| 20856 | # Whether or not to build shared libraries. |
| 20857 | build_libtool_libs=$enable_shared |
| 20858 | |
| 20859 | # Whether or not to build static libraries. |
| 20860 | build_old_libs=$enable_static |
| 20861 | |
| 20862 | # Whether or not to add -lc for building shared libraries. |
| 20863 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 20864 | |
| 20865 | # Whether or not to disallow shared libs when runtime libs are static |
| 20866 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 20867 | |
| 20868 | # Whether or not to optimize for fast installation. |
| 20869 | fast_install=$enable_fast_install |
| 20870 | |
| 20871 | # The host system. |
| 20872 | host_alias=$host_alias |
| 20873 | host=$host |
| 20874 | |
| 20875 | # An echo program that does not interpret backslashes. |
| 20876 | echo=$lt_echo |
| 20877 | |
| 20878 | # The archiver. |
| 20879 | AR=$lt_AR |
| 20880 | AR_FLAGS=$lt_AR_FLAGS |
| 20881 | |
| 20882 | # A C compiler. |
| 20883 | LTCC=$lt_LTCC |
| 20884 | |
| 20885 | # A language-specific compiler. |
| 20886 | CC=$lt_compiler_F77 |
| 20887 | |
| 20888 | # Is the compiler the GNU C compiler? |
| 20889 | with_gcc=$GCC_F77 |
| 20890 | |
| 20891 | # An ERE matcher. |
| 20892 | EGREP=$lt_EGREP |
| 20893 | |
| 20894 | # The linker used to build libraries. |
| 20895 | LD=$lt_LD_F77 |
| 20896 | |
| 20897 | # Whether we need hard or soft links. |
| 20898 | LN_S=$lt_LN_S |
| 20899 | |
| 20900 | # A BSD-compatible nm program. |
| 20901 | NM=$lt_NM |
| 20902 | |
| 20903 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20904 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20905 | |
| 20906 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20907 | MAGIC_CMD=$MAGIC_CMD |
| 20908 | |
| 20909 | # Used on cygwin: DLL creation program. |
| 20910 | DLLTOOL="$DLLTOOL" |
| 20911 | |
| 20912 | # Used on cygwin: object dumper. |
| 20913 | OBJDUMP="$OBJDUMP" |
| 20914 | |
| 20915 | # Used on cygwin: assembler. |
| 20916 | AS="$AS" |
| 20917 | |
| 20918 | # The name of the directory that contains temporary libtool files. |
| 20919 | objdir=$objdir |
| 20920 | |
| 20921 | # How to create reloadable object files. |
| 20922 | reload_flag=$lt_reload_flag |
| 20923 | reload_cmds=$lt_reload_cmds |
| 20924 | |
| 20925 | # How to pass a linker flag through the compiler. |
| 20926 | wl=$lt_lt_prog_compiler_wl_F77 |
| 20927 | |
| 20928 | # Object file suffix (normally "o"). |
| 20929 | objext="$ac_objext" |
| 20930 | |
| 20931 | # Old archive suffix (normally "a"). |
| 20932 | libext="$libext" |
| 20933 | |
| 20934 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20935 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20936 | |
| 20937 | # Executable file suffix (normally ""). |
| 20938 | exeext="$exeext" |
| 20939 | |
| 20940 | # Additional compiler flags for building library objects. |
| 20941 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 20942 | pic_mode=$pic_mode |
| 20943 | |
| 20944 | # What is the maximum length of a command? |
| 20945 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20946 | |
| 20947 | # Does compiler simultaneously support -c and -o options? |
| 20948 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 20949 | |
| 20950 | # Must we lock files when doing compilation ? |
| 20951 | need_locks=$lt_need_locks |
| 20952 | |
| 20953 | # Do we need the lib prefix for modules? |
| 20954 | need_lib_prefix=$need_lib_prefix |
| 20955 | |
| 20956 | # Do we need a version for libraries? |
| 20957 | need_version=$need_version |
| 20958 | |
| 20959 | # Whether dlopen is supported. |
| 20960 | dlopen_support=$enable_dlopen |
| 20961 | |
| 20962 | # Whether dlopen of programs is supported. |
| 20963 | dlopen_self=$enable_dlopen_self |
| 20964 | |
| 20965 | # Whether dlopen of statically linked programs is supported. |
| 20966 | dlopen_self_static=$enable_dlopen_self_static |
| 20967 | |
| 20968 | # Compiler flag to prevent dynamic linking. |
| 20969 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 20970 | |
| 20971 | # Compiler flag to turn off builtin functions. |
| 20972 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 20973 | |
| 20974 | # Compiler flag to allow reflexive dlopens. |
| 20975 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 20976 | |
| 20977 | # Compiler flag to generate shared objects directly from archives. |
| 20978 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 20979 | |
| 20980 | # Compiler flag to generate thread-safe objects. |
| 20981 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 20982 | |
| 20983 | # Library versioning type. |
| 20984 | version_type=$version_type |
| 20985 | |
| 20986 | # Format of library name prefix. |
| 20987 | libname_spec=$lt_libname_spec |
| 20988 | |
| 20989 | # List of archive names. First name is the real one, the rest are links. |
| 20990 | # The last name is the one that the linker finds with -lNAME. |
| 20991 | library_names_spec=$lt_library_names_spec |
| 20992 | |
| 20993 | # The coded name of the library, if different from the real name. |
| 20994 | soname_spec=$lt_soname_spec |
| 20995 | |
| 20996 | # Commands used to build and install an old-style archive. |
| 20997 | RANLIB=$lt_RANLIB |
| 20998 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 20999 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21000 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21001 | |
| 21002 | # Create an old-style archive from a shared archive. |
| 21003 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 21004 | |
| 21005 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21006 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 21007 | |
| 21008 | # Commands used to build and install a shared archive. |
| 21009 | archive_cmds=$lt_archive_cmds_F77 |
| 21010 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 21011 | postinstall_cmds=$lt_postinstall_cmds |
| 21012 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21013 | |
| 21014 | # Commands used to build a loadable module (assumed same as above if empty) |
| 21015 | module_cmds=$lt_module_cmds_F77 |
| 21016 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 21017 | |
| 21018 | # Commands to strip libraries. |
| 21019 | old_striplib=$lt_old_striplib |
| 21020 | striplib=$lt_striplib |
| 21021 | |
| 21022 | # Dependencies to place before the objects being linked to create a |
| 21023 | # shared library. |
| 21024 | predep_objects=$lt_predep_objects_F77 |
| 21025 | |
| 21026 | # Dependencies to place after the objects being linked to create a |
| 21027 | # shared library. |
| 21028 | postdep_objects=$lt_postdep_objects_F77 |
| 21029 | |
| 21030 | # Dependencies to place before the objects being linked to create a |
| 21031 | # shared library. |
| 21032 | predeps=$lt_predeps_F77 |
| 21033 | |
| 21034 | # Dependencies to place after the objects being linked to create a |
| 21035 | # shared library. |
| 21036 | postdeps=$lt_postdeps_F77 |
| 21037 | |
| 21038 | # The library search path used internally by the compiler when linking |
| 21039 | # a shared library. |
| 21040 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 21041 | |
| 21042 | # Method to check whether dependent libraries are shared objects. |
| 21043 | deplibs_check_method=$lt_deplibs_check_method |
| 21044 | |
| 21045 | # Command to use when deplibs_check_method == file_magic. |
| 21046 | file_magic_cmd=$lt_file_magic_cmd |
| 21047 | |
| 21048 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21049 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 21050 | |
| 21051 | # Flag that forces no undefined symbols. |
| 21052 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 21053 | |
| 21054 | # Commands used to finish a libtool library installation in a directory. |
| 21055 | finish_cmds=$lt_finish_cmds |
| 21056 | |
| 21057 | # Same as above, but a single script fragment to be evaled but not shown. |
| 21058 | finish_eval=$lt_finish_eval |
| 21059 | |
| 21060 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21061 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21062 | |
| 21063 | # Transform the output of nm in a proper C declaration |
| 21064 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21065 | |
| 21066 | # Transform the output of nm in a C name address pair |
| 21067 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21068 | |
| 21069 | # This is the shared library runtime path variable. |
| 21070 | runpath_var=$runpath_var |
| 21071 | |
| 21072 | # This is the shared library path variable. |
| 21073 | shlibpath_var=$shlibpath_var |
| 21074 | |
| 21075 | # Is shlibpath searched before the hard-coded library search path? |
| 21076 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21077 | |
| 21078 | # How to hardcode a shared library path into an executable. |
| 21079 | hardcode_action=$hardcode_action_F77 |
| 21080 | |
| 21081 | # Whether we should hardcode library paths into libraries. |
| 21082 | hardcode_into_libs=$hardcode_into_libs |
| 21083 | |
| 21084 | # Flag to hardcode \$libdir into a binary during linking. |
| 21085 | # This must work even if \$libdir does not exist. |
| 21086 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 21087 | |
| 21088 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21089 | # a binary during linking. This must work even if \$libdir does |
| 21090 | # not exist. |
| 21091 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 21092 | |
| 21093 | # Whether we need a single -rpath flag with a separated argument. |
| 21094 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 21095 | |
| 21096 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21097 | # resulting binary. |
| 21098 | hardcode_direct=$hardcode_direct_F77 |
| 21099 | |
| 21100 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21101 | # resulting binary. |
| 21102 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 21103 | |
| 21104 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21105 | # the resulting binary. |
| 21106 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 21107 | |
| 21108 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21109 | # and all subsequent libraries and executables linked against it. |
| 21110 | hardcode_automatic=$hardcode_automatic_F77 |
| 21111 | |
| 21112 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21113 | # restored at relink time. |
| 21114 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21115 | |
| 21116 | # Whether libtool must link a program against all its dependency libraries. |
| 21117 | link_all_deplibs=$link_all_deplibs_F77 |
| 21118 | |
| 21119 | # Compile-time system search path for libraries |
| 21120 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21121 | |
| 21122 | # Run-time system search path for libraries |
| 21123 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21124 | |
| 21125 | # Fix the shell variable \$srcfile for the compiler. |
| 21126 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 21127 | |
| 21128 | # Set to yes if exported symbols are required. |
| 21129 | always_export_symbols=$always_export_symbols_F77 |
| 21130 | |
| 21131 | # The commands to list exported symbols. |
| 21132 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 21133 | |
| 21134 | # The commands to extract the exported symbol list from a shared archive. |
| 21135 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21136 | |
| 21137 | # Symbols that should not be listed in the preloaded symbols. |
| 21138 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 21139 | |
| 21140 | # Symbols that must always be exported. |
| 21141 | include_expsyms=$lt_include_expsyms_F77 |
| 21142 | |
| 21143 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21144 | |
| 21145 | __EOF__ |
| 21146 | |
| 21147 | |
| 21148 | else |
| 21149 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21150 | # `config.status --recheck' to rerun these tests and create the |
| 21151 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21152 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21153 | if test -f "$ltmain_in"; then |
| 21154 | test -f Makefile && make "$ltmain" |
| 21155 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21156 | fi |
| 21157 | |
| 21158 | |
| 21159 | ac_ext=c |
| 21160 | ac_cpp='$CPP $CPPFLAGS' |
| 21161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21164 | |
| 21165 | CC="$lt_save_CC" |
| 21166 | |
| 21167 | else |
| 21168 | tagname="" |
| 21169 | fi |
| 21170 | ;; |
| 21171 | |
| 21172 | GCJ) |
| 21173 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21174 | ac_ext=c |
| 21175 | ac_cpp='$CPP $CPPFLAGS' |
| 21176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21179 | |
| 21180 | |
| 21181 | # Source file extension for Java test sources. |
| 21182 | ac_ext=java |
| 21183 | |
| 21184 | # Object file extension for compiled Java test sources. |
| 21185 | objext=o |
| 21186 | objext_GCJ=$objext |
| 21187 | |
| 21188 | # Code to be used in simple compile tests |
| 21189 | lt_simple_compile_test_code="class foo {}\n" |
| 21190 | |
| 21191 | # Code to be used in simple link tests |
| 21192 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 21193 | |
| 21194 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21195 | |
| 21196 | # If no C compiler was specified, use CC. |
| 21197 | LTCC=${LTCC-"$CC"} |
| 21198 | |
| 21199 | # Allow CC to be a program name with arguments. |
| 21200 | compiler=$CC |
| 21201 | |
| 21202 | |
| 21203 | # Allow CC to be a program name with arguments. |
| 21204 | lt_save_CC="$CC" |
| 21205 | CC=${GCJ-"gcj"} |
| 21206 | compiler=$CC |
| 21207 | compiler_GCJ=$CC |
| 21208 | |
| 21209 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 21210 | archive_cmds_need_lc_GCJ=no |
| 21211 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21212 | |
| 21213 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 21214 | |
| 21215 | if test "$GCC" = yes; then |
| 21216 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 21217 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21218 | |
| 21219 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21220 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 21221 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 21222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21223 | else |
| 21224 | lt_cv_prog_compiler_rtti_exceptions=no |
| 21225 | ac_outfile=conftest.$ac_objext |
| 21226 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21227 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 21228 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21229 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21230 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21231 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21232 | # The option is referenced via a variable to avoid confusing sed. |
| 21233 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21234 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21235 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21236 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 21237 | (eval echo "\"\$as_me:21237: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21238 | (eval "$lt_compile" 2>conftest.err) |
| 21239 | ac_status=$? |
| 21240 | cat conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 21241 | echo "$as_me:21241: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21242 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21243 | # The compiler can only warn and ignore the option if not recognized |
| 21244 | # So say no if there are warnings |
| 21245 | if test ! -s conftest.err; then |
| 21246 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 21247 | fi |
| 21248 | fi |
| 21249 | $rm conftest* |
| 21250 | |
| 21251 | fi |
| 21252 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 21253 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 21254 | |
| 21255 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 21256 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 21257 | else |
| 21258 | : |
| 21259 | fi |
| 21260 | |
| 21261 | fi |
| 21262 | |
| 21263 | lt_prog_compiler_wl_GCJ= |
| 21264 | lt_prog_compiler_pic_GCJ= |
| 21265 | lt_prog_compiler_static_GCJ= |
| 21266 | |
| 21267 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21268 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 21269 | |
| 21270 | if test "$GCC" = yes; then |
| 21271 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21272 | lt_prog_compiler_static_GCJ='-static' |
| 21273 | |
| 21274 | case $host_os in |
| 21275 | aix*) |
| 21276 | # All AIX code is PIC. |
| 21277 | if test "$host_cpu" = ia64; then |
| 21278 | # AIX 5 now supports IA64 processor |
| 21279 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21280 | fi |
| 21281 | ;; |
| 21282 | |
| 21283 | amigaos*) |
| 21284 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21285 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21286 | # like `-m68040'. |
| 21287 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 21288 | ;; |
| 21289 | |
| 21290 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21291 | # PIC is the default for these OSes. |
| 21292 | ;; |
| 21293 | |
| 21294 | mingw* | pw32* | os2*) |
| 21295 | # This hack is so that the source file can tell whether it is being |
| 21296 | # built for inclusion in a dll (and should export symbols for example). |
| 21297 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 21298 | ;; |
| 21299 | |
| 21300 | darwin* | rhapsody*) |
| 21301 | # PIC is the default on this platform |
| 21302 | # Common symbols not allowed in MH_DYLIB files |
| 21303 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 21304 | ;; |
| 21305 | |
| 21306 | msdosdjgpp*) |
| 21307 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21308 | # on systems that don't support them. |
| 21309 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21310 | enable_shared=no |
| 21311 | ;; |
| 21312 | |
| 21313 | sysv4*MP*) |
| 21314 | if test -d /usr/nec; then |
| 21315 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 21316 | fi |
| 21317 | ;; |
| 21318 | |
| 21319 | hpux*) |
| 21320 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21321 | # not for PA HP-UX. |
| 21322 | case "$host_cpu" in |
| 21323 | hppa*64*|ia64*) |
| 21324 | # +Z the default |
| 21325 | ;; |
| 21326 | *) |
| 21327 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 21328 | ;; |
| 21329 | esac |
| 21330 | ;; |
| 21331 | |
| 21332 | *) |
| 21333 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 21334 | ;; |
| 21335 | esac |
| 21336 | else |
| 21337 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21338 | case $host_os in |
| 21339 | aix*) |
| 21340 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21341 | if test "$host_cpu" = ia64; then |
| 21342 | # AIX 5 now supports IA64 processor |
| 21343 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21344 | else |
| 21345 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 21346 | fi |
| 21347 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21348 | darwin*) |
| 21349 | # PIC is the default on this platform |
| 21350 | # Common symbols not allowed in MH_DYLIB files |
| 21351 | case "$cc_basename" in |
| 21352 | xlc*) |
| 21353 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 21354 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21355 | ;; |
| 21356 | esac |
| 21357 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21358 | |
| 21359 | mingw* | pw32* | os2*) |
| 21360 | # This hack is so that the source file can tell whether it is being |
| 21361 | # built for inclusion in a dll (and should export symbols for example). |
| 21362 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 21363 | ;; |
| 21364 | |
| 21365 | hpux9* | hpux10* | hpux11*) |
| 21366 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21367 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21368 | # not for PA HP-UX. |
| 21369 | case "$host_cpu" in |
| 21370 | hppa*64*|ia64*) |
| 21371 | # +Z the default |
| 21372 | ;; |
| 21373 | *) |
| 21374 | lt_prog_compiler_pic_GCJ='+Z' |
| 21375 | ;; |
| 21376 | esac |
| 21377 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21378 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 21379 | ;; |
| 21380 | |
| 21381 | irix5* | irix6* | nonstopux*) |
| 21382 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21383 | # PIC (with -KPIC) is the default. |
| 21384 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21385 | ;; |
| 21386 | |
| 21387 | newsos6) |
| 21388 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21389 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21390 | ;; |
| 21391 | |
| 21392 | linux*) |
| 21393 | case $CC in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21394 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21395 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21396 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21397 | lt_prog_compiler_static_GCJ='-static' |
| 21398 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21399 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21400 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21401 | # All Alpha code is PIC. |
| 21402 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21403 | ;; |
| 21404 | esac |
| 21405 | ;; |
| 21406 | |
| 21407 | osf3* | osf4* | osf5*) |
| 21408 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21409 | # All OSF/1 code is PIC. |
| 21410 | lt_prog_compiler_static_GCJ='-non_shared' |
| 21411 | ;; |
| 21412 | |
| 21413 | sco3.2v5*) |
| 21414 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 21415 | lt_prog_compiler_static_GCJ='-dn' |
| 21416 | ;; |
| 21417 | |
| 21418 | solaris*) |
| 21419 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21420 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21421 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21422 | ;; |
| 21423 | |
| 21424 | sunos4*) |
| 21425 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 21426 | lt_prog_compiler_pic_GCJ='-PIC' |
| 21427 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21428 | ;; |
| 21429 | |
| 21430 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 21431 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 21432 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 21433 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21434 | ;; |
| 21435 | |
| 21436 | sysv4*MP*) |
| 21437 | if test -d /usr/nec ;then |
| 21438 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 21439 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21440 | fi |
| 21441 | ;; |
| 21442 | |
| 21443 | uts4*) |
| 21444 | lt_prog_compiler_pic_GCJ='-pic' |
| 21445 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 21446 | ;; |
| 21447 | |
| 21448 | *) |
| 21449 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21450 | ;; |
| 21451 | esac |
| 21452 | fi |
| 21453 | |
| 21454 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 21455 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 21456 | |
| 21457 | # |
| 21458 | # Check to make sure the PIC flag actually works. |
| 21459 | # |
| 21460 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21461 | |
| 21462 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21463 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 21464 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 21465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21466 | else |
| 21467 | lt_prog_compiler_pic_works_GCJ=no |
| 21468 | ac_outfile=conftest.$ac_objext |
| 21469 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21470 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 21471 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21472 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21473 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21474 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21475 | # The option is referenced via a variable to avoid confusing sed. |
| 21476 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21477 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21478 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21479 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 21480 | (eval echo "\"\$as_me:21480: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21481 | (eval "$lt_compile" 2>conftest.err) |
| 21482 | ac_status=$? |
| 21483 | cat conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 21484 | echo "$as_me:21484: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21485 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21486 | # The compiler can only warn and ignore the option if not recognized |
| 21487 | # So say no if there are warnings |
| 21488 | if test ! -s conftest.err; then |
| 21489 | lt_prog_compiler_pic_works_GCJ=yes |
| 21490 | fi |
| 21491 | fi |
| 21492 | $rm conftest* |
| 21493 | |
| 21494 | fi |
| 21495 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 21496 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 21497 | |
| 21498 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 21499 | case $lt_prog_compiler_pic_GCJ in |
| 21500 | "" | " "*) ;; |
| 21501 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 21502 | esac |
| 21503 | else |
| 21504 | lt_prog_compiler_pic_GCJ= |
| 21505 | lt_prog_compiler_can_build_shared_GCJ=no |
| 21506 | fi |
| 21507 | |
| 21508 | fi |
| 21509 | case "$host_os" in |
| 21510 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21511 | *djgpp*) |
| 21512 | lt_prog_compiler_pic_GCJ= |
| 21513 | ;; |
| 21514 | *) |
| 21515 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 21516 | ;; |
| 21517 | esac |
| 21518 | |
| 21519 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21520 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 21521 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 21522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21523 | else |
| 21524 | lt_cv_prog_compiler_c_o_GCJ=no |
| 21525 | $rm -r conftest 2>/dev/null |
| 21526 | mkdir conftest |
| 21527 | cd conftest |
| 21528 | mkdir out |
| 21529 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21530 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21531 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21532 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21533 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21534 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21535 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21536 | lt_compile=`echo "$ac_compile" | $SED \ |
| 21537 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 21538 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21539 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 21540 | (eval echo "\"\$as_me:21540: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21541 | (eval "$lt_compile" 2>out/conftest.err) |
| 21542 | ac_status=$? |
| 21543 | cat out/conftest.err >&5 |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 21544 | echo "$as_me:21544: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21545 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21546 | then |
| 21547 | # The compiler can only warn and ignore the option if not recognized |
| 21548 | # So say no if there are warnings |
| 21549 | if test ! -s out/conftest.err; then |
| 21550 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 21551 | fi |
| 21552 | fi |
| 21553 | chmod u+w . |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21554 | $rm conftest* |
| 21555 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21556 | # template instantiation |
| 21557 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21558 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21559 | cd .. |
| 21560 | rmdir conftest |
| 21561 | $rm conftest* |
| 21562 | |
| 21563 | fi |
| 21564 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 21565 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 21566 | |
| 21567 | |
| 21568 | hard_links="nottested" |
| 21569 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 21570 | # do not overwrite the value of need_locks provided by the user |
| 21571 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21572 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 21573 | hard_links=yes |
| 21574 | $rm conftest* |
| 21575 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21576 | touch conftest.a |
| 21577 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21578 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21579 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21580 | echo "${ECHO_T}$hard_links" >&6 |
| 21581 | if test "$hard_links" = no; then |
| 21582 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21583 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21584 | need_locks=warn |
| 21585 | fi |
| 21586 | else |
| 21587 | need_locks=no |
| 21588 | fi |
| 21589 | |
| 21590 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21591 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 21592 | |
| 21593 | runpath_var= |
| 21594 | allow_undefined_flag_GCJ= |
| 21595 | enable_shared_with_static_runtimes_GCJ=no |
| 21596 | archive_cmds_GCJ= |
| 21597 | archive_expsym_cmds_GCJ= |
| 21598 | old_archive_From_new_cmds_GCJ= |
| 21599 | old_archive_from_expsyms_cmds_GCJ= |
| 21600 | export_dynamic_flag_spec_GCJ= |
| 21601 | whole_archive_flag_spec_GCJ= |
| 21602 | thread_safe_flag_spec_GCJ= |
| 21603 | hardcode_libdir_flag_spec_GCJ= |
| 21604 | hardcode_libdir_flag_spec_ld_GCJ= |
| 21605 | hardcode_libdir_separator_GCJ= |
| 21606 | hardcode_direct_GCJ=no |
| 21607 | hardcode_minus_L_GCJ=no |
| 21608 | hardcode_shlibpath_var_GCJ=unsupported |
| 21609 | link_all_deplibs_GCJ=unknown |
| 21610 | hardcode_automatic_GCJ=no |
| 21611 | module_cmds_GCJ= |
| 21612 | module_expsym_cmds_GCJ= |
| 21613 | always_export_symbols_GCJ=no |
| 21614 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21615 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21616 | # included in the symbol list |
| 21617 | include_expsyms_GCJ= |
| 21618 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21619 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21620 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21621 | # as well as any symbol that contains `d'. |
| 21622 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 21623 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21624 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21625 | # the symbol is explicitly referenced. Since portable code cannot |
| 21626 | # rely on this symbol name, it's probably fine to never include it in |
| 21627 | # preloaded symbol tables. |
| 21628 | extract_expsyms_cmds= |
| 21629 | |
| 21630 | case $host_os in |
| 21631 | cygwin* | mingw* | pw32*) |
| 21632 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21633 | # When not using gcc, we currently assume that we are using |
| 21634 | # Microsoft Visual C++. |
| 21635 | if test "$GCC" != yes; then |
| 21636 | with_gnu_ld=no |
| 21637 | fi |
| 21638 | ;; |
| 21639 | openbsd*) |
| 21640 | with_gnu_ld=no |
| 21641 | ;; |
| 21642 | esac |
| 21643 | |
| 21644 | ld_shlibs_GCJ=yes |
| 21645 | if test "$with_gnu_ld" = yes; then |
| 21646 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21647 | wlarc='${wl}' |
| 21648 | |
| 21649 | # See if GNU ld supports shared libraries. |
| 21650 | case $host_os in |
| 21651 | aix3* | aix4* | aix5*) |
| 21652 | # On AIX/PPC, the GNU linker is very broken |
| 21653 | if test "$host_cpu" != ia64; then |
| 21654 | ld_shlibs_GCJ=no |
| 21655 | cat <<EOF 1>&2 |
| 21656 | |
| 21657 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21658 | *** to be unable to reliably create shared libraries on AIX. |
| 21659 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21660 | *** really care for shared libraries, you may want to modify your PATH |
| 21661 | *** so that a non-GNU linker is found, and then restart. |
| 21662 | |
| 21663 | EOF |
| 21664 | fi |
| 21665 | ;; |
| 21666 | |
| 21667 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21668 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21669 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21670 | hardcode_minus_L_GCJ=yes |
| 21671 | |
| 21672 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21673 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21674 | # to version 4, is to share data among multiple programs linked |
| 21675 | # with the same dynamic library. Since this doesn't match the |
| 21676 | # behavior of shared libraries on other platforms, we can't use |
| 21677 | # them. |
| 21678 | ld_shlibs_GCJ=no |
| 21679 | ;; |
| 21680 | |
| 21681 | beos*) |
| 21682 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21683 | allow_undefined_flag_GCJ=unsupported |
| 21684 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21685 | # support --undefined. This deserves some investigation. FIXME |
| 21686 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21687 | else |
| 21688 | ld_shlibs_GCJ=no |
| 21689 | fi |
| 21690 | ;; |
| 21691 | |
| 21692 | cygwin* | mingw* | pw32*) |
| 21693 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 21694 | # as there is no search path for DLLs. |
| 21695 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21696 | allow_undefined_flag_GCJ=unsupported |
| 21697 | always_export_symbols_GCJ=no |
| 21698 | enable_shared_with_static_runtimes_GCJ=yes |
| 21699 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 21700 | |
| 21701 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 21702 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 21703 | # If the export-symbols file already is a .def file (1st line |
| 21704 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21705 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21706 | cp $export_symbols $output_objdir/$soname.def; |
| 21707 | else |
| 21708 | echo EXPORTS > $output_objdir/$soname.def; |
| 21709 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21710 | fi~ |
| 21711 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21712 | else |
| 21713 | ld_shlibs=no |
| 21714 | fi |
| 21715 | ;; |
| 21716 | |
| 21717 | netbsd*) |
| 21718 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21719 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21720 | wlarc= |
| 21721 | else |
| 21722 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21723 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21724 | fi |
| 21725 | ;; |
| 21726 | |
| 21727 | solaris* | sysv5*) |
| 21728 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21729 | ld_shlibs_GCJ=no |
| 21730 | cat <<EOF 1>&2 |
| 21731 | |
| 21732 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21733 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21734 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21735 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21736 | *** your PATH or compiler configuration so that the native linker is |
| 21737 | *** used, and then restart. |
| 21738 | |
| 21739 | EOF |
| 21740 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21741 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21742 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21743 | else |
| 21744 | ld_shlibs_GCJ=no |
| 21745 | fi |
| 21746 | ;; |
| 21747 | |
| 21748 | sunos4*) |
| 21749 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21750 | wlarc= |
| 21751 | hardcode_direct_GCJ=yes |
| 21752 | hardcode_shlibpath_var_GCJ=no |
| 21753 | ;; |
| 21754 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21755 | linux*) |
| 21756 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21757 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21758 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 21759 | supports_anon_versioning=no |
| 21760 | case `$LD -v 2>/dev/null` in |
| 21761 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21762 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21763 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21764 | *\ 2.11.*) ;; # other 2.11 versions |
| 21765 | *) supports_anon_versioning=yes ;; |
| 21766 | esac |
| 21767 | if test $supports_anon_versioning = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21768 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21769 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21770 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21771 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21772 | else |
| 21773 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 21774 | fi |
| 21775 | else |
| 21776 | ld_shlibs_GCJ=no |
| 21777 | fi |
| 21778 | ;; |
| 21779 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21780 | *) |
| 21781 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21782 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21783 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21784 | else |
| 21785 | ld_shlibs_GCJ=no |
| 21786 | fi |
| 21787 | ;; |
| 21788 | esac |
| 21789 | |
| 21790 | if test "$ld_shlibs_GCJ" = yes; then |
| 21791 | runpath_var=LD_RUN_PATH |
| 21792 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 21793 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 21794 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21795 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21796 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21797 | else |
| 21798 | whole_archive_flag_spec_GCJ= |
| 21799 | fi |
| 21800 | fi |
| 21801 | else |
| 21802 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21803 | case $host_os in |
| 21804 | aix3*) |
| 21805 | allow_undefined_flag_GCJ=unsupported |
| 21806 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21807 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21808 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21809 | # are no directories specified by -L. |
| 21810 | hardcode_minus_L_GCJ=yes |
| 21811 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 21812 | # Neither direct hardcoding nor static linking is supported with a |
| 21813 | # broken collect2. |
| 21814 | hardcode_direct_GCJ=unsupported |
| 21815 | fi |
| 21816 | ;; |
| 21817 | |
| 21818 | aix4* | aix5*) |
| 21819 | if test "$host_cpu" = ia64; then |
| 21820 | # On IA64, the linker does run time linking by default, so we don't |
| 21821 | # have to do anything special. |
| 21822 | aix_use_runtimelinking=no |
| 21823 | exp_sym_flag='-Bexport' |
| 21824 | no_entry_flag="" |
| 21825 | else |
| 21826 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21827 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21828 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21829 | 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' |
| 21830 | else |
| 21831 | 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' |
| 21832 | fi |
| 21833 | aix_use_runtimelinking=no |
| 21834 | |
| 21835 | # Test if we are trying to use run time linking or normal |
| 21836 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21837 | # need to do runtime linking. |
| 21838 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21839 | for ld_flag in $LDFLAGS; do |
| 21840 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21841 | aix_use_runtimelinking=yes |
| 21842 | break |
| 21843 | fi |
| 21844 | done |
| 21845 | esac |
| 21846 | |
| 21847 | exp_sym_flag='-bexport' |
| 21848 | no_entry_flag='-bnoentry' |
| 21849 | fi |
| 21850 | |
| 21851 | # When large executables or shared objects are built, AIX ld can |
| 21852 | # have problems creating the table of contents. If linking a library |
| 21853 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21854 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21855 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21856 | |
| 21857 | archive_cmds_GCJ='' |
| 21858 | hardcode_direct_GCJ=yes |
| 21859 | hardcode_libdir_separator_GCJ=':' |
| 21860 | link_all_deplibs_GCJ=yes |
| 21861 | |
| 21862 | if test "$GCC" = yes; then |
| 21863 | case $host_os in aix4.012|aix4.012.*) |
| 21864 | # We only want to do this on AIX 4.2 and lower, the check |
| 21865 | # below for broken collect2 doesn't work under 4.3+ |
| 21866 | collect2name=`${CC} -print-prog-name=collect2` |
| 21867 | if test -f "$collect2name" && \ |
| 21868 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21869 | then |
| 21870 | # We have reworked collect2 |
| 21871 | hardcode_direct_GCJ=yes |
| 21872 | else |
| 21873 | # We have old collect2 |
| 21874 | hardcode_direct_GCJ=unsupported |
| 21875 | # It fails to find uninstalled libraries when the uninstalled |
| 21876 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21877 | # to unsupported forces relinking |
| 21878 | hardcode_minus_L_GCJ=yes |
| 21879 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 21880 | hardcode_libdir_separator_GCJ= |
| 21881 | fi |
| 21882 | esac |
| 21883 | shared_flag='-shared' |
| 21884 | else |
| 21885 | # not using gcc |
| 21886 | if test "$host_cpu" = ia64; then |
| 21887 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21888 | # chokes on -Wl,-G. The following line is correct: |
| 21889 | shared_flag='-G' |
| 21890 | else |
| 21891 | if test "$aix_use_runtimelinking" = yes; then |
| 21892 | shared_flag='${wl}-G' |
| 21893 | else |
| 21894 | shared_flag='${wl}-bM:SRE' |
| 21895 | fi |
| 21896 | fi |
| 21897 | fi |
| 21898 | |
| 21899 | # It seems that -bexpall does not export symbols beginning with |
| 21900 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21901 | always_export_symbols_GCJ=yes |
| 21902 | if test "$aix_use_runtimelinking" = yes; then |
| 21903 | # Warning - without using the other runtime loading flags (-brtl), |
| 21904 | # -berok will link without error, but may produce a broken library. |
| 21905 | allow_undefined_flag_GCJ='-berok' |
| 21906 | # Determine the default libpath from the value encoded in an empty executable. |
| 21907 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21908 | /* confdefs.h. */ |
| 21909 | _ACEOF |
| 21910 | cat confdefs.h >>conftest.$ac_ext |
| 21911 | cat >>conftest.$ac_ext <<_ACEOF |
| 21912 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21913 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21914 | int |
| 21915 | main () |
| 21916 | { |
| 21917 | |
| 21918 | ; |
| 21919 | return 0; |
| 21920 | } |
| 21921 | _ACEOF |
| 21922 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21924 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21925 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21927 | rm -f conftest.er1 |
| 21928 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21930 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21931 | { ac_try='test -z "$ac_c_werror_flag" |
| 21932 | || test ! -s conftest.err' |
| 21933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21934 | (eval $ac_try) 2>&5 |
| 21935 | ac_status=$? |
| 21936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21937 | (exit $ac_status); }; } && |
| 21938 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21940 | (eval $ac_try) 2>&5 |
| 21941 | ac_status=$? |
| 21942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21943 | (exit $ac_status); }; }; then |
| 21944 | |
| 21945 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21946 | }'` |
| 21947 | # Check for a 64-bit object if we didn't find anything. |
| 21948 | 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; } |
| 21949 | }'`; fi |
| 21950 | else |
| 21951 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21953 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21954 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21955 | rm -f conftest.err conftest.$ac_objext \ |
| 21956 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21957 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21958 | |
| 21959 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21960 | 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" |
| 21961 | else |
| 21962 | if test "$host_cpu" = ia64; then |
| 21963 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 21964 | allow_undefined_flag_GCJ="-z nodefs" |
| 21965 | 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" |
| 21966 | else |
| 21967 | # Determine the default libpath from the value encoded in an empty executable. |
| 21968 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21969 | /* confdefs.h. */ |
| 21970 | _ACEOF |
| 21971 | cat confdefs.h >>conftest.$ac_ext |
| 21972 | cat >>conftest.$ac_ext <<_ACEOF |
| 21973 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21974 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21975 | int |
| 21976 | main () |
| 21977 | { |
| 21978 | |
| 21979 | ; |
| 21980 | return 0; |
| 21981 | } |
| 21982 | _ACEOF |
| 21983 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21985 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21986 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21988 | rm -f conftest.er1 |
| 21989 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21991 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21992 | { ac_try='test -z "$ac_c_werror_flag" |
| 21993 | || test ! -s conftest.err' |
| 21994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21995 | (eval $ac_try) 2>&5 |
| 21996 | ac_status=$? |
| 21997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21998 | (exit $ac_status); }; } && |
| 21999 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22001 | (eval $ac_try) 2>&5 |
| 22002 | ac_status=$? |
| 22003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22004 | (exit $ac_status); }; }; then |
| 22005 | |
| 22006 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22007 | }'` |
| 22008 | # Check for a 64-bit object if we didn't find anything. |
| 22009 | 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; } |
| 22010 | }'`; fi |
| 22011 | else |
| 22012 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22014 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22015 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22016 | rm -f conftest.err conftest.$ac_objext \ |
| 22017 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22018 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22019 | |
| 22020 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22021 | # Warning - without using the other run time loading flags, |
| 22022 | # -berok will link without error, but may produce a broken library. |
| 22023 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 22024 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 22025 | # -bexpall does not export symbols beginning with underscore (_) |
| 22026 | always_export_symbols_GCJ=yes |
| 22027 | # Exported symbols can be pulled into shared objects from archives |
| 22028 | whole_archive_flag_spec_GCJ=' ' |
| 22029 | archive_cmds_need_lc_GCJ=yes |
| 22030 | # This is similar to how AIX traditionally builds it's shared libraries. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22031 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22032 | fi |
| 22033 | fi |
| 22034 | ;; |
| 22035 | |
| 22036 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22037 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22038 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22039 | hardcode_minus_L_GCJ=yes |
| 22040 | # see comment about different semantics on the GNU ld section |
| 22041 | ld_shlibs_GCJ=no |
| 22042 | ;; |
| 22043 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22044 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22045 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 22046 | ;; |
| 22047 | |
| 22048 | cygwin* | mingw* | pw32*) |
| 22049 | # When not using gcc, we currently assume that we are using |
| 22050 | # Microsoft Visual C++. |
| 22051 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22052 | # no search path for DLLs. |
| 22053 | hardcode_libdir_flag_spec_GCJ=' ' |
| 22054 | allow_undefined_flag_GCJ=unsupported |
| 22055 | # Tell ltmain to make .lib files, not .a files. |
| 22056 | libext=lib |
| 22057 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22058 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22059 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22060 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22061 | # The linker will automatically build a .lib file if we build a DLL. |
| 22062 | old_archive_From_new_cmds_GCJ='true' |
| 22063 | # FIXME: Should let the user specify the lib program. |
| 22064 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 22065 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 22066 | enable_shared_with_static_runtimes_GCJ=yes |
| 22067 | ;; |
| 22068 | |
| 22069 | darwin* | rhapsody*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22070 | case "$host_os" in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22071 | rhapsody* | darwin1.[012]) |
| 22072 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 22073 | ;; |
| 22074 | *) # Darwin 1.3 on |
| 22075 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22076 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22077 | else |
| 22078 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22079 | 10.[012]) |
| 22080 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22081 | ;; |
| 22082 | 10.*) |
| 22083 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 22084 | ;; |
| 22085 | esac |
| 22086 | fi |
| 22087 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22088 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22089 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22090 | hardcode_direct_GCJ=no |
| 22091 | hardcode_automatic_GCJ=yes |
| 22092 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22093 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22094 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22095 | if test "$GCC" = yes ; then |
| 22096 | output_verbose_link_cmd='echo' |
| 22097 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22098 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 22099 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22100 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 22101 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22102 | else |
| 22103 | case "$cc_basename" in |
| 22104 | xlc*) |
| 22105 | output_verbose_link_cmd='echo' |
| 22106 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22107 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 22108 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22109 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 22110 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22111 | ;; |
| 22112 | *) |
| 22113 | ld_shlibs_GCJ=no |
| 22114 | ;; |
| 22115 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22116 | fi |
| 22117 | ;; |
| 22118 | |
| 22119 | dgux*) |
| 22120 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22121 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22122 | hardcode_shlibpath_var_GCJ=no |
| 22123 | ;; |
| 22124 | |
| 22125 | freebsd1*) |
| 22126 | ld_shlibs_GCJ=no |
| 22127 | ;; |
| 22128 | |
| 22129 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22130 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22131 | # does not break anything, and helps significantly (at the cost of a little |
| 22132 | # extra space). |
| 22133 | freebsd2.2*) |
| 22134 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22135 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22136 | hardcode_direct_GCJ=yes |
| 22137 | hardcode_shlibpath_var_GCJ=no |
| 22138 | ;; |
| 22139 | |
| 22140 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22141 | freebsd2*) |
| 22142 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22143 | hardcode_direct_GCJ=yes |
| 22144 | hardcode_minus_L_GCJ=yes |
| 22145 | hardcode_shlibpath_var_GCJ=no |
| 22146 | ;; |
| 22147 | |
| 22148 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22149 | freebsd* | kfreebsd*-gnu) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22150 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22151 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22152 | hardcode_direct_GCJ=yes |
| 22153 | hardcode_shlibpath_var_GCJ=no |
| 22154 | ;; |
| 22155 | |
| 22156 | hpux9*) |
| 22157 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22158 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22159 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22160 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22161 | fi |
| 22162 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 22163 | hardcode_libdir_separator_GCJ=: |
| 22164 | hardcode_direct_GCJ=yes |
| 22165 | |
| 22166 | # hardcode_minus_L: Not really in the search PATH, |
| 22167 | # but as the default location of the library. |
| 22168 | hardcode_minus_L_GCJ=yes |
| 22169 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 22170 | ;; |
| 22171 | |
| 22172 | hpux10* | hpux11*) |
| 22173 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22174 | case "$host_cpu" in |
| 22175 | hppa*64*|ia64*) |
| 22176 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22177 | ;; |
| 22178 | *) |
| 22179 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22180 | ;; |
| 22181 | esac |
| 22182 | else |
| 22183 | case "$host_cpu" in |
| 22184 | hppa*64*|ia64*) |
| 22185 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22186 | ;; |
| 22187 | *) |
| 22188 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22189 | ;; |
| 22190 | esac |
| 22191 | fi |
| 22192 | if test "$with_gnu_ld" = no; then |
| 22193 | case "$host_cpu" in |
| 22194 | hppa*64*) |
| 22195 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 22196 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 22197 | hardcode_libdir_separator_GCJ=: |
| 22198 | hardcode_direct_GCJ=no |
| 22199 | hardcode_shlibpath_var_GCJ=no |
| 22200 | ;; |
| 22201 | ia64*) |
| 22202 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22203 | hardcode_direct_GCJ=no |
| 22204 | hardcode_shlibpath_var_GCJ=no |
| 22205 | |
| 22206 | # hardcode_minus_L: Not really in the search PATH, |
| 22207 | # but as the default location of the library. |
| 22208 | hardcode_minus_L_GCJ=yes |
| 22209 | ;; |
| 22210 | *) |
| 22211 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 22212 | hardcode_libdir_separator_GCJ=: |
| 22213 | hardcode_direct_GCJ=yes |
| 22214 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 22215 | |
| 22216 | # hardcode_minus_L: Not really in the search PATH, |
| 22217 | # but as the default location of the library. |
| 22218 | hardcode_minus_L_GCJ=yes |
| 22219 | ;; |
| 22220 | esac |
| 22221 | fi |
| 22222 | ;; |
| 22223 | |
| 22224 | irix5* | irix6* | nonstopux*) |
| 22225 | if test "$GCC" = yes; then |
| 22226 | 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' |
| 22227 | else |
| 22228 | 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' |
| 22229 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 22230 | fi |
| 22231 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22232 | hardcode_libdir_separator_GCJ=: |
| 22233 | link_all_deplibs_GCJ=yes |
| 22234 | ;; |
| 22235 | |
| 22236 | netbsd*) |
| 22237 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22238 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22239 | else |
| 22240 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22241 | fi |
| 22242 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22243 | hardcode_direct_GCJ=yes |
| 22244 | hardcode_shlibpath_var_GCJ=no |
| 22245 | ;; |
| 22246 | |
| 22247 | newsos6) |
| 22248 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22249 | hardcode_direct_GCJ=yes |
| 22250 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22251 | hardcode_libdir_separator_GCJ=: |
| 22252 | hardcode_shlibpath_var_GCJ=no |
| 22253 | ;; |
| 22254 | |
| 22255 | openbsd*) |
| 22256 | hardcode_direct_GCJ=yes |
| 22257 | hardcode_shlibpath_var_GCJ=no |
| 22258 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22259 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22260 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22261 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 22262 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 22263 | else |
| 22264 | case $host_os in |
| 22265 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22266 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22267 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22268 | ;; |
| 22269 | *) |
| 22270 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22271 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 22272 | ;; |
| 22273 | esac |
| 22274 | fi |
| 22275 | ;; |
| 22276 | |
| 22277 | os2*) |
| 22278 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22279 | hardcode_minus_L_GCJ=yes |
| 22280 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22281 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22282 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22283 | ;; |
| 22284 | |
| 22285 | osf3*) |
| 22286 | if test "$GCC" = yes; then |
| 22287 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 22288 | 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' |
| 22289 | else |
| 22290 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 22291 | 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' |
| 22292 | fi |
| 22293 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22294 | hardcode_libdir_separator_GCJ=: |
| 22295 | ;; |
| 22296 | |
| 22297 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22298 | if test "$GCC" = yes; then |
| 22299 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 22300 | 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' |
| 22301 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 22302 | else |
| 22303 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 22304 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22305 | 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~ |
| 22306 | $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' |
| 22307 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22308 | # Both c and cxx compiler support -rpath directly |
| 22309 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 22310 | fi |
| 22311 | hardcode_libdir_separator_GCJ=: |
| 22312 | ;; |
| 22313 | |
| 22314 | sco3.2v5*) |
| 22315 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22316 | hardcode_shlibpath_var_GCJ=no |
| 22317 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 22318 | runpath_var=LD_RUN_PATH |
| 22319 | hardcode_runpath_var=yes |
| 22320 | ;; |
| 22321 | |
| 22322 | solaris*) |
| 22323 | no_undefined_flag_GCJ=' -z text' |
| 22324 | if test "$GCC" = yes; then |
| 22325 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22326 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22327 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22328 | else |
| 22329 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22330 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22331 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22332 | fi |
| 22333 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 22334 | hardcode_shlibpath_var_GCJ=no |
| 22335 | case $host_os in |
| 22336 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 22337 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22338 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 22339 | esac |
| 22340 | link_all_deplibs_GCJ=yes |
| 22341 | ;; |
| 22342 | |
| 22343 | sunos4*) |
| 22344 | if test "x$host_vendor" = xsequent; then |
| 22345 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22346 | # files that make .init and .fini sections work. |
| 22347 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22348 | else |
| 22349 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22350 | fi |
| 22351 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22352 | hardcode_direct_GCJ=yes |
| 22353 | hardcode_minus_L_GCJ=yes |
| 22354 | hardcode_shlibpath_var_GCJ=no |
| 22355 | ;; |
| 22356 | |
| 22357 | sysv4) |
| 22358 | case $host_vendor in |
| 22359 | sni) |
| 22360 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22361 | hardcode_direct_GCJ=yes # is this really true??? |
| 22362 | ;; |
| 22363 | siemens) |
| 22364 | ## LD is ld it makes a PLAMLIB |
| 22365 | ## CC just makes a GrossModule. |
| 22366 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22367 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 22368 | hardcode_direct_GCJ=no |
| 22369 | ;; |
| 22370 | motorola) |
| 22371 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22372 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 22373 | ;; |
| 22374 | esac |
| 22375 | runpath_var='LD_RUN_PATH' |
| 22376 | hardcode_shlibpath_var_GCJ=no |
| 22377 | ;; |
| 22378 | |
| 22379 | sysv4.3*) |
| 22380 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22381 | hardcode_shlibpath_var_GCJ=no |
| 22382 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 22383 | ;; |
| 22384 | |
| 22385 | sysv4*MP*) |
| 22386 | if test -d /usr/nec; then |
| 22387 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22388 | hardcode_shlibpath_var_GCJ=no |
| 22389 | runpath_var=LD_RUN_PATH |
| 22390 | hardcode_runpath_var=yes |
| 22391 | ld_shlibs_GCJ=yes |
| 22392 | fi |
| 22393 | ;; |
| 22394 | |
| 22395 | sysv4.2uw2*) |
| 22396 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22397 | hardcode_direct_GCJ=yes |
| 22398 | hardcode_minus_L_GCJ=no |
| 22399 | hardcode_shlibpath_var_GCJ=no |
| 22400 | hardcode_runpath_var=yes |
| 22401 | runpath_var=LD_RUN_PATH |
| 22402 | ;; |
| 22403 | |
| 22404 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 22405 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 22406 | if test "$GCC" = yes; then |
| 22407 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22408 | else |
| 22409 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22410 | fi |
| 22411 | runpath_var='LD_RUN_PATH' |
| 22412 | hardcode_shlibpath_var_GCJ=no |
| 22413 | ;; |
| 22414 | |
| 22415 | sysv5*) |
| 22416 | no_undefined_flag_GCJ=' -z text' |
| 22417 | # $CC -shared without GNU ld will not create a library from C++ |
| 22418 | # object files and a static libstdc++, better avoid it by now |
| 22419 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22420 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22421 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22422 | hardcode_libdir_flag_spec_GCJ= |
| 22423 | hardcode_shlibpath_var_GCJ=no |
| 22424 | runpath_var='LD_RUN_PATH' |
| 22425 | ;; |
| 22426 | |
| 22427 | uts4*) |
| 22428 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22429 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 22430 | hardcode_shlibpath_var_GCJ=no |
| 22431 | ;; |
| 22432 | |
| 22433 | *) |
| 22434 | ld_shlibs_GCJ=no |
| 22435 | ;; |
| 22436 | esac |
| 22437 | fi |
| 22438 | |
| 22439 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 22440 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 22441 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 22442 | |
| 22443 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22444 | if test "$GCC" = yes; then |
| 22445 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22446 | fi |
| 22447 | |
| 22448 | # |
| 22449 | # Do we need to explicitly link libc? |
| 22450 | # |
| 22451 | case "x$archive_cmds_need_lc_GCJ" in |
| 22452 | x|xyes) |
| 22453 | # Assume -lc should be added |
| 22454 | archive_cmds_need_lc_GCJ=yes |
| 22455 | |
| 22456 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22457 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22458 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22459 | # FIXME: we may have to deal with multi-command sequences. |
| 22460 | ;; |
| 22461 | '$CC '*) |
| 22462 | # Test whether the compiler implicitly links with -lc since on some |
| 22463 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22464 | # to ld, don't add -lc before -lgcc. |
| 22465 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22466 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 22467 | $rm conftest* |
| 22468 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22469 | |
| 22470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22471 | (eval $ac_compile) 2>&5 |
| 22472 | ac_status=$? |
| 22473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22474 | (exit $ac_status); } 2>conftest.err; then |
| 22475 | soname=conftest |
| 22476 | lib=conftest |
| 22477 | libobjs=conftest.$ac_objext |
| 22478 | deplibs= |
| 22479 | wl=$lt_prog_compiler_wl_GCJ |
| 22480 | compiler_flags=-v |
| 22481 | linker_flags=-v |
| 22482 | verstring= |
| 22483 | output_objdir=. |
| 22484 | libname=conftest |
| 22485 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 22486 | allow_undefined_flag_GCJ= |
| 22487 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22488 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22489 | ac_status=$? |
| 22490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22491 | (exit $ac_status); } |
| 22492 | then |
| 22493 | archive_cmds_need_lc_GCJ=no |
| 22494 | else |
| 22495 | archive_cmds_need_lc_GCJ=yes |
| 22496 | fi |
| 22497 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 22498 | else |
| 22499 | cat conftest.err 1>&5 |
| 22500 | fi |
| 22501 | $rm conftest* |
| 22502 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 22503 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 22504 | ;; |
| 22505 | esac |
| 22506 | fi |
| 22507 | ;; |
| 22508 | esac |
| 22509 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22510 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22511 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 22512 | library_names_spec= |
| 22513 | libname_spec='lib$name' |
| 22514 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22515 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22516 | postinstall_cmds= |
| 22517 | postuninstall_cmds= |
| 22518 | finish_cmds= |
| 22519 | finish_eval= |
| 22520 | shlibpath_var= |
| 22521 | shlibpath_overrides_runpath=unknown |
| 22522 | version_type=none |
| 22523 | dynamic_linker="$host_os ld.so" |
| 22524 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22525 | if test "$GCC" = yes; then |
| 22526 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22527 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22528 | # if the path contains ";" then we assume it to be the separator |
| 22529 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22530 | # assumed that no part of a normal pathname contains ";" but that should |
| 22531 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22532 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22533 | else |
| 22534 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22535 | fi |
| 22536 | else |
| 22537 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22538 | fi |
| 22539 | need_lib_prefix=unknown |
| 22540 | hardcode_into_libs=no |
| 22541 | |
| 22542 | # when you set need_version to no, make sure it does not cause -set_version |
| 22543 | # flags to be left without arguments |
| 22544 | need_version=unknown |
| 22545 | |
| 22546 | case $host_os in |
| 22547 | aix3*) |
| 22548 | version_type=linux |
| 22549 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22550 | shlibpath_var=LIBPATH |
| 22551 | |
| 22552 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22553 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22554 | ;; |
| 22555 | |
| 22556 | aix4* | aix5*) |
| 22557 | version_type=linux |
| 22558 | need_lib_prefix=no |
| 22559 | need_version=no |
| 22560 | hardcode_into_libs=yes |
| 22561 | if test "$host_cpu" = ia64; then |
| 22562 | # AIX 5 supports IA64 |
| 22563 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22564 | shlibpath_var=LD_LIBRARY_PATH |
| 22565 | else |
| 22566 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22567 | # for dependence libraries. The import file would start with |
| 22568 | # the line `#! .'. This would cause the generated library to |
| 22569 | # depend on `.', always an invalid library. This was fixed in |
| 22570 | # development snapshots of GCC prior to 3.0. |
| 22571 | case $host_os in |
| 22572 | aix4 | aix4.[01] | aix4.[01].*) |
| 22573 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22574 | echo ' yes ' |
| 22575 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22576 | : |
| 22577 | else |
| 22578 | can_build_shared=no |
| 22579 | fi |
| 22580 | ;; |
| 22581 | esac |
| 22582 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22583 | # soname into executable. Probably we can add versioning support to |
| 22584 | # collect2, so additional links can be useful in future. |
| 22585 | if test "$aix_use_runtimelinking" = yes; then |
| 22586 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22587 | # instead of lib<name>.a to let people know that these are not |
| 22588 | # typical AIX shared libraries. |
| 22589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22590 | else |
| 22591 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22592 | # and later when we are not doing run time linking. |
| 22593 | library_names_spec='${libname}${release}.a $libname.a' |
| 22594 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22595 | fi |
| 22596 | shlibpath_var=LIBPATH |
| 22597 | fi |
| 22598 | ;; |
| 22599 | |
| 22600 | amigaos*) |
| 22601 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22602 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22603 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22604 | ;; |
| 22605 | |
| 22606 | beos*) |
| 22607 | library_names_spec='${libname}${shared_ext}' |
| 22608 | dynamic_linker="$host_os ld.so" |
| 22609 | shlibpath_var=LIBRARY_PATH |
| 22610 | ;; |
| 22611 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22612 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22613 | version_type=linux |
| 22614 | need_version=no |
| 22615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22616 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22617 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22618 | shlibpath_var=LD_LIBRARY_PATH |
| 22619 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22620 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22621 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22622 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22623 | # libtool to hard-code these into programs |
| 22624 | ;; |
| 22625 | |
| 22626 | cygwin* | mingw* | pw32*) |
| 22627 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22628 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22629 | need_version=no |
| 22630 | need_lib_prefix=no |
| 22631 | |
| 22632 | case $GCC,$host_os in |
| 22633 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22634 | library_names_spec='$libname.dll.a' |
| 22635 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22636 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22637 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22638 | dldir=$destdir/`dirname \$dlpath`~ |
| 22639 | test -d \$dldir || mkdir -p \$dldir~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22640 | $install_prog $dir/$dlname \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22641 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22642 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22643 | $rm \$dlpath' |
| 22644 | shlibpath_overrides_runpath=yes |
| 22645 | |
| 22646 | case $host_os in |
| 22647 | cygwin*) |
| 22648 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22649 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22650 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22651 | ;; |
| 22652 | mingw*) |
| 22653 | # MinGW DLLs use traditional 'lib' prefix |
| 22654 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22655 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22656 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22657 | # It is most probably a Windows format PATH printed by |
| 22658 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22659 | # path with ; separators, and with drive letters. We can handle the |
| 22660 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22661 | # especially as we might pass files found there to a mingw objdump, |
| 22662 | # which wouldn't understand a cygwinified path. Ahh. |
| 22663 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22664 | else |
| 22665 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22666 | fi |
| 22667 | ;; |
| 22668 | pw32*) |
| 22669 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 22670 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 22671 | ;; |
| 22672 | esac |
| 22673 | ;; |
| 22674 | |
| 22675 | *) |
| 22676 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22677 | ;; |
| 22678 | esac |
| 22679 | dynamic_linker='Win32 ld.exe' |
| 22680 | # FIXME: first we should search . and the directory the executable is in |
| 22681 | shlibpath_var=PATH |
| 22682 | ;; |
| 22683 | |
| 22684 | darwin* | rhapsody*) |
| 22685 | dynamic_linker="$host_os dyld" |
| 22686 | version_type=darwin |
| 22687 | need_lib_prefix=no |
| 22688 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22689 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22690 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22691 | shlibpath_overrides_runpath=yes |
| 22692 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22693 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22694 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22695 | if test "$GCC" = yes; then |
| 22696 | 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"` |
| 22697 | else |
| 22698 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22699 | fi |
| 22700 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22701 | ;; |
| 22702 | |
| 22703 | dgux*) |
| 22704 | version_type=linux |
| 22705 | need_lib_prefix=no |
| 22706 | need_version=no |
| 22707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22708 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22709 | shlibpath_var=LD_LIBRARY_PATH |
| 22710 | ;; |
| 22711 | |
| 22712 | freebsd1*) |
| 22713 | dynamic_linker=no |
| 22714 | ;; |
| 22715 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22716 | kfreebsd*-gnu) |
| 22717 | version_type=linux |
| 22718 | need_lib_prefix=no |
| 22719 | need_version=no |
| 22720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22721 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22722 | shlibpath_var=LD_LIBRARY_PATH |
| 22723 | shlibpath_overrides_runpath=no |
| 22724 | hardcode_into_libs=yes |
| 22725 | dynamic_linker='GNU ld.so' |
| 22726 | ;; |
| 22727 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22728 | freebsd*) |
| 22729 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 22730 | version_type=freebsd-$objformat |
| 22731 | case $version_type in |
| 22732 | freebsd-elf*) |
| 22733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22734 | need_version=no |
| 22735 | need_lib_prefix=no |
| 22736 | ;; |
| 22737 | freebsd-*) |
| 22738 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22739 | need_version=yes |
| 22740 | ;; |
| 22741 | esac |
| 22742 | shlibpath_var=LD_LIBRARY_PATH |
| 22743 | case $host_os in |
| 22744 | freebsd2*) |
| 22745 | shlibpath_overrides_runpath=yes |
| 22746 | ;; |
| 22747 | freebsd3.01* | freebsdelf3.01*) |
| 22748 | shlibpath_overrides_runpath=yes |
| 22749 | hardcode_into_libs=yes |
| 22750 | ;; |
| 22751 | *) # from 3.2 on |
| 22752 | shlibpath_overrides_runpath=no |
| 22753 | hardcode_into_libs=yes |
| 22754 | ;; |
| 22755 | esac |
| 22756 | ;; |
| 22757 | |
| 22758 | gnu*) |
| 22759 | version_type=linux |
| 22760 | need_lib_prefix=no |
| 22761 | need_version=no |
| 22762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22763 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22764 | shlibpath_var=LD_LIBRARY_PATH |
| 22765 | hardcode_into_libs=yes |
| 22766 | ;; |
| 22767 | |
| 22768 | hpux9* | hpux10* | hpux11*) |
| 22769 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22770 | # link against other versions. |
| 22771 | version_type=sunos |
| 22772 | need_lib_prefix=no |
| 22773 | need_version=no |
| 22774 | case "$host_cpu" in |
| 22775 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22776 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22777 | hardcode_into_libs=yes |
| 22778 | dynamic_linker="$host_os dld.so" |
| 22779 | shlibpath_var=LD_LIBRARY_PATH |
| 22780 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22782 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22783 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22784 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22785 | else |
| 22786 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22787 | fi |
| 22788 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22789 | ;; |
| 22790 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22791 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22792 | hardcode_into_libs=yes |
| 22793 | dynamic_linker="$host_os dld.sl" |
| 22794 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22795 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22797 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22798 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22799 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22800 | ;; |
| 22801 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22802 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22803 | dynamic_linker="$host_os dld.sl" |
| 22804 | shlibpath_var=SHLIB_PATH |
| 22805 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22807 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22808 | ;; |
| 22809 | esac |
| 22810 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22811 | postinstall_cmds='chmod 555 $lib' |
| 22812 | ;; |
| 22813 | |
| 22814 | irix5* | irix6* | nonstopux*) |
| 22815 | case $host_os in |
| 22816 | nonstopux*) version_type=nonstopux ;; |
| 22817 | *) |
| 22818 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22819 | version_type=linux |
| 22820 | else |
| 22821 | version_type=irix |
| 22822 | fi ;; |
| 22823 | esac |
| 22824 | need_lib_prefix=no |
| 22825 | need_version=no |
| 22826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22828 | case $host_os in |
| 22829 | irix5* | nonstopux*) |
| 22830 | libsuff= shlibsuff= |
| 22831 | ;; |
| 22832 | *) |
| 22833 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22834 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22835 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22836 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22837 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22838 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22839 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22840 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22841 | esac |
| 22842 | ;; |
| 22843 | esac |
| 22844 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22845 | shlibpath_overrides_runpath=no |
| 22846 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22847 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22848 | hardcode_into_libs=yes |
| 22849 | ;; |
| 22850 | |
| 22851 | # No shared lib support for Linux oldld, aout, or coff. |
| 22852 | linux*oldld* | linux*aout* | linux*coff*) |
| 22853 | dynamic_linker=no |
| 22854 | ;; |
| 22855 | |
| 22856 | # This must be Linux ELF. |
| 22857 | linux*) |
| 22858 | version_type=linux |
| 22859 | need_lib_prefix=no |
| 22860 | need_version=no |
| 22861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22863 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22864 | shlibpath_var=LD_LIBRARY_PATH |
| 22865 | shlibpath_overrides_runpath=no |
| 22866 | # This implies no fast_install, which is unacceptable. |
| 22867 | # Some rework will be needed to allow for fast_install |
| 22868 | # before this can be enabled. |
| 22869 | hardcode_into_libs=yes |
| 22870 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22871 | # Append ld.so.conf contents to the search path |
| 22872 | if test -f /etc/ld.so.conf; then |
| 22873 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 22874 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22875 | fi |
| 22876 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22877 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22878 | # powerpc, because MkLinux only supported shared libraries with the |
| 22879 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22880 | # most powerpc-linux boxes support dynamic linking these days and |
| 22881 | # people can always --disable-shared, the test was removed, and we |
| 22882 | # assume the GNU/Linux dynamic linker is in use. |
| 22883 | dynamic_linker='GNU/Linux ld.so' |
| 22884 | ;; |
| 22885 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22886 | knetbsd*-gnu) |
| 22887 | version_type=linux |
| 22888 | need_lib_prefix=no |
| 22889 | need_version=no |
| 22890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22891 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22892 | shlibpath_var=LD_LIBRARY_PATH |
| 22893 | shlibpath_overrides_runpath=no |
| 22894 | hardcode_into_libs=yes |
| 22895 | dynamic_linker='GNU ld.so' |
| 22896 | ;; |
| 22897 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22898 | netbsd*) |
| 22899 | version_type=sunos |
| 22900 | need_lib_prefix=no |
| 22901 | need_version=no |
| 22902 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22904 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22905 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22906 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22908 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22909 | dynamic_linker='NetBSD ld.elf_so' |
| 22910 | fi |
| 22911 | shlibpath_var=LD_LIBRARY_PATH |
| 22912 | shlibpath_overrides_runpath=yes |
| 22913 | hardcode_into_libs=yes |
| 22914 | ;; |
| 22915 | |
| 22916 | newsos6) |
| 22917 | version_type=linux |
| 22918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22919 | shlibpath_var=LD_LIBRARY_PATH |
| 22920 | shlibpath_overrides_runpath=yes |
| 22921 | ;; |
| 22922 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22923 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22924 | version_type=linux |
| 22925 | need_lib_prefix=no |
| 22926 | need_version=no |
| 22927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22928 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22929 | shlibpath_var=LD_LIBRARY_PATH |
| 22930 | shlibpath_overrides_runpath=yes |
| 22931 | ;; |
| 22932 | |
| 22933 | openbsd*) |
| 22934 | version_type=sunos |
| 22935 | need_lib_prefix=no |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22936 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22938 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22939 | shlibpath_var=LD_LIBRARY_PATH |
| 22940 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22941 | case $host_os in |
| 22942 | openbsd2.[89] | openbsd2.[89].*) |
| 22943 | shlibpath_overrides_runpath=no |
| 22944 | ;; |
| 22945 | *) |
| 22946 | shlibpath_overrides_runpath=yes |
| 22947 | ;; |
| 22948 | esac |
| 22949 | else |
| 22950 | shlibpath_overrides_runpath=yes |
| 22951 | fi |
| 22952 | ;; |
| 22953 | |
| 22954 | os2*) |
| 22955 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22956 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22957 | need_lib_prefix=no |
| 22958 | library_names_spec='$libname${shared_ext} $libname.a' |
| 22959 | dynamic_linker='OS/2 ld.exe' |
| 22960 | shlibpath_var=LIBPATH |
| 22961 | ;; |
| 22962 | |
| 22963 | osf3* | osf4* | osf5*) |
| 22964 | version_type=osf |
| 22965 | need_lib_prefix=no |
| 22966 | need_version=no |
| 22967 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22969 | shlibpath_var=LD_LIBRARY_PATH |
| 22970 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 22971 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 22972 | ;; |
| 22973 | |
| 22974 | sco3.2v5*) |
| 22975 | version_type=osf |
| 22976 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22978 | shlibpath_var=LD_LIBRARY_PATH |
| 22979 | ;; |
| 22980 | |
| 22981 | solaris*) |
| 22982 | version_type=linux |
| 22983 | need_lib_prefix=no |
| 22984 | need_version=no |
| 22985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22986 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22987 | shlibpath_var=LD_LIBRARY_PATH |
| 22988 | shlibpath_overrides_runpath=yes |
| 22989 | hardcode_into_libs=yes |
| 22990 | # ldd complains unless libraries are executable |
| 22991 | postinstall_cmds='chmod +x $lib' |
| 22992 | ;; |
| 22993 | |
| 22994 | sunos4*) |
| 22995 | version_type=sunos |
| 22996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22997 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 22998 | shlibpath_var=LD_LIBRARY_PATH |
| 22999 | shlibpath_overrides_runpath=yes |
| 23000 | if test "$with_gnu_ld" = yes; then |
| 23001 | need_lib_prefix=no |
| 23002 | fi |
| 23003 | need_version=yes |
| 23004 | ;; |
| 23005 | |
| 23006 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 23007 | version_type=linux |
| 23008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23009 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23010 | shlibpath_var=LD_LIBRARY_PATH |
| 23011 | case $host_vendor in |
| 23012 | sni) |
| 23013 | shlibpath_overrides_runpath=no |
| 23014 | need_lib_prefix=no |
| 23015 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23016 | runpath_var=LD_RUN_PATH |
| 23017 | ;; |
| 23018 | siemens) |
| 23019 | need_lib_prefix=no |
| 23020 | ;; |
| 23021 | motorola) |
| 23022 | need_lib_prefix=no |
| 23023 | need_version=no |
| 23024 | shlibpath_overrides_runpath=no |
| 23025 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23026 | ;; |
| 23027 | esac |
| 23028 | ;; |
| 23029 | |
| 23030 | sysv4*MP*) |
| 23031 | if test -d /usr/nec ;then |
| 23032 | version_type=linux |
| 23033 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23034 | soname_spec='$libname${shared_ext}.$major' |
| 23035 | shlibpath_var=LD_LIBRARY_PATH |
| 23036 | fi |
| 23037 | ;; |
| 23038 | |
| 23039 | uts4*) |
| 23040 | version_type=linux |
| 23041 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23042 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23043 | shlibpath_var=LD_LIBRARY_PATH |
| 23044 | ;; |
| 23045 | |
| 23046 | *) |
| 23047 | dynamic_linker=no |
| 23048 | ;; |
| 23049 | esac |
| 23050 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23051 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 23052 | test "$dynamic_linker" = no && can_build_shared=no |
| 23053 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23054 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23055 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 23056 | hardcode_action_GCJ= |
| 23057 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 23058 | test -n "$runpath_var_GCJ" || \ |
| 23059 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 23060 | |
| 23061 | # We can hardcode non-existant directories. |
| 23062 | if test "$hardcode_direct_GCJ" != no && |
| 23063 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23064 | # have to relink, otherwise we might link with an installed library |
| 23065 | # when we should be linking with a yet-to-be-installed one |
| 23066 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 23067 | test "$hardcode_minus_L_GCJ" != no; then |
| 23068 | # Linking always hardcodes the temporary library directory. |
| 23069 | hardcode_action_GCJ=relink |
| 23070 | else |
| 23071 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23072 | hardcode_action_GCJ=immediate |
| 23073 | fi |
| 23074 | else |
| 23075 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23076 | # directories. |
| 23077 | hardcode_action_GCJ=unsupported |
| 23078 | fi |
| 23079 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 23080 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 23081 | |
| 23082 | if test "$hardcode_action_GCJ" = relink; then |
| 23083 | # Fast installation is not supported |
| 23084 | enable_fast_install=no |
| 23085 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23086 | test "$enable_shared" = no; then |
| 23087 | # Fast installation is not necessary |
| 23088 | enable_fast_install=needless |
| 23089 | fi |
| 23090 | |
| 23091 | striplib= |
| 23092 | old_striplib= |
| 23093 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 23094 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 23095 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 23096 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 23097 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 23098 | echo "$as_me:$LINENO: result: yes" >&5 |
| 23099 | echo "${ECHO_T}yes" >&6 |
| 23100 | else |
| 23101 | # FIXME - insert some real tests, host_os isn't really good enough |
| 23102 | case $host_os in |
| 23103 | darwin*) |
| 23104 | if test -n "$STRIP" ; then |
| 23105 | striplib="$STRIP -x" |
| 23106 | echo "$as_me:$LINENO: result: yes" >&5 |
| 23107 | echo "${ECHO_T}yes" >&6 |
| 23108 | else |
| 23109 | echo "$as_me:$LINENO: result: no" >&5 |
| 23110 | echo "${ECHO_T}no" >&6 |
| 23111 | fi |
| 23112 | ;; |
| 23113 | *) |
| 23114 | echo "$as_me:$LINENO: result: no" >&5 |
| 23115 | echo "${ECHO_T}no" >&6 |
| 23116 | ;; |
| 23117 | esac |
| 23118 | fi |
| 23119 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23120 | if test "x$enable_dlopen" != xyes; then |
| 23121 | enable_dlopen=unknown |
| 23122 | enable_dlopen_self=unknown |
| 23123 | enable_dlopen_self_static=unknown |
| 23124 | else |
| 23125 | lt_cv_dlopen=no |
| 23126 | lt_cv_dlopen_libs= |
| 23127 | |
| 23128 | case $host_os in |
| 23129 | beos*) |
| 23130 | lt_cv_dlopen="load_add_on" |
| 23131 | lt_cv_dlopen_libs= |
| 23132 | lt_cv_dlopen_self=yes |
| 23133 | ;; |
| 23134 | |
| 23135 | mingw* | pw32*) |
| 23136 | lt_cv_dlopen="LoadLibrary" |
| 23137 | lt_cv_dlopen_libs= |
| 23138 | ;; |
| 23139 | |
| 23140 | cygwin*) |
| 23141 | lt_cv_dlopen="dlopen" |
| 23142 | lt_cv_dlopen_libs= |
| 23143 | ;; |
| 23144 | |
| 23145 | darwin*) |
| 23146 | # if libdl is installed we need to link against it |
| 23147 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 23148 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 23149 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 23150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23151 | else |
| 23152 | ac_check_lib_save_LIBS=$LIBS |
| 23153 | LIBS="-ldl $LIBS" |
| 23154 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23155 | /* confdefs.h. */ |
| 23156 | _ACEOF |
| 23157 | cat confdefs.h >>conftest.$ac_ext |
| 23158 | cat >>conftest.$ac_ext <<_ACEOF |
| 23159 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23160 | |
| 23161 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23162 | #ifdef __cplusplus |
| 23163 | extern "C" |
| 23164 | #endif |
| 23165 | /* We use char because int might match the return type of a gcc2 |
| 23166 | builtin and then its argument prototype would still apply. */ |
| 23167 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23168 | int |
| 23169 | main () |
| 23170 | { |
| 23171 | dlopen (); |
| 23172 | ; |
| 23173 | return 0; |
| 23174 | } |
| 23175 | _ACEOF |
| 23176 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23178 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23179 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23181 | rm -f conftest.er1 |
| 23182 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23184 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23185 | { ac_try='test -z "$ac_c_werror_flag" |
| 23186 | || test ! -s conftest.err' |
| 23187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23188 | (eval $ac_try) 2>&5 |
| 23189 | ac_status=$? |
| 23190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23191 | (exit $ac_status); }; } && |
| 23192 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23194 | (eval $ac_try) 2>&5 |
| 23195 | ac_status=$? |
| 23196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23197 | (exit $ac_status); }; }; then |
| 23198 | ac_cv_lib_dl_dlopen=yes |
| 23199 | else |
| 23200 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23202 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23203 | ac_cv_lib_dl_dlopen=no |
| 23204 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23205 | rm -f conftest.err conftest.$ac_objext \ |
| 23206 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23207 | LIBS=$ac_check_lib_save_LIBS |
| 23208 | fi |
| 23209 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 23210 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 23211 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 23212 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 23213 | else |
| 23214 | |
| 23215 | lt_cv_dlopen="dyld" |
| 23216 | lt_cv_dlopen_libs= |
| 23217 | lt_cv_dlopen_self=yes |
| 23218 | |
| 23219 | fi |
| 23220 | |
| 23221 | ;; |
| 23222 | |
| 23223 | *) |
| 23224 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 23225 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 23226 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 23227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23228 | else |
| 23229 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23230 | /* confdefs.h. */ |
| 23231 | _ACEOF |
| 23232 | cat confdefs.h >>conftest.$ac_ext |
| 23233 | cat >>conftest.$ac_ext <<_ACEOF |
| 23234 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23235 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 23236 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23237 | #define shl_load innocuous_shl_load |
| 23238 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23239 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23240 | which can conflict with char shl_load (); below. |
| 23241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23242 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23243 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23244 | #ifdef __STDC__ |
| 23245 | # include <limits.h> |
| 23246 | #else |
| 23247 | # include <assert.h> |
| 23248 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23249 | |
| 23250 | #undef shl_load |
| 23251 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23252 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23253 | #ifdef __cplusplus |
| 23254 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23255 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23256 | #endif |
| 23257 | /* We use char because int might match the return type of a gcc2 |
| 23258 | builtin and then its argument prototype would still apply. */ |
| 23259 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23260 | /* The GNU C library defines this for functions which it implements |
| 23261 | to always fail with ENOSYS. Some functions are actually named |
| 23262 | something starting with __ and the normal name is an alias. */ |
| 23263 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 23264 | choke me |
| 23265 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23266 | char (*f) () = shl_load; |
| 23267 | #endif |
| 23268 | #ifdef __cplusplus |
| 23269 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23270 | #endif |
| 23271 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23272 | int |
| 23273 | main () |
| 23274 | { |
| 23275 | return f != shl_load; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23276 | ; |
| 23277 | return 0; |
| 23278 | } |
| 23279 | _ACEOF |
| 23280 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23282 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23283 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23285 | rm -f conftest.er1 |
| 23286 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23288 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23289 | { ac_try='test -z "$ac_c_werror_flag" |
| 23290 | || test ! -s conftest.err' |
| 23291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23292 | (eval $ac_try) 2>&5 |
| 23293 | ac_status=$? |
| 23294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23295 | (exit $ac_status); }; } && |
| 23296 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23298 | (eval $ac_try) 2>&5 |
| 23299 | ac_status=$? |
| 23300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23301 | (exit $ac_status); }; }; then |
| 23302 | ac_cv_func_shl_load=yes |
| 23303 | else |
| 23304 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23306 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23307 | ac_cv_func_shl_load=no |
| 23308 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23309 | rm -f conftest.err conftest.$ac_objext \ |
| 23310 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23311 | fi |
| 23312 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 23313 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 23314 | if test $ac_cv_func_shl_load = yes; then |
| 23315 | lt_cv_dlopen="shl_load" |
| 23316 | else |
| 23317 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 23318 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 23319 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 23320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23321 | else |
| 23322 | ac_check_lib_save_LIBS=$LIBS |
| 23323 | LIBS="-ldld $LIBS" |
| 23324 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23325 | /* confdefs.h. */ |
| 23326 | _ACEOF |
| 23327 | cat confdefs.h >>conftest.$ac_ext |
| 23328 | cat >>conftest.$ac_ext <<_ACEOF |
| 23329 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23330 | |
| 23331 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23332 | #ifdef __cplusplus |
| 23333 | extern "C" |
| 23334 | #endif |
| 23335 | /* We use char because int might match the return type of a gcc2 |
| 23336 | builtin and then its argument prototype would still apply. */ |
| 23337 | char shl_load (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23338 | int |
| 23339 | main () |
| 23340 | { |
| 23341 | shl_load (); |
| 23342 | ; |
| 23343 | return 0; |
| 23344 | } |
| 23345 | _ACEOF |
| 23346 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23348 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23349 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23351 | rm -f conftest.er1 |
| 23352 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23354 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23355 | { ac_try='test -z "$ac_c_werror_flag" |
| 23356 | || test ! -s conftest.err' |
| 23357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23358 | (eval $ac_try) 2>&5 |
| 23359 | ac_status=$? |
| 23360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23361 | (exit $ac_status); }; } && |
| 23362 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23364 | (eval $ac_try) 2>&5 |
| 23365 | ac_status=$? |
| 23366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23367 | (exit $ac_status); }; }; then |
| 23368 | ac_cv_lib_dld_shl_load=yes |
| 23369 | else |
| 23370 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23372 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23373 | ac_cv_lib_dld_shl_load=no |
| 23374 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23375 | rm -f conftest.err conftest.$ac_objext \ |
| 23376 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23377 | LIBS=$ac_check_lib_save_LIBS |
| 23378 | fi |
| 23379 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 23380 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 23381 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 23382 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 23383 | else |
| 23384 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 23385 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 23386 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 23387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23388 | else |
| 23389 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23390 | /* confdefs.h. */ |
| 23391 | _ACEOF |
| 23392 | cat confdefs.h >>conftest.$ac_ext |
| 23393 | cat >>conftest.$ac_ext <<_ACEOF |
| 23394 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23395 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 23396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23397 | #define dlopen innocuous_dlopen |
| 23398 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23399 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23400 | which can conflict with char dlopen (); below. |
| 23401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23402 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23403 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23404 | #ifdef __STDC__ |
| 23405 | # include <limits.h> |
| 23406 | #else |
| 23407 | # include <assert.h> |
| 23408 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23409 | |
| 23410 | #undef dlopen |
| 23411 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23412 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23413 | #ifdef __cplusplus |
| 23414 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23415 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23416 | #endif |
| 23417 | /* We use char because int might match the return type of a gcc2 |
| 23418 | builtin and then its argument prototype would still apply. */ |
| 23419 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23420 | /* The GNU C library defines this for functions which it implements |
| 23421 | to always fail with ENOSYS. Some functions are actually named |
| 23422 | something starting with __ and the normal name is an alias. */ |
| 23423 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 23424 | choke me |
| 23425 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23426 | char (*f) () = dlopen; |
| 23427 | #endif |
| 23428 | #ifdef __cplusplus |
| 23429 | } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23430 | #endif |
| 23431 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23432 | int |
| 23433 | main () |
| 23434 | { |
| 23435 | return f != dlopen; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23436 | ; |
| 23437 | return 0; |
| 23438 | } |
| 23439 | _ACEOF |
| 23440 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23442 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23443 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23445 | rm -f conftest.er1 |
| 23446 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23448 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23449 | { ac_try='test -z "$ac_c_werror_flag" |
| 23450 | || test ! -s conftest.err' |
| 23451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23452 | (eval $ac_try) 2>&5 |
| 23453 | ac_status=$? |
| 23454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23455 | (exit $ac_status); }; } && |
| 23456 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23458 | (eval $ac_try) 2>&5 |
| 23459 | ac_status=$? |
| 23460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23461 | (exit $ac_status); }; }; then |
| 23462 | ac_cv_func_dlopen=yes |
| 23463 | else |
| 23464 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23466 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23467 | ac_cv_func_dlopen=no |
| 23468 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23469 | rm -f conftest.err conftest.$ac_objext \ |
| 23470 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23471 | fi |
| 23472 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 23473 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 23474 | if test $ac_cv_func_dlopen = yes; then |
| 23475 | lt_cv_dlopen="dlopen" |
| 23476 | else |
| 23477 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 23478 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 23479 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 23480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23481 | else |
| 23482 | ac_check_lib_save_LIBS=$LIBS |
| 23483 | LIBS="-ldl $LIBS" |
| 23484 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23485 | /* confdefs.h. */ |
| 23486 | _ACEOF |
| 23487 | cat confdefs.h >>conftest.$ac_ext |
| 23488 | cat >>conftest.$ac_ext <<_ACEOF |
| 23489 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23490 | |
| 23491 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23492 | #ifdef __cplusplus |
| 23493 | extern "C" |
| 23494 | #endif |
| 23495 | /* We use char because int might match the return type of a gcc2 |
| 23496 | builtin and then its argument prototype would still apply. */ |
| 23497 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23498 | int |
| 23499 | main () |
| 23500 | { |
| 23501 | dlopen (); |
| 23502 | ; |
| 23503 | return 0; |
| 23504 | } |
| 23505 | _ACEOF |
| 23506 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23508 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23509 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23511 | rm -f conftest.er1 |
| 23512 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23514 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23515 | { ac_try='test -z "$ac_c_werror_flag" |
| 23516 | || test ! -s conftest.err' |
| 23517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23518 | (eval $ac_try) 2>&5 |
| 23519 | ac_status=$? |
| 23520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23521 | (exit $ac_status); }; } && |
| 23522 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23524 | (eval $ac_try) 2>&5 |
| 23525 | ac_status=$? |
| 23526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23527 | (exit $ac_status); }; }; then |
| 23528 | ac_cv_lib_dl_dlopen=yes |
| 23529 | else |
| 23530 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23532 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23533 | ac_cv_lib_dl_dlopen=no |
| 23534 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23535 | rm -f conftest.err conftest.$ac_objext \ |
| 23536 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23537 | LIBS=$ac_check_lib_save_LIBS |
| 23538 | fi |
| 23539 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 23540 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 23541 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 23542 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 23543 | else |
| 23544 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 23545 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 23546 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 23547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23548 | else |
| 23549 | ac_check_lib_save_LIBS=$LIBS |
| 23550 | LIBS="-lsvld $LIBS" |
| 23551 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23552 | /* confdefs.h. */ |
| 23553 | _ACEOF |
| 23554 | cat confdefs.h >>conftest.$ac_ext |
| 23555 | cat >>conftest.$ac_ext <<_ACEOF |
| 23556 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23557 | |
| 23558 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23559 | #ifdef __cplusplus |
| 23560 | extern "C" |
| 23561 | #endif |
| 23562 | /* We use char because int might match the return type of a gcc2 |
| 23563 | builtin and then its argument prototype would still apply. */ |
| 23564 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23565 | int |
| 23566 | main () |
| 23567 | { |
| 23568 | dlopen (); |
| 23569 | ; |
| 23570 | return 0; |
| 23571 | } |
| 23572 | _ACEOF |
| 23573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23575 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23576 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23578 | rm -f conftest.er1 |
| 23579 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23581 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23582 | { ac_try='test -z "$ac_c_werror_flag" |
| 23583 | || test ! -s conftest.err' |
| 23584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23585 | (eval $ac_try) 2>&5 |
| 23586 | ac_status=$? |
| 23587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23588 | (exit $ac_status); }; } && |
| 23589 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23591 | (eval $ac_try) 2>&5 |
| 23592 | ac_status=$? |
| 23593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23594 | (exit $ac_status); }; }; then |
| 23595 | ac_cv_lib_svld_dlopen=yes |
| 23596 | else |
| 23597 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23599 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23600 | ac_cv_lib_svld_dlopen=no |
| 23601 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23602 | rm -f conftest.err conftest.$ac_objext \ |
| 23603 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23604 | LIBS=$ac_check_lib_save_LIBS |
| 23605 | fi |
| 23606 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 23607 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 23608 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 23609 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 23610 | else |
| 23611 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 23612 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 23613 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 23614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23615 | else |
| 23616 | ac_check_lib_save_LIBS=$LIBS |
| 23617 | LIBS="-ldld $LIBS" |
| 23618 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23619 | /* confdefs.h. */ |
| 23620 | _ACEOF |
| 23621 | cat confdefs.h >>conftest.$ac_ext |
| 23622 | cat >>conftest.$ac_ext <<_ACEOF |
| 23623 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23624 | |
| 23625 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 23626 | #ifdef __cplusplus |
| 23627 | extern "C" |
| 23628 | #endif |
| 23629 | /* We use char because int might match the return type of a gcc2 |
| 23630 | builtin and then its argument prototype would still apply. */ |
| 23631 | char dld_link (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23632 | int |
| 23633 | main () |
| 23634 | { |
| 23635 | dld_link (); |
| 23636 | ; |
| 23637 | return 0; |
| 23638 | } |
| 23639 | _ACEOF |
| 23640 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23642 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23643 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23645 | rm -f conftest.er1 |
| 23646 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23648 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23649 | { ac_try='test -z "$ac_c_werror_flag" |
| 23650 | || test ! -s conftest.err' |
| 23651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23652 | (eval $ac_try) 2>&5 |
| 23653 | ac_status=$? |
| 23654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23655 | (exit $ac_status); }; } && |
| 23656 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23658 | (eval $ac_try) 2>&5 |
| 23659 | ac_status=$? |
| 23660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23661 | (exit $ac_status); }; }; then |
| 23662 | ac_cv_lib_dld_dld_link=yes |
| 23663 | else |
| 23664 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23666 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23667 | ac_cv_lib_dld_dld_link=no |
| 23668 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23669 | rm -f conftest.err conftest.$ac_objext \ |
| 23670 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23671 | LIBS=$ac_check_lib_save_LIBS |
| 23672 | fi |
| 23673 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 23674 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 23675 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 23676 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 23677 | fi |
| 23678 | |
| 23679 | |
| 23680 | fi |
| 23681 | |
| 23682 | |
| 23683 | fi |
| 23684 | |
| 23685 | |
| 23686 | fi |
| 23687 | |
| 23688 | |
| 23689 | fi |
| 23690 | |
| 23691 | |
| 23692 | fi |
| 23693 | |
| 23694 | ;; |
| 23695 | esac |
| 23696 | |
| 23697 | if test "x$lt_cv_dlopen" != xno; then |
| 23698 | enable_dlopen=yes |
| 23699 | else |
| 23700 | enable_dlopen=no |
| 23701 | fi |
| 23702 | |
| 23703 | case $lt_cv_dlopen in |
| 23704 | dlopen) |
| 23705 | save_CPPFLAGS="$CPPFLAGS" |
| 23706 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 23707 | |
| 23708 | save_LDFLAGS="$LDFLAGS" |
| 23709 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 23710 | |
| 23711 | save_LIBS="$LIBS" |
| 23712 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 23713 | |
| 23714 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 23715 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 23716 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 23717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23718 | else |
| 23719 | if test "$cross_compiling" = yes; then : |
| 23720 | lt_cv_dlopen_self=cross |
| 23721 | else |
| 23722 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 23723 | lt_status=$lt_dlunknown |
| 23724 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 23725 | #line 23725 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23726 | #include "confdefs.h" |
| 23727 | |
| 23728 | #if HAVE_DLFCN_H |
| 23729 | #include <dlfcn.h> |
| 23730 | #endif |
| 23731 | |
| 23732 | #include <stdio.h> |
| 23733 | |
| 23734 | #ifdef RTLD_GLOBAL |
| 23735 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 23736 | #else |
| 23737 | # ifdef DL_GLOBAL |
| 23738 | # define LT_DLGLOBAL DL_GLOBAL |
| 23739 | # else |
| 23740 | # define LT_DLGLOBAL 0 |
| 23741 | # endif |
| 23742 | #endif |
| 23743 | |
| 23744 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 23745 | find out it does not work in some platform. */ |
| 23746 | #ifndef LT_DLLAZY_OR_NOW |
| 23747 | # ifdef RTLD_LAZY |
| 23748 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 23749 | # else |
| 23750 | # ifdef DL_LAZY |
| 23751 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 23752 | # else |
| 23753 | # ifdef RTLD_NOW |
| 23754 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 23755 | # else |
| 23756 | # ifdef DL_NOW |
| 23757 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 23758 | # else |
| 23759 | # define LT_DLLAZY_OR_NOW 0 |
| 23760 | # endif |
| 23761 | # endif |
| 23762 | # endif |
| 23763 | # endif |
| 23764 | #endif |
| 23765 | |
| 23766 | #ifdef __cplusplus |
| 23767 | extern "C" void exit (int); |
| 23768 | #endif |
| 23769 | |
| 23770 | void fnord() { int i=42;} |
| 23771 | int main () |
| 23772 | { |
| 23773 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 23774 | int status = $lt_dlunknown; |
| 23775 | |
| 23776 | if (self) |
| 23777 | { |
| 23778 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 23779 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 23780 | /* dlclose (self); */ |
| 23781 | } |
| 23782 | |
| 23783 | exit (status); |
| 23784 | } |
| 23785 | EOF |
| 23786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23787 | (eval $ac_link) 2>&5 |
| 23788 | ac_status=$? |
| 23789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23790 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 23791 | (./conftest; exit; ) 2>/dev/null |
| 23792 | lt_status=$? |
| 23793 | case x$lt_status in |
| 23794 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 23795 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 23796 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 23797 | esac |
| 23798 | else : |
| 23799 | # compilation failed |
| 23800 | lt_cv_dlopen_self=no |
| 23801 | fi |
| 23802 | fi |
| 23803 | rm -fr conftest* |
| 23804 | |
| 23805 | |
| 23806 | fi |
| 23807 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 23808 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 23809 | |
| 23810 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 23811 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 23812 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 23813 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 23814 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 23815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23816 | else |
| 23817 | if test "$cross_compiling" = yes; then : |
| 23818 | lt_cv_dlopen_self_static=cross |
| 23819 | else |
| 23820 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 23821 | lt_status=$lt_dlunknown |
| 23822 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 23823 | #line 23823 "configure" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23824 | #include "confdefs.h" |
| 23825 | |
| 23826 | #if HAVE_DLFCN_H |
| 23827 | #include <dlfcn.h> |
| 23828 | #endif |
| 23829 | |
| 23830 | #include <stdio.h> |
| 23831 | |
| 23832 | #ifdef RTLD_GLOBAL |
| 23833 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 23834 | #else |
| 23835 | # ifdef DL_GLOBAL |
| 23836 | # define LT_DLGLOBAL DL_GLOBAL |
| 23837 | # else |
| 23838 | # define LT_DLGLOBAL 0 |
| 23839 | # endif |
| 23840 | #endif |
| 23841 | |
| 23842 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 23843 | find out it does not work in some platform. */ |
| 23844 | #ifndef LT_DLLAZY_OR_NOW |
| 23845 | # ifdef RTLD_LAZY |
| 23846 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 23847 | # else |
| 23848 | # ifdef DL_LAZY |
| 23849 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 23850 | # else |
| 23851 | # ifdef RTLD_NOW |
| 23852 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 23853 | # else |
| 23854 | # ifdef DL_NOW |
| 23855 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 23856 | # else |
| 23857 | # define LT_DLLAZY_OR_NOW 0 |
| 23858 | # endif |
| 23859 | # endif |
| 23860 | # endif |
| 23861 | # endif |
| 23862 | #endif |
| 23863 | |
| 23864 | #ifdef __cplusplus |
| 23865 | extern "C" void exit (int); |
| 23866 | #endif |
| 23867 | |
| 23868 | void fnord() { int i=42;} |
| 23869 | int main () |
| 23870 | { |
| 23871 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 23872 | int status = $lt_dlunknown; |
| 23873 | |
| 23874 | if (self) |
| 23875 | { |
| 23876 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 23877 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 23878 | /* dlclose (self); */ |
| 23879 | } |
| 23880 | |
| 23881 | exit (status); |
| 23882 | } |
| 23883 | EOF |
| 23884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23885 | (eval $ac_link) 2>&5 |
| 23886 | ac_status=$? |
| 23887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23888 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 23889 | (./conftest; exit; ) 2>/dev/null |
| 23890 | lt_status=$? |
| 23891 | case x$lt_status in |
| 23892 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 23893 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 23894 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 23895 | esac |
| 23896 | else : |
| 23897 | # compilation failed |
| 23898 | lt_cv_dlopen_self_static=no |
| 23899 | fi |
| 23900 | fi |
| 23901 | rm -fr conftest* |
| 23902 | |
| 23903 | |
| 23904 | fi |
| 23905 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 23906 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 23907 | fi |
| 23908 | |
| 23909 | CPPFLAGS="$save_CPPFLAGS" |
| 23910 | LDFLAGS="$save_LDFLAGS" |
| 23911 | LIBS="$save_LIBS" |
| 23912 | ;; |
| 23913 | esac |
| 23914 | |
| 23915 | case $lt_cv_dlopen_self in |
| 23916 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 23917 | *) enable_dlopen_self=unknown ;; |
| 23918 | esac |
| 23919 | |
| 23920 | case $lt_cv_dlopen_self_static in |
| 23921 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 23922 | *) enable_dlopen_self_static=unknown ;; |
| 23923 | esac |
| 23924 | fi |
| 23925 | |
| 23926 | |
| 23927 | # The else clause should only fire when bootstrapping the |
| 23928 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23929 | # with your package, and you will get complaints that there are |
| 23930 | # no rules to generate ltmain.sh. |
| 23931 | if test -f "$ltmain"; then |
| 23932 | # See if we are running on zsh, and set the options which allow our commands through |
| 23933 | # without removal of \ escapes. |
| 23934 | if test -n "${ZSH_VERSION+set}" ; then |
| 23935 | setopt NO_GLOB_SUBST |
| 23936 | fi |
| 23937 | # Now quote all the things that may contain metacharacters while being |
| 23938 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23939 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23940 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 23941 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23942 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23943 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23944 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23945 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23946 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23947 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23948 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23949 | compiler_GCJ \ |
| 23950 | CC_GCJ \ |
| 23951 | LD_GCJ \ |
| 23952 | lt_prog_compiler_wl_GCJ \ |
| 23953 | lt_prog_compiler_pic_GCJ \ |
| 23954 | lt_prog_compiler_static_GCJ \ |
| 23955 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 23956 | export_dynamic_flag_spec_GCJ \ |
| 23957 | thread_safe_flag_spec_GCJ \ |
| 23958 | whole_archive_flag_spec_GCJ \ |
| 23959 | enable_shared_with_static_runtimes_GCJ \ |
| 23960 | old_archive_cmds_GCJ \ |
| 23961 | old_archive_from_new_cmds_GCJ \ |
| 23962 | predep_objects_GCJ \ |
| 23963 | postdep_objects_GCJ \ |
| 23964 | predeps_GCJ \ |
| 23965 | postdeps_GCJ \ |
| 23966 | compiler_lib_search_path_GCJ \ |
| 23967 | archive_cmds_GCJ \ |
| 23968 | archive_expsym_cmds_GCJ \ |
| 23969 | postinstall_cmds_GCJ \ |
| 23970 | postuninstall_cmds_GCJ \ |
| 23971 | old_archive_from_expsyms_cmds_GCJ \ |
| 23972 | allow_undefined_flag_GCJ \ |
| 23973 | no_undefined_flag_GCJ \ |
| 23974 | export_symbols_cmds_GCJ \ |
| 23975 | hardcode_libdir_flag_spec_GCJ \ |
| 23976 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 23977 | hardcode_libdir_separator_GCJ \ |
| 23978 | hardcode_automatic_GCJ \ |
| 23979 | module_cmds_GCJ \ |
| 23980 | module_expsym_cmds_GCJ \ |
| 23981 | lt_cv_prog_compiler_c_o_GCJ \ |
| 23982 | exclude_expsyms_GCJ \ |
| 23983 | include_expsyms_GCJ; do |
| 23984 | |
| 23985 | case $var in |
| 23986 | old_archive_cmds_GCJ | \ |
| 23987 | old_archive_from_new_cmds_GCJ | \ |
| 23988 | archive_cmds_GCJ | \ |
| 23989 | archive_expsym_cmds_GCJ | \ |
| 23990 | module_cmds_GCJ | \ |
| 23991 | module_expsym_cmds_GCJ | \ |
| 23992 | old_archive_from_expsyms_cmds_GCJ | \ |
| 23993 | export_symbols_cmds_GCJ | \ |
| 23994 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23995 | postinstall_cmds | postuninstall_cmds | \ |
| 23996 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23997 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23998 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23999 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24000 | ;; |
| 24001 | *) |
| 24002 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 24003 | ;; |
| 24004 | esac |
| 24005 | done |
| 24006 | |
| 24007 | case $lt_echo in |
| 24008 | *'\$0 --fallback-echo"') |
| 24009 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 24010 | ;; |
| 24011 | esac |
| 24012 | |
| 24013 | cfgfile="$ofile" |
| 24014 | |
| 24015 | cat <<__EOF__ >> "$cfgfile" |
| 24016 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 24017 | |
| 24018 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 24019 | |
| 24020 | # Shell to use when invoking shell scripts. |
| 24021 | SHELL=$lt_SHELL |
| 24022 | |
| 24023 | # Whether or not to build shared libraries. |
| 24024 | build_libtool_libs=$enable_shared |
| 24025 | |
| 24026 | # Whether or not to build static libraries. |
| 24027 | build_old_libs=$enable_static |
| 24028 | |
| 24029 | # Whether or not to add -lc for building shared libraries. |
| 24030 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 24031 | |
| 24032 | # Whether or not to disallow shared libs when runtime libs are static |
| 24033 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 24034 | |
| 24035 | # Whether or not to optimize for fast installation. |
| 24036 | fast_install=$enable_fast_install |
| 24037 | |
| 24038 | # The host system. |
| 24039 | host_alias=$host_alias |
| 24040 | host=$host |
| 24041 | |
| 24042 | # An echo program that does not interpret backslashes. |
| 24043 | echo=$lt_echo |
| 24044 | |
| 24045 | # The archiver. |
| 24046 | AR=$lt_AR |
| 24047 | AR_FLAGS=$lt_AR_FLAGS |
| 24048 | |
| 24049 | # A C compiler. |
| 24050 | LTCC=$lt_LTCC |
| 24051 | |
| 24052 | # A language-specific compiler. |
| 24053 | CC=$lt_compiler_GCJ |
| 24054 | |
| 24055 | # Is the compiler the GNU C compiler? |
| 24056 | with_gcc=$GCC_GCJ |
| 24057 | |
| 24058 | # An ERE matcher. |
| 24059 | EGREP=$lt_EGREP |
| 24060 | |
| 24061 | # The linker used to build libraries. |
| 24062 | LD=$lt_LD_GCJ |
| 24063 | |
| 24064 | # Whether we need hard or soft links. |
| 24065 | LN_S=$lt_LN_S |
| 24066 | |
| 24067 | # A BSD-compatible nm program. |
| 24068 | NM=$lt_NM |
| 24069 | |
| 24070 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24071 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24072 | |
| 24073 | # Used to examine libraries when file_magic_cmd begins "file" |
| 24074 | MAGIC_CMD=$MAGIC_CMD |
| 24075 | |
| 24076 | # Used on cygwin: DLL creation program. |
| 24077 | DLLTOOL="$DLLTOOL" |
| 24078 | |
| 24079 | # Used on cygwin: object dumper. |
| 24080 | OBJDUMP="$OBJDUMP" |
| 24081 | |
| 24082 | # Used on cygwin: assembler. |
| 24083 | AS="$AS" |
| 24084 | |
| 24085 | # The name of the directory that contains temporary libtool files. |
| 24086 | objdir=$objdir |
| 24087 | |
| 24088 | # How to create reloadable object files. |
| 24089 | reload_flag=$lt_reload_flag |
| 24090 | reload_cmds=$lt_reload_cmds |
| 24091 | |
| 24092 | # How to pass a linker flag through the compiler. |
| 24093 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 24094 | |
| 24095 | # Object file suffix (normally "o"). |
| 24096 | objext="$ac_objext" |
| 24097 | |
| 24098 | # Old archive suffix (normally "a"). |
| 24099 | libext="$libext" |
| 24100 | |
| 24101 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24102 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24103 | |
| 24104 | # Executable file suffix (normally ""). |
| 24105 | exeext="$exeext" |
| 24106 | |
| 24107 | # Additional compiler flags for building library objects. |
| 24108 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 24109 | pic_mode=$pic_mode |
| 24110 | |
| 24111 | # What is the maximum length of a command? |
| 24112 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 24113 | |
| 24114 | # Does compiler simultaneously support -c and -o options? |
| 24115 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 24116 | |
| 24117 | # Must we lock files when doing compilation ? |
| 24118 | need_locks=$lt_need_locks |
| 24119 | |
| 24120 | # Do we need the lib prefix for modules? |
| 24121 | need_lib_prefix=$need_lib_prefix |
| 24122 | |
| 24123 | # Do we need a version for libraries? |
| 24124 | need_version=$need_version |
| 24125 | |
| 24126 | # Whether dlopen is supported. |
| 24127 | dlopen_support=$enable_dlopen |
| 24128 | |
| 24129 | # Whether dlopen of programs is supported. |
| 24130 | dlopen_self=$enable_dlopen_self |
| 24131 | |
| 24132 | # Whether dlopen of statically linked programs is supported. |
| 24133 | dlopen_self_static=$enable_dlopen_self_static |
| 24134 | |
| 24135 | # Compiler flag to prevent dynamic linking. |
| 24136 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 24137 | |
| 24138 | # Compiler flag to turn off builtin functions. |
| 24139 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 24140 | |
| 24141 | # Compiler flag to allow reflexive dlopens. |
| 24142 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 24143 | |
| 24144 | # Compiler flag to generate shared objects directly from archives. |
| 24145 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 24146 | |
| 24147 | # Compiler flag to generate thread-safe objects. |
| 24148 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 24149 | |
| 24150 | # Library versioning type. |
| 24151 | version_type=$version_type |
| 24152 | |
| 24153 | # Format of library name prefix. |
| 24154 | libname_spec=$lt_libname_spec |
| 24155 | |
| 24156 | # List of archive names. First name is the real one, the rest are links. |
| 24157 | # The last name is the one that the linker finds with -lNAME. |
| 24158 | library_names_spec=$lt_library_names_spec |
| 24159 | |
| 24160 | # The coded name of the library, if different from the real name. |
| 24161 | soname_spec=$lt_soname_spec |
| 24162 | |
| 24163 | # Commands used to build and install an old-style archive. |
| 24164 | RANLIB=$lt_RANLIB |
| 24165 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 24166 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24167 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24168 | |
| 24169 | # Create an old-style archive from a shared archive. |
| 24170 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 24171 | |
| 24172 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24173 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 24174 | |
| 24175 | # Commands used to build and install a shared archive. |
| 24176 | archive_cmds=$lt_archive_cmds_GCJ |
| 24177 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 24178 | postinstall_cmds=$lt_postinstall_cmds |
| 24179 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24180 | |
| 24181 | # Commands used to build a loadable module (assumed same as above if empty) |
| 24182 | module_cmds=$lt_module_cmds_GCJ |
| 24183 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 24184 | |
| 24185 | # Commands to strip libraries. |
| 24186 | old_striplib=$lt_old_striplib |
| 24187 | striplib=$lt_striplib |
| 24188 | |
| 24189 | # Dependencies to place before the objects being linked to create a |
| 24190 | # shared library. |
| 24191 | predep_objects=$lt_predep_objects_GCJ |
| 24192 | |
| 24193 | # Dependencies to place after the objects being linked to create a |
| 24194 | # shared library. |
| 24195 | postdep_objects=$lt_postdep_objects_GCJ |
| 24196 | |
| 24197 | # Dependencies to place before the objects being linked to create a |
| 24198 | # shared library. |
| 24199 | predeps=$lt_predeps_GCJ |
| 24200 | |
| 24201 | # Dependencies to place after the objects being linked to create a |
| 24202 | # shared library. |
| 24203 | postdeps=$lt_postdeps_GCJ |
| 24204 | |
| 24205 | # The library search path used internally by the compiler when linking |
| 24206 | # a shared library. |
| 24207 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 24208 | |
| 24209 | # Method to check whether dependent libraries are shared objects. |
| 24210 | deplibs_check_method=$lt_deplibs_check_method |
| 24211 | |
| 24212 | # Command to use when deplibs_check_method == file_magic. |
| 24213 | file_magic_cmd=$lt_file_magic_cmd |
| 24214 | |
| 24215 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24216 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 24217 | |
| 24218 | # Flag that forces no undefined symbols. |
| 24219 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 24220 | |
| 24221 | # Commands used to finish a libtool library installation in a directory. |
| 24222 | finish_cmds=$lt_finish_cmds |
| 24223 | |
| 24224 | # Same as above, but a single script fragment to be evaled but not shown. |
| 24225 | finish_eval=$lt_finish_eval |
| 24226 | |
| 24227 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 24228 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 24229 | |
| 24230 | # Transform the output of nm in a proper C declaration |
| 24231 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 24232 | |
| 24233 | # Transform the output of nm in a C name address pair |
| 24234 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 24235 | |
| 24236 | # This is the shared library runtime path variable. |
| 24237 | runpath_var=$runpath_var |
| 24238 | |
| 24239 | # This is the shared library path variable. |
| 24240 | shlibpath_var=$shlibpath_var |
| 24241 | |
| 24242 | # Is shlibpath searched before the hard-coded library search path? |
| 24243 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24244 | |
| 24245 | # How to hardcode a shared library path into an executable. |
| 24246 | hardcode_action=$hardcode_action_GCJ |
| 24247 | |
| 24248 | # Whether we should hardcode library paths into libraries. |
| 24249 | hardcode_into_libs=$hardcode_into_libs |
| 24250 | |
| 24251 | # Flag to hardcode \$libdir into a binary during linking. |
| 24252 | # This must work even if \$libdir does not exist. |
| 24253 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 24254 | |
| 24255 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24256 | # a binary during linking. This must work even if \$libdir does |
| 24257 | # not exist. |
| 24258 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 24259 | |
| 24260 | # Whether we need a single -rpath flag with a separated argument. |
| 24261 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 24262 | |
| 24263 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24264 | # resulting binary. |
| 24265 | hardcode_direct=$hardcode_direct_GCJ |
| 24266 | |
| 24267 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24268 | # resulting binary. |
| 24269 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 24270 | |
| 24271 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24272 | # the resulting binary. |
| 24273 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 24274 | |
| 24275 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24276 | # and all subsequent libraries and executables linked against it. |
| 24277 | hardcode_automatic=$hardcode_automatic_GCJ |
| 24278 | |
| 24279 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24280 | # restored at relink time. |
| 24281 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24282 | |
| 24283 | # Whether libtool must link a program against all its dependency libraries. |
| 24284 | link_all_deplibs=$link_all_deplibs_GCJ |
| 24285 | |
| 24286 | # Compile-time system search path for libraries |
| 24287 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24288 | |
| 24289 | # Run-time system search path for libraries |
| 24290 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24291 | |
| 24292 | # Fix the shell variable \$srcfile for the compiler. |
| 24293 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 24294 | |
| 24295 | # Set to yes if exported symbols are required. |
| 24296 | always_export_symbols=$always_export_symbols_GCJ |
| 24297 | |
| 24298 | # The commands to list exported symbols. |
| 24299 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 24300 | |
| 24301 | # The commands to extract the exported symbol list from a shared archive. |
| 24302 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24303 | |
| 24304 | # Symbols that should not be listed in the preloaded symbols. |
| 24305 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 24306 | |
| 24307 | # Symbols that must always be exported. |
| 24308 | include_expsyms=$lt_include_expsyms_GCJ |
| 24309 | |
| 24310 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24311 | |
| 24312 | __EOF__ |
| 24313 | |
| 24314 | |
| 24315 | else |
| 24316 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24317 | # `config.status --recheck' to rerun these tests and create the |
| 24318 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24319 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24320 | if test -f "$ltmain_in"; then |
| 24321 | test -f Makefile && make "$ltmain" |
| 24322 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24323 | fi |
| 24324 | |
| 24325 | |
| 24326 | ac_ext=c |
| 24327 | ac_cpp='$CPP $CPPFLAGS' |
| 24328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24331 | |
| 24332 | CC="$lt_save_CC" |
| 24333 | |
| 24334 | else |
| 24335 | tagname="" |
| 24336 | fi |
| 24337 | ;; |
| 24338 | |
| 24339 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24340 | ac_ext=c |
| 24341 | ac_cpp='$CPP $CPPFLAGS' |
| 24342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24345 | |
| 24346 | |
| 24347 | # Source file extension for RC test sources. |
| 24348 | ac_ext=rc |
| 24349 | |
| 24350 | # Object file extension for compiled RC test sources. |
| 24351 | objext=o |
| 24352 | objext_RC=$objext |
| 24353 | |
| 24354 | # Code to be used in simple compile tests |
| 24355 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 24356 | |
| 24357 | # Code to be used in simple link tests |
| 24358 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 24359 | |
| 24360 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24361 | |
| 24362 | # If no C compiler was specified, use CC. |
| 24363 | LTCC=${LTCC-"$CC"} |
| 24364 | |
| 24365 | # Allow CC to be a program name with arguments. |
| 24366 | compiler=$CC |
| 24367 | |
| 24368 | |
| 24369 | # Allow CC to be a program name with arguments. |
| 24370 | lt_save_CC="$CC" |
| 24371 | CC=${RC-"windres"} |
| 24372 | compiler=$CC |
| 24373 | compiler_RC=$CC |
| 24374 | lt_cv_prog_compiler_c_o_RC=yes |
| 24375 | |
| 24376 | # The else clause should only fire when bootstrapping the |
| 24377 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 24378 | # with your package, and you will get complaints that there are |
| 24379 | # no rules to generate ltmain.sh. |
| 24380 | if test -f "$ltmain"; then |
| 24381 | # See if we are running on zsh, and set the options which allow our commands through |
| 24382 | # without removal of \ escapes. |
| 24383 | if test -n "${ZSH_VERSION+set}" ; then |
| 24384 | setopt NO_GLOB_SUBST |
| 24385 | fi |
| 24386 | # Now quote all the things that may contain metacharacters while being |
| 24387 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 24388 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24389 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 24390 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24391 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 24392 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 24393 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 24394 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 24395 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 24396 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 24397 | old_postinstall_cmds old_postuninstall_cmds \ |
| 24398 | compiler_RC \ |
| 24399 | CC_RC \ |
| 24400 | LD_RC \ |
| 24401 | lt_prog_compiler_wl_RC \ |
| 24402 | lt_prog_compiler_pic_RC \ |
| 24403 | lt_prog_compiler_static_RC \ |
| 24404 | lt_prog_compiler_no_builtin_flag_RC \ |
| 24405 | export_dynamic_flag_spec_RC \ |
| 24406 | thread_safe_flag_spec_RC \ |
| 24407 | whole_archive_flag_spec_RC \ |
| 24408 | enable_shared_with_static_runtimes_RC \ |
| 24409 | old_archive_cmds_RC \ |
| 24410 | old_archive_from_new_cmds_RC \ |
| 24411 | predep_objects_RC \ |
| 24412 | postdep_objects_RC \ |
| 24413 | predeps_RC \ |
| 24414 | postdeps_RC \ |
| 24415 | compiler_lib_search_path_RC \ |
| 24416 | archive_cmds_RC \ |
| 24417 | archive_expsym_cmds_RC \ |
| 24418 | postinstall_cmds_RC \ |
| 24419 | postuninstall_cmds_RC \ |
| 24420 | old_archive_from_expsyms_cmds_RC \ |
| 24421 | allow_undefined_flag_RC \ |
| 24422 | no_undefined_flag_RC \ |
| 24423 | export_symbols_cmds_RC \ |
| 24424 | hardcode_libdir_flag_spec_RC \ |
| 24425 | hardcode_libdir_flag_spec_ld_RC \ |
| 24426 | hardcode_libdir_separator_RC \ |
| 24427 | hardcode_automatic_RC \ |
| 24428 | module_cmds_RC \ |
| 24429 | module_expsym_cmds_RC \ |
| 24430 | lt_cv_prog_compiler_c_o_RC \ |
| 24431 | exclude_expsyms_RC \ |
| 24432 | include_expsyms_RC; do |
| 24433 | |
| 24434 | case $var in |
| 24435 | old_archive_cmds_RC | \ |
| 24436 | old_archive_from_new_cmds_RC | \ |
| 24437 | archive_cmds_RC | \ |
| 24438 | archive_expsym_cmds_RC | \ |
| 24439 | module_cmds_RC | \ |
| 24440 | module_expsym_cmds_RC | \ |
| 24441 | old_archive_from_expsyms_cmds_RC | \ |
| 24442 | export_symbols_cmds_RC | \ |
| 24443 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 24444 | postinstall_cmds | postuninstall_cmds | \ |
| 24445 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 24446 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 24447 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24448 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24449 | ;; |
| 24450 | *) |
| 24451 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 24452 | ;; |
| 24453 | esac |
| 24454 | done |
| 24455 | |
| 24456 | case $lt_echo in |
| 24457 | *'\$0 --fallback-echo"') |
| 24458 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 24459 | ;; |
| 24460 | esac |
| 24461 | |
| 24462 | cfgfile="$ofile" |
| 24463 | |
| 24464 | cat <<__EOF__ >> "$cfgfile" |
| 24465 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 24466 | |
| 24467 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 24468 | |
| 24469 | # Shell to use when invoking shell scripts. |
| 24470 | SHELL=$lt_SHELL |
| 24471 | |
| 24472 | # Whether or not to build shared libraries. |
| 24473 | build_libtool_libs=$enable_shared |
| 24474 | |
| 24475 | # Whether or not to build static libraries. |
| 24476 | build_old_libs=$enable_static |
| 24477 | |
| 24478 | # Whether or not to add -lc for building shared libraries. |
| 24479 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 24480 | |
| 24481 | # Whether or not to disallow shared libs when runtime libs are static |
| 24482 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 24483 | |
| 24484 | # Whether or not to optimize for fast installation. |
| 24485 | fast_install=$enable_fast_install |
| 24486 | |
| 24487 | # The host system. |
| 24488 | host_alias=$host_alias |
| 24489 | host=$host |
| 24490 | |
| 24491 | # An echo program that does not interpret backslashes. |
| 24492 | echo=$lt_echo |
| 24493 | |
| 24494 | # The archiver. |
| 24495 | AR=$lt_AR |
| 24496 | AR_FLAGS=$lt_AR_FLAGS |
| 24497 | |
| 24498 | # A C compiler. |
| 24499 | LTCC=$lt_LTCC |
| 24500 | |
| 24501 | # A language-specific compiler. |
| 24502 | CC=$lt_compiler_RC |
| 24503 | |
| 24504 | # Is the compiler the GNU C compiler? |
| 24505 | with_gcc=$GCC_RC |
| 24506 | |
| 24507 | # An ERE matcher. |
| 24508 | EGREP=$lt_EGREP |
| 24509 | |
| 24510 | # The linker used to build libraries. |
| 24511 | LD=$lt_LD_RC |
| 24512 | |
| 24513 | # Whether we need hard or soft links. |
| 24514 | LN_S=$lt_LN_S |
| 24515 | |
| 24516 | # A BSD-compatible nm program. |
| 24517 | NM=$lt_NM |
| 24518 | |
| 24519 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24520 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24521 | |
| 24522 | # Used to examine libraries when file_magic_cmd begins "file" |
| 24523 | MAGIC_CMD=$MAGIC_CMD |
| 24524 | |
| 24525 | # Used on cygwin: DLL creation program. |
| 24526 | DLLTOOL="$DLLTOOL" |
| 24527 | |
| 24528 | # Used on cygwin: object dumper. |
| 24529 | OBJDUMP="$OBJDUMP" |
| 24530 | |
| 24531 | # Used on cygwin: assembler. |
| 24532 | AS="$AS" |
| 24533 | |
| 24534 | # The name of the directory that contains temporary libtool files. |
| 24535 | objdir=$objdir |
| 24536 | |
| 24537 | # How to create reloadable object files. |
| 24538 | reload_flag=$lt_reload_flag |
| 24539 | reload_cmds=$lt_reload_cmds |
| 24540 | |
| 24541 | # How to pass a linker flag through the compiler. |
| 24542 | wl=$lt_lt_prog_compiler_wl_RC |
| 24543 | |
| 24544 | # Object file suffix (normally "o"). |
| 24545 | objext="$ac_objext" |
| 24546 | |
| 24547 | # Old archive suffix (normally "a"). |
| 24548 | libext="$libext" |
| 24549 | |
| 24550 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24551 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24552 | |
| 24553 | # Executable file suffix (normally ""). |
| 24554 | exeext="$exeext" |
| 24555 | |
| 24556 | # Additional compiler flags for building library objects. |
| 24557 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 24558 | pic_mode=$pic_mode |
| 24559 | |
| 24560 | # What is the maximum length of a command? |
| 24561 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 24562 | |
| 24563 | # Does compiler simultaneously support -c and -o options? |
| 24564 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 24565 | |
| 24566 | # Must we lock files when doing compilation ? |
| 24567 | need_locks=$lt_need_locks |
| 24568 | |
| 24569 | # Do we need the lib prefix for modules? |
| 24570 | need_lib_prefix=$need_lib_prefix |
| 24571 | |
| 24572 | # Do we need a version for libraries? |
| 24573 | need_version=$need_version |
| 24574 | |
| 24575 | # Whether dlopen is supported. |
| 24576 | dlopen_support=$enable_dlopen |
| 24577 | |
| 24578 | # Whether dlopen of programs is supported. |
| 24579 | dlopen_self=$enable_dlopen_self |
| 24580 | |
| 24581 | # Whether dlopen of statically linked programs is supported. |
| 24582 | dlopen_self_static=$enable_dlopen_self_static |
| 24583 | |
| 24584 | # Compiler flag to prevent dynamic linking. |
| 24585 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 24586 | |
| 24587 | # Compiler flag to turn off builtin functions. |
| 24588 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 24589 | |
| 24590 | # Compiler flag to allow reflexive dlopens. |
| 24591 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 24592 | |
| 24593 | # Compiler flag to generate shared objects directly from archives. |
| 24594 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 24595 | |
| 24596 | # Compiler flag to generate thread-safe objects. |
| 24597 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 24598 | |
| 24599 | # Library versioning type. |
| 24600 | version_type=$version_type |
| 24601 | |
| 24602 | # Format of library name prefix. |
| 24603 | libname_spec=$lt_libname_spec |
| 24604 | |
| 24605 | # List of archive names. First name is the real one, the rest are links. |
| 24606 | # The last name is the one that the linker finds with -lNAME. |
| 24607 | library_names_spec=$lt_library_names_spec |
| 24608 | |
| 24609 | # The coded name of the library, if different from the real name. |
| 24610 | soname_spec=$lt_soname_spec |
| 24611 | |
| 24612 | # Commands used to build and install an old-style archive. |
| 24613 | RANLIB=$lt_RANLIB |
| 24614 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 24615 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24616 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24617 | |
| 24618 | # Create an old-style archive from a shared archive. |
| 24619 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 24620 | |
| 24621 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24622 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 24623 | |
| 24624 | # Commands used to build and install a shared archive. |
| 24625 | archive_cmds=$lt_archive_cmds_RC |
| 24626 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 24627 | postinstall_cmds=$lt_postinstall_cmds |
| 24628 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24629 | |
| 24630 | # Commands used to build a loadable module (assumed same as above if empty) |
| 24631 | module_cmds=$lt_module_cmds_RC |
| 24632 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 24633 | |
| 24634 | # Commands to strip libraries. |
| 24635 | old_striplib=$lt_old_striplib |
| 24636 | striplib=$lt_striplib |
| 24637 | |
| 24638 | # Dependencies to place before the objects being linked to create a |
| 24639 | # shared library. |
| 24640 | predep_objects=$lt_predep_objects_RC |
| 24641 | |
| 24642 | # Dependencies to place after the objects being linked to create a |
| 24643 | # shared library. |
| 24644 | postdep_objects=$lt_postdep_objects_RC |
| 24645 | |
| 24646 | # Dependencies to place before the objects being linked to create a |
| 24647 | # shared library. |
| 24648 | predeps=$lt_predeps_RC |
| 24649 | |
| 24650 | # Dependencies to place after the objects being linked to create a |
| 24651 | # shared library. |
| 24652 | postdeps=$lt_postdeps_RC |
| 24653 | |
| 24654 | # The library search path used internally by the compiler when linking |
| 24655 | # a shared library. |
| 24656 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 24657 | |
| 24658 | # Method to check whether dependent libraries are shared objects. |
| 24659 | deplibs_check_method=$lt_deplibs_check_method |
| 24660 | |
| 24661 | # Command to use when deplibs_check_method == file_magic. |
| 24662 | file_magic_cmd=$lt_file_magic_cmd |
| 24663 | |
| 24664 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24665 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 24666 | |
| 24667 | # Flag that forces no undefined symbols. |
| 24668 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 24669 | |
| 24670 | # Commands used to finish a libtool library installation in a directory. |
| 24671 | finish_cmds=$lt_finish_cmds |
| 24672 | |
| 24673 | # Same as above, but a single script fragment to be evaled but not shown. |
| 24674 | finish_eval=$lt_finish_eval |
| 24675 | |
| 24676 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 24677 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 24678 | |
| 24679 | # Transform the output of nm in a proper C declaration |
| 24680 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 24681 | |
| 24682 | # Transform the output of nm in a C name address pair |
| 24683 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 24684 | |
| 24685 | # This is the shared library runtime path variable. |
| 24686 | runpath_var=$runpath_var |
| 24687 | |
| 24688 | # This is the shared library path variable. |
| 24689 | shlibpath_var=$shlibpath_var |
| 24690 | |
| 24691 | # Is shlibpath searched before the hard-coded library search path? |
| 24692 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24693 | |
| 24694 | # How to hardcode a shared library path into an executable. |
| 24695 | hardcode_action=$hardcode_action_RC |
| 24696 | |
| 24697 | # Whether we should hardcode library paths into libraries. |
| 24698 | hardcode_into_libs=$hardcode_into_libs |
| 24699 | |
| 24700 | # Flag to hardcode \$libdir into a binary during linking. |
| 24701 | # This must work even if \$libdir does not exist. |
| 24702 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 24703 | |
| 24704 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24705 | # a binary during linking. This must work even if \$libdir does |
| 24706 | # not exist. |
| 24707 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 24708 | |
| 24709 | # Whether we need a single -rpath flag with a separated argument. |
| 24710 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 24711 | |
| 24712 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24713 | # resulting binary. |
| 24714 | hardcode_direct=$hardcode_direct_RC |
| 24715 | |
| 24716 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24717 | # resulting binary. |
| 24718 | hardcode_minus_L=$hardcode_minus_L_RC |
| 24719 | |
| 24720 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24721 | # the resulting binary. |
| 24722 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 24723 | |
| 24724 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24725 | # and all subsequent libraries and executables linked against it. |
| 24726 | hardcode_automatic=$hardcode_automatic_RC |
| 24727 | |
| 24728 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24729 | # restored at relink time. |
| 24730 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24731 | |
| 24732 | # Whether libtool must link a program against all its dependency libraries. |
| 24733 | link_all_deplibs=$link_all_deplibs_RC |
| 24734 | |
| 24735 | # Compile-time system search path for libraries |
| 24736 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24737 | |
| 24738 | # Run-time system search path for libraries |
| 24739 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 24740 | |
| 24741 | # Fix the shell variable \$srcfile for the compiler. |
| 24742 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 24743 | |
| 24744 | # Set to yes if exported symbols are required. |
| 24745 | always_export_symbols=$always_export_symbols_RC |
| 24746 | |
| 24747 | # The commands to list exported symbols. |
| 24748 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 24749 | |
| 24750 | # The commands to extract the exported symbol list from a shared archive. |
| 24751 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 24752 | |
| 24753 | # Symbols that should not be listed in the preloaded symbols. |
| 24754 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 24755 | |
| 24756 | # Symbols that must always be exported. |
| 24757 | include_expsyms=$lt_include_expsyms_RC |
| 24758 | |
| 24759 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 24760 | |
| 24761 | __EOF__ |
| 24762 | |
| 24763 | |
| 24764 | else |
| 24765 | # If there is no Makefile yet, we rely on a make rule to execute |
| 24766 | # `config.status --recheck' to rerun these tests and create the |
| 24767 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24768 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 24769 | if test -f "$ltmain_in"; then |
| 24770 | test -f Makefile && make "$ltmain" |
| 24771 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24772 | fi |
| 24773 | |
| 24774 | |
| 24775 | ac_ext=c |
| 24776 | ac_cpp='$CPP $CPPFLAGS' |
| 24777 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 24778 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 24779 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 24780 | |
| 24781 | CC="$lt_save_CC" |
| 24782 | |
| 24783 | ;; |
| 24784 | |
| 24785 | *) |
| 24786 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 24787 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 24788 | { (exit 1); exit 1; }; } |
| 24789 | ;; |
| 24790 | esac |
| 24791 | |
| 24792 | # Append the new tag name to the list of available tags. |
| 24793 | if test -n "$tagname" ; then |
| 24794 | available_tags="$available_tags $tagname" |
| 24795 | fi |
| 24796 | fi |
| 24797 | done |
| 24798 | IFS="$lt_save_ifs" |
| 24799 | |
| 24800 | # Now substitute the updated list of available tags. |
| 24801 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 24802 | mv "${ofile}T" "$ofile" |
| 24803 | chmod +x "$ofile" |
| 24804 | else |
| 24805 | rm -f "${ofile}T" |
| 24806 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 24807 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 24808 | { (exit 1); exit 1; }; } |
| 24809 | fi |
| 24810 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24811 | |
| 24812 | |
| 24813 | |
| 24814 | # This can be used to rebuild libtool when needed |
| 24815 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 24816 | |
| 24817 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24818 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24819 | |
| 24820 | # Prevent multiple expansion |
| 24821 | |
| 24822 | |
| 24823 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24824 | |
| 24825 | |
| 24826 | |
| 24827 | |
| 24828 | |
| 24829 | |
| 24830 | |
| 24831 | |
| 24832 | |
| 24833 | |
| 24834 | |
| 24835 | |
| 24836 | |
| 24837 | |
| 24838 | |
| 24839 | |
| 24840 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24841 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 24842 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 24843 | |
| 24844 | cat >>confdefs.h <<\_ACEOF |
| 24845 | #define CAN_DLOPEN_SELF 1 |
| 24846 | _ACEOF |
| 24847 | |
| 24848 | fi |
| 24849 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24850 | etags_version=`$ETAGS --version 2>&1` |
| 24851 | case "$etags_version" in |
| 24852 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 24853 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 24854 | *) ETAGSFLAGS="" ;; |
| 24855 | esac |
| 24856 | ETAGSFLAGS=$ETAGSFLAGS |
| 24857 | |
| 24858 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 24859 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24860 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 24861 | LLVMGXX="llvm-g++${EXEEXT}" |
| 24862 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 24863 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 24865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 24866 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 24867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24868 | else |
| 24869 | case $LLVMGCC in |
| 24870 | [\\/]* | ?:[\\/]*) |
| 24871 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 24872 | ;; |
| 24873 | *) |
| 24874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24875 | for as_dir in $PATH |
| 24876 | do |
| 24877 | IFS=$as_save_IFS |
| 24878 | test -z "$as_dir" && as_dir=. |
| 24879 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24881 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 24882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24883 | break 2 |
| 24884 | fi |
| 24885 | done |
| 24886 | done |
| 24887 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24888 | ;; |
| 24889 | esac |
| 24890 | fi |
| 24891 | LLVMGCC=$ac_cv_path_LLVMGCC |
| 24892 | |
| 24893 | if test -n "$LLVMGCC"; then |
| 24894 | echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 24895 | echo "${ECHO_T}$LLVMGCC" >&6 |
| 24896 | else |
| 24897 | echo "$as_me:$LINENO: result: no" >&5 |
| 24898 | echo "${ECHO_T}no" >&6 |
| 24899 | fi |
| 24900 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24901 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 24902 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24903 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 24904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 24905 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 24906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24907 | else |
| 24908 | case $LLVMGXX in |
| 24909 | [\\/]* | ?:[\\/]*) |
| 24910 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 24911 | ;; |
| 24912 | *) |
| 24913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24914 | for as_dir in $PATH |
| 24915 | do |
| 24916 | IFS=$as_save_IFS |
| 24917 | test -z "$as_dir" && as_dir=. |
| 24918 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24920 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 24921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24922 | break 2 |
| 24923 | fi |
| 24924 | done |
| 24925 | done |
| 24926 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24927 | ;; |
| 24928 | esac |
| 24929 | fi |
| 24930 | LLVMGXX=$ac_cv_path_LLVMGXX |
| 24931 | |
| 24932 | if test -n "$LLVMGXX"; then |
| 24933 | echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 24934 | echo "${ECHO_T}$LLVMGXX" >&6 |
| 24935 | else |
| 24936 | echo "$as_me:$LINENO: result: no" >&5 |
| 24937 | echo "${ECHO_T}no" >&6 |
| 24938 | fi |
| 24939 | |
| 24940 | else |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 24941 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 24942 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24943 | LLVMGCC=$LLVMGCC |
| 24944 | |
| 24945 | LLVMGXX=$LLVMGXX |
| 24946 | |
| 24947 | fi |
| 24948 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24949 | echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 24950 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 |
| 24951 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24952 | ICC=no |
| 24953 | IXX=no |
| 24954 | case $CC in |
| 24955 | icc*|icpc*) |
| 24956 | ICC=yes |
| 24957 | IXX=yes |
| 24958 | ;; |
| 24959 | *) |
| 24960 | ;; |
| 24961 | esac |
| 24962 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 24963 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 24964 | then |
| 24965 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 24966 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 24967 | { (exit 1); exit 1; }; } |
| 24968 | fi |
| 24969 | |
| 24970 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 24971 | then |
| 24972 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 24973 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 24974 | { (exit 1); exit 1; }; } |
| 24975 | fi |
| 24976 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24977 | if test "$GCC" = "yes" |
| 24978 | then |
Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 24979 | gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'` |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24980 | if test "$gccmajor" -lt "3" |
| 24981 | then |
| 24982 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24983 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 24984 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24985 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24986 | fi |
| 24987 | |
| 24988 | if test -z "$llvm_cv_gnu_make_command" |
| 24989 | then |
| 24990 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 24991 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 24992 | { (exit 1); exit 1; }; } |
| 24993 | fi |
| 24994 | |
| 24995 | echo "$as_me:$LINENO: result: ok" >&5 |
| 24996 | echo "${ECHO_T}ok" >&6 |
| 24997 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24998 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24999 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25000 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 25001 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 25002 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 25003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25004 | else |
| 25005 | ac_check_lib_save_LIBS=$LIBS |
| 25006 | LIBS="-lelf $LIBS" |
| 25007 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25008 | /* confdefs.h. */ |
| 25009 | _ACEOF |
| 25010 | cat confdefs.h >>conftest.$ac_ext |
| 25011 | cat >>conftest.$ac_ext <<_ACEOF |
| 25012 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25013 | |
| 25014 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25015 | #ifdef __cplusplus |
| 25016 | extern "C" |
| 25017 | #endif |
| 25018 | /* We use char because int might match the return type of a gcc2 |
| 25019 | builtin and then its argument prototype would still apply. */ |
| 25020 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25021 | int |
| 25022 | main () |
| 25023 | { |
| 25024 | elf_begin (); |
| 25025 | ; |
| 25026 | return 0; |
| 25027 | } |
| 25028 | _ACEOF |
| 25029 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25031 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25032 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25034 | rm -f conftest.er1 |
| 25035 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25037 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25038 | { ac_try='test -z "$ac_c_werror_flag" |
| 25039 | || test ! -s conftest.err' |
| 25040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25041 | (eval $ac_try) 2>&5 |
| 25042 | ac_status=$? |
| 25043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25044 | (exit $ac_status); }; } && |
| 25045 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25047 | (eval $ac_try) 2>&5 |
| 25048 | ac_status=$? |
| 25049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25050 | (exit $ac_status); }; }; then |
| 25051 | ac_cv_lib_elf_elf_begin=yes |
| 25052 | else |
| 25053 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25055 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25056 | ac_cv_lib_elf_elf_begin=no |
| 25057 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25058 | rm -f conftest.err conftest.$ac_objext \ |
| 25059 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25060 | LIBS=$ac_check_lib_save_LIBS |
| 25061 | fi |
| 25062 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 25063 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 25064 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 25065 | cat >>confdefs.h <<_ACEOF |
| 25066 | #define HAVE_LIBELF 1 |
| 25067 | _ACEOF |
| 25068 | |
| 25069 | LIBS="-lelf $LIBS" |
| 25070 | |
| 25071 | fi |
| 25072 | |
| 25073 | |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25074 | echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 25075 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 |
| 25076 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 25077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25078 | else |
| 25079 | ac_check_lib_save_LIBS=$LIBS |
| 25080 | LIBS="-lm $LIBS" |
| 25081 | cat >conftest.$ac_ext <<_ACEOF |
| 25082 | /* confdefs.h. */ |
| 25083 | _ACEOF |
| 25084 | cat confdefs.h >>conftest.$ac_ext |
| 25085 | cat >>conftest.$ac_ext <<_ACEOF |
| 25086 | /* end confdefs.h. */ |
| 25087 | |
| 25088 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25089 | #ifdef __cplusplus |
| 25090 | extern "C" |
| 25091 | #endif |
| 25092 | /* We use char because int might match the return type of a gcc2 |
| 25093 | builtin and then its argument prototype would still apply. */ |
| 25094 | char sin (); |
| 25095 | int |
| 25096 | main () |
| 25097 | { |
| 25098 | sin (); |
| 25099 | ; |
| 25100 | return 0; |
| 25101 | } |
| 25102 | _ACEOF |
| 25103 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25105 | (eval $ac_link) 2>conftest.er1 |
| 25106 | ac_status=$? |
| 25107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25108 | rm -f conftest.er1 |
| 25109 | cat conftest.err >&5 |
| 25110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25111 | (exit $ac_status); } && |
| 25112 | { ac_try='test -z "$ac_c_werror_flag" |
| 25113 | || test ! -s conftest.err' |
| 25114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25115 | (eval $ac_try) 2>&5 |
| 25116 | ac_status=$? |
| 25117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25118 | (exit $ac_status); }; } && |
| 25119 | { ac_try='test -s conftest$ac_exeext' |
| 25120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25121 | (eval $ac_try) 2>&5 |
| 25122 | ac_status=$? |
| 25123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25124 | (exit $ac_status); }; }; then |
| 25125 | ac_cv_lib_m_sin=yes |
| 25126 | else |
| 25127 | echo "$as_me: failed program was:" >&5 |
| 25128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25129 | |
| 25130 | ac_cv_lib_m_sin=no |
| 25131 | fi |
| 25132 | rm -f conftest.err conftest.$ac_objext \ |
| 25133 | conftest$ac_exeext conftest.$ac_ext |
| 25134 | LIBS=$ac_check_lib_save_LIBS |
| 25135 | fi |
| 25136 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 25137 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 |
| 25138 | if test $ac_cv_lib_m_sin = yes; then |
| 25139 | cat >>confdefs.h <<_ACEOF |
| 25140 | #define HAVE_LIBM 1 |
| 25141 | _ACEOF |
| 25142 | |
| 25143 | LIBS="-lm $LIBS" |
| 25144 | |
| 25145 | fi |
| 25146 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 25147 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 25148 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 25149 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 |
| 25150 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 25151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25152 | else |
| 25153 | ac_func_search_save_LIBS=$LIBS |
| 25154 | ac_cv_search_lt_dlopen=no |
| 25155 | cat >conftest.$ac_ext <<_ACEOF |
| 25156 | /* confdefs.h. */ |
| 25157 | _ACEOF |
| 25158 | cat confdefs.h >>conftest.$ac_ext |
| 25159 | cat >>conftest.$ac_ext <<_ACEOF |
| 25160 | /* end confdefs.h. */ |
| 25161 | |
| 25162 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25163 | #ifdef __cplusplus |
| 25164 | extern "C" |
| 25165 | #endif |
| 25166 | /* We use char because int might match the return type of a gcc2 |
| 25167 | builtin and then its argument prototype would still apply. */ |
| 25168 | char lt_dlopen (); |
| 25169 | int |
| 25170 | main () |
| 25171 | { |
| 25172 | lt_dlopen (); |
| 25173 | ; |
| 25174 | return 0; |
| 25175 | } |
| 25176 | _ACEOF |
| 25177 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25179 | (eval $ac_link) 2>conftest.er1 |
| 25180 | ac_status=$? |
| 25181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25182 | rm -f conftest.er1 |
| 25183 | cat conftest.err >&5 |
| 25184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25185 | (exit $ac_status); } && |
| 25186 | { ac_try='test -z "$ac_c_werror_flag" |
| 25187 | || test ! -s conftest.err' |
| 25188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25189 | (eval $ac_try) 2>&5 |
| 25190 | ac_status=$? |
| 25191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25192 | (exit $ac_status); }; } && |
| 25193 | { ac_try='test -s conftest$ac_exeext' |
| 25194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25195 | (eval $ac_try) 2>&5 |
| 25196 | ac_status=$? |
| 25197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25198 | (exit $ac_status); }; }; then |
| 25199 | ac_cv_search_lt_dlopen="none required" |
| 25200 | else |
| 25201 | echo "$as_me: failed program was:" >&5 |
| 25202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25203 | |
| 25204 | fi |
| 25205 | rm -f conftest.err conftest.$ac_objext \ |
| 25206 | conftest$ac_exeext conftest.$ac_ext |
| 25207 | if test "$ac_cv_search_lt_dlopen" = no; then |
| 25208 | for ac_lib in ltdl; do |
| 25209 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25210 | cat >conftest.$ac_ext <<_ACEOF |
| 25211 | /* confdefs.h. */ |
| 25212 | _ACEOF |
| 25213 | cat confdefs.h >>conftest.$ac_ext |
| 25214 | cat >>conftest.$ac_ext <<_ACEOF |
| 25215 | /* end confdefs.h. */ |
| 25216 | |
| 25217 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25218 | #ifdef __cplusplus |
| 25219 | extern "C" |
| 25220 | #endif |
| 25221 | /* We use char because int might match the return type of a gcc2 |
| 25222 | builtin and then its argument prototype would still apply. */ |
| 25223 | char lt_dlopen (); |
| 25224 | int |
| 25225 | main () |
| 25226 | { |
| 25227 | lt_dlopen (); |
| 25228 | ; |
| 25229 | return 0; |
| 25230 | } |
| 25231 | _ACEOF |
| 25232 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25234 | (eval $ac_link) 2>conftest.er1 |
| 25235 | ac_status=$? |
| 25236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25237 | rm -f conftest.er1 |
| 25238 | cat conftest.err >&5 |
| 25239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25240 | (exit $ac_status); } && |
| 25241 | { ac_try='test -z "$ac_c_werror_flag" |
| 25242 | || test ! -s conftest.err' |
| 25243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25244 | (eval $ac_try) 2>&5 |
| 25245 | ac_status=$? |
| 25246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25247 | (exit $ac_status); }; } && |
| 25248 | { ac_try='test -s conftest$ac_exeext' |
| 25249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25250 | (eval $ac_try) 2>&5 |
| 25251 | ac_status=$? |
| 25252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25253 | (exit $ac_status); }; }; then |
| 25254 | ac_cv_search_lt_dlopen="-l$ac_lib" |
| 25255 | break |
| 25256 | else |
| 25257 | echo "$as_me: failed program was:" >&5 |
| 25258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25259 | |
| 25260 | fi |
| 25261 | rm -f conftest.err conftest.$ac_objext \ |
| 25262 | conftest$ac_exeext conftest.$ac_ext |
| 25263 | done |
| 25264 | fi |
| 25265 | LIBS=$ac_func_search_save_LIBS |
| 25266 | fi |
| 25267 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 25268 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 |
| 25269 | if test "$ac_cv_search_lt_dlopen" != no; then |
| 25270 | test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" |
| 25271 | |
| 25272 | cat >>confdefs.h <<\_ACEOF |
| 25273 | #define HAVE_LT_DLOPEN 1 |
| 25274 | _ACEOF |
| 25275 | |
| 25276 | else |
| 25277 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 25278 | not be available" >&5 |
| 25279 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 25280 | not be available" >&2;} |
| 25281 | fi |
| 25282 | |
| 25283 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25284 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 25285 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 |
| 25286 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 25287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25288 | else |
| 25289 | ac_func_search_save_LIBS=$LIBS |
| 25290 | ac_cv_search_dlopen=no |
| 25291 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25292 | /* confdefs.h. */ |
| 25293 | _ACEOF |
| 25294 | cat confdefs.h >>conftest.$ac_ext |
| 25295 | cat >>conftest.$ac_ext <<_ACEOF |
| 25296 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25297 | |
| 25298 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25299 | #ifdef __cplusplus |
| 25300 | extern "C" |
| 25301 | #endif |
| 25302 | /* We use char because int might match the return type of a gcc2 |
| 25303 | builtin and then its argument prototype would still apply. */ |
| 25304 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25305 | int |
| 25306 | main () |
| 25307 | { |
| 25308 | dlopen (); |
| 25309 | ; |
| 25310 | return 0; |
| 25311 | } |
| 25312 | _ACEOF |
| 25313 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25315 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25316 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25318 | rm -f conftest.er1 |
| 25319 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25321 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25322 | { ac_try='test -z "$ac_c_werror_flag" |
| 25323 | || test ! -s conftest.err' |
| 25324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25325 | (eval $ac_try) 2>&5 |
| 25326 | ac_status=$? |
| 25327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25328 | (exit $ac_status); }; } && |
| 25329 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25331 | (eval $ac_try) 2>&5 |
| 25332 | ac_status=$? |
| 25333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25334 | (exit $ac_status); }; }; then |
| 25335 | ac_cv_search_dlopen="none required" |
| 25336 | else |
| 25337 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25339 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25340 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25341 | rm -f conftest.err conftest.$ac_objext \ |
| 25342 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25343 | if test "$ac_cv_search_dlopen" = no; then |
| 25344 | for ac_lib in dl; do |
| 25345 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25346 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25347 | /* confdefs.h. */ |
| 25348 | _ACEOF |
| 25349 | cat confdefs.h >>conftest.$ac_ext |
| 25350 | cat >>conftest.$ac_ext <<_ACEOF |
| 25351 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25352 | |
| 25353 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25354 | #ifdef __cplusplus |
| 25355 | extern "C" |
| 25356 | #endif |
| 25357 | /* We use char because int might match the return type of a gcc2 |
| 25358 | builtin and then its argument prototype would still apply. */ |
| 25359 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25360 | int |
| 25361 | main () |
| 25362 | { |
| 25363 | dlopen (); |
| 25364 | ; |
| 25365 | return 0; |
| 25366 | } |
| 25367 | _ACEOF |
| 25368 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25370 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25371 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25373 | rm -f conftest.er1 |
| 25374 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25376 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25377 | { ac_try='test -z "$ac_c_werror_flag" |
| 25378 | || test ! -s conftest.err' |
| 25379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25380 | (eval $ac_try) 2>&5 |
| 25381 | ac_status=$? |
| 25382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25383 | (exit $ac_status); }; } && |
| 25384 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25386 | (eval $ac_try) 2>&5 |
| 25387 | ac_status=$? |
| 25388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25389 | (exit $ac_status); }; }; then |
| 25390 | ac_cv_search_dlopen="-l$ac_lib" |
| 25391 | break |
| 25392 | else |
| 25393 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25395 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25396 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25397 | rm -f conftest.err conftest.$ac_objext \ |
| 25398 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25399 | done |
| 25400 | fi |
| 25401 | LIBS=$ac_func_search_save_LIBS |
| 25402 | fi |
| 25403 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 25404 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 |
| 25405 | if test "$ac_cv_search_dlopen" != no; then |
| 25406 | test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 25407 | |
| 25408 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25409 | #define HAVE_DLOPEN 1 |
| 25410 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25411 | |
| 25412 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25413 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 25414 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25415 | fi |
| 25416 | |
| 25417 | |
| 25418 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 25419 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 |
| 25420 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 25421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25422 | else |
| 25423 | ac_func_search_save_LIBS=$LIBS |
| 25424 | ac_cv_search_mallinfo=no |
| 25425 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25426 | /* confdefs.h. */ |
| 25427 | _ACEOF |
| 25428 | cat confdefs.h >>conftest.$ac_ext |
| 25429 | cat >>conftest.$ac_ext <<_ACEOF |
| 25430 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25431 | |
| 25432 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25433 | #ifdef __cplusplus |
| 25434 | extern "C" |
| 25435 | #endif |
| 25436 | /* We use char because int might match the return type of a gcc2 |
| 25437 | builtin and then its argument prototype would still apply. */ |
| 25438 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25439 | int |
| 25440 | main () |
| 25441 | { |
| 25442 | mallinfo (); |
| 25443 | ; |
| 25444 | return 0; |
| 25445 | } |
| 25446 | _ACEOF |
| 25447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25449 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25450 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25452 | rm -f conftest.er1 |
| 25453 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25455 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25456 | { ac_try='test -z "$ac_c_werror_flag" |
| 25457 | || test ! -s conftest.err' |
| 25458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25459 | (eval $ac_try) 2>&5 |
| 25460 | ac_status=$? |
| 25461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25462 | (exit $ac_status); }; } && |
| 25463 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25465 | (eval $ac_try) 2>&5 |
| 25466 | ac_status=$? |
| 25467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25468 | (exit $ac_status); }; }; then |
| 25469 | ac_cv_search_mallinfo="none required" |
| 25470 | else |
| 25471 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25473 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25474 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25475 | rm -f conftest.err conftest.$ac_objext \ |
| 25476 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25477 | if test "$ac_cv_search_mallinfo" = no; then |
| 25478 | for ac_lib in malloc; do |
| 25479 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25480 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25481 | /* confdefs.h. */ |
| 25482 | _ACEOF |
| 25483 | cat confdefs.h >>conftest.$ac_ext |
| 25484 | cat >>conftest.$ac_ext <<_ACEOF |
| 25485 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25486 | |
| 25487 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25488 | #ifdef __cplusplus |
| 25489 | extern "C" |
| 25490 | #endif |
| 25491 | /* We use char because int might match the return type of a gcc2 |
| 25492 | builtin and then its argument prototype would still apply. */ |
| 25493 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25494 | int |
| 25495 | main () |
| 25496 | { |
| 25497 | mallinfo (); |
| 25498 | ; |
| 25499 | return 0; |
| 25500 | } |
| 25501 | _ACEOF |
| 25502 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25504 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25505 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25507 | rm -f conftest.er1 |
| 25508 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25510 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25511 | { ac_try='test -z "$ac_c_werror_flag" |
| 25512 | || test ! -s conftest.err' |
| 25513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25514 | (eval $ac_try) 2>&5 |
| 25515 | ac_status=$? |
| 25516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25517 | (exit $ac_status); }; } && |
| 25518 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25520 | (eval $ac_try) 2>&5 |
| 25521 | ac_status=$? |
| 25522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25523 | (exit $ac_status); }; }; then |
| 25524 | ac_cv_search_mallinfo="-l$ac_lib" |
| 25525 | break |
| 25526 | else |
| 25527 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25529 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25530 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25531 | rm -f conftest.err conftest.$ac_objext \ |
| 25532 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25533 | done |
| 25534 | fi |
| 25535 | LIBS=$ac_func_search_save_LIBS |
| 25536 | fi |
| 25537 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 25538 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 |
| 25539 | if test "$ac_cv_search_mallinfo" != no; then |
| 25540 | test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 25541 | |
| 25542 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25543 | #define HAVE_MALLINFO 1 |
| 25544 | _ACEOF |
| 25545 | |
| 25546 | fi |
| 25547 | |
| 25548 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 25549 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 25550 | |
| 25551 | echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 25552 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 |
| 25553 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 25554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25555 | else |
| 25556 | ac_check_lib_save_LIBS=$LIBS |
| 25557 | LIBS="-lpthread $LIBS" |
| 25558 | cat >conftest.$ac_ext <<_ACEOF |
| 25559 | /* confdefs.h. */ |
| 25560 | _ACEOF |
| 25561 | cat confdefs.h >>conftest.$ac_ext |
| 25562 | cat >>conftest.$ac_ext <<_ACEOF |
| 25563 | /* end confdefs.h. */ |
| 25564 | |
| 25565 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25566 | #ifdef __cplusplus |
| 25567 | extern "C" |
| 25568 | #endif |
| 25569 | /* We use char because int might match the return type of a gcc2 |
| 25570 | builtin and then its argument prototype would still apply. */ |
| 25571 | char pthread_mutex_init (); |
| 25572 | int |
| 25573 | main () |
| 25574 | { |
| 25575 | pthread_mutex_init (); |
| 25576 | ; |
| 25577 | return 0; |
| 25578 | } |
| 25579 | _ACEOF |
| 25580 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25582 | (eval $ac_link) 2>conftest.er1 |
| 25583 | ac_status=$? |
| 25584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25585 | rm -f conftest.er1 |
| 25586 | cat conftest.err >&5 |
| 25587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25588 | (exit $ac_status); } && |
| 25589 | { ac_try='test -z "$ac_c_werror_flag" |
| 25590 | || test ! -s conftest.err' |
| 25591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25592 | (eval $ac_try) 2>&5 |
| 25593 | ac_status=$? |
| 25594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25595 | (exit $ac_status); }; } && |
| 25596 | { ac_try='test -s conftest$ac_exeext' |
| 25597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25598 | (eval $ac_try) 2>&5 |
| 25599 | ac_status=$? |
| 25600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25601 | (exit $ac_status); }; }; then |
| 25602 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 25603 | else |
| 25604 | echo "$as_me: failed program was:" >&5 |
| 25605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25606 | |
| 25607 | ac_cv_lib_pthread_pthread_mutex_init=no |
| 25608 | fi |
| 25609 | rm -f conftest.err conftest.$ac_objext \ |
| 25610 | conftest$ac_exeext conftest.$ac_ext |
| 25611 | LIBS=$ac_check_lib_save_LIBS |
| 25612 | fi |
| 25613 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 25614 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 |
| 25615 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 25616 | cat >>confdefs.h <<_ACEOF |
| 25617 | #define HAVE_LIBPTHREAD 1 |
| 25618 | _ACEOF |
| 25619 | |
| 25620 | LIBS="-lpthread $LIBS" |
| 25621 | |
| 25622 | fi |
| 25623 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 25624 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25625 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 |
| 25626 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 25627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25628 | else |
| 25629 | ac_func_search_save_LIBS=$LIBS |
| 25630 | ac_cv_search_pthread_mutex_lock=no |
| 25631 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25632 | /* confdefs.h. */ |
| 25633 | _ACEOF |
| 25634 | cat confdefs.h >>conftest.$ac_ext |
| 25635 | cat >>conftest.$ac_ext <<_ACEOF |
| 25636 | /* end confdefs.h. */ |
| 25637 | |
| 25638 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25639 | #ifdef __cplusplus |
| 25640 | extern "C" |
| 25641 | #endif |
| 25642 | /* We use char because int might match the return type of a gcc2 |
| 25643 | builtin and then its argument prototype would still apply. */ |
| 25644 | char pthread_mutex_lock (); |
| 25645 | int |
| 25646 | main () |
| 25647 | { |
| 25648 | pthread_mutex_lock (); |
| 25649 | ; |
| 25650 | return 0; |
| 25651 | } |
| 25652 | _ACEOF |
| 25653 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25655 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25656 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25658 | rm -f conftest.er1 |
| 25659 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25661 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25662 | { ac_try='test -z "$ac_c_werror_flag" |
| 25663 | || test ! -s conftest.err' |
| 25664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25665 | (eval $ac_try) 2>&5 |
| 25666 | ac_status=$? |
| 25667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25668 | (exit $ac_status); }; } && |
| 25669 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25671 | (eval $ac_try) 2>&5 |
| 25672 | ac_status=$? |
| 25673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25674 | (exit $ac_status); }; }; then |
| 25675 | ac_cv_search_pthread_mutex_lock="none required" |
| 25676 | else |
| 25677 | echo "$as_me: failed program was:" >&5 |
| 25678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25679 | |
| 25680 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25681 | rm -f conftest.err conftest.$ac_objext \ |
| 25682 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25683 | if test "$ac_cv_search_pthread_mutex_lock" = no; then |
| 25684 | for ac_lib in pthread; do |
| 25685 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25686 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25687 | /* confdefs.h. */ |
| 25688 | _ACEOF |
| 25689 | cat confdefs.h >>conftest.$ac_ext |
| 25690 | cat >>conftest.$ac_ext <<_ACEOF |
| 25691 | /* end confdefs.h. */ |
| 25692 | |
| 25693 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25694 | #ifdef __cplusplus |
| 25695 | extern "C" |
| 25696 | #endif |
| 25697 | /* We use char because int might match the return type of a gcc2 |
| 25698 | builtin and then its argument prototype would still apply. */ |
| 25699 | char pthread_mutex_lock (); |
| 25700 | int |
| 25701 | main () |
| 25702 | { |
| 25703 | pthread_mutex_lock (); |
| 25704 | ; |
| 25705 | return 0; |
| 25706 | } |
| 25707 | _ACEOF |
| 25708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25710 | (eval $ac_link) 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25711 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25713 | rm -f conftest.er1 |
| 25714 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25716 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25717 | { ac_try='test -z "$ac_c_werror_flag" |
| 25718 | || test ! -s conftest.err' |
| 25719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25720 | (eval $ac_try) 2>&5 |
| 25721 | ac_status=$? |
| 25722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25723 | (exit $ac_status); }; } && |
| 25724 | { ac_try='test -s conftest$ac_exeext' |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25726 | (eval $ac_try) 2>&5 |
| 25727 | ac_status=$? |
| 25728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25729 | (exit $ac_status); }; }; then |
| 25730 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" |
| 25731 | break |
| 25732 | else |
| 25733 | echo "$as_me: failed program was:" >&5 |
| 25734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25735 | |
| 25736 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25737 | rm -f conftest.err conftest.$ac_objext \ |
| 25738 | conftest$ac_exeext conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25739 | done |
| 25740 | fi |
| 25741 | LIBS=$ac_func_search_save_LIBS |
| 25742 | fi |
| 25743 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 25744 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 |
| 25745 | if test "$ac_cv_search_pthread_mutex_lock" != no; then |
| 25746 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25747 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 25748 | cat >>confdefs.h <<\_ACEOF |
| 25749 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 25750 | _ACEOF |
| 25751 | |
| 25752 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25753 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 25754 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 25755 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25756 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25757 | |
| 25758 | |
| 25759 | |
| 25760 | |
| 25761 | |
| 25762 | ac_header_dirent=no |
| 25763 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 25764 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 25765 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 25766 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 25767 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 25768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25769 | else |
| 25770 | cat >conftest.$ac_ext <<_ACEOF |
| 25771 | /* confdefs.h. */ |
| 25772 | _ACEOF |
| 25773 | cat confdefs.h >>conftest.$ac_ext |
| 25774 | cat >>conftest.$ac_ext <<_ACEOF |
| 25775 | /* end confdefs.h. */ |
| 25776 | #include <sys/types.h> |
| 25777 | #include <$ac_hdr> |
| 25778 | |
| 25779 | int |
| 25780 | main () |
| 25781 | { |
| 25782 | if ((DIR *) 0) |
| 25783 | return 0; |
| 25784 | ; |
| 25785 | return 0; |
| 25786 | } |
| 25787 | _ACEOF |
| 25788 | rm -f conftest.$ac_objext |
| 25789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25790 | (eval $ac_compile) 2>conftest.er1 |
| 25791 | ac_status=$? |
| 25792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25793 | rm -f conftest.er1 |
| 25794 | cat conftest.err >&5 |
| 25795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25796 | (exit $ac_status); } && |
| 25797 | { ac_try='test -z "$ac_c_werror_flag" |
| 25798 | || test ! -s conftest.err' |
| 25799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25800 | (eval $ac_try) 2>&5 |
| 25801 | ac_status=$? |
| 25802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25803 | (exit $ac_status); }; } && |
| 25804 | { ac_try='test -s conftest.$ac_objext' |
| 25805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25806 | (eval $ac_try) 2>&5 |
| 25807 | ac_status=$? |
| 25808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25809 | (exit $ac_status); }; }; then |
| 25810 | eval "$as_ac_Header=yes" |
| 25811 | else |
| 25812 | echo "$as_me: failed program was:" >&5 |
| 25813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25814 | |
| 25815 | eval "$as_ac_Header=no" |
| 25816 | fi |
| 25817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25818 | fi |
| 25819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 25820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 25821 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 25822 | cat >>confdefs.h <<_ACEOF |
| 25823 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 25824 | _ACEOF |
| 25825 | |
| 25826 | ac_header_dirent=$ac_hdr; break |
| 25827 | fi |
| 25828 | |
| 25829 | done |
| 25830 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 25831 | if test $ac_header_dirent = dirent.h; then |
| 25832 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 25833 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 25834 | if test "${ac_cv_search_opendir+set}" = set; then |
| 25835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25836 | else |
| 25837 | ac_func_search_save_LIBS=$LIBS |
| 25838 | ac_cv_search_opendir=no |
| 25839 | cat >conftest.$ac_ext <<_ACEOF |
| 25840 | /* confdefs.h. */ |
| 25841 | _ACEOF |
| 25842 | cat confdefs.h >>conftest.$ac_ext |
| 25843 | cat >>conftest.$ac_ext <<_ACEOF |
| 25844 | /* end confdefs.h. */ |
| 25845 | |
| 25846 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25847 | #ifdef __cplusplus |
| 25848 | extern "C" |
| 25849 | #endif |
| 25850 | /* We use char because int might match the return type of a gcc2 |
| 25851 | builtin and then its argument prototype would still apply. */ |
| 25852 | char opendir (); |
| 25853 | int |
| 25854 | main () |
| 25855 | { |
| 25856 | opendir (); |
| 25857 | ; |
| 25858 | return 0; |
| 25859 | } |
| 25860 | _ACEOF |
| 25861 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25863 | (eval $ac_link) 2>conftest.er1 |
| 25864 | ac_status=$? |
| 25865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25866 | rm -f conftest.er1 |
| 25867 | cat conftest.err >&5 |
| 25868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25869 | (exit $ac_status); } && |
| 25870 | { ac_try='test -z "$ac_c_werror_flag" |
| 25871 | || test ! -s conftest.err' |
| 25872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25873 | (eval $ac_try) 2>&5 |
| 25874 | ac_status=$? |
| 25875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25876 | (exit $ac_status); }; } && |
| 25877 | { ac_try='test -s conftest$ac_exeext' |
| 25878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25879 | (eval $ac_try) 2>&5 |
| 25880 | ac_status=$? |
| 25881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25882 | (exit $ac_status); }; }; then |
| 25883 | ac_cv_search_opendir="none required" |
| 25884 | else |
| 25885 | echo "$as_me: failed program was:" >&5 |
| 25886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25887 | |
| 25888 | fi |
| 25889 | rm -f conftest.err conftest.$ac_objext \ |
| 25890 | conftest$ac_exeext conftest.$ac_ext |
| 25891 | if test "$ac_cv_search_opendir" = no; then |
| 25892 | for ac_lib in dir; do |
| 25893 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25894 | cat >conftest.$ac_ext <<_ACEOF |
| 25895 | /* confdefs.h. */ |
| 25896 | _ACEOF |
| 25897 | cat confdefs.h >>conftest.$ac_ext |
| 25898 | cat >>conftest.$ac_ext <<_ACEOF |
| 25899 | /* end confdefs.h. */ |
| 25900 | |
| 25901 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25902 | #ifdef __cplusplus |
| 25903 | extern "C" |
| 25904 | #endif |
| 25905 | /* We use char because int might match the return type of a gcc2 |
| 25906 | builtin and then its argument prototype would still apply. */ |
| 25907 | char opendir (); |
| 25908 | int |
| 25909 | main () |
| 25910 | { |
| 25911 | opendir (); |
| 25912 | ; |
| 25913 | return 0; |
| 25914 | } |
| 25915 | _ACEOF |
| 25916 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25918 | (eval $ac_link) 2>conftest.er1 |
| 25919 | ac_status=$? |
| 25920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25921 | rm -f conftest.er1 |
| 25922 | cat conftest.err >&5 |
| 25923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25924 | (exit $ac_status); } && |
| 25925 | { ac_try='test -z "$ac_c_werror_flag" |
| 25926 | || test ! -s conftest.err' |
| 25927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25928 | (eval $ac_try) 2>&5 |
| 25929 | ac_status=$? |
| 25930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25931 | (exit $ac_status); }; } && |
| 25932 | { ac_try='test -s conftest$ac_exeext' |
| 25933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 25934 | (eval $ac_try) 2>&5 |
| 25935 | ac_status=$? |
| 25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25937 | (exit $ac_status); }; }; then |
| 25938 | ac_cv_search_opendir="-l$ac_lib" |
| 25939 | break |
| 25940 | else |
| 25941 | echo "$as_me: failed program was:" >&5 |
| 25942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25943 | |
| 25944 | fi |
| 25945 | rm -f conftest.err conftest.$ac_objext \ |
| 25946 | conftest$ac_exeext conftest.$ac_ext |
| 25947 | done |
| 25948 | fi |
| 25949 | LIBS=$ac_func_search_save_LIBS |
| 25950 | fi |
| 25951 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 25952 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 25953 | if test "$ac_cv_search_opendir" != no; then |
| 25954 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 25955 | |
| 25956 | fi |
| 25957 | |
| 25958 | else |
| 25959 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 25960 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 25961 | if test "${ac_cv_search_opendir+set}" = set; then |
| 25962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25963 | else |
| 25964 | ac_func_search_save_LIBS=$LIBS |
| 25965 | ac_cv_search_opendir=no |
| 25966 | cat >conftest.$ac_ext <<_ACEOF |
| 25967 | /* confdefs.h. */ |
| 25968 | _ACEOF |
| 25969 | cat confdefs.h >>conftest.$ac_ext |
| 25970 | cat >>conftest.$ac_ext <<_ACEOF |
| 25971 | /* end confdefs.h. */ |
| 25972 | |
| 25973 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 25974 | #ifdef __cplusplus |
| 25975 | extern "C" |
| 25976 | #endif |
| 25977 | /* We use char because int might match the return type of a gcc2 |
| 25978 | builtin and then its argument prototype would still apply. */ |
| 25979 | char opendir (); |
| 25980 | int |
| 25981 | main () |
| 25982 | { |
| 25983 | opendir (); |
| 25984 | ; |
| 25985 | return 0; |
| 25986 | } |
| 25987 | _ACEOF |
| 25988 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 25990 | (eval $ac_link) 2>conftest.er1 |
| 25991 | ac_status=$? |
| 25992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25993 | rm -f conftest.er1 |
| 25994 | cat conftest.err >&5 |
| 25995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25996 | (exit $ac_status); } && |
| 25997 | { ac_try='test -z "$ac_c_werror_flag" |
| 25998 | || test ! -s conftest.err' |
| 25999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26000 | (eval $ac_try) 2>&5 |
| 26001 | ac_status=$? |
| 26002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26003 | (exit $ac_status); }; } && |
| 26004 | { ac_try='test -s conftest$ac_exeext' |
| 26005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26006 | (eval $ac_try) 2>&5 |
| 26007 | ac_status=$? |
| 26008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26009 | (exit $ac_status); }; }; then |
| 26010 | ac_cv_search_opendir="none required" |
| 26011 | else |
| 26012 | echo "$as_me: failed program was:" >&5 |
| 26013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26014 | |
| 26015 | fi |
| 26016 | rm -f conftest.err conftest.$ac_objext \ |
| 26017 | conftest$ac_exeext conftest.$ac_ext |
| 26018 | if test "$ac_cv_search_opendir" = no; then |
| 26019 | for ac_lib in x; do |
| 26020 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 26021 | cat >conftest.$ac_ext <<_ACEOF |
| 26022 | /* confdefs.h. */ |
| 26023 | _ACEOF |
| 26024 | cat confdefs.h >>conftest.$ac_ext |
| 26025 | cat >>conftest.$ac_ext <<_ACEOF |
| 26026 | /* end confdefs.h. */ |
| 26027 | |
| 26028 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 26029 | #ifdef __cplusplus |
| 26030 | extern "C" |
| 26031 | #endif |
| 26032 | /* We use char because int might match the return type of a gcc2 |
| 26033 | builtin and then its argument prototype would still apply. */ |
| 26034 | char opendir (); |
| 26035 | int |
| 26036 | main () |
| 26037 | { |
| 26038 | opendir (); |
| 26039 | ; |
| 26040 | return 0; |
| 26041 | } |
| 26042 | _ACEOF |
| 26043 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26045 | (eval $ac_link) 2>conftest.er1 |
| 26046 | ac_status=$? |
| 26047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26048 | rm -f conftest.er1 |
| 26049 | cat conftest.err >&5 |
| 26050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26051 | (exit $ac_status); } && |
| 26052 | { ac_try='test -z "$ac_c_werror_flag" |
| 26053 | || test ! -s conftest.err' |
| 26054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26055 | (eval $ac_try) 2>&5 |
| 26056 | ac_status=$? |
| 26057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26058 | (exit $ac_status); }; } && |
| 26059 | { ac_try='test -s conftest$ac_exeext' |
| 26060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26061 | (eval $ac_try) 2>&5 |
| 26062 | ac_status=$? |
| 26063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26064 | (exit $ac_status); }; }; then |
| 26065 | ac_cv_search_opendir="-l$ac_lib" |
| 26066 | break |
| 26067 | else |
| 26068 | echo "$as_me: failed program was:" >&5 |
| 26069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26070 | |
| 26071 | fi |
| 26072 | rm -f conftest.err conftest.$ac_objext \ |
| 26073 | conftest$ac_exeext conftest.$ac_ext |
| 26074 | done |
| 26075 | fi |
| 26076 | LIBS=$ac_func_search_save_LIBS |
| 26077 | fi |
| 26078 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 26079 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 26080 | if test "$ac_cv_search_opendir" != no; then |
| 26081 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 26082 | |
| 26083 | fi |
| 26084 | |
| 26085 | fi |
| 26086 | |
| 26087 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 26088 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 |
| 26089 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 26090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26091 | else |
| 26092 | ac_ext=c |
| 26093 | ac_cpp='$CPP $CPPFLAGS' |
| 26094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26097 | |
| 26098 | cat >conftest.$ac_ext <<_ACEOF |
| 26099 | /* confdefs.h. */ |
| 26100 | _ACEOF |
| 26101 | cat confdefs.h >>conftest.$ac_ext |
| 26102 | cat >>conftest.$ac_ext <<_ACEOF |
| 26103 | /* end confdefs.h. */ |
| 26104 | #include <sys/mman.h> |
| 26105 | #include <unistd.h> |
| 26106 | #include <fcntl.h> |
| 26107 | int |
| 26108 | main () |
| 26109 | { |
| 26110 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 26111 | ; |
| 26112 | return 0; |
| 26113 | } |
| 26114 | _ACEOF |
| 26115 | rm -f conftest.$ac_objext |
| 26116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26117 | (eval $ac_compile) 2>conftest.er1 |
| 26118 | ac_status=$? |
| 26119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26120 | rm -f conftest.er1 |
| 26121 | cat conftest.err >&5 |
| 26122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26123 | (exit $ac_status); } && |
| 26124 | { ac_try='test -z "$ac_c_werror_flag" |
| 26125 | || test ! -s conftest.err' |
| 26126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26127 | (eval $ac_try) 2>&5 |
| 26128 | ac_status=$? |
| 26129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26130 | (exit $ac_status); }; } && |
| 26131 | { ac_try='test -s conftest.$ac_objext' |
| 26132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26133 | (eval $ac_try) 2>&5 |
| 26134 | ac_status=$? |
| 26135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26136 | (exit $ac_status); }; }; then |
| 26137 | ac_cv_header_mmap_anon=yes |
| 26138 | else |
| 26139 | echo "$as_me: failed program was:" >&5 |
| 26140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26141 | |
| 26142 | ac_cv_header_mmap_anon=no |
| 26143 | fi |
| 26144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26145 | ac_ext=c |
| 26146 | ac_cpp='$CPP $CPPFLAGS' |
| 26147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26150 | |
| 26151 | |
| 26152 | fi |
| 26153 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 26154 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 |
| 26155 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 26156 | |
| 26157 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26158 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26159 | _ACEOF |
| 26160 | |
| 26161 | fi |
| 26162 | |
| 26163 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 26164 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 26165 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 26166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26167 | else |
| 26168 | cat >conftest.$ac_ext <<_ACEOF |
| 26169 | /* confdefs.h. */ |
| 26170 | _ACEOF |
| 26171 | cat confdefs.h >>conftest.$ac_ext |
| 26172 | cat >>conftest.$ac_ext <<_ACEOF |
| 26173 | /* end confdefs.h. */ |
| 26174 | #include <sys/types.h> |
| 26175 | #include <sys/stat.h> |
| 26176 | |
| 26177 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 26178 | # if S_ISBLK (S_IFDIR) |
| 26179 | You lose. |
| 26180 | # endif |
| 26181 | #endif |
| 26182 | |
| 26183 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 26184 | # if S_ISBLK (S_IFCHR) |
| 26185 | You lose. |
| 26186 | # endif |
| 26187 | #endif |
| 26188 | |
| 26189 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 26190 | # if S_ISLNK (S_IFREG) |
| 26191 | You lose. |
| 26192 | # endif |
| 26193 | #endif |
| 26194 | |
| 26195 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 26196 | # if S_ISSOCK (S_IFREG) |
| 26197 | You lose. |
| 26198 | # endif |
| 26199 | #endif |
| 26200 | |
| 26201 | _ACEOF |
| 26202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26203 | $EGREP "You lose" >/dev/null 2>&1; then |
| 26204 | ac_cv_header_stat_broken=yes |
| 26205 | else |
| 26206 | ac_cv_header_stat_broken=no |
| 26207 | fi |
| 26208 | rm -f conftest* |
| 26209 | |
| 26210 | fi |
| 26211 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 26212 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 26213 | if test $ac_cv_header_stat_broken = yes; then |
| 26214 | |
| 26215 | cat >>confdefs.h <<\_ACEOF |
| 26216 | #define STAT_MACROS_BROKEN 1 |
| 26217 | _ACEOF |
| 26218 | |
| 26219 | fi |
| 26220 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26221 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 26222 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 26223 | if test "${ac_cv_header_stdc+set}" = set; then |
| 26224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26225 | else |
| 26226 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26227 | /* confdefs.h. */ |
| 26228 | _ACEOF |
| 26229 | cat confdefs.h >>conftest.$ac_ext |
| 26230 | cat >>conftest.$ac_ext <<_ACEOF |
| 26231 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26232 | #include <stdlib.h> |
| 26233 | #include <stdarg.h> |
| 26234 | #include <string.h> |
| 26235 | #include <float.h> |
| 26236 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26237 | int |
| 26238 | main () |
| 26239 | { |
| 26240 | |
| 26241 | ; |
| 26242 | return 0; |
| 26243 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26244 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26245 | rm -f conftest.$ac_objext |
| 26246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26247 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26248 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26250 | rm -f conftest.er1 |
| 26251 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26253 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26254 | { ac_try='test -z "$ac_c_werror_flag" |
| 26255 | || test ! -s conftest.err' |
| 26256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26257 | (eval $ac_try) 2>&5 |
| 26258 | ac_status=$? |
| 26259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26260 | (exit $ac_status); }; } && |
| 26261 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26263 | (eval $ac_try) 2>&5 |
| 26264 | ac_status=$? |
| 26265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26266 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26267 | ac_cv_header_stdc=yes |
| 26268 | else |
| 26269 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26271 | |
| 26272 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26273 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26275 | |
| 26276 | if test $ac_cv_header_stdc = yes; then |
| 26277 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 26278 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26279 | /* confdefs.h. */ |
| 26280 | _ACEOF |
| 26281 | cat confdefs.h >>conftest.$ac_ext |
| 26282 | cat >>conftest.$ac_ext <<_ACEOF |
| 26283 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26284 | #include <string.h> |
| 26285 | |
| 26286 | _ACEOF |
| 26287 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26288 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26289 | : |
| 26290 | else |
| 26291 | ac_cv_header_stdc=no |
| 26292 | fi |
| 26293 | rm -f conftest* |
| 26294 | |
| 26295 | fi |
| 26296 | |
| 26297 | if test $ac_cv_header_stdc = yes; then |
| 26298 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 26299 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26300 | /* confdefs.h. */ |
| 26301 | _ACEOF |
| 26302 | cat confdefs.h >>conftest.$ac_ext |
| 26303 | cat >>conftest.$ac_ext <<_ACEOF |
| 26304 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26305 | #include <stdlib.h> |
| 26306 | |
| 26307 | _ACEOF |
| 26308 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26309 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26310 | : |
| 26311 | else |
| 26312 | ac_cv_header_stdc=no |
| 26313 | fi |
| 26314 | rm -f conftest* |
| 26315 | |
| 26316 | fi |
| 26317 | |
| 26318 | if test $ac_cv_header_stdc = yes; then |
| 26319 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 26320 | if test "$cross_compiling" = yes; then |
| 26321 | : |
| 26322 | else |
| 26323 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26324 | /* confdefs.h. */ |
| 26325 | _ACEOF |
| 26326 | cat confdefs.h >>conftest.$ac_ext |
| 26327 | cat >>conftest.$ac_ext <<_ACEOF |
| 26328 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26329 | #include <ctype.h> |
| 26330 | #if ((' ' & 0x0FF) == 0x020) |
| 26331 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 26332 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 26333 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26334 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26335 | (('a' <= (c) && (c) <= 'i') \ |
| 26336 | || ('j' <= (c) && (c) <= 'r') \ |
| 26337 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26338 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 26339 | #endif |
| 26340 | |
| 26341 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 26342 | int |
| 26343 | main () |
| 26344 | { |
| 26345 | int i; |
| 26346 | for (i = 0; i < 256; i++) |
| 26347 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26348 | || toupper (i) != TOUPPER (i)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26349 | exit(2); |
| 26350 | exit (0); |
| 26351 | } |
| 26352 | _ACEOF |
| 26353 | rm -f conftest$ac_exeext |
| 26354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 26355 | (eval $ac_link) 2>&5 |
| 26356 | ac_status=$? |
| 26357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26358 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26360 | (eval $ac_try) 2>&5 |
| 26361 | ac_status=$? |
| 26362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26363 | (exit $ac_status); }; }; then |
| 26364 | : |
| 26365 | else |
| 26366 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26367 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26369 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26370 | ( exit $ac_status ) |
| 26371 | ac_cv_header_stdc=no |
| 26372 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26373 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26374 | fi |
| 26375 | fi |
| 26376 | fi |
| 26377 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 26378 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 26379 | if test $ac_cv_header_stdc = yes; then |
| 26380 | |
| 26381 | cat >>confdefs.h <<\_ACEOF |
| 26382 | #define STDC_HEADERS 1 |
| 26383 | _ACEOF |
| 26384 | |
| 26385 | fi |
| 26386 | |
| 26387 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 26388 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 26389 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 26390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26391 | else |
| 26392 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26393 | /* confdefs.h. */ |
| 26394 | _ACEOF |
| 26395 | cat confdefs.h >>conftest.$ac_ext |
| 26396 | cat >>conftest.$ac_ext <<_ACEOF |
| 26397 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26398 | #include <sys/types.h> |
| 26399 | #include <sys/wait.h> |
| 26400 | #ifndef WEXITSTATUS |
| 26401 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 26402 | #endif |
| 26403 | #ifndef WIFEXITED |
| 26404 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 26405 | #endif |
| 26406 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26407 | int |
| 26408 | main () |
| 26409 | { |
| 26410 | int s; |
| 26411 | wait (&s); |
| 26412 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 26413 | ; |
| 26414 | return 0; |
| 26415 | } |
| 26416 | _ACEOF |
| 26417 | rm -f conftest.$ac_objext |
| 26418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26419 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26420 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26422 | rm -f conftest.er1 |
| 26423 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26425 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26426 | { ac_try='test -z "$ac_c_werror_flag" |
| 26427 | || test ! -s conftest.err' |
| 26428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26429 | (eval $ac_try) 2>&5 |
| 26430 | ac_status=$? |
| 26431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26432 | (exit $ac_status); }; } && |
| 26433 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26435 | (eval $ac_try) 2>&5 |
| 26436 | ac_status=$? |
| 26437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26438 | (exit $ac_status); }; }; then |
| 26439 | ac_cv_header_sys_wait_h=yes |
| 26440 | else |
| 26441 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26443 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26444 | ac_cv_header_sys_wait_h=no |
| 26445 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26447 | fi |
| 26448 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 26449 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 26450 | if test $ac_cv_header_sys_wait_h = yes; then |
| 26451 | |
| 26452 | cat >>confdefs.h <<\_ACEOF |
| 26453 | #define HAVE_SYS_WAIT_H 1 |
| 26454 | _ACEOF |
| 26455 | |
| 26456 | fi |
| 26457 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26458 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 26459 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 26460 | if test "${ac_cv_header_time+set}" = set; then |
| 26461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26462 | else |
| 26463 | cat >conftest.$ac_ext <<_ACEOF |
| 26464 | /* confdefs.h. */ |
| 26465 | _ACEOF |
| 26466 | cat confdefs.h >>conftest.$ac_ext |
| 26467 | cat >>conftest.$ac_ext <<_ACEOF |
| 26468 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26469 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26470 | #include <sys/time.h> |
| 26471 | #include <time.h> |
| 26472 | |
| 26473 | int |
| 26474 | main () |
| 26475 | { |
| 26476 | if ((struct tm *) 0) |
| 26477 | return 0; |
| 26478 | ; |
| 26479 | return 0; |
| 26480 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26481 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26482 | rm -f conftest.$ac_objext |
| 26483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26484 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26485 | ac_status=$? |
| 26486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26487 | rm -f conftest.er1 |
| 26488 | cat conftest.err >&5 |
| 26489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26490 | (exit $ac_status); } && |
| 26491 | { ac_try='test -z "$ac_c_werror_flag" |
| 26492 | || test ! -s conftest.err' |
| 26493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26494 | (eval $ac_try) 2>&5 |
| 26495 | ac_status=$? |
| 26496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26497 | (exit $ac_status); }; } && |
| 26498 | { ac_try='test -s conftest.$ac_objext' |
| 26499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26500 | (eval $ac_try) 2>&5 |
| 26501 | ac_status=$? |
| 26502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26503 | (exit $ac_status); }; }; then |
| 26504 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26505 | else |
| 26506 | echo "$as_me: failed program was:" >&5 |
| 26507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26508 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26509 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26510 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26512 | fi |
| 26513 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 26514 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 26515 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26516 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26517 | cat >>confdefs.h <<\_ACEOF |
| 26518 | #define TIME_WITH_SYS_TIME 1 |
| 26519 | _ACEOF |
| 26520 | |
| 26521 | fi |
| 26522 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26523 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26524 | |
| 26525 | |
| 26526 | |
| 26527 | |
| 26528 | |
| 26529 | |
| 26530 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 26531 | do |
| 26532 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26534 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26535 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26538 | fi |
| 26539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26540 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26541 | else |
| 26542 | # Is the header compilable? |
| 26543 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26544 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 26545 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26546 | /* confdefs.h. */ |
| 26547 | _ACEOF |
| 26548 | cat confdefs.h >>conftest.$ac_ext |
| 26549 | cat >>conftest.$ac_ext <<_ACEOF |
| 26550 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26551 | $ac_includes_default |
| 26552 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26553 | _ACEOF |
| 26554 | rm -f conftest.$ac_objext |
| 26555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26556 | (eval $ac_compile) 2>conftest.er1 |
| 26557 | ac_status=$? |
| 26558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26559 | rm -f conftest.er1 |
| 26560 | cat conftest.err >&5 |
| 26561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26562 | (exit $ac_status); } && |
| 26563 | { ac_try='test -z "$ac_c_werror_flag" |
| 26564 | || test ! -s conftest.err' |
| 26565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26566 | (eval $ac_try) 2>&5 |
| 26567 | ac_status=$? |
| 26568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26569 | (exit $ac_status); }; } && |
| 26570 | { ac_try='test -s conftest.$ac_objext' |
| 26571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26572 | (eval $ac_try) 2>&5 |
| 26573 | ac_status=$? |
| 26574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26575 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26576 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26577 | else |
| 26578 | echo "$as_me: failed program was:" >&5 |
| 26579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26580 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26581 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26582 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26584 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26585 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26586 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26587 | # Is the header present? |
| 26588 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26589 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 26590 | cat >conftest.$ac_ext <<_ACEOF |
| 26591 | /* confdefs.h. */ |
| 26592 | _ACEOF |
| 26593 | cat confdefs.h >>conftest.$ac_ext |
| 26594 | cat >>conftest.$ac_ext <<_ACEOF |
| 26595 | /* end confdefs.h. */ |
| 26596 | #include <$ac_header> |
| 26597 | _ACEOF |
| 26598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26600 | ac_status=$? |
| 26601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26602 | rm -f conftest.er1 |
| 26603 | cat conftest.err >&5 |
| 26604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26605 | (exit $ac_status); } >/dev/null; then |
| 26606 | if test -s conftest.err; then |
| 26607 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 26608 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 26609 | else |
| 26610 | ac_cpp_err= |
| 26611 | fi |
| 26612 | else |
| 26613 | ac_cpp_err=yes |
| 26614 | fi |
| 26615 | if test -z "$ac_cpp_err"; then |
| 26616 | ac_header_preproc=yes |
| 26617 | else |
| 26618 | echo "$as_me: failed program was:" >&5 |
| 26619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26620 | |
| 26621 | ac_header_preproc=no |
| 26622 | fi |
| 26623 | rm -f conftest.err conftest.$ac_ext |
| 26624 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26625 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26626 | |
| 26627 | # So? What about this header? |
| 26628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26629 | yes:no: ) |
| 26630 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26631 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26633 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 26634 | ac_header_preproc=yes |
| 26635 | ;; |
| 26636 | no:yes:* ) |
| 26637 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26638 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26639 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26640 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26641 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26642 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26643 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26644 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26645 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26646 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26647 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26648 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 26649 | ( |
| 26650 | cat <<\_ASBOX |
| 26651 | ## ----------------------------------- ## |
| 26652 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26653 | ## ----------------------------------- ## |
| 26654 | _ASBOX |
| 26655 | ) | |
| 26656 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26657 | ;; |
| 26658 | esac |
| 26659 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26660 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26663 | else |
| 26664 | eval "$as_ac_Header=\$ac_header_preproc" |
| 26665 | fi |
| 26666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26667 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26668 | |
| 26669 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26670 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26671 | cat >>confdefs.h <<_ACEOF |
| 26672 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26673 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26674 | |
| 26675 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26676 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26677 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26678 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26679 | |
| 26680 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26681 | |
| 26682 | |
| 26683 | |
| 26684 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 26685 | for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26686 | do |
| 26687 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26688 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26693 | fi |
| 26694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26695 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26696 | else |
| 26697 | # Is the header compilable? |
| 26698 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26699 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 26700 | cat >conftest.$ac_ext <<_ACEOF |
| 26701 | /* confdefs.h. */ |
| 26702 | _ACEOF |
| 26703 | cat confdefs.h >>conftest.$ac_ext |
| 26704 | cat >>conftest.$ac_ext <<_ACEOF |
| 26705 | /* end confdefs.h. */ |
| 26706 | $ac_includes_default |
| 26707 | #include <$ac_header> |
| 26708 | _ACEOF |
| 26709 | rm -f conftest.$ac_objext |
| 26710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 26711 | (eval $ac_compile) 2>conftest.er1 |
| 26712 | ac_status=$? |
| 26713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26714 | rm -f conftest.er1 |
| 26715 | cat conftest.err >&5 |
| 26716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26717 | (exit $ac_status); } && |
| 26718 | { ac_try='test -z "$ac_c_werror_flag" |
| 26719 | || test ! -s conftest.err' |
| 26720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26721 | (eval $ac_try) 2>&5 |
| 26722 | ac_status=$? |
| 26723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26724 | (exit $ac_status); }; } && |
| 26725 | { ac_try='test -s conftest.$ac_objext' |
| 26726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26727 | (eval $ac_try) 2>&5 |
| 26728 | ac_status=$? |
| 26729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26730 | (exit $ac_status); }; }; then |
| 26731 | ac_header_compiler=yes |
| 26732 | else |
| 26733 | echo "$as_me: failed program was:" >&5 |
| 26734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26735 | |
| 26736 | ac_header_compiler=no |
| 26737 | fi |
| 26738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26739 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26740 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 26741 | |
| 26742 | # Is the header present? |
| 26743 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26744 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 26745 | cat >conftest.$ac_ext <<_ACEOF |
| 26746 | /* confdefs.h. */ |
| 26747 | _ACEOF |
| 26748 | cat confdefs.h >>conftest.$ac_ext |
| 26749 | cat >>conftest.$ac_ext <<_ACEOF |
| 26750 | /* end confdefs.h. */ |
| 26751 | #include <$ac_header> |
| 26752 | _ACEOF |
| 26753 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26754 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26755 | ac_status=$? |
| 26756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26757 | rm -f conftest.er1 |
| 26758 | cat conftest.err >&5 |
| 26759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26760 | (exit $ac_status); } >/dev/null; then |
| 26761 | if test -s conftest.err; then |
| 26762 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 26763 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 26764 | else |
| 26765 | ac_cpp_err= |
| 26766 | fi |
| 26767 | else |
| 26768 | ac_cpp_err=yes |
| 26769 | fi |
| 26770 | if test -z "$ac_cpp_err"; then |
| 26771 | ac_header_preproc=yes |
| 26772 | else |
| 26773 | echo "$as_me: failed program was:" >&5 |
| 26774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26775 | |
| 26776 | ac_header_preproc=no |
| 26777 | fi |
| 26778 | rm -f conftest.err conftest.$ac_ext |
| 26779 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26780 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26781 | |
| 26782 | # So? What about this header? |
| 26783 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26784 | yes:no: ) |
| 26785 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26786 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26787 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26788 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 26789 | ac_header_preproc=yes |
| 26790 | ;; |
| 26791 | no:yes:* ) |
| 26792 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26793 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26794 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26795 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26796 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26797 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26798 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26799 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26800 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26801 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26802 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26803 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 26804 | ( |
| 26805 | cat <<\_ASBOX |
| 26806 | ## ----------------------------------- ## |
| 26807 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26808 | ## ----------------------------------- ## |
| 26809 | _ASBOX |
| 26810 | ) | |
| 26811 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26812 | ;; |
| 26813 | esac |
| 26814 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26816 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26818 | else |
| 26819 | eval "$as_ac_Header=\$ac_header_preproc" |
| 26820 | fi |
| 26821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26822 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 26823 | |
| 26824 | fi |
| 26825 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26826 | cat >>confdefs.h <<_ACEOF |
| 26827 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 26828 | _ACEOF |
| 26829 | |
| 26830 | fi |
| 26831 | |
| 26832 | done |
| 26833 | |
| 26834 | |
| 26835 | |
| 26836 | |
| 26837 | |
| 26838 | |
| 26839 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26840 | do |
| 26841 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26842 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26843 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26844 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26845 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26847 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26848 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26849 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26850 | else |
| 26851 | # Is the header compilable? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26852 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 26853 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26854 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26855 | /* confdefs.h. */ |
| 26856 | _ACEOF |
| 26857 | cat confdefs.h >>conftest.$ac_ext |
| 26858 | cat >>conftest.$ac_ext <<_ACEOF |
| 26859 | /* end confdefs.h. */ |
| 26860 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26861 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26862 | _ACEOF |
| 26863 | rm -f conftest.$ac_objext |
| 26864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26865 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26866 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26868 | rm -f conftest.er1 |
| 26869 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26871 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26872 | { ac_try='test -z "$ac_c_werror_flag" |
| 26873 | || test ! -s conftest.err' |
| 26874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26875 | (eval $ac_try) 2>&5 |
| 26876 | ac_status=$? |
| 26877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26878 | (exit $ac_status); }; } && |
| 26879 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 26881 | (eval $ac_try) 2>&5 |
| 26882 | ac_status=$? |
| 26883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26884 | (exit $ac_status); }; }; then |
| 26885 | ac_header_compiler=yes |
| 26886 | else |
| 26887 | echo "$as_me: failed program was:" >&5 |
| 26888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26889 | |
| 26890 | ac_header_compiler=no |
| 26891 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26893 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 26894 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 26895 | |
| 26896 | # Is the header present? |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26897 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 26898 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26899 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26900 | /* confdefs.h. */ |
| 26901 | _ACEOF |
| 26902 | cat confdefs.h >>conftest.$ac_ext |
| 26903 | cat >>conftest.$ac_ext <<_ACEOF |
| 26904 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26905 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26906 | _ACEOF |
| 26907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 26908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 26909 | ac_status=$? |
| 26910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26911 | rm -f conftest.er1 |
| 26912 | cat conftest.err >&5 |
| 26913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26914 | (exit $ac_status); } >/dev/null; then |
| 26915 | if test -s conftest.err; then |
| 26916 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26917 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26918 | else |
| 26919 | ac_cpp_err= |
| 26920 | fi |
| 26921 | else |
| 26922 | ac_cpp_err=yes |
| 26923 | fi |
| 26924 | if test -z "$ac_cpp_err"; then |
| 26925 | ac_header_preproc=yes |
| 26926 | else |
| 26927 | echo "$as_me: failed program was:" >&5 |
| 26928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26929 | |
| 26930 | ac_header_preproc=no |
| 26931 | fi |
| 26932 | rm -f conftest.err conftest.$ac_ext |
| 26933 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 26934 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 26935 | |
| 26936 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 26938 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26939 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 26940 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 26941 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 26942 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26943 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 26944 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26945 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26946 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 26947 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 26948 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 26949 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 26950 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 26951 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 26952 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 26953 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 26954 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 26955 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 26956 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 26957 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 26958 | ( |
| 26959 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26960 | ## ----------------------------------- ## |
| 26961 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 26962 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26963 | _ASBOX |
| 26964 | ) | |
| 26965 | sed "s/^/$as_me: WARNING: /" >&2 |
| 26966 | ;; |
| 26967 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26968 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26972 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26973 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26974 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26976 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26977 | |
| 26978 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26979 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26980 | cat >>confdefs.h <<_ACEOF |
| 26981 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26982 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26983 | |
| 26984 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26985 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26986 | done |
| 26987 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26988 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 26989 | for ac_header in malloc/malloc.h |
| 26990 | do |
| 26991 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 26992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 26994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 26995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 26996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26997 | fi |
| 26998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 26999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27000 | else |
| 27001 | # Is the header compilable? |
| 27002 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27003 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 27004 | cat >conftest.$ac_ext <<_ACEOF |
| 27005 | /* confdefs.h. */ |
| 27006 | _ACEOF |
| 27007 | cat confdefs.h >>conftest.$ac_ext |
| 27008 | cat >>conftest.$ac_ext <<_ACEOF |
| 27009 | /* end confdefs.h. */ |
| 27010 | $ac_includes_default |
| 27011 | #include <$ac_header> |
| 27012 | _ACEOF |
| 27013 | rm -f conftest.$ac_objext |
| 27014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27015 | (eval $ac_compile) 2>conftest.er1 |
| 27016 | ac_status=$? |
| 27017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27018 | rm -f conftest.er1 |
| 27019 | cat conftest.err >&5 |
| 27020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27021 | (exit $ac_status); } && |
| 27022 | { ac_try='test -z "$ac_c_werror_flag" |
| 27023 | || test ! -s conftest.err' |
| 27024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27025 | (eval $ac_try) 2>&5 |
| 27026 | ac_status=$? |
| 27027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27028 | (exit $ac_status); }; } && |
| 27029 | { ac_try='test -s conftest.$ac_objext' |
| 27030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27031 | (eval $ac_try) 2>&5 |
| 27032 | ac_status=$? |
| 27033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27034 | (exit $ac_status); }; }; then |
| 27035 | ac_header_compiler=yes |
| 27036 | else |
| 27037 | echo "$as_me: failed program was:" >&5 |
| 27038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27039 | |
| 27040 | ac_header_compiler=no |
| 27041 | fi |
| 27042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27043 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27044 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 27045 | |
| 27046 | # Is the header present? |
| 27047 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27048 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 27049 | cat >conftest.$ac_ext <<_ACEOF |
| 27050 | /* confdefs.h. */ |
| 27051 | _ACEOF |
| 27052 | cat confdefs.h >>conftest.$ac_ext |
| 27053 | cat >>conftest.$ac_ext <<_ACEOF |
| 27054 | /* end confdefs.h. */ |
| 27055 | #include <$ac_header> |
| 27056 | _ACEOF |
| 27057 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27058 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27059 | ac_status=$? |
| 27060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27061 | rm -f conftest.er1 |
| 27062 | cat conftest.err >&5 |
| 27063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27064 | (exit $ac_status); } >/dev/null; then |
| 27065 | if test -s conftest.err; then |
| 27066 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 27067 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 27068 | else |
| 27069 | ac_cpp_err= |
| 27070 | fi |
| 27071 | else |
| 27072 | ac_cpp_err=yes |
| 27073 | fi |
| 27074 | if test -z "$ac_cpp_err"; then |
| 27075 | ac_header_preproc=yes |
| 27076 | else |
| 27077 | echo "$as_me: failed program was:" >&5 |
| 27078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27079 | |
| 27080 | ac_header_preproc=no |
| 27081 | fi |
| 27082 | rm -f conftest.err conftest.$ac_ext |
| 27083 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27084 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27085 | |
| 27086 | # So? What about this header? |
| 27087 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27088 | yes:no: ) |
| 27089 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27090 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27091 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27092 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27093 | ac_header_preproc=yes |
| 27094 | ;; |
| 27095 | no:yes:* ) |
| 27096 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27097 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27098 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27099 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27100 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27101 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27102 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27103 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27104 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27105 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27106 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27107 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27108 | ( |
| 27109 | cat <<\_ASBOX |
| 27110 | ## ----------------------------------- ## |
| 27111 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27112 | ## ----------------------------------- ## |
| 27113 | _ASBOX |
| 27114 | ) | |
| 27115 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27116 | ;; |
| 27117 | esac |
| 27118 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27122 | else |
| 27123 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27124 | fi |
| 27125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27126 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27127 | |
| 27128 | fi |
| 27129 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27130 | cat >>confdefs.h <<_ACEOF |
| 27131 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27132 | _ACEOF |
| 27133 | |
| 27134 | fi |
| 27135 | |
| 27136 | done |
| 27137 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27138 | if test "$ENABLE_THREADS" -eq 1 ; then |
| 27139 | |
| 27140 | for ac_header in pthread.h |
| 27141 | do |
| 27142 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27143 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27144 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27145 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27148 | fi |
| 27149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27150 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27151 | else |
| 27152 | # Is the header compilable? |
| 27153 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27154 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 27155 | cat >conftest.$ac_ext <<_ACEOF |
| 27156 | /* confdefs.h. */ |
| 27157 | _ACEOF |
| 27158 | cat confdefs.h >>conftest.$ac_ext |
| 27159 | cat >>conftest.$ac_ext <<_ACEOF |
| 27160 | /* end confdefs.h. */ |
| 27161 | $ac_includes_default |
| 27162 | #include <$ac_header> |
| 27163 | _ACEOF |
| 27164 | rm -f conftest.$ac_objext |
| 27165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27166 | (eval $ac_compile) 2>conftest.er1 |
| 27167 | ac_status=$? |
| 27168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27169 | rm -f conftest.er1 |
| 27170 | cat conftest.err >&5 |
| 27171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27172 | (exit $ac_status); } && |
| 27173 | { ac_try='test -z "$ac_c_werror_flag" |
| 27174 | || test ! -s conftest.err' |
| 27175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27176 | (eval $ac_try) 2>&5 |
| 27177 | ac_status=$? |
| 27178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27179 | (exit $ac_status); }; } && |
| 27180 | { ac_try='test -s conftest.$ac_objext' |
| 27181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27182 | (eval $ac_try) 2>&5 |
| 27183 | ac_status=$? |
| 27184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27185 | (exit $ac_status); }; }; then |
| 27186 | ac_header_compiler=yes |
| 27187 | else |
| 27188 | echo "$as_me: failed program was:" >&5 |
| 27189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27190 | |
| 27191 | ac_header_compiler=no |
| 27192 | fi |
| 27193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27194 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27195 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 27196 | |
| 27197 | # Is the header present? |
| 27198 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27199 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 27200 | cat >conftest.$ac_ext <<_ACEOF |
| 27201 | /* confdefs.h. */ |
| 27202 | _ACEOF |
| 27203 | cat confdefs.h >>conftest.$ac_ext |
| 27204 | cat >>conftest.$ac_ext <<_ACEOF |
| 27205 | /* end confdefs.h. */ |
| 27206 | #include <$ac_header> |
| 27207 | _ACEOF |
| 27208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 27209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 27210 | ac_status=$? |
| 27211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27212 | rm -f conftest.er1 |
| 27213 | cat conftest.err >&5 |
| 27214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27215 | (exit $ac_status); } >/dev/null; then |
| 27216 | if test -s conftest.err; then |
| 27217 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 27218 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 27219 | else |
| 27220 | ac_cpp_err= |
| 27221 | fi |
| 27222 | else |
| 27223 | ac_cpp_err=yes |
| 27224 | fi |
| 27225 | if test -z "$ac_cpp_err"; then |
| 27226 | ac_header_preproc=yes |
| 27227 | else |
| 27228 | echo "$as_me: failed program was:" >&5 |
| 27229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27230 | |
| 27231 | ac_header_preproc=no |
| 27232 | fi |
| 27233 | rm -f conftest.err conftest.$ac_ext |
| 27234 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27235 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 27236 | |
| 27237 | # So? What about this header? |
| 27238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27239 | yes:no: ) |
| 27240 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27241 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27243 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27244 | ac_header_preproc=yes |
| 27245 | ;; |
| 27246 | no:yes:* ) |
| 27247 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27248 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27249 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27250 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27251 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27252 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27253 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27254 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27256 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27257 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27258 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27259 | ( |
| 27260 | cat <<\_ASBOX |
| 27261 | ## ----------------------------------- ## |
| 27262 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27263 | ## ----------------------------------- ## |
| 27264 | _ASBOX |
| 27265 | ) | |
| 27266 | sed "s/^/$as_me: WARNING: /" >&2 |
| 27267 | ;; |
| 27268 | esac |
| 27269 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 27271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 27272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27273 | else |
| 27274 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27275 | fi |
| 27276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 27277 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 27278 | |
| 27279 | fi |
| 27280 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27281 | cat >>confdefs.h <<_ACEOF |
| 27282 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27283 | _ACEOF |
| 27284 | |
| 27285 | fi |
| 27286 | |
| 27287 | done |
| 27288 | |
| 27289 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 27290 | |
| 27291 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27292 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 27293 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 27294 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 27295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27296 | else |
| 27297 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27298 | /* confdefs.h. */ |
| 27299 | _ACEOF |
| 27300 | cat confdefs.h >>conftest.$ac_ext |
| 27301 | cat >>conftest.$ac_ext <<_ACEOF |
| 27302 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27303 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27304 | int |
| 27305 | main () |
| 27306 | { |
| 27307 | if ((pid_t *) 0) |
| 27308 | return 0; |
| 27309 | if (sizeof (pid_t)) |
| 27310 | return 0; |
| 27311 | ; |
| 27312 | return 0; |
| 27313 | } |
| 27314 | _ACEOF |
| 27315 | rm -f conftest.$ac_objext |
| 27316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27317 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27318 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27320 | rm -f conftest.er1 |
| 27321 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27323 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27324 | { ac_try='test -z "$ac_c_werror_flag" |
| 27325 | || test ! -s conftest.err' |
| 27326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27327 | (eval $ac_try) 2>&5 |
| 27328 | ac_status=$? |
| 27329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27330 | (exit $ac_status); }; } && |
| 27331 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27333 | (eval $ac_try) 2>&5 |
| 27334 | ac_status=$? |
| 27335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27336 | (exit $ac_status); }; }; then |
| 27337 | ac_cv_type_pid_t=yes |
| 27338 | else |
| 27339 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27341 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27342 | ac_cv_type_pid_t=no |
| 27343 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27345 | fi |
| 27346 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 27347 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 27348 | if test $ac_cv_type_pid_t = yes; then |
| 27349 | : |
| 27350 | else |
| 27351 | |
| 27352 | cat >>confdefs.h <<_ACEOF |
| 27353 | #define pid_t int |
| 27354 | _ACEOF |
| 27355 | |
| 27356 | fi |
| 27357 | |
| 27358 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 27359 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 27360 | if test "${ac_cv_type_size_t+set}" = set; then |
| 27361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27362 | else |
| 27363 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27364 | /* confdefs.h. */ |
| 27365 | _ACEOF |
| 27366 | cat confdefs.h >>conftest.$ac_ext |
| 27367 | cat >>conftest.$ac_ext <<_ACEOF |
| 27368 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27369 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27370 | int |
| 27371 | main () |
| 27372 | { |
| 27373 | if ((size_t *) 0) |
| 27374 | return 0; |
| 27375 | if (sizeof (size_t)) |
| 27376 | return 0; |
| 27377 | ; |
| 27378 | return 0; |
| 27379 | } |
| 27380 | _ACEOF |
| 27381 | rm -f conftest.$ac_objext |
| 27382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27383 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27384 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27386 | rm -f conftest.er1 |
| 27387 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27389 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27390 | { ac_try='test -z "$ac_c_werror_flag" |
| 27391 | || test ! -s conftest.err' |
| 27392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27393 | (eval $ac_try) 2>&5 |
| 27394 | ac_status=$? |
| 27395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27396 | (exit $ac_status); }; } && |
| 27397 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27399 | (eval $ac_try) 2>&5 |
| 27400 | ac_status=$? |
| 27401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27402 | (exit $ac_status); }; }; then |
| 27403 | ac_cv_type_size_t=yes |
| 27404 | else |
| 27405 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27407 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27408 | ac_cv_type_size_t=no |
| 27409 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27411 | fi |
| 27412 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 27413 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 27414 | if test $ac_cv_type_size_t = yes; then |
| 27415 | : |
| 27416 | else |
| 27417 | |
| 27418 | cat >>confdefs.h <<_ACEOF |
| 27419 | #define size_t unsigned |
| 27420 | _ACEOF |
| 27421 | |
| 27422 | fi |
| 27423 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27424 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 27425 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 27426 | if test "${ac_cv_type_signal+set}" = set; then |
| 27427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27428 | else |
| 27429 | cat >conftest.$ac_ext <<_ACEOF |
| 27430 | /* confdefs.h. */ |
| 27431 | _ACEOF |
| 27432 | cat confdefs.h >>conftest.$ac_ext |
| 27433 | cat >>conftest.$ac_ext <<_ACEOF |
| 27434 | /* end confdefs.h. */ |
| 27435 | #include <sys/types.h> |
| 27436 | #include <signal.h> |
| 27437 | #ifdef signal |
| 27438 | # undef signal |
| 27439 | #endif |
| 27440 | #ifdef __cplusplus |
| 27441 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 27442 | #else |
| 27443 | void (*signal ()) (); |
| 27444 | #endif |
| 27445 | |
| 27446 | int |
| 27447 | main () |
| 27448 | { |
| 27449 | int i; |
| 27450 | ; |
| 27451 | return 0; |
| 27452 | } |
| 27453 | _ACEOF |
| 27454 | rm -f conftest.$ac_objext |
| 27455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27456 | (eval $ac_compile) 2>conftest.er1 |
| 27457 | ac_status=$? |
| 27458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27459 | rm -f conftest.er1 |
| 27460 | cat conftest.err >&5 |
| 27461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27462 | (exit $ac_status); } && |
| 27463 | { ac_try='test -z "$ac_c_werror_flag" |
| 27464 | || test ! -s conftest.err' |
| 27465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27466 | (eval $ac_try) 2>&5 |
| 27467 | ac_status=$? |
| 27468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27469 | (exit $ac_status); }; } && |
| 27470 | { ac_try='test -s conftest.$ac_objext' |
| 27471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27472 | (eval $ac_try) 2>&5 |
| 27473 | ac_status=$? |
| 27474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27475 | (exit $ac_status); }; }; then |
| 27476 | ac_cv_type_signal=void |
| 27477 | else |
| 27478 | echo "$as_me: failed program was:" >&5 |
| 27479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27480 | |
| 27481 | ac_cv_type_signal=int |
| 27482 | fi |
| 27483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27484 | fi |
| 27485 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 27486 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 27487 | |
| 27488 | cat >>confdefs.h <<_ACEOF |
| 27489 | #define RETSIGTYPE $ac_cv_type_signal |
| 27490 | _ACEOF |
| 27491 | |
| 27492 | |
| 27493 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 27494 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 27495 | if test "${ac_cv_struct_tm+set}" = set; then |
| 27496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27497 | else |
| 27498 | cat >conftest.$ac_ext <<_ACEOF |
| 27499 | /* confdefs.h. */ |
| 27500 | _ACEOF |
| 27501 | cat confdefs.h >>conftest.$ac_ext |
| 27502 | cat >>conftest.$ac_ext <<_ACEOF |
| 27503 | /* end confdefs.h. */ |
| 27504 | #include <sys/types.h> |
| 27505 | #include <time.h> |
| 27506 | |
| 27507 | int |
| 27508 | main () |
| 27509 | { |
| 27510 | struct tm *tp; tp->tm_sec; |
| 27511 | ; |
| 27512 | return 0; |
| 27513 | } |
| 27514 | _ACEOF |
| 27515 | rm -f conftest.$ac_objext |
| 27516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 27517 | (eval $ac_compile) 2>conftest.er1 |
| 27518 | ac_status=$? |
| 27519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27520 | rm -f conftest.er1 |
| 27521 | cat conftest.err >&5 |
| 27522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27523 | (exit $ac_status); } && |
| 27524 | { ac_try='test -z "$ac_c_werror_flag" |
| 27525 | || test ! -s conftest.err' |
| 27526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27527 | (eval $ac_try) 2>&5 |
| 27528 | ac_status=$? |
| 27529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27530 | (exit $ac_status); }; } && |
| 27531 | { ac_try='test -s conftest.$ac_objext' |
| 27532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27533 | (eval $ac_try) 2>&5 |
| 27534 | ac_status=$? |
| 27535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27536 | (exit $ac_status); }; }; then |
| 27537 | ac_cv_struct_tm=time.h |
| 27538 | else |
| 27539 | echo "$as_me: failed program was:" >&5 |
| 27540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27541 | |
| 27542 | ac_cv_struct_tm=sys/time.h |
| 27543 | fi |
| 27544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27545 | fi |
| 27546 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 27547 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 27548 | if test $ac_cv_struct_tm = sys/time.h; then |
| 27549 | |
| 27550 | cat >>confdefs.h <<\_ACEOF |
| 27551 | #define TM_IN_SYS_TIME 1 |
| 27552 | _ACEOF |
| 27553 | |
| 27554 | fi |
| 27555 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27556 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 27557 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
| 27558 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 27559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27560 | else |
| 27561 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27562 | /* confdefs.h. */ |
| 27563 | _ACEOF |
| 27564 | cat confdefs.h >>conftest.$ac_ext |
| 27565 | cat >>conftest.$ac_ext <<_ACEOF |
| 27566 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27567 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27568 | int |
| 27569 | main () |
| 27570 | { |
| 27571 | if ((int64_t *) 0) |
| 27572 | return 0; |
| 27573 | if (sizeof (int64_t)) |
| 27574 | return 0; |
| 27575 | ; |
| 27576 | return 0; |
| 27577 | } |
| 27578 | _ACEOF |
| 27579 | rm -f conftest.$ac_objext |
| 27580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27581 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27582 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27584 | rm -f conftest.er1 |
| 27585 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27587 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27588 | { ac_try='test -z "$ac_c_werror_flag" |
| 27589 | || test ! -s conftest.err' |
| 27590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27591 | (eval $ac_try) 2>&5 |
| 27592 | ac_status=$? |
| 27593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27594 | (exit $ac_status); }; } && |
| 27595 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27597 | (eval $ac_try) 2>&5 |
| 27598 | ac_status=$? |
| 27599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27600 | (exit $ac_status); }; }; then |
| 27601 | ac_cv_type_int64_t=yes |
| 27602 | else |
| 27603 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27605 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27606 | ac_cv_type_int64_t=no |
| 27607 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27609 | fi |
| 27610 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 27611 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
| 27612 | if test $ac_cv_type_int64_t = yes; then |
| 27613 | |
| 27614 | cat >>confdefs.h <<_ACEOF |
| 27615 | #define HAVE_INT64_T 1 |
| 27616 | _ACEOF |
| 27617 | |
| 27618 | |
| 27619 | else |
| 27620 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 27621 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 27622 | { (exit 1); exit 1; }; } |
| 27623 | fi |
| 27624 | |
| 27625 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 27626 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 27627 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 27628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27629 | else |
| 27630 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27631 | /* confdefs.h. */ |
| 27632 | _ACEOF |
| 27633 | cat confdefs.h >>conftest.$ac_ext |
| 27634 | cat >>conftest.$ac_ext <<_ACEOF |
| 27635 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27636 | $ac_includes_default |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27637 | int |
| 27638 | main () |
| 27639 | { |
| 27640 | if ((uint64_t *) 0) |
| 27641 | return 0; |
| 27642 | if (sizeof (uint64_t)) |
| 27643 | return 0; |
| 27644 | ; |
| 27645 | return 0; |
| 27646 | } |
| 27647 | _ACEOF |
| 27648 | rm -f conftest.$ac_objext |
| 27649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27650 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27651 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27653 | rm -f conftest.er1 |
| 27654 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27656 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27657 | { ac_try='test -z "$ac_c_werror_flag" |
| 27658 | || test ! -s conftest.err' |
| 27659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27660 | (eval $ac_try) 2>&5 |
| 27661 | ac_status=$? |
| 27662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27663 | (exit $ac_status); }; } && |
| 27664 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27666 | (eval $ac_try) 2>&5 |
| 27667 | ac_status=$? |
| 27668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27669 | (exit $ac_status); }; }; then |
| 27670 | ac_cv_type_uint64_t=yes |
| 27671 | else |
| 27672 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27674 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27675 | ac_cv_type_uint64_t=no |
| 27676 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27678 | fi |
| 27679 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 27680 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 27681 | if test $ac_cv_type_uint64_t = yes; then |
| 27682 | |
| 27683 | cat >>confdefs.h <<_ACEOF |
| 27684 | #define HAVE_UINT64_T 1 |
| 27685 | _ACEOF |
| 27686 | |
| 27687 | |
| 27688 | else |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27689 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27690 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 27691 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 27692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27693 | else |
| 27694 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27695 | /* confdefs.h. */ |
| 27696 | _ACEOF |
| 27697 | cat confdefs.h >>conftest.$ac_ext |
| 27698 | cat >>conftest.$ac_ext <<_ACEOF |
| 27699 | /* end confdefs.h. */ |
| 27700 | $ac_includes_default |
| 27701 | int |
| 27702 | main () |
| 27703 | { |
| 27704 | if ((u_int64_t *) 0) |
| 27705 | return 0; |
| 27706 | if (sizeof (u_int64_t)) |
| 27707 | return 0; |
| 27708 | ; |
| 27709 | return 0; |
| 27710 | } |
| 27711 | _ACEOF |
| 27712 | rm -f conftest.$ac_objext |
| 27713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27714 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27715 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27717 | rm -f conftest.er1 |
| 27718 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27720 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27721 | { ac_try='test -z "$ac_c_werror_flag" |
| 27722 | || test ! -s conftest.err' |
| 27723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27724 | (eval $ac_try) 2>&5 |
| 27725 | ac_status=$? |
| 27726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27727 | (exit $ac_status); }; } && |
| 27728 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27730 | (eval $ac_try) 2>&5 |
| 27731 | ac_status=$? |
| 27732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27733 | (exit $ac_status); }; }; then |
| 27734 | ac_cv_type_u_int64_t=yes |
| 27735 | else |
| 27736 | echo "$as_me: failed program was:" >&5 |
| 27737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27738 | |
| 27739 | ac_cv_type_u_int64_t=no |
| 27740 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27742 | fi |
| 27743 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 27744 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 27745 | if test $ac_cv_type_u_int64_t = yes; then |
| 27746 | |
| 27747 | cat >>confdefs.h <<_ACEOF |
| 27748 | #define HAVE_U_INT64_T 1 |
| 27749 | _ACEOF |
| 27750 | |
| 27751 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27752 | else |
| 27753 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 27754 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 27755 | { (exit 1); exit 1; }; } |
| 27756 | fi |
| 27757 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27758 | fi |
| 27759 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27760 | |
| 27761 | |
| 27762 | |
| 27763 | |
| 27764 | |
| 27765 | |
| 27766 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 27767 | |
| 27768 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 27769 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27770 | do |
| 27771 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27772 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27773 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27774 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27776 | else |
| 27777 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27778 | /* confdefs.h. */ |
| 27779 | _ACEOF |
| 27780 | cat confdefs.h >>conftest.$ac_ext |
| 27781 | cat >>conftest.$ac_ext <<_ACEOF |
| 27782 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27783 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27784 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27785 | #define $ac_func innocuous_$ac_func |
| 27786 | |
| 27787 | /* System header to define __stub macros and hopefully few prototypes, |
| 27788 | which can conflict with char $ac_func (); below. |
| 27789 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27790 | <limits.h> exists even on freestanding compilers. */ |
| 27791 | |
| 27792 | #ifdef __STDC__ |
| 27793 | # include <limits.h> |
| 27794 | #else |
| 27795 | # include <assert.h> |
| 27796 | #endif |
| 27797 | |
| 27798 | #undef $ac_func |
| 27799 | |
| 27800 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27801 | #ifdef __cplusplus |
| 27802 | extern "C" |
| 27803 | { |
| 27804 | #endif |
| 27805 | /* We use char because int might match the return type of a gcc2 |
| 27806 | builtin and then its argument prototype would still apply. */ |
| 27807 | char $ac_func (); |
| 27808 | /* The GNU C library defines this for functions which it implements |
| 27809 | to always fail with ENOSYS. Some functions are actually named |
| 27810 | something starting with __ and the normal name is an alias. */ |
| 27811 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27812 | choke me |
| 27813 | #else |
| 27814 | char (*f) () = $ac_func; |
| 27815 | #endif |
| 27816 | #ifdef __cplusplus |
| 27817 | } |
| 27818 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27819 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27820 | int |
| 27821 | main () |
| 27822 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27823 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27824 | ; |
| 27825 | return 0; |
| 27826 | } |
| 27827 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27828 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27830 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27831 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27833 | rm -f conftest.er1 |
| 27834 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27836 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27837 | { ac_try='test -z "$ac_c_werror_flag" |
| 27838 | || test ! -s conftest.err' |
| 27839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27840 | (eval $ac_try) 2>&5 |
| 27841 | ac_status=$? |
| 27842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27843 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27844 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27846 | (eval $ac_try) 2>&5 |
| 27847 | ac_status=$? |
| 27848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27849 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27850 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27851 | else |
| 27852 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27854 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27855 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27856 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27857 | rm -f conftest.err conftest.$ac_objext \ |
| 27858 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27859 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27861 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27862 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27863 | cat >>confdefs.h <<_ACEOF |
| 27864 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27865 | _ACEOF |
| 27866 | |
| 27867 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27868 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27869 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27870 | |
| 27871 | |
| 27872 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 27873 | |
| 27874 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27875 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 27876 | for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp |
| 27877 | do |
| 27878 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27879 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27880 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27881 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 27882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27883 | else |
| 27884 | cat >conftest.$ac_ext <<_ACEOF |
| 27885 | /* confdefs.h. */ |
| 27886 | _ACEOF |
| 27887 | cat confdefs.h >>conftest.$ac_ext |
| 27888 | cat >>conftest.$ac_ext <<_ACEOF |
| 27889 | /* end confdefs.h. */ |
| 27890 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27891 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 27892 | #define $ac_func innocuous_$ac_func |
| 27893 | |
| 27894 | /* System header to define __stub macros and hopefully few prototypes, |
| 27895 | which can conflict with char $ac_func (); below. |
| 27896 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 27897 | <limits.h> exists even on freestanding compilers. */ |
| 27898 | |
| 27899 | #ifdef __STDC__ |
| 27900 | # include <limits.h> |
| 27901 | #else |
| 27902 | # include <assert.h> |
| 27903 | #endif |
| 27904 | |
| 27905 | #undef $ac_func |
| 27906 | |
| 27907 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 27908 | #ifdef __cplusplus |
| 27909 | extern "C" |
| 27910 | { |
| 27911 | #endif |
| 27912 | /* We use char because int might match the return type of a gcc2 |
| 27913 | builtin and then its argument prototype would still apply. */ |
| 27914 | char $ac_func (); |
| 27915 | /* The GNU C library defines this for functions which it implements |
| 27916 | to always fail with ENOSYS. Some functions are actually named |
| 27917 | something starting with __ and the normal name is an alias. */ |
| 27918 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27919 | choke me |
| 27920 | #else |
| 27921 | char (*f) () = $ac_func; |
| 27922 | #endif |
| 27923 | #ifdef __cplusplus |
| 27924 | } |
| 27925 | #endif |
| 27926 | |
| 27927 | int |
| 27928 | main () |
| 27929 | { |
| 27930 | return f != $ac_func; |
| 27931 | ; |
| 27932 | return 0; |
| 27933 | } |
| 27934 | _ACEOF |
| 27935 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 27937 | (eval $ac_link) 2>conftest.er1 |
| 27938 | ac_status=$? |
| 27939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27940 | rm -f conftest.er1 |
| 27941 | cat conftest.err >&5 |
| 27942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27943 | (exit $ac_status); } && |
| 27944 | { ac_try='test -z "$ac_c_werror_flag" |
| 27945 | || test ! -s conftest.err' |
| 27946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27947 | (eval $ac_try) 2>&5 |
| 27948 | ac_status=$? |
| 27949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27950 | (exit $ac_status); }; } && |
| 27951 | { ac_try='test -s conftest$ac_exeext' |
| 27952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 27953 | (eval $ac_try) 2>&5 |
| 27954 | ac_status=$? |
| 27955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27956 | (exit $ac_status); }; }; then |
| 27957 | eval "$as_ac_var=yes" |
| 27958 | else |
| 27959 | echo "$as_me: failed program was:" >&5 |
| 27960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27961 | |
| 27962 | eval "$as_ac_var=no" |
| 27963 | fi |
| 27964 | rm -f conftest.err conftest.$ac_objext \ |
| 27965 | conftest$ac_exeext conftest.$ac_ext |
| 27966 | fi |
| 27967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 27968 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 27969 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 27970 | cat >>confdefs.h <<_ACEOF |
| 27971 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 27972 | _ACEOF |
| 27973 | |
| 27974 | fi |
| 27975 | done |
| 27976 | |
| 27977 | |
| 27978 | |
| 27979 | |
| 27980 | |
| 27981 | |
| 27982 | |
| 27983 | |
| 27984 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27985 | do |
| 27986 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27987 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 27988 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 27989 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 27990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27991 | else |
| 27992 | cat >conftest.$ac_ext <<_ACEOF |
| 27993 | /* confdefs.h. */ |
| 27994 | _ACEOF |
| 27995 | cat confdefs.h >>conftest.$ac_ext |
| 27996 | cat >>conftest.$ac_ext <<_ACEOF |
| 27997 | /* end confdefs.h. */ |
| 27998 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 27999 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28000 | #define $ac_func innocuous_$ac_func |
| 28001 | |
| 28002 | /* System header to define __stub macros and hopefully few prototypes, |
| 28003 | which can conflict with char $ac_func (); below. |
| 28004 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28005 | <limits.h> exists even on freestanding compilers. */ |
| 28006 | |
| 28007 | #ifdef __STDC__ |
| 28008 | # include <limits.h> |
| 28009 | #else |
| 28010 | # include <assert.h> |
| 28011 | #endif |
| 28012 | |
| 28013 | #undef $ac_func |
| 28014 | |
| 28015 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28016 | #ifdef __cplusplus |
| 28017 | extern "C" |
| 28018 | { |
| 28019 | #endif |
| 28020 | /* We use char because int might match the return type of a gcc2 |
| 28021 | builtin and then its argument prototype would still apply. */ |
| 28022 | char $ac_func (); |
| 28023 | /* The GNU C library defines this for functions which it implements |
| 28024 | to always fail with ENOSYS. Some functions are actually named |
| 28025 | something starting with __ and the normal name is an alias. */ |
| 28026 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28027 | choke me |
| 28028 | #else |
| 28029 | char (*f) () = $ac_func; |
| 28030 | #endif |
| 28031 | #ifdef __cplusplus |
| 28032 | } |
| 28033 | #endif |
| 28034 | |
| 28035 | int |
| 28036 | main () |
| 28037 | { |
| 28038 | return f != $ac_func; |
| 28039 | ; |
| 28040 | return 0; |
| 28041 | } |
| 28042 | _ACEOF |
| 28043 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28045 | (eval $ac_link) 2>conftest.er1 |
| 28046 | ac_status=$? |
| 28047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28048 | rm -f conftest.er1 |
| 28049 | cat conftest.err >&5 |
| 28050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28051 | (exit $ac_status); } && |
| 28052 | { ac_try='test -z "$ac_c_werror_flag" |
| 28053 | || test ! -s conftest.err' |
| 28054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28055 | (eval $ac_try) 2>&5 |
| 28056 | ac_status=$? |
| 28057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28058 | (exit $ac_status); }; } && |
| 28059 | { ac_try='test -s conftest$ac_exeext' |
| 28060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28061 | (eval $ac_try) 2>&5 |
| 28062 | ac_status=$? |
| 28063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28064 | (exit $ac_status); }; }; then |
| 28065 | eval "$as_ac_var=yes" |
| 28066 | else |
| 28067 | echo "$as_me: failed program was:" >&5 |
| 28068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28069 | |
| 28070 | eval "$as_ac_var=no" |
| 28071 | fi |
| 28072 | rm -f conftest.err conftest.$ac_objext \ |
| 28073 | conftest$ac_exeext conftest.$ac_ext |
| 28074 | fi |
| 28075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28076 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28077 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28078 | cat >>confdefs.h <<_ACEOF |
| 28079 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28080 | _ACEOF |
| 28081 | |
| 28082 | fi |
| 28083 | done |
| 28084 | |
| 28085 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 28086 | |
| 28087 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28088 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 28089 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28090 | do |
| 28091 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28092 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28093 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 28094 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28096 | else |
| 28097 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28098 | /* confdefs.h. */ |
| 28099 | _ACEOF |
| 28100 | cat confdefs.h >>conftest.$ac_ext |
| 28101 | cat >>conftest.$ac_ext <<_ACEOF |
| 28102 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28103 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28105 | #define $ac_func innocuous_$ac_func |
| 28106 | |
| 28107 | /* System header to define __stub macros and hopefully few prototypes, |
| 28108 | which can conflict with char $ac_func (); below. |
| 28109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28110 | <limits.h> exists even on freestanding compilers. */ |
| 28111 | |
| 28112 | #ifdef __STDC__ |
| 28113 | # include <limits.h> |
| 28114 | #else |
| 28115 | # include <assert.h> |
| 28116 | #endif |
| 28117 | |
| 28118 | #undef $ac_func |
| 28119 | |
| 28120 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28121 | #ifdef __cplusplus |
| 28122 | extern "C" |
| 28123 | { |
| 28124 | #endif |
| 28125 | /* We use char because int might match the return type of a gcc2 |
| 28126 | builtin and then its argument prototype would still apply. */ |
| 28127 | char $ac_func (); |
| 28128 | /* The GNU C library defines this for functions which it implements |
| 28129 | to always fail with ENOSYS. Some functions are actually named |
| 28130 | something starting with __ and the normal name is an alias. */ |
| 28131 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28132 | choke me |
| 28133 | #else |
| 28134 | char (*f) () = $ac_func; |
| 28135 | #endif |
| 28136 | #ifdef __cplusplus |
| 28137 | } |
| 28138 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28139 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28140 | int |
| 28141 | main () |
| 28142 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28143 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28144 | ; |
| 28145 | return 0; |
| 28146 | } |
| 28147 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28150 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28151 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28153 | rm -f conftest.er1 |
| 28154 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28156 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28157 | { ac_try='test -z "$ac_c_werror_flag" |
| 28158 | || test ! -s conftest.err' |
| 28159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28160 | (eval $ac_try) 2>&5 |
| 28161 | ac_status=$? |
| 28162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28163 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28164 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28166 | (eval $ac_try) 2>&5 |
| 28167 | ac_status=$? |
| 28168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28169 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28170 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28171 | else |
| 28172 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28174 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28175 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28176 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28177 | rm -f conftest.err conftest.$ac_objext \ |
| 28178 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28179 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28180 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28181 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28182 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28183 | cat >>confdefs.h <<_ACEOF |
| 28184 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28185 | _ACEOF |
| 28186 | |
| 28187 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28188 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28189 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28190 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 28191 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6 |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28192 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28194 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28195 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28196 | ac_cpp='$CPP $CPPFLAGS' |
| 28197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28200 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28201 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28202 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28203 | else |
| 28204 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28205 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28206 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28207 | _ACEOF |
| 28208 | cat confdefs.h >>conftest.$ac_ext |
| 28209 | cat >>conftest.$ac_ext <<_ACEOF |
| 28210 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28211 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28212 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28213 | #include <stdlib.h> |
| 28214 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28215 | int |
| 28216 | main () |
| 28217 | { |
| 28218 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28219 | volatile double A, B; |
| 28220 | char Buffer[100]; |
| 28221 | A = 1; |
| 28222 | A /= 10.0; |
| 28223 | sprintf(Buffer, "%a", A); |
| 28224 | B = atof(Buffer); |
| 28225 | if (A != B) |
| 28226 | return (1); |
| 28227 | if (A != 0x1.999999999999ap-4) |
| 28228 | return (1); |
| 28229 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28230 | ; |
| 28231 | return 0; |
| 28232 | } |
| 28233 | _ACEOF |
| 28234 | rm -f conftest$ac_exeext |
| 28235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28236 | (eval $ac_link) 2>&5 |
| 28237 | ac_status=$? |
| 28238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28239 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 28240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28241 | (eval $ac_try) 2>&5 |
| 28242 | ac_status=$? |
| 28243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28244 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28245 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28246 | else |
| 28247 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28248 | echo "$as_me: failed program was:" >&5 |
| 28249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28250 | |
| 28251 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28252 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28253 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28254 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28255 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28256 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28257 | ac_cpp='$CPP $CPPFLAGS' |
| 28258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28261 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28262 | fi |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 28263 | echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 28264 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6 |
| 28265 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28266 | |
| 28267 | cat >>confdefs.h <<\_ACEOF |
| 28268 | #define HAVE_PRINTF_A 1 |
| 28269 | _ACEOF |
| 28270 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28271 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 28272 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28273 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 28274 | # for constant arguments. Useless! |
| 28275 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 28276 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 28277 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28279 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28280 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28281 | /* confdefs.h. */ |
| 28282 | _ACEOF |
| 28283 | cat confdefs.h >>conftest.$ac_ext |
| 28284 | cat >>conftest.$ac_ext <<_ACEOF |
| 28285 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28286 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28287 | int |
| 28288 | main () |
| 28289 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28290 | char *p = (char *) alloca (2 * sizeof (int)); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28291 | ; |
| 28292 | return 0; |
| 28293 | } |
| 28294 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28295 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28297 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28298 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28300 | rm -f conftest.er1 |
| 28301 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28303 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28304 | { ac_try='test -z "$ac_c_werror_flag" |
| 28305 | || test ! -s conftest.err' |
| 28306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28307 | (eval $ac_try) 2>&5 |
| 28308 | ac_status=$? |
| 28309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28310 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28311 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28313 | (eval $ac_try) 2>&5 |
| 28314 | ac_status=$? |
| 28315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28316 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28317 | ac_cv_working_alloca_h=yes |
| 28318 | else |
| 28319 | echo "$as_me: failed program was:" >&5 |
| 28320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28321 | |
| 28322 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28323 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28324 | rm -f conftest.err conftest.$ac_objext \ |
| 28325 | conftest$ac_exeext conftest.$ac_ext |
| 28326 | fi |
| 28327 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 28328 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 28329 | if test $ac_cv_working_alloca_h = yes; then |
| 28330 | |
| 28331 | cat >>confdefs.h <<\_ACEOF |
| 28332 | #define HAVE_ALLOCA_H 1 |
| 28333 | _ACEOF |
| 28334 | |
| 28335 | fi |
| 28336 | |
| 28337 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 28338 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 28339 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 28340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28341 | else |
| 28342 | cat >conftest.$ac_ext <<_ACEOF |
| 28343 | /* confdefs.h. */ |
| 28344 | _ACEOF |
| 28345 | cat confdefs.h >>conftest.$ac_ext |
| 28346 | cat >>conftest.$ac_ext <<_ACEOF |
| 28347 | /* end confdefs.h. */ |
| 28348 | #ifdef __GNUC__ |
| 28349 | # define alloca __builtin_alloca |
| 28350 | #else |
| 28351 | # ifdef _MSC_VER |
| 28352 | # include <malloc.h> |
| 28353 | # define alloca _alloca |
| 28354 | # else |
| 28355 | # if HAVE_ALLOCA_H |
| 28356 | # include <alloca.h> |
| 28357 | # else |
| 28358 | # ifdef _AIX |
| 28359 | #pragma alloca |
| 28360 | # else |
| 28361 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 28362 | char *alloca (); |
| 28363 | # endif |
| 28364 | # endif |
| 28365 | # endif |
| 28366 | # endif |
| 28367 | #endif |
| 28368 | |
| 28369 | int |
| 28370 | main () |
| 28371 | { |
| 28372 | char *p = (char *) alloca (1); |
| 28373 | ; |
| 28374 | return 0; |
| 28375 | } |
| 28376 | _ACEOF |
| 28377 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28379 | (eval $ac_link) 2>conftest.er1 |
| 28380 | ac_status=$? |
| 28381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28382 | rm -f conftest.er1 |
| 28383 | cat conftest.err >&5 |
| 28384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28385 | (exit $ac_status); } && |
| 28386 | { ac_try='test -z "$ac_c_werror_flag" |
| 28387 | || test ! -s conftest.err' |
| 28388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28389 | (eval $ac_try) 2>&5 |
| 28390 | ac_status=$? |
| 28391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28392 | (exit $ac_status); }; } && |
| 28393 | { ac_try='test -s conftest$ac_exeext' |
| 28394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28395 | (eval $ac_try) 2>&5 |
| 28396 | ac_status=$? |
| 28397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28398 | (exit $ac_status); }; }; then |
| 28399 | ac_cv_func_alloca_works=yes |
| 28400 | else |
| 28401 | echo "$as_me: failed program was:" >&5 |
| 28402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28403 | |
| 28404 | ac_cv_func_alloca_works=no |
| 28405 | fi |
| 28406 | rm -f conftest.err conftest.$ac_objext \ |
| 28407 | conftest$ac_exeext conftest.$ac_ext |
| 28408 | fi |
| 28409 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 28410 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 28411 | |
| 28412 | if test $ac_cv_func_alloca_works = yes; then |
| 28413 | |
| 28414 | cat >>confdefs.h <<\_ACEOF |
| 28415 | #define HAVE_ALLOCA 1 |
| 28416 | _ACEOF |
| 28417 | |
| 28418 | else |
| 28419 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 28420 | # that cause trouble. Some versions do not even contain alloca or |
| 28421 | # contain a buggy version. If you still want to use their alloca, |
| 28422 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 28423 | |
| 28424 | ALLOCA=alloca.$ac_objext |
| 28425 | |
| 28426 | cat >>confdefs.h <<\_ACEOF |
| 28427 | #define C_ALLOCA 1 |
| 28428 | _ACEOF |
| 28429 | |
| 28430 | |
| 28431 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 28432 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 28433 | if test "${ac_cv_os_cray+set}" = set; then |
| 28434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28435 | else |
| 28436 | cat >conftest.$ac_ext <<_ACEOF |
| 28437 | /* confdefs.h. */ |
| 28438 | _ACEOF |
| 28439 | cat confdefs.h >>conftest.$ac_ext |
| 28440 | cat >>conftest.$ac_ext <<_ACEOF |
| 28441 | /* end confdefs.h. */ |
| 28442 | #if defined(CRAY) && ! defined(CRAY2) |
| 28443 | webecray |
| 28444 | #else |
| 28445 | wenotbecray |
| 28446 | #endif |
| 28447 | |
| 28448 | _ACEOF |
| 28449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28450 | $EGREP "webecray" >/dev/null 2>&1; then |
| 28451 | ac_cv_os_cray=yes |
| 28452 | else |
| 28453 | ac_cv_os_cray=no |
| 28454 | fi |
| 28455 | rm -f conftest* |
| 28456 | |
| 28457 | fi |
| 28458 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 28459 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 28460 | if test $ac_cv_os_cray = yes; then |
| 28461 | for ac_func in _getb67 GETB67 getb67; do |
| 28462 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28463 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28464 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 28465 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 28466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28467 | else |
| 28468 | cat >conftest.$ac_ext <<_ACEOF |
| 28469 | /* confdefs.h. */ |
| 28470 | _ACEOF |
| 28471 | cat confdefs.h >>conftest.$ac_ext |
| 28472 | cat >>conftest.$ac_ext <<_ACEOF |
| 28473 | /* end confdefs.h. */ |
| 28474 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28475 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28476 | #define $ac_func innocuous_$ac_func |
| 28477 | |
| 28478 | /* System header to define __stub macros and hopefully few prototypes, |
| 28479 | which can conflict with char $ac_func (); below. |
| 28480 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28481 | <limits.h> exists even on freestanding compilers. */ |
| 28482 | |
| 28483 | #ifdef __STDC__ |
| 28484 | # include <limits.h> |
| 28485 | #else |
| 28486 | # include <assert.h> |
| 28487 | #endif |
| 28488 | |
| 28489 | #undef $ac_func |
| 28490 | |
| 28491 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 28492 | #ifdef __cplusplus |
| 28493 | extern "C" |
| 28494 | { |
| 28495 | #endif |
| 28496 | /* We use char because int might match the return type of a gcc2 |
| 28497 | builtin and then its argument prototype would still apply. */ |
| 28498 | char $ac_func (); |
| 28499 | /* The GNU C library defines this for functions which it implements |
| 28500 | to always fail with ENOSYS. Some functions are actually named |
| 28501 | something starting with __ and the normal name is an alias. */ |
| 28502 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 28503 | choke me |
| 28504 | #else |
| 28505 | char (*f) () = $ac_func; |
| 28506 | #endif |
| 28507 | #ifdef __cplusplus |
| 28508 | } |
| 28509 | #endif |
| 28510 | |
| 28511 | int |
| 28512 | main () |
| 28513 | { |
| 28514 | return f != $ac_func; |
| 28515 | ; |
| 28516 | return 0; |
| 28517 | } |
| 28518 | _ACEOF |
| 28519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28521 | (eval $ac_link) 2>conftest.er1 |
| 28522 | ac_status=$? |
| 28523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28524 | rm -f conftest.er1 |
| 28525 | cat conftest.err >&5 |
| 28526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28527 | (exit $ac_status); } && |
| 28528 | { ac_try='test -z "$ac_c_werror_flag" |
| 28529 | || test ! -s conftest.err' |
| 28530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28531 | (eval $ac_try) 2>&5 |
| 28532 | ac_status=$? |
| 28533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28534 | (exit $ac_status); }; } && |
| 28535 | { ac_try='test -s conftest$ac_exeext' |
| 28536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28537 | (eval $ac_try) 2>&5 |
| 28538 | ac_status=$? |
| 28539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28540 | (exit $ac_status); }; }; then |
| 28541 | eval "$as_ac_var=yes" |
| 28542 | else |
| 28543 | echo "$as_me: failed program was:" >&5 |
| 28544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28545 | |
| 28546 | eval "$as_ac_var=no" |
| 28547 | fi |
| 28548 | rm -f conftest.err conftest.$ac_objext \ |
| 28549 | conftest$ac_exeext conftest.$ac_ext |
| 28550 | fi |
| 28551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 28552 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 28553 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28554 | |
| 28555 | cat >>confdefs.h <<_ACEOF |
| 28556 | #define CRAY_STACKSEG_END $ac_func |
| 28557 | _ACEOF |
| 28558 | |
| 28559 | break |
| 28560 | fi |
| 28561 | |
| 28562 | done |
| 28563 | fi |
| 28564 | |
| 28565 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 28566 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 28567 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 28568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28569 | else |
| 28570 | if test "$cross_compiling" = yes; then |
| 28571 | ac_cv_c_stack_direction=0 |
| 28572 | else |
| 28573 | cat >conftest.$ac_ext <<_ACEOF |
| 28574 | /* confdefs.h. */ |
| 28575 | _ACEOF |
| 28576 | cat confdefs.h >>conftest.$ac_ext |
| 28577 | cat >>conftest.$ac_ext <<_ACEOF |
| 28578 | /* end confdefs.h. */ |
| 28579 | int |
| 28580 | find_stack_direction () |
| 28581 | { |
| 28582 | static char *addr = 0; |
| 28583 | auto char dummy; |
| 28584 | if (addr == 0) |
| 28585 | { |
| 28586 | addr = &dummy; |
| 28587 | return find_stack_direction (); |
| 28588 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28589 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28590 | return (&dummy > addr) ? 1 : -1; |
| 28591 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28592 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28593 | int |
| 28594 | main () |
| 28595 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28596 | exit (find_stack_direction () < 0); |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28597 | } |
| 28598 | _ACEOF |
| 28599 | rm -f conftest$ac_exeext |
| 28600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 28601 | (eval $ac_link) 2>&5 |
| 28602 | ac_status=$? |
| 28603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 28605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28606 | (eval $ac_try) 2>&5 |
| 28607 | ac_status=$? |
| 28608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28609 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28610 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28611 | else |
| 28612 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28613 | echo "$as_me: failed program was:" >&5 |
| 28614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28615 | |
| 28616 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28617 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28618 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28619 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28620 | fi |
| 28621 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28622 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 28623 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 28624 | |
| 28625 | cat >>confdefs.h <<_ACEOF |
| 28626 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 28627 | _ACEOF |
| 28628 | |
| 28629 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28630 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28631 | |
| 28632 | |
| 28633 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 28634 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 |
| 28635 | if test "${ac_cv_func_rand48+set}" = set; then |
| 28636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28637 | else |
| 28638 | ac_ext=cc |
| 28639 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28640 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28641 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28642 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28643 | |
| 28644 | cat >conftest.$ac_ext <<_ACEOF |
| 28645 | /* confdefs.h. */ |
| 28646 | _ACEOF |
| 28647 | cat confdefs.h >>conftest.$ac_ext |
| 28648 | cat >>conftest.$ac_ext <<_ACEOF |
| 28649 | /* end confdefs.h. */ |
| 28650 | #include <stdlib.h> |
| 28651 | int |
| 28652 | main () |
| 28653 | { |
| 28654 | srand48(0);lrand48();drand48(); |
| 28655 | ; |
| 28656 | return 0; |
| 28657 | } |
| 28658 | _ACEOF |
| 28659 | rm -f conftest.$ac_objext |
| 28660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 28661 | (eval $ac_compile) 2>conftest.er1 |
| 28662 | ac_status=$? |
| 28663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28664 | rm -f conftest.er1 |
| 28665 | cat conftest.err >&5 |
| 28666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28667 | (exit $ac_status); } && |
| 28668 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28669 | || test ! -s conftest.err' |
| 28670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28671 | (eval $ac_try) 2>&5 |
| 28672 | ac_status=$? |
| 28673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28674 | (exit $ac_status); }; } && |
| 28675 | { ac_try='test -s conftest.$ac_objext' |
| 28676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28677 | (eval $ac_try) 2>&5 |
| 28678 | ac_status=$? |
| 28679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28680 | (exit $ac_status); }; }; then |
| 28681 | ac_cv_func_rand48=yes |
| 28682 | else |
| 28683 | echo "$as_me: failed program was:" >&5 |
| 28684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28685 | |
| 28686 | ac_cv_func_rand48=no |
| 28687 | fi |
| 28688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28689 | ac_ext=c |
| 28690 | ac_cpp='$CPP $CPPFLAGS' |
| 28691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28694 | |
| 28695 | fi |
| 28696 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 28697 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 |
| 28698 | |
| 28699 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 28700 | |
| 28701 | cat >>confdefs.h <<\_ACEOF |
| 28702 | #define HAVE_RAND48 1 |
| 28703 | _ACEOF |
| 28704 | |
| 28705 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28706 | |
| 28707 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28708 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 28709 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 28710 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 28711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28712 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28713 | ac_ext=cc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28714 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28718 | |
| 28719 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28720 | /* confdefs.h. */ |
| 28721 | _ACEOF |
| 28722 | cat confdefs.h >>conftest.$ac_ext |
| 28723 | cat >>conftest.$ac_ext <<_ACEOF |
| 28724 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28725 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28726 | int |
| 28727 | main () |
| 28728 | { |
| 28729 | using namespace Outer::Inner; return i; |
| 28730 | ; |
| 28731 | return 0; |
| 28732 | } |
| 28733 | _ACEOF |
| 28734 | rm -f conftest.$ac_objext |
| 28735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28736 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28737 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28739 | rm -f conftest.er1 |
| 28740 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28742 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28743 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28744 | || test ! -s conftest.err' |
| 28745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28746 | (eval $ac_try) 2>&5 |
| 28747 | ac_status=$? |
| 28748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28749 | (exit $ac_status); }; } && |
| 28750 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28752 | (eval $ac_try) 2>&5 |
| 28753 | ac_status=$? |
| 28754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28755 | (exit $ac_status); }; }; then |
| 28756 | ac_cv_cxx_namespaces=yes |
| 28757 | else |
| 28758 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28760 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28761 | ac_cv_cxx_namespaces=no |
| 28762 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28764 | ac_ext=c |
| 28765 | ac_cpp='$CPP $CPPFLAGS' |
| 28766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28769 | |
| 28770 | |
| 28771 | fi |
| 28772 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 28773 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 28774 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 28775 | |
| 28776 | cat >>confdefs.h <<\_ACEOF |
| 28777 | #define HAVE_NAMESPACES |
| 28778 | _ACEOF |
| 28779 | |
| 28780 | fi |
| 28781 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28782 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 28783 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 |
| 28784 | if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28786 | else |
| 28787 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28788 | ac_ext=cc |
| 28789 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28790 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28791 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28792 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28793 | |
| 28794 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28795 | /* confdefs.h. */ |
| 28796 | _ACEOF |
| 28797 | cat confdefs.h >>conftest.$ac_ext |
| 28798 | cat >>conftest.$ac_ext <<_ACEOF |
| 28799 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28800 | #include <ext/hash_map> |
| 28801 | #ifdef HAVE_NAMESPACES |
| 28802 | using namespace std; |
| 28803 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28804 | int |
| 28805 | main () |
| 28806 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28807 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28808 | ; |
| 28809 | return 0; |
| 28810 | } |
| 28811 | _ACEOF |
| 28812 | rm -f conftest.$ac_objext |
| 28813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28814 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28815 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28817 | rm -f conftest.er1 |
| 28818 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28820 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28821 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28822 | || test ! -s conftest.err' |
| 28823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28824 | (eval $ac_try) 2>&5 |
| 28825 | ac_status=$? |
| 28826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28827 | (exit $ac_status); }; } && |
| 28828 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28830 | (eval $ac_try) 2>&5 |
| 28831 | ac_status=$? |
| 28832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28833 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28834 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28835 | else |
| 28836 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28838 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28839 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28840 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28842 | ac_ext=c |
| 28843 | ac_cpp='$CPP $CPPFLAGS' |
| 28844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28847 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28848 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28849 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 28850 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28851 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 28852 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28853 | |
| 28854 | cat >>confdefs.h <<\_ACEOF |
| 28855 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 28856 | _ACEOF |
| 28857 | |
| 28858 | else |
| 28859 | |
| 28860 | cat >>confdefs.h <<\_ACEOF |
| 28861 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 28862 | _ACEOF |
| 28863 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28864 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28865 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28866 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 28867 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 |
| 28868 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 28869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28870 | else |
| 28871 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28872 | ac_ext=cc |
| 28873 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28874 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28875 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28876 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28877 | |
| 28878 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28879 | /* confdefs.h. */ |
| 28880 | _ACEOF |
| 28881 | cat confdefs.h >>conftest.$ac_ext |
| 28882 | cat >>conftest.$ac_ext <<_ACEOF |
| 28883 | /* end confdefs.h. */ |
| 28884 | #include <ext/hash_map> |
| 28885 | #ifdef HAVE_NAMESPACES |
| 28886 | using namespace __gnu_cxx; |
| 28887 | #endif |
| 28888 | int |
| 28889 | main () |
| 28890 | { |
| 28891 | hash_map<int,int> t; |
| 28892 | ; |
| 28893 | return 0; |
| 28894 | } |
| 28895 | _ACEOF |
| 28896 | rm -f conftest.$ac_objext |
| 28897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28898 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28899 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28901 | rm -f conftest.er1 |
| 28902 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28904 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28905 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28906 | || test ! -s conftest.err' |
| 28907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28908 | (eval $ac_try) 2>&5 |
| 28909 | ac_status=$? |
| 28910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28911 | (exit $ac_status); }; } && |
| 28912 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28914 | (eval $ac_try) 2>&5 |
| 28915 | ac_status=$? |
| 28916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28917 | (exit $ac_status); }; }; then |
| 28918 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 28919 | else |
| 28920 | echo "$as_me: failed program was:" >&5 |
| 28921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28922 | |
| 28923 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28924 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28926 | ac_ext=c |
| 28927 | ac_cpp='$CPP $CPPFLAGS' |
| 28928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28931 | |
| 28932 | fi |
| 28933 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 28934 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28935 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 28936 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28937 | |
| 28938 | cat >>confdefs.h <<\_ACEOF |
| 28939 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 28940 | _ACEOF |
| 28941 | |
| 28942 | else |
| 28943 | |
| 28944 | cat >>confdefs.h <<\_ACEOF |
| 28945 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 28946 | _ACEOF |
| 28947 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28948 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28949 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28950 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 28951 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 |
| 28952 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 28953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28954 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28955 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28956 | ac_ext=cc |
| 28957 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28958 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28959 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28960 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28961 | |
| 28962 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28963 | /* confdefs.h. */ |
| 28964 | _ACEOF |
| 28965 | cat confdefs.h >>conftest.$ac_ext |
| 28966 | cat >>conftest.$ac_ext <<_ACEOF |
| 28967 | /* end confdefs.h. */ |
| 28968 | #include <hash_map> |
| 28969 | int |
| 28970 | main () |
| 28971 | { |
| 28972 | hash_map<int,int> t; |
| 28973 | ; |
| 28974 | return 0; |
| 28975 | } |
| 28976 | _ACEOF |
| 28977 | rm -f conftest.$ac_objext |
| 28978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28979 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28980 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28982 | rm -f conftest.er1 |
| 28983 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28985 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28986 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 28987 | || test ! -s conftest.err' |
| 28988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28989 | (eval $ac_try) 2>&5 |
| 28990 | ac_status=$? |
| 28991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28992 | (exit $ac_status); }; } && |
| 28993 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 28995 | (eval $ac_try) 2>&5 |
| 28996 | ac_status=$? |
| 28997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28998 | (exit $ac_status); }; }; then |
| 28999 | ac_cv_cxx_have_global_hash_map=yes |
| 29000 | else |
| 29001 | echo "$as_me: failed program was:" >&5 |
| 29002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29003 | |
| 29004 | ac_cv_cxx_have_global_hash_map=no |
| 29005 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29007 | ac_ext=c |
| 29008 | ac_cpp='$CPP $CPPFLAGS' |
| 29009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29012 | |
| 29013 | fi |
| 29014 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 29015 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29016 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 29017 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29018 | |
| 29019 | cat >>confdefs.h <<\_ACEOF |
| 29020 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 29021 | _ACEOF |
| 29022 | |
| 29023 | else |
| 29024 | |
| 29025 | cat >>confdefs.h <<\_ACEOF |
| 29026 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 29027 | _ACEOF |
| 29028 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29029 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29030 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29031 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 29032 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 |
| 29033 | if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29035 | else |
| 29036 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29037 | ac_ext=cc |
| 29038 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29042 | |
| 29043 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29044 | /* confdefs.h. */ |
| 29045 | _ACEOF |
| 29046 | cat confdefs.h >>conftest.$ac_ext |
| 29047 | cat >>conftest.$ac_ext <<_ACEOF |
| 29048 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29049 | #include <ext/hash_set> |
| 29050 | #ifdef HAVE_NAMESPACES |
| 29051 | using namespace std; |
| 29052 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29053 | int |
| 29054 | main () |
| 29055 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29056 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29057 | ; |
| 29058 | return 0; |
| 29059 | } |
| 29060 | _ACEOF |
| 29061 | rm -f conftest.$ac_objext |
| 29062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29063 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29064 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29066 | rm -f conftest.er1 |
| 29067 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29069 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29070 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29071 | || test ! -s conftest.err' |
| 29072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29073 | (eval $ac_try) 2>&5 |
| 29074 | ac_status=$? |
| 29075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29076 | (exit $ac_status); }; } && |
| 29077 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29079 | (eval $ac_try) 2>&5 |
| 29080 | ac_status=$? |
| 29081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29082 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29083 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29084 | else |
| 29085 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29087 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29088 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29089 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29091 | ac_ext=c |
| 29092 | ac_cpp='$CPP $CPPFLAGS' |
| 29093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29096 | |
| 29097 | fi |
| 29098 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 29099 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29100 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 29101 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29102 | |
| 29103 | cat >>confdefs.h <<\_ACEOF |
| 29104 | #define HAVE_STD_EXT_HASH_SET 1 |
| 29105 | _ACEOF |
| 29106 | |
| 29107 | else |
| 29108 | |
| 29109 | cat >>confdefs.h <<\_ACEOF |
| 29110 | #define HAVE_STD_EXT_HASH_SET 0 |
| 29111 | _ACEOF |
| 29112 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29113 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29114 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29115 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 29116 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 |
| 29117 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 29118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29119 | else |
| 29120 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29121 | ac_ext=cc |
| 29122 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29126 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29127 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29128 | /* confdefs.h. */ |
| 29129 | _ACEOF |
| 29130 | cat confdefs.h >>conftest.$ac_ext |
| 29131 | cat >>conftest.$ac_ext <<_ACEOF |
| 29132 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29133 | #include <ext/hash_set> |
| 29134 | #ifdef HAVE_NAMESPACES |
| 29135 | using namespace __gnu_cxx; |
| 29136 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29137 | int |
| 29138 | main () |
| 29139 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29140 | hash_set<int> t; |
| 29141 | ; |
| 29142 | return 0; |
| 29143 | } |
| 29144 | _ACEOF |
| 29145 | rm -f conftest.$ac_objext |
| 29146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29147 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29148 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29150 | rm -f conftest.er1 |
| 29151 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29153 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29154 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29155 | || test ! -s conftest.err' |
| 29156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29157 | (eval $ac_try) 2>&5 |
| 29158 | ac_status=$? |
| 29159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29160 | (exit $ac_status); }; } && |
| 29161 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29163 | (eval $ac_try) 2>&5 |
| 29164 | ac_status=$? |
| 29165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29166 | (exit $ac_status); }; }; then |
| 29167 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 29168 | else |
| 29169 | echo "$as_me: failed program was:" >&5 |
| 29170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29171 | |
| 29172 | ac_cv_cxx_have_gnu_ext_hash_set=no |
| 29173 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29175 | ac_ext=c |
| 29176 | ac_cpp='$CPP $CPPFLAGS' |
| 29177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29180 | |
| 29181 | fi |
| 29182 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 29183 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29184 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 29185 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29186 | |
| 29187 | cat >>confdefs.h <<\_ACEOF |
| 29188 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 29189 | _ACEOF |
| 29190 | |
| 29191 | else |
| 29192 | |
| 29193 | cat >>confdefs.h <<\_ACEOF |
| 29194 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 29195 | _ACEOF |
| 29196 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29197 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29198 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29199 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 29200 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 |
| 29201 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 29202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29203 | else |
| 29204 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29205 | ac_ext=cc |
| 29206 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29207 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29208 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29209 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29210 | |
| 29211 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29212 | /* confdefs.h. */ |
| 29213 | _ACEOF |
| 29214 | cat confdefs.h >>conftest.$ac_ext |
| 29215 | cat >>conftest.$ac_ext <<_ACEOF |
| 29216 | /* end confdefs.h. */ |
| 29217 | #include <hash_set> |
| 29218 | int |
| 29219 | main () |
| 29220 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29221 | hash_set<int> t; return 0; |
| 29222 | ; |
| 29223 | return 0; |
| 29224 | } |
| 29225 | _ACEOF |
| 29226 | rm -f conftest.$ac_objext |
| 29227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29228 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29229 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29231 | rm -f conftest.er1 |
| 29232 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29234 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29235 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29236 | || test ! -s conftest.err' |
| 29237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29238 | (eval $ac_try) 2>&5 |
| 29239 | ac_status=$? |
| 29240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29241 | (exit $ac_status); }; } && |
| 29242 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29244 | (eval $ac_try) 2>&5 |
| 29245 | ac_status=$? |
| 29246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29247 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29248 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29249 | else |
| 29250 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29252 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29253 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29254 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29256 | ac_ext=c |
| 29257 | ac_cpp='$CPP $CPPFLAGS' |
| 29258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29261 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29262 | fi |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29263 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 29264 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29265 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 29266 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29267 | |
| 29268 | cat >>confdefs.h <<\_ACEOF |
| 29269 | #define HAVE_GLOBAL_HASH_SET 1 |
| 29270 | _ACEOF |
| 29271 | |
| 29272 | else |
| 29273 | |
| 29274 | cat >>confdefs.h <<\_ACEOF |
| 29275 | #define HAVE_GLOBAL_HASH_SET 0 |
| 29276 | _ACEOF |
| 29277 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29278 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29279 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29280 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 29281 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 |
| 29282 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 29283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29284 | else |
| 29285 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29286 | ac_ext=cc |
| 29287 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29288 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29289 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29290 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29291 | |
| 29292 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29293 | /* confdefs.h. */ |
| 29294 | _ACEOF |
| 29295 | cat confdefs.h >>conftest.$ac_ext |
| 29296 | cat >>conftest.$ac_ext <<_ACEOF |
| 29297 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29298 | #include <iterator> |
| 29299 | #ifdef HAVE_NAMESPACES |
| 29300 | using namespace std; |
| 29301 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29302 | int |
| 29303 | main () |
| 29304 | { |
| 29305 | iterator<int,int,int> t; return 0; |
| 29306 | ; |
| 29307 | return 0; |
| 29308 | } |
| 29309 | _ACEOF |
| 29310 | rm -f conftest.$ac_objext |
| 29311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29312 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29313 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29315 | rm -f conftest.er1 |
| 29316 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29318 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29319 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29320 | || test ! -s conftest.err' |
| 29321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29322 | (eval $ac_try) 2>&5 |
| 29323 | ac_status=$? |
| 29324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29325 | (exit $ac_status); }; } && |
| 29326 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29328 | (eval $ac_try) 2>&5 |
| 29329 | ac_status=$? |
| 29330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29331 | (exit $ac_status); }; }; then |
| 29332 | ac_cv_cxx_have_std_iterator=yes |
| 29333 | else |
| 29334 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29336 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29337 | ac_cv_cxx_have_std_iterator=no |
| 29338 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29340 | ac_ext=c |
| 29341 | ac_cpp='$CPP $CPPFLAGS' |
| 29342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29345 | |
| 29346 | |
| 29347 | fi |
| 29348 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 29349 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29350 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 29351 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29352 | |
| 29353 | cat >>confdefs.h <<\_ACEOF |
| 29354 | #define HAVE_STD_ITERATOR 1 |
| 29355 | _ACEOF |
| 29356 | |
| 29357 | else |
| 29358 | |
| 29359 | cat >>confdefs.h <<\_ACEOF |
| 29360 | #define HAVE_STD_ITERATOR 0 |
| 29361 | _ACEOF |
| 29362 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29363 | fi |
| 29364 | |
| 29365 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 29366 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 |
| 29367 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 29368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29369 | else |
| 29370 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29371 | ac_ext=cc |
| 29372 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29373 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29374 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29375 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29376 | |
| 29377 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29378 | /* confdefs.h. */ |
| 29379 | _ACEOF |
| 29380 | cat confdefs.h >>conftest.$ac_ext |
| 29381 | cat >>conftest.$ac_ext <<_ACEOF |
| 29382 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29383 | #include <iterator> |
| 29384 | #ifdef HAVE_NAMESPACES |
| 29385 | using namespace std; |
| 29386 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29387 | int |
| 29388 | main () |
| 29389 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 29390 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29391 | ; |
| 29392 | return 0; |
| 29393 | } |
| 29394 | _ACEOF |
| 29395 | rm -f conftest.$ac_objext |
| 29396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29397 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29398 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29400 | rm -f conftest.er1 |
| 29401 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29403 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29404 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29405 | || test ! -s conftest.err' |
| 29406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29407 | (eval $ac_try) 2>&5 |
| 29408 | ac_status=$? |
| 29409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29410 | (exit $ac_status); }; } && |
| 29411 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29413 | (eval $ac_try) 2>&5 |
| 29414 | ac_status=$? |
| 29415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29416 | (exit $ac_status); }; }; then |
| 29417 | ac_cv_cxx_have_bi_iterator=yes |
| 29418 | else |
| 29419 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29421 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29422 | ac_cv_cxx_have_bi_iterator=no |
| 29423 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29425 | ac_ext=c |
| 29426 | ac_cpp='$CPP $CPPFLAGS' |
| 29427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29430 | |
| 29431 | |
| 29432 | fi |
| 29433 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 29434 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29435 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 29436 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29437 | |
| 29438 | cat >>confdefs.h <<\_ACEOF |
| 29439 | #define HAVE_BI_ITERATOR 1 |
| 29440 | _ACEOF |
| 29441 | |
| 29442 | else |
| 29443 | |
| 29444 | cat >>confdefs.h <<\_ACEOF |
| 29445 | #define HAVE_BI_ITERATOR 0 |
| 29446 | _ACEOF |
| 29447 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29448 | fi |
| 29449 | |
| 29450 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 29451 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 |
| 29452 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 29453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29454 | else |
| 29455 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29456 | ac_ext=cc |
| 29457 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29458 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29459 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29460 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29461 | |
| 29462 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29463 | /* confdefs.h. */ |
| 29464 | _ACEOF |
| 29465 | cat confdefs.h >>conftest.$ac_ext |
| 29466 | cat >>conftest.$ac_ext <<_ACEOF |
| 29467 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29468 | #include <iterator> |
| 29469 | #ifdef HAVE_NAMESPACES |
| 29470 | using namespace std; |
| 29471 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29472 | int |
| 29473 | main () |
| 29474 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 29475 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29476 | ; |
| 29477 | return 0; |
| 29478 | } |
| 29479 | _ACEOF |
| 29480 | rm -f conftest.$ac_objext |
| 29481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29482 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29483 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29485 | rm -f conftest.er1 |
| 29486 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29488 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29489 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29490 | || test ! -s conftest.err' |
| 29491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29492 | (eval $ac_try) 2>&5 |
| 29493 | ac_status=$? |
| 29494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29495 | (exit $ac_status); }; } && |
| 29496 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29498 | (eval $ac_try) 2>&5 |
| 29499 | ac_status=$? |
| 29500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29501 | (exit $ac_status); }; }; then |
| 29502 | ac_cv_cxx_have_fwd_iterator=yes |
| 29503 | else |
| 29504 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29506 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29507 | ac_cv_cxx_have_fwd_iterator=no |
| 29508 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29510 | ac_ext=c |
| 29511 | ac_cpp='$CPP $CPPFLAGS' |
| 29512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29515 | |
| 29516 | |
| 29517 | fi |
| 29518 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 29519 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 29520 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 29521 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 29522 | |
| 29523 | cat >>confdefs.h <<\_ACEOF |
| 29524 | #define HAVE_FWD_ITERATOR 1 |
| 29525 | _ACEOF |
| 29526 | |
| 29527 | else |
| 29528 | |
| 29529 | cat >>confdefs.h <<\_ACEOF |
| 29530 | #define HAVE_FWD_ITERATOR 0 |
| 29531 | _ACEOF |
| 29532 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29533 | fi |
| 29534 | |
| 29535 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29536 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 29537 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 |
| 29538 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 29539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29540 | else |
| 29541 | ac_ext=cc |
| 29542 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29546 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29547 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29548 | /* confdefs.h. */ |
| 29549 | _ACEOF |
| 29550 | cat confdefs.h >>conftest.$ac_ext |
| 29551 | cat >>conftest.$ac_ext <<_ACEOF |
| 29552 | /* end confdefs.h. */ |
| 29553 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29554 | int |
| 29555 | main () |
| 29556 | { |
| 29557 | float f; isnan(f); |
| 29558 | ; |
| 29559 | return 0; |
| 29560 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29561 | _ACEOF |
| 29562 | rm -f conftest.$ac_objext |
| 29563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29564 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29565 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29567 | rm -f conftest.er1 |
| 29568 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29570 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29571 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29572 | || test ! -s conftest.err' |
| 29573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29574 | (eval $ac_try) 2>&5 |
| 29575 | ac_status=$? |
| 29576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29577 | (exit $ac_status); }; } && |
| 29578 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29580 | (eval $ac_try) 2>&5 |
| 29581 | ac_status=$? |
| 29582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29583 | (exit $ac_status); }; }; then |
| 29584 | ac_cv_func_isnan_in_math_h=yes |
| 29585 | else |
| 29586 | echo "$as_me: failed program was:" >&5 |
| 29587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29588 | |
| 29589 | ac_cv_func_isnan_in_math_h=no |
| 29590 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29592 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29593 | ac_cpp='$CPP $CPPFLAGS' |
| 29594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29597 | |
| 29598 | fi |
| 29599 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 29600 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29601 | |
| 29602 | |
| 29603 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29604 | |
| 29605 | cat >>confdefs.h <<\_ACEOF |
| 29606 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 29607 | _ACEOF |
| 29608 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29609 | fi |
| 29610 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29611 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 29612 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 |
| 29613 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 29614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29615 | else |
| 29616 | ac_ext=cc |
| 29617 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29621 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29622 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29623 | /* confdefs.h. */ |
| 29624 | _ACEOF |
| 29625 | cat confdefs.h >>conftest.$ac_ext |
| 29626 | cat >>conftest.$ac_ext <<_ACEOF |
| 29627 | /* end confdefs.h. */ |
| 29628 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29629 | int |
| 29630 | main () |
| 29631 | { |
| 29632 | float f; isnan(f); |
| 29633 | ; |
| 29634 | return 0; |
| 29635 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29636 | _ACEOF |
| 29637 | rm -f conftest.$ac_objext |
| 29638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29639 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29640 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29642 | rm -f conftest.er1 |
| 29643 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29645 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29646 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29647 | || test ! -s conftest.err' |
| 29648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29649 | (eval $ac_try) 2>&5 |
| 29650 | ac_status=$? |
| 29651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29652 | (exit $ac_status); }; } && |
| 29653 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29655 | (eval $ac_try) 2>&5 |
| 29656 | ac_status=$? |
| 29657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29658 | (exit $ac_status); }; }; then |
| 29659 | ac_cv_func_isnan_in_cmath=yes |
| 29660 | else |
| 29661 | echo "$as_me: failed program was:" >&5 |
| 29662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29663 | |
| 29664 | ac_cv_func_isnan_in_cmath=no |
| 29665 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29667 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29668 | ac_cpp='$CPP $CPPFLAGS' |
| 29669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29672 | |
| 29673 | fi |
| 29674 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 29675 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29676 | |
| 29677 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29678 | |
| 29679 | cat >>confdefs.h <<\_ACEOF |
| 29680 | #define HAVE_ISNAN_IN_CMATH 1 |
| 29681 | _ACEOF |
| 29682 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29683 | fi |
| 29684 | |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29685 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 29686 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 |
| 29687 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 29688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29689 | else |
| 29690 | ac_ext=cc |
| 29691 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29692 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29693 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29694 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29695 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29696 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29697 | /* confdefs.h. */ |
| 29698 | _ACEOF |
| 29699 | cat confdefs.h >>conftest.$ac_ext |
| 29700 | cat >>conftest.$ac_ext <<_ACEOF |
| 29701 | /* end confdefs.h. */ |
| 29702 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29703 | int |
| 29704 | main () |
| 29705 | { |
| 29706 | float f; std::isnan(f); |
| 29707 | ; |
| 29708 | return 0; |
| 29709 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29710 | _ACEOF |
| 29711 | rm -f conftest.$ac_objext |
| 29712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29713 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29714 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29716 | rm -f conftest.er1 |
| 29717 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29719 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29720 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29721 | || test ! -s conftest.err' |
| 29722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29723 | (eval $ac_try) 2>&5 |
| 29724 | ac_status=$? |
| 29725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29726 | (exit $ac_status); }; } && |
| 29727 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29729 | (eval $ac_try) 2>&5 |
| 29730 | ac_status=$? |
| 29731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29732 | (exit $ac_status); }; }; then |
| 29733 | ac_cv_func_std_isnan_in_cmath=yes |
| 29734 | else |
| 29735 | echo "$as_me: failed program was:" >&5 |
| 29736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29737 | |
| 29738 | ac_cv_func_std_isnan_in_cmath=no |
| 29739 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29741 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29742 | ac_cpp='$CPP $CPPFLAGS' |
| 29743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29746 | |
| 29747 | fi |
| 29748 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 29749 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29750 | |
| 29751 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29752 | |
| 29753 | cat >>confdefs.h <<\_ACEOF |
| 29754 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 29755 | _ACEOF |
| 29756 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29757 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29758 | |
| 29759 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29760 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 29761 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 |
| 29762 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 29763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29764 | else |
| 29765 | ac_ext=cc |
| 29766 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29770 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29771 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29772 | /* confdefs.h. */ |
| 29773 | _ACEOF |
| 29774 | cat confdefs.h >>conftest.$ac_ext |
| 29775 | cat >>conftest.$ac_ext <<_ACEOF |
| 29776 | /* end confdefs.h. */ |
| 29777 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29778 | int |
| 29779 | main () |
| 29780 | { |
| 29781 | float f; isinf(f); |
| 29782 | ; |
| 29783 | return 0; |
| 29784 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29785 | _ACEOF |
| 29786 | rm -f conftest.$ac_objext |
| 29787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29788 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29789 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29791 | rm -f conftest.er1 |
| 29792 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29794 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29795 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29796 | || test ! -s conftest.err' |
| 29797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29798 | (eval $ac_try) 2>&5 |
| 29799 | ac_status=$? |
| 29800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29801 | (exit $ac_status); }; } && |
| 29802 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29804 | (eval $ac_try) 2>&5 |
| 29805 | ac_status=$? |
| 29806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29807 | (exit $ac_status); }; }; then |
| 29808 | ac_cv_func_isinf_in_math_h=yes |
| 29809 | else |
| 29810 | echo "$as_me: failed program was:" >&5 |
| 29811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29812 | |
| 29813 | ac_cv_func_isinf_in_math_h=no |
| 29814 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29816 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29817 | ac_cpp='$CPP $CPPFLAGS' |
| 29818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29821 | |
| 29822 | fi |
| 29823 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 29824 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29825 | |
| 29826 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29827 | |
| 29828 | cat >>confdefs.h <<\_ACEOF |
| 29829 | #define HAVE_ISINF_IN_MATH_H 1 |
| 29830 | _ACEOF |
| 29831 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29832 | fi |
| 29833 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29834 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 29835 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 |
| 29836 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 29837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29838 | else |
| 29839 | ac_ext=cc |
| 29840 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29841 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29842 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29843 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29844 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29845 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29846 | /* confdefs.h. */ |
| 29847 | _ACEOF |
| 29848 | cat confdefs.h >>conftest.$ac_ext |
| 29849 | cat >>conftest.$ac_ext <<_ACEOF |
| 29850 | /* end confdefs.h. */ |
| 29851 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29852 | int |
| 29853 | main () |
| 29854 | { |
| 29855 | float f; isinf(f); |
| 29856 | ; |
| 29857 | return 0; |
| 29858 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29859 | _ACEOF |
| 29860 | rm -f conftest.$ac_objext |
| 29861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29862 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29863 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29865 | rm -f conftest.er1 |
| 29866 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29868 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29869 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29870 | || test ! -s conftest.err' |
| 29871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29872 | (eval $ac_try) 2>&5 |
| 29873 | ac_status=$? |
| 29874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29875 | (exit $ac_status); }; } && |
| 29876 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29878 | (eval $ac_try) 2>&5 |
| 29879 | ac_status=$? |
| 29880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29881 | (exit $ac_status); }; }; then |
| 29882 | ac_cv_func_isinf_in_cmath=yes |
| 29883 | else |
| 29884 | echo "$as_me: failed program was:" >&5 |
| 29885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29886 | |
| 29887 | ac_cv_func_isinf_in_cmath=no |
| 29888 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29890 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29891 | ac_cpp='$CPP $CPPFLAGS' |
| 29892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29895 | |
| 29896 | fi |
| 29897 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 29898 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29899 | |
| 29900 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29901 | |
| 29902 | cat >>confdefs.h <<\_ACEOF |
| 29903 | #define HAVE_ISINF_IN_CMATH 1 |
| 29904 | _ACEOF |
| 29905 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29906 | fi |
| 29907 | |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29908 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 29909 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 |
| 29910 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 29911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29912 | else |
| 29913 | ac_ext=cc |
| 29914 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29915 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29916 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29917 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29918 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29919 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29920 | /* confdefs.h. */ |
| 29921 | _ACEOF |
| 29922 | cat confdefs.h >>conftest.$ac_ext |
| 29923 | cat >>conftest.$ac_ext <<_ACEOF |
| 29924 | /* end confdefs.h. */ |
| 29925 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29926 | int |
| 29927 | main () |
| 29928 | { |
| 29929 | float f; std::isinf(f)} |
| 29930 | ; |
| 29931 | return 0; |
| 29932 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29933 | _ACEOF |
| 29934 | rm -f conftest.$ac_objext |
| 29935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29936 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29937 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29939 | rm -f conftest.er1 |
| 29940 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29942 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29943 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 29944 | || test ! -s conftest.err' |
| 29945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29946 | (eval $ac_try) 2>&5 |
| 29947 | ac_status=$? |
| 29948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29949 | (exit $ac_status); }; } && |
| 29950 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 29952 | (eval $ac_try) 2>&5 |
| 29953 | ac_status=$? |
| 29954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29955 | (exit $ac_status); }; }; then |
| 29956 | ac_cv_func_std_isinf_in_cmath=yes |
| 29957 | else |
| 29958 | echo "$as_me: failed program was:" >&5 |
| 29959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29960 | |
| 29961 | ac_cv_func_std_isinf_in_cmath=no |
| 29962 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29964 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29965 | ac_cpp='$CPP $CPPFLAGS' |
| 29966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29969 | |
| 29970 | fi |
| 29971 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 29972 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29973 | |
| 29974 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29975 | |
| 29976 | cat >>confdefs.h <<\_ACEOF |
| 29977 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 29978 | _ACEOF |
| 29979 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29980 | fi |
| 29981 | |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29982 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 29983 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 |
| 29984 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 29985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29986 | else |
| 29987 | ac_ext=cc |
| 29988 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29989 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29990 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29991 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29992 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29993 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29994 | /* confdefs.h. */ |
| 29995 | _ACEOF |
| 29996 | cat confdefs.h >>conftest.$ac_ext |
| 29997 | cat >>conftest.$ac_ext <<_ACEOF |
| 29998 | /* end confdefs.h. */ |
| 29999 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30000 | int |
| 30001 | main () |
| 30002 | { |
| 30003 | float f; finite(f); |
| 30004 | ; |
| 30005 | return 0; |
| 30006 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30007 | _ACEOF |
| 30008 | rm -f conftest.$ac_objext |
| 30009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30010 | (eval $ac_compile) 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30011 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30013 | rm -f conftest.er1 |
| 30014 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30016 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30017 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 30018 | || test ! -s conftest.err' |
| 30019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30020 | (eval $ac_try) 2>&5 |
| 30021 | ac_status=$? |
| 30022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30023 | (exit $ac_status); }; } && |
| 30024 | { ac_try='test -s conftest.$ac_objext' |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30026 | (eval $ac_try) 2>&5 |
| 30027 | ac_status=$? |
| 30028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30029 | (exit $ac_status); }; }; then |
| 30030 | ac_cv_func_finite_in_ieeefp_h=yes |
| 30031 | else |
| 30032 | echo "$as_me: failed program was:" >&5 |
| 30033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30034 | |
| 30035 | ac_cv_func_finite_in_ieeefp_h=no |
| 30036 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30038 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30039 | ac_cpp='$CPP $CPPFLAGS' |
| 30040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30043 | |
| 30044 | fi |
| 30045 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 30046 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30047 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 30048 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30049 | |
| 30050 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 30051 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 30052 | _ACEOF |
| 30053 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30054 | fi |
| 30055 | |
| 30056 | |
| 30057 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30058 | |
| 30059 | |
| 30060 | for ac_header in stdlib.h unistd.h |
| 30061 | do |
| 30062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 30064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 30066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 30067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30068 | fi |
| 30069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 30070 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 30071 | else |
| 30072 | # Is the header compilable? |
| 30073 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30074 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 30075 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30076 | /* confdefs.h. */ |
| 30077 | _ACEOF |
| 30078 | cat confdefs.h >>conftest.$ac_ext |
| 30079 | cat >>conftest.$ac_ext <<_ACEOF |
| 30080 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30081 | $ac_includes_default |
| 30082 | #include <$ac_header> |
| 30083 | _ACEOF |
| 30084 | rm -f conftest.$ac_objext |
| 30085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30086 | (eval $ac_compile) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30087 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30089 | rm -f conftest.er1 |
| 30090 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30092 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30093 | { ac_try='test -z "$ac_c_werror_flag" |
| 30094 | || test ! -s conftest.err' |
| 30095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30096 | (eval $ac_try) 2>&5 |
| 30097 | ac_status=$? |
| 30098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30099 | (exit $ac_status); }; } && |
| 30100 | { ac_try='test -s conftest.$ac_objext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30102 | (eval $ac_try) 2>&5 |
| 30103 | ac_status=$? |
| 30104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30105 | (exit $ac_status); }; }; then |
| 30106 | ac_header_compiler=yes |
| 30107 | else |
| 30108 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30110 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30111 | ac_header_compiler=no |
| 30112 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30114 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30115 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 30116 | |
| 30117 | # Is the header present? |
| 30118 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30119 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 30120 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30121 | /* confdefs.h. */ |
| 30122 | _ACEOF |
| 30123 | cat confdefs.h >>conftest.$ac_ext |
| 30124 | cat >>conftest.$ac_ext <<_ACEOF |
| 30125 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30126 | #include <$ac_header> |
| 30127 | _ACEOF |
| 30128 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 30129 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 30130 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30131 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30132 | rm -f conftest.er1 |
| 30133 | cat conftest.err >&5 |
| 30134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30135 | (exit $ac_status); } >/dev/null; then |
| 30136 | if test -s conftest.err; then |
| 30137 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30138 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30139 | else |
| 30140 | ac_cpp_err= |
| 30141 | fi |
| 30142 | else |
| 30143 | ac_cpp_err=yes |
| 30144 | fi |
| 30145 | if test -z "$ac_cpp_err"; then |
| 30146 | ac_header_preproc=yes |
| 30147 | else |
| 30148 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30150 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30151 | ac_header_preproc=no |
| 30152 | fi |
| 30153 | rm -f conftest.err conftest.$ac_ext |
| 30154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30155 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 30156 | |
| 30157 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30159 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30160 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30161 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30163 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30164 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30165 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30166 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30167 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30168 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30169 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30170 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30171 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30172 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30173 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30174 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30176 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30177 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30178 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30179 | ( |
| 30180 | cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30181 | ## ----------------------------------- ## |
| 30182 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30183 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30184 | _ASBOX |
| 30185 | ) | |
| 30186 | sed "s/^/$as_me: WARNING: /" >&2 |
| 30187 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30188 | esac |
| 30189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 30191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 30192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30193 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30194 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30195 | fi |
| 30196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 30197 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 30198 | |
| 30199 | fi |
| 30200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30201 | cat >>confdefs.h <<_ACEOF |
| 30202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30203 | _ACEOF |
| 30204 | |
| 30205 | fi |
| 30206 | |
| 30207 | done |
| 30208 | |
| 30209 | |
| 30210 | for ac_func in getpagesize |
| 30211 | do |
| 30212 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30213 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30214 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 30215 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 30216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30217 | else |
| 30218 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30219 | /* confdefs.h. */ |
| 30220 | _ACEOF |
| 30221 | cat confdefs.h >>conftest.$ac_ext |
| 30222 | cat >>conftest.$ac_ext <<_ACEOF |
| 30223 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30224 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30225 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30226 | #define $ac_func innocuous_$ac_func |
| 30227 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30228 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30229 | which can conflict with char $ac_func (); below. |
| 30230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30231 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30232 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30233 | #ifdef __STDC__ |
| 30234 | # include <limits.h> |
| 30235 | #else |
| 30236 | # include <assert.h> |
| 30237 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30238 | |
| 30239 | #undef $ac_func |
| 30240 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30241 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 30242 | #ifdef __cplusplus |
| 30243 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30244 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30245 | #endif |
| 30246 | /* We use char because int might match the return type of a gcc2 |
| 30247 | builtin and then its argument prototype would still apply. */ |
| 30248 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30249 | /* The GNU C library defines this for functions which it implements |
| 30250 | to always fail with ENOSYS. Some functions are actually named |
| 30251 | something starting with __ and the normal name is an alias. */ |
| 30252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 30253 | choke me |
| 30254 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30255 | char (*f) () = $ac_func; |
| 30256 | #endif |
| 30257 | #ifdef __cplusplus |
| 30258 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30259 | #endif |
| 30260 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30261 | int |
| 30262 | main () |
| 30263 | { |
| 30264 | return f != $ac_func; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30265 | ; |
| 30266 | return 0; |
| 30267 | } |
| 30268 | _ACEOF |
| 30269 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30271 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30272 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30274 | rm -f conftest.er1 |
| 30275 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30277 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30278 | { ac_try='test -z "$ac_c_werror_flag" |
| 30279 | || test ! -s conftest.err' |
| 30280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30281 | (eval $ac_try) 2>&5 |
| 30282 | ac_status=$? |
| 30283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30284 | (exit $ac_status); }; } && |
| 30285 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30287 | (eval $ac_try) 2>&5 |
| 30288 | ac_status=$? |
| 30289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30290 | (exit $ac_status); }; }; then |
| 30291 | eval "$as_ac_var=yes" |
| 30292 | else |
| 30293 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30295 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30296 | eval "$as_ac_var=no" |
| 30297 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30298 | rm -f conftest.err conftest.$ac_objext \ |
| 30299 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30300 | fi |
| 30301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 30302 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 30303 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30304 | cat >>confdefs.h <<_ACEOF |
| 30305 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30306 | _ACEOF |
| 30307 | |
| 30308 | fi |
| 30309 | done |
| 30310 | |
| 30311 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 30312 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 30313 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 30314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30315 | else |
| 30316 | if test "$cross_compiling" = yes; then |
| 30317 | ac_cv_func_mmap_fixed_mapped=no |
| 30318 | else |
| 30319 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30320 | /* confdefs.h. */ |
| 30321 | _ACEOF |
| 30322 | cat confdefs.h >>conftest.$ac_ext |
| 30323 | cat >>conftest.$ac_ext <<_ACEOF |
| 30324 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30325 | $ac_includes_default |
| 30326 | /* malloc might have been renamed as rpl_malloc. */ |
| 30327 | #undef malloc |
| 30328 | |
| 30329 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 30330 | Here is a matrix of mmap possibilities: |
| 30331 | mmap private not fixed |
| 30332 | mmap private fixed at somewhere currently unmapped |
| 30333 | mmap private fixed at somewhere already mapped |
| 30334 | mmap shared not fixed |
| 30335 | mmap shared fixed at somewhere currently unmapped |
| 30336 | mmap shared fixed at somewhere already mapped |
| 30337 | For private mappings, we should verify that changes cannot be read() |
| 30338 | back from the file, nor mmap's back from the file at a different |
| 30339 | address. (There have been systems where private was not correctly |
| 30340 | implemented like the infamous i386 svr4.0, and systems where the |
| 30341 | VM page cache was not coherent with the file system buffer cache |
| 30342 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 30343 | For shared mappings, we should conversely verify that changes get |
| 30344 | propagated back to all the places they're supposed to be. |
| 30345 | |
| 30346 | Grep wants private fixed already mapped. |
| 30347 | The main things grep needs to know about mmap are: |
| 30348 | * does it exist and is it safe to write into the mmap'd area |
| 30349 | * how to use it (BSD variants) */ |
| 30350 | |
| 30351 | #include <fcntl.h> |
| 30352 | #include <sys/mman.h> |
| 30353 | |
| 30354 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 30355 | char *malloc (); |
| 30356 | #endif |
| 30357 | |
| 30358 | /* This mess was copied from the GNU getpagesize.h. */ |
| 30359 | #if !HAVE_GETPAGESIZE |
| 30360 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 30361 | # if !HAVE_SYS_PARAM_H |
| 30362 | # define HAVE_SYS_PARAM_H 1 |
| 30363 | # endif |
| 30364 | |
| 30365 | # ifdef _SC_PAGESIZE |
| 30366 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 30367 | # else /* no _SC_PAGESIZE */ |
| 30368 | # if HAVE_SYS_PARAM_H |
| 30369 | # include <sys/param.h> |
| 30370 | # ifdef EXEC_PAGESIZE |
| 30371 | # define getpagesize() EXEC_PAGESIZE |
| 30372 | # else /* no EXEC_PAGESIZE */ |
| 30373 | # ifdef NBPG |
| 30374 | # define getpagesize() NBPG * CLSIZE |
| 30375 | # ifndef CLSIZE |
| 30376 | # define CLSIZE 1 |
| 30377 | # endif /* no CLSIZE */ |
| 30378 | # else /* no NBPG */ |
| 30379 | # ifdef NBPC |
| 30380 | # define getpagesize() NBPC |
| 30381 | # else /* no NBPC */ |
| 30382 | # ifdef PAGESIZE |
| 30383 | # define getpagesize() PAGESIZE |
| 30384 | # endif /* PAGESIZE */ |
| 30385 | # endif /* no NBPC */ |
| 30386 | # endif /* no NBPG */ |
| 30387 | # endif /* no EXEC_PAGESIZE */ |
| 30388 | # else /* no HAVE_SYS_PARAM_H */ |
| 30389 | # define getpagesize() 8192 /* punt totally */ |
| 30390 | # endif /* no HAVE_SYS_PARAM_H */ |
| 30391 | # endif /* no _SC_PAGESIZE */ |
| 30392 | |
| 30393 | #endif /* no HAVE_GETPAGESIZE */ |
| 30394 | |
| 30395 | int |
| 30396 | main () |
| 30397 | { |
| 30398 | char *data, *data2, *data3; |
| 30399 | int i, pagesize; |
| 30400 | int fd; |
| 30401 | |
| 30402 | pagesize = getpagesize (); |
| 30403 | |
| 30404 | /* First, make a file with some known garbage in it. */ |
| 30405 | data = (char *) malloc (pagesize); |
| 30406 | if (!data) |
| 30407 | exit (1); |
| 30408 | for (i = 0; i < pagesize; ++i) |
| 30409 | *(data + i) = rand (); |
| 30410 | umask (0); |
| 30411 | fd = creat ("conftest.mmap", 0600); |
| 30412 | if (fd < 0) |
| 30413 | exit (1); |
| 30414 | if (write (fd, data, pagesize) != pagesize) |
| 30415 | exit (1); |
| 30416 | close (fd); |
| 30417 | |
| 30418 | /* Next, try to mmap the file at a fixed address which already has |
| 30419 | something else allocated at it. If we can, also make sure that |
| 30420 | we see the same garbage. */ |
| 30421 | fd = open ("conftest.mmap", O_RDWR); |
| 30422 | if (fd < 0) |
| 30423 | exit (1); |
| 30424 | data2 = (char *) malloc (2 * pagesize); |
| 30425 | if (!data2) |
| 30426 | exit (1); |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30427 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30428 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30429 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30430 | exit (1); |
| 30431 | for (i = 0; i < pagesize; ++i) |
| 30432 | if (*(data + i) != *(data2 + i)) |
| 30433 | exit (1); |
| 30434 | |
| 30435 | /* Finally, make sure that changes to the mapped area do not |
| 30436 | percolate back to the file as seen by read(). (This is a bug on |
| 30437 | some variants of i386 svr4.0.) */ |
| 30438 | for (i = 0; i < pagesize; ++i) |
| 30439 | *(data2 + i) = *(data2 + i) + 1; |
| 30440 | data3 = (char *) malloc (pagesize); |
| 30441 | if (!data3) |
| 30442 | exit (1); |
| 30443 | if (read (fd, data3, pagesize) != pagesize) |
| 30444 | exit (1); |
| 30445 | for (i = 0; i < pagesize; ++i) |
| 30446 | if (*(data + i) != *(data3 + i)) |
| 30447 | exit (1); |
| 30448 | close (fd); |
| 30449 | exit (0); |
| 30450 | } |
| 30451 | _ACEOF |
| 30452 | rm -f conftest$ac_exeext |
| 30453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 30454 | (eval $ac_link) 2>&5 |
| 30455 | ac_status=$? |
| 30456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30457 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 30458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30459 | (eval $ac_try) 2>&5 |
| 30460 | ac_status=$? |
| 30461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30462 | (exit $ac_status); }; }; then |
| 30463 | ac_cv_func_mmap_fixed_mapped=yes |
| 30464 | else |
| 30465 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30466 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30468 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30469 | ( exit $ac_status ) |
| 30470 | ac_cv_func_mmap_fixed_mapped=no |
| 30471 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30472 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30473 | fi |
| 30474 | fi |
| 30475 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 30476 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 30477 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 30478 | |
| 30479 | cat >>confdefs.h <<\_ACEOF |
| 30480 | #define HAVE_MMAP 1 |
| 30481 | _ACEOF |
| 30482 | |
| 30483 | fi |
| 30484 | rm -f conftest.mmap |
| 30485 | |
| 30486 | echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 30487 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 |
| 30488 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 30489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30490 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30491 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30492 | ac_cpp='$CPP $CPPFLAGS' |
| 30493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30496 | |
| 30497 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 30498 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30499 | else |
| 30500 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30501 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30502 | /* confdefs.h. */ |
| 30503 | _ACEOF |
| 30504 | cat confdefs.h >>conftest.$ac_ext |
| 30505 | cat >>conftest.$ac_ext <<_ACEOF |
| 30506 | /* end confdefs.h. */ |
| 30507 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30508 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 30509 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30510 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30511 | |
| 30512 | int |
| 30513 | main () |
| 30514 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30515 | |
| 30516 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30517 | fd = creat ("foo",0777); |
| 30518 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 30519 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 30520 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 30521 | ; |
| 30522 | return 0; |
| 30523 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30524 | _ACEOF |
| 30525 | rm -f conftest$ac_exeext |
| 30526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 30527 | (eval $ac_link) 2>&5 |
| 30528 | ac_status=$? |
| 30529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 30531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30532 | (eval $ac_try) 2>&5 |
| 30533 | ac_status=$? |
| 30534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30535 | (exit $ac_status); }; }; then |
| 30536 | ac_cv_func_mmap_file=yes |
| 30537 | else |
| 30538 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30539 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30541 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30542 | ( exit $ac_status ) |
| 30543 | ac_cv_func_mmap_file=no |
| 30544 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30545 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30546 | fi |
| 30547 | ac_ext=c |
| 30548 | ac_cpp='$CPP $CPPFLAGS' |
| 30549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30552 | |
| 30553 | |
| 30554 | fi |
| 30555 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 30556 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 |
| 30557 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 30558 | |
| 30559 | cat >>confdefs.h <<\_ACEOF |
| 30560 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30561 | _ACEOF |
| 30562 | |
| 30563 | MMAP_FILE=yes |
| 30564 | |
| 30565 | fi |
| 30566 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30567 | echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 30568 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6 |
| 30569 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 30570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30571 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 30572 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30573 | ac_cv_need_dev_zero_for_mmap=yes |
| 30574 | else |
| 30575 | ac_cv_need_dev_zero_for_mmap=no |
| 30576 | fi |
| 30577 | |
| 30578 | fi |
| 30579 | echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 30580 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6 |
| 30581 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 30582 | |
| 30583 | cat >>confdefs.h <<\_ACEOF |
| 30584 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 30585 | _ACEOF |
| 30586 | |
| 30587 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30588 | echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 30589 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 |
| 30590 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 30591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30592 | else |
| 30593 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30594 | /* confdefs.h. */ |
| 30595 | _ACEOF |
| 30596 | cat confdefs.h >>conftest.$ac_ext |
| 30597 | cat >>conftest.$ac_ext <<_ACEOF |
| 30598 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30599 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 30600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30601 | #define mprotect innocuous_mprotect |
| 30602 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30603 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30604 | which can conflict with char mprotect (); below. |
| 30605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30606 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30607 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30608 | #ifdef __STDC__ |
| 30609 | # include <limits.h> |
| 30610 | #else |
| 30611 | # include <assert.h> |
| 30612 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30613 | |
| 30614 | #undef mprotect |
| 30615 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30616 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 30617 | #ifdef __cplusplus |
| 30618 | extern "C" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30619 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30620 | #endif |
| 30621 | /* We use char because int might match the return type of a gcc2 |
| 30622 | builtin and then its argument prototype would still apply. */ |
| 30623 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30624 | /* The GNU C library defines this for functions which it implements |
| 30625 | to always fail with ENOSYS. Some functions are actually named |
| 30626 | something starting with __ and the normal name is an alias. */ |
| 30627 | #if defined (__stub_mprotect) || defined (__stub___mprotect) |
| 30628 | choke me |
| 30629 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30630 | char (*f) () = mprotect; |
| 30631 | #endif |
| 30632 | #ifdef __cplusplus |
| 30633 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30634 | #endif |
| 30635 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30636 | int |
| 30637 | main () |
| 30638 | { |
| 30639 | return f != mprotect; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30640 | ; |
| 30641 | return 0; |
| 30642 | } |
| 30643 | _ACEOF |
| 30644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30646 | (eval $ac_link) 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30647 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30649 | rm -f conftest.er1 |
| 30650 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30652 | (exit $ac_status); } && |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30653 | { ac_try='test -z "$ac_c_werror_flag" |
| 30654 | || test ! -s conftest.err' |
| 30655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30656 | (eval $ac_try) 2>&5 |
| 30657 | ac_status=$? |
| 30658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30659 | (exit $ac_status); }; } && |
| 30660 | { ac_try='test -s conftest$ac_exeext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 30662 | (eval $ac_try) 2>&5 |
| 30663 | ac_status=$? |
| 30664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30665 | (exit $ac_status); }; }; then |
| 30666 | ac_cv_func_mprotect=yes |
| 30667 | else |
| 30668 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30670 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30671 | ac_cv_func_mprotect=no |
| 30672 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30673 | rm -f conftest.err conftest.$ac_objext \ |
| 30674 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30675 | fi |
| 30676 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 30677 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 |
| 30678 | if test $ac_cv_func_mprotect = yes; then |
| 30679 | : |
| 30680 | else |
| 30681 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 30682 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 30683 | { (exit 1); exit 1; }; } |
| 30684 | fi |
| 30685 | |
| 30686 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30687 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30688 | then |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 30689 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 30690 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30691 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30692 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30693 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30694 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 30695 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30696 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30697 | |
| 30698 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30699 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 30700 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30701 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 30702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30703 | else |
| 30704 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30705 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30706 | cp /dev/null conftest.c |
Chris Lattner | 74878f4 | 2006-02-27 05:39:00 +0000 | [diff] [blame] | 30707 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30708 | if test $? -eq 0 ; then |
| 30709 | llvm_cv_llvmgcc_sanity="yes" |
| 30710 | fi |
| 30711 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30712 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30713 | fi |
| 30714 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 30715 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 |
| 30716 | |
| 30717 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30718 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30719 | LLVMCC1=$llvmcc1path |
| 30720 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30721 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30722 | LLVMCC1PLUS=$llvmcc1pluspath |
| 30723 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30724 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 30725 | LLVMGCCDIR=$llvmgccdir |
| 30726 | |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 30727 | llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'` |
| 30728 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 30729 | LLVMGCC_VERSION=$llvmgccversion |
| 30730 | |
| 30731 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 30732 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30733 | fi |
| 30734 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30735 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 30736 | |
| 30737 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30738 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30739 | # information into substitutions that will end up in Makefile.config.in |
| 30740 | # that these configured values can be used by the makefiles |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30741 | eval LLVM_PREFIX="${prefix}"; |
| 30742 | eval LLVM_BINDIR="${prefix}/bin"; |
| 30743 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30744 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 30745 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 30746 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30747 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 30748 | eval LLVM_INFODIR="${prefix}/info"; |
| 30749 | eval LLVM_MANDIR="${prefix}/man"; |
| 30750 | LLVM_CONFIGTIME=`date` |
| 30751 | |
| 30752 | |
| 30753 | |
| 30754 | |
| 30755 | |
| 30756 | |
| 30757 | |
| 30758 | |
| 30759 | |
| 30760 | |
| 30761 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30762 | # Place the various directores into the config.h file as #defines so that we |
| 30763 | # can know about the installation paths within LLVM. |
| 30764 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30765 | cat >>confdefs.h <<_ACEOF |
| 30766 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 30767 | _ACEOF |
| 30768 | |
| 30769 | |
| 30770 | cat >>confdefs.h <<_ACEOF |
| 30771 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 30772 | _ACEOF |
| 30773 | |
| 30774 | |
| 30775 | cat >>confdefs.h <<_ACEOF |
| 30776 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 30777 | _ACEOF |
| 30778 | |
| 30779 | |
| 30780 | cat >>confdefs.h <<_ACEOF |
| 30781 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 30782 | _ACEOF |
| 30783 | |
| 30784 | |
| 30785 | cat >>confdefs.h <<_ACEOF |
| 30786 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 30787 | _ACEOF |
| 30788 | |
| 30789 | |
| 30790 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 30791 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30792 | _ACEOF |
| 30793 | |
| 30794 | |
| 30795 | cat >>confdefs.h <<_ACEOF |
| 30796 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 30797 | _ACEOF |
| 30798 | |
| 30799 | |
| 30800 | cat >>confdefs.h <<_ACEOF |
| 30801 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 30802 | _ACEOF |
| 30803 | |
| 30804 | |
| 30805 | cat >>confdefs.h <<_ACEOF |
| 30806 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 30807 | _ACEOF |
| 30808 | |
| 30809 | |
| 30810 | cat >>confdefs.h <<_ACEOF |
| 30811 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 30812 | _ACEOF |
| 30813 | |
| 30814 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30815 | |
| 30816 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
| 30817 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30818 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
| 30819 | |
| 30820 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
| 30821 | |
| 30822 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
| 30823 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30824 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
| 30825 | |
| 30826 | |
| 30827 | ac_config_files="$ac_config_files Makefile.config" |
| 30828 | |
| 30829 | |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30830 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 30831 | |
| 30832 | |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 30833 | ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in" |
| 30834 | |
| 30835 | |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 30836 | ac_config_commands="$ac_config_commands setup" |
| 30837 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30838 | ac_config_commands="$ac_config_commands Makefile" |
| 30839 | |
| 30840 | |
| 30841 | ac_config_commands="$ac_config_commands Makefile.common" |
| 30842 | |
| 30843 | |
| 30844 | ac_config_commands="$ac_config_commands examples/Makefile" |
| 30845 | |
| 30846 | |
| 30847 | ac_config_commands="$ac_config_commands lib/Makefile" |
| 30848 | |
| 30849 | |
| 30850 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 30851 | |
| 30852 | |
| 30853 | ac_config_commands="$ac_config_commands test/Makefile" |
| 30854 | |
| 30855 | |
| 30856 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
| 30857 | |
| 30858 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30859 | ac_config_commands="$ac_config_commands tools/Makefile" |
| 30860 | |
| 30861 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30862 | ac_config_commands="$ac_config_commands utils/Makefile" |
| 30863 | |
| 30864 | |
| 30865 | ac_config_commands="$ac_config_commands projects/Makefile" |
| 30866 | |
| 30867 | |
| 30868 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30869 | cat >confcache <<\_ACEOF |
| 30870 | # This file is a shell script that caches the results of configure |
| 30871 | # tests run on this system so they can be shared between configure |
| 30872 | # scripts and configure runs, see configure's option --config-cache. |
| 30873 | # It is not useful on other systems. If it contains results you don't |
| 30874 | # want to keep, you may remove or edit it. |
| 30875 | # |
| 30876 | # config.status only pays attention to the cache file if you give it |
| 30877 | # the --recheck option to rerun configure. |
| 30878 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30879 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30880 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 30881 | # following values. |
| 30882 | |
| 30883 | _ACEOF |
| 30884 | |
| 30885 | # The following way of writing the cache mishandles newlines in values, |
| 30886 | # but we know of no workaround that is simple, portable, and efficient. |
| 30887 | # So, don't put newlines in cache variables' values. |
| 30888 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 30889 | # and sets the high bit in the cache file unless we assign to the vars. |
| 30890 | { |
| 30891 | (set) 2>&1 | |
| 30892 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 30893 | *ac_space=\ *) |
| 30894 | # `set' does not quote correctly, so add quotes (double-quote |
| 30895 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 30896 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30897 | "s/'/'\\\\''/g; |
| 30898 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30899 | ;; |
| 30900 | *) |
| 30901 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 30902 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30903 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30904 | ;; |
| 30905 | esac; |
| 30906 | } | |
| 30907 | sed ' |
| 30908 | t clear |
| 30909 | : clear |
| 30910 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 30911 | t end |
| 30912 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 30913 | : end' >>confcache |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30914 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30915 | if test -w $cache_file; then |
| 30916 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 30917 | cat confcache >$cache_file |
| 30918 | else |
| 30919 | echo "not updating unwritable cache $cache_file" |
| 30920 | fi |
| 30921 | fi |
| 30922 | rm -f confcache |
| 30923 | |
| 30924 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 30925 | # Let make expand exec_prefix. |
| 30926 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 30927 | |
| 30928 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 30929 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 30930 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 30931 | # (actually we leave an empty line to preserve line numbers). |
| 30932 | if test "x$srcdir" = x.; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30933 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30934 | s/:*\$(srcdir):*/:/; |
| 30935 | s/:*\${srcdir}:*/:/; |
| 30936 | s/:*@srcdir@:*/:/; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30937 | s/^\([^=]*=[ ]*\):*/\1/; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30938 | s/:*$//; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30939 | s/^[^=]*=[ ]*$//; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30940 | }' |
| 30941 | fi |
| 30942 | |
| 30943 | DEFS=-DHAVE_CONFIG_H |
| 30944 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30945 | ac_libobjs= |
| 30946 | ac_ltlibobjs= |
| 30947 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 30948 | # 1. Remove the extension, and $U if already installed. |
| 30949 | ac_i=`echo "$ac_i" | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30950 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30951 | # 2. Add them. |
| 30952 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 30953 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 30954 | done |
| 30955 | LIBOBJS=$ac_libobjs |
| 30956 | |
| 30957 | LTLIBOBJS=$ac_ltlibobjs |
| 30958 | |
| 30959 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30960 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 30961 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 30962 | Usually this means the macro was only invoked conditionally." >&5 |
| 30963 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 30964 | Usually this means the macro was only invoked conditionally." >&2;} |
| 30965 | { (exit 1); exit 1; }; } |
| 30966 | fi |
| 30967 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 30968 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 30969 | Usually this means the macro was only invoked conditionally." >&5 |
| 30970 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 30971 | Usually this means the macro was only invoked conditionally." >&2;} |
| 30972 | { (exit 1); exit 1; }; } |
| 30973 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30974 | |
| 30975 | : ${CONFIG_STATUS=./config.status} |
| 30976 | ac_clean_files_save=$ac_clean_files |
| 30977 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 30978 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 30979 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 30980 | cat >$CONFIG_STATUS <<_ACEOF |
| 30981 | #! $SHELL |
| 30982 | # Generated by $as_me. |
| 30983 | # Run this file to recreate the current configuration. |
| 30984 | # Compiler output produced by configure, useful for debugging |
| 30985 | # configure, is in config.log if it exists. |
| 30986 | |
| 30987 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30988 | ac_cs_recheck=false |
| 30989 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30990 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 30991 | _ACEOF |
| 30992 | |
| 30993 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30994 | ## --------------------- ## |
| 30995 | ## M4sh Initialization. ## |
| 30996 | ## --------------------- ## |
| 30997 | |
| 30998 | # Be Bourne compatible |
| 30999 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 31000 | emulate sh |
| 31001 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31002 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 31003 | # is contrary to our usage. Disable this feature. |
| 31004 | alias -g '${1+"$@"}'='"$@"' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31005 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 31006 | set -o posix |
| 31007 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31008 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31009 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31010 | # Support unset when possible. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31011 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31012 | as_unset=unset |
| 31013 | else |
| 31014 | as_unset=false |
| 31015 | fi |
| 31016 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31017 | |
| 31018 | # Work around bugs in pre-3.0 UWIN ksh. |
| 31019 | $as_unset ENV MAIL MAILPATH |
| 31020 | PS1='$ ' |
| 31021 | PS2='> ' |
| 31022 | PS4='+ ' |
| 31023 | |
| 31024 | # NLS nuisances. |
| 31025 | for as_var in \ |
| 31026 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 31027 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 31028 | LC_TELEPHONE LC_TIME |
| 31029 | do |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31030 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31031 | eval $as_var=C; export $as_var |
| 31032 | else |
| 31033 | $as_unset $as_var |
| 31034 | fi |
| 31035 | done |
| 31036 | |
| 31037 | # Required to use basename. |
| 31038 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 31039 | as_expr=expr |
| 31040 | else |
| 31041 | as_expr=false |
| 31042 | fi |
| 31043 | |
| 31044 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 31045 | as_basename=basename |
| 31046 | else |
| 31047 | as_basename=false |
| 31048 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31049 | |
| 31050 | |
| 31051 | # Name of the executable. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31052 | as_me=`$as_basename "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31053 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 31054 | X"$0" : 'X\(//\)$' \| \ |
| 31055 | X"$0" : 'X\(/\)$' \| \ |
| 31056 | . : '\(.\)' 2>/dev/null || |
| 31057 | echo X/"$0" | |
| 31058 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 31059 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 31060 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 31061 | s/.*/./; q'` |
| 31062 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31063 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31064 | # PATH needs CR, and LINENO needs CR and PATH. |
| 31065 | # Avoid depending upon Character Ranges. |
| 31066 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31067 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 31068 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 31069 | as_cr_digits='0123456789' |
| 31070 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 31071 | |
| 31072 | # The user is always right. |
| 31073 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31074 | echo "#! /bin/sh" >conf$$.sh |
| 31075 | echo "exit 0" >>conf$$.sh |
| 31076 | chmod +x conf$$.sh |
| 31077 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31078 | PATH_SEPARATOR=';' |
| 31079 | else |
| 31080 | PATH_SEPARATOR=: |
| 31081 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31082 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31083 | fi |
| 31084 | |
| 31085 | |
| 31086 | as_lineno_1=$LINENO |
| 31087 | as_lineno_2=$LINENO |
| 31088 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 31089 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 31090 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 31091 | # Find who we are. Look in the path if we contain no path at all |
| 31092 | # relative or not. |
| 31093 | case $0 in |
| 31094 | *[\\/]* ) as_myself=$0 ;; |
| 31095 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31096 | for as_dir in $PATH |
| 31097 | do |
| 31098 | IFS=$as_save_IFS |
| 31099 | test -z "$as_dir" && as_dir=. |
| 31100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 31101 | done |
| 31102 | |
| 31103 | ;; |
| 31104 | esac |
| 31105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 31106 | # in which case we are not to be found in the path. |
| 31107 | if test "x$as_myself" = x; then |
| 31108 | as_myself=$0 |
| 31109 | fi |
| 31110 | if test ! -f "$as_myself"; then |
| 31111 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 31112 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 31113 | { (exit 1); exit 1; }; } |
| 31114 | fi |
| 31115 | case $CONFIG_SHELL in |
| 31116 | '') |
| 31117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31118 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 31119 | do |
| 31120 | IFS=$as_save_IFS |
| 31121 | test -z "$as_dir" && as_dir=. |
| 31122 | for as_base in sh bash ksh sh5; do |
| 31123 | case $as_dir in |
| 31124 | /*) |
| 31125 | if ("$as_dir/$as_base" -c ' |
| 31126 | as_lineno_1=$LINENO |
| 31127 | as_lineno_2=$LINENO |
| 31128 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 31129 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 31130 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31131 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 31132 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31133 | CONFIG_SHELL=$as_dir/$as_base |
| 31134 | export CONFIG_SHELL |
| 31135 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 31136 | fi;; |
| 31137 | esac |
| 31138 | done |
| 31139 | done |
| 31140 | ;; |
| 31141 | esac |
| 31142 | |
| 31143 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 31144 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 31145 | # line-number line before each line; the second 'sed' does the real |
| 31146 | # work. The second script uses 'N' to pair each line-number line |
| 31147 | # with the numbered line, and appends trailing '-' during |
| 31148 | # substitution so that $LINENO is not a special case at line end. |
| 31149 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 31150 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 31151 | sed '=' <$as_myself | |
| 31152 | sed ' |
| 31153 | N |
| 31154 | s,$,-, |
| 31155 | : loop |
| 31156 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 31157 | t loop |
| 31158 | s,-$,, |
| 31159 | s,^['$as_cr_digits']*\n,, |
| 31160 | ' >$as_me.lineno && |
| 31161 | chmod +x $as_me.lineno || |
| 31162 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 31163 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 31164 | { (exit 1); exit 1; }; } |
| 31165 | |
| 31166 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 31167 | # (the dirname of $[0] is not the place where we might find the |
| 31168 | # original and so on. Autoconf is especially sensible to this). |
| 31169 | . ./$as_me.lineno |
| 31170 | # Exit status is that of the last command. |
| 31171 | exit |
| 31172 | } |
| 31173 | |
| 31174 | |
| 31175 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 31176 | *c*,-n*) ECHO_N= ECHO_C=' |
| 31177 | ' ECHO_T=' ' ;; |
| 31178 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 31179 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 31180 | esac |
| 31181 | |
| 31182 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 31183 | as_expr=expr |
| 31184 | else |
| 31185 | as_expr=false |
| 31186 | fi |
| 31187 | |
| 31188 | rm -f conf$$ conf$$.exe conf$$.file |
| 31189 | echo >conf$$.file |
| 31190 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 31191 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 31192 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 31193 | if test -f conf$$.exe; then |
| 31194 | # Don't use ln at all; we don't have any links |
| 31195 | as_ln_s='cp -p' |
| 31196 | else |
| 31197 | as_ln_s='ln -s' |
| 31198 | fi |
| 31199 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 31200 | as_ln_s=ln |
| 31201 | else |
| 31202 | as_ln_s='cp -p' |
| 31203 | fi |
| 31204 | rm -f conf$$ conf$$.exe conf$$.file |
| 31205 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31206 | if mkdir -p . 2>/dev/null; then |
| 31207 | as_mkdir_p=: |
| 31208 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31209 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31210 | as_mkdir_p=false |
| 31211 | fi |
| 31212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31213 | as_executable_p="test -f" |
| 31214 | |
| 31215 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31216 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31217 | |
| 31218 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31219 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31220 | |
| 31221 | |
| 31222 | # IFS |
| 31223 | # We need space, tab and new line, in precisely that order. |
| 31224 | as_nl=' |
| 31225 | ' |
| 31226 | IFS=" $as_nl" |
| 31227 | |
| 31228 | # CDPATH. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31229 | $as_unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31230 | |
| 31231 | exec 6>&1 |
| 31232 | |
| 31233 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 31234 | # report actual input values of CONFIG_FILES etc. instead of their |
| 31235 | # values after options handling. Logging --version etc. is OK. |
| 31236 | exec 5>>config.log |
| 31237 | { |
| 31238 | echo |
| 31239 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 31240 | ## Running $as_me. ## |
| 31241 | _ASBOX |
| 31242 | } >&5 |
| 31243 | cat >&5 <<_CSEOF |
| 31244 | |
John Criswell | e250389 | 2005-11-08 21:13:01 +0000 | [diff] [blame] | 31245 | This file was extended by llvm $as_me 1.7cvs, which was |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31246 | generated by GNU Autoconf 2.59. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31247 | |
| 31248 | CONFIG_FILES = $CONFIG_FILES |
| 31249 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 31250 | CONFIG_LINKS = $CONFIG_LINKS |
| 31251 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 31252 | $ $0 $@ |
| 31253 | |
| 31254 | _CSEOF |
| 31255 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 31256 | echo >&5 |
| 31257 | _ACEOF |
| 31258 | |
| 31259 | # Files that config.status was made for. |
| 31260 | if test -n "$ac_config_files"; then |
| 31261 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 31262 | fi |
| 31263 | |
| 31264 | if test -n "$ac_config_headers"; then |
| 31265 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 31266 | fi |
| 31267 | |
| 31268 | if test -n "$ac_config_links"; then |
| 31269 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 31270 | fi |
| 31271 | |
| 31272 | if test -n "$ac_config_commands"; then |
| 31273 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 31274 | fi |
| 31275 | |
| 31276 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31277 | |
| 31278 | ac_cs_usage="\ |
| 31279 | \`$as_me' instantiates files from templates according to the |
| 31280 | current configuration. |
| 31281 | |
| 31282 | Usage: $0 [OPTIONS] [FILE]... |
| 31283 | |
| 31284 | -h, --help print this help, then exit |
| 31285 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31286 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31287 | -d, --debug don't remove temporary files |
| 31288 | --recheck update $as_me by reconfiguring in the same conditions |
| 31289 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31290 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31291 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31292 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31293 | |
| 31294 | Configuration files: |
| 31295 | $config_files |
| 31296 | |
| 31297 | Configuration headers: |
| 31298 | $config_headers |
| 31299 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31300 | Configuration commands: |
| 31301 | $config_commands |
| 31302 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31303 | Report bugs to <bug-autoconf@gnu.org>." |
| 31304 | _ACEOF |
| 31305 | |
| 31306 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31307 | ac_cs_version="\\ |
John Criswell | e250389 | 2005-11-08 21:13:01 +0000 | [diff] [blame] | 31308 | llvm config.status 1.7cvs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31309 | configured by $0, generated by GNU Autoconf 2.59, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31310 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 31311 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31312 | Copyright (C) 2003 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31313 | This config.status script is free software; the Free Software Foundation |
| 31314 | gives unlimited permission to copy, distribute and modify it." |
| 31315 | srcdir=$srcdir |
| 31316 | INSTALL="$INSTALL" |
| 31317 | _ACEOF |
| 31318 | |
| 31319 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31320 | # If no file are specified by the user, then we need to provide default |
| 31321 | # value. By we need to know if files were specified by the user. |
| 31322 | ac_need_defaults=: |
| 31323 | while test $# != 0 |
| 31324 | do |
| 31325 | case $1 in |
| 31326 | --*=*) |
| 31327 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 31328 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31329 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31330 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31331 | -*) |
| 31332 | ac_option=$1 |
| 31333 | ac_optarg=$2 |
| 31334 | ac_shift=shift |
| 31335 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31336 | *) # This is not an option, so the user has probably given explicit |
| 31337 | # arguments. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31338 | ac_option=$1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31339 | ac_need_defaults=false;; |
| 31340 | esac |
| 31341 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31342 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31343 | # Handling of the options. |
| 31344 | _ACEOF |
John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 31345 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31346 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 31347 | ac_cs_recheck=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31348 | --version | --vers* | -V ) |
| 31349 | echo "$ac_cs_version"; exit 0 ;; |
| 31350 | --he | --h) |
| 31351 | # Conflict between --help and --header |
| 31352 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 31353 | Try \`$0 --help' for more information." >&5 |
| 31354 | echo "$as_me: error: ambiguous option: $1 |
| 31355 | Try \`$0 --help' for more information." >&2;} |
| 31356 | { (exit 1); exit 1; }; };; |
| 31357 | --help | --hel | -h ) |
| 31358 | echo "$ac_cs_usage"; exit 0 ;; |
| 31359 | --debug | --d* | -d ) |
| 31360 | debug=: ;; |
| 31361 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31362 | $ac_shift |
| 31363 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31364 | ac_need_defaults=false;; |
| 31365 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31366 | $ac_shift |
| 31367 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31368 | ac_need_defaults=false;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31369 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 31370 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 31371 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31372 | |
| 31373 | # This is an error. |
| 31374 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 31375 | Try \`$0 --help' for more information." >&5 |
| 31376 | echo "$as_me: error: unrecognized option: $1 |
| 31377 | Try \`$0 --help' for more information." >&2;} |
| 31378 | { (exit 1); exit 1; }; } ;; |
| 31379 | |
| 31380 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 31381 | |
| 31382 | esac |
| 31383 | shift |
| 31384 | done |
| 31385 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31386 | ac_configure_extra_args= |
| 31387 | |
| 31388 | if $ac_cs_silent; then |
| 31389 | exec 6>/dev/null |
| 31390 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 31391 | fi |
| 31392 | |
| 31393 | _ACEOF |
| 31394 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31395 | if \$ac_cs_recheck; then |
| 31396 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 31397 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 31398 | fi |
| 31399 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31400 | _ACEOF |
| 31401 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31402 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31403 | # |
| 31404 | # INIT-COMMANDS section. |
| 31405 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31406 | |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31407 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31408 | |
| 31409 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31410 | |
| 31411 | |
| 31412 | |
| 31413 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31414 | for ac_config_target in $ac_config_targets |
| 31415 | do |
| 31416 | case "$ac_config_target" in |
| 31417 | # Handling of arguments. |
| 31418 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31419 | "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 31420 | "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;; |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31421 | "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31422 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 31423 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 31424 | "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31425 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31426 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31427 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 31428 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31429 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 31430 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31431 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 31432 | "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
John Criswell | 5fbb1f8 | 2004-09-24 13:28:51 +0000 | [diff] [blame] | 31433 | "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31434 | "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 31435 | "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31436 | "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31437 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 31438 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 31439 | { (exit 1); exit 1; }; };; |
| 31440 | esac |
| 31441 | done |
| 31442 | |
| 31443 | # If the user did not use the arguments to specify the items to instantiate, |
| 31444 | # then the envvar interface is used. Set only those that are not. |
| 31445 | # We use the long form for the default assignment because of an extremely |
| 31446 | # bizarre bug on SunOS 4.1.3. |
| 31447 | if $ac_need_defaults; then |
| 31448 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 31449 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31450 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31451 | fi |
| 31452 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31453 | # Have a temporary directory for convenience. Make it in the build tree |
| 31454 | # simply because there is no reason to put it here, and in addition, |
| 31455 | # creating and moving files from /tmp can sometimes cause problems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31456 | # Create a temporary directory, and hook for its removal unless debugging. |
| 31457 | $debug || |
| 31458 | { |
| 31459 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 31460 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 31461 | } |
| 31462 | |
| 31463 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31464 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31465 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31466 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31467 | test -n "$tmp" && test -d "$tmp" |
| 31468 | } || |
| 31469 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31470 | tmp=./confstat$$-$RANDOM |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31471 | (umask 077 && mkdir $tmp) |
| 31472 | } || |
| 31473 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31474 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31475 | { (exit 1); exit 1; } |
| 31476 | } |
| 31477 | |
| 31478 | _ACEOF |
| 31479 | |
| 31480 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31481 | |
| 31482 | # |
| 31483 | # CONFIG_FILES section. |
| 31484 | # |
| 31485 | |
| 31486 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 31487 | # This happens for instance when ./config.status config.h |
| 31488 | if test -n "\$CONFIG_FILES"; then |
| 31489 | # Protect against being on the right side of a sed subst in config.status. |
| 31490 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 31491 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 31492 | s,@SHELL@,$SHELL,;t t |
| 31493 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 31494 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 31495 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 31496 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 31497 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 31498 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 31499 | s,@exec_prefix@,$exec_prefix,;t t |
| 31500 | s,@prefix@,$prefix,;t t |
| 31501 | s,@program_transform_name@,$program_transform_name,;t t |
| 31502 | s,@bindir@,$bindir,;t t |
| 31503 | s,@sbindir@,$sbindir,;t t |
| 31504 | s,@libexecdir@,$libexecdir,;t t |
| 31505 | s,@datadir@,$datadir,;t t |
| 31506 | s,@sysconfdir@,$sysconfdir,;t t |
| 31507 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 31508 | s,@localstatedir@,$localstatedir,;t t |
| 31509 | s,@libdir@,$libdir,;t t |
| 31510 | s,@includedir@,$includedir,;t t |
| 31511 | s,@oldincludedir@,$oldincludedir,;t t |
| 31512 | s,@infodir@,$infodir,;t t |
| 31513 | s,@mandir@,$mandir,;t t |
| 31514 | s,@build_alias@,$build_alias,;t t |
| 31515 | s,@host_alias@,$host_alias,;t t |
| 31516 | s,@target_alias@,$target_alias,;t t |
| 31517 | s,@DEFS@,$DEFS,;t t |
| 31518 | s,@ECHO_C@,$ECHO_C,;t t |
| 31519 | s,@ECHO_N@,$ECHO_N,;t t |
| 31520 | s,@ECHO_T@,$ECHO_T,;t t |
| 31521 | s,@LIBS@,$LIBS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31522 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31523 | s,@subdirs@,$subdirs,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31524 | s,@build@,$build,;t t |
| 31525 | s,@build_cpu@,$build_cpu,;t t |
| 31526 | s,@build_vendor@,$build_vendor,;t t |
| 31527 | s,@build_os@,$build_os,;t t |
| 31528 | s,@host@,$host,;t t |
| 31529 | s,@host_cpu@,$host_cpu,;t t |
| 31530 | s,@host_vendor@,$host_vendor,;t t |
| 31531 | s,@host_os@,$host_os,;t t |
| 31532 | s,@target@,$target,;t t |
| 31533 | s,@target_cpu@,$target_cpu,;t t |
| 31534 | s,@target_vendor@,$target_vendor,;t t |
| 31535 | s,@target_os@,$target_os,;t t |
| 31536 | s,@OS@,$OS,;t t |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 31537 | s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t |
| 31538 | s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 31539 | s,@ARCH@,$ARCH,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31540 | s,@ENDIAN@,$ENDIAN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31541 | s,@CC@,$CC,;t t |
| 31542 | s,@CFLAGS@,$CFLAGS,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31543 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 31544 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31545 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31546 | s,@EXEEXT@,$EXEEXT,;t t |
| 31547 | s,@OBJEXT@,$OBJEXT,;t t |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 31548 | s,@CVSBUILD@,$CVSBUILD,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31549 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 31550 | s,@ENABLE_ASSERTIONS@,$ENABLE_ASSERTIONS,;t t |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 31551 | s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31552 | s,@JIT@,$JIT,;t t |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 31553 | s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31554 | s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 31555 | s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t |
Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 31556 | s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31557 | s,@CPP@,$CPP,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31558 | s,@CXX@,$CXX,;t t |
| 31559 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 31560 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31561 | s,@LEX@,$LEX,;t t |
| 31562 | s,@LEXLIB@,$LEXLIB,;t t |
| 31563 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 31564 | s,@FLEX@,$FLEX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31565 | s,@YACC@,$YACC,;t t |
Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 31566 | s,@BISON@,$BISON,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31567 | s,@ifGNUmake@,$ifGNUmake,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31568 | s,@LN_S@,$LN_S,;t t |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 31569 | s,@CMP@,$CMP,;t t |
| 31570 | s,@CP@,$CP,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31571 | s,@DATE@,$DATE,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31572 | s,@FIND@,$FIND,;t t |
| 31573 | s,@GREP@,$GREP,;t t |
| 31574 | s,@MKDIR@,$MKDIR,;t t |
| 31575 | s,@MV@,$MV,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31576 | s,@RANLIB@,$RANLIB,;t t |
| 31577 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31578 | s,@RM@,$RM,;t t |
| 31579 | s,@SED@,$SED,;t t |
Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 31580 | s,@TAR@,$TAR,;t t |
Reid Spencer | 8a2246f | 2005-07-13 03:20:14 +0000 | [diff] [blame] | 31581 | s,@GRAPHVIZ@,$GRAPHVIZ,;t t |
Reid Spencer | be13028 | 2005-07-14 05:19:12 +0000 | [diff] [blame] | 31582 | s,@GV@,$GV,;t t |
Reid Spencer | b195d9d | 2006-03-23 23:21:29 +0000 | [diff] [blame] | 31583 | s,@PERL@,$PERL,;t t |
| 31584 | s,@HAVE_PERL@,$HAVE_PERL,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31585 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 31586 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 31587 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31588 | s,@BZIP2@,$BZIP2,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31589 | s,@DOT@,$DOT,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31590 | s,@DOXYGEN@,$DOXYGEN,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31591 | s,@ETAGS@,$ETAGS,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31592 | s,@GROFF@,$GROFF,;t t |
| 31593 | s,@GZIP@,$GZIP,;t t |
| 31594 | s,@POD2HTML@,$POD2HTML,;t t |
| 31595 | s,@POD2MAN@,$POD2MAN,;t t |
Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 31596 | s,@RUNTEST@,$RUNTEST,;t t |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 31597 | s,@TCLSH@,$TCLSH,;t t |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31598 | s,@ZIP@,$ZIP,;t t |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31599 | s,@EGREP@,$EGREP,;t t |
| 31600 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t |
| 31601 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t |
| 31602 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t |
| 31603 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t |
| 31604 | s,@LIBADD_DL@,$LIBADD_DL,;t t |
| 31605 | s,@ECHO@,$ECHO,;t t |
| 31606 | s,@AR@,$AR,;t t |
| 31607 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 31608 | s,@STRIP@,$STRIP,;t t |
| 31609 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 31610 | s,@CXXCPP@,$CXXCPP,;t t |
| 31611 | s,@F77@,$F77,;t t |
| 31612 | s,@FFLAGS@,$FFLAGS,;t t |
| 31613 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
| 31614 | s,@LIBTOOL@,$LIBTOOL,;t t |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31615 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31616 | s,@LLVMGCC@,$LLVMGCC,;t t |
| 31617 | s,@LLVMGXX@,$LLVMGXX,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31618 | s,@ALLOCA@,$ALLOCA,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31619 | s,@MMAP_FILE@,$MMAP_FILE,;t t |
Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 31620 | s,@LLVMCC1@,$LLVMCC1,;t t |
| 31621 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31622 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 31623 | s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t |
| 31624 | s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 31625 | s,@SHLIBEXT@,$SHLIBEXT,;t t |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31626 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t |
| 31627 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t |
| 31628 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t |
| 31629 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t |
| 31630 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t |
| 31631 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t |
| 31632 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t |
| 31633 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t |
| 31634 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t |
| 31635 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 31636 | s,@LIBOBJS@,$LIBOBJS,;t t |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31637 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31638 | CEOF |
| 31639 | |
| 31640 | _ACEOF |
| 31641 | |
| 31642 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31643 | # Split the substitutions into bite-sized pieces for seds with |
| 31644 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 31645 | ac_max_sed_lines=48 |
| 31646 | ac_sed_frag=1 # Number of current file. |
| 31647 | ac_beg=1 # First line for current file. |
| 31648 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 31649 | ac_more_lines=: |
| 31650 | ac_sed_cmds= |
| 31651 | while $ac_more_lines; do |
| 31652 | if test $ac_beg -gt 1; then |
| 31653 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 31654 | else |
| 31655 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 31656 | fi |
| 31657 | if test ! -s $tmp/subs.frag; then |
| 31658 | ac_more_lines=false |
| 31659 | else |
| 31660 | # The purpose of the label and of the branching condition is to |
| 31661 | # speed up the sed processing (if there are no `@' at all, there |
| 31662 | # is no need to browse any of the substitutions). |
| 31663 | # These are the two extra sed commands mentioned above. |
| 31664 | (echo ':t |
| 31665 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 31666 | if test -z "$ac_sed_cmds"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31667 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31668 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31669 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31670 | fi |
| 31671 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 31672 | ac_beg=$ac_end |
| 31673 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 31674 | fi |
| 31675 | done |
| 31676 | if test -z "$ac_sed_cmds"; then |
| 31677 | ac_sed_cmds=cat |
| 31678 | fi |
| 31679 | fi # test -n "$CONFIG_FILES" |
| 31680 | |
| 31681 | _ACEOF |
| 31682 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31683 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 31684 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 31685 | case $ac_file in |
| 31686 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31687 | cat >$tmp/stdin |
| 31688 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 31689 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31690 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31691 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31692 | * ) ac_file_in=$ac_file.in ;; |
| 31693 | esac |
| 31694 | |
| 31695 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 31696 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 31697 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31698 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 31699 | X"$ac_file" : 'X\(//\)$' \| \ |
| 31700 | X"$ac_file" : 'X\(/\)' \| \ |
| 31701 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31702 | echo X"$ac_file" | |
| 31703 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31704 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31705 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31706 | /^X\(\/\).*/{ s//\1/; q; } |
| 31707 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31708 | { if $as_mkdir_p; then |
| 31709 | mkdir -p "$ac_dir" |
| 31710 | else |
| 31711 | as_dir="$ac_dir" |
| 31712 | as_dirs= |
| 31713 | while test ! -d "$as_dir"; do |
| 31714 | as_dirs="$as_dir $as_dirs" |
| 31715 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 31716 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31717 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31718 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31719 | X"$as_dir" : 'X\(/\)' \| \ |
| 31720 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31721 | echo X"$as_dir" | |
| 31722 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 31723 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 31724 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 31725 | /^X\(\/\).*/{ s//\1/; q; } |
| 31726 | s/.*/./; q'` |
| 31727 | done |
| 31728 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 31729 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 31730 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 31731 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31732 | |
| 31733 | ac_builddir=. |
| 31734 | |
| 31735 | if test "$ac_dir" != .; then |
| 31736 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 31737 | # A "../" for each directory in $ac_dir_suffix. |
| 31738 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 31739 | else |
| 31740 | ac_dir_suffix= ac_top_builddir= |
| 31741 | fi |
| 31742 | |
| 31743 | case $srcdir in |
| 31744 | .) # No --srcdir option. We are building in place. |
| 31745 | ac_srcdir=. |
| 31746 | if test -z "$ac_top_builddir"; then |
| 31747 | ac_top_srcdir=. |
| 31748 | else |
| 31749 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 31750 | fi ;; |
| 31751 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 31752 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 31753 | ac_top_srcdir=$srcdir ;; |
| 31754 | *) # Relative path. |
| 31755 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 31756 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 31757 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31758 | |
| 31759 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 31760 | # the directories may not exist. |
| 31761 | case `pwd` in |
| 31762 | .) ac_abs_builddir="$ac_dir";; |
| 31763 | *) |
| 31764 | case "$ac_dir" in |
| 31765 | .) ac_abs_builddir=`pwd`;; |
| 31766 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 31767 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 31768 | esac;; |
| 31769 | esac |
| 31770 | case $ac_abs_builddir in |
| 31771 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31772 | *) |
| 31773 | case ${ac_top_builddir}. in |
| 31774 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 31775 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 31776 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 31777 | esac;; |
| 31778 | esac |
| 31779 | case $ac_abs_builddir in |
| 31780 | .) ac_abs_srcdir=$ac_srcdir;; |
| 31781 | *) |
| 31782 | case $ac_srcdir in |
| 31783 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 31784 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 31785 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 31786 | esac;; |
| 31787 | esac |
| 31788 | case $ac_abs_builddir in |
| 31789 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31790 | *) |
| 31791 | case $ac_top_srcdir in |
| 31792 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 31793 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 31794 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 31795 | esac;; |
| 31796 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31797 | |
| 31798 | |
| 31799 | case $INSTALL in |
| 31800 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 31801 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 31802 | esac |
| 31803 | |
| 31804 | if test x"$ac_file" != x-; then |
| 31805 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 31806 | echo "$as_me: creating $ac_file" >&6;} |
| 31807 | rm -f "$ac_file" |
| 31808 | fi |
| 31809 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 31810 | # use $as_me), people would be surprised to read: |
| 31811 | # /* config.h. Generated by config.status. */ |
| 31812 | if test x"$ac_file" = x-; then |
| 31813 | configure_input= |
| 31814 | else |
| 31815 | configure_input="$ac_file. " |
| 31816 | fi |
| 31817 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31818 | sed 's,.*/,,'` by configure." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31819 | |
| 31820 | # First look for the input files in the build tree, otherwise in the |
| 31821 | # src tree. |
| 31822 | ac_file_inputs=`IFS=: |
| 31823 | for f in $ac_file_in; do |
| 31824 | case $f in |
| 31825 | -) echo $tmp/stdin ;; |
| 31826 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31827 | # Absolute (can't be DOS-style, as IFS=:) |
| 31828 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31829 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31830 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31831 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31832 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31833 | if test -f "$f"; then |
| 31834 | # Build tree |
| 31835 | echo "$f" |
| 31836 | elif test -f "$srcdir/$f"; then |
| 31837 | # Source tree |
| 31838 | echo "$srcdir/$f" |
| 31839 | else |
| 31840 | # /dev/null tree |
| 31841 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31842 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31843 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31844 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31845 | esac |
| 31846 | done` || { (exit 1); exit 1; } |
| 31847 | _ACEOF |
| 31848 | cat >>$CONFIG_STATUS <<_ACEOF |
| 31849 | sed "$ac_vpsub |
| 31850 | $extrasub |
| 31851 | _ACEOF |
| 31852 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31853 | :t |
| 31854 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 31855 | s,@configure_input@,$configure_input,;t t |
| 31856 | s,@srcdir@,$ac_srcdir,;t t |
| 31857 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 31858 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 31859 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 31860 | s,@builddir@,$ac_builddir,;t t |
| 31861 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 31862 | s,@top_builddir@,$ac_top_builddir,;t t |
| 31863 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 31864 | s,@INSTALL@,$ac_INSTALL,;t t |
| 31865 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 31866 | rm -f $tmp/stdin |
| 31867 | if test x"$ac_file" != x-; then |
| 31868 | mv $tmp/out $ac_file |
| 31869 | else |
| 31870 | cat $tmp/out |
| 31871 | rm -f $tmp/out |
| 31872 | fi |
| 31873 | |
| 31874 | done |
| 31875 | _ACEOF |
| 31876 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 31877 | |
| 31878 | # |
| 31879 | # CONFIG_HEADER section. |
| 31880 | # |
| 31881 | |
| 31882 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 31883 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 31884 | # |
| 31885 | # ac_d sets the value in "#define NAME VALUE" lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31886 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 31887 | ac_dB='[ ].*$,\1#\2' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31888 | ac_dC=' ' |
| 31889 | ac_dD=',;t' |
| 31890 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31891 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31892 | ac_uB='$,\1#\2define\3' |
| 31893 | ac_uC=' ' |
| 31894 | ac_uD=',;t' |
| 31895 | |
| 31896 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 31897 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 31898 | case $ac_file in |
| 31899 | - | *:- | *:-:* ) # input from stdin |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31900 | cat >$tmp/stdin |
| 31901 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 31902 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31903 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31904 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31905 | * ) ac_file_in=$ac_file.in ;; |
| 31906 | esac |
| 31907 | |
| 31908 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 31909 | echo "$as_me: creating $ac_file" >&6;} |
| 31910 | |
| 31911 | # First look for the input files in the build tree, otherwise in the |
| 31912 | # src tree. |
| 31913 | ac_file_inputs=`IFS=: |
| 31914 | for f in $ac_file_in; do |
| 31915 | case $f in |
| 31916 | -) echo $tmp/stdin ;; |
| 31917 | [\\/$]*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31918 | # Absolute (can't be DOS-style, as IFS=:) |
| 31919 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31920 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31921 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31922 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 31923 | echo "$f";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31924 | *) # Relative |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31925 | if test -f "$f"; then |
| 31926 | # Build tree |
| 31927 | echo "$f" |
| 31928 | elif test -f "$srcdir/$f"; then |
| 31929 | # Source tree |
| 31930 | echo "$srcdir/$f" |
| 31931 | else |
| 31932 | # /dev/null tree |
| 31933 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31934 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 31935 | { (exit 1); exit 1; }; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31936 | fi;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31937 | esac |
| 31938 | done` || { (exit 1); exit 1; } |
| 31939 | # Remove the trailing spaces. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31940 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31941 | |
| 31942 | _ACEOF |
| 31943 | |
| 31944 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 31945 | # `conftest.undefs', that substitutes the proper values into |
| 31946 | # config.h.in to produce config.h. The first handles `#define' |
| 31947 | # templates, and the second `#undef' templates. |
| 31948 | # And first: Protect against being on the right side of a sed subst in |
| 31949 | # config.status. Protect against being in an unquoted here document |
| 31950 | # in config.status. |
| 31951 | rm -f conftest.defines conftest.undefs |
| 31952 | # Using a here document instead of a string reduces the quoting nightmare. |
| 31953 | # Putting comments in sed scripts is not portable. |
| 31954 | # |
| 31955 | # `end' is used to avoid that the second main sed command (meant for |
| 31956 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 31957 | # See the Autoconf documentation for `clear'. |
| 31958 | cat >confdef2sed.sed <<\_ACEOF |
| 31959 | s/[\\&,]/\\&/g |
| 31960 | s,[\\$`],\\&,g |
| 31961 | t clear |
| 31962 | : clear |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31963 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31964 | t end |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31965 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31966 | : end |
| 31967 | _ACEOF |
| 31968 | # If some macros were called several times there might be several times |
| 31969 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 31970 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 31971 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 31972 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 31973 | rm -f confdef2sed.sed |
| 31974 | |
| 31975 | # This sed command replaces #undef with comments. This is necessary, for |
| 31976 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 31977 | # on some systems where configure will not decide to define it. |
| 31978 | cat >>conftest.undefs <<\_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31979 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31980 | _ACEOF |
| 31981 | |
| 31982 | # Break up conftest.defines because some shells have a limit on the size |
| 31983 | # of here documents, and old seds have small limits too (100 cmds). |
| 31984 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31985 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31986 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 31987 | echo ' :' >>$CONFIG_STATUS |
| 31988 | rm -f conftest.tail |
| 31989 | while grep . conftest.defines >/dev/null |
| 31990 | do |
| 31991 | # Write a limited-size here document to $tmp/defines.sed. |
| 31992 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 31993 | # Speed up: don't consider the non `#define' lines. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31994 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31995 | # Work around the forget-to-reset-the-flag bug. |
| 31996 | echo 't clr' >>$CONFIG_STATUS |
| 31997 | echo ': clr' >>$CONFIG_STATUS |
| 31998 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 31999 | echo 'CEOF |
| 32000 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 32001 | rm -f $tmp/in |
| 32002 | mv $tmp/out $tmp/in |
| 32003 | ' >>$CONFIG_STATUS |
| 32004 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 32005 | rm -f conftest.defines |
| 32006 | mv conftest.tail conftest.defines |
| 32007 | done |
| 32008 | rm -f conftest.defines |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32009 | echo ' fi # grep' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32010 | echo >>$CONFIG_STATUS |
| 32011 | |
| 32012 | # Break up conftest.undefs because some shells have a limit on the size |
| 32013 | # of here documents, and old seds have small limits too (100 cmds). |
| 32014 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 32015 | rm -f conftest.tail |
| 32016 | while grep . conftest.undefs >/dev/null |
| 32017 | do |
| 32018 | # Write a limited-size here document to $tmp/undefs.sed. |
| 32019 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 32020 | # Speed up: don't consider the non `#undef' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32021 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32022 | # Work around the forget-to-reset-the-flag bug. |
| 32023 | echo 't clr' >>$CONFIG_STATUS |
| 32024 | echo ': clr' >>$CONFIG_STATUS |
| 32025 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 32026 | echo 'CEOF |
| 32027 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 32028 | rm -f $tmp/in |
| 32029 | mv $tmp/out $tmp/in |
| 32030 | ' >>$CONFIG_STATUS |
| 32031 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 32032 | rm -f conftest.undefs |
| 32033 | mv conftest.tail conftest.undefs |
| 32034 | done |
| 32035 | rm -f conftest.undefs |
| 32036 | |
| 32037 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32038 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 32039 | # use $as_me), people would be surprised to read: |
| 32040 | # /* config.h. Generated by config.status. */ |
| 32041 | if test x"$ac_file" = x-; then |
| 32042 | echo "/* Generated by configure. */" >$tmp/config.h |
| 32043 | else |
| 32044 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 32045 | fi |
| 32046 | cat $tmp/in >>$tmp/config.h |
| 32047 | rm -f $tmp/in |
| 32048 | if test x"$ac_file" != x-; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32049 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32050 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 32051 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 32052 | else |
| 32053 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 32054 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32055 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 32056 | X"$ac_file" : 'X\(//\)$' \| \ |
| 32057 | X"$ac_file" : 'X\(/\)' \| \ |
| 32058 | . : '\(.\)' 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32059 | echo X"$ac_file" | |
| 32060 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32061 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32062 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32063 | /^X\(\/\).*/{ s//\1/; q; } |
| 32064 | s/.*/./; q'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32065 | { if $as_mkdir_p; then |
| 32066 | mkdir -p "$ac_dir" |
| 32067 | else |
| 32068 | as_dir="$ac_dir" |
| 32069 | as_dirs= |
| 32070 | while test ! -d "$as_dir"; do |
| 32071 | as_dirs="$as_dir $as_dirs" |
| 32072 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 32073 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32074 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 32075 | X"$as_dir" : 'X\(//\)$' \| \ |
| 32076 | X"$as_dir" : 'X\(/\)' \| \ |
| 32077 | . : '\(.\)' 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32078 | echo X"$as_dir" | |
| 32079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32080 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32081 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32082 | /^X\(\/\).*/{ s//\1/; q; } |
| 32083 | s/.*/./; q'` |
| 32084 | done |
| 32085 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 32086 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 32087 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 32088 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32089 | |
| 32090 | rm -f $ac_file |
| 32091 | mv $tmp/config.h $ac_file |
| 32092 | fi |
| 32093 | else |
| 32094 | cat $tmp/config.h |
| 32095 | rm -f $tmp/config.h |
| 32096 | fi |
| 32097 | done |
| 32098 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32099 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32100 | |
| 32101 | # |
| 32102 | # CONFIG_COMMANDS section. |
| 32103 | # |
| 32104 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 32105 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 32106 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 32107 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 32108 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32109 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 32110 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 32111 | X"$ac_dest" : 'X\(/\)' \| \ |
| 32112 | . : '\(.\)' 2>/dev/null || |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32113 | echo X"$ac_dest" | |
| 32114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32115 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32116 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32117 | /^X\(\/\).*/{ s//\1/; q; } |
| 32118 | s/.*/./; q'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32119 | { if $as_mkdir_p; then |
| 32120 | mkdir -p "$ac_dir" |
| 32121 | else |
| 32122 | as_dir="$ac_dir" |
| 32123 | as_dirs= |
| 32124 | while test ! -d "$as_dir"; do |
| 32125 | as_dirs="$as_dir $as_dirs" |
| 32126 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 32127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32128 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 32129 | X"$as_dir" : 'X\(//\)$' \| \ |
| 32130 | X"$as_dir" : 'X\(/\)' \| \ |
| 32131 | . : '\(.\)' 2>/dev/null || |
| 32132 | echo X"$as_dir" | |
| 32133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32134 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32135 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32136 | /^X\(\/\).*/{ s//\1/; q; } |
| 32137 | s/.*/./; q'` |
| 32138 | done |
| 32139 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 32140 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 32141 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 32142 | { (exit 1); exit 1; }; }; } |
| 32143 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32144 | ac_builddir=. |
| 32145 | |
| 32146 | if test "$ac_dir" != .; then |
| 32147 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 32148 | # A "../" for each directory in $ac_dir_suffix. |
| 32149 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 32150 | else |
| 32151 | ac_dir_suffix= ac_top_builddir= |
| 32152 | fi |
| 32153 | |
| 32154 | case $srcdir in |
| 32155 | .) # No --srcdir option. We are building in place. |
| 32156 | ac_srcdir=. |
| 32157 | if test -z "$ac_top_builddir"; then |
| 32158 | ac_top_srcdir=. |
| 32159 | else |
| 32160 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 32161 | fi ;; |
| 32162 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 32163 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32164 | ac_top_srcdir=$srcdir ;; |
| 32165 | *) # Relative path. |
| 32166 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 32167 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 32168 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32169 | |
| 32170 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 32171 | # the directories may not exist. |
| 32172 | case `pwd` in |
| 32173 | .) ac_abs_builddir="$ac_dir";; |
| 32174 | *) |
| 32175 | case "$ac_dir" in |
| 32176 | .) ac_abs_builddir=`pwd`;; |
| 32177 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 32178 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 32179 | esac;; |
| 32180 | esac |
| 32181 | case $ac_abs_builddir in |
| 32182 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32183 | *) |
| 32184 | case ${ac_top_builddir}. in |
| 32185 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 32186 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32187 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 32188 | esac;; |
| 32189 | esac |
| 32190 | case $ac_abs_builddir in |
| 32191 | .) ac_abs_srcdir=$ac_srcdir;; |
| 32192 | *) |
| 32193 | case $ac_srcdir in |
| 32194 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 32195 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 32196 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 32197 | esac;; |
| 32198 | esac |
| 32199 | case $ac_abs_builddir in |
| 32200 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32201 | *) |
| 32202 | case $ac_top_srcdir in |
| 32203 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 32204 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32205 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 32206 | esac;; |
| 32207 | esac |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32208 | |
| 32209 | |
| 32210 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 32211 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 32212 | case $ac_dest in |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 32213 | Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 32214 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 32215 | Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 32216 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 32217 | examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 32218 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 32219 | lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 32220 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 32221 | runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 32222 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
| 32223 | test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 32224 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 32225 | test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 32226 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 32227 | tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 32228 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 32229 | utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 32230 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 32231 | projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 32232 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32233 | esac |
| 32234 | done |
| 32235 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32236 | |
| 32237 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32238 | |
| 32239 | { (exit 0); exit 0; } |
| 32240 | _ACEOF |
| 32241 | chmod +x $CONFIG_STATUS |
| 32242 | ac_clean_files=$ac_clean_files_save |
| 32243 | |
| 32244 | |
| 32245 | # configure is writing to config.log, and then calls config.status. |
| 32246 | # config.status does its own redirection, appending to config.log. |
| 32247 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 32248 | # by configure, so config.status won't be able to write to it; its |
| 32249 | # output is simply discarded. So we exec the FD to /dev/null, |
| 32250 | # effectively closing config.log, so it can be properly (re)opened and |
| 32251 | # appended to by config.status. When coming back to configure, we |
| 32252 | # need to make the FD available again. |
| 32253 | if test "$no_create" != yes; then |
| 32254 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32255 | ac_config_status_args= |
| 32256 | test "$silent" = yes && |
| 32257 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32258 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32259 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32260 | exec 5>>config.log |
| 32261 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 32262 | # would make configure fail if this is the last instruction. |
| 32263 | $ac_cs_success || { (exit 1); exit 1; } |
| 32264 | fi |
| 32265 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32266 | # |
| 32267 | # CONFIG_SUBDIRS section. |
| 32268 | # |
| 32269 | if test "$no_recursion" != yes; then |
| 32270 | |
| 32271 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 32272 | ac_sub_configure_args= |
| 32273 | ac_prev= |
| 32274 | for ac_arg in $ac_configure_args; do |
| 32275 | if test -n "$ac_prev"; then |
| 32276 | ac_prev= |
| 32277 | continue |
| 32278 | fi |
| 32279 | case $ac_arg in |
| 32280 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 32281 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 32282 | ac_prev=cache_file ;; |
| 32283 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 32284 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 32285 | | --c=*) |
| 32286 | ;; |
| 32287 | --config-cache | -C) |
| 32288 | ;; |
| 32289 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 32290 | ac_prev=srcdir ;; |
| 32291 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 32292 | ;; |
| 32293 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 32294 | ac_prev=prefix ;; |
| 32295 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 32296 | ;; |
| 32297 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 32298 | esac |
| 32299 | done |
| 32300 | |
| 32301 | # Always prepend --prefix to ensure using the same prefix |
| 32302 | # in subdir configurations. |
| 32303 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 32304 | |
| 32305 | ac_popdir=`pwd` |
| 32306 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 32307 | |
| 32308 | # Do not complain, so a configure script can configure whichever |
| 32309 | # parts of a large source tree are present. |
| 32310 | test -d $srcdir/$ac_dir || continue |
| 32311 | |
| 32312 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 32313 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 32314 | { if $as_mkdir_p; then |
| 32315 | mkdir -p "$ac_dir" |
| 32316 | else |
| 32317 | as_dir="$ac_dir" |
| 32318 | as_dirs= |
| 32319 | while test ! -d "$as_dir"; do |
| 32320 | as_dirs="$as_dir $as_dirs" |
| 32321 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 32322 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32323 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 32324 | X"$as_dir" : 'X\(//\)$' \| \ |
| 32325 | X"$as_dir" : 'X\(/\)' \| \ |
| 32326 | . : '\(.\)' 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32327 | echo X"$as_dir" | |
| 32328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 32329 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 32330 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 32331 | /^X\(\/\).*/{ s//\1/; q; } |
| 32332 | s/.*/./; q'` |
| 32333 | done |
| 32334 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 32335 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 32336 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 32337 | { (exit 1); exit 1; }; }; } |
| 32338 | |
| 32339 | ac_builddir=. |
| 32340 | |
| 32341 | if test "$ac_dir" != .; then |
| 32342 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 32343 | # A "../" for each directory in $ac_dir_suffix. |
| 32344 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 32345 | else |
| 32346 | ac_dir_suffix= ac_top_builddir= |
| 32347 | fi |
| 32348 | |
| 32349 | case $srcdir in |
| 32350 | .) # No --srcdir option. We are building in place. |
| 32351 | ac_srcdir=. |
| 32352 | if test -z "$ac_top_builddir"; then |
| 32353 | ac_top_srcdir=. |
| 32354 | else |
| 32355 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 32356 | fi ;; |
| 32357 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 32358 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32359 | ac_top_srcdir=$srcdir ;; |
| 32360 | *) # Relative path. |
| 32361 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 32362 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 32363 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32364 | |
| 32365 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 32366 | # the directories may not exist. |
| 32367 | case `pwd` in |
| 32368 | .) ac_abs_builddir="$ac_dir";; |
| 32369 | *) |
| 32370 | case "$ac_dir" in |
| 32371 | .) ac_abs_builddir=`pwd`;; |
| 32372 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 32373 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 32374 | esac;; |
| 32375 | esac |
| 32376 | case $ac_abs_builddir in |
| 32377 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32378 | *) |
| 32379 | case ${ac_top_builddir}. in |
| 32380 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 32381 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 32382 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 32383 | esac;; |
| 32384 | esac |
| 32385 | case $ac_abs_builddir in |
| 32386 | .) ac_abs_srcdir=$ac_srcdir;; |
| 32387 | *) |
| 32388 | case $ac_srcdir in |
| 32389 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 32390 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 32391 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 32392 | esac;; |
| 32393 | esac |
| 32394 | case $ac_abs_builddir in |
| 32395 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32396 | *) |
| 32397 | case $ac_top_srcdir in |
| 32398 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 32399 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 32400 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 32401 | esac;; |
| 32402 | esac |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32403 | |
| 32404 | |
| 32405 | cd $ac_dir |
| 32406 | |
| 32407 | # Check for guested configure; otherwise get Cygnus style configure. |
| 32408 | if test -f $ac_srcdir/configure.gnu; then |
| 32409 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 32410 | elif test -f $ac_srcdir/configure; then |
| 32411 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 32412 | elif test -f $ac_srcdir/configure.in; then |
| 32413 | ac_sub_configure=$ac_configure |
| 32414 | else |
| 32415 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 32416 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 32417 | ac_sub_configure= |
| 32418 | fi |
| 32419 | |
| 32420 | # The recursion is here. |
| 32421 | if test -n "$ac_sub_configure"; then |
| 32422 | # Make the cache file name correct relative to the subdirectory. |
| 32423 | case $cache_file in |
| 32424 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 32425 | *) # Relative path. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32426 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32427 | esac |
| 32428 | |
| 32429 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 32430 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 32431 | # The eval makes quoting arguments work. |
| 32432 | eval $ac_sub_configure $ac_sub_configure_args \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32433 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 32434 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 32435 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 32436 | { (exit 1); exit 1; }; } |
| 32437 | fi |
| 32438 | |
| 32439 | cd $ac_popdir |
| 32440 | done |
| 32441 | fi |
| 32442 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 32443 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32444 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 32445 | { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 |
| 32446 | echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;} |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 32447 | { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 |
| 32448 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} |
| 32449 | { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 |
| 32450 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} |
| 32451 | { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 |
| 32452 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} |
| 32453 | { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 |
| 32454 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 32455 | fi |