| 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. | 
| Reid Spencer | 78ba11d | 2005-02-16 16:21:00 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for llvm 1.5cvs. | 
| 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 | # | 
|  | 11 | # $LLVM_COPYRIGHT | 
| 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-' | 
| Reid Spencer | 78ba11d | 2005-02-16 16:21:00 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.5cvs' | 
|  | 429 | PACKAGE_STRING='llvm 1.5cvs' | 
| 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 | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 441 | # Factoring default headers for most tests. | 
|  | 442 | ac_includes_default="\ | 
|  | 443 | #include <stdio.h> | 
|  | 444 | #if HAVE_SYS_TYPES_H | 
|  | 445 | # include <sys/types.h> | 
|  | 446 | #endif | 
|  | 447 | #if HAVE_SYS_STAT_H | 
|  | 448 | # include <sys/stat.h> | 
|  | 449 | #endif | 
|  | 450 | #if STDC_HEADERS | 
|  | 451 | # include <stdlib.h> | 
|  | 452 | # include <stddef.h> | 
|  | 453 | #else | 
|  | 454 | # if HAVE_STDLIB_H | 
|  | 455 | #  include <stdlib.h> | 
|  | 456 | # endif | 
|  | 457 | #endif | 
|  | 458 | #if HAVE_STRING_H | 
|  | 459 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
|  | 460 | #  include <memory.h> | 
|  | 461 | # endif | 
|  | 462 | # include <string.h> | 
|  | 463 | #endif | 
|  | 464 | #if HAVE_STRINGS_H | 
|  | 465 | # include <strings.h> | 
|  | 466 | #endif | 
|  | 467 | #if HAVE_INTTYPES_H | 
|  | 468 | # include <inttypes.h> | 
|  | 469 | #else | 
|  | 470 | # if HAVE_STDINT_H | 
|  | 471 | #  include <stdint.h> | 
|  | 472 | # endif | 
|  | 473 | #endif | 
|  | 474 | #if HAVE_UNISTD_H | 
|  | 475 | # include <unistd.h> | 
|  | 476 | #endif" | 
|  | 477 |  | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 478 | 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 ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN 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 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 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] | 479 | ac_subst_files='' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 480 |  | 
|  | 481 | # Initialize some variables set by options. | 
|  | 482 | ac_init_help= | 
|  | 483 | ac_init_version=false | 
|  | 484 | # The variables have the same names as the options, with | 
|  | 485 | # dashes changed to underlines. | 
|  | 486 | cache_file=/dev/null | 
|  | 487 | exec_prefix=NONE | 
|  | 488 | no_create= | 
|  | 489 | no_recursion= | 
|  | 490 | prefix=NONE | 
|  | 491 | program_prefix=NONE | 
|  | 492 | program_suffix=NONE | 
|  | 493 | program_transform_name=s,x,x, | 
|  | 494 | silent= | 
|  | 495 | site= | 
|  | 496 | srcdir= | 
|  | 497 | verbose= | 
|  | 498 | x_includes=NONE | 
|  | 499 | x_libraries=NONE | 
|  | 500 |  | 
|  | 501 | # Installation directory options. | 
|  | 502 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 503 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 504 | # by default will actually change. | 
|  | 505 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
|  | 506 | bindir='${exec_prefix}/bin' | 
|  | 507 | sbindir='${exec_prefix}/sbin' | 
|  | 508 | libexecdir='${exec_prefix}/libexec' | 
|  | 509 | datadir='${prefix}/share' | 
|  | 510 | sysconfdir='${prefix}/etc' | 
|  | 511 | sharedstatedir='${prefix}/com' | 
|  | 512 | localstatedir='${prefix}/var' | 
|  | 513 | libdir='${exec_prefix}/lib' | 
|  | 514 | includedir='${prefix}/include' | 
|  | 515 | oldincludedir='/usr/include' | 
|  | 516 | infodir='${prefix}/info' | 
|  | 517 | mandir='${prefix}/man' | 
|  | 518 |  | 
|  | 519 | ac_prev= | 
|  | 520 | for ac_option | 
|  | 521 | do | 
|  | 522 | # If the previous option needs an argument, assign it. | 
|  | 523 | if test -n "$ac_prev"; then | 
|  | 524 | eval "$ac_prev=\$ac_option" | 
|  | 525 | ac_prev= | 
|  | 526 | continue | 
|  | 527 | fi | 
|  | 528 |  | 
|  | 529 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
|  | 530 |  | 
|  | 531 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 532 |  | 
|  | 533 | case $ac_option in | 
|  | 534 |  | 
|  | 535 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 536 | ac_prev=bindir ;; | 
|  | 537 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|  | 538 | bindir=$ac_optarg ;; | 
|  | 539 |  | 
|  | 540 | -build | --build | --buil | --bui | --bu) | 
|  | 541 | ac_prev=build_alias ;; | 
|  | 542 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|  | 543 | build_alias=$ac_optarg ;; | 
|  | 544 |  | 
|  | 545 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 546 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 547 | ac_prev=cache_file ;; | 
|  | 548 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 549 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|  | 550 | cache_file=$ac_optarg ;; | 
|  | 551 |  | 
|  | 552 | --config-cache | -C) | 
|  | 553 | cache_file=config.cache ;; | 
|  | 554 |  | 
|  | 555 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
|  | 556 | ac_prev=datadir ;; | 
|  | 557 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
|  | 558 | | --da=*) | 
|  | 559 | datadir=$ac_optarg ;; | 
|  | 560 |  | 
|  | 561 | -disable-* | --disable-*) | 
|  | 562 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
|  | 563 | # Reject names that are not valid shell variable names. | 
|  | 564 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 565 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
|  | 566 | { (exit 1); exit 1; }; } | 
|  | 567 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
|  | 568 | eval "enable_$ac_feature=no" ;; | 
|  | 569 |  | 
|  | 570 | -enable-* | --enable-*) | 
|  | 571 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
|  | 572 | # Reject names that are not valid shell variable names. | 
|  | 573 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 574 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
|  | 575 | { (exit 1); exit 1; }; } | 
|  | 576 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
|  | 577 | case $ac_option in | 
|  | 578 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
|  | 579 | *) ac_optarg=yes ;; | 
|  | 580 | esac | 
|  | 581 | eval "enable_$ac_feature='$ac_optarg'" ;; | 
|  | 582 |  | 
|  | 583 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 584 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 585 | | --exec | --exe | --ex) | 
|  | 586 | ac_prev=exec_prefix ;; | 
|  | 587 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 588 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 589 | | --exec=* | --exe=* | --ex=*) | 
|  | 590 | exec_prefix=$ac_optarg ;; | 
|  | 591 |  | 
|  | 592 | -gas | --gas | --ga | --g) | 
|  | 593 | # Obsolete; use --with-gas. | 
|  | 594 | with_gas=yes ;; | 
|  | 595 |  | 
|  | 596 | -help | --help | --hel | --he | -h) | 
|  | 597 | ac_init_help=long ;; | 
|  | 598 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 599 | ac_init_help=recursive ;; | 
|  | 600 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 601 | ac_init_help=short ;; | 
|  | 602 |  | 
|  | 603 | -host | --host | --hos | --ho) | 
|  | 604 | ac_prev=host_alias ;; | 
|  | 605 | -host=* | --host=* | --hos=* | --ho=*) | 
|  | 606 | host_alias=$ac_optarg ;; | 
|  | 607 |  | 
|  | 608 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 609 | | --includ | --inclu | --incl | --inc) | 
|  | 610 | ac_prev=includedir ;; | 
|  | 611 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 612 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|  | 613 | includedir=$ac_optarg ;; | 
|  | 614 |  | 
|  | 615 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 616 | ac_prev=infodir ;; | 
|  | 617 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|  | 618 | infodir=$ac_optarg ;; | 
|  | 619 |  | 
|  | 620 | -libdir | --libdir | --libdi | --libd) | 
|  | 621 | ac_prev=libdir ;; | 
|  | 622 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|  | 623 | libdir=$ac_optarg ;; | 
|  | 624 |  | 
|  | 625 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 626 | | --libexe | --libex | --libe) | 
|  | 627 | ac_prev=libexecdir ;; | 
|  | 628 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 629 | | --libexe=* | --libex=* | --libe=*) | 
|  | 630 | libexecdir=$ac_optarg ;; | 
|  | 631 |  | 
|  | 632 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|  | 633 | | --localstate | --localstat | --localsta | --localst \ | 
|  | 634 | | --locals | --local | --loca | --loc | --lo) | 
|  | 635 | ac_prev=localstatedir ;; | 
|  | 636 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|  | 637 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
|  | 638 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
|  | 639 | localstatedir=$ac_optarg ;; | 
|  | 640 |  | 
|  | 641 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 642 | ac_prev=mandir ;; | 
|  | 643 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|  | 644 | mandir=$ac_optarg ;; | 
|  | 645 |  | 
|  | 646 | -nfp | --nfp | --nf) | 
|  | 647 | # Obsolete; use --without-fp. | 
|  | 648 | with_fp=no ;; | 
|  | 649 |  | 
|  | 650 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|  | 651 | | --no-cr | --no-c | -n) | 
|  | 652 | no_create=yes ;; | 
|  | 653 |  | 
|  | 654 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 655 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 656 | no_recursion=yes ;; | 
|  | 657 |  | 
|  | 658 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 659 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 660 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 661 | ac_prev=oldincludedir ;; | 
|  | 662 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 663 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 664 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|  | 665 | oldincludedir=$ac_optarg ;; | 
|  | 666 |  | 
|  | 667 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 668 | ac_prev=prefix ;; | 
|  | 669 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 670 | prefix=$ac_optarg ;; | 
|  | 671 |  | 
|  | 672 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 673 | | --program-pre | --program-pr | --program-p) | 
|  | 674 | ac_prev=program_prefix ;; | 
|  | 675 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 676 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|  | 677 | program_prefix=$ac_optarg ;; | 
|  | 678 |  | 
|  | 679 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 680 | | --program-suf | --program-su | --program-s) | 
|  | 681 | ac_prev=program_suffix ;; | 
|  | 682 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 683 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|  | 684 | program_suffix=$ac_optarg ;; | 
|  | 685 |  | 
|  | 686 | -program-transform-name | --program-transform-name \ | 
|  | 687 | | --program-transform-nam | --program-transform-na \ | 
|  | 688 | | --program-transform-n | --program-transform- \ | 
|  | 689 | | --program-transform | --program-transfor \ | 
|  | 690 | | --program-transfo | --program-transf \ | 
|  | 691 | | --program-trans | --program-tran \ | 
|  | 692 | | --progr-tra | --program-tr | --program-t) | 
|  | 693 | ac_prev=program_transform_name ;; | 
|  | 694 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 695 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 696 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 697 | | --program-transform=* | --program-transfor=* \ | 
|  | 698 | | --program-transfo=* | --program-transf=* \ | 
|  | 699 | | --program-trans=* | --program-tran=* \ | 
|  | 700 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|  | 701 | program_transform_name=$ac_optarg ;; | 
|  | 702 |  | 
|  | 703 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 704 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 705 | silent=yes ;; | 
|  | 706 |  | 
|  | 707 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 708 | ac_prev=sbindir ;; | 
|  | 709 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 710 | | --sbi=* | --sb=*) | 
|  | 711 | sbindir=$ac_optarg ;; | 
|  | 712 |  | 
|  | 713 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 714 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 715 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 716 | | --sha | --sh) | 
|  | 717 | ac_prev=sharedstatedir ;; | 
|  | 718 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 719 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 720 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 721 | | --sha=* | --sh=*) | 
|  | 722 | sharedstatedir=$ac_optarg ;; | 
|  | 723 |  | 
|  | 724 | -site | --site | --sit) | 
|  | 725 | ac_prev=site ;; | 
|  | 726 | -site=* | --site=* | --sit=*) | 
|  | 727 | site=$ac_optarg ;; | 
|  | 728 |  | 
|  | 729 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 730 | ac_prev=srcdir ;; | 
|  | 731 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 732 | srcdir=$ac_optarg ;; | 
|  | 733 |  | 
|  | 734 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 735 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 736 | ac_prev=sysconfdir ;; | 
|  | 737 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 738 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|  | 739 | sysconfdir=$ac_optarg ;; | 
|  | 740 |  | 
|  | 741 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|  | 742 | ac_prev=target_alias ;; | 
|  | 743 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|  | 744 | target_alias=$ac_optarg ;; | 
|  | 745 |  | 
|  | 746 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 747 | verbose=yes ;; | 
|  | 748 |  | 
|  | 749 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 750 | ac_init_version=: ;; | 
|  | 751 |  | 
|  | 752 | -with-* | --with-*) | 
|  | 753 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
|  | 754 | # Reject names that are not valid shell variable names. | 
|  | 755 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 756 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
|  | 757 | { (exit 1); exit 1; }; } | 
|  | 758 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|  | 759 | case $ac_option in | 
|  | 760 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
|  | 761 | *) ac_optarg=yes ;; | 
|  | 762 | esac | 
|  | 763 | eval "with_$ac_package='$ac_optarg'" ;; | 
|  | 764 |  | 
|  | 765 | -without-* | --without-*) | 
|  | 766 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
|  | 767 | # Reject names that are not valid shell variable names. | 
|  | 768 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
|  | 769 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
|  | 770 | { (exit 1); exit 1; }; } | 
|  | 771 | ac_package=`echo $ac_package | sed 's/-/_/g'` | 
|  | 772 | eval "with_$ac_package=no" ;; | 
|  | 773 |  | 
|  | 774 | --x) | 
|  | 775 | # Obsolete; use --with-x. | 
|  | 776 | with_x=yes ;; | 
|  | 777 |  | 
|  | 778 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 779 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 780 | ac_prev=x_includes ;; | 
|  | 781 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 782 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|  | 783 | x_includes=$ac_optarg ;; | 
|  | 784 |  | 
|  | 785 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 786 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 787 | ac_prev=x_libraries ;; | 
|  | 788 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 789 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|  | 790 | x_libraries=$ac_optarg ;; | 
|  | 791 |  | 
|  | 792 | -*) { echo "$as_me: error: unrecognized option: $ac_option | 
|  | 793 | Try \`$0 --help' for more information." >&2 | 
|  | 794 | { (exit 1); exit 1; }; } | 
|  | 795 | ;; | 
|  | 796 |  | 
|  | 797 | *=*) | 
|  | 798 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 799 | # Reject names that are not valid shell variable names. | 
|  | 800 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
|  | 801 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
|  | 802 | { (exit 1); exit 1; }; } | 
|  | 803 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
|  | 804 | eval "$ac_envvar='$ac_optarg'" | 
|  | 805 | export $ac_envvar ;; | 
|  | 806 |  | 
|  | 807 | *) | 
|  | 808 | # FIXME: should be removed in autoconf 3.0. | 
|  | 809 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
|  | 810 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
|  | 811 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
|  | 812 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
|  | 813 | ;; | 
|  | 814 |  | 
|  | 815 | esac | 
|  | 816 | done | 
|  | 817 |  | 
|  | 818 | if test -n "$ac_prev"; then | 
|  | 819 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
|  | 820 | { echo "$as_me: error: missing argument to $ac_option" >&2 | 
|  | 821 | { (exit 1); exit 1; }; } | 
|  | 822 | fi | 
|  | 823 |  | 
|  | 824 | # Be sure to have absolute paths. | 
|  | 825 | for ac_var in exec_prefix prefix | 
|  | 826 | do | 
|  | 827 | eval ac_val=$`echo $ac_var` | 
|  | 828 | case $ac_val in | 
|  | 829 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
|  | 830 | *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
|  | 831 | { (exit 1); exit 1; }; };; | 
|  | 832 | esac | 
|  | 833 | done | 
|  | 834 |  | 
|  | 835 | # Be sure to have absolute paths. | 
|  | 836 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 837 | localstatedir libdir includedir oldincludedir infodir mandir | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 838 | do | 
|  | 839 | eval ac_val=$`echo $ac_var` | 
|  | 840 | case $ac_val in | 
|  | 841 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 842 | *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
|  | 843 | { (exit 1); exit 1; }; };; | 
|  | 844 | esac | 
|  | 845 | done | 
|  | 846 |  | 
|  | 847 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 848 | # used to hold the argument of --host etc. | 
|  | 849 | # FIXME: To remove some day. | 
|  | 850 | build=$build_alias | 
|  | 851 | host=$host_alias | 
|  | 852 | target=$target_alias | 
|  | 853 |  | 
|  | 854 | # FIXME: To remove some day. | 
|  | 855 | if test "x$host_alias" != x; then | 
|  | 856 | if test "x$build_alias" = x; then | 
|  | 857 | cross_compiling=maybe | 
|  | 858 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
|  | 859 | If a cross compiler is detected then cross compile mode will be used." >&2 | 
|  | 860 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 861 | cross_compiling=yes | 
|  | 862 | fi | 
|  | 863 | fi | 
|  | 864 |  | 
|  | 865 | ac_tool_prefix= | 
|  | 866 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 867 |  | 
|  | 868 | test "$silent" = yes && exec 6>/dev/null | 
|  | 869 |  | 
|  | 870 |  | 
|  | 871 | # Find the source files, if location was not specified. | 
|  | 872 | if test -z "$srcdir"; then | 
|  | 873 | ac_srcdir_defaulted=yes | 
|  | 874 | # Try the directory containing this script, then its parent. | 
|  | 875 | ac_confdir=`(dirname "$0") 2>/dev/null || | 
|  | 876 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 877 | X"$0" : 'X\(//\)[^/]' \| \ | 
|  | 878 | X"$0" : 'X\(//\)$' \| \ | 
|  | 879 | X"$0" : 'X\(/\)' \| \ | 
|  | 880 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 881 | echo X"$0" | | 
|  | 882 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 883 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 884 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 885 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 886 | s/.*/./; q'` | 
|  | 887 | srcdir=$ac_confdir | 
|  | 888 | if test ! -r $srcdir/$ac_unique_file; then | 
|  | 889 | srcdir=.. | 
|  | 890 | fi | 
|  | 891 | else | 
|  | 892 | ac_srcdir_defaulted=no | 
|  | 893 | fi | 
|  | 894 | if test ! -r $srcdir/$ac_unique_file; then | 
|  | 895 | if test "$ac_srcdir_defaulted" = yes; then | 
|  | 896 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
|  | 897 | { (exit 1); exit 1; }; } | 
|  | 898 | else | 
|  | 899 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
|  | 900 | { (exit 1); exit 1; }; } | 
|  | 901 | fi | 
|  | 902 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 903 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
|  | 904 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
|  | 905 | { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 906 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
|  | 907 | ac_env_build_alias_set=${build_alias+set} | 
|  | 908 | ac_env_build_alias_value=$build_alias | 
|  | 909 | ac_cv_env_build_alias_set=${build_alias+set} | 
|  | 910 | ac_cv_env_build_alias_value=$build_alias | 
|  | 911 | ac_env_host_alias_set=${host_alias+set} | 
|  | 912 | ac_env_host_alias_value=$host_alias | 
|  | 913 | ac_cv_env_host_alias_set=${host_alias+set} | 
|  | 914 | ac_cv_env_host_alias_value=$host_alias | 
|  | 915 | ac_env_target_alias_set=${target_alias+set} | 
|  | 916 | ac_env_target_alias_value=$target_alias | 
|  | 917 | ac_cv_env_target_alias_set=${target_alias+set} | 
|  | 918 | ac_cv_env_target_alias_value=$target_alias | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 919 | ac_env_CC_set=${CC+set} | 
|  | 920 | ac_env_CC_value=$CC | 
|  | 921 | ac_cv_env_CC_set=${CC+set} | 
|  | 922 | ac_cv_env_CC_value=$CC | 
|  | 923 | ac_env_CFLAGS_set=${CFLAGS+set} | 
|  | 924 | ac_env_CFLAGS_value=$CFLAGS | 
|  | 925 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
|  | 926 | ac_cv_env_CFLAGS_value=$CFLAGS | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 927 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
|  | 928 | ac_env_LDFLAGS_value=$LDFLAGS | 
|  | 929 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
|  | 930 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
|  | 931 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
|  | 932 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
|  | 933 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
|  | 934 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 935 | ac_env_CPP_set=${CPP+set} | 
|  | 936 | ac_env_CPP_value=$CPP | 
|  | 937 | ac_cv_env_CPP_set=${CPP+set} | 
|  | 938 | ac_cv_env_CPP_value=$CPP | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 939 | ac_env_CXX_set=${CXX+set} | 
|  | 940 | ac_env_CXX_value=$CXX | 
|  | 941 | ac_cv_env_CXX_set=${CXX+set} | 
|  | 942 | ac_cv_env_CXX_value=$CXX | 
|  | 943 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
|  | 944 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
|  | 945 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
|  | 946 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 947 | ac_env_CXXCPP_set=${CXXCPP+set} | 
|  | 948 | ac_env_CXXCPP_value=$CXXCPP | 
|  | 949 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | 
|  | 950 | ac_cv_env_CXXCPP_value=$CXXCPP | 
|  | 951 | ac_env_F77_set=${F77+set} | 
|  | 952 | ac_env_F77_value=$F77 | 
|  | 953 | ac_cv_env_F77_set=${F77+set} | 
|  | 954 | ac_cv_env_F77_value=$F77 | 
|  | 955 | ac_env_FFLAGS_set=${FFLAGS+set} | 
|  | 956 | ac_env_FFLAGS_value=$FFLAGS | 
|  | 957 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | 
|  | 958 | ac_cv_env_FFLAGS_value=$FFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 959 |  | 
|  | 960 | # | 
|  | 961 | # Report the --help message. | 
|  | 962 | # | 
|  | 963 | if test "$ac_init_help" = "long"; then | 
|  | 964 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 965 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 966 | cat <<_ACEOF | 
| Reid Spencer | 78ba11d | 2005-02-16 16:21:00 +0000 | [diff] [blame] | 967 | \`configure' configures llvm 1.5cvs to adapt to many kinds of systems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 968 |  | 
|  | 969 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 970 |  | 
|  | 971 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 972 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 973 |  | 
|  | 974 | Defaults for the options are specified in brackets. | 
|  | 975 |  | 
|  | 976 | Configuration: | 
|  | 977 | -h, --help              display this help and exit | 
|  | 978 | --help=short        display options specific to this package | 
|  | 979 | --help=recursive    display the short help of all the included packages | 
|  | 980 | -V, --version           display version information and exit | 
|  | 981 | -q, --quiet, --silent   do not print \`checking...' messages | 
|  | 982 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 983 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 984 | -n, --no-create         do not create output files | 
|  | 985 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 986 |  | 
|  | 987 | _ACEOF | 
|  | 988 |  | 
|  | 989 | cat <<_ACEOF | 
|  | 990 | Installation directories: | 
|  | 991 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 992 | [$ac_default_prefix] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 993 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 994 | [PREFIX] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 995 |  | 
|  | 996 | By default, \`make install' will install all the files in | 
|  | 997 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 998 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 999 | for instance \`--prefix=\$HOME'. | 
|  | 1000 |  | 
|  | 1001 | For better control, use the options below. | 
|  | 1002 |  | 
|  | 1003 | Fine tuning of the installation directories: | 
|  | 1004 | --bindir=DIR           user executables [EPREFIX/bin] | 
|  | 1005 | --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
|  | 1006 | --libexecdir=DIR       program executables [EPREFIX/libexec] | 
|  | 1007 | --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
|  | 1008 | --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
|  | 1009 | --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
|  | 1010 | --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
|  | 1011 | --libdir=DIR           object code libraries [EPREFIX/lib] | 
|  | 1012 | --includedir=DIR       C header files [PREFIX/include] | 
|  | 1013 | --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
|  | 1014 | --infodir=DIR          info documentation [PREFIX/info] | 
|  | 1015 | --mandir=DIR           man documentation [PREFIX/man] | 
|  | 1016 | _ACEOF | 
|  | 1017 |  | 
|  | 1018 | cat <<\_ACEOF | 
|  | 1019 |  | 
|  | 1020 | System types: | 
|  | 1021 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1022 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
|  | 1023 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
|  | 1024 | _ACEOF | 
|  | 1025 | fi | 
|  | 1026 |  | 
|  | 1027 | if test -n "$ac_init_help"; then | 
|  | 1028 | case $ac_init_help in | 
| Reid Spencer | 78ba11d | 2005-02-16 16:21:00 +0000 | [diff] [blame] | 1029 | short | recursive ) echo "Configuration of llvm 1.5cvs:";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1030 | esac | 
|  | 1031 | cat <<\_ACEOF | 
|  | 1032 |  | 
|  | 1033 | Optional Features: | 
|  | 1034 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1035 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1036 | --enable-optimized | 
|  | 1037 | --enable-jit            Enable Just In Time Compiling (default is YES) | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1038 | --enable-doxygen        Build doxygen documentation (default is NO) | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1039 | --enable-target         Build specific host targets: | 
|  | 1040 | all,host-only,{target-name} (default=all) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1041 | --enable-ltdl-install   install libltdl | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1042 | --enable-shared[=PKGS] | 
|  | 1043 | build shared libraries [default=yes] | 
|  | 1044 | --enable-static[=PKGS] | 
|  | 1045 | build static libraries [default=yes] | 
|  | 1046 | --enable-fast-install[=PKGS] | 
|  | 1047 | optimize for fast installation [default=yes] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1048 | --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1049 |  | 
|  | 1050 | Optional Packages: | 
|  | 1051 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1052 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1053 | --with-llvmgccdir       Specify location of llvm-gcc install dir (default | 
|  | 1054 | searches PATH) | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1055 | --with-tclinclude       directory where tcl headers are | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1056 | --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
|  | 1057 | --with-pic              try to use only PIC/non-PIC objects [default=use | 
|  | 1058 | both] | 
|  | 1059 | --with-tags[=TAGS] | 
|  | 1060 | include additional configurations [automatic] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1061 |  | 
|  | 1062 | Some influential environment variables: | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1063 | CC          C compiler command | 
|  | 1064 | CFLAGS      C compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1065 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1066 | nonstandard directory <lib dir> | 
|  | 1067 | CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
|  | 1068 | headers in a nonstandard directory <include dir> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1069 | CPP         C preprocessor | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1070 | CXX         C++ compiler command | 
|  | 1071 | CXXFLAGS    C++ compiler flags | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1072 | CXXCPP      C++ preprocessor | 
|  | 1073 | F77         Fortran 77 compiler command | 
|  | 1074 | FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1075 |  | 
|  | 1076 | Use these variables to override the choices made by `configure' or to help | 
|  | 1077 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1078 |  | 
|  | 1079 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
|  | 1080 | _ACEOF | 
|  | 1081 | fi | 
|  | 1082 |  | 
|  | 1083 | if test "$ac_init_help" = "recursive"; then | 
|  | 1084 | # If there are subdirs, report their specific --help. | 
|  | 1085 | ac_popdir=`pwd` | 
|  | 1086 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
|  | 1087 | test -d $ac_dir || continue | 
|  | 1088 | ac_builddir=. | 
|  | 1089 |  | 
|  | 1090 | if test "$ac_dir" != .; then | 
|  | 1091 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 1092 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 1093 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 1094 | else | 
|  | 1095 | ac_dir_suffix= ac_top_builddir= | 
|  | 1096 | fi | 
|  | 1097 |  | 
|  | 1098 | case $srcdir in | 
|  | 1099 | .)  # No --srcdir option.  We are building in place. | 
|  | 1100 | ac_srcdir=. | 
|  | 1101 | if test -z "$ac_top_builddir"; then | 
|  | 1102 | ac_top_srcdir=. | 
|  | 1103 | else | 
|  | 1104 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 1105 | fi ;; | 
|  | 1106 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 1107 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 1108 | ac_top_srcdir=$srcdir ;; | 
|  | 1109 | *) # Relative path. | 
|  | 1110 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 1111 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 1112 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1113 |  | 
|  | 1114 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 1115 | # the directories may not exist. | 
|  | 1116 | case `pwd` in | 
|  | 1117 | .) ac_abs_builddir="$ac_dir";; | 
|  | 1118 | *) | 
|  | 1119 | case "$ac_dir" in | 
|  | 1120 | .) ac_abs_builddir=`pwd`;; | 
|  | 1121 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
|  | 1122 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
|  | 1123 | esac;; | 
|  | 1124 | esac | 
|  | 1125 | case $ac_abs_builddir in | 
|  | 1126 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 1127 | *) | 
|  | 1128 | case ${ac_top_builddir}. in | 
|  | 1129 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 1130 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 1131 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 1132 | esac;; | 
|  | 1133 | esac | 
|  | 1134 | case $ac_abs_builddir in | 
|  | 1135 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 1136 | *) | 
|  | 1137 | case $ac_srcdir in | 
|  | 1138 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 1139 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 1140 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 1141 | esac;; | 
|  | 1142 | esac | 
|  | 1143 | case $ac_abs_builddir in | 
|  | 1144 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 1145 | *) | 
|  | 1146 | case $ac_top_srcdir in | 
|  | 1147 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 1148 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 1149 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 1150 | esac;; | 
|  | 1151 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1152 |  | 
|  | 1153 | cd $ac_dir | 
|  | 1154 | # Check for guested configure; otherwise get Cygnus style configure. | 
|  | 1155 | if test -f $ac_srcdir/configure.gnu; then | 
|  | 1156 | echo | 
|  | 1157 | $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
|  | 1158 | elif test -f $ac_srcdir/configure; then | 
|  | 1159 | echo | 
|  | 1160 | $SHELL $ac_srcdir/configure  --help=recursive | 
|  | 1161 | elif test -f $ac_srcdir/configure.ac || | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1162 | test -f $ac_srcdir/configure.in; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1163 | echo | 
|  | 1164 | $ac_configure --help | 
|  | 1165 | else | 
|  | 1166 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
|  | 1167 | fi | 
|  | 1168 | cd $ac_popdir | 
|  | 1169 | done | 
|  | 1170 | fi | 
|  | 1171 |  | 
|  | 1172 | test -n "$ac_init_help" && exit 0 | 
|  | 1173 | if $ac_init_version; then | 
|  | 1174 | cat <<\_ACEOF | 
| Reid Spencer | 78ba11d | 2005-02-16 16:21:00 +0000 | [diff] [blame] | 1175 | llvm configure 1.5cvs | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1176 | generated by GNU Autoconf 2.59 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1177 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1178 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1179 | This configure script is free software; the Free Software Foundation | 
|  | 1180 | gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1181 |  | 
|  | 1182 | $LLVM_COPYRIGHT | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 | _ACEOF | 
|  | 1184 | exit 0 | 
|  | 1185 | fi | 
|  | 1186 | exec 5>config.log | 
|  | 1187 | cat >&5 <<_ACEOF | 
|  | 1188 | This file contains any messages produced by compilers while | 
|  | 1189 | running configure, to aid debugging if configure makes a mistake. | 
|  | 1190 |  | 
| Reid Spencer | 78ba11d | 2005-02-16 16:21:00 +0000 | [diff] [blame] | 1191 | It was created by llvm $as_me 1.5cvs, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1192 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1193 |  | 
|  | 1194 | $ $0 $@ | 
|  | 1195 |  | 
|  | 1196 | _ACEOF | 
|  | 1197 | { | 
|  | 1198 | cat <<_ASUNAME | 
|  | 1199 | ## --------- ## | 
|  | 1200 | ## Platform. ## | 
|  | 1201 | ## --------- ## | 
|  | 1202 |  | 
|  | 1203 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 1204 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 1205 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 1206 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 1207 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 1208 |  | 
|  | 1209 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 1210 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 1211 |  | 
|  | 1212 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 1213 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 1214 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
|  | 1215 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
|  | 1216 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 1217 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 1218 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 1219 |  | 
|  | 1220 | _ASUNAME | 
|  | 1221 |  | 
|  | 1222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1223 | for as_dir in $PATH | 
|  | 1224 | do | 
|  | 1225 | IFS=$as_save_IFS | 
|  | 1226 | test -z "$as_dir" && as_dir=. | 
|  | 1227 | echo "PATH: $as_dir" | 
|  | 1228 | done | 
|  | 1229 |  | 
|  | 1230 | } >&5 | 
|  | 1231 |  | 
|  | 1232 | cat >&5 <<_ACEOF | 
|  | 1233 |  | 
|  | 1234 |  | 
|  | 1235 | ## ----------- ## | 
|  | 1236 | ## Core tests. ## | 
|  | 1237 | ## ----------- ## | 
|  | 1238 |  | 
|  | 1239 | _ACEOF | 
|  | 1240 |  | 
|  | 1241 |  | 
|  | 1242 | # Keep a trace of the command line. | 
|  | 1243 | # 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] | 1244 | # 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] | 1245 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1246 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1247 | ac_configure_args= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1248 | ac_configure_args0= | 
|  | 1249 | ac_configure_args1= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1250 | ac_sep= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1251 | ac_must_keep_next=false | 
|  | 1252 | for ac_pass in 1 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1253 | do | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1254 | for ac_arg | 
|  | 1255 | do | 
|  | 1256 | case $ac_arg in | 
|  | 1257 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 1258 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1259 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1260 | continue ;; | 
|  | 1261 | *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
|  | 1262 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 1263 | esac | 
|  | 1264 | case $ac_pass in | 
|  | 1265 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
|  | 1266 | 2) | 
|  | 1267 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
|  | 1268 | if test $ac_must_keep_next = true; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1269 | ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1270 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1271 | case $ac_arg in | 
|  | 1272 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 1273 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 1274 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 1275 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 1276 | case "$ac_configure_args0 " in | 
|  | 1277 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 1278 | esac | 
|  | 1279 | ;; | 
|  | 1280 | -* ) ac_must_keep_next=true ;; | 
|  | 1281 | esac | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1282 | fi | 
|  | 1283 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
|  | 1284 | # Get rid of the leading space. | 
|  | 1285 | ac_sep=" " | 
|  | 1286 | ;; | 
|  | 1287 | esac | 
|  | 1288 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1289 | done | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1290 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
|  | 1291 | $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] | 1292 |  | 
|  | 1293 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 1294 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 1295 | # would cause problems or look ugly. | 
|  | 1296 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
|  | 1297 | # such as our DU 5.0 friend, will then `close' the trap. | 
|  | 1298 | trap 'exit_status=$? | 
|  | 1299 | # Save into config.log some information that might help in debugging. | 
|  | 1300 | { | 
|  | 1301 | echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1302 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1303 | cat <<\_ASBOX | 
|  | 1304 | ## ---------------- ## | 
|  | 1305 | ## Cache variables. ## | 
|  | 1306 | ## ---------------- ## | 
|  | 1307 | _ASBOX | 
|  | 1308 | echo | 
|  | 1309 | # The following way of writing the cache mishandles newlines in values, | 
|  | 1310 | { | 
|  | 1311 | (set) 2>&1 | | 
|  | 1312 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
|  | 1313 | *ac_space=\ *) | 
|  | 1314 | sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1315 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
|  | 1316 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1317 | ;; | 
|  | 1318 | *) | 
|  | 1319 | sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 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 | esac; | 
|  | 1323 | } | 
|  | 1324 | echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1325 |  | 
|  | 1326 | cat <<\_ASBOX | 
|  | 1327 | ## ----------------- ## | 
|  | 1328 | ## Output variables. ## | 
|  | 1329 | ## ----------------- ## | 
|  | 1330 | _ASBOX | 
|  | 1331 | echo | 
|  | 1332 | for ac_var in $ac_subst_vars | 
|  | 1333 | do | 
|  | 1334 | eval ac_val=$`echo $ac_var` | 
|  | 1335 | echo "$ac_var='"'"'$ac_val'"'"'" | 
|  | 1336 | done | sort | 
|  | 1337 | echo | 
|  | 1338 |  | 
|  | 1339 | if test -n "$ac_subst_files"; then | 
|  | 1340 | cat <<\_ASBOX | 
|  | 1341 | ## ------------- ## | 
|  | 1342 | ## Output files. ## | 
|  | 1343 | ## ------------- ## | 
|  | 1344 | _ASBOX | 
|  | 1345 | echo | 
|  | 1346 | for ac_var in $ac_subst_files | 
|  | 1347 | do | 
|  | 1348 | eval ac_val=$`echo $ac_var` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1349 | echo "$ac_var='"'"'$ac_val'"'"'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1350 | done | sort | 
|  | 1351 | echo | 
|  | 1352 | fi | 
|  | 1353 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1354 | if test -s confdefs.h; then | 
|  | 1355 | cat <<\_ASBOX | 
|  | 1356 | ## ----------- ## | 
|  | 1357 | ## confdefs.h. ## | 
|  | 1358 | ## ----------- ## | 
|  | 1359 | _ASBOX | 
|  | 1360 | echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1361 | sed "/^$/d" confdefs.h | sort | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1362 | echo | 
|  | 1363 | fi | 
|  | 1364 | test "$ac_signal" != 0 && | 
|  | 1365 | echo "$as_me: caught signal $ac_signal" | 
|  | 1366 | echo "$as_me: exit $exit_status" | 
|  | 1367 | } >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1368 | rm -f core *.core && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1369 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
|  | 1370 | exit $exit_status | 
|  | 1371 | ' 0 | 
|  | 1372 | for ac_signal in 1 2 13 15; do | 
|  | 1373 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
|  | 1374 | done | 
|  | 1375 | ac_signal=0 | 
|  | 1376 |  | 
|  | 1377 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|  | 1378 | rm -rf conftest* confdefs.h | 
|  | 1379 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
|  | 1380 | echo >confdefs.h | 
|  | 1381 |  | 
|  | 1382 | # Predefined preprocessor variables. | 
|  | 1383 |  | 
|  | 1384 | cat >>confdefs.h <<_ACEOF | 
|  | 1385 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 1386 | _ACEOF | 
|  | 1387 |  | 
|  | 1388 |  | 
|  | 1389 | cat >>confdefs.h <<_ACEOF | 
|  | 1390 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 1391 | _ACEOF | 
|  | 1392 |  | 
|  | 1393 |  | 
|  | 1394 | cat >>confdefs.h <<_ACEOF | 
|  | 1395 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 1396 | _ACEOF | 
|  | 1397 |  | 
|  | 1398 |  | 
|  | 1399 | cat >>confdefs.h <<_ACEOF | 
|  | 1400 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 1401 | _ACEOF | 
|  | 1402 |  | 
|  | 1403 |  | 
|  | 1404 | cat >>confdefs.h <<_ACEOF | 
|  | 1405 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 1406 | _ACEOF | 
|  | 1407 |  | 
|  | 1408 |  | 
|  | 1409 | # Let the site file select an alternate cache file if it wants to. | 
|  | 1410 | # Prefer explicitly selected file to automatically selected ones. | 
|  | 1411 | if test -z "$CONFIG_SITE"; then | 
|  | 1412 | if test "x$prefix" != xNONE; then | 
|  | 1413 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
|  | 1414 | else | 
|  | 1415 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
|  | 1416 | fi | 
|  | 1417 | fi | 
|  | 1418 | for ac_site_file in $CONFIG_SITE; do | 
|  | 1419 | if test -r "$ac_site_file"; then | 
|  | 1420 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
|  | 1421 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
|  | 1422 | sed 's/^/| /' "$ac_site_file" >&5 | 
|  | 1423 | . "$ac_site_file" | 
|  | 1424 | fi | 
|  | 1425 | done | 
|  | 1426 |  | 
|  | 1427 | if test -r "$cache_file"; then | 
|  | 1428 | # Some versions of bash will fail to source /dev/null (special | 
|  | 1429 | # files actually), so we avoid doing that. | 
|  | 1430 | if test -f "$cache_file"; then | 
|  | 1431 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
|  | 1432 | echo "$as_me: loading cache $cache_file" >&6;} | 
|  | 1433 | case $cache_file in | 
|  | 1434 | [\\/]* | ?:[\\/]* ) . $cache_file;; | 
|  | 1435 | *)                      . ./$cache_file;; | 
|  | 1436 | esac | 
|  | 1437 | fi | 
|  | 1438 | else | 
|  | 1439 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
|  | 1440 | echo "$as_me: creating cache $cache_file" >&6;} | 
|  | 1441 | >$cache_file | 
|  | 1442 | fi | 
|  | 1443 |  | 
|  | 1444 | # Check that the precious variables saved in the cache have kept the same | 
|  | 1445 | # value. | 
|  | 1446 | ac_cache_corrupted=false | 
|  | 1447 | for ac_var in `(set) 2>&1 | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1448 | 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] | 1449 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 1450 | eval ac_new_set=\$ac_env_${ac_var}_set | 
|  | 1451 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
|  | 1452 | eval ac_new_val="\$ac_env_${ac_var}_value" | 
|  | 1453 | case $ac_old_set,$ac_new_set in | 
|  | 1454 | set,) | 
|  | 1455 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
|  | 1456 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
|  | 1457 | ac_cache_corrupted=: ;; | 
|  | 1458 | ,set) | 
|  | 1459 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
|  | 1460 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
|  | 1461 | ac_cache_corrupted=: ;; | 
|  | 1462 | ,);; | 
|  | 1463 | *) | 
|  | 1464 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1465 | { 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] | 1466 | 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] | 1467 | { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1468 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1469 | { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1470 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1471 | ac_cache_corrupted=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | fi;; | 
|  | 1473 | esac | 
|  | 1474 | # Pass precious variables to config.status. | 
|  | 1475 | if test "$ac_new_set" = set; then | 
|  | 1476 | case $ac_new_val in | 
|  | 1477 | *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
|  | 1478 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 1479 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 1480 | esac | 
|  | 1481 | case " $ac_configure_args " in | 
|  | 1482 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
|  | 1483 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
|  | 1484 | esac | 
|  | 1485 | fi | 
|  | 1486 | done | 
|  | 1487 | if $ac_cache_corrupted; then | 
|  | 1488 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
|  | 1489 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
|  | 1490 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
|  | 1491 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
|  | 1492 | { (exit 1); exit 1; }; } | 
|  | 1493 | fi | 
|  | 1494 |  | 
|  | 1495 | ac_ext=c | 
|  | 1496 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 1500 |  | 
|  | 1501 |  | 
|  | 1502 |  | 
|  | 1503 |  | 
|  | 1504 |  | 
|  | 1505 |  | 
|  | 1506 |  | 
|  | 1507 |  | 
|  | 1508 |  | 
|  | 1509 |  | 
|  | 1510 |  | 
|  | 1511 |  | 
|  | 1512 |  | 
|  | 1513 |  | 
|  | 1514 |  | 
|  | 1515 |  | 
|  | 1516 |  | 
|  | 1517 |  | 
|  | 1518 |  | 
|  | 1519 |  | 
|  | 1520 |  | 
|  | 1521 |  | 
|  | 1522 |  | 
|  | 1523 |  | 
|  | 1524 |  | 
|  | 1525 |  | 
|  | 1526 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1527 |  | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 1528 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign." | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1529 |  | 
|  | 1530 |  | 
|  | 1531 |  | 
|  | 1532 |  | 
|  | 1533 |  | 
|  | 1534 |  | 
|  | 1535 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | ac_aux_dir= | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1537 | for ac_dir in autoconf $srcdir/autoconf; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 | if test -f $ac_dir/install-sh; then | 
|  | 1539 | ac_aux_dir=$ac_dir | 
|  | 1540 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 1541 | break | 
|  | 1542 | elif 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/shtool; then | 
|  | 1547 | ac_aux_dir=$ac_dir | 
|  | 1548 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 1549 | break | 
|  | 1550 | fi | 
|  | 1551 | done | 
|  | 1552 | if test -z "$ac_aux_dir"; then | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1553 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 | 
|  | 1554 | 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] | 1555 | { (exit 1); exit 1; }; } | 
|  | 1556 | fi | 
|  | 1557 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
|  | 1558 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
|  | 1559 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
|  | 1560 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1561 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1562 | if test ${srcdir} != "." ; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1563 | if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
|  | 1564 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1565 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
|  | 1566 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1567 | fi | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1568 | fi | 
|  | 1569 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1570 | for i in `ls ${srcdir}/projects` | 
|  | 1571 | do | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1572 | if test -d ${srcdir}/projects/${i} ; then | 
|  | 1573 | case ${i} in | 
|  | 1574 | "CVS") ;; | 
|  | 1575 | "sample") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1576 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1577 | subdirs="$subdirs projects/sample" | 
|  | 1578 | ;; | 
|  | 1579 | "Stacker") | 
| 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/Stacker" | 
|  | 1582 | ;; | 
|  | 1583 | "llvm-test") | 
| 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/llvm-test" | 
|  | 1586 | ;; | 
|  | 1587 | "llvm-reopt") | 
|  | 1588 |  | 
|  | 1589 | subdirs="$subdirs projects/llvm-reopt" | 
|  | 1590 | ;; | 
|  | 1591 | "llvm-gcc") | 
|  | 1592 |  | 
|  | 1593 | subdirs="$subdirs projects/llvm-gcc" | 
|  | 1594 | ;; | 
| Alkis Evlogimenos | 7bd1ede | 2005-01-16 09:44:58 +0000 | [diff] [blame] | 1595 | "llvm-java") | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1596 |  | 
| Alkis Evlogimenos | ae192d3 | 2005-01-14 07:52:28 +0000 | [diff] [blame] | 1597 | subdirs="$subdirs projects/llvm-java" | 
| Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1598 | ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1599 | "llvm-tv") | 
|  | 1600 |  | 
|  | 1601 | subdirs="$subdirs projects/llvm-tv" | 
|  | 1602 | ;; | 
| Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1603 | "llvm-poolalloc") | 
| John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1604 |  | 
| Chris Lattner | c6cf2fb | 2005-02-11 04:46:58 +0000 | [diff] [blame] | 1605 | subdirs="$subdirs projects/llvm-poolalloc" | 
| John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1606 | ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1607 | *) | 
| Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1608 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
|  | 1609 | 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] | 1610 | ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1611 | esac | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1612 | fi | 
|  | 1613 | done | 
| John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1614 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 |  | 
|  | 1616 | # Make sure we can run config.sub. | 
|  | 1617 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
|  | 1618 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
|  | 1619 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
|  | 1620 | { (exit 1); exit 1; }; } | 
|  | 1621 |  | 
|  | 1622 | echo "$as_me:$LINENO: checking build system type" >&5 | 
|  | 1623 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
|  | 1624 | if test "${ac_cv_build+set}" = set; then | 
|  | 1625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1626 | else | 
|  | 1627 | ac_cv_build_alias=$build_alias | 
|  | 1628 | test -z "$ac_cv_build_alias" && | 
|  | 1629 | ac_cv_build_alias=`$ac_config_guess` | 
|  | 1630 | test -z "$ac_cv_build_alias" && | 
|  | 1631 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
|  | 1632 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
|  | 1633 | { (exit 1); exit 1; }; } | 
|  | 1634 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
|  | 1635 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
|  | 1636 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
|  | 1637 | { (exit 1); exit 1; }; } | 
|  | 1638 |  | 
|  | 1639 | fi | 
|  | 1640 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
|  | 1641 | echo "${ECHO_T}$ac_cv_build" >&6 | 
|  | 1642 | build=$ac_cv_build | 
|  | 1643 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1644 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1645 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1646 |  | 
|  | 1647 |  | 
|  | 1648 | echo "$as_me:$LINENO: checking host system type" >&5 | 
|  | 1649 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
|  | 1650 | if test "${ac_cv_host+set}" = set; then | 
|  | 1651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1652 | else | 
|  | 1653 | ac_cv_host_alias=$host_alias | 
|  | 1654 | test -z "$ac_cv_host_alias" && | 
|  | 1655 | ac_cv_host_alias=$ac_cv_build_alias | 
|  | 1656 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
|  | 1657 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
|  | 1658 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
|  | 1659 | { (exit 1); exit 1; }; } | 
|  | 1660 |  | 
|  | 1661 | fi | 
|  | 1662 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
|  | 1663 | echo "${ECHO_T}$ac_cv_host" >&6 | 
|  | 1664 | host=$ac_cv_host | 
|  | 1665 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1666 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1667 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1668 |  | 
|  | 1669 |  | 
|  | 1670 | echo "$as_me:$LINENO: checking target system type" >&5 | 
|  | 1671 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | 
|  | 1672 | if test "${ac_cv_target+set}" = set; then | 
|  | 1673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1674 | else | 
|  | 1675 | ac_cv_target_alias=$target_alias | 
|  | 1676 | test "x$ac_cv_target_alias" = "x" && | 
|  | 1677 | ac_cv_target_alias=$ac_cv_host_alias | 
|  | 1678 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | 
|  | 1679 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | 
|  | 1680 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | 
|  | 1681 | { (exit 1); exit 1; }; } | 
|  | 1682 |  | 
|  | 1683 | fi | 
|  | 1684 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
|  | 1685 | echo "${ECHO_T}$ac_cv_target" >&6 | 
|  | 1686 | target=$ac_cv_target | 
|  | 1687 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|  | 1688 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|  | 1689 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|  | 1690 |  | 
|  | 1691 |  | 
|  | 1692 | # The aliases save the names the user supplied, while $host etc. | 
|  | 1693 | # will get canonicalized. | 
|  | 1694 | test -n "$target_alias" && | 
|  | 1695 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 1696 | NONENONEs,x,x, && | 
|  | 1697 | program_prefix=${target_alias}- | 
|  | 1698 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1699 | echo "$as_me:$LINENO: checking type of operating system we're on" >&5 | 
|  | 1700 | echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6 | 
|  | 1701 | if test "${llvm_cv_os_type+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1703 | else | 
|  | 1704 | case $build in | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1705 | *-*-aix*) | 
|  | 1706 | llvm_cv_os_type="AIX" | 
|  | 1707 | llvm_cv_platform_type="Unix" ;; | 
|  | 1708 | *-*-cygwin*) | 
|  | 1709 | llvm_cv_os_type="Cygwin" | 
|  | 1710 | llvm_cv_platform_type="Unix" ;; | 
|  | 1711 | *-*-darwin*) | 
|  | 1712 | llvm_cv_os_type="Darwin" | 
|  | 1713 | llvm_cv_platform_type="Unix" ;; | 
|  | 1714 | *-*-freebsd*) | 
|  | 1715 | llvm_cv_os_type="FreeBSD" | 
|  | 1716 | llvm_cv_platform_type="Unix" ;; | 
|  | 1717 | *-*-interix*) | 
|  | 1718 | llvm_cv_os_type="Interix" | 
|  | 1719 | llvm_cv_platform_type="Unix" ;; | 
|  | 1720 | *-*-linux*) | 
|  | 1721 | llvm_cv_os_type="Linux" | 
|  | 1722 | llvm_cv_platform_type="Unix" ;; | 
|  | 1723 | *-*-solaris*) | 
|  | 1724 | llvm_cv_os_type="SunOS" | 
|  | 1725 | llvm_cv_platform_type="Unix" ;; | 
|  | 1726 | *-*-win32*) | 
|  | 1727 | llvm_cv_os_type="Win32" | 
|  | 1728 | llvm_cv_platform_type="Win32" ;; | 
|  | 1729 | *-*-mingw*) | 
|  | 1730 | llvm_cv_os_type="MingW" | 
|  | 1731 | llvm_cv_platform_type="Win32" ;; | 
|  | 1732 | *) | 
|  | 1733 | llvm_cv_os_type="Unknown" | 
|  | 1734 | llvm_cv_platform_type="Unknown" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1735 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1736 | fi | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1737 | echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 | 
|  | 1738 | echo "${ECHO_T}$llvm_cv_os_type" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1739 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1740 | if test "$llvm_cv_os_type" = "Unknown" ; then | 
|  | 1741 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 | 
|  | 1742 | 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] | 1743 | { (exit 1); exit 1; }; } | 
|  | 1744 | fi | 
|  | 1745 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1746 | OS=$llvm_cv_os_type | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1747 |  | 
|  | 1748 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1749 | case $llvm_cv_platform_type in | 
|  | 1750 | Unix) | 
|  | 1751 |  | 
|  | 1752 | cat >>confdefs.h <<\_ACEOF | 
|  | 1753 | #define LLVM_ON_UNIX 1 | 
|  | 1754 | _ACEOF | 
|  | 1755 |  | 
| Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1756 | LLVM_ON_UNIX=1 | 
|  | 1757 |  | 
|  | 1758 | LLVM_ON_WIN32=0 | 
|  | 1759 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1760 | ;; | 
|  | 1761 | Win32) | 
|  | 1762 |  | 
|  | 1763 | cat >>confdefs.h <<\_ACEOF | 
|  | 1764 | #define LLVM_ON_WIN32 1 | 
|  | 1765 | _ACEOF | 
|  | 1766 |  | 
| Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 1767 | LLVM_ON_UNIX=0 | 
|  | 1768 |  | 
|  | 1769 | LLVM_ON_WIN32=1 | 
|  | 1770 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1771 | ;; | 
|  | 1772 | esac | 
|  | 1773 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1774 | case $target in | 
|  | 1775 | sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8 | 
|  | 1776 |  | 
|  | 1777 | ;; | 
|  | 1778 | esac | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1779 |  | 
|  | 1780 | echo "$as_me:$LINENO: checking target architecture" >&5 | 
|  | 1781 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1782 | if test "${llvm_cv_target_arch+set}" = set; then | 
|  | 1783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1784 | else | 
|  | 1785 | case $target in | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1786 | i?86-*)                 llvm_cv_target_arch="x86" ;; | 
| Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 1787 | amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;; | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1788 | sparc*-*)               llvm_cv_target_arch="Sparc" ;; | 
|  | 1789 | powerpc*-*)             llvm_cv_target_arch="PowerPC" ;; | 
| Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 1790 | alpha*-*)               llvm_cv_target_arch="Alpha" ;; | 
| Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 1791 | ia64-*)                 llvm_cv_target_arch="IA64" ;; | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1792 | *)                      llvm_cv_target_arch="Unknown" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1793 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1794 | fi | 
|  | 1795 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 | 
|  | 1796 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1797 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1798 | if test "$llvm_cv_target_arch" = "Unknown" ; then | 
|  | 1799 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 | 
|  | 1800 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} | 
|  | 1801 | fi | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1802 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1803 | ARCH=$llvm_cv_target_arch | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1804 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1805 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1806 | ac_ext=c | 
|  | 1807 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 1808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 1809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 1810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1811 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1812 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 1813 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
|  | 1814 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1816 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 1817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1818 | else | 
|  | 1819 | if test -n "$CC"; then | 
|  | 1820 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 1821 | else | 
|  | 1822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1823 | for as_dir in $PATH | 
|  | 1824 | do | 
|  | 1825 | IFS=$as_save_IFS | 
|  | 1826 | test -z "$as_dir" && as_dir=. | 
|  | 1827 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1829 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
|  | 1830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1831 | break 2 | 
|  | 1832 | fi | 
|  | 1833 | done | 
|  | 1834 | done | 
|  | 1835 |  | 
|  | 1836 | fi | 
|  | 1837 | fi | 
|  | 1838 | CC=$ac_cv_prog_CC | 
|  | 1839 | if test -n "$CC"; then | 
|  | 1840 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 1841 | echo "${ECHO_T}$CC" >&6 | 
|  | 1842 | else | 
|  | 1843 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1844 | echo "${ECHO_T}no" >&6 | 
|  | 1845 | fi | 
|  | 1846 |  | 
|  | 1847 | fi | 
|  | 1848 | if test -z "$ac_cv_prog_CC"; then | 
|  | 1849 | ac_ct_CC=$CC | 
|  | 1850 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 1851 | set dummy gcc; ac_word=$2 | 
|  | 1852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1854 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 1855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1856 | else | 
|  | 1857 | if test -n "$ac_ct_CC"; then | 
|  | 1858 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 1859 | else | 
|  | 1860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1861 | for as_dir in $PATH | 
|  | 1862 | do | 
|  | 1863 | IFS=$as_save_IFS | 
|  | 1864 | test -z "$as_dir" && as_dir=. | 
|  | 1865 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1867 | ac_cv_prog_ac_ct_CC="gcc" | 
|  | 1868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1869 | break 2 | 
|  | 1870 | fi | 
|  | 1871 | done | 
|  | 1872 | done | 
|  | 1873 |  | 
|  | 1874 | fi | 
|  | 1875 | fi | 
|  | 1876 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 1877 | if test -n "$ac_ct_CC"; then | 
|  | 1878 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 1879 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
|  | 1880 | else | 
|  | 1881 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1882 | echo "${ECHO_T}no" >&6 | 
|  | 1883 | fi | 
|  | 1884 |  | 
|  | 1885 | CC=$ac_ct_CC | 
|  | 1886 | else | 
|  | 1887 | CC="$ac_cv_prog_CC" | 
|  | 1888 | fi | 
|  | 1889 |  | 
|  | 1890 | if test -z "$CC"; then | 
|  | 1891 | if test -n "$ac_tool_prefix"; then | 
|  | 1892 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
|  | 1893 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
|  | 1894 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1896 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 1897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1898 | else | 
|  | 1899 | if test -n "$CC"; then | 
|  | 1900 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 1901 | else | 
|  | 1902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1903 | for as_dir in $PATH | 
|  | 1904 | do | 
|  | 1905 | IFS=$as_save_IFS | 
|  | 1906 | test -z "$as_dir" && as_dir=. | 
|  | 1907 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1908 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1909 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
|  | 1910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1911 | break 2 | 
|  | 1912 | fi | 
|  | 1913 | done | 
|  | 1914 | done | 
|  | 1915 |  | 
|  | 1916 | fi | 
|  | 1917 | fi | 
|  | 1918 | CC=$ac_cv_prog_CC | 
|  | 1919 | if test -n "$CC"; then | 
|  | 1920 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 1921 | echo "${ECHO_T}$CC" >&6 | 
|  | 1922 | else | 
|  | 1923 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1924 | echo "${ECHO_T}no" >&6 | 
|  | 1925 | fi | 
|  | 1926 |  | 
|  | 1927 | fi | 
|  | 1928 | if test -z "$ac_cv_prog_CC"; then | 
|  | 1929 | ac_ct_CC=$CC | 
|  | 1930 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 1931 | set dummy cc; ac_word=$2 | 
|  | 1932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1934 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 1935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1936 | else | 
|  | 1937 | if test -n "$ac_ct_CC"; then | 
|  | 1938 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 1939 | else | 
|  | 1940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1941 | for as_dir in $PATH | 
|  | 1942 | do | 
|  | 1943 | IFS=$as_save_IFS | 
|  | 1944 | test -z "$as_dir" && as_dir=. | 
|  | 1945 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1946 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1947 | ac_cv_prog_ac_ct_CC="cc" | 
|  | 1948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1949 | break 2 | 
|  | 1950 | fi | 
|  | 1951 | done | 
|  | 1952 | done | 
|  | 1953 |  | 
|  | 1954 | fi | 
|  | 1955 | fi | 
|  | 1956 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 1957 | if test -n "$ac_ct_CC"; then | 
|  | 1958 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 1959 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
|  | 1960 | else | 
|  | 1961 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 1962 | echo "${ECHO_T}no" >&6 | 
|  | 1963 | fi | 
|  | 1964 |  | 
|  | 1965 | CC=$ac_ct_CC | 
|  | 1966 | else | 
|  | 1967 | CC="$ac_cv_prog_CC" | 
|  | 1968 | fi | 
|  | 1969 |  | 
|  | 1970 | fi | 
|  | 1971 | if test -z "$CC"; then | 
|  | 1972 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 1973 | set dummy cc; ac_word=$2 | 
|  | 1974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 1975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 1976 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 1977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 1978 | else | 
|  | 1979 | if test -n "$CC"; then | 
|  | 1980 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 1981 | else | 
|  | 1982 | ac_prog_rejected=no | 
|  | 1983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 1984 | for as_dir in $PATH | 
|  | 1985 | do | 
|  | 1986 | IFS=$as_save_IFS | 
|  | 1987 | test -z "$as_dir" && as_dir=. | 
|  | 1988 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 1989 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 1990 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 1991 | ac_prog_rejected=yes | 
|  | 1992 | continue | 
|  | 1993 | fi | 
|  | 1994 | ac_cv_prog_CC="cc" | 
|  | 1995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 1996 | break 2 | 
|  | 1997 | fi | 
|  | 1998 | done | 
|  | 1999 | done | 
|  | 2000 |  | 
|  | 2001 | if test $ac_prog_rejected = yes; then | 
|  | 2002 | # We found a bogon in the path, so make sure we never use it. | 
|  | 2003 | set dummy $ac_cv_prog_CC | 
|  | 2004 | shift | 
|  | 2005 | if test $# != 0; then | 
|  | 2006 | # We chose a different compiler from the bogus one. | 
|  | 2007 | # However, it has the same basename, so the bogon will be chosen | 
|  | 2008 | # first if we set CC to just the basename; use the full file name. | 
|  | 2009 | shift | 
|  | 2010 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 2011 | fi | 
|  | 2012 | fi | 
|  | 2013 | fi | 
|  | 2014 | fi | 
|  | 2015 | CC=$ac_cv_prog_CC | 
|  | 2016 | if test -n "$CC"; then | 
|  | 2017 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 2018 | echo "${ECHO_T}$CC" >&6 | 
|  | 2019 | else | 
|  | 2020 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2021 | echo "${ECHO_T}no" >&6 | 
|  | 2022 | fi | 
|  | 2023 |  | 
|  | 2024 | fi | 
|  | 2025 | if test -z "$CC"; then | 
|  | 2026 | if test -n "$ac_tool_prefix"; then | 
|  | 2027 | for ac_prog in cl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2028 | do | 
|  | 2029 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 2030 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 2031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2033 | if test "${ac_cv_prog_CC+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2035 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2036 | if test -n "$CC"; then | 
|  | 2037 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2038 | else | 
|  | 2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2040 | for as_dir in $PATH | 
|  | 2041 | do | 
|  | 2042 | IFS=$as_save_IFS | 
|  | 2043 | test -z "$as_dir" && as_dir=. | 
|  | 2044 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2045 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2046 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2048 | break 2 | 
|  | 2049 | fi | 
|  | 2050 | done | 
|  | 2051 | done | 
|  | 2052 |  | 
|  | 2053 | fi | 
|  | 2054 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2055 | CC=$ac_cv_prog_CC | 
|  | 2056 | if test -n "$CC"; then | 
|  | 2057 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 2058 | echo "${ECHO_T}$CC" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2059 | else | 
|  | 2060 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2061 | echo "${ECHO_T}no" >&6 | 
|  | 2062 | fi | 
|  | 2063 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2064 | test -n "$CC" && break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | done | 
|  | 2066 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2067 | if test -z "$CC"; then | 
|  | 2068 | ac_ct_CC=$CC | 
|  | 2069 | for ac_prog in cl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | do | 
|  | 2071 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 2072 | set dummy $ac_prog; ac_word=$2 | 
|  | 2073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 2074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2075 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2077 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2078 | if test -n "$ac_ct_CC"; then | 
|  | 2079 | 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] | 2080 | else | 
|  | 2081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2082 | for as_dir in $PATH | 
|  | 2083 | do | 
|  | 2084 | IFS=$as_save_IFS | 
|  | 2085 | test -z "$as_dir" && as_dir=. | 
|  | 2086 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 2087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2088 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 2090 | break 2 | 
|  | 2091 | fi | 
|  | 2092 | done | 
|  | 2093 | done | 
|  | 2094 |  | 
|  | 2095 | fi | 
|  | 2096 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 2098 | if test -n "$ac_ct_CC"; then | 
|  | 2099 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 2100 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2101 | else | 
|  | 2102 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 2103 | echo "${ECHO_T}no" >&6 | 
|  | 2104 | fi | 
|  | 2105 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2106 | test -n "$ac_ct_CC" && break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2107 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2108 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2109 | CC=$ac_ct_CC | 
|  | 2110 | fi | 
|  | 2111 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 | fi | 
|  | 2113 |  | 
|  | 2114 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2115 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
|  | 2116 | See \`config.log' for more details." >&5 | 
|  | 2117 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
|  | 2118 | See \`config.log' for more details." >&2;} | 
|  | 2119 | { (exit 1); exit 1; }; } | 
|  | 2120 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | # Provide some information about the compiler. | 
|  | 2122 | echo "$as_me:$LINENO:" \ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2123 | "checking for C compiler version" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2124 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 2125 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 2126 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 2127 | ac_status=$? | 
|  | 2128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2129 | (exit $ac_status); } | 
|  | 2130 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 2131 | (eval $ac_compiler -v </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 |  | 
|  | 2141 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2142 | /* confdefs.h.  */ | 
|  | 2143 | _ACEOF | 
|  | 2144 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2145 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2146 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2147 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2148 | int | 
|  | 2149 | main () | 
|  | 2150 | { | 
|  | 2151 |  | 
|  | 2152 | ; | 
|  | 2153 | return 0; | 
|  | 2154 | } | 
|  | 2155 | _ACEOF | 
|  | 2156 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2157 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2158 | # Try to create an executable without -o first, disregard a.out. | 
|  | 2159 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 2160 | # of exeext. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2161 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 
|  | 2162 | 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] | 2163 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 2164 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
|  | 2165 | (eval $ac_link_default) 2>&5 | 
|  | 2166 | ac_status=$? | 
|  | 2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2168 | (exit $ac_status); }; then | 
|  | 2169 | # Find the output, starting from the most likely.  This scheme is | 
|  | 2170 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
|  | 2171 | # resort. | 
|  | 2172 |  | 
|  | 2173 | # Be careful to initialize this variable, since it used to be cached. | 
|  | 2174 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
|  | 2175 | ac_cv_exeext= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2176 | # b.out is created by i960 compilers. | 
|  | 2177 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
|  | 2178 | do | 
|  | 2179 | test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2180 | case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2181 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2182 | ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2183 | conftest.$ac_ext ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2184 | # This is the source file. | 
|  | 2185 | ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2186 | [ab].out ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2187 | # We found the default executable, but exeext='' is most | 
|  | 2188 | # certainly right. | 
|  | 2189 | break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2190 | *.* ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2191 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 2192 | # FIXME: I believe we export ac_cv_exeext for Libtool, | 
|  | 2193 | # but it would be cool to find out if it's true.  Does anybody | 
|  | 2194 | # maintain Libtool? --akim. | 
|  | 2195 | export ac_cv_exeext | 
|  | 2196 | break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2197 | * ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2198 | break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2199 | esac | 
|  | 2200 | done | 
|  | 2201 | else | 
|  | 2202 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2203 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2204 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2205 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2206 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2207 | echo "$as_me: error: C compiler cannot create executables | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2208 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2209 | { (exit 77); exit 77; }; } | 
|  | 2210 | fi | 
|  | 2211 |  | 
|  | 2212 | ac_exeext=$ac_cv_exeext | 
|  | 2213 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
|  | 2214 | echo "${ECHO_T}$ac_file" >&6 | 
|  | 2215 |  | 
|  | 2216 | # Check the compiler produces executables we can run.  If not, either | 
|  | 2217 | # the compiler is broken, or we cross compile. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2218 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 
|  | 2219 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2220 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
|  | 2221 | # If not cross compiling, check that we can run a simple program. | 
|  | 2222 | if test "$cross_compiling" != yes; then | 
|  | 2223 | if { ac_try='./$ac_file' | 
|  | 2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2225 | (eval $ac_try) 2>&5 | 
|  | 2226 | ac_status=$? | 
|  | 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2228 | (exit $ac_status); }; }; then | 
|  | 2229 | cross_compiling=no | 
|  | 2230 | else | 
|  | 2231 | if test "$cross_compiling" = maybe; then | 
|  | 2232 | cross_compiling=yes | 
|  | 2233 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2234 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2235 | If you meant to cross compile, use \`--host'. | 
|  | 2236 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2237 | echo "$as_me: error: cannot run C compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2238 | If you meant to cross compile, use \`--host'. | 
|  | 2239 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2240 | { (exit 1); exit 1; }; } | 
|  | 2241 | fi | 
|  | 2242 | fi | 
|  | 2243 | fi | 
|  | 2244 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 2245 | echo "${ECHO_T}yes" >&6 | 
|  | 2246 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2247 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 | ac_clean_files=$ac_clean_files_save | 
|  | 2249 | # Check the compiler produces executables we can run.  If not, either | 
|  | 2250 | # the compiler is broken, or we cross compile. | 
|  | 2251 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
|  | 2252 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
|  | 2253 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
|  | 2254 | echo "${ECHO_T}$cross_compiling" >&6 | 
|  | 2255 |  | 
|  | 2256 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
|  | 2257 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
|  | 2258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 2259 | (eval $ac_link) 2>&5 | 
|  | 2260 | ac_status=$? | 
|  | 2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2262 | (exit $ac_status); }; then | 
|  | 2263 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 2264 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 2265 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 2266 | # `rm'. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2267 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 2268 | test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2269 | case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2270 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2271 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2272 | export ac_cv_exeext | 
|  | 2273 | break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2274 | * ) break;; | 
|  | 2275 | esac | 
|  | 2276 | done | 
|  | 2277 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2278 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2279 | See \`config.log' for more details." >&5 | 
|  | 2280 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
|  | 2281 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2282 | { (exit 1); exit 1; }; } | 
|  | 2283 | fi | 
|  | 2284 |  | 
|  | 2285 | rm -f conftest$ac_cv_exeext | 
|  | 2286 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
|  | 2287 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
|  | 2288 |  | 
|  | 2289 | rm -f conftest.$ac_ext | 
|  | 2290 | EXEEXT=$ac_cv_exeext | 
|  | 2291 | ac_exeext=$EXEEXT | 
|  | 2292 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
|  | 2293 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
|  | 2294 | if test "${ac_cv_objext+set}" = set; then | 
|  | 2295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2296 | else | 
|  | 2297 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2298 | /* confdefs.h.  */ | 
|  | 2299 | _ACEOF | 
|  | 2300 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2301 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2302 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2303 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2304 | int | 
|  | 2305 | main () | 
|  | 2306 | { | 
|  | 2307 |  | 
|  | 2308 | ; | 
|  | 2309 | return 0; | 
|  | 2310 | } | 
|  | 2311 | _ACEOF | 
|  | 2312 | rm -f conftest.o conftest.obj | 
|  | 2313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2314 | (eval $ac_compile) 2>&5 | 
|  | 2315 | ac_status=$? | 
|  | 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2317 | (exit $ac_status); }; then | 
|  | 2318 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
|  | 2319 | case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2320 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2321 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 2322 | break;; | 
|  | 2323 | esac | 
|  | 2324 | done | 
|  | 2325 | else | 
|  | 2326 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2327 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2328 |  | 
|  | 2329 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
|  | 2330 | See \`config.log' for more details." >&5 | 
|  | 2331 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
|  | 2332 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2333 | { (exit 1); exit 1; }; } | 
|  | 2334 | fi | 
|  | 2335 |  | 
|  | 2336 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 2337 | fi | 
|  | 2338 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
|  | 2339 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
|  | 2340 | OBJEXT=$ac_cv_objext | 
|  | 2341 | ac_objext=$OBJEXT | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2342 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
|  | 2343 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
|  | 2344 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2346 | else | 
|  | 2347 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2348 | /* confdefs.h.  */ | 
|  | 2349 | _ACEOF | 
|  | 2350 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2351 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2352 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2353 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2354 | int | 
|  | 2355 | main () | 
|  | 2356 | { | 
|  | 2357 | #ifndef __GNUC__ | 
|  | 2358 | choke me | 
|  | 2359 | #endif | 
|  | 2360 |  | 
|  | 2361 | ; | 
|  | 2362 | return 0; | 
|  | 2363 | } | 
|  | 2364 | _ACEOF | 
|  | 2365 | rm -f conftest.$ac_objext | 
|  | 2366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2367 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2368 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2369 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2370 | rm -f conftest.er1 | 
|  | 2371 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2373 | (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2374 | { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2375 | || test ! -s conftest.err' | 
|  | 2376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2377 | (eval $ac_try) 2>&5 | 
|  | 2378 | ac_status=$? | 
|  | 2379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2380 | (exit $ac_status); }; } && | 
|  | 2381 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2383 | (eval $ac_try) 2>&5 | 
|  | 2384 | ac_status=$? | 
|  | 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2386 | (exit $ac_status); }; }; then | 
|  | 2387 | ac_compiler_gnu=yes | 
|  | 2388 | else | 
|  | 2389 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2390 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2391 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2392 | ac_compiler_gnu=no | 
|  | 2393 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2395 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2396 |  | 
|  | 2397 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2398 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 2399 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
|  | 2400 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 2401 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 2402 | ac_save_CFLAGS=$CFLAGS | 
|  | 2403 | CFLAGS="-g" | 
|  | 2404 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
|  | 2405 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
|  | 2406 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2408 | else | 
|  | 2409 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2410 | /* confdefs.h.  */ | 
|  | 2411 | _ACEOF | 
|  | 2412 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2413 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2414 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2415 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2416 | int | 
|  | 2417 | main () | 
|  | 2418 | { | 
|  | 2419 |  | 
|  | 2420 | ; | 
|  | 2421 | return 0; | 
|  | 2422 | } | 
|  | 2423 | _ACEOF | 
|  | 2424 | rm -f conftest.$ac_objext | 
|  | 2425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2426 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2427 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2428 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2429 | rm -f conftest.er1 | 
|  | 2430 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2432 | (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2433 | { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2434 | || test ! -s conftest.err' | 
|  | 2435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2436 | (eval $ac_try) 2>&5 | 
|  | 2437 | ac_status=$? | 
|  | 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2439 | (exit $ac_status); }; } && | 
|  | 2440 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2442 | (eval $ac_try) 2>&5 | 
|  | 2443 | ac_status=$? | 
|  | 2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2445 | (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2446 | ac_cv_prog_cc_g=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2447 | else | 
|  | 2448 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2449 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2450 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2451 | ac_cv_prog_cc_g=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2452 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2454 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2455 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
|  | 2456 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
|  | 2457 | if test "$ac_test_CFLAGS" = set; then | 
|  | 2458 | CFLAGS=$ac_save_CFLAGS | 
|  | 2459 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 2460 | if test "$GCC" = yes; then | 
|  | 2461 | CFLAGS="-g -O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2462 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2463 | CFLAGS="-g" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2464 | fi | 
|  | 2465 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2466 | if test "$GCC" = yes; then | 
|  | 2467 | CFLAGS="-O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2468 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2469 | CFLAGS= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2470 | fi | 
|  | 2471 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2472 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
|  | 2473 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
|  | 2474 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
|  | 2475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2476 | else | 
|  | 2477 | ac_cv_prog_cc_stdc=no | 
|  | 2478 | ac_save_CC=$CC | 
|  | 2479 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2480 | /* confdefs.h.  */ | 
|  | 2481 | _ACEOF | 
|  | 2482 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2483 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2484 | /* end confdefs.h.  */ | 
|  | 2485 | #include <stdarg.h> | 
|  | 2486 | #include <stdio.h> | 
|  | 2487 | #include <sys/types.h> | 
|  | 2488 | #include <sys/stat.h> | 
|  | 2489 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 2490 | struct buf { int x; }; | 
|  | 2491 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 2492 | static char *e (p, i) | 
|  | 2493 | char **p; | 
|  | 2494 | int i; | 
|  | 2495 | { | 
|  | 2496 | return p[i]; | 
|  | 2497 | } | 
|  | 2498 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 2499 | { | 
|  | 2500 | char *s; | 
|  | 2501 | va_list v; | 
|  | 2502 | va_start (v,p); | 
|  | 2503 | s = g (p, va_arg (v,int)); | 
|  | 2504 | va_end (v); | 
|  | 2505 | return s; | 
|  | 2506 | } | 
|  | 2507 |  | 
|  | 2508 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 2509 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 2510 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 2511 | as 'x'.  The following induces an error, until -std1 is added to get | 
|  | 2512 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 2513 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 2514 | that's true only with -std1.  */ | 
|  | 2515 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 2516 |  | 
|  | 2517 | int test (int i, double x); | 
|  | 2518 | struct s1 {int (*f) (int a);}; | 
|  | 2519 | struct s2 {int (*f) (double a);}; | 
|  | 2520 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 2521 | int argc; | 
|  | 2522 | char **argv; | 
|  | 2523 | int | 
|  | 2524 | main () | 
|  | 2525 | { | 
|  | 2526 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 2527 | ; | 
|  | 2528 | return 0; | 
|  | 2529 | } | 
|  | 2530 | _ACEOF | 
|  | 2531 | # Don't try gcc -ansi; that turns off useful extensions and | 
|  | 2532 | # breaks some systems' header files. | 
|  | 2533 | # AIX			-qlanglvl=ansi | 
|  | 2534 | # Ultrix and OSF/1	-std1 | 
|  | 2535 | # HP-UX 10.20 and later	-Ae | 
|  | 2536 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
|  | 2537 | # SVR4			-Xc -D__EXTENSIONS__ | 
|  | 2538 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 2539 | do | 
|  | 2540 | CC="$ac_save_CC $ac_arg" | 
|  | 2541 | rm -f conftest.$ac_objext | 
|  | 2542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2543 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2544 | ac_status=$? | 
|  | 2545 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2546 | rm -f conftest.er1 | 
|  | 2547 | cat conftest.err >&5 | 
|  | 2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2549 | (exit $ac_status); } && | 
|  | 2550 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2551 | || test ! -s conftest.err' | 
|  | 2552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2553 | (eval $ac_try) 2>&5 | 
|  | 2554 | ac_status=$? | 
|  | 2555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2556 | (exit $ac_status); }; } && | 
|  | 2557 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2559 | (eval $ac_try) 2>&5 | 
|  | 2560 | ac_status=$? | 
|  | 2561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2562 | (exit $ac_status); }; }; then | 
|  | 2563 | ac_cv_prog_cc_stdc=$ac_arg | 
|  | 2564 | break | 
|  | 2565 | else | 
|  | 2566 | echo "$as_me: failed program was:" >&5 | 
|  | 2567 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2568 |  | 
|  | 2569 | fi | 
|  | 2570 | rm -f conftest.err conftest.$ac_objext | 
|  | 2571 | done | 
|  | 2572 | rm -f conftest.$ac_ext conftest.$ac_objext | 
|  | 2573 | CC=$ac_save_CC | 
|  | 2574 |  | 
|  | 2575 | fi | 
|  | 2576 |  | 
|  | 2577 | case "x$ac_cv_prog_cc_stdc" in | 
|  | 2578 | x|xno) | 
|  | 2579 | echo "$as_me:$LINENO: result: none needed" >&5 | 
|  | 2580 | echo "${ECHO_T}none needed" >&6 ;; | 
|  | 2581 | *) | 
|  | 2582 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
|  | 2583 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
|  | 2584 | CC="$CC $ac_cv_prog_cc_stdc" ;; | 
|  | 2585 | esac | 
|  | 2586 |  | 
|  | 2587 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
|  | 2588 | # in C++ we need to declare it.  In case someone uses the same compiler | 
|  | 2589 | # for both compiling C and C++ we need to have the C++ compiler decide | 
|  | 2590 | # the declaration of exit, since it's the most demanding environment. | 
|  | 2591 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2592 | #ifndef __cplusplus | 
|  | 2593 | choke me | 
|  | 2594 | #endif | 
|  | 2595 | _ACEOF | 
|  | 2596 | rm -f conftest.$ac_objext | 
|  | 2597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2598 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2599 | ac_status=$? | 
|  | 2600 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2601 | rm -f conftest.er1 | 
|  | 2602 | cat conftest.err >&5 | 
|  | 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2604 | (exit $ac_status); } && | 
|  | 2605 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2606 | || test ! -s conftest.err' | 
|  | 2607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2608 | (eval $ac_try) 2>&5 | 
|  | 2609 | ac_status=$? | 
|  | 2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2611 | (exit $ac_status); }; } && | 
|  | 2612 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2614 | (eval $ac_try) 2>&5 | 
|  | 2615 | ac_status=$? | 
|  | 2616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2617 | (exit $ac_status); }; }; then | 
|  | 2618 | for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2619 | '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2620 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
|  | 2621 | 'extern "C" void std::exit (int); using std::exit;' \ | 
|  | 2622 | 'extern "C" void exit (int) throw ();' \ | 
|  | 2623 | 'extern "C" void exit (int);' \ | 
|  | 2624 | 'void exit (int);' | 
|  | 2625 | do | 
|  | 2626 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2627 | /* confdefs.h.  */ | 
|  | 2628 | _ACEOF | 
|  | 2629 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2630 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2631 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2632 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2633 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2634 | int | 
|  | 2635 | main () | 
|  | 2636 | { | 
|  | 2637 | exit (42); | 
|  | 2638 | ; | 
|  | 2639 | return 0; | 
|  | 2640 | } | 
|  | 2641 | _ACEOF | 
|  | 2642 | rm -f conftest.$ac_objext | 
|  | 2643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2644 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2645 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2646 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2647 | rm -f conftest.er1 | 
|  | 2648 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2650 | (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2651 | { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2652 | || test ! -s conftest.err' | 
|  | 2653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2654 | (eval $ac_try) 2>&5 | 
|  | 2655 | ac_status=$? | 
|  | 2656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2657 | (exit $ac_status); }; } && | 
|  | 2658 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2660 | (eval $ac_try) 2>&5 | 
|  | 2661 | ac_status=$? | 
|  | 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2663 | (exit $ac_status); }; }; then | 
|  | 2664 | : | 
|  | 2665 | else | 
|  | 2666 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2667 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2668 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | continue | 
|  | 2670 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2672 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2673 | /* confdefs.h.  */ | 
|  | 2674 | _ACEOF | 
|  | 2675 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2676 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2677 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2678 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2679 | int | 
|  | 2680 | main () | 
|  | 2681 | { | 
|  | 2682 | exit (42); | 
|  | 2683 | ; | 
|  | 2684 | return 0; | 
|  | 2685 | } | 
|  | 2686 | _ACEOF | 
|  | 2687 | rm -f conftest.$ac_objext | 
|  | 2688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2689 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2690 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2691 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2692 | rm -f conftest.er1 | 
|  | 2693 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2695 | (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2696 | { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2697 | || test ! -s conftest.err' | 
|  | 2698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2699 | (eval $ac_try) 2>&5 | 
|  | 2700 | ac_status=$? | 
|  | 2701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2702 | (exit $ac_status); }; } && | 
|  | 2703 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2705 | (eval $ac_try) 2>&5 | 
|  | 2706 | ac_status=$? | 
|  | 2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2708 | (exit $ac_status); }; }; then | 
|  | 2709 | break | 
|  | 2710 | else | 
|  | 2711 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2712 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2713 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2714 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2716 | done | 
|  | 2717 | rm -f conftest* | 
|  | 2718 | if test -n "$ac_declaration"; then | 
|  | 2719 | echo '#ifdef __cplusplus' >>confdefs.h | 
|  | 2720 | echo $ac_declaration      >>confdefs.h | 
|  | 2721 | echo '#endif'             >>confdefs.h | 
|  | 2722 | fi | 
|  | 2723 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2724 | else | 
|  | 2725 | echo "$as_me: failed program was:" >&5 | 
|  | 2726 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2727 |  | 
|  | 2728 | fi | 
|  | 2729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2730 | ac_ext=c | 
|  | 2731 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 2732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 2733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 2734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 2735 |  | 
|  | 2736 |  | 
|  | 2737 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
|  | 2738 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | 
|  | 2739 | if test "${ac_cv_c_bigendian+set}" = set; then | 
|  | 2740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 2741 | else | 
|  | 2742 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 2743 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2744 | /* confdefs.h.  */ | 
|  | 2745 | _ACEOF | 
|  | 2746 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2747 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2748 | /* end confdefs.h.  */ | 
|  | 2749 | #include <sys/types.h> | 
|  | 2750 | #include <sys/param.h> | 
|  | 2751 |  | 
|  | 2752 | int | 
|  | 2753 | main () | 
|  | 2754 | { | 
|  | 2755 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
|  | 2756 | bogus endian macros | 
|  | 2757 | #endif | 
|  | 2758 |  | 
|  | 2759 | ; | 
|  | 2760 | return 0; | 
|  | 2761 | } | 
|  | 2762 | _ACEOF | 
|  | 2763 | rm -f conftest.$ac_objext | 
|  | 2764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2765 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2766 | ac_status=$? | 
|  | 2767 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2768 | rm -f conftest.er1 | 
|  | 2769 | cat conftest.err >&5 | 
|  | 2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2771 | (exit $ac_status); } && | 
|  | 2772 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2773 | || test ! -s conftest.err' | 
|  | 2774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2775 | (eval $ac_try) 2>&5 | 
|  | 2776 | ac_status=$? | 
|  | 2777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2778 | (exit $ac_status); }; } && | 
|  | 2779 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2781 | (eval $ac_try) 2>&5 | 
|  | 2782 | ac_status=$? | 
|  | 2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2784 | (exit $ac_status); }; }; then | 
|  | 2785 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
|  | 2786 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2787 | /* confdefs.h.  */ | 
|  | 2788 | _ACEOF | 
|  | 2789 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2790 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2791 | /* end confdefs.h.  */ | 
|  | 2792 | #include <sys/types.h> | 
|  | 2793 | #include <sys/param.h> | 
|  | 2794 |  | 
|  | 2795 | int | 
|  | 2796 | main () | 
|  | 2797 | { | 
|  | 2798 | #if BYTE_ORDER != BIG_ENDIAN | 
|  | 2799 | not big endian | 
|  | 2800 | #endif | 
|  | 2801 |  | 
|  | 2802 | ; | 
|  | 2803 | return 0; | 
|  | 2804 | } | 
|  | 2805 | _ACEOF | 
|  | 2806 | rm -f conftest.$ac_objext | 
|  | 2807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2808 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2809 | ac_status=$? | 
|  | 2810 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2811 | rm -f conftest.er1 | 
|  | 2812 | cat conftest.err >&5 | 
|  | 2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2814 | (exit $ac_status); } && | 
|  | 2815 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2816 | || test ! -s conftest.err' | 
|  | 2817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2818 | (eval $ac_try) 2>&5 | 
|  | 2819 | ac_status=$? | 
|  | 2820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2821 | (exit $ac_status); }; } && | 
|  | 2822 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2824 | (eval $ac_try) 2>&5 | 
|  | 2825 | ac_status=$? | 
|  | 2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2827 | (exit $ac_status); }; }; then | 
|  | 2828 | ac_cv_c_bigendian=yes | 
|  | 2829 | else | 
|  | 2830 | echo "$as_me: failed program was:" >&5 | 
|  | 2831 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2832 |  | 
|  | 2833 | ac_cv_c_bigendian=no | 
|  | 2834 | fi | 
|  | 2835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2836 | else | 
|  | 2837 | echo "$as_me: failed program was:" >&5 | 
|  | 2838 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2839 |  | 
|  | 2840 | # It does not; compile a test program. | 
|  | 2841 | if test "$cross_compiling" = yes; then | 
|  | 2842 | # try to guess the endianness by grepping values into an object file | 
|  | 2843 | ac_cv_c_bigendian=unknown | 
|  | 2844 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2845 | /* confdefs.h.  */ | 
|  | 2846 | _ACEOF | 
|  | 2847 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2848 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2849 | /* end confdefs.h.  */ | 
|  | 2850 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 2851 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 2852 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
|  | 2853 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 2854 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 2855 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
|  | 2856 | int | 
|  | 2857 | main () | 
|  | 2858 | { | 
|  | 2859 | _ascii (); _ebcdic (); | 
|  | 2860 | ; | 
|  | 2861 | return 0; | 
|  | 2862 | } | 
|  | 2863 | _ACEOF | 
|  | 2864 | rm -f conftest.$ac_objext | 
|  | 2865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 2866 | (eval $ac_compile) 2>conftest.er1 | 
|  | 2867 | ac_status=$? | 
|  | 2868 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 2869 | rm -f conftest.er1 | 
|  | 2870 | cat conftest.err >&5 | 
|  | 2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2872 | (exit $ac_status); } && | 
|  | 2873 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 2874 | || test ! -s conftest.err' | 
|  | 2875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2876 | (eval $ac_try) 2>&5 | 
|  | 2877 | ac_status=$? | 
|  | 2878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2879 | (exit $ac_status); }; } && | 
|  | 2880 | { ac_try='test -s conftest.$ac_objext' | 
|  | 2881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2882 | (eval $ac_try) 2>&5 | 
|  | 2883 | ac_status=$? | 
|  | 2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2885 | (exit $ac_status); }; }; then | 
|  | 2886 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
|  | 2887 | ac_cv_c_bigendian=yes | 
|  | 2888 | fi | 
|  | 2889 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 2890 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 2891 | ac_cv_c_bigendian=no | 
|  | 2892 | else | 
|  | 2893 | # finding both strings is unlikely to happen, but who knows? | 
|  | 2894 | ac_cv_c_bigendian=unknown | 
|  | 2895 | fi | 
|  | 2896 | fi | 
|  | 2897 | else | 
|  | 2898 | echo "$as_me: failed program was:" >&5 | 
|  | 2899 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2900 |  | 
|  | 2901 | fi | 
|  | 2902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2903 | else | 
|  | 2904 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 2905 | /* confdefs.h.  */ | 
|  | 2906 | _ACEOF | 
|  | 2907 | cat confdefs.h >>conftest.$ac_ext | 
|  | 2908 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 2909 | /* end confdefs.h.  */ | 
|  | 2910 | int | 
|  | 2911 | main () | 
|  | 2912 | { | 
|  | 2913 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 2914 | union | 
|  | 2915 | { | 
|  | 2916 | long l; | 
|  | 2917 | char c[sizeof (long)]; | 
|  | 2918 | } u; | 
|  | 2919 | u.l = 1; | 
|  | 2920 | exit (u.c[sizeof (long) - 1] == 1); | 
|  | 2921 | } | 
|  | 2922 | _ACEOF | 
|  | 2923 | rm -f conftest$ac_exeext | 
|  | 2924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 2925 | (eval $ac_link) 2>&5 | 
|  | 2926 | ac_status=$? | 
|  | 2927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 2929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 2930 | (eval $ac_try) 2>&5 | 
|  | 2931 | ac_status=$? | 
|  | 2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 2933 | (exit $ac_status); }; }; then | 
|  | 2934 | ac_cv_c_bigendian=no | 
|  | 2935 | else | 
|  | 2936 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 2937 | echo "$as_me: failed program was:" >&5 | 
|  | 2938 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2939 |  | 
|  | 2940 | ( exit $ac_status ) | 
|  | 2941 | ac_cv_c_bigendian=yes | 
|  | 2942 | fi | 
|  | 2943 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
|  | 2944 | fi | 
|  | 2945 | fi | 
|  | 2946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2947 | fi | 
|  | 2948 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
|  | 2949 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | 
|  | 2950 | case $ac_cv_c_bigendian in | 
|  | 2951 | yes) | 
|  | 2952 | ENDIAN=big | 
|  | 2953 | ;; | 
|  | 2954 | no) | 
|  | 2955 | ENDIAN=little | 
|  | 2956 | ;; | 
|  | 2957 | *) | 
|  | 2958 | { { echo "$as_me:$LINENO: error: unknown endianness | 
|  | 2959 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
|  | 2960 | echo "$as_me: error: unknown endianness | 
|  | 2961 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
|  | 2962 | { (exit 1); exit 1; }; } ;; | 
|  | 2963 | esac | 
|  | 2964 |  | 
|  | 2965 |  | 
|  | 2966 |  | 
|  | 2967 | # Check whether --enable-optimized or --disable-optimized was given. | 
|  | 2968 | if test "${enable_optimized+set}" = set; then | 
|  | 2969 | enableval="$enable_optimized" | 
|  | 2970 |  | 
|  | 2971 | else | 
|  | 2972 | enableval=no | 
|  | 2973 | fi; | 
|  | 2974 | if test ${enableval} = "no" ; then | 
|  | 2975 | ENABLE_OPTIMIZED= | 
|  | 2976 |  | 
|  | 2977 | else | 
|  | 2978 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
|  | 2979 |  | 
|  | 2980 | fi | 
|  | 2981 |  | 
|  | 2982 | # Check whether --enable-jit or --disable-jit was given. | 
|  | 2983 | if test "${enable_jit+set}" = set; then | 
|  | 2984 | enableval="$enable_jit" | 
|  | 2985 |  | 
|  | 2986 | else | 
|  | 2987 | enableval=default | 
|  | 2988 | fi; | 
|  | 2989 | if test ${enableval} = "no" | 
|  | 2990 | then | 
|  | 2991 | JIT= | 
|  | 2992 |  | 
|  | 2993 | else | 
| Reid Spencer | efbe40a | 2004-11-25 07:28:19 +0000 | [diff] [blame] | 2994 | case "$llvm_cv_target_arch" in | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2995 | x86)     JIT=TARGET_HAS_JIT=1 | 
|  | 2996 | ;; | 
|  | 2997 | Sparc)   JIT=TARGET_HAS_JIT=1 | 
|  | 2998 | ;; | 
|  | 2999 | PowerPC) JIT=TARGET_HAS_JIT=1 | 
|  | 3000 | ;; | 
| Reid Spencer | be41b25 | 2004-12-28 06:34:11 +0000 | [diff] [blame] | 3001 | x86_64)  JIT= | 
| Reid Spencer | 95ed843 | 2004-12-23 06:22:33 +0000 | [diff] [blame] | 3002 | ;; | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3003 | Alpha)   JIT= | 
|  | 3004 | ;; | 
|  | 3005 | IA64)    JIT= | 
|  | 3006 | ;; | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3007 | *)       JIT= | 
|  | 3008 | ;; | 
|  | 3009 | esac | 
|  | 3010 | fi | 
|  | 3011 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3012 | # Check whether --enable-doxygen or --disable-doxygen was given. | 
|  | 3013 | if test "${enable_doxygen+set}" = set; then | 
|  | 3014 | enableval="$enable_doxygen" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3015 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3016 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3017 | enableval=default | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3018 | fi; | 
|  | 3019 | case "$enableval" in | 
|  | 3020 | yes) ENABLE_DOXYGEN=1 | 
|  | 3021 | ;; | 
|  | 3022 | no)  ENABLE_DOXYGEN=0 | 
|  | 3023 | ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3024 | default) ENABLE_DOXYGEN=0 | 
|  | 3025 | ;; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3026 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 | 
|  | 3027 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} | 
|  | 3028 | { (exit 1); exit 1; }; } ;; | 
|  | 3029 | esac | 
|  | 3030 |  | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3031 | TARGETS_TO_BUILD="" | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3032 | # Check whether --enable-targets or --disable-targets was given. | 
|  | 3033 | if test "${enable_targets+set}" = set; then | 
|  | 3034 | enableval="$enable_targets" | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3035 |  | 
|  | 3036 | else | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3037 | enableval=all | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3038 | fi; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3039 | case "$enableval" in | 
| Misha Brukman | ccc1c16 | 2005-04-22 18:00:34 +0000 | [diff] [blame] | 3040 | all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3041 | host-only) | 
|  | 3042 | case "$llvm_cv_target_arch" in | 
|  | 3043 | x86)     TARGETS_TO_BUILD="X86" ;; | 
|  | 3044 | x86_64)  TARGETS_TO_BUILD="X86" ;; | 
|  | 3045 | Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;; | 
|  | 3046 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; | 
|  | 3047 | Alpha)   TARGETS_TO_BUILD="Alpha" ;; | 
|  | 3048 | IA64)    TARGETS_TO_BUILD="IA64" ;; | 
|  | 3049 | *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3050 | echo "$as_me: error: Can not set target to build" >&2;} | 
|  | 3051 | { (exit 1); exit 1; }; } ;; | 
| Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 3052 | esac | 
|  | 3053 | ;; | 
|  | 3054 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
|  | 3055 | case "$a_target" in | 
|  | 3056 | x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 3057 | x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
|  | 3058 | sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;; | 
|  | 3059 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
|  | 3060 | alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; | 
|  | 3061 | ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; | 
|  | 3062 | skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";; | 
|  | 3063 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 | 
|  | 3064 | echo "$as_me: error: Unrecognized target $a_target" >&2;} | 
|  | 3065 | { (exit 1); exit 1; }; } ;; | 
|  | 3066 | esac | 
|  | 3067 | done | 
|  | 3068 | ;; | 
|  | 3069 | esac | 
| Reid Spencer | 675f092 | 2005-04-22 17:06:18 +0000 | [diff] [blame] | 3070 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3071 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD | 
|  | 3072 |  | 
|  | 3073 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3074 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 3075 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. | 
|  | 3076 | if test "${with_llvmgccdir+set}" = set; then | 
|  | 3077 | withval="$with_llvmgccdir" | 
|  | 3078 |  | 
|  | 3079 | else | 
|  | 3080 | withval=default | 
|  | 3081 | fi; | 
|  | 3082 | case "$withval" in | 
|  | 3083 | default) WITH_LLVMGCCDIR=default ;; | 
|  | 3084 | /*)      WITH_LLVMGCCDIR=$withval ;; | 
|  | 3085 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 | 
|  | 3086 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} | 
|  | 3087 | { (exit 1); exit 1; }; } ;; | 
|  | 3088 | esac | 
|  | 3089 |  | 
|  | 3090 |  | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 3091 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3092 | ac_ext=c | 
|  | 3093 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3097 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
|  | 3098 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
|  | 3099 | # On Suns, sometimes $CPP names a directory. | 
|  | 3100 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 3101 | CPP= | 
|  | 3102 | fi | 
|  | 3103 | if test -z "$CPP"; then | 
|  | 3104 | if test "${ac_cv_prog_CPP+set}" = set; then | 
|  | 3105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3106 | else | 
|  | 3107 | # Double quotes because CPP needs to be expanded | 
|  | 3108 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 3109 | do | 
|  | 3110 | ac_preproc_ok=false | 
|  | 3111 | for ac_c_preproc_warn_flag in '' yes | 
|  | 3112 | do | 
|  | 3113 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 3114 | # with a fresh cross-compiler works. | 
|  | 3115 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 3116 | # <limits.h> exists even on freestanding compilers. | 
|  | 3117 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 3118 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 3119 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3120 | /* confdefs.h.  */ | 
|  | 3121 | _ACEOF | 
|  | 3122 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3123 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3124 | /* end confdefs.h.  */ | 
|  | 3125 | #ifdef __STDC__ | 
|  | 3126 | # include <limits.h> | 
|  | 3127 | #else | 
|  | 3128 | # include <assert.h> | 
|  | 3129 | #endif | 
|  | 3130 | Syntax error | 
|  | 3131 | _ACEOF | 
|  | 3132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3134 | ac_status=$? | 
|  | 3135 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3136 | rm -f conftest.er1 | 
|  | 3137 | cat conftest.err >&5 | 
|  | 3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3139 | (exit $ac_status); } >/dev/null; then | 
|  | 3140 | if test -s conftest.err; then | 
|  | 3141 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3142 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3143 | else | 
|  | 3144 | ac_cpp_err= | 
|  | 3145 | fi | 
|  | 3146 | else | 
|  | 3147 | ac_cpp_err=yes | 
|  | 3148 | fi | 
|  | 3149 | if test -z "$ac_cpp_err"; then | 
|  | 3150 | : | 
|  | 3151 | else | 
|  | 3152 | echo "$as_me: failed program was:" >&5 | 
|  | 3153 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3154 |  | 
|  | 3155 | # Broken: fails on valid input. | 
|  | 3156 | continue | 
|  | 3157 | fi | 
|  | 3158 | rm -f conftest.err conftest.$ac_ext | 
|  | 3159 |  | 
|  | 3160 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 3161 | # can be detected and how. | 
|  | 3162 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3163 | /* confdefs.h.  */ | 
|  | 3164 | _ACEOF | 
|  | 3165 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3166 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3167 | /* end confdefs.h.  */ | 
|  | 3168 | #include <ac_nonexistent.h> | 
|  | 3169 | _ACEOF | 
|  | 3170 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3171 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3172 | ac_status=$? | 
|  | 3173 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3174 | rm -f conftest.er1 | 
|  | 3175 | cat conftest.err >&5 | 
|  | 3176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3177 | (exit $ac_status); } >/dev/null; then | 
|  | 3178 | if test -s conftest.err; then | 
|  | 3179 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3180 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3181 | else | 
|  | 3182 | ac_cpp_err= | 
|  | 3183 | fi | 
|  | 3184 | else | 
|  | 3185 | ac_cpp_err=yes | 
|  | 3186 | fi | 
|  | 3187 | if test -z "$ac_cpp_err"; then | 
|  | 3188 | # Broken: success on invalid input. | 
|  | 3189 | continue | 
|  | 3190 | else | 
|  | 3191 | echo "$as_me: failed program was:" >&5 | 
|  | 3192 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3193 |  | 
|  | 3194 | # Passes both tests. | 
|  | 3195 | ac_preproc_ok=: | 
|  | 3196 | break | 
|  | 3197 | fi | 
|  | 3198 | rm -f conftest.err conftest.$ac_ext | 
|  | 3199 |  | 
|  | 3200 | done | 
|  | 3201 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3202 | rm -f conftest.err conftest.$ac_ext | 
|  | 3203 | if $ac_preproc_ok; then | 
|  | 3204 | break | 
|  | 3205 | fi | 
|  | 3206 |  | 
|  | 3207 | done | 
|  | 3208 | ac_cv_prog_CPP=$CPP | 
|  | 3209 |  | 
|  | 3210 | fi | 
|  | 3211 | CPP=$ac_cv_prog_CPP | 
|  | 3212 | else | 
|  | 3213 | ac_cv_prog_CPP=$CPP | 
|  | 3214 | fi | 
|  | 3215 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
|  | 3216 | echo "${ECHO_T}$CPP" >&6 | 
|  | 3217 | ac_preproc_ok=false | 
|  | 3218 | for ac_c_preproc_warn_flag in '' yes | 
|  | 3219 | do | 
|  | 3220 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 3221 | # with a fresh cross-compiler works. | 
|  | 3222 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 3223 | # <limits.h> exists even on freestanding compilers. | 
|  | 3224 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 3225 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 3226 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3227 | /* confdefs.h.  */ | 
|  | 3228 | _ACEOF | 
|  | 3229 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3230 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3231 | /* end confdefs.h.  */ | 
|  | 3232 | #ifdef __STDC__ | 
|  | 3233 | # include <limits.h> | 
|  | 3234 | #else | 
|  | 3235 | # include <assert.h> | 
|  | 3236 | #endif | 
|  | 3237 | Syntax error | 
|  | 3238 | _ACEOF | 
|  | 3239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3241 | ac_status=$? | 
|  | 3242 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3243 | rm -f conftest.er1 | 
|  | 3244 | cat conftest.err >&5 | 
|  | 3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3246 | (exit $ac_status); } >/dev/null; then | 
|  | 3247 | if test -s conftest.err; then | 
|  | 3248 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3249 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3250 | else | 
|  | 3251 | ac_cpp_err= | 
|  | 3252 | fi | 
|  | 3253 | else | 
|  | 3254 | ac_cpp_err=yes | 
|  | 3255 | fi | 
|  | 3256 | if test -z "$ac_cpp_err"; then | 
|  | 3257 | : | 
|  | 3258 | else | 
|  | 3259 | echo "$as_me: failed program was:" >&5 | 
|  | 3260 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3261 |  | 
|  | 3262 | # Broken: fails on valid input. | 
|  | 3263 | continue | 
|  | 3264 | fi | 
|  | 3265 | rm -f conftest.err conftest.$ac_ext | 
|  | 3266 |  | 
|  | 3267 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 3268 | # can be detected and how. | 
|  | 3269 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3270 | /* confdefs.h.  */ | 
|  | 3271 | _ACEOF | 
|  | 3272 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3273 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3274 | /* end confdefs.h.  */ | 
|  | 3275 | #include <ac_nonexistent.h> | 
|  | 3276 | _ACEOF | 
|  | 3277 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 3278 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 3279 | ac_status=$? | 
|  | 3280 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3281 | rm -f conftest.er1 | 
|  | 3282 | cat conftest.err >&5 | 
|  | 3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3284 | (exit $ac_status); } >/dev/null; then | 
|  | 3285 | if test -s conftest.err; then | 
|  | 3286 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 3287 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 3288 | else | 
|  | 3289 | ac_cpp_err= | 
|  | 3290 | fi | 
|  | 3291 | else | 
|  | 3292 | ac_cpp_err=yes | 
|  | 3293 | fi | 
|  | 3294 | if test -z "$ac_cpp_err"; then | 
|  | 3295 | # Broken: success on invalid input. | 
|  | 3296 | continue | 
|  | 3297 | else | 
|  | 3298 | echo "$as_me: failed program was:" >&5 | 
|  | 3299 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3300 |  | 
|  | 3301 | # Passes both tests. | 
|  | 3302 | ac_preproc_ok=: | 
|  | 3303 | break | 
|  | 3304 | fi | 
|  | 3305 | rm -f conftest.err conftest.$ac_ext | 
|  | 3306 |  | 
|  | 3307 | done | 
|  | 3308 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 3309 | rm -f conftest.err conftest.$ac_ext | 
|  | 3310 | if $ac_preproc_ok; then | 
|  | 3311 | : | 
|  | 3312 | else | 
|  | 3313 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3314 | See \`config.log' for more details." >&5 | 
|  | 3315 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
|  | 3316 | See \`config.log' for more details." >&2;} | 
|  | 3317 | { (exit 1); exit 1; }; } | 
|  | 3318 | fi | 
|  | 3319 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3320 | ac_ext=c | 
|  | 3321 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3325 |  | 
|  | 3326 | ac_ext=c | 
|  | 3327 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3331 | if test -n "$ac_tool_prefix"; then | 
|  | 3332 | for ac_prog in gcc | 
|  | 3333 | do | 
|  | 3334 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3335 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 3336 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3338 | if test "${ac_cv_prog_CC+set}" = set; then | 
|  | 3339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3340 | else | 
|  | 3341 | if test -n "$CC"; then | 
|  | 3342 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 3343 | else | 
|  | 3344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3345 | for as_dir in $PATH | 
|  | 3346 | do | 
|  | 3347 | IFS=$as_save_IFS | 
|  | 3348 | test -z "$as_dir" && as_dir=. | 
|  | 3349 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3350 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3351 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
|  | 3352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3353 | break 2 | 
|  | 3354 | fi | 
|  | 3355 | done | 
|  | 3356 | done | 
|  | 3357 |  | 
|  | 3358 | fi | 
|  | 3359 | fi | 
|  | 3360 | CC=$ac_cv_prog_CC | 
|  | 3361 | if test -n "$CC"; then | 
|  | 3362 | echo "$as_me:$LINENO: result: $CC" >&5 | 
|  | 3363 | echo "${ECHO_T}$CC" >&6 | 
|  | 3364 | else | 
|  | 3365 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3366 | echo "${ECHO_T}no" >&6 | 
|  | 3367 | fi | 
|  | 3368 |  | 
|  | 3369 | test -n "$CC" && break | 
|  | 3370 | done | 
|  | 3371 | fi | 
|  | 3372 | if test -z "$CC"; then | 
|  | 3373 | ac_ct_CC=$CC | 
|  | 3374 | for ac_prog in gcc | 
|  | 3375 | do | 
|  | 3376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3377 | set dummy $ac_prog; ac_word=$2 | 
|  | 3378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3380 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
|  | 3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3382 | else | 
|  | 3383 | if test -n "$ac_ct_CC"; then | 
|  | 3384 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 3385 | else | 
|  | 3386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3387 | for as_dir in $PATH | 
|  | 3388 | do | 
|  | 3389 | IFS=$as_save_IFS | 
|  | 3390 | test -z "$as_dir" && as_dir=. | 
|  | 3391 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3393 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
|  | 3394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3395 | break 2 | 
|  | 3396 | fi | 
|  | 3397 | done | 
|  | 3398 | done | 
|  | 3399 |  | 
|  | 3400 | fi | 
|  | 3401 | fi | 
|  | 3402 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 3403 | if test -n "$ac_ct_CC"; then | 
|  | 3404 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
|  | 3405 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
|  | 3406 | else | 
|  | 3407 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3408 | echo "${ECHO_T}no" >&6 | 
|  | 3409 | fi | 
|  | 3410 |  | 
|  | 3411 | test -n "$ac_ct_CC" && break | 
|  | 3412 | done | 
|  | 3413 |  | 
|  | 3414 | CC=$ac_ct_CC | 
|  | 3415 | fi | 
|  | 3416 |  | 
|  | 3417 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3418 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
|  | 3419 | See \`config.log' for more details." >&5 | 
|  | 3420 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
|  | 3421 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3422 | { (exit 1); exit 1; }; } | 
|  | 3423 |  | 
|  | 3424 | # Provide some information about the compiler. | 
|  | 3425 | echo "$as_me:$LINENO:" \ | 
|  | 3426 | "checking for C compiler version" >&5 | 
|  | 3427 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 3428 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 3429 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 3430 | ac_status=$? | 
|  | 3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3432 | (exit $ac_status); } | 
|  | 3433 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 3434 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 3435 | ac_status=$? | 
|  | 3436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3437 | (exit $ac_status); } | 
|  | 3438 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 3439 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 3440 | ac_status=$? | 
|  | 3441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3442 | (exit $ac_status); } | 
|  | 3443 |  | 
|  | 3444 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
|  | 3445 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
|  | 3446 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
|  | 3447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3448 | else | 
|  | 3449 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3450 | /* confdefs.h.  */ | 
|  | 3451 | _ACEOF | 
|  | 3452 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3453 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3454 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3455 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3456 | int | 
|  | 3457 | main () | 
|  | 3458 | { | 
|  | 3459 | #ifndef __GNUC__ | 
|  | 3460 | choke me | 
|  | 3461 | #endif | 
|  | 3462 |  | 
|  | 3463 | ; | 
|  | 3464 | return 0; | 
|  | 3465 | } | 
|  | 3466 | _ACEOF | 
|  | 3467 | rm -f conftest.$ac_objext | 
|  | 3468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3469 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3470 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3471 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3472 | rm -f conftest.er1 | 
|  | 3473 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3475 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3476 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3477 | || test ! -s conftest.err' | 
|  | 3478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3479 | (eval $ac_try) 2>&5 | 
|  | 3480 | ac_status=$? | 
|  | 3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3482 | (exit $ac_status); }; } && | 
|  | 3483 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3485 | (eval $ac_try) 2>&5 | 
|  | 3486 | ac_status=$? | 
|  | 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3488 | (exit $ac_status); }; }; then | 
|  | 3489 | ac_compiler_gnu=yes | 
|  | 3490 | else | 
|  | 3491 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3492 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3493 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3494 | ac_compiler_gnu=no | 
|  | 3495 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3497 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 3498 |  | 
|  | 3499 | fi | 
|  | 3500 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 3501 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
|  | 3502 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 3503 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 3504 | ac_save_CFLAGS=$CFLAGS | 
|  | 3505 | CFLAGS="-g" | 
|  | 3506 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
|  | 3507 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
|  | 3508 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
|  | 3509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3510 | else | 
|  | 3511 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3512 | /* confdefs.h.  */ | 
|  | 3513 | _ACEOF | 
|  | 3514 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3515 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3516 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3517 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3518 | int | 
|  | 3519 | main () | 
|  | 3520 | { | 
|  | 3521 |  | 
|  | 3522 | ; | 
|  | 3523 | return 0; | 
|  | 3524 | } | 
|  | 3525 | _ACEOF | 
|  | 3526 | rm -f conftest.$ac_objext | 
|  | 3527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3528 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3529 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3530 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3531 | rm -f conftest.er1 | 
|  | 3532 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3534 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3535 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3536 | || test ! -s conftest.err' | 
|  | 3537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3538 | (eval $ac_try) 2>&5 | 
|  | 3539 | ac_status=$? | 
|  | 3540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3541 | (exit $ac_status); }; } && | 
|  | 3542 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3544 | (eval $ac_try) 2>&5 | 
|  | 3545 | ac_status=$? | 
|  | 3546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3547 | (exit $ac_status); }; }; then | 
|  | 3548 | ac_cv_prog_cc_g=yes | 
|  | 3549 | else | 
|  | 3550 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3551 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3552 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3553 | ac_cv_prog_cc_g=no | 
|  | 3554 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3556 | fi | 
|  | 3557 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
|  | 3558 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
|  | 3559 | if test "$ac_test_CFLAGS" = set; then | 
|  | 3560 | CFLAGS=$ac_save_CFLAGS | 
|  | 3561 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 3562 | if test "$GCC" = yes; then | 
|  | 3563 | CFLAGS="-g -O2" | 
|  | 3564 | else | 
|  | 3565 | CFLAGS="-g" | 
|  | 3566 | fi | 
|  | 3567 | else | 
|  | 3568 | if test "$GCC" = yes; then | 
|  | 3569 | CFLAGS="-O2" | 
|  | 3570 | else | 
|  | 3571 | CFLAGS= | 
|  | 3572 | fi | 
|  | 3573 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3574 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
|  | 3575 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
|  | 3576 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
|  | 3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3578 | else | 
|  | 3579 | ac_cv_prog_cc_stdc=no | 
|  | 3580 | ac_save_CC=$CC | 
|  | 3581 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3582 | /* confdefs.h.  */ | 
|  | 3583 | _ACEOF | 
|  | 3584 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3585 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3586 | /* end confdefs.h.  */ | 
|  | 3587 | #include <stdarg.h> | 
|  | 3588 | #include <stdio.h> | 
|  | 3589 | #include <sys/types.h> | 
|  | 3590 | #include <sys/stat.h> | 
|  | 3591 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 3592 | struct buf { int x; }; | 
|  | 3593 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 3594 | static char *e (p, i) | 
|  | 3595 | char **p; | 
|  | 3596 | int i; | 
|  | 3597 | { | 
|  | 3598 | return p[i]; | 
|  | 3599 | } | 
|  | 3600 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 3601 | { | 
|  | 3602 | char *s; | 
|  | 3603 | va_list v; | 
|  | 3604 | va_start (v,p); | 
|  | 3605 | s = g (p, va_arg (v,int)); | 
|  | 3606 | va_end (v); | 
|  | 3607 | return s; | 
|  | 3608 | } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3609 |  | 
|  | 3610 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 3611 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 3612 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 3613 | as 'x'.  The following induces an error, until -std1 is added to get | 
|  | 3614 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 3615 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 3616 | that's true only with -std1.  */ | 
|  | 3617 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 3618 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3619 | int test (int i, double x); | 
|  | 3620 | struct s1 {int (*f) (int a);}; | 
|  | 3621 | struct s2 {int (*f) (double a);}; | 
|  | 3622 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 3623 | int argc; | 
|  | 3624 | char **argv; | 
|  | 3625 | int | 
|  | 3626 | main () | 
|  | 3627 | { | 
|  | 3628 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 3629 | ; | 
|  | 3630 | return 0; | 
|  | 3631 | } | 
|  | 3632 | _ACEOF | 
|  | 3633 | # Don't try gcc -ansi; that turns off useful extensions and | 
|  | 3634 | # breaks some systems' header files. | 
|  | 3635 | # AIX			-qlanglvl=ansi | 
|  | 3636 | # Ultrix and OSF/1	-std1 | 
|  | 3637 | # HP-UX 10.20 and later	-Ae | 
|  | 3638 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
|  | 3639 | # SVR4			-Xc -D__EXTENSIONS__ | 
|  | 3640 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 3641 | do | 
|  | 3642 | CC="$ac_save_CC $ac_arg" | 
|  | 3643 | rm -f conftest.$ac_objext | 
|  | 3644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3645 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3646 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3647 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3648 | rm -f conftest.er1 | 
|  | 3649 | cat conftest.err >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3651 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3652 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3653 | || test ! -s conftest.err' | 
|  | 3654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3655 | (eval $ac_try) 2>&5 | 
|  | 3656 | ac_status=$? | 
|  | 3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3658 | (exit $ac_status); }; } && | 
|  | 3659 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3661 | (eval $ac_try) 2>&5 | 
|  | 3662 | ac_status=$? | 
|  | 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3664 | (exit $ac_status); }; }; then | 
|  | 3665 | ac_cv_prog_cc_stdc=$ac_arg | 
|  | 3666 | break | 
|  | 3667 | else | 
|  | 3668 | echo "$as_me: failed program was:" >&5 | 
|  | 3669 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3670 |  | 
|  | 3671 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3672 | rm -f conftest.err conftest.$ac_objext | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3673 | done | 
|  | 3674 | rm -f conftest.$ac_ext conftest.$ac_objext | 
|  | 3675 | CC=$ac_save_CC | 
|  | 3676 |  | 
|  | 3677 | fi | 
|  | 3678 |  | 
|  | 3679 | case "x$ac_cv_prog_cc_stdc" in | 
|  | 3680 | x|xno) | 
|  | 3681 | echo "$as_me:$LINENO: result: none needed" >&5 | 
|  | 3682 | echo "${ECHO_T}none needed" >&6 ;; | 
|  | 3683 | *) | 
|  | 3684 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
|  | 3685 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
|  | 3686 | CC="$CC $ac_cv_prog_cc_stdc" ;; | 
|  | 3687 | esac | 
|  | 3688 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3689 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
|  | 3690 | # in C++ we need to declare it.  In case someone uses the same compiler | 
|  | 3691 | # for both compiling C and C++ we need to have the C++ compiler decide | 
|  | 3692 | # the declaration of exit, since it's the most demanding environment. | 
|  | 3693 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 3694 | #ifndef __cplusplus | 
|  | 3695 | choke me | 
|  | 3696 | #endif | 
|  | 3697 | _ACEOF | 
|  | 3698 | rm -f conftest.$ac_objext | 
|  | 3699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3700 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3701 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3702 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3703 | rm -f conftest.er1 | 
|  | 3704 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3706 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3707 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3708 | || test ! -s conftest.err' | 
|  | 3709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3710 | (eval $ac_try) 2>&5 | 
|  | 3711 | ac_status=$? | 
|  | 3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3713 | (exit $ac_status); }; } && | 
|  | 3714 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3716 | (eval $ac_try) 2>&5 | 
|  | 3717 | ac_status=$? | 
|  | 3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3719 | (exit $ac_status); }; }; then | 
|  | 3720 | for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3721 | '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3722 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
|  | 3723 | 'extern "C" void std::exit (int); using std::exit;' \ | 
|  | 3724 | 'extern "C" void exit (int) throw ();' \ | 
|  | 3725 | 'extern "C" void exit (int);' \ | 
|  | 3726 | 'void exit (int);' | 
|  | 3727 | do | 
|  | 3728 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3729 | /* confdefs.h.  */ | 
|  | 3730 | _ACEOF | 
|  | 3731 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3732 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3733 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 3734 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3735 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3736 | int | 
|  | 3737 | main () | 
|  | 3738 | { | 
|  | 3739 | exit (42); | 
|  | 3740 | ; | 
|  | 3741 | return 0; | 
|  | 3742 | } | 
|  | 3743 | _ACEOF | 
|  | 3744 | rm -f conftest.$ac_objext | 
|  | 3745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3746 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3747 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3748 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3749 | rm -f conftest.er1 | 
|  | 3750 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3752 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3753 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3754 | || test ! -s conftest.err' | 
|  | 3755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3756 | (eval $ac_try) 2>&5 | 
|  | 3757 | ac_status=$? | 
|  | 3758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3759 | (exit $ac_status); }; } && | 
|  | 3760 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3762 | (eval $ac_try) 2>&5 | 
|  | 3763 | ac_status=$? | 
|  | 3764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3765 | (exit $ac_status); }; }; then | 
|  | 3766 | : | 
|  | 3767 | else | 
|  | 3768 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3769 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3770 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3771 | continue | 
|  | 3772 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3774 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3775 | /* confdefs.h.  */ | 
|  | 3776 | _ACEOF | 
|  | 3777 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3778 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3779 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3780 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3781 | int | 
|  | 3782 | main () | 
|  | 3783 | { | 
|  | 3784 | exit (42); | 
|  | 3785 | ; | 
|  | 3786 | return 0; | 
|  | 3787 | } | 
|  | 3788 | _ACEOF | 
|  | 3789 | rm -f conftest.$ac_objext | 
|  | 3790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3791 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3792 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3793 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 3794 | rm -f conftest.er1 | 
|  | 3795 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3797 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3798 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 3799 | || test ! -s conftest.err' | 
|  | 3800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3801 | (eval $ac_try) 2>&5 | 
|  | 3802 | ac_status=$? | 
|  | 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3804 | (exit $ac_status); }; } && | 
|  | 3805 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3807 | (eval $ac_try) 2>&5 | 
|  | 3808 | ac_status=$? | 
|  | 3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3810 | (exit $ac_status); }; }; then | 
|  | 3811 | break | 
|  | 3812 | else | 
|  | 3813 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3814 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3815 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3816 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3818 | done | 
|  | 3819 | rm -f conftest* | 
|  | 3820 | if test -n "$ac_declaration"; then | 
|  | 3821 | echo '#ifdef __cplusplus' >>confdefs.h | 
|  | 3822 | echo $ac_declaration      >>confdefs.h | 
|  | 3823 | echo '#endif'             >>confdefs.h | 
|  | 3824 | fi | 
|  | 3825 |  | 
|  | 3826 | else | 
|  | 3827 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3828 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 3829 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3830 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3832 | ac_ext=c | 
|  | 3833 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3834 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3835 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3836 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3837 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3838 | ac_ext=cc | 
|  | 3839 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 3840 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3841 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3842 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 3843 | if test -n "$ac_tool_prefix"; then | 
|  | 3844 | for ac_prog in $CCC g++ | 
|  | 3845 | do | 
|  | 3846 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 3847 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 3848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3850 | if test "${ac_cv_prog_CXX+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3852 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3853 | if test -n "$CXX"; then | 
|  | 3854 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 3855 | else | 
|  | 3856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3857 | for as_dir in $PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3858 | do | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3859 | IFS=$as_save_IFS | 
|  | 3860 | test -z "$as_dir" && as_dir=. | 
|  | 3861 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3862 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3863 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
|  | 3864 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3865 | break 2 | 
|  | 3866 | fi | 
|  | 3867 | done | 
|  | 3868 | done | 
|  | 3869 |  | 
|  | 3870 | fi | 
|  | 3871 | fi | 
|  | 3872 | CXX=$ac_cv_prog_CXX | 
|  | 3873 | if test -n "$CXX"; then | 
|  | 3874 | echo "$as_me:$LINENO: result: $CXX" >&5 | 
|  | 3875 | echo "${ECHO_T}$CXX" >&6 | 
|  | 3876 | else | 
|  | 3877 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3878 | echo "${ECHO_T}no" >&6 | 
|  | 3879 | fi | 
|  | 3880 |  | 
|  | 3881 | test -n "$CXX" && break | 
|  | 3882 | done | 
|  | 3883 | fi | 
|  | 3884 | if test -z "$CXX"; then | 
|  | 3885 | ac_ct_CXX=$CXX | 
|  | 3886 | for ac_prog in $CCC g++ | 
|  | 3887 | do | 
|  | 3888 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3889 | set dummy $ac_prog; ac_word=$2 | 
|  | 3890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 3891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 3892 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
|  | 3893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3894 | else | 
|  | 3895 | if test -n "$ac_ct_CXX"; then | 
|  | 3896 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 3897 | else | 
|  | 3898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3899 | for as_dir in $PATH | 
|  | 3900 | do | 
|  | 3901 | IFS=$as_save_IFS | 
|  | 3902 | test -z "$as_dir" && as_dir=. | 
|  | 3903 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 3905 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 3906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3907 | break 2 | 
|  | 3908 | fi | 
|  | 3909 | done | 
|  | 3910 | done | 
|  | 3911 |  | 
|  | 3912 | fi | 
|  | 3913 | fi | 
|  | 3914 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 3915 | if test -n "$ac_ct_CXX"; then | 
|  | 3916 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
|  | 3917 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
|  | 3918 | else | 
|  | 3919 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 3920 | echo "${ECHO_T}no" >&6 | 
|  | 3921 | fi | 
|  | 3922 |  | 
|  | 3923 | test -n "$ac_ct_CXX" && break | 
|  | 3924 | done | 
|  | 3925 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
|  | 3926 |  | 
|  | 3927 | CXX=$ac_ct_CXX | 
|  | 3928 | fi | 
|  | 3929 |  | 
|  | 3930 |  | 
|  | 3931 | # Provide some information about the compiler. | 
|  | 3932 | echo "$as_me:$LINENO:" \ | 
|  | 3933 | "checking for C++ compiler version" >&5 | 
|  | 3934 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 3935 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 3936 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 3937 | ac_status=$? | 
|  | 3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3939 | (exit $ac_status); } | 
|  | 3940 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 3941 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 3942 | ac_status=$? | 
|  | 3943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3944 | (exit $ac_status); } | 
|  | 3945 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 3946 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 3947 | ac_status=$? | 
|  | 3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3949 | (exit $ac_status); } | 
|  | 3950 |  | 
|  | 3951 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
|  | 3952 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
|  | 3953 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
|  | 3954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 3955 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3956 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3957 | /* confdefs.h.  */ | 
|  | 3958 | _ACEOF | 
|  | 3959 | cat confdefs.h >>conftest.$ac_ext | 
|  | 3960 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 3961 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3962 |  | 
|  | 3963 | int | 
|  | 3964 | main () | 
|  | 3965 | { | 
|  | 3966 | #ifndef __GNUC__ | 
|  | 3967 | choke me | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3968 | #endif | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3969 |  | 
|  | 3970 | ; | 
|  | 3971 | return 0; | 
|  | 3972 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3973 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3974 | rm -f conftest.$ac_objext | 
|  | 3975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 3976 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3977 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3978 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3979 | rm -f conftest.er1 | 
|  | 3980 | cat conftest.err >&5 | 
|  | 3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3982 | (exit $ac_status); } && | 
|  | 3983 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 3984 | || test ! -s conftest.err' | 
|  | 3985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3986 | (eval $ac_try) 2>&5 | 
|  | 3987 | ac_status=$? | 
|  | 3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3989 | (exit $ac_status); }; } && | 
|  | 3990 | { ac_try='test -s conftest.$ac_objext' | 
|  | 3991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 3992 | (eval $ac_try) 2>&5 | 
|  | 3993 | ac_status=$? | 
|  | 3994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 3995 | (exit $ac_status); }; }; then | 
|  | 3996 | ac_compiler_gnu=yes | 
|  | 3997 | else | 
|  | 3998 | echo "$as_me: failed program was:" >&5 | 
|  | 3999 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4000 |  | 
|  | 4001 | ac_compiler_gnu=no | 
|  | 4002 | fi | 
|  | 4003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4004 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 4005 |  | 
|  | 4006 | fi | 
|  | 4007 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
|  | 4008 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
|  | 4009 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
|  | 4010 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 4011 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 4012 | CXXFLAGS="-g" | 
|  | 4013 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
|  | 4014 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
|  | 4015 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
|  | 4016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4017 | else | 
|  | 4018 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4019 | /* confdefs.h.  */ | 
|  | 4020 | _ACEOF | 
|  | 4021 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4022 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4023 | /* end confdefs.h.  */ | 
|  | 4024 |  | 
|  | 4025 | int | 
|  | 4026 | main () | 
|  | 4027 | { | 
|  | 4028 |  | 
|  | 4029 | ; | 
|  | 4030 | return 0; | 
|  | 4031 | } | 
|  | 4032 | _ACEOF | 
|  | 4033 | rm -f conftest.$ac_objext | 
|  | 4034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4035 | (eval $ac_compile) 2>conftest.er1 | 
|  | 4036 | ac_status=$? | 
|  | 4037 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4038 | rm -f conftest.er1 | 
|  | 4039 | cat conftest.err >&5 | 
|  | 4040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4041 | (exit $ac_status); } && | 
|  | 4042 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 4043 | || test ! -s conftest.err' | 
|  | 4044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4045 | (eval $ac_try) 2>&5 | 
|  | 4046 | ac_status=$? | 
|  | 4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4048 | (exit $ac_status); }; } && | 
|  | 4049 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4051 | (eval $ac_try) 2>&5 | 
|  | 4052 | ac_status=$? | 
|  | 4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4054 | (exit $ac_status); }; }; then | 
|  | 4055 | ac_cv_prog_cxx_g=yes | 
|  | 4056 | else | 
|  | 4057 | echo "$as_me: failed program was:" >&5 | 
|  | 4058 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4059 |  | 
|  | 4060 | ac_cv_prog_cxx_g=no | 
|  | 4061 | fi | 
|  | 4062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4063 | fi | 
|  | 4064 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
|  | 4065 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
|  | 4066 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 4067 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 4068 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 4069 | if test "$GXX" = yes; then | 
|  | 4070 | CXXFLAGS="-g -O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4071 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4072 | CXXFLAGS="-g" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4073 | fi | 
|  | 4074 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4075 | if test "$GXX" = yes; then | 
|  | 4076 | CXXFLAGS="-O2" | 
|  | 4077 | else | 
|  | 4078 | CXXFLAGS= | 
|  | 4079 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4080 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4081 | for ac_declaration in \ | 
|  | 4082 | '' \ | 
|  | 4083 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
|  | 4084 | 'extern "C" void std::exit (int); using std::exit;' \ | 
|  | 4085 | 'extern "C" void exit (int) throw ();' \ | 
|  | 4086 | 'extern "C" void exit (int);' \ | 
|  | 4087 | 'void exit (int);' | 
|  | 4088 | do | 
|  | 4089 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4090 | /* confdefs.h.  */ | 
|  | 4091 | _ACEOF | 
|  | 4092 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4093 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4094 | /* end confdefs.h.  */ | 
|  | 4095 | $ac_declaration | 
|  | 4096 | #include <stdlib.h> | 
|  | 4097 | int | 
|  | 4098 | main () | 
|  | 4099 | { | 
|  | 4100 | exit (42); | 
|  | 4101 | ; | 
|  | 4102 | return 0; | 
|  | 4103 | } | 
|  | 4104 | _ACEOF | 
|  | 4105 | rm -f conftest.$ac_objext | 
|  | 4106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4107 | (eval $ac_compile) 2>conftest.er1 | 
|  | 4108 | ac_status=$? | 
|  | 4109 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4110 | rm -f conftest.er1 | 
|  | 4111 | cat conftest.err >&5 | 
|  | 4112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4113 | (exit $ac_status); } && | 
|  | 4114 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 4115 | || test ! -s conftest.err' | 
|  | 4116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4117 | (eval $ac_try) 2>&5 | 
|  | 4118 | ac_status=$? | 
|  | 4119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4120 | (exit $ac_status); }; } && | 
|  | 4121 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4123 | (eval $ac_try) 2>&5 | 
|  | 4124 | ac_status=$? | 
|  | 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4126 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4127 | : | 
|  | 4128 | else | 
|  | 4129 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4130 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4131 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4132 | continue | 
|  | 4133 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4135 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4136 | /* confdefs.h.  */ | 
|  | 4137 | _ACEOF | 
|  | 4138 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4139 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4140 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4141 | $ac_declaration | 
|  | 4142 | int | 
|  | 4143 | main () | 
|  | 4144 | { | 
|  | 4145 | exit (42); | 
|  | 4146 | ; | 
|  | 4147 | return 0; | 
|  | 4148 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4149 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4150 | rm -f conftest.$ac_objext | 
|  | 4151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 4152 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4153 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4154 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4155 | rm -f conftest.er1 | 
|  | 4156 | cat conftest.err >&5 | 
|  | 4157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4158 | (exit $ac_status); } && | 
|  | 4159 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 4160 | || test ! -s conftest.err' | 
|  | 4161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4162 | (eval $ac_try) 2>&5 | 
|  | 4163 | ac_status=$? | 
|  | 4164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4165 | (exit $ac_status); }; } && | 
|  | 4166 | { ac_try='test -s conftest.$ac_objext' | 
|  | 4167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4168 | (eval $ac_try) 2>&5 | 
|  | 4169 | ac_status=$? | 
|  | 4170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4171 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4172 | break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4173 | else | 
|  | 4174 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4175 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4176 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4177 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4179 | done | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4180 | rm -f conftest* | 
|  | 4181 | if test -n "$ac_declaration"; then | 
|  | 4182 | echo '#ifdef __cplusplus' >>confdefs.h | 
|  | 4183 | echo $ac_declaration      >>confdefs.h | 
|  | 4184 | echo '#endif'             >>confdefs.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4185 | fi | 
|  | 4186 |  | 
|  | 4187 | ac_ext=c | 
|  | 4188 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4192 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4193 | echo "$as_me:$LINENO: checking " >&5 | 
|  | 4194 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
|  | 4195 | if test "${ac_cv_has_flex+set}" = set; then | 
|  | 4196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4197 | else | 
|  | 4198 | for ac_prog in flex lex | 
|  | 4199 | do | 
|  | 4200 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4201 | set dummy $ac_prog; ac_word=$2 | 
|  | 4202 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4204 | if test "${ac_cv_prog_LEX+set}" = set; then | 
|  | 4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4206 | else | 
|  | 4207 | if test -n "$LEX"; then | 
|  | 4208 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
|  | 4209 | else | 
|  | 4210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4211 | for as_dir in $PATH | 
|  | 4212 | do | 
|  | 4213 | IFS=$as_save_IFS | 
|  | 4214 | test -z "$as_dir" && as_dir=. | 
|  | 4215 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4216 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4217 | ac_cv_prog_LEX="$ac_prog" | 
|  | 4218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4219 | break 2 | 
|  | 4220 | fi | 
|  | 4221 | done | 
|  | 4222 | done | 
|  | 4223 |  | 
|  | 4224 | fi | 
|  | 4225 | fi | 
|  | 4226 | LEX=$ac_cv_prog_LEX | 
|  | 4227 | if test -n "$LEX"; then | 
|  | 4228 | echo "$as_me:$LINENO: result: $LEX" >&5 | 
|  | 4229 | echo "${ECHO_T}$LEX" >&6 | 
|  | 4230 | else | 
|  | 4231 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4232 | echo "${ECHO_T}no" >&6 | 
|  | 4233 | fi | 
|  | 4234 |  | 
|  | 4235 | test -n "$LEX" && break | 
|  | 4236 | done | 
|  | 4237 | test -n "$LEX" || LEX=":" | 
|  | 4238 |  | 
|  | 4239 | if test -z "$LEXLIB" | 
|  | 4240 | then | 
|  | 4241 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
|  | 4242 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
|  | 4243 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
|  | 4244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4245 | else | 
|  | 4246 | ac_check_lib_save_LIBS=$LIBS | 
|  | 4247 | LIBS="-lfl  $LIBS" | 
|  | 4248 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4249 | /* confdefs.h.  */ | 
|  | 4250 | _ACEOF | 
|  | 4251 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4252 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4253 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4254 |  | 
|  | 4255 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4256 | #ifdef __cplusplus | 
|  | 4257 | extern "C" | 
|  | 4258 | #endif | 
|  | 4259 | /* We use char because int might match the return type of a gcc2 | 
|  | 4260 | builtin and then its argument prototype would still apply.  */ | 
|  | 4261 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4262 | int | 
|  | 4263 | main () | 
|  | 4264 | { | 
|  | 4265 | yywrap (); | 
|  | 4266 | ; | 
|  | 4267 | return 0; | 
|  | 4268 | } | 
|  | 4269 | _ACEOF | 
|  | 4270 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 4271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4272 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4273 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4274 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4275 | rm -f conftest.er1 | 
|  | 4276 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4278 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4279 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 4280 | || test ! -s conftest.err' | 
|  | 4281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4282 | (eval $ac_try) 2>&5 | 
|  | 4283 | ac_status=$? | 
|  | 4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4285 | (exit $ac_status); }; } && | 
|  | 4286 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4288 | (eval $ac_try) 2>&5 | 
|  | 4289 | ac_status=$? | 
|  | 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4291 | (exit $ac_status); }; }; then | 
|  | 4292 | ac_cv_lib_fl_yywrap=yes | 
|  | 4293 | else | 
|  | 4294 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4295 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4296 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4297 | ac_cv_lib_fl_yywrap=no | 
|  | 4298 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4299 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 4300 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4301 | LIBS=$ac_check_lib_save_LIBS | 
|  | 4302 | fi | 
|  | 4303 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
|  | 4304 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
|  | 4305 | if test $ac_cv_lib_fl_yywrap = yes; then | 
|  | 4306 | LEXLIB="-lfl" | 
|  | 4307 | else | 
|  | 4308 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
|  | 4309 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
|  | 4310 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
|  | 4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4312 | else | 
|  | 4313 | ac_check_lib_save_LIBS=$LIBS | 
|  | 4314 | LIBS="-ll  $LIBS" | 
|  | 4315 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4316 | /* confdefs.h.  */ | 
|  | 4317 | _ACEOF | 
|  | 4318 | cat confdefs.h >>conftest.$ac_ext | 
|  | 4319 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 4320 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4321 |  | 
|  | 4322 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4323 | #ifdef __cplusplus | 
|  | 4324 | extern "C" | 
|  | 4325 | #endif | 
|  | 4326 | /* We use char because int might match the return type of a gcc2 | 
|  | 4327 | builtin and then its argument prototype would still apply.  */ | 
|  | 4328 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4329 | int | 
|  | 4330 | main () | 
|  | 4331 | { | 
|  | 4332 | yywrap (); | 
|  | 4333 | ; | 
|  | 4334 | return 0; | 
|  | 4335 | } | 
|  | 4336 | _ACEOF | 
|  | 4337 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 4338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4339 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4340 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4341 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4342 | rm -f conftest.er1 | 
|  | 4343 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4345 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4346 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 4347 | || test ! -s conftest.err' | 
|  | 4348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4349 | (eval $ac_try) 2>&5 | 
|  | 4350 | ac_status=$? | 
|  | 4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4352 | (exit $ac_status); }; } && | 
|  | 4353 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4355 | (eval $ac_try) 2>&5 | 
|  | 4356 | ac_status=$? | 
|  | 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4358 | (exit $ac_status); }; }; then | 
|  | 4359 | ac_cv_lib_l_yywrap=yes | 
|  | 4360 | else | 
|  | 4361 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4362 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4363 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4364 | ac_cv_lib_l_yywrap=no | 
|  | 4365 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4366 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 4367 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4368 | LIBS=$ac_check_lib_save_LIBS | 
|  | 4369 | fi | 
|  | 4370 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
|  | 4371 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
|  | 4372 | if test $ac_cv_lib_l_yywrap = yes; then | 
|  | 4373 | LEXLIB="-ll" | 
|  | 4374 | fi | 
|  | 4375 |  | 
|  | 4376 | fi | 
|  | 4377 |  | 
|  | 4378 | fi | 
|  | 4379 |  | 
|  | 4380 | if test "x$LEX" != "x:"; then | 
|  | 4381 | echo "$as_me:$LINENO: checking lex output file root" >&5 | 
|  | 4382 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
|  | 4383 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
|  | 4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4385 | else | 
|  | 4386 | # The minimal lex program is just a single line: %%.  But some broken lexes | 
|  | 4387 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
|  | 4388 | cat >conftest.l <<_ACEOF | 
|  | 4389 | %% | 
|  | 4390 | %% | 
|  | 4391 | _ACEOF | 
|  | 4392 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
|  | 4393 | (eval $LEX conftest.l) 2>&5 | 
|  | 4394 | ac_status=$? | 
|  | 4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4396 | (exit $ac_status); } | 
|  | 4397 | if test -f lex.yy.c; then | 
|  | 4398 | ac_cv_prog_lex_root=lex.yy | 
|  | 4399 | elif test -f lexyy.c; then | 
|  | 4400 | ac_cv_prog_lex_root=lexyy | 
|  | 4401 | else | 
|  | 4402 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
|  | 4403 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
|  | 4404 | { (exit 1); exit 1; }; } | 
|  | 4405 | fi | 
|  | 4406 | fi | 
|  | 4407 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
|  | 4408 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
|  | 4409 | rm -f conftest.l | 
|  | 4410 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
|  | 4411 |  | 
|  | 4412 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
|  | 4413 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
|  | 4414 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
|  | 4415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4416 | else | 
|  | 4417 | # POSIX says lex can declare yytext either as a pointer or an array; the | 
|  | 4418 | # default is implementation-dependent. Figure out which it is, since | 
|  | 4419 | # not all implementations provide the %pointer and %array declarations. | 
|  | 4420 | ac_cv_prog_lex_yytext_pointer=no | 
|  | 4421 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
|  | 4422 | ac_save_LIBS=$LIBS | 
|  | 4423 | LIBS="$LIBS $LEXLIB" | 
|  | 4424 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 4425 | `cat $LEX_OUTPUT_ROOT.c` | 
|  | 4426 | _ACEOF | 
|  | 4427 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 4428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4429 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4430 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4431 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 4432 | rm -f conftest.er1 | 
|  | 4433 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4435 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4436 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 4437 | || test ! -s conftest.err' | 
|  | 4438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4439 | (eval $ac_try) 2>&5 | 
|  | 4440 | ac_status=$? | 
|  | 4441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4442 | (exit $ac_status); }; } && | 
|  | 4443 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 4445 | (eval $ac_try) 2>&5 | 
|  | 4446 | ac_status=$? | 
|  | 4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 4448 | (exit $ac_status); }; }; then | 
|  | 4449 | ac_cv_prog_lex_yytext_pointer=yes | 
|  | 4450 | else | 
|  | 4451 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4452 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4453 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4454 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4455 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 4456 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4457 | LIBS=$ac_save_LIBS | 
|  | 4458 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
|  | 4459 |  | 
|  | 4460 | fi | 
|  | 4461 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
|  | 4462 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
|  | 4463 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
|  | 4464 |  | 
|  | 4465 | cat >>confdefs.h <<\_ACEOF | 
|  | 4466 | #define YYTEXT_POINTER 1 | 
|  | 4467 | _ACEOF | 
|  | 4468 |  | 
|  | 4469 | fi | 
|  | 4470 |  | 
|  | 4471 | fi | 
|  | 4472 |  | 
|  | 4473 | fi | 
|  | 4474 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 | 
|  | 4475 | echo "${ECHO_T}$ac_cv_has_flex" >&6 | 
|  | 4476 | if test "$LEX" != "flex"; then | 
|  | 4477 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 | 
|  | 4478 | echo "$as_me: error: flex not found but required" >&2;} | 
|  | 4479 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4480 | else | 
|  | 4481 | FLEX=flex | 
|  | 4482 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4483 | fi | 
|  | 4484 |  | 
|  | 4485 | echo "$as_me:$LINENO: checking " >&5 | 
|  | 4486 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4487 | if test "${llvm_cv_has_bison+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4489 | else | 
|  | 4490 | for ac_prog in 'bison -y' byacc | 
|  | 4491 | do | 
|  | 4492 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4493 | set dummy $ac_prog; ac_word=$2 | 
|  | 4494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4496 | if test "${ac_cv_prog_YACC+set}" = set; then | 
|  | 4497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4498 | else | 
|  | 4499 | if test -n "$YACC"; then | 
|  | 4500 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
|  | 4501 | else | 
|  | 4502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4503 | for as_dir in $PATH | 
|  | 4504 | do | 
|  | 4505 | IFS=$as_save_IFS | 
|  | 4506 | test -z "$as_dir" && as_dir=. | 
|  | 4507 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4509 | ac_cv_prog_YACC="$ac_prog" | 
|  | 4510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4511 | break 2 | 
|  | 4512 | fi | 
|  | 4513 | done | 
|  | 4514 | done | 
|  | 4515 |  | 
|  | 4516 | fi | 
|  | 4517 | fi | 
|  | 4518 | YACC=$ac_cv_prog_YACC | 
|  | 4519 | if test -n "$YACC"; then | 
|  | 4520 | echo "$as_me:$LINENO: result: $YACC" >&5 | 
|  | 4521 | echo "${ECHO_T}$YACC" >&6 | 
|  | 4522 | else | 
|  | 4523 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4524 | echo "${ECHO_T}no" >&6 | 
|  | 4525 | fi | 
|  | 4526 |  | 
|  | 4527 | test -n "$YACC" && break | 
|  | 4528 | done | 
|  | 4529 | test -n "$YACC" || YACC="yacc" | 
|  | 4530 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4531 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4532 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 | 
|  | 4533 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4534 | if test "$YACC" != "bison -y"; then | 
|  | 4535 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 | 
|  | 4536 | echo "$as_me: error: bison not found but required" >&2;} | 
|  | 4537 | { (exit 1); exit 1; }; } | 
|  | 4538 | else | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4539 | BISON=bison | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4540 |  | 
|  | 4541 | fi | 
|  | 4542 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4543 | echo "$as_me:$LINENO: checking for GNU make" >&5 | 
|  | 4544 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 | 
|  | 4545 | if test "${llvm_cv_gnu_make_command+set}" = set; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4547 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4548 | llvm_cv_gnu_make_command='' | 
|  | 4549 | for a in "$MAKE" make gmake gnumake ; do | 
|  | 4550 | if test -z "$a" ; then continue ; fi ; | 
|  | 4551 | if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) | 
|  | 4552 | then | 
|  | 4553 | llvm_cv_gnu_make_command=$a ; | 
|  | 4554 | break; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4555 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4556 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4557 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4558 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 | 
|  | 4559 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 | 
|  | 4560 | if test "x$llvm_cv_gnu_make_command" != "x"  ; then | 
|  | 4561 | ifGNUmake='' ; | 
|  | 4562 | else | 
|  | 4563 | ifGNUmake='#' ; | 
|  | 4564 | echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
|  | 4565 | echo "${ECHO_T}\"Not found\"" >&6; | 
|  | 4566 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4567 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4568 |  | 
|  | 4569 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
|  | 4570 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
|  | 4571 | LN_S=$as_ln_s | 
|  | 4572 | if test "$LN_S" = "ln -s"; then | 
|  | 4573 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 4574 | echo "${ECHO_T}yes" >&6 | 
|  | 4575 | else | 
|  | 4576 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
|  | 4577 | echo "${ECHO_T}no, using $LN_S" >&6 | 
|  | 4578 | fi | 
|  | 4579 |  | 
| Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 4580 | # Extract the first word of "cmp", so it can be a program name with args. | 
|  | 4581 | set dummy cmp; ac_word=$2 | 
|  | 4582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4584 | if test "${ac_cv_path_CMP+set}" = set; then | 
|  | 4585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4586 | else | 
|  | 4587 | case $CMP in | 
|  | 4588 | [\\/]* | ?:[\\/]*) | 
|  | 4589 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. | 
|  | 4590 | ;; | 
|  | 4591 | *) | 
|  | 4592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4593 | for as_dir in $PATH | 
|  | 4594 | do | 
|  | 4595 | IFS=$as_save_IFS | 
|  | 4596 | test -z "$as_dir" && as_dir=. | 
|  | 4597 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4599 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4601 | break 2 | 
|  | 4602 | fi | 
|  | 4603 | done | 
|  | 4604 | done | 
|  | 4605 |  | 
|  | 4606 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" | 
|  | 4607 | ;; | 
|  | 4608 | esac | 
|  | 4609 | fi | 
|  | 4610 | CMP=$ac_cv_path_CMP | 
|  | 4611 |  | 
|  | 4612 | if test -n "$CMP"; then | 
|  | 4613 | echo "$as_me:$LINENO: result: $CMP" >&5 | 
|  | 4614 | echo "${ECHO_T}$CMP" >&6 | 
|  | 4615 | else | 
|  | 4616 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4617 | echo "${ECHO_T}no" >&6 | 
|  | 4618 | fi | 
|  | 4619 |  | 
|  | 4620 | # Extract the first word of "cp", so it can be a program name with args. | 
|  | 4621 | set dummy cp; ac_word=$2 | 
|  | 4622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4624 | if test "${ac_cv_path_CP+set}" = set; then | 
|  | 4625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4626 | else | 
|  | 4627 | case $CP in | 
|  | 4628 | [\\/]* | ?:[\\/]*) | 
|  | 4629 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
|  | 4630 | ;; | 
|  | 4631 | *) | 
|  | 4632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4633 | for as_dir in $PATH | 
|  | 4634 | do | 
|  | 4635 | IFS=$as_save_IFS | 
|  | 4636 | test -z "$as_dir" && as_dir=. | 
|  | 4637 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4639 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4641 | break 2 | 
|  | 4642 | fi | 
|  | 4643 | done | 
|  | 4644 | done | 
|  | 4645 |  | 
|  | 4646 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
|  | 4647 | ;; | 
|  | 4648 | esac | 
|  | 4649 | fi | 
|  | 4650 | CP=$ac_cv_path_CP | 
|  | 4651 |  | 
|  | 4652 | if test -n "$CP"; then | 
|  | 4653 | echo "$as_me:$LINENO: result: $CP" >&5 | 
|  | 4654 | echo "${ECHO_T}$CP" >&6 | 
|  | 4655 | else | 
|  | 4656 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4657 | echo "${ECHO_T}no" >&6 | 
|  | 4658 | fi | 
|  | 4659 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4660 | # Extract the first word of "date", so it can be a program name with args. | 
|  | 4661 | set dummy date; ac_word=$2 | 
|  | 4662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4664 | if test "${ac_cv_path_DATE+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4666 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4667 | case $DATE in | 
|  | 4668 | [\\/]* | ?:[\\/]*) | 
|  | 4669 | 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] | 4670 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4671 | *) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4673 | for as_dir in $PATH | 
|  | 4674 | do | 
|  | 4675 | IFS=$as_save_IFS | 
|  | 4676 | test -z "$as_dir" && as_dir=. | 
|  | 4677 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4678 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4679 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4681 | break 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4682 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4683 | done | 
|  | 4684 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4685 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4686 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4687 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4688 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4689 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4690 | DATE=$ac_cv_path_DATE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4691 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4692 | if test -n "$DATE"; then | 
|  | 4693 | echo "$as_me:$LINENO: result: $DATE" >&5 | 
|  | 4694 | echo "${ECHO_T}$DATE" >&6 | 
|  | 4695 | else | 
|  | 4696 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4697 | echo "${ECHO_T}no" >&6 | 
|  | 4698 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4699 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4700 | # Extract the first word of "find", so it can be a program name with args. | 
|  | 4701 | set dummy find; ac_word=$2 | 
|  | 4702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4704 | if test "${ac_cv_path_FIND+set}" = set; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4706 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4707 | case $FIND in | 
|  | 4708 | [\\/]* | ?:[\\/]*) | 
|  | 4709 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. | 
|  | 4710 | ;; | 
|  | 4711 | *) | 
|  | 4712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4713 | for as_dir in $PATH | 
|  | 4714 | do | 
|  | 4715 | IFS=$as_save_IFS | 
|  | 4716 | test -z "$as_dir" && as_dir=. | 
|  | 4717 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4719 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4721 | break 2 | 
|  | 4722 | fi | 
|  | 4723 | done | 
|  | 4724 | done | 
|  | 4725 |  | 
|  | 4726 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" | 
|  | 4727 | ;; | 
|  | 4728 | esac | 
|  | 4729 | fi | 
|  | 4730 | FIND=$ac_cv_path_FIND | 
|  | 4731 |  | 
|  | 4732 | if test -n "$FIND"; then | 
|  | 4733 | echo "$as_me:$LINENO: result: $FIND" >&5 | 
|  | 4734 | echo "${ECHO_T}$FIND" >&6 | 
|  | 4735 | else | 
|  | 4736 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4737 | echo "${ECHO_T}no" >&6 | 
|  | 4738 | fi | 
|  | 4739 |  | 
|  | 4740 | # Extract the first word of "grep", so it can be a program name with args. | 
|  | 4741 | set dummy grep; ac_word=$2 | 
|  | 4742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4744 | if test "${ac_cv_path_GREP+set}" = set; then | 
|  | 4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4746 | else | 
|  | 4747 | case $GREP in | 
|  | 4748 | [\\/]* | ?:[\\/]*) | 
|  | 4749 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. | 
|  | 4750 | ;; | 
|  | 4751 | *) | 
|  | 4752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4753 | for as_dir in $PATH | 
|  | 4754 | do | 
|  | 4755 | IFS=$as_save_IFS | 
|  | 4756 | test -z "$as_dir" && as_dir=. | 
|  | 4757 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4758 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4759 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4761 | break 2 | 
|  | 4762 | fi | 
|  | 4763 | done | 
|  | 4764 | done | 
|  | 4765 |  | 
|  | 4766 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" | 
|  | 4767 | ;; | 
|  | 4768 | esac | 
|  | 4769 | fi | 
|  | 4770 | GREP=$ac_cv_path_GREP | 
|  | 4771 |  | 
|  | 4772 | if test -n "$GREP"; then | 
|  | 4773 | echo "$as_me:$LINENO: result: $GREP" >&5 | 
|  | 4774 | echo "${ECHO_T}$GREP" >&6 | 
|  | 4775 | else | 
|  | 4776 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4777 | echo "${ECHO_T}no" >&6 | 
|  | 4778 | fi | 
|  | 4779 |  | 
|  | 4780 | # Extract the first word of "mkdir", so it can be a program name with args. | 
|  | 4781 | set dummy mkdir; ac_word=$2 | 
|  | 4782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4784 | if test "${ac_cv_path_MKDIR+set}" = set; then | 
|  | 4785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4786 | else | 
|  | 4787 | case $MKDIR in | 
|  | 4788 | [\\/]* | ?:[\\/]*) | 
|  | 4789 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | 
|  | 4790 | ;; | 
|  | 4791 | *) | 
|  | 4792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4793 | for as_dir in $PATH | 
|  | 4794 | do | 
|  | 4795 | IFS=$as_save_IFS | 
|  | 4796 | test -z "$as_dir" && as_dir=. | 
|  | 4797 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4799 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4801 | break 2 | 
|  | 4802 | fi | 
|  | 4803 | done | 
|  | 4804 | done | 
|  | 4805 |  | 
|  | 4806 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" | 
|  | 4807 | ;; | 
|  | 4808 | esac | 
|  | 4809 | fi | 
|  | 4810 | MKDIR=$ac_cv_path_MKDIR | 
|  | 4811 |  | 
|  | 4812 | if test -n "$MKDIR"; then | 
|  | 4813 | echo "$as_me:$LINENO: result: $MKDIR" >&5 | 
|  | 4814 | echo "${ECHO_T}$MKDIR" >&6 | 
|  | 4815 | else | 
|  | 4816 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4817 | echo "${ECHO_T}no" >&6 | 
|  | 4818 | fi | 
|  | 4819 |  | 
|  | 4820 | # Extract the first word of "mv", so it can be a program name with args. | 
|  | 4821 | set dummy mv; ac_word=$2 | 
|  | 4822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4824 | if test "${ac_cv_path_MV+set}" = set; then | 
|  | 4825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4826 | else | 
|  | 4827 | case $MV in | 
|  | 4828 | [\\/]* | ?:[\\/]*) | 
|  | 4829 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
|  | 4830 | ;; | 
|  | 4831 | *) | 
|  | 4832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4833 | for as_dir in $PATH | 
|  | 4834 | do | 
|  | 4835 | IFS=$as_save_IFS | 
|  | 4836 | test -z "$as_dir" && as_dir=. | 
|  | 4837 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4839 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4841 | break 2 | 
|  | 4842 | fi | 
|  | 4843 | done | 
|  | 4844 | done | 
|  | 4845 |  | 
|  | 4846 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
|  | 4847 | ;; | 
|  | 4848 | esac | 
|  | 4849 | fi | 
|  | 4850 | MV=$ac_cv_path_MV | 
|  | 4851 |  | 
|  | 4852 | if test -n "$MV"; then | 
|  | 4853 | echo "$as_me:$LINENO: result: $MV" >&5 | 
|  | 4854 | echo "${ECHO_T}$MV" >&6 | 
|  | 4855 | else | 
|  | 4856 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4857 | echo "${ECHO_T}no" >&6 | 
|  | 4858 | fi | 
|  | 4859 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4860 | if test -n "$ac_tool_prefix"; then | 
|  | 4861 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 4862 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|  | 4863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4865 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
|  | 4866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4867 | else | 
|  | 4868 | if test -n "$RANLIB"; then | 
|  | 4869 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 4870 | else | 
|  | 4871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4872 | for as_dir in $PATH | 
|  | 4873 | do | 
|  | 4874 | IFS=$as_save_IFS | 
|  | 4875 | test -z "$as_dir" && as_dir=. | 
|  | 4876 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4878 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|  | 4879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4880 | break 2 | 
|  | 4881 | fi | 
|  | 4882 | done | 
|  | 4883 | done | 
|  | 4884 |  | 
|  | 4885 | fi | 
|  | 4886 | fi | 
|  | 4887 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 4888 | if test -n "$RANLIB"; then | 
|  | 4889 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
|  | 4890 | echo "${ECHO_T}$RANLIB" >&6 | 
|  | 4891 | else | 
|  | 4892 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4893 | echo "${ECHO_T}no" >&6 | 
|  | 4894 | fi | 
|  | 4895 |  | 
|  | 4896 | fi | 
|  | 4897 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 4898 | ac_ct_RANLIB=$RANLIB | 
|  | 4899 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 4900 | set dummy ranlib; ac_word=$2 | 
|  | 4901 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4903 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
|  | 4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4905 | else | 
|  | 4906 | if test -n "$ac_ct_RANLIB"; then | 
|  | 4907 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 4908 | else | 
|  | 4909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4910 | for as_dir in $PATH | 
|  | 4911 | do | 
|  | 4912 | IFS=$as_save_IFS | 
|  | 4913 | test -z "$as_dir" && as_dir=. | 
|  | 4914 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4916 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
|  | 4917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4918 | break 2 | 
|  | 4919 | fi | 
|  | 4920 | done | 
|  | 4921 | done | 
|  | 4922 |  | 
|  | 4923 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
|  | 4924 | fi | 
|  | 4925 | fi | 
|  | 4926 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 4927 | if test -n "$ac_ct_RANLIB"; then | 
|  | 4928 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
|  | 4929 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
|  | 4930 | else | 
|  | 4931 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4932 | echo "${ECHO_T}no" >&6 | 
|  | 4933 | fi | 
|  | 4934 |  | 
|  | 4935 | RANLIB=$ac_ct_RANLIB | 
|  | 4936 | else | 
|  | 4937 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 4938 | fi | 
|  | 4939 |  | 
|  | 4940 | # Extract the first word of "rm", so it can be a program name with args. | 
|  | 4941 | set dummy rm; ac_word=$2 | 
|  | 4942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4944 | if test "${ac_cv_path_RM+set}" = set; then | 
|  | 4945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4946 | else | 
|  | 4947 | case $RM in | 
|  | 4948 | [\\/]* | ?:[\\/]*) | 
|  | 4949 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
|  | 4950 | ;; | 
|  | 4951 | *) | 
|  | 4952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4953 | for as_dir in $PATH | 
|  | 4954 | do | 
|  | 4955 | IFS=$as_save_IFS | 
|  | 4956 | test -z "$as_dir" && as_dir=. | 
|  | 4957 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4958 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4959 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | 
|  | 4960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 4961 | break 2 | 
|  | 4962 | fi | 
|  | 4963 | done | 
|  | 4964 | done | 
|  | 4965 |  | 
|  | 4966 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
|  | 4967 | ;; | 
|  | 4968 | esac | 
|  | 4969 | fi | 
|  | 4970 | RM=$ac_cv_path_RM | 
|  | 4971 |  | 
|  | 4972 | if test -n "$RM"; then | 
|  | 4973 | echo "$as_me:$LINENO: result: $RM" >&5 | 
|  | 4974 | echo "${ECHO_T}$RM" >&6 | 
|  | 4975 | else | 
|  | 4976 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 4977 | echo "${ECHO_T}no" >&6 | 
|  | 4978 | fi | 
|  | 4979 |  | 
|  | 4980 | # Extract the first word of "sed", so it can be a program name with args. | 
|  | 4981 | set dummy sed; ac_word=$2 | 
|  | 4982 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 4983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 4984 | if test "${ac_cv_path_SED+set}" = set; then | 
|  | 4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 4986 | else | 
|  | 4987 | case $SED in | 
|  | 4988 | [\\/]* | ?:[\\/]*) | 
|  | 4989 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
|  | 4990 | ;; | 
|  | 4991 | *) | 
|  | 4992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4993 | for as_dir in $PATH | 
|  | 4994 | do | 
|  | 4995 | IFS=$as_save_IFS | 
|  | 4996 | test -z "$as_dir" && as_dir=. | 
|  | 4997 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 4998 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 4999 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5001 | break 2 | 
|  | 5002 | fi | 
|  | 5003 | done | 
|  | 5004 | done | 
|  | 5005 |  | 
|  | 5006 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
|  | 5007 | ;; | 
|  | 5008 | esac | 
|  | 5009 | fi | 
|  | 5010 | SED=$ac_cv_path_SED | 
|  | 5011 |  | 
|  | 5012 | if test -n "$SED"; then | 
|  | 5013 | echo "$as_me:$LINENO: result: $SED" >&5 | 
|  | 5014 | echo "${ECHO_T}$SED" >&6 | 
|  | 5015 | else | 
|  | 5016 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5017 | echo "${ECHO_T}no" >&6 | 
|  | 5018 | fi | 
|  | 5019 |  | 
|  | 5020 | # Extract the first word of "tar", so it can be a program name with args. | 
|  | 5021 | set dummy tar; ac_word=$2 | 
|  | 5022 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5024 | if test "${ac_cv_path_TAR+set}" = set; then | 
|  | 5025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5026 | else | 
|  | 5027 | case $TAR in | 
|  | 5028 | [\\/]* | ?:[\\/]*) | 
|  | 5029 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
|  | 5030 | ;; | 
|  | 5031 | *) | 
|  | 5032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5033 | for as_dir in $PATH | 
|  | 5034 | do | 
|  | 5035 | IFS=$as_save_IFS | 
|  | 5036 | test -z "$as_dir" && as_dir=. | 
|  | 5037 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5038 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5039 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5041 | break 2 | 
|  | 5042 | fi | 
|  | 5043 | done | 
|  | 5044 | done | 
|  | 5045 |  | 
|  | 5046 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
|  | 5047 | ;; | 
|  | 5048 | esac | 
|  | 5049 | fi | 
|  | 5050 | TAR=$ac_cv_path_TAR | 
|  | 5051 |  | 
|  | 5052 | if test -n "$TAR"; then | 
|  | 5053 | echo "$as_me:$LINENO: result: $TAR" >&5 | 
|  | 5054 | echo "${ECHO_T}$TAR" >&6 | 
|  | 5055 | else | 
|  | 5056 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5057 | echo "${ECHO_T}no" >&6 | 
|  | 5058 | fi | 
|  | 5059 |  | 
|  | 5060 |  | 
|  | 5061 | # Find a good install program.  We prefer a C program (faster), | 
|  | 5062 | # so one script is as good as another.  But avoid the broken or | 
|  | 5063 | # incompatible versions: | 
|  | 5064 | # SysV /etc/install, /usr/sbin/install | 
|  | 5065 | # SunOS /usr/etc/install | 
|  | 5066 | # IRIX /sbin/install | 
|  | 5067 | # AIX /bin/install | 
|  | 5068 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 5069 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 5070 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 5071 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 5072 | # OS/2's system install, which has a completely different semantic | 
|  | 5073 | # ./install, which can be erroneously created by make from ./install.sh. | 
|  | 5074 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
|  | 5075 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
|  | 5076 | if test -z "$INSTALL"; then | 
|  | 5077 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 5078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5079 | else | 
|  | 5080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5081 | for as_dir in $PATH | 
|  | 5082 | do | 
|  | 5083 | IFS=$as_save_IFS | 
|  | 5084 | test -z "$as_dir" && as_dir=. | 
|  | 5085 | # Account for people who put trailing slashes in PATH elements. | 
|  | 5086 | case $as_dir/ in | 
|  | 5087 | ./ | .// | /cC/* | \ | 
|  | 5088 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
|  | 5089 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
|  | 5090 | /usr/ucb/* ) ;; | 
|  | 5091 | *) | 
|  | 5092 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 5093 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 5094 | # by default. | 
|  | 5095 | for ac_prog in ginstall scoinst install; do | 
|  | 5096 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5097 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
|  | 5098 | if test $ac_prog = install && | 
|  | 5099 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5100 | # AIX install.  It has an incompatible calling convention. | 
|  | 5101 | : | 
|  | 5102 | elif test $ac_prog = install && | 
|  | 5103 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 5104 | # program-specific install script used by HP pwplus--don't use. | 
|  | 5105 | : | 
|  | 5106 | else | 
|  | 5107 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 5108 | break 3 | 
|  | 5109 | fi | 
|  | 5110 | fi | 
|  | 5111 | done | 
|  | 5112 | done | 
|  | 5113 | ;; | 
|  | 5114 | esac | 
|  | 5115 | done | 
|  | 5116 |  | 
|  | 5117 |  | 
|  | 5118 | fi | 
|  | 5119 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 5120 | INSTALL=$ac_cv_path_install | 
|  | 5121 | else | 
|  | 5122 | # As a last resort, use the slow shell script.  We don't cache a | 
|  | 5123 | # path for INSTALL within a source directory, because that will | 
|  | 5124 | # break other packages using the cache if that directory is | 
|  | 5125 | # removed, or if the path is relative. | 
|  | 5126 | INSTALL=$ac_install_sh | 
|  | 5127 | fi | 
|  | 5128 | fi | 
|  | 5129 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
|  | 5130 | echo "${ECHO_T}$INSTALL" >&6 | 
|  | 5131 |  | 
|  | 5132 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 5133 | # It thinks the first close brace ends the variable substitution. | 
|  | 5134 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 5135 |  | 
|  | 5136 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 5137 |  | 
|  | 5138 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 5139 |  | 
|  | 5140 |  | 
|  | 5141 | # Extract the first word of "bzip2", so it can be a program name with args. | 
|  | 5142 | set dummy bzip2; ac_word=$2 | 
|  | 5143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5145 | if test "${ac_cv_path_BZIP2+set}" = set; then | 
|  | 5146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5147 | else | 
|  | 5148 | case $BZIP2 in | 
|  | 5149 | [\\/]* | ?:[\\/]*) | 
|  | 5150 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. | 
|  | 5151 | ;; | 
|  | 5152 | *) | 
|  | 5153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5154 | for as_dir in $PATH | 
|  | 5155 | do | 
|  | 5156 | IFS=$as_save_IFS | 
|  | 5157 | test -z "$as_dir" && as_dir=. | 
|  | 5158 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5160 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5162 | break 2 | 
|  | 5163 | fi | 
|  | 5164 | done | 
|  | 5165 | done | 
|  | 5166 |  | 
|  | 5167 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2" | 
|  | 5168 | ;; | 
|  | 5169 | esac | 
|  | 5170 | fi | 
|  | 5171 | BZIP2=$ac_cv_path_BZIP2 | 
|  | 5172 |  | 
|  | 5173 | if test -n "$BZIP2"; then | 
|  | 5174 | echo "$as_me:$LINENO: result: $BZIP2" >&5 | 
|  | 5175 | echo "${ECHO_T}$BZIP2" >&6 | 
|  | 5176 | else | 
|  | 5177 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5178 | echo "${ECHO_T}no" >&6 | 
|  | 5179 | fi | 
|  | 5180 |  | 
|  | 5181 | # Extract the first word of "dot", so it can be a program name with args. | 
|  | 5182 | set dummy dot; ac_word=$2 | 
|  | 5183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5185 | if test "${ac_cv_path_DOT+set}" = set; then | 
|  | 5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5187 | else | 
|  | 5188 | case $DOT in | 
|  | 5189 | [\\/]* | ?:[\\/]*) | 
|  | 5190 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
|  | 5191 | ;; | 
|  | 5192 | *) | 
|  | 5193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5194 | for as_dir in $PATH | 
|  | 5195 | do | 
|  | 5196 | IFS=$as_save_IFS | 
|  | 5197 | test -z "$as_dir" && as_dir=. | 
|  | 5198 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5200 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5202 | break 2 | 
|  | 5203 | fi | 
|  | 5204 | done | 
|  | 5205 | done | 
|  | 5206 |  | 
|  | 5207 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" | 
|  | 5208 | ;; | 
|  | 5209 | esac | 
|  | 5210 | fi | 
|  | 5211 | DOT=$ac_cv_path_DOT | 
|  | 5212 |  | 
|  | 5213 | if test -n "$DOT"; then | 
|  | 5214 | echo "$as_me:$LINENO: result: $DOT" >&5 | 
|  | 5215 | echo "${ECHO_T}$DOT" >&6 | 
|  | 5216 | else | 
|  | 5217 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5218 | echo "${ECHO_T}no" >&6 | 
|  | 5219 | fi | 
|  | 5220 |  | 
|  | 5221 | # Extract the first word of "doxygen", so it can be a program name with args. | 
|  | 5222 | set dummy doxygen; ac_word=$2 | 
|  | 5223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5225 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | 
|  | 5226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5227 | else | 
|  | 5228 | case $DOXYGEN in | 
|  | 5229 | [\\/]* | ?:[\\/]*) | 
|  | 5230 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | 
|  | 5231 | ;; | 
|  | 5232 | *) | 
|  | 5233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5234 | for as_dir in $PATH | 
|  | 5235 | do | 
|  | 5236 | IFS=$as_save_IFS | 
|  | 5237 | test -z "$as_dir" && as_dir=. | 
|  | 5238 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5240 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5242 | break 2 | 
|  | 5243 | fi | 
|  | 5244 | done | 
|  | 5245 | done | 
|  | 5246 |  | 
|  | 5247 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen" | 
|  | 5248 | ;; | 
|  | 5249 | esac | 
|  | 5250 | fi | 
|  | 5251 | DOXYGEN=$ac_cv_path_DOXYGEN | 
|  | 5252 |  | 
|  | 5253 | if test -n "$DOXYGEN"; then | 
|  | 5254 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | 
|  | 5255 | echo "${ECHO_T}$DOXYGEN" >&6 | 
|  | 5256 | else | 
|  | 5257 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5258 | echo "${ECHO_T}no" >&6 | 
|  | 5259 | fi | 
|  | 5260 |  | 
|  | 5261 | # Extract the first word of "etags", so it can be a program name with args. | 
|  | 5262 | set dummy etags; ac_word=$2 | 
|  | 5263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5265 | if test "${ac_cv_path_ETAGS+set}" = set; then | 
|  | 5266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5267 | else | 
|  | 5268 | case $ETAGS in | 
|  | 5269 | [\\/]* | ?:[\\/]*) | 
|  | 5270 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. | 
|  | 5271 | ;; | 
|  | 5272 | *) | 
|  | 5273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5274 | for as_dir in $PATH | 
|  | 5275 | do | 
|  | 5276 | IFS=$as_save_IFS | 
|  | 5277 | test -z "$as_dir" && as_dir=. | 
|  | 5278 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5280 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5282 | break 2 | 
|  | 5283 | fi | 
|  | 5284 | done | 
|  | 5285 | done | 
|  | 5286 |  | 
|  | 5287 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" | 
|  | 5288 | ;; | 
|  | 5289 | esac | 
|  | 5290 | fi | 
|  | 5291 | ETAGS=$ac_cv_path_ETAGS | 
|  | 5292 |  | 
|  | 5293 | if test -n "$ETAGS"; then | 
|  | 5294 | echo "$as_me:$LINENO: result: $ETAGS" >&5 | 
|  | 5295 | echo "${ECHO_T}$ETAGS" >&6 | 
|  | 5296 | else | 
|  | 5297 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5298 | echo "${ECHO_T}no" >&6 | 
|  | 5299 | fi | 
|  | 5300 |  | 
|  | 5301 | # Extract the first word of "groff", so it can be a program name with args. | 
|  | 5302 | set dummy groff; ac_word=$2 | 
|  | 5303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5305 | if test "${ac_cv_path_GROFF+set}" = set; then | 
|  | 5306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5307 | else | 
|  | 5308 | case $GROFF in | 
|  | 5309 | [\\/]* | ?:[\\/]*) | 
|  | 5310 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | 
|  | 5311 | ;; | 
|  | 5312 | *) | 
|  | 5313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5314 | for as_dir in $PATH | 
|  | 5315 | do | 
|  | 5316 | IFS=$as_save_IFS | 
|  | 5317 | test -z "$as_dir" && as_dir=. | 
|  | 5318 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5320 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5322 | break 2 | 
|  | 5323 | fi | 
|  | 5324 | done | 
|  | 5325 | done | 
|  | 5326 |  | 
|  | 5327 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff" | 
|  | 5328 | ;; | 
|  | 5329 | esac | 
|  | 5330 | fi | 
|  | 5331 | GROFF=$ac_cv_path_GROFF | 
|  | 5332 |  | 
|  | 5333 | if test -n "$GROFF"; then | 
|  | 5334 | echo "$as_me:$LINENO: result: $GROFF" >&5 | 
|  | 5335 | echo "${ECHO_T}$GROFF" >&6 | 
|  | 5336 | else | 
|  | 5337 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5338 | echo "${ECHO_T}no" >&6 | 
|  | 5339 | fi | 
|  | 5340 |  | 
|  | 5341 | # Extract the first word of "gzip", so it can be a program name with args. | 
|  | 5342 | set dummy gzip; ac_word=$2 | 
|  | 5343 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5345 | if test "${ac_cv_path_GZIP+set}" = set; then | 
|  | 5346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5347 | else | 
|  | 5348 | case $GZIP in | 
|  | 5349 | [\\/]* | ?:[\\/]*) | 
|  | 5350 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | 
|  | 5351 | ;; | 
|  | 5352 | *) | 
|  | 5353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5354 | for as_dir in $PATH | 
|  | 5355 | do | 
|  | 5356 | IFS=$as_save_IFS | 
|  | 5357 | test -z "$as_dir" && as_dir=. | 
|  | 5358 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5359 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5360 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5362 | break 2 | 
|  | 5363 | fi | 
|  | 5364 | done | 
|  | 5365 | done | 
|  | 5366 |  | 
|  | 5367 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip" | 
|  | 5368 | ;; | 
|  | 5369 | esac | 
|  | 5370 | fi | 
|  | 5371 | GZIP=$ac_cv_path_GZIP | 
|  | 5372 |  | 
|  | 5373 | if test -n "$GZIP"; then | 
|  | 5374 | echo "$as_me:$LINENO: result: $GZIP" >&5 | 
|  | 5375 | echo "${ECHO_T}$GZIP" >&6 | 
|  | 5376 | else | 
|  | 5377 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5378 | echo "${ECHO_T}no" >&6 | 
|  | 5379 | fi | 
|  | 5380 |  | 
|  | 5381 | # Extract the first word of "pod2html", so it can be a program name with args. | 
|  | 5382 | set dummy pod2html; ac_word=$2 | 
|  | 5383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5385 | if test "${ac_cv_path_POD2HTML+set}" = set; then | 
|  | 5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5387 | else | 
|  | 5388 | case $POD2HTML in | 
|  | 5389 | [\\/]* | ?:[\\/]*) | 
|  | 5390 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. | 
|  | 5391 | ;; | 
|  | 5392 | *) | 
|  | 5393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5394 | for as_dir in $PATH | 
|  | 5395 | do | 
|  | 5396 | IFS=$as_save_IFS | 
|  | 5397 | test -z "$as_dir" && as_dir=. | 
|  | 5398 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5400 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5402 | break 2 | 
|  | 5403 | fi | 
|  | 5404 | done | 
|  | 5405 | done | 
|  | 5406 |  | 
|  | 5407 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html" | 
|  | 5408 | ;; | 
|  | 5409 | esac | 
|  | 5410 | fi | 
|  | 5411 | POD2HTML=$ac_cv_path_POD2HTML | 
|  | 5412 |  | 
|  | 5413 | if test -n "$POD2HTML"; then | 
|  | 5414 | echo "$as_me:$LINENO: result: $POD2HTML" >&5 | 
|  | 5415 | echo "${ECHO_T}$POD2HTML" >&6 | 
|  | 5416 | else | 
|  | 5417 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5418 | echo "${ECHO_T}no" >&6 | 
|  | 5419 | fi | 
|  | 5420 |  | 
|  | 5421 | # Extract the first word of "pod2man", so it can be a program name with args. | 
|  | 5422 | set dummy pod2man; ac_word=$2 | 
|  | 5423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5425 | if test "${ac_cv_path_POD2MAN+set}" = set; then | 
|  | 5426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5427 | else | 
|  | 5428 | case $POD2MAN in | 
|  | 5429 | [\\/]* | ?:[\\/]*) | 
|  | 5430 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. | 
|  | 5431 | ;; | 
|  | 5432 | *) | 
|  | 5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5434 | for as_dir in $PATH | 
|  | 5435 | do | 
|  | 5436 | IFS=$as_save_IFS | 
|  | 5437 | test -z "$as_dir" && as_dir=. | 
|  | 5438 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5439 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5440 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5442 | break 2 | 
|  | 5443 | fi | 
|  | 5444 | done | 
|  | 5445 | done | 
|  | 5446 |  | 
|  | 5447 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man" | 
|  | 5448 | ;; | 
|  | 5449 | esac | 
|  | 5450 | fi | 
|  | 5451 | POD2MAN=$ac_cv_path_POD2MAN | 
|  | 5452 |  | 
|  | 5453 | if test -n "$POD2MAN"; then | 
|  | 5454 | echo "$as_me:$LINENO: result: $POD2MAN" >&5 | 
|  | 5455 | echo "${ECHO_T}$POD2MAN" >&6 | 
|  | 5456 | else | 
|  | 5457 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5458 | echo "${ECHO_T}no" >&6 | 
|  | 5459 | fi | 
|  | 5460 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5461 | # Extract the first word of "runtest", so it can be a program name with args. | 
|  | 5462 | set dummy runtest; ac_word=$2 | 
|  | 5463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5465 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
|  | 5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5467 | else | 
|  | 5468 | case $RUNTEST in | 
|  | 5469 | [\\/]* | ?:[\\/]*) | 
|  | 5470 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
|  | 5471 | ;; | 
|  | 5472 | *) | 
|  | 5473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5474 | for as_dir in $PATH | 
|  | 5475 | do | 
|  | 5476 | IFS=$as_save_IFS | 
|  | 5477 | test -z "$as_dir" && as_dir=. | 
|  | 5478 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5480 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5482 | break 2 | 
|  | 5483 | fi | 
|  | 5484 | done | 
|  | 5485 | done | 
|  | 5486 |  | 
|  | 5487 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" | 
|  | 5488 | ;; | 
|  | 5489 | esac | 
|  | 5490 | fi | 
|  | 5491 | RUNTEST=$ac_cv_path_RUNTEST | 
|  | 5492 |  | 
|  | 5493 | if test -n "$RUNTEST"; then | 
|  | 5494 | echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
|  | 5495 | echo "${ECHO_T}$RUNTEST" >&6 | 
|  | 5496 | else | 
|  | 5497 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5498 | echo "${ECHO_T}no" >&6 | 
|  | 5499 | fi | 
|  | 5500 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5501 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5502 | no_itcl=true | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5503 | echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 | 
|  | 5504 | 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] | 5505 |  | 
|  | 5506 | # Check whether --with-tclinclude or --without-tclinclude was given. | 
|  | 5507 | if test "${with_tclinclude+set}" = set; then | 
|  | 5508 | withval="$with_tclinclude" | 
|  | 5509 | with_tclinclude=${withval} | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5510 | else | 
|  | 5511 | with_tclinclude='' | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5512 | fi; | 
|  | 5513 | if test "${ac_cv_path_tclsh+set}" = set; then | 
|  | 5514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5515 | else | 
|  | 5516 |  | 
|  | 5517 | if test x"${with_tclinclude}" != x ; then | 
|  | 5518 | if test -f ${with_tclinclude}/tclsh ; then | 
|  | 5519 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` | 
|  | 5520 | elif test -f ${with_tclinclude}/src/tclsh ; then | 
|  | 5521 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` | 
|  | 5522 | else | 
|  | 5523 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 | 
|  | 5524 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} | 
|  | 5525 | { (exit 1); exit 1; }; } | 
|  | 5526 | fi | 
|  | 5527 | fi | 
|  | 5528 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5529 | if test x"${ac_cv_path_tclsh}" = x ; then | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5530 | echo "$as_me:$LINENO: result: none" >&5 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5531 | echo "${ECHO_T}none" >&6 | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 5532 | 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] | 5533 | do | 
|  | 5534 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5535 | set dummy $ac_prog; ac_word=$2 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5538 | if test "${ac_cv_path_TCLSH+set}" = set; then | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5540 | else | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5541 | case $TCLSH in | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5542 | [\\/]* | ?:[\\/]*) | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5543 | 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] | 5544 | ;; | 
|  | 5545 | *) | 
|  | 5546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5547 | for as_dir in $PATH | 
|  | 5548 | do | 
|  | 5549 | IFS=$as_save_IFS | 
|  | 5550 | test -z "$as_dir" && as_dir=. | 
|  | 5551 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5552 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5553 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5555 | break 2 | 
|  | 5556 | fi | 
|  | 5557 | done | 
|  | 5558 | done | 
|  | 5559 |  | 
|  | 5560 | ;; | 
|  | 5561 | esac | 
|  | 5562 | fi | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5563 | TCLSH=$ac_cv_path_TCLSH | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5564 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5565 | if test -n "$TCLSH"; then | 
|  | 5566 | echo "$as_me:$LINENO: result: $TCLSH" >&5 | 
|  | 5567 | echo "${ECHO_T}$TCLSH" >&6 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5568 | else | 
|  | 5569 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5570 | echo "${ECHO_T}no" >&6 | 
|  | 5571 | fi | 
|  | 5572 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5573 | test -n "$TCLSH" && break | 
|  | 5574 | done | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5575 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5576 | if test x"${TCLSH}" = x ; then | 
|  | 5577 | ac_cv_path_tclsh=''; | 
|  | 5578 | else | 
|  | 5579 | ac_cv_path_tclsh="${TCLSH}"; | 
|  | 5580 | fi | 
|  | 5581 | else | 
|  | 5582 | echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 | 
|  | 5583 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6 | 
|  | 5584 | TCLSH="${ac_cv_path_tclsh}" | 
|  | 5585 |  | 
|  | 5586 | fi | 
|  | 5587 |  | 
|  | 5588 | fi | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5589 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5590 | # Extract the first word of "zip", so it can be a program name with args. | 
|  | 5591 | set dummy zip; ac_word=$2 | 
|  | 5592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 5593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 5594 | if test "${ac_cv_path_ZIP+set}" = set; then | 
|  | 5595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5596 | else | 
|  | 5597 | case $ZIP in | 
|  | 5598 | [\\/]* | ?:[\\/]*) | 
|  | 5599 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | 
|  | 5600 | ;; | 
|  | 5601 | *) | 
|  | 5602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5603 | for as_dir in $PATH | 
|  | 5604 | do | 
|  | 5605 | IFS=$as_save_IFS | 
|  | 5606 | test -z "$as_dir" && as_dir=. | 
|  | 5607 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 5609 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" | 
|  | 5610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5611 | break 2 | 
|  | 5612 | fi | 
|  | 5613 | done | 
|  | 5614 | done | 
|  | 5615 |  | 
|  | 5616 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip" | 
|  | 5617 | ;; | 
|  | 5618 | esac | 
|  | 5619 | fi | 
|  | 5620 | ZIP=$ac_cv_path_ZIP | 
|  | 5621 |  | 
|  | 5622 | if test -n "$ZIP"; then | 
|  | 5623 | echo "$as_me:$LINENO: result: $ZIP" >&5 | 
|  | 5624 | echo "${ECHO_T}$ZIP" >&6 | 
|  | 5625 | else | 
|  | 5626 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 5627 | echo "${ECHO_T}no" >&6 | 
|  | 5628 | fi | 
|  | 5629 |  | 
|  | 5630 |  | 
|  | 5631 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
|  | 5632 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 | 
|  | 5633 | if test "${llvm_cv_link_use_r+set}" = set; then | 
|  | 5634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5635 | else | 
|  | 5636 | ac_ext=c | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5637 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5641 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5642 | oldcflags="$CFLAGS" | 
|  | 5643 | CFLAGS="$CFLAGS -Wl,-R." | 
|  | 5644 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5645 | /* confdefs.h.  */ | 
|  | 5646 | _ACEOF | 
|  | 5647 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5648 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5649 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5650 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5651 | int | 
|  | 5652 | main () | 
|  | 5653 | { | 
|  | 5654 | int main() { return 0; } | 
|  | 5655 | ; | 
|  | 5656 | return 0; | 
|  | 5657 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5658 | _ACEOF | 
|  | 5659 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 5660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5661 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5662 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5663 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5664 | rm -f conftest.er1 | 
|  | 5665 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5667 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5668 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 5669 | || test ! -s conftest.err' | 
|  | 5670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5671 | (eval $ac_try) 2>&5 | 
|  | 5672 | ac_status=$? | 
|  | 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5674 | (exit $ac_status); }; } && | 
|  | 5675 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5677 | (eval $ac_try) 2>&5 | 
|  | 5678 | ac_status=$? | 
|  | 5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5680 | (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5681 | llvm_cv_link_use_r=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5682 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5683 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5684 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5685 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5686 | llvm_cv_link_use_r=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5687 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5688 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 5689 | conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5690 | CFLAGS="$oldcflags" | 
|  | 5691 | ac_ext=c | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5692 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5696 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5697 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5698 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5699 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 | 
|  | 5700 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 | 
|  | 5701 | if test "$llvm_cv_link_use_r" = yes ; then | 
|  | 5702 |  | 
|  | 5703 | cat >>confdefs.h <<\_ACEOF | 
|  | 5704 | #define HAVE_LINK_R 1 | 
|  | 5705 | _ACEOF | 
|  | 5706 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5707 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5708 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5709 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5710 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5711 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5712 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | 
|  | 5713 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | 
|  | 5714 | if test "${ac_cv_c_const+set}" = set; then | 
|  | 5715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5716 | else | 
|  | 5717 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 5718 | /* confdefs.h.  */ | 
|  | 5719 | _ACEOF | 
|  | 5720 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5721 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5722 | /* end confdefs.h.  */ | 
|  | 5723 |  | 
|  | 5724 | int | 
|  | 5725 | main () | 
|  | 5726 | { | 
|  | 5727 | /* FIXME: Include the comments suggested by Paul. */ | 
|  | 5728 | #ifndef __cplusplus | 
|  | 5729 | /* Ultrix mips cc rejects this.  */ | 
|  | 5730 | typedef int charset[2]; | 
|  | 5731 | const charset x; | 
|  | 5732 | /* SunOS 4.1.1 cc rejects this.  */ | 
|  | 5733 | char const *const *ccp; | 
|  | 5734 | char **p; | 
|  | 5735 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 5736 | struct point {int x, y;}; | 
|  | 5737 | static struct point const zero = {0,0}; | 
|  | 5738 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 5739 | It does not let you subtract one const X* pointer from another in | 
|  | 5740 | an arm of an if-expression whose if-part is not a constant | 
|  | 5741 | expression */ | 
|  | 5742 | const char *g = "string"; | 
|  | 5743 | ccp = &g + (g ? g-g : 0); | 
|  | 5744 | /* HPUX 7.0 cc rejects these. */ | 
|  | 5745 | ++ccp; | 
|  | 5746 | p = (char**) ccp; | 
|  | 5747 | ccp = (char const *const *) p; | 
|  | 5748 | { /* SCO 3.2v4 cc rejects this.  */ | 
|  | 5749 | char *t; | 
|  | 5750 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
|  | 5751 |  | 
|  | 5752 | *t++ = 0; | 
|  | 5753 | } | 
|  | 5754 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|  | 5755 | int x[] = {25, 17}; | 
|  | 5756 | const int *foo = &x[0]; | 
|  | 5757 | ++foo; | 
|  | 5758 | } | 
|  | 5759 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 5760 | typedef const int *iptr; | 
|  | 5761 | iptr p = 0; | 
|  | 5762 | ++p; | 
|  | 5763 | } | 
|  | 5764 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|  | 5765 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|  | 5766 | struct s { int j; const int *ap[3]; }; | 
|  | 5767 | struct s *b; b->j = 5; | 
|  | 5768 | } | 
|  | 5769 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 5770 | const int foo = 10; | 
|  | 5771 | } | 
|  | 5772 | #endif | 
|  | 5773 |  | 
|  | 5774 | ; | 
|  | 5775 | return 0; | 
|  | 5776 | } | 
|  | 5777 | _ACEOF | 
|  | 5778 | rm -f conftest.$ac_objext | 
|  | 5779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 5780 | (eval $ac_compile) 2>conftest.er1 | 
|  | 5781 | ac_status=$? | 
|  | 5782 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5783 | rm -f conftest.er1 | 
|  | 5784 | cat conftest.err >&5 | 
|  | 5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5786 | (exit $ac_status); } && | 
|  | 5787 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 5788 | || test ! -s conftest.err' | 
|  | 5789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5790 | (eval $ac_try) 2>&5 | 
|  | 5791 | ac_status=$? | 
|  | 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5793 | (exit $ac_status); }; } && | 
|  | 5794 | { ac_try='test -s conftest.$ac_objext' | 
|  | 5795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5796 | (eval $ac_try) 2>&5 | 
|  | 5797 | ac_status=$? | 
|  | 5798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5799 | (exit $ac_status); }; }; then | 
|  | 5800 | ac_cv_c_const=yes | 
|  | 5801 | else | 
|  | 5802 | echo "$as_me: failed program was:" >&5 | 
|  | 5803 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5804 |  | 
|  | 5805 | ac_cv_c_const=no | 
|  | 5806 | fi | 
|  | 5807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5808 | fi | 
|  | 5809 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 
|  | 5810 | echo "${ECHO_T}$ac_cv_c_const" >&6 | 
|  | 5811 | if test $ac_cv_c_const = no; then | 
|  | 5812 |  | 
|  | 5813 | cat >>confdefs.h <<\_ACEOF | 
|  | 5814 | #define const | 
|  | 5815 | _ACEOF | 
|  | 5816 |  | 
|  | 5817 | fi | 
|  | 5818 |  | 
|  | 5819 |  | 
|  | 5820 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
|  | 5821 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
|  | 5822 | if test "${ac_cv_prog_egrep+set}" = set; then | 
|  | 5823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5824 | else | 
|  | 5825 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
|  | 5826 | then ac_cv_prog_egrep='grep -E' | 
|  | 5827 | else ac_cv_prog_egrep='egrep' | 
|  | 5828 | fi | 
|  | 5829 | fi | 
|  | 5830 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
|  | 5831 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
|  | 5832 | EGREP=$ac_cv_prog_egrep | 
|  | 5833 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5834 |  | 
|  | 5835 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 5836 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
|  | 5837 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 5839 | else | 
|  | 5840 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5841 | /* confdefs.h.  */ | 
|  | 5842 | _ACEOF | 
|  | 5843 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5844 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5845 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5846 | #include <stdlib.h> | 
|  | 5847 | #include <stdarg.h> | 
|  | 5848 | #include <string.h> | 
|  | 5849 | #include <float.h> | 
|  | 5850 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5851 | int | 
|  | 5852 | main () | 
|  | 5853 | { | 
|  | 5854 |  | 
|  | 5855 | ; | 
|  | 5856 | return 0; | 
|  | 5857 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5858 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5859 | rm -f conftest.$ac_objext | 
|  | 5860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5861 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5862 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5863 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 5864 | rm -f conftest.er1 | 
|  | 5865 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5867 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5868 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 5869 | || test ! -s conftest.err' | 
|  | 5870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5871 | (eval $ac_try) 2>&5 | 
|  | 5872 | ac_status=$? | 
|  | 5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5874 | (exit $ac_status); }; } && | 
|  | 5875 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5877 | (eval $ac_try) 2>&5 | 
|  | 5878 | ac_status=$? | 
|  | 5879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5880 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5881 | ac_cv_header_stdc=yes | 
|  | 5882 | else | 
|  | 5883 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5884 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5885 |  | 
|  | 5886 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5887 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5889 |  | 
|  | 5890 | if test $ac_cv_header_stdc = yes; then | 
|  | 5891 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5892 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5893 | /* confdefs.h.  */ | 
|  | 5894 | _ACEOF | 
|  | 5895 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5896 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5897 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5898 | #include <string.h> | 
|  | 5899 |  | 
|  | 5900 | _ACEOF | 
|  | 5901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5902 | $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5903 | : | 
|  | 5904 | else | 
|  | 5905 | ac_cv_header_stdc=no | 
|  | 5906 | fi | 
|  | 5907 | rm -f conftest* | 
|  | 5908 |  | 
|  | 5909 | fi | 
|  | 5910 |  | 
|  | 5911 | if test $ac_cv_header_stdc = yes; then | 
|  | 5912 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5913 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5914 | /* confdefs.h.  */ | 
|  | 5915 | _ACEOF | 
|  | 5916 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5917 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5918 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5919 | #include <stdlib.h> | 
|  | 5920 |  | 
|  | 5921 | _ACEOF | 
|  | 5922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5923 | $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5924 | : | 
|  | 5925 | else | 
|  | 5926 | ac_cv_header_stdc=no | 
|  | 5927 | fi | 
|  | 5928 | rm -f conftest* | 
|  | 5929 |  | 
|  | 5930 | fi | 
|  | 5931 |  | 
|  | 5932 | if test $ac_cv_header_stdc = yes; then | 
|  | 5933 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5934 | if test "$cross_compiling" = yes; then | 
|  | 5935 | : | 
|  | 5936 | else | 
|  | 5937 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5938 | /* confdefs.h.  */ | 
|  | 5939 | _ACEOF | 
|  | 5940 | cat confdefs.h >>conftest.$ac_ext | 
|  | 5941 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 5942 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5943 | #include <ctype.h> | 
|  | 5944 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5945 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5946 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5947 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5948 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5949 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5950 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5951 | || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5952 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5953 | #endif | 
|  | 5954 |  | 
|  | 5955 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5956 | int | 
|  | 5957 | main () | 
|  | 5958 | { | 
|  | 5959 | int i; | 
|  | 5960 | for (i = 0; i < 256; i++) | 
|  | 5961 | if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5962 | || toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5963 | exit(2); | 
|  | 5964 | exit (0); | 
|  | 5965 | } | 
|  | 5966 | _ACEOF | 
|  | 5967 | rm -f conftest$ac_exeext | 
|  | 5968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 5969 | (eval $ac_link) 2>&5 | 
|  | 5970 | ac_status=$? | 
|  | 5971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 5973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 5974 | (eval $ac_try) 2>&5 | 
|  | 5975 | ac_status=$? | 
|  | 5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 5977 | (exit $ac_status); }; }; then | 
|  | 5978 | : | 
|  | 5979 | else | 
|  | 5980 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 5981 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5982 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 5983 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5984 | ( exit $ac_status ) | 
|  | 5985 | ac_cv_header_stdc=no | 
|  | 5986 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5987 | 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] | 5988 | fi | 
|  | 5989 | fi | 
|  | 5990 | fi | 
|  | 5991 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 5992 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
|  | 5993 | if test $ac_cv_header_stdc = yes; then | 
|  | 5994 |  | 
|  | 5995 | cat >>confdefs.h <<\_ACEOF | 
|  | 5996 | #define STDC_HEADERS 1 | 
|  | 5997 | _ACEOF | 
|  | 5998 |  | 
|  | 5999 | fi | 
|  | 6000 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6001 |  | 
|  | 6002 |  | 
|  | 6003 |  | 
|  | 6004 |  | 
|  | 6005 |  | 
|  | 6006 | ac_header_dirent=no | 
|  | 6007 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
|  | 6008 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 6009 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
|  | 6010 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | 
|  | 6011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 6012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6013 | else | 
|  | 6014 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 6015 | /* confdefs.h.  */ | 
|  | 6016 | _ACEOF | 
|  | 6017 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6018 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6019 | /* end confdefs.h.  */ | 
|  | 6020 | #include <sys/types.h> | 
|  | 6021 | #include <$ac_hdr> | 
|  | 6022 |  | 
|  | 6023 | int | 
|  | 6024 | main () | 
|  | 6025 | { | 
|  | 6026 | if ((DIR *) 0) | 
|  | 6027 | return 0; | 
|  | 6028 | ; | 
|  | 6029 | return 0; | 
|  | 6030 | } | 
|  | 6031 | _ACEOF | 
|  | 6032 | rm -f conftest.$ac_objext | 
|  | 6033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 6034 | (eval $ac_compile) 2>conftest.er1 | 
|  | 6035 | ac_status=$? | 
|  | 6036 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 6037 | rm -f conftest.er1 | 
|  | 6038 | cat conftest.err >&5 | 
|  | 6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6040 | (exit $ac_status); } && | 
|  | 6041 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 6042 | || test ! -s conftest.err' | 
|  | 6043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6044 | (eval $ac_try) 2>&5 | 
|  | 6045 | ac_status=$? | 
|  | 6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6047 | (exit $ac_status); }; } && | 
|  | 6048 | { ac_try='test -s conftest.$ac_objext' | 
|  | 6049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6050 | (eval $ac_try) 2>&5 | 
|  | 6051 | ac_status=$? | 
|  | 6052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6053 | (exit $ac_status); }; }; then | 
|  | 6054 | eval "$as_ac_Header=yes" | 
|  | 6055 | else | 
|  | 6056 | echo "$as_me: failed program was:" >&5 | 
|  | 6057 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6058 |  | 
|  | 6059 | eval "$as_ac_Header=no" | 
|  | 6060 | fi | 
|  | 6061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6062 | fi | 
|  | 6063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 6064 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 6065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 6066 | cat >>confdefs.h <<_ACEOF | 
|  | 6067 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
|  | 6068 | _ACEOF | 
|  | 6069 |  | 
|  | 6070 | ac_header_dirent=$ac_hdr; break | 
|  | 6071 | fi | 
|  | 6072 |  | 
|  | 6073 | done | 
|  | 6074 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 6075 | if test $ac_header_dirent = dirent.h; then | 
|  | 6076 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 6077 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
|  | 6078 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6080 | else | 
|  | 6081 | ac_func_search_save_LIBS=$LIBS | 
|  | 6082 | ac_cv_search_opendir=no | 
|  | 6083 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 6084 | /* confdefs.h.  */ | 
|  | 6085 | _ACEOF | 
|  | 6086 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6087 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6088 | /* end confdefs.h.  */ | 
|  | 6089 |  | 
|  | 6090 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 6091 | #ifdef __cplusplus | 
|  | 6092 | extern "C" | 
|  | 6093 | #endif | 
|  | 6094 | /* We use char because int might match the return type of a gcc2 | 
|  | 6095 | builtin and then its argument prototype would still apply.  */ | 
|  | 6096 | char opendir (); | 
|  | 6097 | int | 
|  | 6098 | main () | 
|  | 6099 | { | 
|  | 6100 | opendir (); | 
|  | 6101 | ; | 
|  | 6102 | return 0; | 
|  | 6103 | } | 
|  | 6104 | _ACEOF | 
|  | 6105 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 6106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 6107 | (eval $ac_link) 2>conftest.er1 | 
|  | 6108 | ac_status=$? | 
|  | 6109 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 6110 | rm -f conftest.er1 | 
|  | 6111 | cat conftest.err >&5 | 
|  | 6112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6113 | (exit $ac_status); } && | 
|  | 6114 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 6115 | || test ! -s conftest.err' | 
|  | 6116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6117 | (eval $ac_try) 2>&5 | 
|  | 6118 | ac_status=$? | 
|  | 6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6120 | (exit $ac_status); }; } && | 
|  | 6121 | { ac_try='test -s conftest$ac_exeext' | 
|  | 6122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6123 | (eval $ac_try) 2>&5 | 
|  | 6124 | ac_status=$? | 
|  | 6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6126 | (exit $ac_status); }; }; then | 
|  | 6127 | ac_cv_search_opendir="none required" | 
|  | 6128 | else | 
|  | 6129 | echo "$as_me: failed program was:" >&5 | 
|  | 6130 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6131 |  | 
|  | 6132 | fi | 
|  | 6133 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 6134 | conftest$ac_exeext conftest.$ac_ext | 
|  | 6135 | if test "$ac_cv_search_opendir" = no; then | 
|  | 6136 | for ac_lib in dir; do | 
|  | 6137 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 6138 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 6139 | /* confdefs.h.  */ | 
|  | 6140 | _ACEOF | 
|  | 6141 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6142 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6143 | /* end confdefs.h.  */ | 
|  | 6144 |  | 
|  | 6145 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 6146 | #ifdef __cplusplus | 
|  | 6147 | extern "C" | 
|  | 6148 | #endif | 
|  | 6149 | /* We use char because int might match the return type of a gcc2 | 
|  | 6150 | builtin and then its argument prototype would still apply.  */ | 
|  | 6151 | char opendir (); | 
|  | 6152 | int | 
|  | 6153 | main () | 
|  | 6154 | { | 
|  | 6155 | opendir (); | 
|  | 6156 | ; | 
|  | 6157 | return 0; | 
|  | 6158 | } | 
|  | 6159 | _ACEOF | 
|  | 6160 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 6161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 6162 | (eval $ac_link) 2>conftest.er1 | 
|  | 6163 | ac_status=$? | 
|  | 6164 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 6165 | rm -f conftest.er1 | 
|  | 6166 | cat conftest.err >&5 | 
|  | 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6168 | (exit $ac_status); } && | 
|  | 6169 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 6170 | || test ! -s conftest.err' | 
|  | 6171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6172 | (eval $ac_try) 2>&5 | 
|  | 6173 | ac_status=$? | 
|  | 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6175 | (exit $ac_status); }; } && | 
|  | 6176 | { ac_try='test -s conftest$ac_exeext' | 
|  | 6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6178 | (eval $ac_try) 2>&5 | 
|  | 6179 | ac_status=$? | 
|  | 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6181 | (exit $ac_status); }; }; then | 
|  | 6182 | ac_cv_search_opendir="-l$ac_lib" | 
|  | 6183 | break | 
|  | 6184 | else | 
|  | 6185 | echo "$as_me: failed program was:" >&5 | 
|  | 6186 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6187 |  | 
|  | 6188 | fi | 
|  | 6189 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 6190 | conftest$ac_exeext conftest.$ac_ext | 
|  | 6191 | done | 
|  | 6192 | fi | 
|  | 6193 | LIBS=$ac_func_search_save_LIBS | 
|  | 6194 | fi | 
|  | 6195 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 6196 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
|  | 6197 | if test "$ac_cv_search_opendir" != no; then | 
|  | 6198 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
|  | 6199 |  | 
|  | 6200 | fi | 
|  | 6201 |  | 
|  | 6202 | else | 
|  | 6203 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 6204 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
|  | 6205 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 6206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6207 | else | 
|  | 6208 | ac_func_search_save_LIBS=$LIBS | 
|  | 6209 | ac_cv_search_opendir=no | 
|  | 6210 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 6211 | /* confdefs.h.  */ | 
|  | 6212 | _ACEOF | 
|  | 6213 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6214 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6215 | /* end confdefs.h.  */ | 
|  | 6216 |  | 
|  | 6217 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 6218 | #ifdef __cplusplus | 
|  | 6219 | extern "C" | 
|  | 6220 | #endif | 
|  | 6221 | /* We use char because int might match the return type of a gcc2 | 
|  | 6222 | builtin and then its argument prototype would still apply.  */ | 
|  | 6223 | char opendir (); | 
|  | 6224 | int | 
|  | 6225 | main () | 
|  | 6226 | { | 
|  | 6227 | opendir (); | 
|  | 6228 | ; | 
|  | 6229 | return 0; | 
|  | 6230 | } | 
|  | 6231 | _ACEOF | 
|  | 6232 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 6233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 6234 | (eval $ac_link) 2>conftest.er1 | 
|  | 6235 | ac_status=$? | 
|  | 6236 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 6237 | rm -f conftest.er1 | 
|  | 6238 | cat conftest.err >&5 | 
|  | 6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6240 | (exit $ac_status); } && | 
|  | 6241 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 6242 | || test ! -s conftest.err' | 
|  | 6243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6244 | (eval $ac_try) 2>&5 | 
|  | 6245 | ac_status=$? | 
|  | 6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6247 | (exit $ac_status); }; } && | 
|  | 6248 | { ac_try='test -s conftest$ac_exeext' | 
|  | 6249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6250 | (eval $ac_try) 2>&5 | 
|  | 6251 | ac_status=$? | 
|  | 6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6253 | (exit $ac_status); }; }; then | 
|  | 6254 | ac_cv_search_opendir="none required" | 
|  | 6255 | else | 
|  | 6256 | echo "$as_me: failed program was:" >&5 | 
|  | 6257 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6258 |  | 
|  | 6259 | fi | 
|  | 6260 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 6261 | conftest$ac_exeext conftest.$ac_ext | 
|  | 6262 | if test "$ac_cv_search_opendir" = no; then | 
|  | 6263 | for ac_lib in x; do | 
|  | 6264 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 6265 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 6266 | /* confdefs.h.  */ | 
|  | 6267 | _ACEOF | 
|  | 6268 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6269 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6270 | /* end confdefs.h.  */ | 
|  | 6271 |  | 
|  | 6272 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 6273 | #ifdef __cplusplus | 
|  | 6274 | extern "C" | 
|  | 6275 | #endif | 
|  | 6276 | /* We use char because int might match the return type of a gcc2 | 
|  | 6277 | builtin and then its argument prototype would still apply.  */ | 
|  | 6278 | char opendir (); | 
|  | 6279 | int | 
|  | 6280 | main () | 
|  | 6281 | { | 
|  | 6282 | opendir (); | 
|  | 6283 | ; | 
|  | 6284 | return 0; | 
|  | 6285 | } | 
|  | 6286 | _ACEOF | 
|  | 6287 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 6288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 6289 | (eval $ac_link) 2>conftest.er1 | 
|  | 6290 | ac_status=$? | 
|  | 6291 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 6292 | rm -f conftest.er1 | 
|  | 6293 | cat conftest.err >&5 | 
|  | 6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6295 | (exit $ac_status); } && | 
|  | 6296 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 6297 | || test ! -s conftest.err' | 
|  | 6298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6299 | (eval $ac_try) 2>&5 | 
|  | 6300 | ac_status=$? | 
|  | 6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6302 | (exit $ac_status); }; } && | 
|  | 6303 | { ac_try='test -s conftest$ac_exeext' | 
|  | 6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6305 | (eval $ac_try) 2>&5 | 
|  | 6306 | ac_status=$? | 
|  | 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6308 | (exit $ac_status); }; }; then | 
|  | 6309 | ac_cv_search_opendir="-l$ac_lib" | 
|  | 6310 | break | 
|  | 6311 | else | 
|  | 6312 | echo "$as_me: failed program was:" >&5 | 
|  | 6313 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6314 |  | 
|  | 6315 | fi | 
|  | 6316 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 6317 | conftest$ac_exeext conftest.$ac_ext | 
|  | 6318 | done | 
|  | 6319 | fi | 
|  | 6320 | LIBS=$ac_func_search_save_LIBS | 
|  | 6321 | fi | 
|  | 6322 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 6323 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
|  | 6324 | if test "$ac_cv_search_opendir" != no; then | 
|  | 6325 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
|  | 6326 |  | 
|  | 6327 | fi | 
|  | 6328 |  | 
|  | 6329 | fi | 
|  | 6330 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6331 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 6332 |  | 
|  | 6333 |  | 
|  | 6334 |  | 
|  | 6335 |  | 
|  | 6336 |  | 
|  | 6337 |  | 
|  | 6338 |  | 
|  | 6339 |  | 
|  | 6340 |  | 
|  | 6341 | 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] | 6342 | inttypes.h stdint.h unistd.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6343 | do | 
|  | 6344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 6345 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 6346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 6347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 6348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6349 | else | 
|  | 6350 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6351 | /* confdefs.h.  */ | 
|  | 6352 | _ACEOF | 
|  | 6353 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6354 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6355 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6356 | $ac_includes_default | 
|  | 6357 |  | 
|  | 6358 | #include <$ac_header> | 
|  | 6359 | _ACEOF | 
|  | 6360 | rm -f conftest.$ac_objext | 
|  | 6361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6362 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6363 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6364 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 6365 | rm -f conftest.er1 | 
|  | 6366 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6368 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6369 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 6370 | || test ! -s conftest.err' | 
|  | 6371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6372 | (eval $ac_try) 2>&5 | 
|  | 6373 | ac_status=$? | 
|  | 6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6375 | (exit $ac_status); }; } && | 
|  | 6376 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6378 | (eval $ac_try) 2>&5 | 
|  | 6379 | ac_status=$? | 
|  | 6380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6381 | (exit $ac_status); }; }; then | 
|  | 6382 | eval "$as_ac_Header=yes" | 
|  | 6383 | else | 
|  | 6384 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6385 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6386 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6387 | eval "$as_ac_Header=no" | 
|  | 6388 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6390 | fi | 
|  | 6391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 6392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 6393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 6394 | cat >>confdefs.h <<_ACEOF | 
|  | 6395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 6396 | _ACEOF | 
|  | 6397 |  | 
|  | 6398 | fi | 
|  | 6399 |  | 
|  | 6400 | done | 
|  | 6401 |  | 
|  | 6402 |  | 
|  | 6403 |  | 
|  | 6404 | for ac_header in dlfcn.h | 
|  | 6405 | do | 
|  | 6406 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 6408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 6410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 6411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6412 | fi | 
|  | 6413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 6414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6415 | else | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6416 | # Is the header compilable? | 
|  | 6417 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 6418 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 6419 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6420 | /* confdefs.h.  */ | 
|  | 6421 | _ACEOF | 
|  | 6422 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6423 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6424 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6425 | $ac_includes_default | 
|  | 6426 | #include <$ac_header> | 
|  | 6427 | _ACEOF | 
|  | 6428 | rm -f conftest.$ac_objext | 
|  | 6429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6430 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6431 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6432 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 6433 | rm -f conftest.er1 | 
|  | 6434 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6436 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6437 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 6438 | || test ! -s conftest.err' | 
|  | 6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6440 | (eval $ac_try) 2>&5 | 
|  | 6441 | ac_status=$? | 
|  | 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6443 | (exit $ac_status); }; } && | 
|  | 6444 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 6446 | (eval $ac_try) 2>&5 | 
|  | 6447 | ac_status=$? | 
|  | 6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6449 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6450 | ac_header_compiler=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6451 | else | 
|  | 6452 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6453 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6454 |  | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6455 | ac_header_compiler=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6456 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6458 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 6459 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 6460 |  | 
|  | 6461 | # Is the header present? | 
|  | 6462 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 6463 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 6464 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6465 | /* confdefs.h.  */ | 
|  | 6466 | _ACEOF | 
|  | 6467 | cat confdefs.h >>conftest.$ac_ext | 
|  | 6468 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 6469 | /* end confdefs.h.  */ | 
|  | 6470 | #include <$ac_header> | 
|  | 6471 | _ACEOF | 
|  | 6472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 6473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 6474 | ac_status=$? | 
|  | 6475 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 6476 | rm -f conftest.er1 | 
|  | 6477 | cat conftest.err >&5 | 
|  | 6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 6479 | (exit $ac_status); } >/dev/null; then | 
|  | 6480 | if test -s conftest.err; then | 
|  | 6481 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6483 | else | 
|  | 6484 | ac_cpp_err= | 
|  | 6485 | fi | 
|  | 6486 | else | 
|  | 6487 | ac_cpp_err=yes | 
|  | 6488 | fi | 
|  | 6489 | if test -z "$ac_cpp_err"; then | 
|  | 6490 | ac_header_preproc=yes | 
|  | 6491 | else | 
|  | 6492 | echo "$as_me: failed program was:" >&5 | 
|  | 6493 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 6494 |  | 
|  | 6495 | ac_header_preproc=no | 
|  | 6496 | fi | 
|  | 6497 | rm -f conftest.err conftest.$ac_ext | 
|  | 6498 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 6499 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 6500 |  | 
|  | 6501 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6502 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 6503 | yes:no: ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6504 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 6505 | 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] | 6506 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 6507 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 6508 | ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6509 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6510 | no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6511 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 6512 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6513 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 6514 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 6515 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 6516 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 6517 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 6518 | 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] | 6519 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 6520 | 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] | 6521 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 6522 | 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] | 6523 | ( | 
|  | 6524 | cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6525 | ## ----------------------------------- ## | 
|  | 6526 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 6527 | ## ----------------------------------- ## | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6528 | _ASBOX | 
|  | 6529 | ) | | 
|  | 6530 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 6531 | ;; | 
|  | 6532 | esac | 
|  | 6533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 6534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 6535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 6536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 6537 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6538 | eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6539 | fi | 
|  | 6540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 6541 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6542 |  | 
|  | 6543 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6544 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 6545 | cat >>confdefs.h <<_ACEOF | 
|  | 6546 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 6547 | _ACEOF | 
|  | 6548 |  | 
|  | 6549 | fi | 
|  | 6550 |  | 
|  | 6551 | done | 
|  | 6552 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6553 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. | 
|  | 6554 | if test "${enable_ltdl_install+set}" = set; then | 
|  | 6555 | enableval="$enable_ltdl_install" | 
|  | 6556 |  | 
|  | 6557 | fi; | 
|  | 6558 |  | 
|  | 6559 |  | 
|  | 6560 |  | 
|  | 6561 | if test x"${enable_ltdl_install-no}" != xno; then | 
|  | 6562 | INSTALL_LTDL_TRUE= | 
|  | 6563 | INSTALL_LTDL_FALSE='#' | 
|  | 6564 | else | 
|  | 6565 | INSTALL_LTDL_TRUE='#' | 
|  | 6566 | INSTALL_LTDL_FALSE= | 
|  | 6567 | fi | 
|  | 6568 |  | 
|  | 6569 |  | 
|  | 6570 |  | 
|  | 6571 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
|  | 6572 | CONVENIENCE_LTDL_TRUE= | 
|  | 6573 | CONVENIENCE_LTDL_FALSE='#' | 
|  | 6574 | else | 
|  | 6575 | CONVENIENCE_LTDL_TRUE='#' | 
|  | 6576 | CONVENIENCE_LTDL_FALSE= | 
|  | 6577 | fi | 
|  | 6578 |  | 
|  | 6579 |  | 
|  | 6580 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 6581 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 6582 | library_names_spec= | 
|  | 6583 | libname_spec='lib$name' | 
|  | 6584 | soname_spec= | 
|  | 6585 | shrext_cmds=".so" | 
|  | 6586 | postinstall_cmds= | 
|  | 6587 | postuninstall_cmds= | 
|  | 6588 | finish_cmds= | 
|  | 6589 | finish_eval= | 
|  | 6590 | shlibpath_var= | 
|  | 6591 | shlibpath_overrides_runpath=unknown | 
|  | 6592 | version_type=none | 
|  | 6593 | dynamic_linker="$host_os ld.so" | 
|  | 6594 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 6595 | if test "$GCC" = yes; then | 
|  | 6596 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 6597 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 6598 | # if the path contains ";" then we assume it to be the separator | 
|  | 6599 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 6600 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 6601 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 6602 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 6603 | else | 
|  | 6604 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 6605 | fi | 
|  | 6606 | else | 
|  | 6607 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 6608 | fi | 
|  | 6609 | need_lib_prefix=unknown | 
|  | 6610 | hardcode_into_libs=no | 
|  | 6611 |  | 
|  | 6612 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 6613 | # flags to be left without arguments | 
|  | 6614 | need_version=unknown | 
|  | 6615 |  | 
|  | 6616 | case $host_os in | 
|  | 6617 | aix3*) | 
|  | 6618 | version_type=linux | 
|  | 6619 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 6620 | shlibpath_var=LIBPATH | 
|  | 6621 |  | 
|  | 6622 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 6623 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6624 | ;; | 
|  | 6625 |  | 
|  | 6626 | aix4* | aix5*) | 
|  | 6627 | version_type=linux | 
|  | 6628 | need_lib_prefix=no | 
|  | 6629 | need_version=no | 
|  | 6630 | hardcode_into_libs=yes | 
|  | 6631 | if test "$host_cpu" = ia64; then | 
|  | 6632 | # AIX 5 supports IA64 | 
|  | 6633 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 6634 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6635 | else | 
|  | 6636 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 6637 | # for dependence libraries.  The import file would start with | 
|  | 6638 | # the line `#! .'.  This would cause the generated library to | 
|  | 6639 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 6640 | # development snapshots of GCC prior to 3.0. | 
|  | 6641 | case $host_os in | 
|  | 6642 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 6643 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 6644 | echo ' yes ' | 
|  | 6645 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 6646 | : | 
|  | 6647 | else | 
|  | 6648 | can_build_shared=no | 
|  | 6649 | fi | 
|  | 6650 | ;; | 
|  | 6651 | esac | 
|  | 6652 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 6653 | # soname into executable. Probably we can add versioning support to | 
|  | 6654 | # collect2, so additional links can be useful in future. | 
|  | 6655 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 6656 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 6657 | # instead of lib<name>.a to let people know that these are not | 
|  | 6658 | # typical AIX shared libraries. | 
|  | 6659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 6660 | else | 
|  | 6661 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 6662 | # and later when we are not doing run time linking. | 
|  | 6663 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 6664 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6665 | fi | 
|  | 6666 | shlibpath_var=LIBPATH | 
|  | 6667 | fi | 
|  | 6668 | ;; | 
|  | 6669 |  | 
|  | 6670 | amigaos*) | 
|  | 6671 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 6672 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
|  | 6673 | 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' | 
|  | 6674 | ;; | 
|  | 6675 |  | 
|  | 6676 | beos*) | 
|  | 6677 | library_names_spec='${libname}${shared_ext}' | 
|  | 6678 | dynamic_linker="$host_os ld.so" | 
|  | 6679 | shlibpath_var=LIBRARY_PATH | 
|  | 6680 | ;; | 
|  | 6681 |  | 
|  | 6682 | bsdi[45]*) | 
|  | 6683 | version_type=linux | 
|  | 6684 | need_version=no | 
|  | 6685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 6686 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6687 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 6688 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6689 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 6690 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 6691 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 6692 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 6693 | # libtool to hard-code these into programs | 
|  | 6694 | ;; | 
|  | 6695 |  | 
|  | 6696 | cygwin* | mingw* | pw32*) | 
|  | 6697 | version_type=windows | 
|  | 6698 | shrext_cmds=".dll" | 
|  | 6699 | need_version=no | 
|  | 6700 | need_lib_prefix=no | 
|  | 6701 |  | 
|  | 6702 | case $GCC,$host_os in | 
|  | 6703 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 6704 | library_names_spec='$libname.dll.a' | 
|  | 6705 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 6706 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 6707 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 6708 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 6709 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 6710 | $install_prog $dir/$dlname \$dldir/$dlname' | 
|  | 6711 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 6712 | dlpath=$dir/\$dldll~ | 
|  | 6713 | $rm \$dlpath' | 
|  | 6714 | shlibpath_overrides_runpath=yes | 
|  | 6715 |  | 
|  | 6716 | case $host_os in | 
|  | 6717 | cygwin*) | 
|  | 6718 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 6719 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 6720 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
|  | 6721 | ;; | 
|  | 6722 | mingw*) | 
|  | 6723 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 6724 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 6725 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 6726 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 6727 | # It is most probably a Windows format PATH printed by | 
|  | 6728 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 6729 | # path with ; separators, and with drive letters. We can handle the | 
|  | 6730 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 6731 | # especially as we might pass files found there to a mingw objdump, | 
|  | 6732 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 6733 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 6734 | else | 
|  | 6735 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 6736 | fi | 
|  | 6737 | ;; | 
|  | 6738 | pw32*) | 
|  | 6739 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 6740 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 6741 | ;; | 
|  | 6742 | esac | 
|  | 6743 | ;; | 
|  | 6744 |  | 
|  | 6745 | *) | 
|  | 6746 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 6747 | ;; | 
|  | 6748 | esac | 
|  | 6749 | dynamic_linker='Win32 ld.exe' | 
|  | 6750 | # FIXME: first we should search . and the directory the executable is in | 
|  | 6751 | shlibpath_var=PATH | 
|  | 6752 | ;; | 
|  | 6753 |  | 
|  | 6754 | darwin* | rhapsody*) | 
|  | 6755 | dynamic_linker="$host_os dyld" | 
|  | 6756 | version_type=darwin | 
|  | 6757 | need_lib_prefix=no | 
|  | 6758 | need_version=no | 
|  | 6759 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 6760 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 6761 | shlibpath_overrides_runpath=yes | 
|  | 6762 | shlibpath_var=DYLD_LIBRARY_PATH | 
|  | 6763 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
|  | 6764 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
|  | 6765 | if test "$GCC" = yes; then | 
|  | 6766 | 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"` | 
|  | 6767 | else | 
|  | 6768 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
|  | 6769 | fi | 
|  | 6770 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 6771 | ;; | 
|  | 6772 |  | 
|  | 6773 | dgux*) | 
|  | 6774 | version_type=linux | 
|  | 6775 | need_lib_prefix=no | 
|  | 6776 | need_version=no | 
|  | 6777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 6778 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6779 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6780 | ;; | 
|  | 6781 |  | 
|  | 6782 | freebsd1*) | 
|  | 6783 | dynamic_linker=no | 
|  | 6784 | ;; | 
|  | 6785 |  | 
|  | 6786 | kfreebsd*-gnu) | 
|  | 6787 | version_type=linux | 
|  | 6788 | need_lib_prefix=no | 
|  | 6789 | need_version=no | 
|  | 6790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 6791 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6792 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6793 | shlibpath_overrides_runpath=no | 
|  | 6794 | hardcode_into_libs=yes | 
|  | 6795 | dynamic_linker='GNU ld.so' | 
|  | 6796 | ;; | 
|  | 6797 |  | 
|  | 6798 | freebsd*) | 
|  | 6799 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 6800 | version_type=freebsd-$objformat | 
|  | 6801 | case $version_type in | 
|  | 6802 | freebsd-elf*) | 
|  | 6803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 6804 | need_version=no | 
|  | 6805 | need_lib_prefix=no | 
|  | 6806 | ;; | 
|  | 6807 | freebsd-*) | 
|  | 6808 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 6809 | need_version=yes | 
|  | 6810 | ;; | 
|  | 6811 | esac | 
|  | 6812 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6813 | case $host_os in | 
|  | 6814 | freebsd2*) | 
|  | 6815 | shlibpath_overrides_runpath=yes | 
|  | 6816 | ;; | 
|  | 6817 | freebsd3.01* | freebsdelf3.01*) | 
|  | 6818 | shlibpath_overrides_runpath=yes | 
|  | 6819 | hardcode_into_libs=yes | 
|  | 6820 | ;; | 
|  | 6821 | *) # from 3.2 on | 
|  | 6822 | shlibpath_overrides_runpath=no | 
|  | 6823 | hardcode_into_libs=yes | 
|  | 6824 | ;; | 
|  | 6825 | esac | 
|  | 6826 | ;; | 
|  | 6827 |  | 
|  | 6828 | gnu*) | 
|  | 6829 | version_type=linux | 
|  | 6830 | need_lib_prefix=no | 
|  | 6831 | need_version=no | 
|  | 6832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 6833 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6834 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6835 | hardcode_into_libs=yes | 
|  | 6836 | ;; | 
|  | 6837 |  | 
|  | 6838 | hpux9* | hpux10* | hpux11*) | 
|  | 6839 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 6840 | # link against other versions. | 
|  | 6841 | version_type=sunos | 
|  | 6842 | need_lib_prefix=no | 
|  | 6843 | need_version=no | 
|  | 6844 | case "$host_cpu" in | 
|  | 6845 | ia64*) | 
|  | 6846 | shrext_cmds='.so' | 
|  | 6847 | hardcode_into_libs=yes | 
|  | 6848 | dynamic_linker="$host_os dld.so" | 
|  | 6849 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6850 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 6851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 6852 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6853 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 6854 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 6855 | else | 
|  | 6856 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 6857 | fi | 
|  | 6858 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 6859 | ;; | 
|  | 6860 | hppa*64*) | 
|  | 6861 | shrext_cmds='.sl' | 
|  | 6862 | hardcode_into_libs=yes | 
|  | 6863 | dynamic_linker="$host_os dld.sl" | 
|  | 6864 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 6865 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 6866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 6867 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6868 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 6869 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 6870 | ;; | 
|  | 6871 | *) | 
|  | 6872 | shrext_cmds='.sl' | 
|  | 6873 | dynamic_linker="$host_os dld.sl" | 
|  | 6874 | shlibpath_var=SHLIB_PATH | 
|  | 6875 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 6876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 6877 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6878 | ;; | 
|  | 6879 | esac | 
|  | 6880 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 6881 | postinstall_cmds='chmod 555 $lib' | 
|  | 6882 | ;; | 
|  | 6883 |  | 
|  | 6884 | irix5* | irix6* | nonstopux*) | 
|  | 6885 | case $host_os in | 
|  | 6886 | nonstopux*) version_type=nonstopux ;; | 
|  | 6887 | *) | 
|  | 6888 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 6889 | version_type=linux | 
|  | 6890 | else | 
|  | 6891 | version_type=irix | 
|  | 6892 | fi ;; | 
|  | 6893 | esac | 
|  | 6894 | need_lib_prefix=no | 
|  | 6895 | need_version=no | 
|  | 6896 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 6898 | case $host_os in | 
|  | 6899 | irix5* | nonstopux*) | 
|  | 6900 | libsuff= shlibsuff= | 
|  | 6901 | ;; | 
|  | 6902 | *) | 
|  | 6903 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 6904 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 6905 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 6906 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 6907 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 6908 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 6909 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 6910 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 6911 | esac | 
|  | 6912 | ;; | 
|  | 6913 | esac | 
|  | 6914 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 6915 | shlibpath_overrides_runpath=no | 
|  | 6916 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 6917 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 6918 | hardcode_into_libs=yes | 
|  | 6919 | ;; | 
|  | 6920 |  | 
|  | 6921 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 6922 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 6923 | dynamic_linker=no | 
|  | 6924 | ;; | 
|  | 6925 |  | 
|  | 6926 | # This must be Linux ELF. | 
|  | 6927 | linux*) | 
|  | 6928 | version_type=linux | 
|  | 6929 | need_lib_prefix=no | 
|  | 6930 | need_version=no | 
|  | 6931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 6932 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6933 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 6934 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6935 | shlibpath_overrides_runpath=no | 
|  | 6936 | # This implies no fast_install, which is unacceptable. | 
|  | 6937 | # Some rework will be needed to allow for fast_install | 
|  | 6938 | # before this can be enabled. | 
|  | 6939 | hardcode_into_libs=yes | 
|  | 6940 |  | 
|  | 6941 | # Append ld.so.conf contents to the search path | 
|  | 6942 | if test -f /etc/ld.so.conf; then | 
|  | 6943 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 6944 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 6945 | fi | 
|  | 6946 |  | 
|  | 6947 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 6948 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 6949 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 6950 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 6951 | # people can always --disable-shared, the test was removed, and we | 
|  | 6952 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 6953 | dynamic_linker='GNU/Linux ld.so' | 
|  | 6954 | ;; | 
|  | 6955 |  | 
|  | 6956 | knetbsd*-gnu) | 
|  | 6957 | version_type=linux | 
|  | 6958 | need_lib_prefix=no | 
|  | 6959 | need_version=no | 
|  | 6960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 6961 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6962 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6963 | shlibpath_overrides_runpath=no | 
|  | 6964 | hardcode_into_libs=yes | 
|  | 6965 | dynamic_linker='GNU ld.so' | 
|  | 6966 | ;; | 
|  | 6967 |  | 
|  | 6968 | netbsd*) | 
|  | 6969 | version_type=sunos | 
|  | 6970 | need_lib_prefix=no | 
|  | 6971 | need_version=no | 
|  | 6972 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 6973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 6974 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 6975 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 6976 | else | 
|  | 6977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 6978 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6979 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 6980 | fi | 
|  | 6981 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6982 | shlibpath_overrides_runpath=yes | 
|  | 6983 | hardcode_into_libs=yes | 
|  | 6984 | ;; | 
|  | 6985 |  | 
|  | 6986 | newsos6) | 
|  | 6987 | version_type=linux | 
|  | 6988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 6989 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 6990 | shlibpath_overrides_runpath=yes | 
|  | 6991 | ;; | 
|  | 6992 |  | 
|  | 6993 | nto-qnx*) | 
|  | 6994 | version_type=linux | 
|  | 6995 | need_lib_prefix=no | 
|  | 6996 | need_version=no | 
|  | 6997 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 6998 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 6999 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7000 | shlibpath_overrides_runpath=yes | 
|  | 7001 | ;; | 
|  | 7002 |  | 
|  | 7003 | openbsd*) | 
|  | 7004 | version_type=sunos | 
|  | 7005 | need_lib_prefix=no | 
|  | 7006 | need_version=no | 
|  | 7007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 7008 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 7009 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7010 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 7011 | case $host_os in | 
|  | 7012 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 7013 | shlibpath_overrides_runpath=no | 
|  | 7014 | ;; | 
|  | 7015 | *) | 
|  | 7016 | shlibpath_overrides_runpath=yes | 
|  | 7017 | ;; | 
|  | 7018 | esac | 
|  | 7019 | else | 
|  | 7020 | shlibpath_overrides_runpath=yes | 
|  | 7021 | fi | 
|  | 7022 | ;; | 
|  | 7023 |  | 
|  | 7024 | os2*) | 
|  | 7025 | libname_spec='$name' | 
|  | 7026 | shrext_cmds=".dll" | 
|  | 7027 | need_lib_prefix=no | 
|  | 7028 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 7029 | dynamic_linker='OS/2 ld.exe' | 
|  | 7030 | shlibpath_var=LIBPATH | 
|  | 7031 | ;; | 
|  | 7032 |  | 
|  | 7033 | osf3* | osf4* | osf5*) | 
|  | 7034 | version_type=osf | 
|  | 7035 | need_lib_prefix=no | 
|  | 7036 | need_version=no | 
|  | 7037 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7039 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7040 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 7041 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 7042 | ;; | 
|  | 7043 |  | 
|  | 7044 | sco3.2v5*) | 
|  | 7045 | version_type=osf | 
|  | 7046 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7048 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7049 | ;; | 
|  | 7050 |  | 
|  | 7051 | solaris*) | 
|  | 7052 | version_type=linux | 
|  | 7053 | need_lib_prefix=no | 
|  | 7054 | need_version=no | 
|  | 7055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7056 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7057 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7058 | shlibpath_overrides_runpath=yes | 
|  | 7059 | hardcode_into_libs=yes | 
|  | 7060 | # ldd complains unless libraries are executable | 
|  | 7061 | postinstall_cmds='chmod +x $lib' | 
|  | 7062 | ;; | 
|  | 7063 |  | 
|  | 7064 | sunos4*) | 
|  | 7065 | version_type=sunos | 
|  | 7066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 7067 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 7068 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7069 | shlibpath_overrides_runpath=yes | 
|  | 7070 | if test "$with_gnu_ld" = yes; then | 
|  | 7071 | need_lib_prefix=no | 
|  | 7072 | fi | 
|  | 7073 | need_version=yes | 
|  | 7074 | ;; | 
|  | 7075 |  | 
|  | 7076 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 7077 | version_type=linux | 
|  | 7078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 7079 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 7080 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7081 | case $host_vendor in | 
|  | 7082 | sni) | 
|  | 7083 | shlibpath_overrides_runpath=no | 
|  | 7084 | need_lib_prefix=no | 
|  | 7085 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 7086 | runpath_var=LD_RUN_PATH | 
|  | 7087 | ;; | 
|  | 7088 | siemens) | 
|  | 7089 | need_lib_prefix=no | 
|  | 7090 | ;; | 
|  | 7091 | motorola) | 
|  | 7092 | need_lib_prefix=no | 
|  | 7093 | need_version=no | 
|  | 7094 | shlibpath_overrides_runpath=no | 
|  | 7095 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 7096 | ;; | 
|  | 7097 | esac | 
|  | 7098 | ;; | 
|  | 7099 |  | 
|  | 7100 | sysv4*MP*) | 
|  | 7101 | if test -d /usr/nec ;then | 
|  | 7102 | version_type=linux | 
|  | 7103 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 7104 | soname_spec='$libname${shared_ext}.$major' | 
|  | 7105 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7106 | fi | 
|  | 7107 | ;; | 
|  | 7108 |  | 
|  | 7109 | uts4*) | 
|  | 7110 | version_type=linux | 
|  | 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 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 7114 | ;; | 
|  | 7115 |  | 
|  | 7116 | *) | 
|  | 7117 | dynamic_linker=no | 
|  | 7118 | ;; | 
|  | 7119 | esac | 
|  | 7120 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 7121 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 7122 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 7123 |  | 
|  | 7124 |  | 
|  | 7125 | echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | 
|  | 7126 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 | 
|  | 7127 | if test "${libltdl_cv_shlibext+set}" = set; then | 
|  | 7128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7129 | else | 
|  | 7130 |  | 
|  | 7131 | module=yes | 
|  | 7132 | eval libltdl_cv_shlibext=$shrext_cmds | 
|  | 7133 |  | 
|  | 7134 | fi | 
|  | 7135 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | 
|  | 7136 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 | 
|  | 7137 | if test -n "$libltdl_cv_shlibext"; then | 
|  | 7138 |  | 
|  | 7139 | cat >>confdefs.h <<_ACEOF | 
|  | 7140 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | 
|  | 7141 | _ACEOF | 
|  | 7142 |  | 
|  | 7143 | fi | 
|  | 7144 |  | 
|  | 7145 |  | 
|  | 7146 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | 
|  | 7147 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 | 
|  | 7148 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | 
|  | 7149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7150 | else | 
|  | 7151 | libltdl_cv_shlibpath_var="$shlibpath_var" | 
|  | 7152 | fi | 
|  | 7153 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | 
|  | 7154 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 | 
|  | 7155 | if test -n "$libltdl_cv_shlibpath_var"; then | 
|  | 7156 |  | 
|  | 7157 | cat >>confdefs.h <<_ACEOF | 
|  | 7158 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | 
|  | 7159 | _ACEOF | 
|  | 7160 |  | 
|  | 7161 | fi | 
|  | 7162 |  | 
|  | 7163 |  | 
|  | 7164 | echo "$as_me:$LINENO: checking for the default library search path" >&5 | 
|  | 7165 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 | 
|  | 7166 | if test "${libltdl_cv_sys_search_path+set}" = set; then | 
|  | 7167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7168 | else | 
|  | 7169 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | 
|  | 7170 | fi | 
|  | 7171 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | 
|  | 7172 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 | 
|  | 7173 | if test -n "$libltdl_cv_sys_search_path"; then | 
|  | 7174 | sys_search_path= | 
|  | 7175 | for dir in $libltdl_cv_sys_search_path; do | 
|  | 7176 | if test -z "$sys_search_path"; then | 
|  | 7177 | sys_search_path="$dir" | 
|  | 7178 | else | 
|  | 7179 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | 
|  | 7180 | fi | 
|  | 7181 | done | 
|  | 7182 |  | 
|  | 7183 | cat >>confdefs.h <<_ACEOF | 
|  | 7184 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | 
|  | 7185 | _ACEOF | 
|  | 7186 |  | 
|  | 7187 | fi | 
|  | 7188 |  | 
|  | 7189 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
|  | 7190 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
|  | 7191 | if test "${libltdl_cv_objdir+set}" = set; then | 
|  | 7192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7193 | else | 
|  | 7194 | libltdl_cv_objdir="$objdir" | 
|  | 7195 | if test -n "$objdir"; then | 
|  | 7196 | : | 
|  | 7197 | else | 
|  | 7198 | rm -f .libs 2>/dev/null | 
|  | 7199 | mkdir .libs 2>/dev/null | 
|  | 7200 | if test -d .libs; then | 
|  | 7201 | libltdl_cv_objdir=.libs | 
|  | 7202 | else | 
|  | 7203 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 7204 | libltdl_cv_objdir=_libs | 
|  | 7205 | fi | 
|  | 7206 | rmdir .libs 2>/dev/null | 
|  | 7207 | fi | 
|  | 7208 |  | 
|  | 7209 | fi | 
|  | 7210 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | 
|  | 7211 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 | 
|  | 7212 |  | 
|  | 7213 | cat >>confdefs.h <<_ACEOF | 
|  | 7214 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | 
|  | 7215 | _ACEOF | 
|  | 7216 |  | 
|  | 7217 |  | 
|  | 7218 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
|  | 7219 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 
|  | 7220 | if test "${lt_cv_path_NM+set}" = set; then | 
|  | 7221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7222 | else | 
|  | 7223 | if test -n "$NM"; then | 
|  | 7224 | # Let the user override the test. | 
|  | 7225 | lt_cv_path_NM="$NM" | 
|  | 7226 | else | 
|  | 7227 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 7228 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
|  | 7229 | IFS="$lt_save_ifs" | 
|  | 7230 | test -z "$ac_dir" && ac_dir=. | 
|  | 7231 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 
|  | 7232 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
|  | 7233 | # Check to see if the nm accepts a BSD-compat flag. | 
|  | 7234 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|  | 7235 | #   nm: unknown option "B" ignored | 
|  | 7236 | # Tru64's nm complains that /dev/null is an invalid object file | 
|  | 7237 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
|  | 7238 | */dev/null* | *'Invalid file or object type'*) | 
|  | 7239 | lt_cv_path_NM="$tmp_nm -B" | 
|  | 7240 | break | 
|  | 7241 | ;; | 
|  | 7242 | *) | 
|  | 7243 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
|  | 7244 | */dev/null*) | 
|  | 7245 | lt_cv_path_NM="$tmp_nm -p" | 
|  | 7246 | break | 
|  | 7247 | ;; | 
|  | 7248 | *) | 
|  | 7249 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|  | 7250 | continue # so that we can try to find one that supports BSD flags | 
|  | 7251 | ;; | 
|  | 7252 | esac | 
|  | 7253 | esac | 
|  | 7254 | fi | 
|  | 7255 | done | 
|  | 7256 | IFS="$lt_save_ifs" | 
|  | 7257 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|  | 7258 | fi | 
|  | 7259 | fi | 
|  | 7260 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
|  | 7261 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 
|  | 7262 | NM="$lt_cv_path_NM" | 
|  | 7263 |  | 
|  | 7264 |  | 
|  | 7265 |  | 
|  | 7266 |  | 
|  | 7267 |  | 
|  | 7268 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
|  | 7269 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
|  | 7270 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
|  | 7271 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
|  | 7272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7273 | else | 
|  | 7274 |  | 
|  | 7275 | # These are sane defaults that work on at least a few old systems. | 
|  | 7276 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 7277 |  | 
|  | 7278 | # Character class describing NM global symbol codes. | 
|  | 7279 | symcode='[BCDEGRST]' | 
|  | 7280 |  | 
|  | 7281 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 7282 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 7283 |  | 
|  | 7284 | # Transform the above into a raw symbol and a C symbol. | 
|  | 7285 | symxfrm='\1 \2\3 \3' | 
|  | 7286 |  | 
|  | 7287 | # Transform an extracted symbol line into a proper C declaration | 
|  | 7288 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
|  | 7289 |  | 
|  | 7290 | # Transform an extracted symbol line into symbol name and symbol address | 
|  | 7291 | 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'" | 
|  | 7292 |  | 
|  | 7293 | # Define system-specific variables. | 
|  | 7294 | case $host_os in | 
|  | 7295 | aix*) | 
|  | 7296 | symcode='[BCDT]' | 
|  | 7297 | ;; | 
|  | 7298 | cygwin* | mingw* | pw32*) | 
|  | 7299 | symcode='[ABCDGISTW]' | 
|  | 7300 | ;; | 
|  | 7301 | hpux*) # Its linker distinguishes data from code symbols | 
|  | 7302 | if test "$host_cpu" = ia64; then | 
|  | 7303 | symcode='[ABCDEGRST]' | 
|  | 7304 | fi | 
|  | 7305 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 7306 | 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'" | 
|  | 7307 | ;; | 
|  | 7308 | linux*) | 
|  | 7309 | if test "$host_cpu" = ia64; then | 
|  | 7310 | symcode='[ABCDGIRSTW]' | 
|  | 7311 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 7312 | 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'" | 
|  | 7313 | fi | 
|  | 7314 | ;; | 
|  | 7315 | irix* | nonstopux*) | 
|  | 7316 | symcode='[BCDEGRST]' | 
|  | 7317 | ;; | 
|  | 7318 | osf*) | 
|  | 7319 | symcode='[BCDEGQRST]' | 
|  | 7320 | ;; | 
|  | 7321 | solaris* | sysv5*) | 
|  | 7322 | symcode='[BDRT]' | 
|  | 7323 | ;; | 
|  | 7324 | sysv4) | 
|  | 7325 | symcode='[DFNSTU]' | 
|  | 7326 | ;; | 
|  | 7327 | esac | 
|  | 7328 |  | 
|  | 7329 | # Handle CRLF in mingw tool chain | 
|  | 7330 | opt_cr= | 
|  | 7331 | case $build_os in | 
|  | 7332 | mingw*) | 
|  | 7333 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 7334 | ;; | 
|  | 7335 | esac | 
|  | 7336 |  | 
|  | 7337 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 7338 | case `$NM -V 2>&1` in | 
|  | 7339 | *GNU* | *'with BFD'*) | 
|  | 7340 | symcode='[ABCDGIRSTW]' ;; | 
|  | 7341 | esac | 
|  | 7342 |  | 
|  | 7343 | # Try without a prefix undercore, then with it. | 
|  | 7344 | for ac_symprfx in "" "_"; do | 
|  | 7345 |  | 
|  | 7346 | # Write the raw and C identifiers. | 
|  | 7347 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
|  | 7348 |  | 
|  | 7349 | # Check to see that the pipe works correctly. | 
|  | 7350 | pipe_works=no | 
|  | 7351 |  | 
|  | 7352 | rm -f conftest* | 
|  | 7353 | cat > conftest.$ac_ext <<EOF | 
|  | 7354 | #ifdef __cplusplus | 
|  | 7355 | extern "C" { | 
|  | 7356 | #endif | 
|  | 7357 | char nm_test_var; | 
|  | 7358 | void nm_test_func(){} | 
|  | 7359 | #ifdef __cplusplus | 
|  | 7360 | } | 
|  | 7361 | #endif | 
|  | 7362 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 7363 | EOF | 
|  | 7364 |  | 
|  | 7365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 7366 | (eval $ac_compile) 2>&5 | 
|  | 7367 | ac_status=$? | 
|  | 7368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7369 | (exit $ac_status); }; then | 
|  | 7370 | # Now try to grab the symbols. | 
|  | 7371 | nlist=conftest.nm | 
|  | 7372 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
|  | 7373 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
|  | 7374 | ac_status=$? | 
|  | 7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7376 | (exit $ac_status); } && test -s "$nlist"; then | 
|  | 7377 | # Try sorting and uniquifying the output. | 
|  | 7378 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 7379 | mv -f "$nlist"T "$nlist" | 
|  | 7380 | else | 
|  | 7381 | rm -f "$nlist"T | 
|  | 7382 | fi | 
|  | 7383 |  | 
|  | 7384 | # Make sure that we snagged all the symbols we need. | 
|  | 7385 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 7386 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 7387 | cat <<EOF > conftest.$ac_ext | 
|  | 7388 | #ifdef __cplusplus | 
|  | 7389 | extern "C" { | 
|  | 7390 | #endif | 
|  | 7391 |  | 
|  | 7392 | EOF | 
|  | 7393 | # Now generate the symbol file. | 
|  | 7394 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
|  | 7395 |  | 
|  | 7396 | cat <<EOF >> conftest.$ac_ext | 
|  | 7397 | #if defined (__STDC__) && __STDC__ | 
|  | 7398 | # define lt_ptr_t void * | 
|  | 7399 | #else | 
|  | 7400 | # define lt_ptr_t char * | 
|  | 7401 | # define const | 
|  | 7402 | #endif | 
|  | 7403 |  | 
|  | 7404 | /* The mapping between symbol names and symbols. */ | 
|  | 7405 | const struct { | 
|  | 7406 | const char *name; | 
|  | 7407 | lt_ptr_t address; | 
|  | 7408 | } | 
|  | 7409 | lt_preloaded_symbols[] = | 
|  | 7410 | { | 
|  | 7411 | EOF | 
|  | 7412 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
|  | 7413 | cat <<\EOF >> conftest.$ac_ext | 
|  | 7414 | {0, (lt_ptr_t) 0} | 
|  | 7415 | }; | 
|  | 7416 |  | 
|  | 7417 | #ifdef __cplusplus | 
|  | 7418 | } | 
|  | 7419 | #endif | 
|  | 7420 | EOF | 
|  | 7421 | # Now try linking the two files. | 
|  | 7422 | mv conftest.$ac_objext conftstm.$ac_objext | 
|  | 7423 | lt_save_LIBS="$LIBS" | 
|  | 7424 | lt_save_CFLAGS="$CFLAGS" | 
|  | 7425 | LIBS="conftstm.$ac_objext" | 
|  | 7426 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
|  | 7427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7428 | (eval $ac_link) 2>&5 | 
|  | 7429 | ac_status=$? | 
|  | 7430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7431 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
|  | 7432 | pipe_works=yes | 
|  | 7433 | fi | 
|  | 7434 | LIBS="$lt_save_LIBS" | 
|  | 7435 | CFLAGS="$lt_save_CFLAGS" | 
|  | 7436 | else | 
|  | 7437 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 7438 | fi | 
|  | 7439 | else | 
|  | 7440 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 7441 | fi | 
|  | 7442 | else | 
|  | 7443 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 7444 | fi | 
|  | 7445 | else | 
|  | 7446 | echo "$progname: failed program was:" >&5 | 
|  | 7447 | cat conftest.$ac_ext >&5 | 
|  | 7448 | fi | 
|  | 7449 | rm -f conftest* conftst* | 
|  | 7450 |  | 
|  | 7451 | # Do not use the global_symbol_pipe unless it works. | 
|  | 7452 | if test "$pipe_works" = yes; then | 
|  | 7453 | break | 
|  | 7454 | else | 
|  | 7455 | lt_cv_sys_global_symbol_pipe= | 
|  | 7456 | fi | 
|  | 7457 | done | 
|  | 7458 |  | 
|  | 7459 | fi | 
|  | 7460 |  | 
|  | 7461 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 7462 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 7463 | fi | 
|  | 7464 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
|  | 7465 | echo "$as_me:$LINENO: result: failed" >&5 | 
|  | 7466 | echo "${ECHO_T}failed" >&6 | 
|  | 7467 | else | 
|  | 7468 | echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 7469 | echo "${ECHO_T}ok" >&6 | 
|  | 7470 | fi | 
|  | 7471 |  | 
|  | 7472 |  | 
|  | 7473 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
|  | 7474 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 | 
|  | 7475 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | 
|  | 7476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7477 | else | 
|  | 7478 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 7479 | libltdl_cv_preloaded_symbols=yes | 
|  | 7480 | else | 
|  | 7481 | libltdl_cv_preloaded_symbols=no | 
|  | 7482 | fi | 
|  | 7483 |  | 
|  | 7484 | fi | 
|  | 7485 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | 
|  | 7486 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 | 
|  | 7487 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
|  | 7488 |  | 
|  | 7489 | cat >>confdefs.h <<\_ACEOF | 
|  | 7490 | #define HAVE_PRELOADED_SYMBOLS 1 | 
|  | 7491 | _ACEOF | 
|  | 7492 |  | 
|  | 7493 | fi | 
|  | 7494 |  | 
|  | 7495 | LIBADD_DL= | 
|  | 7496 |  | 
|  | 7497 | ac_ext=c | 
|  | 7498 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7502 |  | 
|  | 7503 |  | 
|  | 7504 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 7505 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 7506 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 7507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7508 | else | 
|  | 7509 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7510 | /* confdefs.h.  */ | 
|  | 7511 | _ACEOF | 
|  | 7512 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7513 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7514 | /* end confdefs.h.  */ | 
|  | 7515 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 7516 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 7517 | #define shl_load innocuous_shl_load | 
|  | 7518 |  | 
|  | 7519 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 7520 | which can conflict with char shl_load (); below. | 
|  | 7521 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 7522 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 7523 |  | 
|  | 7524 | #ifdef __STDC__ | 
|  | 7525 | # include <limits.h> | 
|  | 7526 | #else | 
|  | 7527 | # include <assert.h> | 
|  | 7528 | #endif | 
|  | 7529 |  | 
|  | 7530 | #undef shl_load | 
|  | 7531 |  | 
|  | 7532 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7533 | #ifdef __cplusplus | 
|  | 7534 | extern "C" | 
|  | 7535 | { | 
|  | 7536 | #endif | 
|  | 7537 | /* We use char because int might match the return type of a gcc2 | 
|  | 7538 | builtin and then its argument prototype would still apply.  */ | 
|  | 7539 | char shl_load (); | 
|  | 7540 | /* The GNU C library defines this for functions which it implements | 
|  | 7541 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 7542 | something starting with __ and the normal name is an alias.  */ | 
|  | 7543 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 7544 | choke me | 
|  | 7545 | #else | 
|  | 7546 | char (*f) () = shl_load; | 
|  | 7547 | #endif | 
|  | 7548 | #ifdef __cplusplus | 
|  | 7549 | } | 
|  | 7550 | #endif | 
|  | 7551 |  | 
|  | 7552 | int | 
|  | 7553 | main () | 
|  | 7554 | { | 
|  | 7555 | return f != shl_load; | 
|  | 7556 | ; | 
|  | 7557 | return 0; | 
|  | 7558 | } | 
|  | 7559 | _ACEOF | 
|  | 7560 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7562 | (eval $ac_link) 2>conftest.er1 | 
|  | 7563 | ac_status=$? | 
|  | 7564 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7565 | rm -f conftest.er1 | 
|  | 7566 | cat conftest.err >&5 | 
|  | 7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7568 | (exit $ac_status); } && | 
|  | 7569 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 7570 | || test ! -s conftest.err' | 
|  | 7571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7572 | (eval $ac_try) 2>&5 | 
|  | 7573 | ac_status=$? | 
|  | 7574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7575 | (exit $ac_status); }; } && | 
|  | 7576 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7578 | (eval $ac_try) 2>&5 | 
|  | 7579 | ac_status=$? | 
|  | 7580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7581 | (exit $ac_status); }; }; then | 
|  | 7582 | ac_cv_func_shl_load=yes | 
|  | 7583 | else | 
|  | 7584 | echo "$as_me: failed program was:" >&5 | 
|  | 7585 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7586 |  | 
|  | 7587 | ac_cv_func_shl_load=no | 
|  | 7588 | fi | 
|  | 7589 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 7590 | conftest$ac_exeext conftest.$ac_ext | 
|  | 7591 | fi | 
|  | 7592 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 7593 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 7594 | if test $ac_cv_func_shl_load = yes; then | 
|  | 7595 |  | 
|  | 7596 | cat >>confdefs.h <<\_ACEOF | 
|  | 7597 | #define HAVE_SHL_LOAD 1 | 
|  | 7598 | _ACEOF | 
|  | 7599 |  | 
|  | 7600 | else | 
|  | 7601 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 7602 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 7603 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 7604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7605 | else | 
|  | 7606 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7607 | LIBS="-ldld  $LIBS" | 
|  | 7608 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7609 | /* confdefs.h.  */ | 
|  | 7610 | _ACEOF | 
|  | 7611 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7612 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7613 | /* end confdefs.h.  */ | 
|  | 7614 |  | 
|  | 7615 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7616 | #ifdef __cplusplus | 
|  | 7617 | extern "C" | 
|  | 7618 | #endif | 
|  | 7619 | /* We use char because int might match the return type of a gcc2 | 
|  | 7620 | builtin and then its argument prototype would still apply.  */ | 
|  | 7621 | char shl_load (); | 
|  | 7622 | int | 
|  | 7623 | main () | 
|  | 7624 | { | 
|  | 7625 | shl_load (); | 
|  | 7626 | ; | 
|  | 7627 | return 0; | 
|  | 7628 | } | 
|  | 7629 | _ACEOF | 
|  | 7630 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7632 | (eval $ac_link) 2>conftest.er1 | 
|  | 7633 | ac_status=$? | 
|  | 7634 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7635 | rm -f conftest.er1 | 
|  | 7636 | cat conftest.err >&5 | 
|  | 7637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7638 | (exit $ac_status); } && | 
|  | 7639 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 7640 | || test ! -s conftest.err' | 
|  | 7641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7642 | (eval $ac_try) 2>&5 | 
|  | 7643 | ac_status=$? | 
|  | 7644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7645 | (exit $ac_status); }; } && | 
|  | 7646 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7648 | (eval $ac_try) 2>&5 | 
|  | 7649 | ac_status=$? | 
|  | 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7651 | (exit $ac_status); }; }; then | 
|  | 7652 | ac_cv_lib_dld_shl_load=yes | 
|  | 7653 | else | 
|  | 7654 | echo "$as_me: failed program was:" >&5 | 
|  | 7655 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7656 |  | 
|  | 7657 | ac_cv_lib_dld_shl_load=no | 
|  | 7658 | fi | 
|  | 7659 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 7660 | conftest$ac_exeext conftest.$ac_ext | 
|  | 7661 | LIBS=$ac_check_lib_save_LIBS | 
|  | 7662 | fi | 
|  | 7663 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 7664 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 7665 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 7666 |  | 
|  | 7667 | cat >>confdefs.h <<\_ACEOF | 
|  | 7668 | #define HAVE_SHL_LOAD 1 | 
|  | 7669 | _ACEOF | 
|  | 7670 |  | 
|  | 7671 | LIBADD_DL="$LIBADD_DL -ldld" | 
|  | 7672 | else | 
|  | 7673 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 7674 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 7675 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 7676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7677 | else | 
|  | 7678 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7679 | LIBS="-ldl  $LIBS" | 
|  | 7680 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7681 | /* confdefs.h.  */ | 
|  | 7682 | _ACEOF | 
|  | 7683 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7684 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7685 | /* end confdefs.h.  */ | 
|  | 7686 |  | 
|  | 7687 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7688 | #ifdef __cplusplus | 
|  | 7689 | extern "C" | 
|  | 7690 | #endif | 
|  | 7691 | /* We use char because int might match the return type of a gcc2 | 
|  | 7692 | builtin and then its argument prototype would still apply.  */ | 
|  | 7693 | char dlopen (); | 
|  | 7694 | int | 
|  | 7695 | main () | 
|  | 7696 | { | 
|  | 7697 | dlopen (); | 
|  | 7698 | ; | 
|  | 7699 | return 0; | 
|  | 7700 | } | 
|  | 7701 | _ACEOF | 
|  | 7702 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7704 | (eval $ac_link) 2>conftest.er1 | 
|  | 7705 | ac_status=$? | 
|  | 7706 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7707 | rm -f conftest.er1 | 
|  | 7708 | cat conftest.err >&5 | 
|  | 7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7710 | (exit $ac_status); } && | 
|  | 7711 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 7712 | || test ! -s conftest.err' | 
|  | 7713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7714 | (eval $ac_try) 2>&5 | 
|  | 7715 | ac_status=$? | 
|  | 7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7717 | (exit $ac_status); }; } && | 
|  | 7718 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7720 | (eval $ac_try) 2>&5 | 
|  | 7721 | ac_status=$? | 
|  | 7722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7723 | (exit $ac_status); }; }; then | 
|  | 7724 | ac_cv_lib_dl_dlopen=yes | 
|  | 7725 | else | 
|  | 7726 | echo "$as_me: failed program was:" >&5 | 
|  | 7727 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7728 |  | 
|  | 7729 | ac_cv_lib_dl_dlopen=no | 
|  | 7730 | fi | 
|  | 7731 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 7732 | conftest$ac_exeext conftest.$ac_ext | 
|  | 7733 | LIBS=$ac_check_lib_save_LIBS | 
|  | 7734 | fi | 
|  | 7735 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 7736 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 7737 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 7738 |  | 
|  | 7739 | cat >>confdefs.h <<\_ACEOF | 
|  | 7740 | #define HAVE_LIBDL 1 | 
|  | 7741 | _ACEOF | 
|  | 7742 |  | 
|  | 7743 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | 
|  | 7744 | else | 
|  | 7745 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7746 | /* confdefs.h.  */ | 
|  | 7747 | _ACEOF | 
|  | 7748 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7749 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7750 | /* end confdefs.h.  */ | 
|  | 7751 | #if HAVE_DLFCN_H | 
|  | 7752 | #  include <dlfcn.h> | 
|  | 7753 | #endif | 
|  | 7754 |  | 
|  | 7755 | int | 
|  | 7756 | main () | 
|  | 7757 | { | 
|  | 7758 | dlopen(0, 0); | 
|  | 7759 | ; | 
|  | 7760 | return 0; | 
|  | 7761 | } | 
|  | 7762 | _ACEOF | 
|  | 7763 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7765 | (eval $ac_link) 2>conftest.er1 | 
|  | 7766 | ac_status=$? | 
|  | 7767 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7768 | rm -f conftest.er1 | 
|  | 7769 | cat conftest.err >&5 | 
|  | 7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7771 | (exit $ac_status); } && | 
|  | 7772 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 7773 | || test ! -s conftest.err' | 
|  | 7774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7775 | (eval $ac_try) 2>&5 | 
|  | 7776 | ac_status=$? | 
|  | 7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7778 | (exit $ac_status); }; } && | 
|  | 7779 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7781 | (eval $ac_try) 2>&5 | 
|  | 7782 | ac_status=$? | 
|  | 7783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7784 | (exit $ac_status); }; }; then | 
|  | 7785 |  | 
|  | 7786 | cat >>confdefs.h <<\_ACEOF | 
|  | 7787 | #define HAVE_LIBDL 1 | 
|  | 7788 | _ACEOF | 
|  | 7789 | libltdl_cv_func_dlopen="yes" | 
|  | 7790 | else | 
|  | 7791 | echo "$as_me: failed program was:" >&5 | 
|  | 7792 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7793 |  | 
|  | 7794 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 7795 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 7796 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 7797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7798 | else | 
|  | 7799 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7800 | LIBS="-lsvld  $LIBS" | 
|  | 7801 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7802 | /* confdefs.h.  */ | 
|  | 7803 | _ACEOF | 
|  | 7804 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7805 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7806 | /* end confdefs.h.  */ | 
|  | 7807 |  | 
|  | 7808 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7809 | #ifdef __cplusplus | 
|  | 7810 | extern "C" | 
|  | 7811 | #endif | 
|  | 7812 | /* We use char because int might match the return type of a gcc2 | 
|  | 7813 | builtin and then its argument prototype would still apply.  */ | 
|  | 7814 | char dlopen (); | 
|  | 7815 | int | 
|  | 7816 | main () | 
|  | 7817 | { | 
|  | 7818 | dlopen (); | 
|  | 7819 | ; | 
|  | 7820 | return 0; | 
|  | 7821 | } | 
|  | 7822 | _ACEOF | 
|  | 7823 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7825 | (eval $ac_link) 2>conftest.er1 | 
|  | 7826 | ac_status=$? | 
|  | 7827 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7828 | rm -f conftest.er1 | 
|  | 7829 | cat conftest.err >&5 | 
|  | 7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7831 | (exit $ac_status); } && | 
|  | 7832 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 7833 | || test ! -s conftest.err' | 
|  | 7834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7835 | (eval $ac_try) 2>&5 | 
|  | 7836 | ac_status=$? | 
|  | 7837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7838 | (exit $ac_status); }; } && | 
|  | 7839 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7841 | (eval $ac_try) 2>&5 | 
|  | 7842 | ac_status=$? | 
|  | 7843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7844 | (exit $ac_status); }; }; then | 
|  | 7845 | ac_cv_lib_svld_dlopen=yes | 
|  | 7846 | else | 
|  | 7847 | echo "$as_me: failed program was:" >&5 | 
|  | 7848 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7849 |  | 
|  | 7850 | ac_cv_lib_svld_dlopen=no | 
|  | 7851 | fi | 
|  | 7852 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 7853 | conftest$ac_exeext conftest.$ac_ext | 
|  | 7854 | LIBS=$ac_check_lib_save_LIBS | 
|  | 7855 | fi | 
|  | 7856 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 7857 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 7858 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 7859 |  | 
|  | 7860 | cat >>confdefs.h <<\_ACEOF | 
|  | 7861 | #define HAVE_LIBDL 1 | 
|  | 7862 | _ACEOF | 
|  | 7863 |  | 
|  | 7864 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | 
|  | 7865 | else | 
|  | 7866 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 7867 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 7868 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 7869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7870 | else | 
|  | 7871 | ac_check_lib_save_LIBS=$LIBS | 
|  | 7872 | LIBS="-ldld  $LIBS" | 
|  | 7873 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7874 | /* confdefs.h.  */ | 
|  | 7875 | _ACEOF | 
|  | 7876 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7877 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7878 | /* end confdefs.h.  */ | 
|  | 7879 |  | 
|  | 7880 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7881 | #ifdef __cplusplus | 
|  | 7882 | extern "C" | 
|  | 7883 | #endif | 
|  | 7884 | /* We use char because int might match the return type of a gcc2 | 
|  | 7885 | builtin and then its argument prototype would still apply.  */ | 
|  | 7886 | char dld_link (); | 
|  | 7887 | int | 
|  | 7888 | main () | 
|  | 7889 | { | 
|  | 7890 | dld_link (); | 
|  | 7891 | ; | 
|  | 7892 | return 0; | 
|  | 7893 | } | 
|  | 7894 | _ACEOF | 
|  | 7895 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7897 | (eval $ac_link) 2>conftest.er1 | 
|  | 7898 | ac_status=$? | 
|  | 7899 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7900 | rm -f conftest.er1 | 
|  | 7901 | cat conftest.err >&5 | 
|  | 7902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7903 | (exit $ac_status); } && | 
|  | 7904 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 7905 | || test ! -s conftest.err' | 
|  | 7906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7907 | (eval $ac_try) 2>&5 | 
|  | 7908 | ac_status=$? | 
|  | 7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7910 | (exit $ac_status); }; } && | 
|  | 7911 | { ac_try='test -s conftest$ac_exeext' | 
|  | 7912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 7913 | (eval $ac_try) 2>&5 | 
|  | 7914 | ac_status=$? | 
|  | 7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 7916 | (exit $ac_status); }; }; then | 
|  | 7917 | ac_cv_lib_dld_dld_link=yes | 
|  | 7918 | else | 
|  | 7919 | echo "$as_me: failed program was:" >&5 | 
|  | 7920 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 7921 |  | 
|  | 7922 | ac_cv_lib_dld_dld_link=no | 
|  | 7923 | fi | 
|  | 7924 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 7925 | conftest$ac_exeext conftest.$ac_ext | 
|  | 7926 | LIBS=$ac_check_lib_save_LIBS | 
|  | 7927 | fi | 
|  | 7928 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 7929 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 7930 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 7931 |  | 
|  | 7932 | cat >>confdefs.h <<\_ACEOF | 
|  | 7933 | #define HAVE_DLD 1 | 
|  | 7934 | _ACEOF | 
|  | 7935 |  | 
|  | 7936 | LIBADD_DL="$LIBADD_DL -ldld" | 
|  | 7937 | else | 
|  | 7938 | echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | 
|  | 7939 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 | 
|  | 7940 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | 
|  | 7941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 7942 | else | 
|  | 7943 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 7944 | /* confdefs.h.  */ | 
|  | 7945 | _ACEOF | 
|  | 7946 | cat confdefs.h >>conftest.$ac_ext | 
|  | 7947 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 7948 | /* end confdefs.h.  */ | 
|  | 7949 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | 
|  | 7950 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 7951 | #define _dyld_func_lookup innocuous__dyld_func_lookup | 
|  | 7952 |  | 
|  | 7953 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 7954 | which can conflict with char _dyld_func_lookup (); below. | 
|  | 7955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 7956 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 7957 |  | 
|  | 7958 | #ifdef __STDC__ | 
|  | 7959 | # include <limits.h> | 
|  | 7960 | #else | 
|  | 7961 | # include <assert.h> | 
|  | 7962 | #endif | 
|  | 7963 |  | 
|  | 7964 | #undef _dyld_func_lookup | 
|  | 7965 |  | 
|  | 7966 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7967 | #ifdef __cplusplus | 
|  | 7968 | extern "C" | 
|  | 7969 | { | 
|  | 7970 | #endif | 
|  | 7971 | /* We use char because int might match the return type of a gcc2 | 
|  | 7972 | builtin and then its argument prototype would still apply.  */ | 
|  | 7973 | char _dyld_func_lookup (); | 
|  | 7974 | /* The GNU C library defines this for functions which it implements | 
|  | 7975 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 7976 | something starting with __ and the normal name is an alias.  */ | 
|  | 7977 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) | 
|  | 7978 | choke me | 
|  | 7979 | #else | 
|  | 7980 | char (*f) () = _dyld_func_lookup; | 
|  | 7981 | #endif | 
|  | 7982 | #ifdef __cplusplus | 
|  | 7983 | } | 
|  | 7984 | #endif | 
|  | 7985 |  | 
|  | 7986 | int | 
|  | 7987 | main () | 
|  | 7988 | { | 
|  | 7989 | return f != _dyld_func_lookup; | 
|  | 7990 | ; | 
|  | 7991 | return 0; | 
|  | 7992 | } | 
|  | 7993 | _ACEOF | 
|  | 7994 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 7995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 7996 | (eval $ac_link) 2>conftest.er1 | 
|  | 7997 | ac_status=$? | 
|  | 7998 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 7999 | rm -f conftest.er1 | 
|  | 8000 | cat conftest.err >&5 | 
|  | 8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8002 | (exit $ac_status); } && | 
|  | 8003 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8004 | || test ! -s conftest.err' | 
|  | 8005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8006 | (eval $ac_try) 2>&5 | 
|  | 8007 | ac_status=$? | 
|  | 8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8009 | (exit $ac_status); }; } && | 
|  | 8010 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8012 | (eval $ac_try) 2>&5 | 
|  | 8013 | ac_status=$? | 
|  | 8014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8015 | (exit $ac_status); }; }; then | 
|  | 8016 | ac_cv_func__dyld_func_lookup=yes | 
|  | 8017 | else | 
|  | 8018 | echo "$as_me: failed program was:" >&5 | 
|  | 8019 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8020 |  | 
|  | 8021 | ac_cv_func__dyld_func_lookup=no | 
|  | 8022 | fi | 
|  | 8023 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 8024 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8025 | fi | 
|  | 8026 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | 
|  | 8027 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 | 
|  | 8028 | if test $ac_cv_func__dyld_func_lookup = yes; then | 
|  | 8029 |  | 
|  | 8030 | cat >>confdefs.h <<\_ACEOF | 
|  | 8031 | #define HAVE_DYLD 1 | 
|  | 8032 | _ACEOF | 
|  | 8033 |  | 
|  | 8034 | fi | 
|  | 8035 |  | 
|  | 8036 |  | 
|  | 8037 | fi | 
|  | 8038 |  | 
|  | 8039 |  | 
|  | 8040 | fi | 
|  | 8041 |  | 
|  | 8042 |  | 
|  | 8043 | fi | 
|  | 8044 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 8045 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8046 |  | 
|  | 8047 | fi | 
|  | 8048 |  | 
|  | 8049 |  | 
|  | 8050 | fi | 
|  | 8051 |  | 
|  | 8052 |  | 
|  | 8053 | fi | 
|  | 8054 |  | 
|  | 8055 |  | 
|  | 8056 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
|  | 8057 | then | 
|  | 8058 | lt_save_LIBS="$LIBS" | 
|  | 8059 | LIBS="$LIBS $LIBADD_DL" | 
|  | 8060 |  | 
|  | 8061 | for ac_func in dlerror | 
|  | 8062 | do | 
|  | 8063 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 8064 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 8065 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 8066 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 8067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8068 | else | 
|  | 8069 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8070 | /* confdefs.h.  */ | 
|  | 8071 | _ACEOF | 
|  | 8072 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8073 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8074 | /* end confdefs.h.  */ | 
|  | 8075 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 8076 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 8077 | #define $ac_func innocuous_$ac_func | 
|  | 8078 |  | 
|  | 8079 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 8080 | which can conflict with char $ac_func (); below. | 
|  | 8081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 8082 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 8083 |  | 
|  | 8084 | #ifdef __STDC__ | 
|  | 8085 | # include <limits.h> | 
|  | 8086 | #else | 
|  | 8087 | # include <assert.h> | 
|  | 8088 | #endif | 
|  | 8089 |  | 
|  | 8090 | #undef $ac_func | 
|  | 8091 |  | 
|  | 8092 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 8093 | #ifdef __cplusplus | 
|  | 8094 | extern "C" | 
|  | 8095 | { | 
|  | 8096 | #endif | 
|  | 8097 | /* We use char because int might match the return type of a gcc2 | 
|  | 8098 | builtin and then its argument prototype would still apply.  */ | 
|  | 8099 | char $ac_func (); | 
|  | 8100 | /* The GNU C library defines this for functions which it implements | 
|  | 8101 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 8102 | something starting with __ and the normal name is an alias.  */ | 
|  | 8103 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 8104 | choke me | 
|  | 8105 | #else | 
|  | 8106 | char (*f) () = $ac_func; | 
|  | 8107 | #endif | 
|  | 8108 | #ifdef __cplusplus | 
|  | 8109 | } | 
|  | 8110 | #endif | 
|  | 8111 |  | 
|  | 8112 | int | 
|  | 8113 | main () | 
|  | 8114 | { | 
|  | 8115 | return f != $ac_func; | 
|  | 8116 | ; | 
|  | 8117 | return 0; | 
|  | 8118 | } | 
|  | 8119 | _ACEOF | 
|  | 8120 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 8122 | (eval $ac_link) 2>conftest.er1 | 
|  | 8123 | ac_status=$? | 
|  | 8124 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8125 | rm -f conftest.er1 | 
|  | 8126 | cat conftest.err >&5 | 
|  | 8127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8128 | (exit $ac_status); } && | 
|  | 8129 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8130 | || test ! -s conftest.err' | 
|  | 8131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8132 | (eval $ac_try) 2>&5 | 
|  | 8133 | ac_status=$? | 
|  | 8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8135 | (exit $ac_status); }; } && | 
|  | 8136 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8138 | (eval $ac_try) 2>&5 | 
|  | 8139 | ac_status=$? | 
|  | 8140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8141 | (exit $ac_status); }; }; then | 
|  | 8142 | eval "$as_ac_var=yes" | 
|  | 8143 | else | 
|  | 8144 | echo "$as_me: failed program was:" >&5 | 
|  | 8145 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8146 |  | 
|  | 8147 | eval "$as_ac_var=no" | 
|  | 8148 | fi | 
|  | 8149 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 8150 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8151 | fi | 
|  | 8152 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 8153 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 8154 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 8155 | cat >>confdefs.h <<_ACEOF | 
|  | 8156 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 8157 | _ACEOF | 
|  | 8158 |  | 
|  | 8159 | fi | 
|  | 8160 | done | 
|  | 8161 |  | 
|  | 8162 | LIBS="$lt_save_LIBS" | 
|  | 8163 | fi | 
|  | 8164 | ac_ext=c | 
|  | 8165 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8169 |  | 
|  | 8170 |  | 
|  | 8171 |  | 
|  | 8172 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | 
|  | 8173 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 | 
|  | 8174 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | 
|  | 8175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8176 | else | 
|  | 8177 | ac_cv_sys_symbol_underscore=no | 
|  | 8178 | cat > conftest.$ac_ext <<EOF | 
|  | 8179 | void nm_test_func(){} | 
|  | 8180 | int main(){nm_test_func;return 0;} | 
|  | 8181 | EOF | 
|  | 8182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 8183 | (eval $ac_compile) 2>&5 | 
|  | 8184 | ac_status=$? | 
|  | 8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8186 | (exit $ac_status); }; then | 
|  | 8187 | # Now try to grab the symbols. | 
|  | 8188 | ac_nlist=conftest.nm | 
|  | 8189 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | 
|  | 8190 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
|  | 8191 | ac_status=$? | 
|  | 8192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8193 | (exit $ac_status); } && test -s "$ac_nlist"; then | 
|  | 8194 | # See whether the symbols have a leading underscore. | 
|  | 8195 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
|  | 8196 | ac_cv_sys_symbol_underscore=yes | 
|  | 8197 | else | 
|  | 8198 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
|  | 8199 | : | 
|  | 8200 | else | 
|  | 8201 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
|  | 8202 | fi | 
|  | 8203 | fi | 
|  | 8204 | else | 
|  | 8205 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 8206 | fi | 
|  | 8207 | else | 
|  | 8208 | echo "configure: failed program was:" >&5 | 
|  | 8209 | cat conftest.c >&5 | 
|  | 8210 | fi | 
|  | 8211 | rm -rf conftest* | 
|  | 8212 |  | 
|  | 8213 | fi | 
|  | 8214 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | 
|  | 8215 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 | 
|  | 8216 |  | 
|  | 8217 |  | 
|  | 8218 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | 
|  | 8219 | if test x"$libltdl_cv_func_dlopen" = xyes || | 
|  | 8220 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
|  | 8221 | echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | 
|  | 8222 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 | 
|  | 8223 | if test "${libltdl_cv_need_uscore+set}" = set; then | 
|  | 8224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8225 | else | 
|  | 8226 | libltdl_cv_need_uscore=unknown | 
|  | 8227 | save_LIBS="$LIBS" | 
|  | 8228 | LIBS="$LIBS $LIBADD_DL" | 
|  | 8229 | if test "$cross_compiling" = yes; then : | 
|  | 8230 | libltdl_cv_need_uscore=cross | 
|  | 8231 | else | 
|  | 8232 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 8233 | lt_status=$lt_dlunknown | 
|  | 8234 | cat > conftest.$ac_ext <<EOF | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 8235 | #line 8235 "configure" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8236 | #include "confdefs.h" | 
|  | 8237 |  | 
|  | 8238 | #if HAVE_DLFCN_H | 
|  | 8239 | #include <dlfcn.h> | 
|  | 8240 | #endif | 
|  | 8241 |  | 
|  | 8242 | #include <stdio.h> | 
|  | 8243 |  | 
|  | 8244 | #ifdef RTLD_GLOBAL | 
|  | 8245 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 8246 | #else | 
|  | 8247 | #  ifdef DL_GLOBAL | 
|  | 8248 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 8249 | #  else | 
|  | 8250 | #    define LT_DLGLOBAL		0 | 
|  | 8251 | #  endif | 
|  | 8252 | #endif | 
|  | 8253 |  | 
|  | 8254 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 8255 | find out it does not work in some platform. */ | 
|  | 8256 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 8257 | #  ifdef RTLD_LAZY | 
|  | 8258 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 8259 | #  else | 
|  | 8260 | #    ifdef DL_LAZY | 
|  | 8261 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 8262 | #    else | 
|  | 8263 | #      ifdef RTLD_NOW | 
|  | 8264 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 8265 | #      else | 
|  | 8266 | #        ifdef DL_NOW | 
|  | 8267 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 8268 | #        else | 
|  | 8269 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 8270 | #        endif | 
|  | 8271 | #      endif | 
|  | 8272 | #    endif | 
|  | 8273 | #  endif | 
|  | 8274 | #endif | 
|  | 8275 |  | 
|  | 8276 | #ifdef __cplusplus | 
|  | 8277 | extern "C" void exit (int); | 
|  | 8278 | #endif | 
|  | 8279 |  | 
|  | 8280 | void fnord() { int i=42;} | 
|  | 8281 | int main () | 
|  | 8282 | { | 
|  | 8283 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 8284 | int status = $lt_dlunknown; | 
|  | 8285 |  | 
|  | 8286 | if (self) | 
|  | 8287 | { | 
|  | 8288 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 8289 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 8290 | /* dlclose (self); */ | 
|  | 8291 | } | 
|  | 8292 |  | 
|  | 8293 | exit (status); | 
|  | 8294 | } | 
|  | 8295 | EOF | 
|  | 8296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 8297 | (eval $ac_link) 2>&5 | 
|  | 8298 | ac_status=$? | 
|  | 8299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8300 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 8301 | (./conftest; exit; ) 2>/dev/null | 
|  | 8302 | lt_status=$? | 
|  | 8303 | case x$lt_status in | 
|  | 8304 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
|  | 8305 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
|  | 8306 | x$lt_unknown|x*)  ;; | 
|  | 8307 | esac | 
|  | 8308 | else : | 
|  | 8309 | # compilation failed | 
|  | 8310 |  | 
|  | 8311 | fi | 
|  | 8312 | fi | 
|  | 8313 | rm -fr conftest* | 
|  | 8314 |  | 
|  | 8315 | LIBS="$save_LIBS" | 
|  | 8316 |  | 
|  | 8317 | fi | 
|  | 8318 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | 
|  | 8319 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 | 
|  | 8320 | fi | 
|  | 8321 | fi | 
|  | 8322 |  | 
|  | 8323 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
|  | 8324 |  | 
|  | 8325 | cat >>confdefs.h <<\_ACEOF | 
|  | 8326 | #define NEED_USCORE 1 | 
|  | 8327 | _ACEOF | 
|  | 8328 |  | 
|  | 8329 | fi | 
|  | 8330 |  | 
|  | 8331 |  | 
|  | 8332 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | 
|  | 8333 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 | 
|  | 8334 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | 
|  | 8335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8336 | else | 
|  | 8337 | # PORTME does your system automatically load deplibs for dlopen? | 
|  | 8338 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
|  | 8339 | # For now, we just catch OSes we know something about -- in the | 
|  | 8340 | # future, we'll try test this programmatically. | 
|  | 8341 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 8342 | case "$host_os" in | 
|  | 8343 | aix3*|aix4.1.*|aix4.2.*) | 
|  | 8344 | # Unknown whether this is true for these versions of AIX, but | 
|  | 8345 | # we want this `case' here to explicitly catch those versions. | 
|  | 8346 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 8347 | ;; | 
|  | 8348 | aix[45]*) | 
|  | 8349 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8350 | ;; | 
|  | 8351 | darwin*) | 
|  | 8352 | # Assuming the user has installed a libdl from somewhere, this is true | 
|  | 8353 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
|  | 8354 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8355 | ;; | 
|  | 8356 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) | 
|  | 8357 | # GNU and its variants, using gnu ld.so (Glibc) | 
|  | 8358 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8359 | ;; | 
|  | 8360 | hpux10*|hpux11*) | 
|  | 8361 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8362 | ;; | 
|  | 8363 | irix[12345]*|irix6.[01]*) | 
|  | 8364 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 
|  | 8365 | # know how it worked for any of those versions. | 
|  | 8366 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 8367 | ;; | 
|  | 8368 | irix*) | 
|  | 8369 | # The case above catches anything before 6.2, and it's known that | 
|  | 8370 | # at 6.2 and later dlopen does load deplibs. | 
|  | 8371 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8372 | ;; | 
|  | 8373 | netbsd*) | 
|  | 8374 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8375 | ;; | 
|  | 8376 | openbsd*) | 
|  | 8377 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8378 | ;; | 
|  | 8379 | osf[1234]*) | 
|  | 8380 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
|  | 8381 | # it did *not* use an RPATH in a shared library to find objects the | 
|  | 8382 | # library depends on, so we explictly say `no'. | 
|  | 8383 | libltdl_cv_sys_dlopen_deplibs=no | 
|  | 8384 | ;; | 
|  | 8385 | osf5.0|osf5.0a|osf5.1) | 
|  | 8386 | # dlopen *does* load deplibs and with the right loader patch applied | 
|  | 8387 | # it even uses RPATH in a shared library to search for shared objects | 
|  | 8388 | # that the library depends on, but there's no easy way to know if that | 
|  | 8389 | # patch is installed.  Since this is the case, all we can really | 
|  | 8390 | # say is unknown -- it depends on the patch being installed.  If | 
|  | 8391 | # it is, this changes to `yes'.  Without it, it would be `no'. | 
|  | 8392 | libltdl_cv_sys_dlopen_deplibs=unknown | 
|  | 8393 | ;; | 
|  | 8394 | osf*) | 
|  | 8395 | # the two cases above should catch all versions of osf <= 5.1.  Read | 
|  | 8396 | # the comments above for what we know about them. | 
|  | 8397 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
|  | 8398 | # is used to find them so we can finally say `yes'. | 
|  | 8399 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8400 | ;; | 
|  | 8401 | solaris*) | 
|  | 8402 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 8403 | ;; | 
|  | 8404 | esac | 
|  | 8405 |  | 
|  | 8406 | fi | 
|  | 8407 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | 
|  | 8408 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 | 
|  | 8409 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 
|  | 8410 |  | 
|  | 8411 | cat >>confdefs.h <<\_ACEOF | 
|  | 8412 | #define LTDL_DLOPEN_DEPLIBS 1 | 
|  | 8413 | _ACEOF | 
|  | 8414 |  | 
|  | 8415 | fi | 
|  | 8416 |  | 
|  | 8417 |  | 
|  | 8418 | for ac_header in argz.h | 
|  | 8419 | do | 
|  | 8420 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 8422 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 8424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 8425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8426 | fi | 
|  | 8427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 8428 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 8429 | else | 
|  | 8430 | # Is the header compilable? | 
|  | 8431 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 8432 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 8433 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8434 | /* confdefs.h.  */ | 
|  | 8435 | _ACEOF | 
|  | 8436 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8437 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8438 | /* end confdefs.h.  */ | 
|  | 8439 | $ac_includes_default | 
|  | 8440 | #include <$ac_header> | 
|  | 8441 | _ACEOF | 
|  | 8442 | rm -f conftest.$ac_objext | 
|  | 8443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 8444 | (eval $ac_compile) 2>conftest.er1 | 
|  | 8445 | ac_status=$? | 
|  | 8446 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8447 | rm -f conftest.er1 | 
|  | 8448 | cat conftest.err >&5 | 
|  | 8449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8450 | (exit $ac_status); } && | 
|  | 8451 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8452 | || test ! -s conftest.err' | 
|  | 8453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8454 | (eval $ac_try) 2>&5 | 
|  | 8455 | ac_status=$? | 
|  | 8456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8457 | (exit $ac_status); }; } && | 
|  | 8458 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8460 | (eval $ac_try) 2>&5 | 
|  | 8461 | ac_status=$? | 
|  | 8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8463 | (exit $ac_status); }; }; then | 
|  | 8464 | ac_header_compiler=yes | 
|  | 8465 | else | 
|  | 8466 | echo "$as_me: failed program was:" >&5 | 
|  | 8467 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8468 |  | 
|  | 8469 | ac_header_compiler=no | 
|  | 8470 | fi | 
|  | 8471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8472 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 8473 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 8474 |  | 
|  | 8475 | # Is the header present? | 
|  | 8476 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 8477 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 8478 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8479 | /* confdefs.h.  */ | 
|  | 8480 | _ACEOF | 
|  | 8481 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8482 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8483 | /* end confdefs.h.  */ | 
|  | 8484 | #include <$ac_header> | 
|  | 8485 | _ACEOF | 
|  | 8486 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 8487 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 8488 | ac_status=$? | 
|  | 8489 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8490 | rm -f conftest.er1 | 
|  | 8491 | cat conftest.err >&5 | 
|  | 8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8493 | (exit $ac_status); } >/dev/null; then | 
|  | 8494 | if test -s conftest.err; then | 
|  | 8495 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 8496 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 8497 | else | 
|  | 8498 | ac_cpp_err= | 
|  | 8499 | fi | 
|  | 8500 | else | 
|  | 8501 | ac_cpp_err=yes | 
|  | 8502 | fi | 
|  | 8503 | if test -z "$ac_cpp_err"; then | 
|  | 8504 | ac_header_preproc=yes | 
|  | 8505 | else | 
|  | 8506 | echo "$as_me: failed program was:" >&5 | 
|  | 8507 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8508 |  | 
|  | 8509 | ac_header_preproc=no | 
|  | 8510 | fi | 
|  | 8511 | rm -f conftest.err conftest.$ac_ext | 
|  | 8512 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 8513 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 8514 |  | 
|  | 8515 | # So?  What about this header? | 
|  | 8516 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 8517 | yes:no: ) | 
|  | 8518 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 8519 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 8520 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 8521 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 8522 | ac_header_preproc=yes | 
|  | 8523 | ;; | 
|  | 8524 | no:yes:* ) | 
|  | 8525 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 8526 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 8527 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 8528 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 8529 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 8530 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 8531 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 8532 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 8533 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 8534 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 8535 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 8536 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 8537 | ( | 
|  | 8538 | cat <<\_ASBOX | 
|  | 8539 | ## ----------------------------------- ## | 
|  | 8540 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 8541 | ## ----------------------------------- ## | 
|  | 8542 | _ASBOX | 
|  | 8543 | ) | | 
|  | 8544 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 8545 | ;; | 
|  | 8546 | esac | 
|  | 8547 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 8549 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 8550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8551 | else | 
|  | 8552 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 8553 | fi | 
|  | 8554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 8555 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 8556 |  | 
|  | 8557 | fi | 
|  | 8558 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 8559 | cat >>confdefs.h <<_ACEOF | 
|  | 8560 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 8561 | _ACEOF | 
|  | 8562 |  | 
|  | 8563 | fi | 
|  | 8564 |  | 
|  | 8565 | done | 
|  | 8566 |  | 
|  | 8567 |  | 
|  | 8568 | echo "$as_me:$LINENO: checking for error_t" >&5 | 
|  | 8569 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 | 
|  | 8570 | if test "${ac_cv_type_error_t+set}" = set; then | 
|  | 8571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8572 | else | 
|  | 8573 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8574 | /* confdefs.h.  */ | 
|  | 8575 | _ACEOF | 
|  | 8576 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8577 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8578 | /* end confdefs.h.  */ | 
|  | 8579 | #if HAVE_ARGZ_H | 
|  | 8580 | #  include <argz.h> | 
|  | 8581 | #endif | 
|  | 8582 |  | 
|  | 8583 | int | 
|  | 8584 | main () | 
|  | 8585 | { | 
|  | 8586 | if ((error_t *) 0) | 
|  | 8587 | return 0; | 
|  | 8588 | if (sizeof (error_t)) | 
|  | 8589 | return 0; | 
|  | 8590 | ; | 
|  | 8591 | return 0; | 
|  | 8592 | } | 
|  | 8593 | _ACEOF | 
|  | 8594 | rm -f conftest.$ac_objext | 
|  | 8595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 8596 | (eval $ac_compile) 2>conftest.er1 | 
|  | 8597 | ac_status=$? | 
|  | 8598 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8599 | rm -f conftest.er1 | 
|  | 8600 | cat conftest.err >&5 | 
|  | 8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8602 | (exit $ac_status); } && | 
|  | 8603 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8604 | || test ! -s conftest.err' | 
|  | 8605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8606 | (eval $ac_try) 2>&5 | 
|  | 8607 | ac_status=$? | 
|  | 8608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8609 | (exit $ac_status); }; } && | 
|  | 8610 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8612 | (eval $ac_try) 2>&5 | 
|  | 8613 | ac_status=$? | 
|  | 8614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8615 | (exit $ac_status); }; }; then | 
|  | 8616 | ac_cv_type_error_t=yes | 
|  | 8617 | else | 
|  | 8618 | echo "$as_me: failed program was:" >&5 | 
|  | 8619 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8620 |  | 
|  | 8621 | ac_cv_type_error_t=no | 
|  | 8622 | fi | 
|  | 8623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8624 | fi | 
|  | 8625 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | 
|  | 8626 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 | 
|  | 8627 | if test $ac_cv_type_error_t = yes; then | 
|  | 8628 |  | 
|  | 8629 | cat >>confdefs.h <<_ACEOF | 
|  | 8630 | #define HAVE_ERROR_T 1 | 
|  | 8631 | _ACEOF | 
|  | 8632 |  | 
|  | 8633 |  | 
|  | 8634 | else | 
|  | 8635 |  | 
|  | 8636 | cat >>confdefs.h <<\_ACEOF | 
|  | 8637 | #define error_t int | 
|  | 8638 | _ACEOF | 
|  | 8639 |  | 
|  | 8640 | fi | 
|  | 8641 |  | 
|  | 8642 |  | 
|  | 8643 |  | 
|  | 8644 |  | 
|  | 8645 |  | 
|  | 8646 |  | 
|  | 8647 |  | 
|  | 8648 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | 
|  | 8649 | do | 
|  | 8650 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 8651 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 8652 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 8653 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 8654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8655 | else | 
|  | 8656 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8657 | /* confdefs.h.  */ | 
|  | 8658 | _ACEOF | 
|  | 8659 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8660 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8661 | /* end confdefs.h.  */ | 
|  | 8662 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 8663 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 8664 | #define $ac_func innocuous_$ac_func | 
|  | 8665 |  | 
|  | 8666 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 8667 | which can conflict with char $ac_func (); below. | 
|  | 8668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 8669 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 8670 |  | 
|  | 8671 | #ifdef __STDC__ | 
|  | 8672 | # include <limits.h> | 
|  | 8673 | #else | 
|  | 8674 | # include <assert.h> | 
|  | 8675 | #endif | 
|  | 8676 |  | 
|  | 8677 | #undef $ac_func | 
|  | 8678 |  | 
|  | 8679 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 8680 | #ifdef __cplusplus | 
|  | 8681 | extern "C" | 
|  | 8682 | { | 
|  | 8683 | #endif | 
|  | 8684 | /* We use char because int might match the return type of a gcc2 | 
|  | 8685 | builtin and then its argument prototype would still apply.  */ | 
|  | 8686 | char $ac_func (); | 
|  | 8687 | /* The GNU C library defines this for functions which it implements | 
|  | 8688 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 8689 | something starting with __ and the normal name is an alias.  */ | 
|  | 8690 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 8691 | choke me | 
|  | 8692 | #else | 
|  | 8693 | char (*f) () = $ac_func; | 
|  | 8694 | #endif | 
|  | 8695 | #ifdef __cplusplus | 
|  | 8696 | } | 
|  | 8697 | #endif | 
|  | 8698 |  | 
|  | 8699 | int | 
|  | 8700 | main () | 
|  | 8701 | { | 
|  | 8702 | return f != $ac_func; | 
|  | 8703 | ; | 
|  | 8704 | return 0; | 
|  | 8705 | } | 
|  | 8706 | _ACEOF | 
|  | 8707 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 8708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 8709 | (eval $ac_link) 2>conftest.er1 | 
|  | 8710 | ac_status=$? | 
|  | 8711 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8712 | rm -f conftest.er1 | 
|  | 8713 | cat conftest.err >&5 | 
|  | 8714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8715 | (exit $ac_status); } && | 
|  | 8716 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8717 | || test ! -s conftest.err' | 
|  | 8718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8719 | (eval $ac_try) 2>&5 | 
|  | 8720 | ac_status=$? | 
|  | 8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8722 | (exit $ac_status); }; } && | 
|  | 8723 | { ac_try='test -s conftest$ac_exeext' | 
|  | 8724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8725 | (eval $ac_try) 2>&5 | 
|  | 8726 | ac_status=$? | 
|  | 8727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8728 | (exit $ac_status); }; }; then | 
|  | 8729 | eval "$as_ac_var=yes" | 
|  | 8730 | else | 
|  | 8731 | echo "$as_me: failed program was:" >&5 | 
|  | 8732 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8733 |  | 
|  | 8734 | eval "$as_ac_var=no" | 
|  | 8735 | fi | 
|  | 8736 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 8737 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8738 | fi | 
|  | 8739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 8740 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 8741 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 8742 | cat >>confdefs.h <<_ACEOF | 
|  | 8743 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 8744 | _ACEOF | 
|  | 8745 |  | 
|  | 8746 | fi | 
|  | 8747 | done | 
|  | 8748 |  | 
|  | 8749 |  | 
|  | 8750 |  | 
|  | 8751 |  | 
|  | 8752 |  | 
|  | 8753 |  | 
|  | 8754 |  | 
|  | 8755 |  | 
|  | 8756 |  | 
|  | 8757 |  | 
|  | 8758 |  | 
|  | 8759 |  | 
|  | 8760 |  | 
|  | 8761 |  | 
|  | 8762 |  | 
|  | 8763 |  | 
|  | 8764 |  | 
|  | 8765 |  | 
|  | 8766 |  | 
|  | 8767 |  | 
|  | 8768 |  | 
|  | 8769 |  | 
|  | 8770 |  | 
|  | 8771 |  | 
|  | 8772 |  | 
|  | 8773 |  | 
|  | 8774 |  | 
|  | 8775 |  | 
|  | 8776 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | 
|  | 8777 | stdio.h unistd.h | 
|  | 8778 | do | 
|  | 8779 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 8781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 8783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 8784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8785 | fi | 
|  | 8786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 8787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 8788 | else | 
|  | 8789 | # Is the header compilable? | 
|  | 8790 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 8791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 8792 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8793 | /* confdefs.h.  */ | 
|  | 8794 | _ACEOF | 
|  | 8795 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8796 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8797 | /* end confdefs.h.  */ | 
|  | 8798 | $ac_includes_default | 
|  | 8799 | #include <$ac_header> | 
|  | 8800 | _ACEOF | 
|  | 8801 | rm -f conftest.$ac_objext | 
|  | 8802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 8803 | (eval $ac_compile) 2>conftest.er1 | 
|  | 8804 | ac_status=$? | 
|  | 8805 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8806 | rm -f conftest.er1 | 
|  | 8807 | cat conftest.err >&5 | 
|  | 8808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8809 | (exit $ac_status); } && | 
|  | 8810 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8811 | || test ! -s conftest.err' | 
|  | 8812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8813 | (eval $ac_try) 2>&5 | 
|  | 8814 | ac_status=$? | 
|  | 8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8816 | (exit $ac_status); }; } && | 
|  | 8817 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8819 | (eval $ac_try) 2>&5 | 
|  | 8820 | ac_status=$? | 
|  | 8821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8822 | (exit $ac_status); }; }; then | 
|  | 8823 | ac_header_compiler=yes | 
|  | 8824 | else | 
|  | 8825 | echo "$as_me: failed program was:" >&5 | 
|  | 8826 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8827 |  | 
|  | 8828 | ac_header_compiler=no | 
|  | 8829 | fi | 
|  | 8830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8831 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 8832 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 8833 |  | 
|  | 8834 | # Is the header present? | 
|  | 8835 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 8836 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 8837 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8838 | /* confdefs.h.  */ | 
|  | 8839 | _ACEOF | 
|  | 8840 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8841 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8842 | /* end confdefs.h.  */ | 
|  | 8843 | #include <$ac_header> | 
|  | 8844 | _ACEOF | 
|  | 8845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 8846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 8847 | ac_status=$? | 
|  | 8848 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8849 | rm -f conftest.er1 | 
|  | 8850 | cat conftest.err >&5 | 
|  | 8851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8852 | (exit $ac_status); } >/dev/null; then | 
|  | 8853 | if test -s conftest.err; then | 
|  | 8854 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 8855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 8856 | else | 
|  | 8857 | ac_cpp_err= | 
|  | 8858 | fi | 
|  | 8859 | else | 
|  | 8860 | ac_cpp_err=yes | 
|  | 8861 | fi | 
|  | 8862 | if test -z "$ac_cpp_err"; then | 
|  | 8863 | ac_header_preproc=yes | 
|  | 8864 | else | 
|  | 8865 | echo "$as_me: failed program was:" >&5 | 
|  | 8866 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8867 |  | 
|  | 8868 | ac_header_preproc=no | 
|  | 8869 | fi | 
|  | 8870 | rm -f conftest.err conftest.$ac_ext | 
|  | 8871 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 8872 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 8873 |  | 
|  | 8874 | # So?  What about this header? | 
|  | 8875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 8876 | yes:no: ) | 
|  | 8877 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 8878 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 8879 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 8880 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 8881 | ac_header_preproc=yes | 
|  | 8882 | ;; | 
|  | 8883 | no:yes:* ) | 
|  | 8884 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 8885 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 8886 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 8887 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 8888 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 8889 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 8890 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 8891 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 8892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 8893 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 8894 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 8895 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 8896 | ( | 
|  | 8897 | cat <<\_ASBOX | 
|  | 8898 | ## ----------------------------------- ## | 
|  | 8899 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 8900 | ## ----------------------------------- ## | 
|  | 8901 | _ASBOX | 
|  | 8902 | ) | | 
|  | 8903 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 8904 | ;; | 
|  | 8905 | esac | 
|  | 8906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 8908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 8909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8910 | else | 
|  | 8911 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 8912 | fi | 
|  | 8913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 8914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 8915 |  | 
|  | 8916 | fi | 
|  | 8917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 8918 | cat >>confdefs.h <<_ACEOF | 
|  | 8919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 8920 | _ACEOF | 
|  | 8921 |  | 
|  | 8922 | fi | 
|  | 8923 |  | 
|  | 8924 | done | 
|  | 8925 |  | 
|  | 8926 |  | 
|  | 8927 |  | 
|  | 8928 |  | 
|  | 8929 |  | 
|  | 8930 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | 
|  | 8931 | do | 
|  | 8932 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 8934 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 8935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 8936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 8937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 8938 | fi | 
|  | 8939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 8940 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 8941 | else | 
|  | 8942 | # Is the header compilable? | 
|  | 8943 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 8944 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 8945 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8946 | /* confdefs.h.  */ | 
|  | 8947 | _ACEOF | 
|  | 8948 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8949 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8950 | /* end confdefs.h.  */ | 
|  | 8951 | $ac_includes_default | 
|  | 8952 | #include <$ac_header> | 
|  | 8953 | _ACEOF | 
|  | 8954 | rm -f conftest.$ac_objext | 
|  | 8955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 8956 | (eval $ac_compile) 2>conftest.er1 | 
|  | 8957 | ac_status=$? | 
|  | 8958 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 8959 | rm -f conftest.er1 | 
|  | 8960 | cat conftest.err >&5 | 
|  | 8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8962 | (exit $ac_status); } && | 
|  | 8963 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 8964 | || test ! -s conftest.err' | 
|  | 8965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8966 | (eval $ac_try) 2>&5 | 
|  | 8967 | ac_status=$? | 
|  | 8968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8969 | (exit $ac_status); }; } && | 
|  | 8970 | { ac_try='test -s conftest.$ac_objext' | 
|  | 8971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 8972 | (eval $ac_try) 2>&5 | 
|  | 8973 | ac_status=$? | 
|  | 8974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 8975 | (exit $ac_status); }; }; then | 
|  | 8976 | ac_header_compiler=yes | 
|  | 8977 | else | 
|  | 8978 | echo "$as_me: failed program was:" >&5 | 
|  | 8979 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 8980 |  | 
|  | 8981 | ac_header_compiler=no | 
|  | 8982 | fi | 
|  | 8983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8984 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 8985 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 8986 |  | 
|  | 8987 | # Is the header present? | 
|  | 8988 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 8989 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 8990 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 8991 | /* confdefs.h.  */ | 
|  | 8992 | _ACEOF | 
|  | 8993 | cat confdefs.h >>conftest.$ac_ext | 
|  | 8994 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 8995 | /* end confdefs.h.  */ | 
|  | 8996 | #include <$ac_header> | 
|  | 8997 | _ACEOF | 
|  | 8998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 8999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 9000 | ac_status=$? | 
|  | 9001 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9002 | rm -f conftest.er1 | 
|  | 9003 | cat conftest.err >&5 | 
|  | 9004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9005 | (exit $ac_status); } >/dev/null; then | 
|  | 9006 | if test -s conftest.err; then | 
|  | 9007 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 9008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 9009 | else | 
|  | 9010 | ac_cpp_err= | 
|  | 9011 | fi | 
|  | 9012 | else | 
|  | 9013 | ac_cpp_err=yes | 
|  | 9014 | fi | 
|  | 9015 | if test -z "$ac_cpp_err"; then | 
|  | 9016 | ac_header_preproc=yes | 
|  | 9017 | else | 
|  | 9018 | echo "$as_me: failed program was:" >&5 | 
|  | 9019 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9020 |  | 
|  | 9021 | ac_header_preproc=no | 
|  | 9022 | fi | 
|  | 9023 | rm -f conftest.err conftest.$ac_ext | 
|  | 9024 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 9025 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 9026 |  | 
|  | 9027 | # So?  What about this header? | 
|  | 9028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 9029 | yes:no: ) | 
|  | 9030 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 9031 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 9032 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 9033 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 9034 | ac_header_preproc=yes | 
|  | 9035 | ;; | 
|  | 9036 | no:yes:* ) | 
|  | 9037 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 9038 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 9039 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 9040 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 9041 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 9042 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 9043 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 9044 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 9045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 9046 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 9047 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 9048 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 9049 | ( | 
|  | 9050 | cat <<\_ASBOX | 
|  | 9051 | ## ----------------------------------- ## | 
|  | 9052 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 9053 | ## ----------------------------------- ## | 
|  | 9054 | _ASBOX | 
|  | 9055 | ) | | 
|  | 9056 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 9057 | ;; | 
|  | 9058 | esac | 
|  | 9059 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 9060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 9061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 9062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9063 | else | 
|  | 9064 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 9065 | fi | 
|  | 9066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 9067 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 9068 |  | 
|  | 9069 | fi | 
|  | 9070 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 9071 | cat >>confdefs.h <<_ACEOF | 
|  | 9072 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 9073 | _ACEOF | 
|  | 9074 |  | 
|  | 9075 | fi | 
|  | 9076 |  | 
|  | 9077 | done | 
|  | 9078 |  | 
|  | 9079 |  | 
|  | 9080 |  | 
|  | 9081 | for ac_header in string.h strings.h | 
|  | 9082 | do | 
|  | 9083 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 9084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 9085 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 9086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 9087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 9088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9089 | fi | 
|  | 9090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 9091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 9092 | else | 
|  | 9093 | # Is the header compilable? | 
|  | 9094 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 9095 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 9096 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9097 | /* confdefs.h.  */ | 
|  | 9098 | _ACEOF | 
|  | 9099 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9100 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9101 | /* end confdefs.h.  */ | 
|  | 9102 | $ac_includes_default | 
|  | 9103 | #include <$ac_header> | 
|  | 9104 | _ACEOF | 
|  | 9105 | rm -f conftest.$ac_objext | 
|  | 9106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 9107 | (eval $ac_compile) 2>conftest.er1 | 
|  | 9108 | ac_status=$? | 
|  | 9109 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9110 | rm -f conftest.er1 | 
|  | 9111 | cat conftest.err >&5 | 
|  | 9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9113 | (exit $ac_status); } && | 
|  | 9114 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9115 | || test ! -s conftest.err' | 
|  | 9116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9117 | (eval $ac_try) 2>&5 | 
|  | 9118 | ac_status=$? | 
|  | 9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9120 | (exit $ac_status); }; } && | 
|  | 9121 | { ac_try='test -s conftest.$ac_objext' | 
|  | 9122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9123 | (eval $ac_try) 2>&5 | 
|  | 9124 | ac_status=$? | 
|  | 9125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9126 | (exit $ac_status); }; }; then | 
|  | 9127 | ac_header_compiler=yes | 
|  | 9128 | else | 
|  | 9129 | echo "$as_me: failed program was:" >&5 | 
|  | 9130 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9131 |  | 
|  | 9132 | ac_header_compiler=no | 
|  | 9133 | fi | 
|  | 9134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9135 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 9136 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 9137 |  | 
|  | 9138 | # Is the header present? | 
|  | 9139 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 9140 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 9141 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9142 | /* confdefs.h.  */ | 
|  | 9143 | _ACEOF | 
|  | 9144 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9145 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9146 | /* end confdefs.h.  */ | 
|  | 9147 | #include <$ac_header> | 
|  | 9148 | _ACEOF | 
|  | 9149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 9150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 9151 | ac_status=$? | 
|  | 9152 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9153 | rm -f conftest.er1 | 
|  | 9154 | cat conftest.err >&5 | 
|  | 9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9156 | (exit $ac_status); } >/dev/null; then | 
|  | 9157 | if test -s conftest.err; then | 
|  | 9158 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 9159 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 9160 | else | 
|  | 9161 | ac_cpp_err= | 
|  | 9162 | fi | 
|  | 9163 | else | 
|  | 9164 | ac_cpp_err=yes | 
|  | 9165 | fi | 
|  | 9166 | if test -z "$ac_cpp_err"; then | 
|  | 9167 | ac_header_preproc=yes | 
|  | 9168 | else | 
|  | 9169 | echo "$as_me: failed program was:" >&5 | 
|  | 9170 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9171 |  | 
|  | 9172 | ac_header_preproc=no | 
|  | 9173 | fi | 
|  | 9174 | rm -f conftest.err conftest.$ac_ext | 
|  | 9175 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 9176 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 9177 |  | 
|  | 9178 | # So?  What about this header? | 
|  | 9179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 9180 | yes:no: ) | 
|  | 9181 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 9182 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 9183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 9184 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 9185 | ac_header_preproc=yes | 
|  | 9186 | ;; | 
|  | 9187 | no:yes:* ) | 
|  | 9188 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 9189 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 9190 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 9191 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 9192 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 9193 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 9194 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 9195 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 9196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 9197 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 9198 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 9199 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 9200 | ( | 
|  | 9201 | cat <<\_ASBOX | 
|  | 9202 | ## ----------------------------------- ## | 
|  | 9203 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 9204 | ## ----------------------------------- ## | 
|  | 9205 | _ASBOX | 
|  | 9206 | ) | | 
|  | 9207 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 9208 | ;; | 
|  | 9209 | esac | 
|  | 9210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 9211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 9212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9214 | else | 
|  | 9215 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 9216 | fi | 
|  | 9217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 9218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 9219 |  | 
|  | 9220 | fi | 
|  | 9221 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 9222 | cat >>confdefs.h <<_ACEOF | 
|  | 9223 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 9224 | _ACEOF | 
|  | 9225 | break | 
|  | 9226 | fi | 
|  | 9227 |  | 
|  | 9228 | done | 
|  | 9229 |  | 
|  | 9230 |  | 
|  | 9231 |  | 
|  | 9232 |  | 
|  | 9233 | for ac_func in strchr index | 
|  | 9234 | do | 
|  | 9235 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 9236 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 9237 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 9238 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 9239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9240 | else | 
|  | 9241 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9242 | /* confdefs.h.  */ | 
|  | 9243 | _ACEOF | 
|  | 9244 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9245 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9246 | /* end confdefs.h.  */ | 
|  | 9247 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 9248 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9249 | #define $ac_func innocuous_$ac_func | 
|  | 9250 |  | 
|  | 9251 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 9252 | which can conflict with char $ac_func (); below. | 
|  | 9253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9254 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 9255 |  | 
|  | 9256 | #ifdef __STDC__ | 
|  | 9257 | # include <limits.h> | 
|  | 9258 | #else | 
|  | 9259 | # include <assert.h> | 
|  | 9260 | #endif | 
|  | 9261 |  | 
|  | 9262 | #undef $ac_func | 
|  | 9263 |  | 
|  | 9264 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9265 | #ifdef __cplusplus | 
|  | 9266 | extern "C" | 
|  | 9267 | { | 
|  | 9268 | #endif | 
|  | 9269 | /* We use char because int might match the return type of a gcc2 | 
|  | 9270 | builtin and then its argument prototype would still apply.  */ | 
|  | 9271 | char $ac_func (); | 
|  | 9272 | /* The GNU C library defines this for functions which it implements | 
|  | 9273 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9274 | something starting with __ and the normal name is an alias.  */ | 
|  | 9275 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 9276 | choke me | 
|  | 9277 | #else | 
|  | 9278 | char (*f) () = $ac_func; | 
|  | 9279 | #endif | 
|  | 9280 | #ifdef __cplusplus | 
|  | 9281 | } | 
|  | 9282 | #endif | 
|  | 9283 |  | 
|  | 9284 | int | 
|  | 9285 | main () | 
|  | 9286 | { | 
|  | 9287 | return f != $ac_func; | 
|  | 9288 | ; | 
|  | 9289 | return 0; | 
|  | 9290 | } | 
|  | 9291 | _ACEOF | 
|  | 9292 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9294 | (eval $ac_link) 2>conftest.er1 | 
|  | 9295 | ac_status=$? | 
|  | 9296 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9297 | rm -f conftest.er1 | 
|  | 9298 | cat conftest.err >&5 | 
|  | 9299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9300 | (exit $ac_status); } && | 
|  | 9301 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9302 | || test ! -s conftest.err' | 
|  | 9303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9304 | (eval $ac_try) 2>&5 | 
|  | 9305 | ac_status=$? | 
|  | 9306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9307 | (exit $ac_status); }; } && | 
|  | 9308 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9310 | (eval $ac_try) 2>&5 | 
|  | 9311 | ac_status=$? | 
|  | 9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9313 | (exit $ac_status); }; }; then | 
|  | 9314 | eval "$as_ac_var=yes" | 
|  | 9315 | else | 
|  | 9316 | echo "$as_me: failed program was:" >&5 | 
|  | 9317 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9318 |  | 
|  | 9319 | eval "$as_ac_var=no" | 
|  | 9320 | fi | 
|  | 9321 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9322 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9323 | fi | 
|  | 9324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 9325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 9326 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 9327 | cat >>confdefs.h <<_ACEOF | 
|  | 9328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 9329 | _ACEOF | 
|  | 9330 | break | 
|  | 9331 | fi | 
|  | 9332 | done | 
|  | 9333 |  | 
|  | 9334 |  | 
|  | 9335 |  | 
|  | 9336 | for ac_func in strrchr rindex | 
|  | 9337 | do | 
|  | 9338 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 9339 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 9340 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 9341 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 9342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9343 | else | 
|  | 9344 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9345 | /* confdefs.h.  */ | 
|  | 9346 | _ACEOF | 
|  | 9347 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9348 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9349 | /* end confdefs.h.  */ | 
|  | 9350 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 9351 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9352 | #define $ac_func innocuous_$ac_func | 
|  | 9353 |  | 
|  | 9354 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 9355 | which can conflict with char $ac_func (); below. | 
|  | 9356 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9357 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 9358 |  | 
|  | 9359 | #ifdef __STDC__ | 
|  | 9360 | # include <limits.h> | 
|  | 9361 | #else | 
|  | 9362 | # include <assert.h> | 
|  | 9363 | #endif | 
|  | 9364 |  | 
|  | 9365 | #undef $ac_func | 
|  | 9366 |  | 
|  | 9367 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9368 | #ifdef __cplusplus | 
|  | 9369 | extern "C" | 
|  | 9370 | { | 
|  | 9371 | #endif | 
|  | 9372 | /* We use char because int might match the return type of a gcc2 | 
|  | 9373 | builtin and then its argument prototype would still apply.  */ | 
|  | 9374 | char $ac_func (); | 
|  | 9375 | /* The GNU C library defines this for functions which it implements | 
|  | 9376 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9377 | something starting with __ and the normal name is an alias.  */ | 
|  | 9378 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 9379 | choke me | 
|  | 9380 | #else | 
|  | 9381 | char (*f) () = $ac_func; | 
|  | 9382 | #endif | 
|  | 9383 | #ifdef __cplusplus | 
|  | 9384 | } | 
|  | 9385 | #endif | 
|  | 9386 |  | 
|  | 9387 | int | 
|  | 9388 | main () | 
|  | 9389 | { | 
|  | 9390 | return f != $ac_func; | 
|  | 9391 | ; | 
|  | 9392 | return 0; | 
|  | 9393 | } | 
|  | 9394 | _ACEOF | 
|  | 9395 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9397 | (eval $ac_link) 2>conftest.er1 | 
|  | 9398 | ac_status=$? | 
|  | 9399 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9400 | rm -f conftest.er1 | 
|  | 9401 | cat conftest.err >&5 | 
|  | 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9403 | (exit $ac_status); } && | 
|  | 9404 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9405 | || test ! -s conftest.err' | 
|  | 9406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9407 | (eval $ac_try) 2>&5 | 
|  | 9408 | ac_status=$? | 
|  | 9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9410 | (exit $ac_status); }; } && | 
|  | 9411 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9413 | (eval $ac_try) 2>&5 | 
|  | 9414 | ac_status=$? | 
|  | 9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9416 | (exit $ac_status); }; }; then | 
|  | 9417 | eval "$as_ac_var=yes" | 
|  | 9418 | else | 
|  | 9419 | echo "$as_me: failed program was:" >&5 | 
|  | 9420 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9421 |  | 
|  | 9422 | eval "$as_ac_var=no" | 
|  | 9423 | fi | 
|  | 9424 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9425 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9426 | fi | 
|  | 9427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 9428 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 9429 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 9430 | cat >>confdefs.h <<_ACEOF | 
|  | 9431 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 9432 | _ACEOF | 
|  | 9433 | break | 
|  | 9434 | fi | 
|  | 9435 | done | 
|  | 9436 |  | 
|  | 9437 |  | 
|  | 9438 |  | 
|  | 9439 | for ac_func in memcpy bcopy | 
|  | 9440 | do | 
|  | 9441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 9442 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 9443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 9444 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 9445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9446 | else | 
|  | 9447 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9448 | /* confdefs.h.  */ | 
|  | 9449 | _ACEOF | 
|  | 9450 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9451 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9452 | /* end confdefs.h.  */ | 
|  | 9453 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 9454 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9455 | #define $ac_func innocuous_$ac_func | 
|  | 9456 |  | 
|  | 9457 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 9458 | which can conflict with char $ac_func (); below. | 
|  | 9459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9460 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 9461 |  | 
|  | 9462 | #ifdef __STDC__ | 
|  | 9463 | # include <limits.h> | 
|  | 9464 | #else | 
|  | 9465 | # include <assert.h> | 
|  | 9466 | #endif | 
|  | 9467 |  | 
|  | 9468 | #undef $ac_func | 
|  | 9469 |  | 
|  | 9470 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9471 | #ifdef __cplusplus | 
|  | 9472 | extern "C" | 
|  | 9473 | { | 
|  | 9474 | #endif | 
|  | 9475 | /* We use char because int might match the return type of a gcc2 | 
|  | 9476 | builtin and then its argument prototype would still apply.  */ | 
|  | 9477 | char $ac_func (); | 
|  | 9478 | /* The GNU C library defines this for functions which it implements | 
|  | 9479 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9480 | something starting with __ and the normal name is an alias.  */ | 
|  | 9481 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 9482 | choke me | 
|  | 9483 | #else | 
|  | 9484 | char (*f) () = $ac_func; | 
|  | 9485 | #endif | 
|  | 9486 | #ifdef __cplusplus | 
|  | 9487 | } | 
|  | 9488 | #endif | 
|  | 9489 |  | 
|  | 9490 | int | 
|  | 9491 | main () | 
|  | 9492 | { | 
|  | 9493 | return f != $ac_func; | 
|  | 9494 | ; | 
|  | 9495 | return 0; | 
|  | 9496 | } | 
|  | 9497 | _ACEOF | 
|  | 9498 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9500 | (eval $ac_link) 2>conftest.er1 | 
|  | 9501 | ac_status=$? | 
|  | 9502 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9503 | rm -f conftest.er1 | 
|  | 9504 | cat conftest.err >&5 | 
|  | 9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9506 | (exit $ac_status); } && | 
|  | 9507 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9508 | || test ! -s conftest.err' | 
|  | 9509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9510 | (eval $ac_try) 2>&5 | 
|  | 9511 | ac_status=$? | 
|  | 9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9513 | (exit $ac_status); }; } && | 
|  | 9514 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9516 | (eval $ac_try) 2>&5 | 
|  | 9517 | ac_status=$? | 
|  | 9518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9519 | (exit $ac_status); }; }; then | 
|  | 9520 | eval "$as_ac_var=yes" | 
|  | 9521 | else | 
|  | 9522 | echo "$as_me: failed program was:" >&5 | 
|  | 9523 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9524 |  | 
|  | 9525 | eval "$as_ac_var=no" | 
|  | 9526 | fi | 
|  | 9527 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9528 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9529 | fi | 
|  | 9530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 9531 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 9532 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 9533 | cat >>confdefs.h <<_ACEOF | 
|  | 9534 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 9535 | _ACEOF | 
|  | 9536 | break | 
|  | 9537 | fi | 
|  | 9538 | done | 
|  | 9539 |  | 
|  | 9540 |  | 
|  | 9541 |  | 
|  | 9542 | for ac_func in memmove strcmp | 
|  | 9543 | do | 
|  | 9544 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 9545 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 9546 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 9547 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 9548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9549 | else | 
|  | 9550 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9551 | /* confdefs.h.  */ | 
|  | 9552 | _ACEOF | 
|  | 9553 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9554 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9555 | /* end confdefs.h.  */ | 
|  | 9556 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 9557 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9558 | #define $ac_func innocuous_$ac_func | 
|  | 9559 |  | 
|  | 9560 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 9561 | which can conflict with char $ac_func (); below. | 
|  | 9562 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9563 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 9564 |  | 
|  | 9565 | #ifdef __STDC__ | 
|  | 9566 | # include <limits.h> | 
|  | 9567 | #else | 
|  | 9568 | # include <assert.h> | 
|  | 9569 | #endif | 
|  | 9570 |  | 
|  | 9571 | #undef $ac_func | 
|  | 9572 |  | 
|  | 9573 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9574 | #ifdef __cplusplus | 
|  | 9575 | extern "C" | 
|  | 9576 | { | 
|  | 9577 | #endif | 
|  | 9578 | /* We use char because int might match the return type of a gcc2 | 
|  | 9579 | builtin and then its argument prototype would still apply.  */ | 
|  | 9580 | char $ac_func (); | 
|  | 9581 | /* The GNU C library defines this for functions which it implements | 
|  | 9582 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9583 | something starting with __ and the normal name is an alias.  */ | 
|  | 9584 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 9585 | choke me | 
|  | 9586 | #else | 
|  | 9587 | char (*f) () = $ac_func; | 
|  | 9588 | #endif | 
|  | 9589 | #ifdef __cplusplus | 
|  | 9590 | } | 
|  | 9591 | #endif | 
|  | 9592 |  | 
|  | 9593 | int | 
|  | 9594 | main () | 
|  | 9595 | { | 
|  | 9596 | return f != $ac_func; | 
|  | 9597 | ; | 
|  | 9598 | return 0; | 
|  | 9599 | } | 
|  | 9600 | _ACEOF | 
|  | 9601 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9603 | (eval $ac_link) 2>conftest.er1 | 
|  | 9604 | ac_status=$? | 
|  | 9605 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9606 | rm -f conftest.er1 | 
|  | 9607 | cat conftest.err >&5 | 
|  | 9608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9609 | (exit $ac_status); } && | 
|  | 9610 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9611 | || test ! -s conftest.err' | 
|  | 9612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9613 | (eval $ac_try) 2>&5 | 
|  | 9614 | ac_status=$? | 
|  | 9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9616 | (exit $ac_status); }; } && | 
|  | 9617 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9619 | (eval $ac_try) 2>&5 | 
|  | 9620 | ac_status=$? | 
|  | 9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9622 | (exit $ac_status); }; }; then | 
|  | 9623 | eval "$as_ac_var=yes" | 
|  | 9624 | else | 
|  | 9625 | echo "$as_me: failed program was:" >&5 | 
|  | 9626 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9627 |  | 
|  | 9628 | eval "$as_ac_var=no" | 
|  | 9629 | fi | 
|  | 9630 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9631 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9632 | fi | 
|  | 9633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 9634 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 9635 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 9636 | cat >>confdefs.h <<_ACEOF | 
|  | 9637 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 9638 | _ACEOF | 
|  | 9639 |  | 
|  | 9640 | fi | 
|  | 9641 | done | 
|  | 9642 |  | 
|  | 9643 |  | 
|  | 9644 |  | 
|  | 9645 |  | 
|  | 9646 | for ac_func in closedir opendir readdir | 
|  | 9647 | do | 
|  | 9648 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 9649 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 9650 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 9651 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 9652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9653 | else | 
|  | 9654 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 9655 | /* confdefs.h.  */ | 
|  | 9656 | _ACEOF | 
|  | 9657 | cat confdefs.h >>conftest.$ac_ext | 
|  | 9658 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 9659 | /* end confdefs.h.  */ | 
|  | 9660 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 9661 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 9662 | #define $ac_func innocuous_$ac_func | 
|  | 9663 |  | 
|  | 9664 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 9665 | which can conflict with char $ac_func (); below. | 
|  | 9666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 9667 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 9668 |  | 
|  | 9669 | #ifdef __STDC__ | 
|  | 9670 | # include <limits.h> | 
|  | 9671 | #else | 
|  | 9672 | # include <assert.h> | 
|  | 9673 | #endif | 
|  | 9674 |  | 
|  | 9675 | #undef $ac_func | 
|  | 9676 |  | 
|  | 9677 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 9678 | #ifdef __cplusplus | 
|  | 9679 | extern "C" | 
|  | 9680 | { | 
|  | 9681 | #endif | 
|  | 9682 | /* We use char because int might match the return type of a gcc2 | 
|  | 9683 | builtin and then its argument prototype would still apply.  */ | 
|  | 9684 | char $ac_func (); | 
|  | 9685 | /* The GNU C library defines this for functions which it implements | 
|  | 9686 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 9687 | something starting with __ and the normal name is an alias.  */ | 
|  | 9688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 9689 | choke me | 
|  | 9690 | #else | 
|  | 9691 | char (*f) () = $ac_func; | 
|  | 9692 | #endif | 
|  | 9693 | #ifdef __cplusplus | 
|  | 9694 | } | 
|  | 9695 | #endif | 
|  | 9696 |  | 
|  | 9697 | int | 
|  | 9698 | main () | 
|  | 9699 | { | 
|  | 9700 | return f != $ac_func; | 
|  | 9701 | ; | 
|  | 9702 | return 0; | 
|  | 9703 | } | 
|  | 9704 | _ACEOF | 
|  | 9705 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 9706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 9707 | (eval $ac_link) 2>conftest.er1 | 
|  | 9708 | ac_status=$? | 
|  | 9709 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 9710 | rm -f conftest.er1 | 
|  | 9711 | cat conftest.err >&5 | 
|  | 9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9713 | (exit $ac_status); } && | 
|  | 9714 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 9715 | || test ! -s conftest.err' | 
|  | 9716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9717 | (eval $ac_try) 2>&5 | 
|  | 9718 | ac_status=$? | 
|  | 9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9720 | (exit $ac_status); }; } && | 
|  | 9721 | { ac_try='test -s conftest$ac_exeext' | 
|  | 9722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 9723 | (eval $ac_try) 2>&5 | 
|  | 9724 | ac_status=$? | 
|  | 9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 9726 | (exit $ac_status); }; }; then | 
|  | 9727 | eval "$as_ac_var=yes" | 
|  | 9728 | else | 
|  | 9729 | echo "$as_me: failed program was:" >&5 | 
|  | 9730 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 9731 |  | 
|  | 9732 | eval "$as_ac_var=no" | 
|  | 9733 | fi | 
|  | 9734 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 9735 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9736 | fi | 
|  | 9737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 9738 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 9739 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 9740 | cat >>confdefs.h <<_ACEOF | 
|  | 9741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 9742 | _ACEOF | 
|  | 9743 |  | 
|  | 9744 | fi | 
|  | 9745 | done | 
|  | 9746 |  | 
|  | 9747 |  | 
|  | 9748 | # Check whether --enable-shared or --disable-shared was given. | 
|  | 9749 | if test "${enable_shared+set}" = set; then | 
|  | 9750 | enableval="$enable_shared" | 
|  | 9751 | p=${PACKAGE-default} | 
|  | 9752 | case $enableval in | 
|  | 9753 | yes) enable_shared=yes ;; | 
|  | 9754 | no) enable_shared=no ;; | 
|  | 9755 | *) | 
|  | 9756 | enable_shared=no | 
|  | 9757 | # Look at the argument we got.  We use all the common list separators. | 
|  | 9758 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 9759 | for pkg in $enableval; do | 
|  | 9760 | IFS="$lt_save_ifs" | 
|  | 9761 | if test "X$pkg" = "X$p"; then | 
|  | 9762 | enable_shared=yes | 
|  | 9763 | fi | 
|  | 9764 | done | 
|  | 9765 | IFS="$lt_save_ifs" | 
|  | 9766 | ;; | 
|  | 9767 | esac | 
|  | 9768 | else | 
|  | 9769 | enable_shared=yes | 
|  | 9770 | fi; | 
|  | 9771 |  | 
|  | 9772 | # Check whether --enable-static or --disable-static was given. | 
|  | 9773 | if test "${enable_static+set}" = set; then | 
|  | 9774 | enableval="$enable_static" | 
|  | 9775 | p=${PACKAGE-default} | 
|  | 9776 | case $enableval in | 
|  | 9777 | yes) enable_static=yes ;; | 
|  | 9778 | no) enable_static=no ;; | 
|  | 9779 | *) | 
|  | 9780 | enable_static=no | 
|  | 9781 | # Look at the argument we got.  We use all the common list separators. | 
|  | 9782 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 9783 | for pkg in $enableval; do | 
|  | 9784 | IFS="$lt_save_ifs" | 
|  | 9785 | if test "X$pkg" = "X$p"; then | 
|  | 9786 | enable_static=yes | 
|  | 9787 | fi | 
|  | 9788 | done | 
|  | 9789 | IFS="$lt_save_ifs" | 
|  | 9790 | ;; | 
|  | 9791 | esac | 
|  | 9792 | else | 
|  | 9793 | enable_static=yes | 
|  | 9794 | fi; | 
|  | 9795 |  | 
|  | 9796 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
|  | 9797 | if test "${enable_fast_install+set}" = set; then | 
|  | 9798 | enableval="$enable_fast_install" | 
|  | 9799 | p=${PACKAGE-default} | 
|  | 9800 | case $enableval in | 
|  | 9801 | yes) enable_fast_install=yes ;; | 
|  | 9802 | no) enable_fast_install=no ;; | 
|  | 9803 | *) | 
|  | 9804 | enable_fast_install=no | 
|  | 9805 | # Look at the argument we got.  We use all the common list separators. | 
|  | 9806 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 9807 | for pkg in $enableval; do | 
|  | 9808 | IFS="$lt_save_ifs" | 
|  | 9809 | if test "X$pkg" = "X$p"; then | 
|  | 9810 | enable_fast_install=yes | 
|  | 9811 | fi | 
|  | 9812 | done | 
|  | 9813 | IFS="$lt_save_ifs" | 
|  | 9814 | ;; | 
|  | 9815 | esac | 
|  | 9816 | else | 
|  | 9817 | enable_fast_install=yes | 
|  | 9818 | fi; | 
|  | 9819 |  | 
|  | 9820 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
|  | 9821 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | 
|  | 9822 | if test "${lt_cv_path_SED+set}" = set; then | 
|  | 9823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9824 | else | 
|  | 9825 | # Loop through the user's path and test for sed and gsed. | 
|  | 9826 | # Then use that list of sed's as ones to test for truncation. | 
|  | 9827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9828 | for as_dir in $PATH | 
|  | 9829 | do | 
|  | 9830 | IFS=$as_save_IFS | 
|  | 9831 | test -z "$as_dir" && as_dir=. | 
|  | 9832 | for lt_ac_prog in sed gsed; do | 
|  | 9833 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9834 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
|  | 9835 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
|  | 9836 | fi | 
|  | 9837 | done | 
|  | 9838 | done | 
|  | 9839 | done | 
|  | 9840 | lt_ac_max=0 | 
|  | 9841 | lt_ac_count=0 | 
|  | 9842 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
|  | 9843 | # along with /bin/sed that truncates output. | 
|  | 9844 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
|  | 9845 | test ! -f $lt_ac_sed && break | 
|  | 9846 | cat /dev/null > conftest.in | 
|  | 9847 | lt_ac_count=0 | 
|  | 9848 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
|  | 9849 | # Check for GNU sed and select it if it is found. | 
|  | 9850 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
|  | 9851 | lt_cv_path_SED=$lt_ac_sed | 
|  | 9852 | break | 
|  | 9853 | fi | 
|  | 9854 | while true; do | 
|  | 9855 | cat conftest.in conftest.in >conftest.tmp | 
|  | 9856 | mv conftest.tmp conftest.in | 
|  | 9857 | cp conftest.in conftest.nl | 
|  | 9858 | echo >>conftest.nl | 
|  | 9859 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
|  | 9860 | cmp -s conftest.out conftest.nl || break | 
|  | 9861 | # 10000 chars as input seems more than enough | 
|  | 9862 | test $lt_ac_count -gt 10 && break | 
|  | 9863 | lt_ac_count=`expr $lt_ac_count + 1` | 
|  | 9864 | if test $lt_ac_count -gt $lt_ac_max; then | 
|  | 9865 | lt_ac_max=$lt_ac_count | 
|  | 9866 | lt_cv_path_SED=$lt_ac_sed | 
|  | 9867 | fi | 
|  | 9868 | done | 
|  | 9869 | done | 
|  | 9870 |  | 
|  | 9871 | fi | 
|  | 9872 |  | 
|  | 9873 | SED=$lt_cv_path_SED | 
|  | 9874 | echo "$as_me:$LINENO: result: $SED" >&5 | 
|  | 9875 | echo "${ECHO_T}$SED" >&6 | 
|  | 9876 |  | 
|  | 9877 |  | 
|  | 9878 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|  | 9879 | if test "${with_gnu_ld+set}" = set; then | 
|  | 9880 | withval="$with_gnu_ld" | 
|  | 9881 | test "$withval" = no || with_gnu_ld=yes | 
|  | 9882 | else | 
|  | 9883 | with_gnu_ld=no | 
|  | 9884 | fi; | 
|  | 9885 | ac_prog=ld | 
|  | 9886 | if test "$GCC" = yes; then | 
|  | 9887 | # Check if gcc -print-prog-name=ld gives a path. | 
|  | 9888 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
|  | 9889 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
|  | 9890 | case $host in | 
|  | 9891 | *-*-mingw*) | 
|  | 9892 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 9893 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 9894 | *) | 
|  | 9895 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 9896 | esac | 
|  | 9897 | case $ac_prog in | 
|  | 9898 | # Accept absolute paths. | 
|  | 9899 | [\\/]* | ?:[\\/]*) | 
|  | 9900 | re_direlt='/[^/][^/]*/\.\./' | 
|  | 9901 | # Canonicalize the pathname of ld | 
|  | 9902 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
|  | 9903 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
|  | 9904 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
|  | 9905 | done | 
|  | 9906 | test -z "$LD" && LD="$ac_prog" | 
|  | 9907 | ;; | 
|  | 9908 | "") | 
|  | 9909 | # If it fails, then pretend we aren't using GCC. | 
|  | 9910 | ac_prog=ld | 
|  | 9911 | ;; | 
|  | 9912 | *) | 
|  | 9913 | # If it is relative, then search for the first ld in PATH. | 
|  | 9914 | with_gnu_ld=unknown | 
|  | 9915 | ;; | 
|  | 9916 | esac | 
|  | 9917 | elif test "$with_gnu_ld" = yes; then | 
|  | 9918 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
|  | 9919 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
|  | 9920 | else | 
|  | 9921 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
|  | 9922 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
|  | 9923 | fi | 
|  | 9924 | if test "${lt_cv_path_LD+set}" = set; then | 
|  | 9925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9926 | else | 
|  | 9927 | if test -z "$LD"; then | 
|  | 9928 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 9929 | for ac_dir in $PATH; do | 
|  | 9930 | IFS="$lt_save_ifs" | 
|  | 9931 | test -z "$ac_dir" && ac_dir=. | 
|  | 9932 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 9933 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 9934 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 9935 | # but apparently some GNU ld's only accept -v. | 
|  | 9936 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|  | 9937 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 9938 | *GNU* | *'with BFD'*) | 
|  | 9939 | test "$with_gnu_ld" != no && break | 
|  | 9940 | ;; | 
|  | 9941 | *) | 
|  | 9942 | test "$with_gnu_ld" != yes && break | 
|  | 9943 | ;; | 
|  | 9944 | esac | 
|  | 9945 | fi | 
|  | 9946 | done | 
|  | 9947 | IFS="$lt_save_ifs" | 
|  | 9948 | else | 
|  | 9949 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 9950 | fi | 
|  | 9951 | fi | 
|  | 9952 |  | 
|  | 9953 | LD="$lt_cv_path_LD" | 
|  | 9954 | if test -n "$LD"; then | 
|  | 9955 | echo "$as_me:$LINENO: result: $LD" >&5 | 
|  | 9956 | echo "${ECHO_T}$LD" >&6 | 
|  | 9957 | else | 
|  | 9958 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 9959 | echo "${ECHO_T}no" >&6 | 
|  | 9960 | fi | 
|  | 9961 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
|  | 9962 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
|  | 9963 | { (exit 1); exit 1; }; } | 
|  | 9964 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
|  | 9965 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
|  | 9966 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
|  | 9967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9968 | else | 
|  | 9969 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
|  | 9970 | case `$LD -v 2>&1 </dev/null` in | 
|  | 9971 | *GNU* | *'with BFD'*) | 
|  | 9972 | lt_cv_prog_gnu_ld=yes | 
|  | 9973 | ;; | 
|  | 9974 | *) | 
|  | 9975 | lt_cv_prog_gnu_ld=no | 
|  | 9976 | ;; | 
|  | 9977 | esac | 
|  | 9978 | fi | 
|  | 9979 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
|  | 9980 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
|  | 9981 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 9982 |  | 
|  | 9983 |  | 
|  | 9984 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
|  | 9985 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 
|  | 9986 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
|  | 9987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 9988 | else | 
|  | 9989 | lt_cv_ld_reload_flag='-r' | 
|  | 9990 | fi | 
|  | 9991 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
|  | 9992 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 
|  | 9993 | reload_flag=$lt_cv_ld_reload_flag | 
|  | 9994 | case $reload_flag in | 
|  | 9995 | "" | " "*) ;; | 
|  | 9996 | *) reload_flag=" $reload_flag" ;; | 
|  | 9997 | esac | 
|  | 9998 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|  | 9999 | case $host_os in | 
|  | 10000 | darwin*) | 
|  | 10001 | if test "$GCC" = yes; then | 
|  | 10002 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | 
|  | 10003 | else | 
|  | 10004 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|  | 10005 | fi | 
|  | 10006 | ;; | 
|  | 10007 | esac | 
|  | 10008 |  | 
|  | 10009 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
|  | 10010 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 
|  | 10011 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
|  | 10012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10013 | else | 
|  | 10014 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|  | 10015 | lt_cv_file_magic_test_file= | 
|  | 10016 | lt_cv_deplibs_check_method='unknown' | 
|  | 10017 | # Need to set the preceding variable on all platforms that support | 
|  | 10018 | # interlibrary dependencies. | 
|  | 10019 | # 'none' -- dependencies not supported. | 
|  | 10020 | # `unknown' -- same as none, but documents that we really don't know. | 
|  | 10021 | # 'pass_all' -- all dependencies passed with no checks. | 
|  | 10022 | # 'test_compile' -- check by making test program. | 
|  | 10023 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
|  | 10024 | # which responds to the $file_magic_cmd with a given extended regex. | 
|  | 10025 | # If you have `file' or equivalent on your system and you're not sure | 
|  | 10026 | # whether `pass_all' will *always* work, you probably want this one. | 
|  | 10027 |  | 
|  | 10028 | case $host_os in | 
|  | 10029 | aix4* | aix5*) | 
|  | 10030 | lt_cv_deplibs_check_method=pass_all | 
|  | 10031 | ;; | 
|  | 10032 |  | 
|  | 10033 | beos*) | 
|  | 10034 | lt_cv_deplibs_check_method=pass_all | 
|  | 10035 | ;; | 
|  | 10036 |  | 
|  | 10037 | bsdi[45]*) | 
|  | 10038 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|  | 10039 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|  | 10040 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|  | 10041 | ;; | 
|  | 10042 |  | 
|  | 10043 | cygwin*) | 
|  | 10044 | # func_win32_libid is a shell function defined in ltmain.sh | 
|  | 10045 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
|  | 10046 | lt_cv_file_magic_cmd='func_win32_libid' | 
|  | 10047 | ;; | 
|  | 10048 |  | 
|  | 10049 | mingw* | pw32*) | 
|  | 10050 | # Base MSYS/MinGW do not provide the 'file' command needed by | 
|  | 10051 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 
|  | 10052 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
|  | 10053 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|  | 10054 | ;; | 
|  | 10055 |  | 
|  | 10056 | darwin* | rhapsody*) | 
|  | 10057 | lt_cv_deplibs_check_method=pass_all | 
|  | 10058 | ;; | 
|  | 10059 |  | 
|  | 10060 | freebsd* | kfreebsd*-gnu) | 
|  | 10061 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|  | 10062 | case $host_cpu in | 
|  | 10063 | i*86 ) | 
|  | 10064 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|  | 10065 | # Let's accept both of them until this is cleared up. | 
|  | 10066 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
|  | 10067 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10068 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|  | 10069 | ;; | 
|  | 10070 | esac | 
|  | 10071 | else | 
|  | 10072 | lt_cv_deplibs_check_method=pass_all | 
|  | 10073 | fi | 
|  | 10074 | ;; | 
|  | 10075 |  | 
|  | 10076 | gnu*) | 
|  | 10077 | lt_cv_deplibs_check_method=pass_all | 
|  | 10078 | ;; | 
|  | 10079 |  | 
|  | 10080 | hpux10.20* | hpux11*) | 
|  | 10081 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10082 | case "$host_cpu" in | 
|  | 10083 | ia64*) | 
|  | 10084 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
|  | 10085 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
|  | 10086 | ;; | 
|  | 10087 | hppa*64*) | 
|  | 10088 | 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]' | 
|  | 10089 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
|  | 10090 | ;; | 
|  | 10091 | *) | 
|  | 10092 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
|  | 10093 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|  | 10094 | ;; | 
|  | 10095 | esac | 
|  | 10096 | ;; | 
|  | 10097 |  | 
|  | 10098 | irix5* | irix6* | nonstopux*) | 
|  | 10099 | case $LD in | 
|  | 10100 | *-32|*"-32 ") libmagic=32-bit;; | 
|  | 10101 | *-n32|*"-n32 ") libmagic=N32;; | 
|  | 10102 | *-64|*"-64 ") libmagic=64-bit;; | 
|  | 10103 | *) libmagic=never-match;; | 
|  | 10104 | esac | 
|  | 10105 | lt_cv_deplibs_check_method=pass_all | 
|  | 10106 | ;; | 
|  | 10107 |  | 
|  | 10108 | # This must be Linux ELF. | 
|  | 10109 | linux*) | 
|  | 10110 | lt_cv_deplibs_check_method=pass_all | 
|  | 10111 | ;; | 
|  | 10112 |  | 
|  | 10113 | netbsd*) | 
|  | 10114 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|  | 10115 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
|  | 10116 | else | 
|  | 10117 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
|  | 10118 | fi | 
|  | 10119 | ;; | 
|  | 10120 |  | 
|  | 10121 | newos6*) | 
|  | 10122 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|  | 10123 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10124 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|  | 10125 | ;; | 
|  | 10126 |  | 
|  | 10127 | nto-qnx*) | 
|  | 10128 | lt_cv_deplibs_check_method=unknown | 
|  | 10129 | ;; | 
|  | 10130 |  | 
|  | 10131 | openbsd*) | 
|  | 10132 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 10133 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
|  | 10134 | else | 
|  | 10135 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
|  | 10136 | fi | 
|  | 10137 | ;; | 
|  | 10138 |  | 
|  | 10139 | osf3* | osf4* | osf5*) | 
|  | 10140 | lt_cv_deplibs_check_method=pass_all | 
|  | 10141 | ;; | 
|  | 10142 |  | 
|  | 10143 | sco3.2v5*) | 
|  | 10144 | lt_cv_deplibs_check_method=pass_all | 
|  | 10145 | ;; | 
|  | 10146 |  | 
|  | 10147 | solaris*) | 
|  | 10148 | lt_cv_deplibs_check_method=pass_all | 
|  | 10149 | ;; | 
|  | 10150 |  | 
|  | 10151 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 10152 | case $host_vendor in | 
|  | 10153 | motorola) | 
|  | 10154 | 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]' | 
|  | 10155 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|  | 10156 | ;; | 
|  | 10157 | ncr) | 
|  | 10158 | lt_cv_deplibs_check_method=pass_all | 
|  | 10159 | ;; | 
|  | 10160 | sequent) | 
|  | 10161 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 10162 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
|  | 10163 | ;; | 
|  | 10164 | sni) | 
|  | 10165 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 10166 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
|  | 10167 | lt_cv_file_magic_test_file=/lib/libc.so | 
|  | 10168 | ;; | 
|  | 10169 | siemens) | 
|  | 10170 | lt_cv_deplibs_check_method=pass_all | 
|  | 10171 | ;; | 
|  | 10172 | esac | 
|  | 10173 | ;; | 
|  | 10174 |  | 
|  | 10175 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 
|  | 10176 | lt_cv_deplibs_check_method=pass_all | 
|  | 10177 | ;; | 
|  | 10178 | esac | 
|  | 10179 |  | 
|  | 10180 | fi | 
|  | 10181 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
|  | 10182 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 
|  | 10183 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|  | 10184 | deplibs_check_method=$lt_cv_deplibs_check_method | 
|  | 10185 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
|  | 10186 |  | 
|  | 10187 |  | 
|  | 10188 |  | 
|  | 10189 | # If no C compiler was specified, use CC. | 
|  | 10190 | LTCC=${LTCC-"$CC"} | 
|  | 10191 |  | 
|  | 10192 | # Allow CC to be a program name with arguments. | 
|  | 10193 | compiler=$CC | 
|  | 10194 |  | 
|  | 10195 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|  | 10196 | if test "${enable_libtool_lock+set}" = set; then | 
|  | 10197 | enableval="$enable_libtool_lock" | 
|  | 10198 |  | 
|  | 10199 | fi; | 
|  | 10200 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
|  | 10201 |  | 
|  | 10202 | # Some flags need to be propagated to the compiler or linker for good | 
|  | 10203 | # libtool support. | 
|  | 10204 | case $host in | 
|  | 10205 | ia64-*-hpux*) | 
|  | 10206 | # Find out which ABI we are using. | 
|  | 10207 | echo 'int i;' > conftest.$ac_ext | 
|  | 10208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 10209 | (eval $ac_compile) 2>&5 | 
|  | 10210 | ac_status=$? | 
|  | 10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10212 | (exit $ac_status); }; then | 
|  | 10213 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 10214 | *ELF-32*) | 
|  | 10215 | HPUX_IA64_MODE="32" | 
|  | 10216 | ;; | 
|  | 10217 | *ELF-64*) | 
|  | 10218 | HPUX_IA64_MODE="64" | 
|  | 10219 | ;; | 
|  | 10220 | esac | 
|  | 10221 | fi | 
|  | 10222 | rm -rf conftest* | 
|  | 10223 | ;; | 
|  | 10224 | *-*-irix6*) | 
|  | 10225 | # Find out which ABI we are using. | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 10226 | echo '#line 10226 "configure"' > conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 10228 | (eval $ac_compile) 2>&5 | 
|  | 10229 | ac_status=$? | 
|  | 10230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10231 | (exit $ac_status); }; then | 
|  | 10232 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 10233 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 10234 | *32-bit*) | 
|  | 10235 | LD="${LD-ld} -melf32bsmip" | 
|  | 10236 | ;; | 
|  | 10237 | *N32*) | 
|  | 10238 | LD="${LD-ld} -melf32bmipn32" | 
|  | 10239 | ;; | 
|  | 10240 | *64-bit*) | 
|  | 10241 | LD="${LD-ld} -melf64bmip" | 
|  | 10242 | ;; | 
|  | 10243 | esac | 
|  | 10244 | else | 
|  | 10245 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 10246 | *32-bit*) | 
|  | 10247 | LD="${LD-ld} -32" | 
|  | 10248 | ;; | 
|  | 10249 | *N32*) | 
|  | 10250 | LD="${LD-ld} -n32" | 
|  | 10251 | ;; | 
|  | 10252 | *64-bit*) | 
|  | 10253 | LD="${LD-ld} -64" | 
|  | 10254 | ;; | 
|  | 10255 | esac | 
|  | 10256 | fi | 
|  | 10257 | fi | 
|  | 10258 | rm -rf conftest* | 
|  | 10259 | ;; | 
|  | 10260 |  | 
|  | 10261 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
|  | 10262 | # Find out which ABI we are using. | 
|  | 10263 | echo 'int i;' > conftest.$ac_ext | 
|  | 10264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 10265 | (eval $ac_compile) 2>&5 | 
|  | 10266 | ac_status=$? | 
|  | 10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10268 | (exit $ac_status); }; then | 
|  | 10269 | case "`/usr/bin/file conftest.o`" in | 
|  | 10270 | *32-bit*) | 
|  | 10271 | case $host in | 
|  | 10272 | x86_64-*linux*) | 
|  | 10273 | LD="${LD-ld} -m elf_i386" | 
|  | 10274 | ;; | 
|  | 10275 | ppc64-*linux*|powerpc64-*linux*) | 
|  | 10276 | LD="${LD-ld} -m elf32ppclinux" | 
|  | 10277 | ;; | 
|  | 10278 | s390x-*linux*) | 
|  | 10279 | LD="${LD-ld} -m elf_s390" | 
|  | 10280 | ;; | 
|  | 10281 | sparc64-*linux*) | 
|  | 10282 | LD="${LD-ld} -m elf32_sparc" | 
|  | 10283 | ;; | 
|  | 10284 | esac | 
|  | 10285 | ;; | 
|  | 10286 | *64-bit*) | 
|  | 10287 | case $host in | 
|  | 10288 | x86_64-*linux*) | 
|  | 10289 | LD="${LD-ld} -m elf_x86_64" | 
|  | 10290 | ;; | 
|  | 10291 | ppc*-*linux*|powerpc*-*linux*) | 
|  | 10292 | LD="${LD-ld} -m elf64ppc" | 
|  | 10293 | ;; | 
|  | 10294 | s390*-*linux*) | 
|  | 10295 | LD="${LD-ld} -m elf64_s390" | 
|  | 10296 | ;; | 
|  | 10297 | sparc*-*linux*) | 
|  | 10298 | LD="${LD-ld} -m elf64_sparc" | 
|  | 10299 | ;; | 
|  | 10300 | esac | 
|  | 10301 | ;; | 
|  | 10302 | esac | 
|  | 10303 | fi | 
|  | 10304 | rm -rf conftest* | 
|  | 10305 | ;; | 
|  | 10306 |  | 
|  | 10307 | *-*-sco3.2v5*) | 
|  | 10308 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|  | 10309 | SAVE_CFLAGS="$CFLAGS" | 
|  | 10310 | CFLAGS="$CFLAGS -belf" | 
|  | 10311 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
|  | 10312 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 
|  | 10313 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
|  | 10314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10315 | else | 
|  | 10316 | ac_ext=c | 
|  | 10317 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 10318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 10321 |  | 
|  | 10322 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10323 | /* confdefs.h.  */ | 
|  | 10324 | _ACEOF | 
|  | 10325 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10326 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10327 | /* end confdefs.h.  */ | 
|  | 10328 |  | 
|  | 10329 | _ACEOF | 
|  | 10330 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 10331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 10332 | (eval $ac_link) 2>conftest.er1 | 
|  | 10333 | ac_status=$? | 
|  | 10334 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10335 | rm -f conftest.er1 | 
|  | 10336 | cat conftest.err >&5 | 
|  | 10337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10338 | (exit $ac_status); } && | 
|  | 10339 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 10340 | || test ! -s conftest.err' | 
|  | 10341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10342 | (eval $ac_try) 2>&5 | 
|  | 10343 | ac_status=$? | 
|  | 10344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10345 | (exit $ac_status); }; } && | 
|  | 10346 | { ac_try='test -s conftest$ac_exeext' | 
|  | 10347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10348 | (eval $ac_try) 2>&5 | 
|  | 10349 | ac_status=$? | 
|  | 10350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10351 | (exit $ac_status); }; }; then | 
|  | 10352 | lt_cv_cc_needs_belf=yes | 
|  | 10353 | else | 
|  | 10354 | echo "$as_me: failed program was:" >&5 | 
|  | 10355 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10356 |  | 
|  | 10357 | lt_cv_cc_needs_belf=no | 
|  | 10358 | fi | 
|  | 10359 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 10360 | conftest$ac_exeext conftest.$ac_ext | 
|  | 10361 | ac_ext=c | 
|  | 10362 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 10363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 10366 |  | 
|  | 10367 | fi | 
|  | 10368 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
|  | 10369 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 
|  | 10370 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|  | 10371 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|  | 10372 | CFLAGS="$SAVE_CFLAGS" | 
|  | 10373 | fi | 
|  | 10374 | ;; | 
|  | 10375 |  | 
|  | 10376 | esac | 
|  | 10377 |  | 
|  | 10378 | need_locks="$enable_libtool_lock" | 
|  | 10379 |  | 
|  | 10380 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10381 |  | 
|  | 10382 |  | 
|  | 10383 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
|  | 10384 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
|  | 10385 | (test "X$CXX" != "Xg++"))) ; then | 
|  | 10386 | ac_ext=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10387 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 10388 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10389 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10390 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 10391 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
|  | 10392 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 
|  | 10393 | if test -z "$CXXCPP"; then | 
|  | 10394 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10396 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10397 | # Double quotes because CXXCPP needs to be expanded | 
|  | 10398 | for CXXCPP in "$CXX -E" "/lib/cpp" | 
|  | 10399 | do | 
|  | 10400 | ac_preproc_ok=false | 
|  | 10401 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 10402 | do | 
|  | 10403 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 10404 | # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10405 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10406 | # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10407 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 10408 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 10409 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10410 | /* confdefs.h.  */ | 
|  | 10411 | _ACEOF | 
|  | 10412 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10413 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10414 | /* end confdefs.h.  */ | 
|  | 10415 | #ifdef __STDC__ | 
|  | 10416 | # include <limits.h> | 
|  | 10417 | #else | 
|  | 10418 | # include <assert.h> | 
|  | 10419 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10420 | Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10421 | _ACEOF | 
|  | 10422 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 10423 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 10424 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10425 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10426 | rm -f conftest.er1 | 
|  | 10427 | cat conftest.err >&5 | 
|  | 10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10429 | (exit $ac_status); } >/dev/null; then | 
|  | 10430 | if test -s conftest.err; then | 
|  | 10431 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10432 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10433 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10434 | ac_cpp_err= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10435 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10436 | else | 
|  | 10437 | ac_cpp_err=yes | 
|  | 10438 | fi | 
|  | 10439 | if test -z "$ac_cpp_err"; then | 
|  | 10440 | : | 
|  | 10441 | else | 
|  | 10442 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10443 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10444 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10445 | # Broken: fails on valid input. | 
|  | 10446 | continue | 
|  | 10447 | fi | 
|  | 10448 | rm -f conftest.err conftest.$ac_ext | 
|  | 10449 |  | 
|  | 10450 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 10451 | # can be detected and how. | 
|  | 10452 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10453 | /* confdefs.h.  */ | 
|  | 10454 | _ACEOF | 
|  | 10455 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10456 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10457 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10458 | #include <ac_nonexistent.h> | 
|  | 10459 | _ACEOF | 
|  | 10460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 10461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 10462 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10463 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10464 | rm -f conftest.er1 | 
|  | 10465 | cat conftest.err >&5 | 
|  | 10466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10467 | (exit $ac_status); } >/dev/null; then | 
|  | 10468 | if test -s conftest.err; then | 
|  | 10469 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10470 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10471 | else | 
|  | 10472 | ac_cpp_err= | 
|  | 10473 | fi | 
|  | 10474 | else | 
|  | 10475 | ac_cpp_err=yes | 
|  | 10476 | fi | 
|  | 10477 | if test -z "$ac_cpp_err"; then | 
|  | 10478 | # Broken: success on invalid input. | 
|  | 10479 | continue | 
|  | 10480 | else | 
|  | 10481 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10482 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10483 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10484 | # Passes both tests. | 
|  | 10485 | ac_preproc_ok=: | 
|  | 10486 | break | 
|  | 10487 | fi | 
|  | 10488 | rm -f conftest.err conftest.$ac_ext | 
|  | 10489 |  | 
|  | 10490 | done | 
|  | 10491 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 10492 | rm -f conftest.err conftest.$ac_ext | 
|  | 10493 | if $ac_preproc_ok; then | 
|  | 10494 | break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10495 | fi | 
|  | 10496 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10497 | done | 
|  | 10498 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 10499 |  | 
|  | 10500 | fi | 
|  | 10501 | CXXCPP=$ac_cv_prog_CXXCPP | 
|  | 10502 | else | 
|  | 10503 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 10504 | fi | 
|  | 10505 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
|  | 10506 | echo "${ECHO_T}$CXXCPP" >&6 | 
|  | 10507 | ac_preproc_ok=false | 
|  | 10508 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 10509 | do | 
|  | 10510 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 10511 | # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10512 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 10513 | # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10514 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 10515 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 10516 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10517 | /* confdefs.h.  */ | 
|  | 10518 | _ACEOF | 
|  | 10519 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10520 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10521 | /* end confdefs.h.  */ | 
|  | 10522 | #ifdef __STDC__ | 
|  | 10523 | # include <limits.h> | 
|  | 10524 | #else | 
|  | 10525 | # include <assert.h> | 
|  | 10526 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10527 | Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10528 | _ACEOF | 
|  | 10529 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 10530 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 10531 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10532 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10533 | rm -f conftest.er1 | 
|  | 10534 | cat conftest.err >&5 | 
|  | 10535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10536 | (exit $ac_status); } >/dev/null; then | 
|  | 10537 | if test -s conftest.err; then | 
|  | 10538 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10539 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10540 | else | 
|  | 10541 | ac_cpp_err= | 
|  | 10542 | fi | 
|  | 10543 | else | 
|  | 10544 | ac_cpp_err=yes | 
|  | 10545 | fi | 
|  | 10546 | if test -z "$ac_cpp_err"; then | 
|  | 10547 | : | 
|  | 10548 | else | 
|  | 10549 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10550 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10551 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10552 | # Broken: fails on valid input. | 
|  | 10553 | continue | 
|  | 10554 | fi | 
|  | 10555 | rm -f conftest.err conftest.$ac_ext | 
|  | 10556 |  | 
|  | 10557 | # OK, works on sane cases.  Now check whether non-existent headers | 
|  | 10558 | # can be detected and how. | 
|  | 10559 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10560 | /* confdefs.h.  */ | 
|  | 10561 | _ACEOF | 
|  | 10562 | cat confdefs.h >>conftest.$ac_ext | 
|  | 10563 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 10564 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10565 | #include <ac_nonexistent.h> | 
|  | 10566 | _ACEOF | 
|  | 10567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 10568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 10569 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10570 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10571 | rm -f conftest.er1 | 
|  | 10572 | cat conftest.err >&5 | 
|  | 10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10574 | (exit $ac_status); } >/dev/null; then | 
|  | 10575 | if test -s conftest.err; then | 
|  | 10576 | ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10577 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10578 | else | 
|  | 10579 | ac_cpp_err= | 
|  | 10580 | fi | 
|  | 10581 | else | 
|  | 10582 | ac_cpp_err=yes | 
|  | 10583 | fi | 
|  | 10584 | if test -z "$ac_cpp_err"; then | 
|  | 10585 | # Broken: success on invalid input. | 
|  | 10586 | continue | 
|  | 10587 | else | 
|  | 10588 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10589 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10590 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10591 | # Passes both tests. | 
|  | 10592 | ac_preproc_ok=: | 
|  | 10593 | break | 
|  | 10594 | fi | 
|  | 10595 | rm -f conftest.err conftest.$ac_ext | 
|  | 10596 |  | 
|  | 10597 | done | 
|  | 10598 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 10599 | rm -f conftest.err conftest.$ac_ext | 
|  | 10600 | if $ac_preproc_ok; then | 
|  | 10601 | : | 
|  | 10602 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10603 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
|  | 10604 | See \`config.log' for more details." >&5 | 
|  | 10605 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
|  | 10606 | See \`config.log' for more details." >&2;} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10607 | { (exit 1); exit 1; }; } | 
|  | 10608 | fi | 
|  | 10609 |  | 
|  | 10610 | ac_ext=cc | 
|  | 10611 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 10612 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10613 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10614 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 10615 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10616 | fi | 
|  | 10617 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10618 |  | 
|  | 10619 | ac_ext=f | 
|  | 10620 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
|  | 10621 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10622 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
|  | 10623 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10624 | 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] | 10625 | do | 
|  | 10626 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 10627 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 10628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 10629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 10630 | if test "${ac_cv_prog_F77+set}" = set; then | 
|  | 10631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10632 | else | 
|  | 10633 | if test -n "$F77"; then | 
|  | 10634 | ac_cv_prog_F77="$F77" # Let the user override the test. | 
|  | 10635 | else | 
|  | 10636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10637 | for as_dir in $PATH | 
|  | 10638 | do | 
|  | 10639 | IFS=$as_save_IFS | 
|  | 10640 | test -z "$as_dir" && as_dir=. | 
|  | 10641 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 10643 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
|  | 10644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10645 | break 2 | 
|  | 10646 | fi | 
|  | 10647 | done | 
|  | 10648 | done | 
|  | 10649 |  | 
|  | 10650 | fi | 
|  | 10651 | fi | 
|  | 10652 | F77=$ac_cv_prog_F77 | 
|  | 10653 | if test -n "$F77"; then | 
|  | 10654 | echo "$as_me:$LINENO: result: $F77" >&5 | 
|  | 10655 | echo "${ECHO_T}$F77" >&6 | 
|  | 10656 | else | 
|  | 10657 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 10658 | echo "${ECHO_T}no" >&6 | 
|  | 10659 | fi | 
|  | 10660 |  | 
|  | 10661 | test -n "$F77" && break | 
|  | 10662 | done | 
|  | 10663 | fi | 
|  | 10664 | if test -z "$F77"; then | 
|  | 10665 | ac_ct_F77=$F77 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10666 | 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] | 10667 | do | 
|  | 10668 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 10669 | set dummy $ac_prog; ac_word=$2 | 
|  | 10670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 10671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 10672 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
|  | 10673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10674 | else | 
|  | 10675 | if test -n "$ac_ct_F77"; then | 
|  | 10676 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
|  | 10677 | else | 
|  | 10678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10679 | for as_dir in $PATH | 
|  | 10680 | do | 
|  | 10681 | IFS=$as_save_IFS | 
|  | 10682 | test -z "$as_dir" && as_dir=. | 
|  | 10683 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 10685 | ac_cv_prog_ac_ct_F77="$ac_prog" | 
|  | 10686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10687 | break 2 | 
|  | 10688 | fi | 
|  | 10689 | done | 
|  | 10690 | done | 
|  | 10691 |  | 
|  | 10692 | fi | 
|  | 10693 | fi | 
|  | 10694 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
|  | 10695 | if test -n "$ac_ct_F77"; then | 
|  | 10696 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
|  | 10697 | echo "${ECHO_T}$ac_ct_F77" >&6 | 
|  | 10698 | else | 
|  | 10699 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 10700 | echo "${ECHO_T}no" >&6 | 
|  | 10701 | fi | 
|  | 10702 |  | 
|  | 10703 | test -n "$ac_ct_F77" && break | 
|  | 10704 | done | 
|  | 10705 |  | 
|  | 10706 | F77=$ac_ct_F77 | 
|  | 10707 | fi | 
|  | 10708 |  | 
|  | 10709 |  | 
|  | 10710 | # Provide some information about the compiler. | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 10711 | echo "$as_me:10711:" \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10712 | "checking for Fortran 77 compiler version" >&5 | 
|  | 10713 | ac_compiler=`set X $ac_compile; echo $2` | 
|  | 10714 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
|  | 10715 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
|  | 10716 | ac_status=$? | 
|  | 10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10718 | (exit $ac_status); } | 
|  | 10719 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
|  | 10720 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
|  | 10721 | ac_status=$? | 
|  | 10722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10723 | (exit $ac_status); } | 
|  | 10724 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
|  | 10725 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
|  | 10726 | ac_status=$? | 
|  | 10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10728 | (exit $ac_status); } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10729 | rm -f a.out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10730 |  | 
|  | 10731 | # 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] | 10732 | # input file.  (Note that this only needs to work for GNU compilers.) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10733 | ac_save_ext=$ac_ext | 
|  | 10734 | ac_ext=F | 
|  | 10735 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
|  | 10736 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 
|  | 10737 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
|  | 10738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10739 | else | 
|  | 10740 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10741 | program main | 
|  | 10742 | #ifndef __GNUC__ | 
|  | 10743 | choke me | 
|  | 10744 | #endif | 
|  | 10745 |  | 
|  | 10746 | end | 
|  | 10747 | _ACEOF | 
|  | 10748 | rm -f conftest.$ac_objext | 
|  | 10749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10750 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10751 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10752 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10753 | rm -f conftest.er1 | 
|  | 10754 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10756 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10757 | { ac_try='test -z "$ac_f77_werror_flag" | 
|  | 10758 | || test ! -s conftest.err' | 
|  | 10759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10760 | (eval $ac_try) 2>&5 | 
|  | 10761 | ac_status=$? | 
|  | 10762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10763 | (exit $ac_status); }; } && | 
|  | 10764 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10766 | (eval $ac_try) 2>&5 | 
|  | 10767 | ac_status=$? | 
|  | 10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10769 | (exit $ac_status); }; }; then | 
|  | 10770 | ac_compiler_gnu=yes | 
|  | 10771 | else | 
|  | 10772 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10773 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10774 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10775 | ac_compiler_gnu=no | 
|  | 10776 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10778 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
|  | 10779 |  | 
|  | 10780 | fi | 
|  | 10781 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
|  | 10782 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 
|  | 10783 | ac_ext=$ac_save_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10784 | ac_test_FFLAGS=${FFLAGS+set} | 
|  | 10785 | ac_save_FFLAGS=$FFLAGS | 
|  | 10786 | FFLAGS= | 
|  | 10787 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
|  | 10788 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 
|  | 10789 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
|  | 10790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10791 | else | 
|  | 10792 | FFLAGS=-g | 
|  | 10793 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 10794 | program main | 
|  | 10795 |  | 
|  | 10796 | end | 
|  | 10797 | _ACEOF | 
|  | 10798 | rm -f conftest.$ac_objext | 
|  | 10799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10800 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10801 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10802 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 10803 | rm -f conftest.er1 | 
|  | 10804 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10806 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10807 | { ac_try='test -z "$ac_f77_werror_flag" | 
|  | 10808 | || test ! -s conftest.err' | 
|  | 10809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10810 | (eval $ac_try) 2>&5 | 
|  | 10811 | ac_status=$? | 
|  | 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10813 | (exit $ac_status); }; } && | 
|  | 10814 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 10816 | (eval $ac_try) 2>&5 | 
|  | 10817 | ac_status=$? | 
|  | 10818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 10819 | (exit $ac_status); }; }; then | 
|  | 10820 | ac_cv_prog_f77_g=yes | 
|  | 10821 | else | 
|  | 10822 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10823 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 10824 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10825 | ac_cv_prog_f77_g=no | 
|  | 10826 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10828 |  | 
|  | 10829 | fi | 
|  | 10830 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
|  | 10831 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 
|  | 10832 | if test "$ac_test_FFLAGS" = set; then | 
|  | 10833 | FFLAGS=$ac_save_FFLAGS | 
|  | 10834 | elif test $ac_cv_prog_f77_g = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10835 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10836 | FFLAGS="-g -O2" | 
|  | 10837 | else | 
|  | 10838 | FFLAGS="-g" | 
|  | 10839 | fi | 
|  | 10840 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10841 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10842 | FFLAGS="-O2" | 
|  | 10843 | else | 
|  | 10844 | FFLAGS= | 
|  | 10845 | fi | 
|  | 10846 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10847 |  | 
|  | 10848 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10849 | ac_ext=c | 
|  | 10850 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 10851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 10854 |  | 
|  | 10855 |  | 
|  | 10856 |  | 
|  | 10857 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
|  | 10858 |  | 
|  | 10859 | # find the maximum length of command line arguments | 
|  | 10860 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
|  | 10861 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 
|  | 10862 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
|  | 10863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10864 | else | 
|  | 10865 | i=0 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10866 | teststring="ABCD" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10867 |  | 
|  | 10868 | case $build_os in | 
|  | 10869 | msdosdjgpp*) | 
|  | 10870 | # On DJGPP, this test can blow up pretty badly due to problems in libc | 
|  | 10871 | # (any single argument exceeding 2000 bytes causes a buffer overrun | 
|  | 10872 | # during glob expansion).  Even if it were fixed, the result of this | 
|  | 10873 | # check would be larger than it should be. | 
|  | 10874 | lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
|  | 10875 | ;; | 
|  | 10876 |  | 
|  | 10877 | gnu*) | 
|  | 10878 | # Under GNU Hurd, this test is not required because there is | 
|  | 10879 | # no limit to the length of command line arguments. | 
|  | 10880 | # Libtool will interpret -1 as no limit whatsoever | 
|  | 10881 | lt_cv_sys_max_cmd_len=-1; | 
|  | 10882 | ;; | 
|  | 10883 |  | 
|  | 10884 | cygwin* | mingw*) | 
|  | 10885 | # On Win9x/ME, this test blows up -- it succeeds, but takes | 
|  | 10886 | # about 5 minutes as the teststring grows exponentially. | 
|  | 10887 | # Worse, since 9x/ME are not pre-emptively multitasking, | 
|  | 10888 | # you end up with a "frozen" computer, even though with patience | 
|  | 10889 | # the test eventually succeeds (with a max line length of 256k). | 
|  | 10890 | # Instead, let's just punt: use the minimum linelength reported by | 
|  | 10891 | # all of the supported platforms: 8192 (on NT/2K/XP). | 
|  | 10892 | lt_cv_sys_max_cmd_len=8192; | 
|  | 10893 | ;; | 
|  | 10894 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10895 | amigaos*) | 
|  | 10896 | # On AmigaOS with pdksh, this test takes hours, literally. | 
|  | 10897 | # So we just punt and use a minimum line length of 8192. | 
|  | 10898 | lt_cv_sys_max_cmd_len=8192; | 
|  | 10899 | ;; | 
|  | 10900 |  | 
|  | 10901 | netbsd* | freebsd* | openbsd* | darwin* ) | 
|  | 10902 | # This has been around since 386BSD, at least.  Likely further. | 
|  | 10903 | if test -x /sbin/sysctl; then | 
|  | 10904 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
|  | 10905 | elif test -x /usr/sbin/sysctl; then | 
|  | 10906 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
|  | 10907 | else | 
|  | 10908 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | 
|  | 10909 | fi | 
|  | 10910 | # And add a safety zone | 
|  | 10911 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
|  | 10912 | ;; | 
|  | 10913 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10914 | *) | 
|  | 10915 | # If test is not a shell built-in, we'll probably end up computing a | 
|  | 10916 | # maximum length that is only half of the actual maximum length, but | 
|  | 10917 | # we can't tell. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10918 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
|  | 10919 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | 
|  | 10920 | = "XX$teststring") >/dev/null 2>&1 && | 
|  | 10921 | new_result=`expr "X$teststring" : ".*" 2>&1` && | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10922 | lt_cv_sys_max_cmd_len=$new_result && | 
|  | 10923 | test $i != 17 # 1/2 MB should be enough | 
|  | 10924 | do | 
|  | 10925 | i=`expr $i + 1` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10926 | teststring=$teststring$teststring | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10927 | done | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10928 | teststring= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10929 | # Add a significant safety factor because C++ compilers can tack on massive | 
|  | 10930 | # amounts of additional arguments before passing them to the linker. | 
|  | 10931 | # It appears as though 1/2 is a usable value. | 
|  | 10932 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
|  | 10933 | ;; | 
|  | 10934 | esac | 
|  | 10935 |  | 
|  | 10936 | fi | 
|  | 10937 |  | 
|  | 10938 | if test -n $lt_cv_sys_max_cmd_len ; then | 
|  | 10939 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
|  | 10940 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 
|  | 10941 | else | 
|  | 10942 | echo "$as_me:$LINENO: result: none" >&5 | 
|  | 10943 | echo "${ECHO_T}none" >&6 | 
|  | 10944 | fi | 
|  | 10945 |  | 
|  | 10946 |  | 
|  | 10947 |  | 
|  | 10948 |  | 
|  | 10949 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
|  | 10950 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
|  | 10951 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
|  | 10952 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
|  | 10953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 10954 | else | 
|  | 10955 |  | 
|  | 10956 | # These are sane defaults that work on at least a few old systems. | 
|  | 10957 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 10958 |  | 
|  | 10959 | # Character class describing NM global symbol codes. | 
|  | 10960 | symcode='[BCDEGRST]' | 
|  | 10961 |  | 
|  | 10962 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 10963 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 10964 |  | 
|  | 10965 | # Transform the above into a raw symbol and a C symbol. | 
|  | 10966 | symxfrm='\1 \2\3 \3' | 
|  | 10967 |  | 
|  | 10968 | # Transform an extracted symbol line into a proper C declaration | 
|  | 10969 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
|  | 10970 |  | 
|  | 10971 | # Transform an extracted symbol line into symbol name and symbol address | 
|  | 10972 | 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'" | 
|  | 10973 |  | 
|  | 10974 | # Define system-specific variables. | 
|  | 10975 | case $host_os in | 
|  | 10976 | aix*) | 
|  | 10977 | symcode='[BCDT]' | 
|  | 10978 | ;; | 
|  | 10979 | cygwin* | mingw* | pw32*) | 
|  | 10980 | symcode='[ABCDGISTW]' | 
|  | 10981 | ;; | 
|  | 10982 | hpux*) # Its linker distinguishes data from code symbols | 
|  | 10983 | if test "$host_cpu" = ia64; then | 
|  | 10984 | symcode='[ABCDEGRST]' | 
|  | 10985 | fi | 
|  | 10986 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 10987 | 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'" | 
|  | 10988 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10989 | linux*) | 
|  | 10990 | if test "$host_cpu" = ia64; then | 
|  | 10991 | symcode='[ABCDGIRSTW]' | 
|  | 10992 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 10993 | 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'" | 
|  | 10994 | fi | 
|  | 10995 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10996 | irix* | nonstopux*) | 
|  | 10997 | symcode='[BCDEGRST]' | 
|  | 10998 | ;; | 
|  | 10999 | osf*) | 
|  | 11000 | symcode='[BCDEGQRST]' | 
|  | 11001 | ;; | 
|  | 11002 | solaris* | sysv5*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11003 | symcode='[BDRT]' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11004 | ;; | 
|  | 11005 | sysv4) | 
|  | 11006 | symcode='[DFNSTU]' | 
|  | 11007 | ;; | 
|  | 11008 | esac | 
|  | 11009 |  | 
|  | 11010 | # Handle CRLF in mingw tool chain | 
|  | 11011 | opt_cr= | 
|  | 11012 | case $build_os in | 
|  | 11013 | mingw*) | 
|  | 11014 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 11015 | ;; | 
|  | 11016 | esac | 
|  | 11017 |  | 
|  | 11018 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 11019 | case `$NM -V 2>&1` in | 
|  | 11020 | *GNU* | *'with BFD'*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11021 | symcode='[ABCDGIRSTW]' ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11022 | esac | 
|  | 11023 |  | 
|  | 11024 | # Try without a prefix undercore, then with it. | 
|  | 11025 | for ac_symprfx in "" "_"; do | 
|  | 11026 |  | 
|  | 11027 | # Write the raw and C identifiers. | 
|  | 11028 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
|  | 11029 |  | 
|  | 11030 | # Check to see that the pipe works correctly. | 
|  | 11031 | pipe_works=no | 
|  | 11032 |  | 
|  | 11033 | rm -f conftest* | 
|  | 11034 | cat > conftest.$ac_ext <<EOF | 
|  | 11035 | #ifdef __cplusplus | 
|  | 11036 | extern "C" { | 
|  | 11037 | #endif | 
|  | 11038 | char nm_test_var; | 
|  | 11039 | void nm_test_func(){} | 
|  | 11040 | #ifdef __cplusplus | 
|  | 11041 | } | 
|  | 11042 | #endif | 
|  | 11043 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 11044 | EOF | 
|  | 11045 |  | 
|  | 11046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 11047 | (eval $ac_compile) 2>&5 | 
|  | 11048 | ac_status=$? | 
|  | 11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11050 | (exit $ac_status); }; then | 
|  | 11051 | # Now try to grab the symbols. | 
|  | 11052 | nlist=conftest.nm | 
|  | 11053 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
|  | 11054 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
|  | 11055 | ac_status=$? | 
|  | 11056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11057 | (exit $ac_status); } && test -s "$nlist"; then | 
|  | 11058 | # Try sorting and uniquifying the output. | 
|  | 11059 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 11060 | mv -f "$nlist"T "$nlist" | 
|  | 11061 | else | 
|  | 11062 | rm -f "$nlist"T | 
|  | 11063 | fi | 
|  | 11064 |  | 
|  | 11065 | # Make sure that we snagged all the symbols we need. | 
|  | 11066 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 11067 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 11068 | cat <<EOF > conftest.$ac_ext | 
|  | 11069 | #ifdef __cplusplus | 
|  | 11070 | extern "C" { | 
|  | 11071 | #endif | 
|  | 11072 |  | 
|  | 11073 | EOF | 
|  | 11074 | # Now generate the symbol file. | 
|  | 11075 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
|  | 11076 |  | 
|  | 11077 | cat <<EOF >> conftest.$ac_ext | 
|  | 11078 | #if defined (__STDC__) && __STDC__ | 
|  | 11079 | # define lt_ptr_t void * | 
|  | 11080 | #else | 
|  | 11081 | # define lt_ptr_t char * | 
|  | 11082 | # define const | 
|  | 11083 | #endif | 
|  | 11084 |  | 
|  | 11085 | /* The mapping between symbol names and symbols. */ | 
|  | 11086 | const struct { | 
|  | 11087 | const char *name; | 
|  | 11088 | lt_ptr_t address; | 
|  | 11089 | } | 
|  | 11090 | lt_preloaded_symbols[] = | 
|  | 11091 | { | 
|  | 11092 | EOF | 
|  | 11093 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
|  | 11094 | cat <<\EOF >> conftest.$ac_ext | 
|  | 11095 | {0, (lt_ptr_t) 0} | 
|  | 11096 | }; | 
|  | 11097 |  | 
|  | 11098 | #ifdef __cplusplus | 
|  | 11099 | } | 
|  | 11100 | #endif | 
|  | 11101 | EOF | 
|  | 11102 | # Now try linking the two files. | 
|  | 11103 | mv conftest.$ac_objext conftstm.$ac_objext | 
|  | 11104 | lt_save_LIBS="$LIBS" | 
|  | 11105 | lt_save_CFLAGS="$CFLAGS" | 
|  | 11106 | LIBS="conftstm.$ac_objext" | 
|  | 11107 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
|  | 11108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 11109 | (eval $ac_link) 2>&5 | 
|  | 11110 | ac_status=$? | 
|  | 11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 11112 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
|  | 11113 | pipe_works=yes | 
|  | 11114 | fi | 
|  | 11115 | LIBS="$lt_save_LIBS" | 
|  | 11116 | CFLAGS="$lt_save_CFLAGS" | 
|  | 11117 | else | 
|  | 11118 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 11119 | fi | 
|  | 11120 | else | 
|  | 11121 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 11122 | fi | 
|  | 11123 | else | 
|  | 11124 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 11125 | fi | 
|  | 11126 | else | 
|  | 11127 | echo "$progname: failed program was:" >&5 | 
|  | 11128 | cat conftest.$ac_ext >&5 | 
|  | 11129 | fi | 
|  | 11130 | rm -f conftest* conftst* | 
|  | 11131 |  | 
|  | 11132 | # Do not use the global_symbol_pipe unless it works. | 
|  | 11133 | if test "$pipe_works" = yes; then | 
|  | 11134 | break | 
|  | 11135 | else | 
|  | 11136 | lt_cv_sys_global_symbol_pipe= | 
|  | 11137 | fi | 
|  | 11138 | done | 
|  | 11139 |  | 
|  | 11140 | fi | 
|  | 11141 |  | 
|  | 11142 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 11143 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 11144 | fi | 
|  | 11145 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
|  | 11146 | echo "$as_me:$LINENO: result: failed" >&5 | 
|  | 11147 | echo "${ECHO_T}failed" >&6 | 
|  | 11148 | else | 
|  | 11149 | echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 11150 | echo "${ECHO_T}ok" >&6 | 
|  | 11151 | fi | 
|  | 11152 |  | 
|  | 11153 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
|  | 11154 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
|  | 11155 | if test "${lt_cv_objdir+set}" = set; then | 
|  | 11156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11157 | else | 
|  | 11158 | rm -f .libs 2>/dev/null | 
|  | 11159 | mkdir .libs 2>/dev/null | 
|  | 11160 | if test -d .libs; then | 
|  | 11161 | lt_cv_objdir=.libs | 
|  | 11162 | else | 
|  | 11163 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 11164 | lt_cv_objdir=_libs | 
|  | 11165 | fi | 
|  | 11166 | rmdir .libs 2>/dev/null | 
|  | 11167 | fi | 
|  | 11168 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
|  | 11169 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 
|  | 11170 | objdir=$lt_cv_objdir | 
|  | 11171 |  | 
|  | 11172 |  | 
|  | 11173 |  | 
|  | 11174 |  | 
|  | 11175 |  | 
|  | 11176 | case $host_os in | 
|  | 11177 | aix3*) | 
|  | 11178 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 11179 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 11180 | # vanish in a puff of smoke. | 
|  | 11181 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 11182 | COLLECT_NAMES= | 
|  | 11183 | export COLLECT_NAMES | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11184 | fi | 
|  | 11185 | ;; | 
|  | 11186 | esac | 
|  | 11187 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11188 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
|  | 11189 | # metacharacters that are still active within double-quoted strings. | 
|  | 11190 | Xsed='sed -e s/^X//' | 
|  | 11191 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
|  | 11192 |  | 
|  | 11193 | # Same as above, but do not quote variable references. | 
|  | 11194 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
|  | 11195 |  | 
|  | 11196 | # Sed substitution to delay expansion of an escaped shell variable in a | 
|  | 11197 | # double_quote_subst'ed string. | 
|  | 11198 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
|  | 11199 |  | 
|  | 11200 | # Sed substitution to avoid accidental globbing in evaled expressions | 
|  | 11201 | no_glob_subst='s/\*/\\\*/g' | 
|  | 11202 |  | 
|  | 11203 | # Constants: | 
|  | 11204 | rm="rm -f" | 
|  | 11205 |  | 
|  | 11206 | # Global variables: | 
| Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 11207 | default_ofile=mklib | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11208 | can_build_shared=yes | 
|  | 11209 |  | 
|  | 11210 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
|  | 11211 | # which needs '.lib'). | 
|  | 11212 | libext=a | 
|  | 11213 | ltmain="$ac_aux_dir/ltmain.sh" | 
|  | 11214 | ofile="$default_ofile" | 
|  | 11215 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
|  | 11216 |  | 
|  | 11217 | if test -n "$ac_tool_prefix"; then | 
|  | 11218 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
|  | 11219 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
|  | 11220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 11221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 11222 | if test "${ac_cv_prog_AR+set}" = set; then | 
|  | 11223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11224 | else | 
|  | 11225 | if test -n "$AR"; then | 
|  | 11226 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 11227 | else | 
|  | 11228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11229 | for as_dir in $PATH | 
|  | 11230 | do | 
|  | 11231 | IFS=$as_save_IFS | 
|  | 11232 | test -z "$as_dir" && as_dir=. | 
|  | 11233 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11235 | ac_cv_prog_AR="${ac_tool_prefix}ar" | 
|  | 11236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11237 | break 2 | 
|  | 11238 | fi | 
|  | 11239 | done | 
|  | 11240 | done | 
|  | 11241 |  | 
|  | 11242 | fi | 
|  | 11243 | fi | 
|  | 11244 | AR=$ac_cv_prog_AR | 
|  | 11245 | if test -n "$AR"; then | 
|  | 11246 | echo "$as_me:$LINENO: result: $AR" >&5 | 
|  | 11247 | echo "${ECHO_T}$AR" >&6 | 
|  | 11248 | else | 
|  | 11249 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 11250 | echo "${ECHO_T}no" >&6 | 
|  | 11251 | fi | 
|  | 11252 |  | 
|  | 11253 | fi | 
|  | 11254 | if test -z "$ac_cv_prog_AR"; then | 
|  | 11255 | ac_ct_AR=$AR | 
|  | 11256 | # Extract the first word of "ar", so it can be a program name with args. | 
|  | 11257 | set dummy ar; ac_word=$2 | 
|  | 11258 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 11259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 11260 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
|  | 11261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11262 | else | 
|  | 11263 | if test -n "$ac_ct_AR"; then | 
|  | 11264 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 11265 | else | 
|  | 11266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11267 | for as_dir in $PATH | 
|  | 11268 | do | 
|  | 11269 | IFS=$as_save_IFS | 
|  | 11270 | test -z "$as_dir" && as_dir=. | 
|  | 11271 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11273 | ac_cv_prog_ac_ct_AR="ar" | 
|  | 11274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11275 | break 2 | 
|  | 11276 | fi | 
|  | 11277 | done | 
|  | 11278 | done | 
|  | 11279 |  | 
|  | 11280 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | 
|  | 11281 | fi | 
|  | 11282 | fi | 
|  | 11283 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 11284 | if test -n "$ac_ct_AR"; then | 
|  | 11285 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
|  | 11286 | echo "${ECHO_T}$ac_ct_AR" >&6 | 
|  | 11287 | else | 
|  | 11288 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 11289 | echo "${ECHO_T}no" >&6 | 
|  | 11290 | fi | 
|  | 11291 |  | 
|  | 11292 | AR=$ac_ct_AR | 
|  | 11293 | else | 
|  | 11294 | AR="$ac_cv_prog_AR" | 
|  | 11295 | fi | 
|  | 11296 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11297 | if test -n "$ac_tool_prefix"; then | 
|  | 11298 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 11299 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|  | 11300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 11301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 11302 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
|  | 11303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11304 | else | 
|  | 11305 | if test -n "$RANLIB"; then | 
|  | 11306 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 11307 | else | 
|  | 11308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11309 | for as_dir in $PATH | 
|  | 11310 | do | 
|  | 11311 | IFS=$as_save_IFS | 
|  | 11312 | test -z "$as_dir" && as_dir=. | 
|  | 11313 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11315 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|  | 11316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11317 | break 2 | 
|  | 11318 | fi | 
|  | 11319 | done | 
|  | 11320 | done | 
|  | 11321 |  | 
|  | 11322 | fi | 
|  | 11323 | fi | 
|  | 11324 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 11325 | if test -n "$RANLIB"; then | 
|  | 11326 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
|  | 11327 | echo "${ECHO_T}$RANLIB" >&6 | 
|  | 11328 | else | 
|  | 11329 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 11330 | echo "${ECHO_T}no" >&6 | 
|  | 11331 | fi | 
|  | 11332 |  | 
|  | 11333 | fi | 
|  | 11334 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 11335 | ac_ct_RANLIB=$RANLIB | 
|  | 11336 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 11337 | set dummy ranlib; ac_word=$2 | 
|  | 11338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 11339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 11340 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
|  | 11341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11342 | else | 
|  | 11343 | if test -n "$ac_ct_RANLIB"; then | 
|  | 11344 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 11345 | else | 
|  | 11346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11347 | for as_dir in $PATH | 
|  | 11348 | do | 
|  | 11349 | IFS=$as_save_IFS | 
|  | 11350 | test -z "$as_dir" && as_dir=. | 
|  | 11351 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11353 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
|  | 11354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11355 | break 2 | 
|  | 11356 | fi | 
|  | 11357 | done | 
|  | 11358 | done | 
|  | 11359 |  | 
|  | 11360 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
|  | 11361 | fi | 
|  | 11362 | fi | 
|  | 11363 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 11364 | if test -n "$ac_ct_RANLIB"; then | 
|  | 11365 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
|  | 11366 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
|  | 11367 | else | 
|  | 11368 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 11369 | echo "${ECHO_T}no" >&6 | 
|  | 11370 | fi | 
|  | 11371 |  | 
|  | 11372 | RANLIB=$ac_ct_RANLIB | 
|  | 11373 | else | 
|  | 11374 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 11375 | fi | 
|  | 11376 |  | 
|  | 11377 | if test -n "$ac_tool_prefix"; then | 
|  | 11378 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|  | 11379 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|  | 11380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 11381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 11382 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
|  | 11383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11384 | else | 
|  | 11385 | if test -n "$STRIP"; then | 
|  | 11386 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|  | 11387 | else | 
|  | 11388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11389 | for as_dir in $PATH | 
|  | 11390 | do | 
|  | 11391 | IFS=$as_save_IFS | 
|  | 11392 | test -z "$as_dir" && as_dir=. | 
|  | 11393 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11395 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|  | 11396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11397 | break 2 | 
|  | 11398 | fi | 
|  | 11399 | done | 
|  | 11400 | done | 
|  | 11401 |  | 
|  | 11402 | fi | 
|  | 11403 | fi | 
|  | 11404 | STRIP=$ac_cv_prog_STRIP | 
|  | 11405 | if test -n "$STRIP"; then | 
|  | 11406 | echo "$as_me:$LINENO: result: $STRIP" >&5 | 
|  | 11407 | echo "${ECHO_T}$STRIP" >&6 | 
|  | 11408 | else | 
|  | 11409 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 11410 | echo "${ECHO_T}no" >&6 | 
|  | 11411 | fi | 
|  | 11412 |  | 
|  | 11413 | fi | 
|  | 11414 | if test -z "$ac_cv_prog_STRIP"; then | 
|  | 11415 | ac_ct_STRIP=$STRIP | 
|  | 11416 | # Extract the first word of "strip", so it can be a program name with args. | 
|  | 11417 | set dummy strip; ac_word=$2 | 
|  | 11418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 11419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 11420 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
|  | 11421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11422 | else | 
|  | 11423 | if test -n "$ac_ct_STRIP"; then | 
|  | 11424 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
|  | 11425 | else | 
|  | 11426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11427 | for as_dir in $PATH | 
|  | 11428 | do | 
|  | 11429 | IFS=$as_save_IFS | 
|  | 11430 | test -z "$as_dir" && as_dir=. | 
|  | 11431 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 11433 | ac_cv_prog_ac_ct_STRIP="strip" | 
|  | 11434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11435 | break 2 | 
|  | 11436 | fi | 
|  | 11437 | done | 
|  | 11438 | done | 
|  | 11439 |  | 
|  | 11440 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | 
|  | 11441 | fi | 
|  | 11442 | fi | 
|  | 11443 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
|  | 11444 | if test -n "$ac_ct_STRIP"; then | 
|  | 11445 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
|  | 11446 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 
|  | 11447 | else | 
|  | 11448 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 11449 | echo "${ECHO_T}no" >&6 | 
|  | 11450 | fi | 
|  | 11451 |  | 
|  | 11452 | STRIP=$ac_ct_STRIP | 
|  | 11453 | else | 
|  | 11454 | STRIP="$ac_cv_prog_STRIP" | 
|  | 11455 | fi | 
|  | 11456 |  | 
|  | 11457 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11458 | old_CC="$CC" | 
|  | 11459 | old_CFLAGS="$CFLAGS" | 
|  | 11460 |  | 
|  | 11461 | # Set sane defaults for various variables | 
|  | 11462 | test -z "$AR" && AR=ar | 
|  | 11463 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
|  | 11464 | test -z "$AS" && AS=as | 
|  | 11465 | test -z "$CC" && CC=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11466 | test -z "$LTCC" && LTCC=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11467 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
|  | 11468 | test -z "$LD" && LD=ld | 
|  | 11469 | test -z "$LN_S" && LN_S="ln -s" | 
|  | 11470 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
|  | 11471 | test -z "$NM" && NM=nm | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11472 | test -z "$SED" && SED=sed | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11473 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
|  | 11474 | test -z "$RANLIB" && RANLIB=: | 
|  | 11475 | test -z "$STRIP" && STRIP=: | 
|  | 11476 | test -z "$ac_objext" && ac_objext=o | 
|  | 11477 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11478 | # Determine commands to create old-style static archives. | 
|  | 11479 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
|  | 11480 | old_postinstall_cmds='chmod 644 $oldlib' | 
|  | 11481 | old_postuninstall_cmds= | 
|  | 11482 |  | 
|  | 11483 | if test -n "$RANLIB"; then | 
|  | 11484 | case $host_os in | 
|  | 11485 | openbsd*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11486 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11487 | ;; | 
|  | 11488 | *) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11489 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11490 | ;; | 
|  | 11491 | esac | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11492 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11493 | fi | 
|  | 11494 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11495 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
|  | 11496 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11497 | # Only perform the check for file, if the check method requires it | 
|  | 11498 | case $deplibs_check_method in | 
|  | 11499 | file_magic*) | 
|  | 11500 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|  | 11501 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
|  | 11502 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 
|  | 11503 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
|  | 11504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11505 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11506 | case $MAGIC_CMD in | 
|  | 11507 | [\\/*] |  ?:[\\/]*) | 
|  | 11508 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 11509 | ;; | 
|  | 11510 | *) | 
|  | 11511 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 11512 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 11513 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 11514 | for ac_dir in $ac_dummy; do | 
|  | 11515 | IFS="$lt_save_ifs" | 
|  | 11516 | test -z "$ac_dir" && ac_dir=. | 
|  | 11517 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|  | 11518 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|  | 11519 | if test -n "$file_magic_test_file"; then | 
|  | 11520 | case $deplibs_check_method in | 
|  | 11521 | "file_magic "*) | 
|  | 11522 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|  | 11523 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 11524 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 11525 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 11526 | : | 
|  | 11527 | else | 
|  | 11528 | cat <<EOF 1>&2 | 
|  | 11529 |  | 
|  | 11530 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 11531 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 11532 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 11533 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 11534 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 11535 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 11536 | *** may want to report the problem to your system manager and/or to | 
|  | 11537 | *** bug-libtool@gnu.org | 
|  | 11538 |  | 
|  | 11539 | EOF | 
|  | 11540 | fi ;; | 
|  | 11541 | esac | 
|  | 11542 | fi | 
|  | 11543 | break | 
|  | 11544 | fi | 
|  | 11545 | done | 
|  | 11546 | IFS="$lt_save_ifs" | 
|  | 11547 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 11548 | ;; | 
|  | 11549 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11550 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11551 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11552 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 11553 | if test -n "$MAGIC_CMD"; then | 
|  | 11554 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
|  | 11555 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
|  | 11556 | else | 
|  | 11557 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 11558 | echo "${ECHO_T}no" >&6 | 
|  | 11559 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11560 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11561 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|  | 11562 | if test -n "$ac_tool_prefix"; then | 
|  | 11563 | echo "$as_me:$LINENO: checking for file" >&5 | 
|  | 11564 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 
|  | 11565 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
|  | 11566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11567 | else | 
|  | 11568 | case $MAGIC_CMD in | 
|  | 11569 | [\\/*] |  ?:[\\/]*) | 
|  | 11570 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 11571 | ;; | 
|  | 11572 | *) | 
|  | 11573 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 11574 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 11575 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 11576 | for ac_dir in $ac_dummy; do | 
|  | 11577 | IFS="$lt_save_ifs" | 
|  | 11578 | test -z "$ac_dir" && ac_dir=. | 
|  | 11579 | if test -f $ac_dir/file; then | 
|  | 11580 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|  | 11581 | if test -n "$file_magic_test_file"; then | 
|  | 11582 | case $deplibs_check_method in | 
|  | 11583 | "file_magic "*) | 
|  | 11584 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|  | 11585 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 11586 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 11587 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 11588 | : | 
|  | 11589 | else | 
|  | 11590 | cat <<EOF 1>&2 | 
|  | 11591 |  | 
|  | 11592 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 11593 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 11594 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 11595 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 11596 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 11597 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 11598 | *** may want to report the problem to your system manager and/or to | 
|  | 11599 | *** bug-libtool@gnu.org | 
|  | 11600 |  | 
|  | 11601 | EOF | 
|  | 11602 | fi ;; | 
|  | 11603 | esac | 
|  | 11604 | fi | 
|  | 11605 | break | 
|  | 11606 | fi | 
|  | 11607 | done | 
|  | 11608 | IFS="$lt_save_ifs" | 
|  | 11609 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 11610 | ;; | 
|  | 11611 | esac | 
|  | 11612 | fi | 
|  | 11613 |  | 
|  | 11614 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 11615 | if test -n "$MAGIC_CMD"; then | 
|  | 11616 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
|  | 11617 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
|  | 11618 | else | 
|  | 11619 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 11620 | echo "${ECHO_T}no" >&6 | 
|  | 11621 | fi | 
|  | 11622 |  | 
|  | 11623 | else | 
|  | 11624 | MAGIC_CMD=: | 
|  | 11625 | fi | 
|  | 11626 | fi | 
|  | 11627 |  | 
|  | 11628 | fi | 
|  | 11629 | ;; | 
|  | 11630 | esac | 
|  | 11631 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 11632 | enable_dlopen=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11633 | enable_win32_dll=no | 
|  | 11634 |  | 
|  | 11635 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|  | 11636 | if test "${enable_libtool_lock+set}" = set; then | 
|  | 11637 | enableval="$enable_libtool_lock" | 
|  | 11638 |  | 
|  | 11639 | fi; | 
|  | 11640 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
|  | 11641 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11642 |  | 
|  | 11643 | # Check whether --with-pic or --without-pic was given. | 
|  | 11644 | if test "${with_pic+set}" = set; then | 
|  | 11645 | withval="$with_pic" | 
|  | 11646 | pic_mode="$withval" | 
|  | 11647 | else | 
|  | 11648 | pic_mode=default | 
|  | 11649 | fi; | 
|  | 11650 | test -z "$pic_mode" && pic_mode=default | 
|  | 11651 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11652 | # Use C for the default configuration in the libtool script | 
|  | 11653 | tagname= | 
|  | 11654 | lt_save_CC="$CC" | 
|  | 11655 | ac_ext=c | 
|  | 11656 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 11657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 11658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 11659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 11660 |  | 
|  | 11661 |  | 
|  | 11662 | # Source file extension for C test sources. | 
|  | 11663 | ac_ext=c | 
|  | 11664 |  | 
|  | 11665 | # Object file extension for compiled C test sources. | 
|  | 11666 | objext=o | 
|  | 11667 | objext=$objext | 
|  | 11668 |  | 
|  | 11669 | # Code to be used in simple compile tests | 
|  | 11670 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
|  | 11671 |  | 
|  | 11672 | # Code to be used in simple link tests | 
|  | 11673 | lt_simple_link_test_code='int main(){return(0);}\n' | 
|  | 11674 |  | 
|  | 11675 |  | 
|  | 11676 | # If no C compiler was specified, use CC. | 
|  | 11677 | LTCC=${LTCC-"$CC"} | 
|  | 11678 |  | 
|  | 11679 | # Allow CC to be a program name with arguments. | 
|  | 11680 | compiler=$CC | 
|  | 11681 |  | 
|  | 11682 |  | 
|  | 11683 | # | 
|  | 11684 | # Check for any special shared library compilation flags. | 
|  | 11685 | # | 
|  | 11686 | lt_prog_cc_shlib= | 
|  | 11687 | if test "$GCC" = no; then | 
|  | 11688 | case $host_os in | 
|  | 11689 | sco3.2v5*) | 
|  | 11690 | lt_prog_cc_shlib='-belf' | 
|  | 11691 | ;; | 
|  | 11692 | esac | 
|  | 11693 | fi | 
|  | 11694 | if test -n "$lt_prog_cc_shlib"; then | 
|  | 11695 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | 
|  | 11696 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | 
|  | 11697 | if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then : | 
|  | 11698 | else | 
|  | 11699 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | 
|  | 11700 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | 
|  | 11701 | lt_cv_prog_cc_can_build_shared=no | 
|  | 11702 | fi | 
|  | 11703 | fi | 
|  | 11704 |  | 
|  | 11705 |  | 
|  | 11706 | # | 
|  | 11707 | # Check to make sure the static flag actually works. | 
|  | 11708 | # | 
|  | 11709 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | 
|  | 11710 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | 
|  | 11711 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11713 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11714 | lt_prog_compiler_static_works=no | 
|  | 11715 | save_LDFLAGS="$LDFLAGS" | 
|  | 11716 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | 
|  | 11717 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 11718 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 11719 | # The compiler can only warn and ignore the option if not recognized | 
|  | 11720 | # So say no if there are warnings | 
|  | 11721 | if test -s conftest.err; then | 
|  | 11722 | # Append any errors to the config.log. | 
|  | 11723 | cat conftest.err 1>&5 | 
|  | 11724 | else | 
|  | 11725 | lt_prog_compiler_static_works=yes | 
|  | 11726 | fi | 
|  | 11727 | fi | 
|  | 11728 | $rm conftest* | 
|  | 11729 | LDFLAGS="$save_LDFLAGS" | 
|  | 11730 |  | 
|  | 11731 | fi | 
|  | 11732 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
|  | 11733 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | 
|  | 11734 |  | 
|  | 11735 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
|  | 11736 | : | 
|  | 11737 | else | 
|  | 11738 | lt_prog_compiler_static= | 
|  | 11739 | fi | 
|  | 11740 |  | 
|  | 11741 |  | 
|  | 11742 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11743 |  | 
|  | 11744 | lt_prog_compiler_no_builtin_flag= | 
|  | 11745 |  | 
|  | 11746 | if test "$GCC" = yes; then | 
|  | 11747 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
|  | 11748 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11749 |  | 
|  | 11750 | 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] | 11751 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
|  | 11752 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
|  | 11753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11754 | else | 
|  | 11755 | lt_cv_prog_compiler_rtti_exceptions=no | 
|  | 11756 | ac_outfile=conftest.$ac_objext | 
|  | 11757 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 11758 | lt_compiler_flag="-fno-rtti -fno-exceptions" | 
|  | 11759 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 11760 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 11761 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 11762 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 11763 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 11764 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 11765 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 11766 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 11767 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 11768 | (eval echo "\"\$as_me:11768: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11769 | (eval "$lt_compile" 2>conftest.err) | 
|  | 11770 | ac_status=$? | 
|  | 11771 | cat conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 11772 | echo "$as_me:11772: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11773 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 11774 | # The compiler can only warn and ignore the option if not recognized | 
|  | 11775 | # So say no if there are warnings | 
|  | 11776 | if test ! -s conftest.err; then | 
|  | 11777 | lt_cv_prog_compiler_rtti_exceptions=yes | 
|  | 11778 | fi | 
|  | 11779 | fi | 
|  | 11780 | $rm conftest* | 
|  | 11781 |  | 
|  | 11782 | fi | 
|  | 11783 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
|  | 11784 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
|  | 11785 |  | 
|  | 11786 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
|  | 11787 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
|  | 11788 | else | 
|  | 11789 | : | 
|  | 11790 | fi | 
|  | 11791 |  | 
|  | 11792 | fi | 
|  | 11793 |  | 
|  | 11794 | lt_prog_compiler_wl= | 
|  | 11795 | lt_prog_compiler_pic= | 
|  | 11796 | lt_prog_compiler_static= | 
|  | 11797 |  | 
|  | 11798 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 11799 | 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] | 11800 |  | 
|  | 11801 | if test "$GCC" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11802 | lt_prog_compiler_wl='-Wl,' | 
|  | 11803 | lt_prog_compiler_static='-static' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11804 |  | 
|  | 11805 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11806 | aix*) | 
|  | 11807 | # All AIX code is PIC. | 
|  | 11808 | if test "$host_cpu" = ia64; then | 
|  | 11809 | # AIX 5 now supports IA64 processor | 
|  | 11810 | lt_prog_compiler_static='-Bstatic' | 
|  | 11811 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11812 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11813 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11814 | amigaos*) | 
|  | 11815 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 11816 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 11817 | # like `-m68040'. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11818 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11819 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11820 |  | 
|  | 11821 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11822 | # PIC is the default for these OSes. | 
|  | 11823 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11824 |  | 
|  | 11825 | mingw* | pw32* | os2*) | 
|  | 11826 | # This hack is so that the source file can tell whether it is being | 
|  | 11827 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 11828 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 11829 | ;; | 
|  | 11830 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11831 | darwin* | rhapsody*) | 
|  | 11832 | # PIC is the default on this platform | 
|  | 11833 | # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11834 | lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11835 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11836 |  | 
|  | 11837 | msdosdjgpp*) | 
|  | 11838 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 11839 | # on systems that don't support them. | 
|  | 11840 | lt_prog_compiler_can_build_shared=no | 
|  | 11841 | enable_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11842 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11843 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11844 | sysv4*MP*) | 
|  | 11845 | if test -d /usr/nec; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11846 | lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11847 | fi | 
|  | 11848 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11849 |  | 
|  | 11850 | hpux*) | 
|  | 11851 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 11852 | # not for PA HP-UX. | 
|  | 11853 | case "$host_cpu" in | 
|  | 11854 | hppa*64*|ia64*) | 
|  | 11855 | # +Z the default | 
|  | 11856 | ;; | 
|  | 11857 | *) | 
|  | 11858 | lt_prog_compiler_pic='-fPIC' | 
|  | 11859 | ;; | 
|  | 11860 | esac | 
|  | 11861 | ;; | 
|  | 11862 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11863 | *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11864 | lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11865 | ;; | 
|  | 11866 | esac | 
|  | 11867 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11868 | # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11869 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11870 | aix*) | 
|  | 11871 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11872 | if test "$host_cpu" = ia64; then | 
|  | 11873 | # AIX 5 now supports IA64 processor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11874 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11875 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11876 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11877 | fi | 
|  | 11878 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11879 | darwin*) | 
|  | 11880 | # PIC is the default on this platform | 
|  | 11881 | # Common symbols not allowed in MH_DYLIB files | 
|  | 11882 | case "$cc_basename" in | 
|  | 11883 | xlc*) | 
|  | 11884 | lt_prog_compiler_pic='-qnocommon' | 
|  | 11885 | lt_prog_compiler_wl='-Wl,' | 
|  | 11886 | ;; | 
|  | 11887 | esac | 
|  | 11888 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11889 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11890 | mingw* | pw32* | os2*) | 
|  | 11891 | # This hack is so that the source file can tell whether it is being | 
|  | 11892 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 11893 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 11894 | ;; | 
|  | 11895 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11896 | hpux9* | hpux10* | hpux11*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11897 | lt_prog_compiler_wl='-Wl,' | 
|  | 11898 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 11899 | # not for PA HP-UX. | 
|  | 11900 | case "$host_cpu" in | 
|  | 11901 | hppa*64*|ia64*) | 
|  | 11902 | # +Z the default | 
|  | 11903 | ;; | 
|  | 11904 | *) | 
|  | 11905 | lt_prog_compiler_pic='+Z' | 
|  | 11906 | ;; | 
|  | 11907 | esac | 
|  | 11908 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 11909 | lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11910 | ;; | 
|  | 11911 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11912 | irix5* | irix6* | nonstopux*) | 
|  | 11913 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11914 | # PIC (with -KPIC) is the default. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11915 | lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11916 | ;; | 
|  | 11917 |  | 
|  | 11918 | newsos6) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11919 | lt_prog_compiler_pic='-KPIC' | 
|  | 11920 | lt_prog_compiler_static='-Bstatic' | 
|  | 11921 | ;; | 
|  | 11922 |  | 
|  | 11923 | linux*) | 
|  | 11924 | case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11925 | icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11926 | lt_prog_compiler_wl='-Wl,' | 
|  | 11927 | lt_prog_compiler_pic='-KPIC' | 
|  | 11928 | lt_prog_compiler_static='-static' | 
|  | 11929 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11930 | ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11931 | lt_prog_compiler_wl='-Wl,' | 
|  | 11932 | # All Alpha code is PIC. | 
|  | 11933 | lt_prog_compiler_static='-non_shared' | 
|  | 11934 | ;; | 
|  | 11935 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11936 | ;; | 
|  | 11937 |  | 
|  | 11938 | osf3* | osf4* | osf5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11939 | lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11940 | # All OSF/1 code is PIC. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11941 | lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11942 | ;; | 
|  | 11943 |  | 
|  | 11944 | sco3.2v5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11945 | lt_prog_compiler_pic='-Kpic' | 
|  | 11946 | lt_prog_compiler_static='-dn' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11947 | ;; | 
|  | 11948 |  | 
|  | 11949 | solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11950 | lt_prog_compiler_wl='-Wl,' | 
|  | 11951 | lt_prog_compiler_pic='-KPIC' | 
|  | 11952 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11953 | ;; | 
|  | 11954 |  | 
|  | 11955 | sunos4*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11956 | lt_prog_compiler_wl='-Qoption ld ' | 
|  | 11957 | lt_prog_compiler_pic='-PIC' | 
|  | 11958 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11959 | ;; | 
|  | 11960 |  | 
|  | 11961 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11962 | lt_prog_compiler_wl='-Wl,' | 
|  | 11963 | lt_prog_compiler_pic='-KPIC' | 
|  | 11964 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11965 | ;; | 
|  | 11966 |  | 
|  | 11967 | sysv4*MP*) | 
|  | 11968 | if test -d /usr/nec ;then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11969 | lt_prog_compiler_pic='-Kconform_pic' | 
|  | 11970 | lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11971 | fi | 
|  | 11972 | ;; | 
|  | 11973 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11974 | uts4*) | 
|  | 11975 | lt_prog_compiler_pic='-pic' | 
|  | 11976 | lt_prog_compiler_static='-Bstatic' | 
|  | 11977 | ;; | 
|  | 11978 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11979 | *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11980 | lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11981 | ;; | 
|  | 11982 | esac | 
|  | 11983 | fi | 
|  | 11984 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11985 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
|  | 11986 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11987 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11988 | # | 
|  | 11989 | # Check to make sure the PIC flag actually works. | 
|  | 11990 | # | 
|  | 11991 | if test -n "$lt_prog_compiler_pic"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11992 |  | 
|  | 11993 | 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] | 11994 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 
|  | 11995 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 11997 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11998 | lt_prog_compiler_pic_works=no | 
|  | 11999 | ac_outfile=conftest.$ac_objext | 
|  | 12000 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 12001 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
|  | 12002 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12003 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12004 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12005 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12006 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 12007 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12008 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 12009 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12010 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 12011 | (eval echo "\"\$as_me:12011: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12012 | (eval "$lt_compile" 2>conftest.err) | 
|  | 12013 | ac_status=$? | 
|  | 12014 | cat conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 12015 | echo "$as_me:12015: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12016 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 12017 | # The compiler can only warn and ignore the option if not recognized | 
|  | 12018 | # So say no if there are warnings | 
|  | 12019 | if test ! -s conftest.err; then | 
|  | 12020 | lt_prog_compiler_pic_works=yes | 
|  | 12021 | fi | 
|  | 12022 | fi | 
|  | 12023 | $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12024 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12025 | fi | 
|  | 12026 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
|  | 12027 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12028 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12029 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
|  | 12030 | case $lt_prog_compiler_pic in | 
|  | 12031 | "" | " "*) ;; | 
|  | 12032 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
|  | 12033 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12034 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12035 | lt_prog_compiler_pic= | 
|  | 12036 | lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12037 | fi | 
|  | 12038 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12039 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12040 | case "$host_os" in | 
|  | 12041 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 12042 | *djgpp*) | 
|  | 12043 | lt_prog_compiler_pic= | 
|  | 12044 | ;; | 
|  | 12045 | *) | 
|  | 12046 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
|  | 12047 | ;; | 
|  | 12048 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12049 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12050 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 12051 | 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] | 12052 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 12054 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12055 | lt_cv_prog_compiler_c_o=no | 
|  | 12056 | $rm -r conftest 2>/dev/null | 
|  | 12057 | mkdir conftest | 
|  | 12058 | cd conftest | 
|  | 12059 | mkdir out | 
|  | 12060 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12061 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12062 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 12063 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12064 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12065 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12066 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12067 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12068 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 12069 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12070 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 12071 | (eval echo "\"\$as_me:12071: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12072 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 12073 | ac_status=$? | 
|  | 12074 | cat out/conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 12075 | echo "$as_me:12075: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12076 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 12077 | then | 
|  | 12078 | # The compiler can only warn and ignore the option if not recognized | 
|  | 12079 | # So say no if there are warnings | 
|  | 12080 | if test ! -s out/conftest.err; then | 
|  | 12081 | lt_cv_prog_compiler_c_o=yes | 
|  | 12082 | fi | 
|  | 12083 | fi | 
|  | 12084 | chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12085 | $rm conftest* | 
|  | 12086 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 12087 | # template instantiation | 
|  | 12088 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
|  | 12089 | $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12090 | cd .. | 
|  | 12091 | rmdir conftest | 
|  | 12092 | $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12093 |  | 
|  | 12094 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12095 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
|  | 12096 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12097 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12098 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12099 | hard_links="nottested" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12100 | 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] | 12101 | # do not overwrite the value of need_locks provided by the user | 
|  | 12102 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 12103 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 12104 | hard_links=yes | 
|  | 12105 | $rm conftest* | 
|  | 12106 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 12107 | touch conftest.a | 
|  | 12108 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 12109 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 12110 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 12111 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 12112 | if test "$hard_links" = no; then | 
|  | 12113 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 12114 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 12115 | need_locks=warn | 
|  | 12116 | fi | 
|  | 12117 | else | 
|  | 12118 | need_locks=no | 
|  | 12119 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12120 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12121 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 12122 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 12123 |  | 
|  | 12124 | runpath_var= | 
|  | 12125 | allow_undefined_flag= | 
|  | 12126 | enable_shared_with_static_runtimes=no | 
|  | 12127 | archive_cmds= | 
|  | 12128 | archive_expsym_cmds= | 
|  | 12129 | old_archive_From_new_cmds= | 
|  | 12130 | old_archive_from_expsyms_cmds= | 
|  | 12131 | export_dynamic_flag_spec= | 
|  | 12132 | whole_archive_flag_spec= | 
|  | 12133 | thread_safe_flag_spec= | 
|  | 12134 | hardcode_libdir_flag_spec= | 
|  | 12135 | hardcode_libdir_flag_spec_ld= | 
|  | 12136 | hardcode_libdir_separator= | 
|  | 12137 | hardcode_direct=no | 
|  | 12138 | hardcode_minus_L=no | 
|  | 12139 | hardcode_shlibpath_var=unsupported | 
|  | 12140 | link_all_deplibs=unknown | 
|  | 12141 | hardcode_automatic=no | 
|  | 12142 | module_cmds= | 
|  | 12143 | module_expsym_cmds= | 
|  | 12144 | always_export_symbols=no | 
|  | 12145 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 12146 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 12147 | # included in the symbol list | 
|  | 12148 | include_expsyms= | 
|  | 12149 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 12150 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 12151 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 12152 | # as well as any symbol that contains `d'. | 
|  | 12153 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
|  | 12154 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 12155 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 12156 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 12157 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 12158 | # preloaded symbol tables. | 
|  | 12159 | extract_expsyms_cmds= | 
|  | 12160 |  | 
|  | 12161 | case $host_os in | 
|  | 12162 | cygwin* | mingw* | pw32*) | 
|  | 12163 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 12164 | # When not using gcc, we currently assume that we are using | 
|  | 12165 | # Microsoft Visual C++. | 
|  | 12166 | if test "$GCC" != yes; then | 
|  | 12167 | with_gnu_ld=no | 
|  | 12168 | fi | 
|  | 12169 | ;; | 
|  | 12170 | openbsd*) | 
|  | 12171 | with_gnu_ld=no | 
|  | 12172 | ;; | 
|  | 12173 | esac | 
|  | 12174 |  | 
|  | 12175 | ld_shlibs=yes | 
|  | 12176 | if test "$with_gnu_ld" = yes; then | 
|  | 12177 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 12178 | wlarc='${wl}' | 
|  | 12179 |  | 
|  | 12180 | # See if GNU ld supports shared libraries. | 
|  | 12181 | case $host_os in | 
|  | 12182 | aix3* | aix4* | aix5*) | 
|  | 12183 | # On AIX/PPC, the GNU linker is very broken | 
|  | 12184 | if test "$host_cpu" != ia64; then | 
|  | 12185 | ld_shlibs=no | 
|  | 12186 | cat <<EOF 1>&2 | 
|  | 12187 |  | 
|  | 12188 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 12189 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 12190 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 12191 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 12192 | *** so that a non-GNU linker is found, and then restart. | 
|  | 12193 |  | 
|  | 12194 | EOF | 
|  | 12195 | fi | 
|  | 12196 | ;; | 
|  | 12197 |  | 
|  | 12198 | amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12199 | 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] | 12200 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12201 | hardcode_minus_L=yes | 
|  | 12202 |  | 
|  | 12203 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 12204 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 12205 | # to version 4, is to share data among multiple programs linked | 
|  | 12206 | # with the same dynamic library.  Since this doesn't match the | 
|  | 12207 | # behavior of shared libraries on other platforms, we can't use | 
|  | 12208 | # them. | 
|  | 12209 | ld_shlibs=no | 
|  | 12210 | ;; | 
|  | 12211 |  | 
|  | 12212 | beos*) | 
|  | 12213 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 12214 | allow_undefined_flag=unsupported | 
|  | 12215 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 12216 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 12217 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12218 | else | 
|  | 12219 | ld_shlibs=no | 
|  | 12220 | fi | 
|  | 12221 | ;; | 
|  | 12222 |  | 
|  | 12223 | cygwin* | mingw* | pw32*) | 
|  | 12224 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
|  | 12225 | # as there is no search path for DLLs. | 
|  | 12226 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12227 | allow_undefined_flag=unsupported | 
|  | 12228 | always_export_symbols=no | 
|  | 12229 | enable_shared_with_static_runtimes=yes | 
|  | 12230 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 12231 |  | 
|  | 12232 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 12233 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 12234 | # If the export-symbols file already is a .def file (1st line | 
|  | 12235 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 12236 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 12237 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 12238 | else | 
|  | 12239 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 12240 | cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12241 | fi~ | 
|  | 12242 | $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] | 12243 | else | 
|  | 12244 | ld_shlibs=no | 
|  | 12245 | fi | 
|  | 12246 | ;; | 
|  | 12247 |  | 
|  | 12248 | netbsd*) | 
|  | 12249 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 12250 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 12251 | wlarc= | 
|  | 12252 | else | 
|  | 12253 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12254 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 12255 | fi | 
|  | 12256 | ;; | 
|  | 12257 |  | 
|  | 12258 | solaris* | sysv5*) | 
|  | 12259 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 12260 | ld_shlibs=no | 
|  | 12261 | cat <<EOF 1>&2 | 
|  | 12262 |  | 
|  | 12263 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 12264 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 12265 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 12266 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 12267 | *** your PATH or compiler configuration so that the native linker is | 
|  | 12268 | *** used, and then restart. | 
|  | 12269 |  | 
|  | 12270 | EOF | 
|  | 12271 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 12272 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12273 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 12274 | else | 
|  | 12275 | ld_shlibs=no | 
|  | 12276 | fi | 
|  | 12277 | ;; | 
|  | 12278 |  | 
|  | 12279 | sunos4*) | 
|  | 12280 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12281 | wlarc= | 
|  | 12282 | hardcode_direct=yes | 
|  | 12283 | hardcode_shlibpath_var=no | 
|  | 12284 | ;; | 
|  | 12285 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12286 | linux*) | 
|  | 12287 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 12288 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12289 | archive_cmds="$tmp_archive_cmds" | 
|  | 12290 | supports_anon_versioning=no | 
|  | 12291 | case `$LD -v 2>/dev/null` in | 
|  | 12292 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
|  | 12293 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
|  | 12294 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
|  | 12295 | *\ 2.11.*) ;; # other 2.11 versions | 
|  | 12296 | *) supports_anon_versioning=yes ;; | 
|  | 12297 | esac | 
|  | 12298 | if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12299 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 12300 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 12301 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12302 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 12303 | else | 
|  | 12304 | archive_expsym_cmds="$tmp_archive_cmds" | 
|  | 12305 | fi | 
|  | 12306 | else | 
|  | 12307 | ld_shlibs=no | 
|  | 12308 | fi | 
|  | 12309 | ;; | 
|  | 12310 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12311 | *) | 
|  | 12312 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 12313 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 12314 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 12315 | else | 
|  | 12316 | ld_shlibs=no | 
|  | 12317 | fi | 
|  | 12318 | ;; | 
|  | 12319 | esac | 
|  | 12320 |  | 
|  | 12321 | if test "$ld_shlibs" = yes; then | 
|  | 12322 | runpath_var=LD_RUN_PATH | 
|  | 12323 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
|  | 12324 | export_dynamic_flag_spec='${wl}--export-dynamic' | 
|  | 12325 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 12326 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 12327 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 12328 | else | 
|  | 12329 | whole_archive_flag_spec= | 
|  | 12330 | fi | 
|  | 12331 | fi | 
|  | 12332 | else | 
|  | 12333 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 12334 | case $host_os in | 
|  | 12335 | aix3*) | 
|  | 12336 | allow_undefined_flag=unsupported | 
|  | 12337 | always_export_symbols=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12338 | 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] | 12339 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 12340 | # are no directories specified by -L. | 
|  | 12341 | hardcode_minus_L=yes | 
|  | 12342 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 12343 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 12344 | # broken collect2. | 
|  | 12345 | hardcode_direct=unsupported | 
|  | 12346 | fi | 
|  | 12347 | ;; | 
|  | 12348 |  | 
|  | 12349 | aix4* | aix5*) | 
|  | 12350 | if test "$host_cpu" = ia64; then | 
|  | 12351 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 12352 | # have to do anything special. | 
|  | 12353 | aix_use_runtimelinking=no | 
|  | 12354 | exp_sym_flag='-Bexport' | 
|  | 12355 | no_entry_flag="" | 
|  | 12356 | else | 
|  | 12357 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 12358 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 12359 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 12360 | 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' | 
|  | 12361 | else | 
|  | 12362 | 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' | 
|  | 12363 | fi | 
|  | 12364 | aix_use_runtimelinking=no | 
|  | 12365 |  | 
|  | 12366 | # Test if we are trying to use run time linking or normal | 
|  | 12367 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 12368 | # need to do runtime linking. | 
|  | 12369 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 12370 | for ld_flag in $LDFLAGS; do | 
|  | 12371 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 12372 | aix_use_runtimelinking=yes | 
|  | 12373 | break | 
|  | 12374 | fi | 
|  | 12375 | done | 
|  | 12376 | esac | 
|  | 12377 |  | 
|  | 12378 | exp_sym_flag='-bexport' | 
|  | 12379 | no_entry_flag='-bnoentry' | 
|  | 12380 | fi | 
|  | 12381 |  | 
|  | 12382 | # When large executables or shared objects are built, AIX ld can | 
|  | 12383 | # have problems creating the table of contents.  If linking a library | 
|  | 12384 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 12385 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 12386 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 12387 |  | 
|  | 12388 | archive_cmds='' | 
|  | 12389 | hardcode_direct=yes | 
|  | 12390 | hardcode_libdir_separator=':' | 
|  | 12391 | link_all_deplibs=yes | 
|  | 12392 |  | 
|  | 12393 | if test "$GCC" = yes; then | 
|  | 12394 | case $host_os in aix4.012|aix4.012.*) | 
|  | 12395 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 12396 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 12397 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 12398 | if test -f "$collect2name" && \ | 
|  | 12399 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 12400 | then | 
|  | 12401 | # We have reworked collect2 | 
|  | 12402 | hardcode_direct=yes | 
|  | 12403 | else | 
|  | 12404 | # We have old collect2 | 
|  | 12405 | hardcode_direct=unsupported | 
|  | 12406 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 12407 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 12408 | # to unsupported forces relinking | 
|  | 12409 | hardcode_minus_L=yes | 
|  | 12410 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12411 | hardcode_libdir_separator= | 
|  | 12412 | fi | 
|  | 12413 | esac | 
|  | 12414 | shared_flag='-shared' | 
|  | 12415 | else | 
|  | 12416 | # not using gcc | 
|  | 12417 | if test "$host_cpu" = ia64; then | 
|  | 12418 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 12419 | # chokes on -Wl,-G. The following line is correct: | 
|  | 12420 | shared_flag='-G' | 
|  | 12421 | else | 
|  | 12422 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 12423 | shared_flag='${wl}-G' | 
|  | 12424 | else | 
|  | 12425 | shared_flag='${wl}-bM:SRE' | 
|  | 12426 | fi | 
|  | 12427 | fi | 
|  | 12428 | fi | 
|  | 12429 |  | 
|  | 12430 | # It seems that -bexpall does not export symbols beginning with | 
|  | 12431 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 12432 | always_export_symbols=yes | 
|  | 12433 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 12434 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 12435 | # -berok will link without error, but may produce a broken library. | 
|  | 12436 | allow_undefined_flag='-berok' | 
|  | 12437 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 12438 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12439 | /* confdefs.h.  */ | 
|  | 12440 | _ACEOF | 
|  | 12441 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12442 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12443 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12444 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12445 | int | 
|  | 12446 | main () | 
|  | 12447 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12448 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12449 | ; | 
|  | 12450 | return 0; | 
|  | 12451 | } | 
|  | 12452 | _ACEOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12453 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12455 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12456 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12457 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12458 | rm -f conftest.er1 | 
|  | 12459 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12461 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12462 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 12463 | || test ! -s conftest.err' | 
|  | 12464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12465 | (eval $ac_try) 2>&5 | 
|  | 12466 | ac_status=$? | 
|  | 12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12468 | (exit $ac_status); }; } && | 
|  | 12469 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12471 | (eval $ac_try) 2>&5 | 
|  | 12472 | ac_status=$? | 
|  | 12473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12474 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12475 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12476 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 12477 | }'` | 
|  | 12478 | # Check for a 64-bit object if we didn't find anything. | 
|  | 12479 | 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; } | 
|  | 12480 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12481 | else | 
|  | 12482 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12483 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12484 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12485 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12486 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 12487 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12488 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12489 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12490 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 12491 | 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" | 
|  | 12492 | else | 
|  | 12493 | if test "$host_cpu" = ia64; then | 
|  | 12494 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 12495 | allow_undefined_flag="-z nodefs" | 
|  | 12496 | 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" | 
|  | 12497 | else | 
|  | 12498 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 12499 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12500 | /* confdefs.h.  */ | 
|  | 12501 | _ACEOF | 
|  | 12502 | cat confdefs.h >>conftest.$ac_ext | 
|  | 12503 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 12504 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12505 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12506 | int | 
|  | 12507 | main () | 
|  | 12508 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12509 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12510 | ; | 
|  | 12511 | return 0; | 
|  | 12512 | } | 
|  | 12513 | _ACEOF | 
|  | 12514 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 12515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12516 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12517 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12518 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 12519 | rm -f conftest.er1 | 
|  | 12520 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12522 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12523 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 12524 | || test ! -s conftest.err' | 
|  | 12525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12526 | (eval $ac_try) 2>&5 | 
|  | 12527 | ac_status=$? | 
|  | 12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12529 | (exit $ac_status); }; } && | 
|  | 12530 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 12532 | (eval $ac_try) 2>&5 | 
|  | 12533 | ac_status=$? | 
|  | 12534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 12535 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12536 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12537 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 12538 | }'` | 
|  | 12539 | # Check for a 64-bit object if we didn't find anything. | 
|  | 12540 | 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; } | 
|  | 12541 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12542 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12543 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12544 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 12545 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12546 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12547 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 12548 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12549 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12550 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12551 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 12552 | # Warning - without using the other run time loading flags, | 
|  | 12553 | # -berok will link without error, but may produce a broken library. | 
|  | 12554 | no_undefined_flag=' ${wl}-bernotok' | 
|  | 12555 | allow_undefined_flag=' ${wl}-berok' | 
|  | 12556 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 12557 | always_export_symbols=yes | 
|  | 12558 | # Exported symbols can be pulled into shared objects from archives | 
|  | 12559 | whole_archive_flag_spec=' ' | 
|  | 12560 | archive_cmds_need_lc=yes | 
|  | 12561 | # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12562 | 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] | 12563 | fi | 
|  | 12564 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12565 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12566 |  | 
|  | 12567 | amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12568 | 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] | 12569 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12570 | hardcode_minus_L=yes | 
|  | 12571 | # see comment about different semantics on the GNU ld section | 
|  | 12572 | ld_shlibs=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12573 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12574 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12575 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12576 | export_dynamic_flag_spec=-rdynamic | 
|  | 12577 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12578 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12579 | cygwin* | mingw* | pw32*) | 
|  | 12580 | # When not using gcc, we currently assume that we are using | 
|  | 12581 | # Microsoft Visual C++. | 
|  | 12582 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 12583 | # no search path for DLLs. | 
|  | 12584 | hardcode_libdir_flag_spec=' ' | 
|  | 12585 | allow_undefined_flag=unsupported | 
|  | 12586 | # Tell ltmain to make .lib files, not .a files. | 
|  | 12587 | libext=lib | 
|  | 12588 | # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12589 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12590 | # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12591 | 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] | 12592 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 12593 | old_archive_From_new_cmds='true' | 
|  | 12594 | # FIXME: Should let the user specify the lib program. | 
|  | 12595 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 12596 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 12597 | enable_shared_with_static_runtimes=yes | 
|  | 12598 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12599 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12600 | darwin* | rhapsody*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12601 | case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12602 | rhapsody* | darwin1.[012]) | 
|  | 12603 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | 
|  | 12604 | ;; | 
|  | 12605 | *) # Darwin 1.3 on | 
|  | 12606 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
|  | 12607 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 12608 | else | 
|  | 12609 | case ${MACOSX_DEPLOYMENT_TARGET} in | 
|  | 12610 | 10.[012]) | 
|  | 12611 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 12612 | ;; | 
|  | 12613 | 10.*) | 
|  | 12614 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | 
|  | 12615 | ;; | 
|  | 12616 | esac | 
|  | 12617 | fi | 
|  | 12618 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12619 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12620 | archive_cmds_need_lc=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12621 | hardcode_direct=no | 
|  | 12622 | hardcode_automatic=yes | 
|  | 12623 | hardcode_shlibpath_var=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12624 | whole_archive_flag_spec='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12625 | link_all_deplibs=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12626 | if test "$GCC" = yes ; then | 
|  | 12627 | output_verbose_link_cmd='echo' | 
|  | 12628 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 12629 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 12630 | # 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] | 12631 | 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}' | 
|  | 12632 | 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] | 12633 | else | 
|  | 12634 | case "$cc_basename" in | 
|  | 12635 | xlc*) | 
|  | 12636 | output_verbose_link_cmd='echo' | 
|  | 12637 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
|  | 12638 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 12639 | # 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] | 12640 | 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}' | 
|  | 12641 | 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] | 12642 | ;; | 
|  | 12643 | *) | 
|  | 12644 | ld_shlibs=no | 
|  | 12645 | ;; | 
|  | 12646 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12647 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12648 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12649 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12650 | dgux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12651 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12652 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12653 | hardcode_shlibpath_var=no | 
|  | 12654 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12655 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12656 | freebsd1*) | 
|  | 12657 | ld_shlibs=no | 
|  | 12658 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12659 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12660 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 12661 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 12662 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 12663 | # extra space). | 
|  | 12664 | freebsd2.2*) | 
|  | 12665 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 12666 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 12667 | hardcode_direct=yes | 
|  | 12668 | hardcode_shlibpath_var=no | 
|  | 12669 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12670 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12671 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 12672 | freebsd2*) | 
|  | 12673 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12674 | hardcode_direct=yes | 
|  | 12675 | hardcode_minus_L=yes | 
|  | 12676 | hardcode_shlibpath_var=no | 
|  | 12677 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12678 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12679 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12680 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12681 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 12682 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 12683 | hardcode_direct=yes | 
|  | 12684 | hardcode_shlibpath_var=no | 
|  | 12685 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12686 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12687 | hpux9*) | 
|  | 12688 | if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12689 | 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] | 12690 | else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12691 | 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] | 12692 | fi | 
|  | 12693 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 12694 | hardcode_libdir_separator=: | 
|  | 12695 | hardcode_direct=yes | 
|  | 12696 |  | 
|  | 12697 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 12698 | # but as the default location of the library. | 
|  | 12699 | hardcode_minus_L=yes | 
|  | 12700 | export_dynamic_flag_spec='${wl}-E' | 
|  | 12701 | ;; | 
|  | 12702 |  | 
|  | 12703 | hpux10* | hpux11*) | 
|  | 12704 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 12705 | case "$host_cpu" in | 
|  | 12706 | hppa*64*|ia64*) | 
|  | 12707 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 12708 | ;; | 
|  | 12709 | *) | 
|  | 12710 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 12711 | ;; | 
|  | 12712 | esac | 
|  | 12713 | else | 
|  | 12714 | case "$host_cpu" in | 
|  | 12715 | hppa*64*|ia64*) | 
|  | 12716 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12717 | ;; | 
|  | 12718 | *) | 
|  | 12719 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12720 | ;; | 
|  | 12721 | esac | 
|  | 12722 | fi | 
|  | 12723 | if test "$with_gnu_ld" = no; then | 
|  | 12724 | case "$host_cpu" in | 
|  | 12725 | hppa*64*) | 
|  | 12726 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 12727 | hardcode_libdir_flag_spec_ld='+b $libdir' | 
|  | 12728 | hardcode_libdir_separator=: | 
|  | 12729 | hardcode_direct=no | 
|  | 12730 | hardcode_shlibpath_var=no | 
|  | 12731 | ;; | 
|  | 12732 | ia64*) | 
|  | 12733 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12734 | hardcode_direct=no | 
|  | 12735 | hardcode_shlibpath_var=no | 
|  | 12736 |  | 
|  | 12737 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 12738 | # but as the default location of the library. | 
|  | 12739 | hardcode_minus_L=yes | 
|  | 12740 | ;; | 
|  | 12741 | *) | 
|  | 12742 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 12743 | hardcode_libdir_separator=: | 
|  | 12744 | hardcode_direct=yes | 
|  | 12745 | export_dynamic_flag_spec='${wl}-E' | 
|  | 12746 |  | 
|  | 12747 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 12748 | # but as the default location of the library. | 
|  | 12749 | hardcode_minus_L=yes | 
|  | 12750 | ;; | 
|  | 12751 | esac | 
|  | 12752 | fi | 
|  | 12753 | ;; | 
|  | 12754 |  | 
|  | 12755 | irix5* | irix6* | nonstopux*) | 
|  | 12756 | if test "$GCC" = yes; then | 
|  | 12757 | 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' | 
|  | 12758 | else | 
|  | 12759 | 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' | 
|  | 12760 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
|  | 12761 | fi | 
|  | 12762 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 12763 | hardcode_libdir_separator=: | 
|  | 12764 | link_all_deplibs=yes | 
|  | 12765 | ;; | 
|  | 12766 |  | 
|  | 12767 | netbsd*) | 
|  | 12768 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 12769 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 12770 | else | 
|  | 12771 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 12772 | fi | 
|  | 12773 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 12774 | hardcode_direct=yes | 
|  | 12775 | hardcode_shlibpath_var=no | 
|  | 12776 | ;; | 
|  | 12777 |  | 
|  | 12778 | newsos6) | 
|  | 12779 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12780 | hardcode_direct=yes | 
|  | 12781 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 12782 | hardcode_libdir_separator=: | 
|  | 12783 | hardcode_shlibpath_var=no | 
|  | 12784 | ;; | 
|  | 12785 |  | 
|  | 12786 | openbsd*) | 
|  | 12787 | hardcode_direct=yes | 
|  | 12788 | hardcode_shlibpath_var=no | 
|  | 12789 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 12790 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12791 | 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] | 12792 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 12793 | export_dynamic_flag_spec='${wl}-E' | 
|  | 12794 | else | 
|  | 12795 | case $host_os in | 
|  | 12796 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 12797 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12798 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 12799 | ;; | 
|  | 12800 | *) | 
|  | 12801 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 12802 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 12803 | ;; | 
|  | 12804 | esac | 
|  | 12805 | fi | 
|  | 12806 | ;; | 
|  | 12807 |  | 
|  | 12808 | os2*) | 
|  | 12809 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12810 | hardcode_minus_L=yes | 
|  | 12811 | allow_undefined_flag=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12812 | 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] | 12813 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 12814 | ;; | 
|  | 12815 |  | 
|  | 12816 | osf3*) | 
|  | 12817 | if test "$GCC" = yes; then | 
|  | 12818 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 12819 | 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' | 
|  | 12820 | else | 
|  | 12821 | allow_undefined_flag=' -expect_unresolved \*' | 
|  | 12822 | 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' | 
|  | 12823 | fi | 
|  | 12824 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 12825 | hardcode_libdir_separator=: | 
|  | 12826 | ;; | 
|  | 12827 |  | 
|  | 12828 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 12829 | if test "$GCC" = yes; then | 
|  | 12830 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 12831 | 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' | 
|  | 12832 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 12833 | else | 
|  | 12834 | allow_undefined_flag=' -expect_unresolved \*' | 
|  | 12835 | 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] | 12836 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
|  | 12837 | $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' | 
|  | 12838 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12839 | # Both c and cxx compiler support -rpath directly | 
|  | 12840 | hardcode_libdir_flag_spec='-rpath $libdir' | 
|  | 12841 | fi | 
|  | 12842 | hardcode_libdir_separator=: | 
|  | 12843 | ;; | 
|  | 12844 |  | 
|  | 12845 | sco3.2v5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12846 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12847 | hardcode_shlibpath_var=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12848 | export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12849 | runpath_var=LD_RUN_PATH | 
|  | 12850 | hardcode_runpath_var=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12851 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12852 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12853 | solaris*) | 
|  | 12854 | no_undefined_flag=' -z text' | 
|  | 12855 | if test "$GCC" = yes; then | 
|  | 12856 | 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] | 12857 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 12858 | $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] | 12859 | else | 
|  | 12860 | 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] | 12861 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 12862 | $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] | 12863 | fi | 
|  | 12864 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 12865 | hardcode_shlibpath_var=no | 
|  | 12866 | case $host_os in | 
|  | 12867 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 12868 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 12869 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
|  | 12870 | esac | 
|  | 12871 | link_all_deplibs=yes | 
|  | 12872 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12873 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12874 | sunos4*) | 
|  | 12875 | if test "x$host_vendor" = xsequent; then | 
|  | 12876 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 12877 | # files that make .init and .fini sections work. | 
|  | 12878 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 12879 | else | 
|  | 12880 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12881 | fi | 
|  | 12882 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12883 | hardcode_direct=yes | 
|  | 12884 | hardcode_minus_L=yes | 
|  | 12885 | hardcode_shlibpath_var=no | 
|  | 12886 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12887 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12888 | sysv4) | 
|  | 12889 | case $host_vendor in | 
|  | 12890 | sni) | 
|  | 12891 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12892 | hardcode_direct=yes # is this really true??? | 
|  | 12893 | ;; | 
|  | 12894 | siemens) | 
|  | 12895 | ## LD is ld it makes a PLAMLIB | 
|  | 12896 | ## CC just makes a GrossModule. | 
|  | 12897 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12898 | reload_cmds='$CC -r -o $output$reload_objs' | 
|  | 12899 | hardcode_direct=no | 
|  | 12900 | ;; | 
|  | 12901 | motorola) | 
|  | 12902 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12903 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
|  | 12904 | ;; | 
|  | 12905 | esac | 
|  | 12906 | runpath_var='LD_RUN_PATH' | 
|  | 12907 | hardcode_shlibpath_var=no | 
|  | 12908 | ;; | 
|  | 12909 |  | 
|  | 12910 | sysv4.3*) | 
|  | 12911 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12912 | hardcode_shlibpath_var=no | 
|  | 12913 | export_dynamic_flag_spec='-Bexport' | 
|  | 12914 | ;; | 
|  | 12915 |  | 
|  | 12916 | sysv4*MP*) | 
|  | 12917 | if test -d /usr/nec; then | 
|  | 12918 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12919 | hardcode_shlibpath_var=no | 
|  | 12920 | runpath_var=LD_RUN_PATH | 
|  | 12921 | hardcode_runpath_var=yes | 
|  | 12922 | ld_shlibs=yes | 
|  | 12923 | fi | 
|  | 12924 | ;; | 
|  | 12925 |  | 
|  | 12926 | sysv4.2uw2*) | 
|  | 12927 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12928 | hardcode_direct=yes | 
|  | 12929 | hardcode_minus_L=no | 
|  | 12930 | hardcode_shlibpath_var=no | 
|  | 12931 | hardcode_runpath_var=yes | 
|  | 12932 | runpath_var=LD_RUN_PATH | 
|  | 12933 | ;; | 
|  | 12934 |  | 
|  | 12935 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 12936 | no_undefined_flag='${wl}-z ${wl}text' | 
|  | 12937 | if test "$GCC" = yes; then | 
|  | 12938 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 12939 | else | 
|  | 12940 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 12941 | fi | 
|  | 12942 | runpath_var='LD_RUN_PATH' | 
|  | 12943 | hardcode_shlibpath_var=no | 
|  | 12944 | ;; | 
|  | 12945 |  | 
|  | 12946 | sysv5*) | 
|  | 12947 | no_undefined_flag=' -z text' | 
|  | 12948 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 12949 | # object files and a static libstdc++, better avoid it by now | 
|  | 12950 | 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] | 12951 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 12952 | $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] | 12953 | hardcode_libdir_flag_spec= | 
|  | 12954 | hardcode_shlibpath_var=no | 
|  | 12955 | runpath_var='LD_RUN_PATH' | 
|  | 12956 | ;; | 
|  | 12957 |  | 
|  | 12958 | uts4*) | 
|  | 12959 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 12960 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 12961 | hardcode_shlibpath_var=no | 
|  | 12962 | ;; | 
|  | 12963 |  | 
|  | 12964 | *) | 
|  | 12965 | ld_shlibs=no | 
|  | 12966 | ;; | 
|  | 12967 | esac | 
|  | 12968 | fi | 
|  | 12969 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12970 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
|  | 12971 | echo "${ECHO_T}$ld_shlibs" >&6 | 
|  | 12972 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12973 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12974 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 12975 | if test "$GCC" = yes; then | 
|  | 12976 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 12977 | fi | 
|  | 12978 |  | 
|  | 12979 | # | 
|  | 12980 | # Do we need to explicitly link libc? | 
|  | 12981 | # | 
|  | 12982 | case "x$archive_cmds_need_lc" in | 
|  | 12983 | x|xyes) | 
|  | 12984 | # Assume -lc should be added | 
|  | 12985 | archive_cmds_need_lc=yes | 
|  | 12986 |  | 
|  | 12987 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 12988 | case $archive_cmds in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12989 | *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12990 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 12991 | ;; | 
|  | 12992 | '$CC '*) | 
|  | 12993 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 12994 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 12995 | # to ld, don't add -lc before -lgcc. | 
|  | 12996 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 12997 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 12998 | $rm conftest* | 
|  | 12999 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 13000 |  | 
|  | 13001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 13002 | (eval $ac_compile) 2>&5 | 
|  | 13003 | ac_status=$? | 
|  | 13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13005 | (exit $ac_status); } 2>conftest.err; then | 
|  | 13006 | soname=conftest | 
|  | 13007 | lib=conftest | 
|  | 13008 | libobjs=conftest.$ac_objext | 
|  | 13009 | deplibs= | 
|  | 13010 | wl=$lt_prog_compiler_wl | 
|  | 13011 | compiler_flags=-v | 
|  | 13012 | linker_flags=-v | 
|  | 13013 | verstring= | 
|  | 13014 | output_objdir=. | 
|  | 13015 | libname=conftest | 
|  | 13016 | lt_save_allow_undefined_flag=$allow_undefined_flag | 
|  | 13017 | allow_undefined_flag= | 
|  | 13018 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 13019 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 13020 | ac_status=$? | 
|  | 13021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13022 | (exit $ac_status); } | 
|  | 13023 | then | 
|  | 13024 | archive_cmds_need_lc=no | 
|  | 13025 | else | 
|  | 13026 | archive_cmds_need_lc=yes | 
|  | 13027 | fi | 
|  | 13028 | allow_undefined_flag=$lt_save_allow_undefined_flag | 
|  | 13029 | else | 
|  | 13030 | cat conftest.err 1>&5 | 
|  | 13031 | fi | 
|  | 13032 | $rm conftest* | 
|  | 13033 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
|  | 13034 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 
|  | 13035 | ;; | 
|  | 13036 | esac | 
|  | 13037 | fi | 
|  | 13038 | ;; | 
|  | 13039 | esac | 
|  | 13040 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13041 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 13042 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 13043 | library_names_spec= | 
|  | 13044 | libname_spec='lib$name' | 
|  | 13045 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13046 | shrext_cmds=".so" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13047 | postinstall_cmds= | 
|  | 13048 | postuninstall_cmds= | 
|  | 13049 | finish_cmds= | 
|  | 13050 | finish_eval= | 
|  | 13051 | shlibpath_var= | 
|  | 13052 | shlibpath_overrides_runpath=unknown | 
|  | 13053 | version_type=none | 
|  | 13054 | dynamic_linker="$host_os ld.so" | 
|  | 13055 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13056 | if test "$GCC" = yes; then | 
|  | 13057 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 13058 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 13059 | # if the path contains ";" then we assume it to be the separator | 
|  | 13060 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 13061 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 13062 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 13063 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 13064 | else | 
|  | 13065 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 13066 | fi | 
|  | 13067 | else | 
|  | 13068 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 13069 | fi | 
|  | 13070 | need_lib_prefix=unknown | 
|  | 13071 | hardcode_into_libs=no | 
|  | 13072 |  | 
|  | 13073 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 13074 | # flags to be left without arguments | 
|  | 13075 | need_version=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13076 |  | 
|  | 13077 | case $host_os in | 
|  | 13078 | aix3*) | 
|  | 13079 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13080 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13081 | shlibpath_var=LIBPATH | 
|  | 13082 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13083 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 13084 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13085 | ;; | 
|  | 13086 |  | 
|  | 13087 | aix4* | aix5*) | 
|  | 13088 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13089 | need_lib_prefix=no | 
|  | 13090 | need_version=no | 
|  | 13091 | hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13092 | if test "$host_cpu" = ia64; then | 
|  | 13093 | # AIX 5 supports IA64 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13094 | 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] | 13095 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13096 | else | 
|  | 13097 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 13098 | # for dependence libraries.  The import file would start with | 
|  | 13099 | # the line `#! .'.  This would cause the generated library to | 
|  | 13100 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 13101 | # development snapshots of GCC prior to 3.0. | 
|  | 13102 | case $host_os in | 
|  | 13103 | aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13104 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 13105 | echo ' yes ' | 
|  | 13106 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 13107 | : | 
|  | 13108 | else | 
|  | 13109 | can_build_shared=no | 
|  | 13110 | fi | 
|  | 13111 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13112 | esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13113 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 13114 | # soname into executable. Probably we can add versioning support to | 
|  | 13115 | # collect2, so additional links can be useful in future. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13116 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 13117 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 13118 | # instead of lib<name>.a to let people know that these are not | 
|  | 13119 | # typical AIX shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13120 | 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] | 13121 | else | 
|  | 13122 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 13123 | # and later when we are not doing run time linking. | 
|  | 13124 | library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13125 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13126 | fi | 
|  | 13127 | shlibpath_var=LIBPATH | 
|  | 13128 | fi | 
|  | 13129 | ;; | 
|  | 13130 |  | 
|  | 13131 | amigaos*) | 
|  | 13132 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 13133 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13134 | 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] | 13135 | ;; | 
|  | 13136 |  | 
|  | 13137 | beos*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13138 | library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13139 | dynamic_linker="$host_os ld.so" | 
|  | 13140 | shlibpath_var=LIBRARY_PATH | 
|  | 13141 | ;; | 
|  | 13142 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13143 | bsdi[45]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13144 | version_type=linux | 
|  | 13145 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13147 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13148 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 13149 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13150 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 13151 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13152 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 13153 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 13154 | # libtool to hard-code these into programs | 
|  | 13155 | ;; | 
|  | 13156 |  | 
|  | 13157 | cygwin* | mingw* | pw32*) | 
|  | 13158 | version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13159 | shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13160 | need_version=no | 
|  | 13161 | need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13162 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13163 | case $GCC,$host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13164 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13165 | library_names_spec='$libname.dll.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13166 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13167 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 13168 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 13169 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 13170 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13171 | $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13172 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 13173 | dlpath=$dir/\$dldll~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13174 | $rm \$dlpath' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13175 | shlibpath_overrides_runpath=yes | 
|  | 13176 |  | 
|  | 13177 | case $host_os in | 
|  | 13178 | cygwin*) | 
|  | 13179 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 13180 | 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] | 13181 | 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] | 13182 | ;; | 
|  | 13183 | mingw*) | 
|  | 13184 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 13185 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 13186 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 13187 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 13188 | # It is most probably a Windows format PATH printed by | 
|  | 13189 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 13190 | # path with ; separators, and with drive letters. We can handle the | 
|  | 13191 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 13192 | # especially as we might pass files found there to a mingw objdump, | 
|  | 13193 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 13194 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 13195 | else | 
|  | 13196 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 13197 | fi | 
|  | 13198 | ;; | 
|  | 13199 | pw32*) | 
|  | 13200 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 13201 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 13202 | ;; | 
|  | 13203 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13204 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13205 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13206 | *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13207 | 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] | 13208 | ;; | 
|  | 13209 | esac | 
|  | 13210 | dynamic_linker='Win32 ld.exe' | 
|  | 13211 | # FIXME: first we should search . and the directory the executable is in | 
|  | 13212 | shlibpath_var=PATH | 
|  | 13213 | ;; | 
|  | 13214 |  | 
|  | 13215 | darwin* | rhapsody*) | 
|  | 13216 | dynamic_linker="$host_os dyld" | 
|  | 13217 | version_type=darwin | 
|  | 13218 | need_lib_prefix=no | 
|  | 13219 | need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13220 | 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] | 13221 | soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13222 | shlibpath_overrides_runpath=yes | 
|  | 13223 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13224 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13225 | # 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] | 13226 | if test "$GCC" = yes; then | 
|  | 13227 | 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"` | 
|  | 13228 | else | 
|  | 13229 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13230 | fi | 
|  | 13231 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 13232 | ;; | 
|  | 13233 |  | 
|  | 13234 | dgux*) | 
|  | 13235 | version_type=linux | 
|  | 13236 | need_lib_prefix=no | 
|  | 13237 | need_version=no | 
|  | 13238 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 13239 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13240 | shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13241 | ;; | 
|  | 13242 |  | 
|  | 13243 | freebsd1*) | 
|  | 13244 | dynamic_linker=no | 
|  | 13245 | ;; | 
|  | 13246 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13247 | kfreebsd*-gnu) | 
|  | 13248 | version_type=linux | 
|  | 13249 | need_lib_prefix=no | 
|  | 13250 | need_version=no | 
|  | 13251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 13252 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13253 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13254 | shlibpath_overrides_runpath=no | 
|  | 13255 | hardcode_into_libs=yes | 
|  | 13256 | dynamic_linker='GNU ld.so' | 
|  | 13257 | ;; | 
|  | 13258 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13259 | freebsd*) | 
|  | 13260 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 13261 | version_type=freebsd-$objformat | 
|  | 13262 | case $version_type in | 
|  | 13263 | freebsd-elf*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13264 | 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] | 13265 | need_version=no | 
|  | 13266 | need_lib_prefix=no | 
|  | 13267 | ;; | 
|  | 13268 | freebsd-*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13269 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13270 | need_version=yes | 
|  | 13271 | ;; | 
|  | 13272 | esac | 
|  | 13273 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13274 | case $host_os in | 
|  | 13275 | freebsd2*) | 
|  | 13276 | shlibpath_overrides_runpath=yes | 
|  | 13277 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13278 | freebsd3.01* | freebsdelf3.01*) | 
|  | 13279 | shlibpath_overrides_runpath=yes | 
|  | 13280 | hardcode_into_libs=yes | 
|  | 13281 | ;; | 
|  | 13282 | *) # from 3.2 on | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13283 | shlibpath_overrides_runpath=no | 
|  | 13284 | hardcode_into_libs=yes | 
|  | 13285 | ;; | 
|  | 13286 | esac | 
|  | 13287 | ;; | 
|  | 13288 |  | 
|  | 13289 | gnu*) | 
|  | 13290 | version_type=linux | 
|  | 13291 | need_lib_prefix=no | 
|  | 13292 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 13294 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13295 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13296 | hardcode_into_libs=yes | 
|  | 13297 | ;; | 
|  | 13298 |  | 
|  | 13299 | hpux9* | hpux10* | hpux11*) | 
|  | 13300 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 13301 | # link against other versions. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13302 | version_type=sunos | 
|  | 13303 | need_lib_prefix=no | 
|  | 13304 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13305 | case "$host_cpu" in | 
|  | 13306 | ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13307 | shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13308 | hardcode_into_libs=yes | 
|  | 13309 | dynamic_linker="$host_os dld.so" | 
|  | 13310 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13311 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 13312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13313 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13314 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 13315 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 13316 | else | 
|  | 13317 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 13318 | fi | 
|  | 13319 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 13320 | ;; | 
|  | 13321 | hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13322 | shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13323 | hardcode_into_libs=yes | 
|  | 13324 | dynamic_linker="$host_os dld.sl" | 
|  | 13325 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 13326 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 13327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13328 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13329 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 13330 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 13331 | ;; | 
|  | 13332 | *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13333 | shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13334 | dynamic_linker="$host_os dld.sl" | 
|  | 13335 | shlibpath_var=SHLIB_PATH | 
|  | 13336 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 13337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13338 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13339 | ;; | 
|  | 13340 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13341 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 13342 | postinstall_cmds='chmod 555 $lib' | 
|  | 13343 | ;; | 
|  | 13344 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13345 | irix5* | irix6* | nonstopux*) | 
|  | 13346 | case $host_os in | 
|  | 13347 | nonstopux*) version_type=nonstopux ;; | 
|  | 13348 | *) | 
|  | 13349 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 13350 | version_type=linux | 
|  | 13351 | else | 
|  | 13352 | version_type=irix | 
|  | 13353 | fi ;; | 
|  | 13354 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13355 | need_lib_prefix=no | 
|  | 13356 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13357 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13358 | 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] | 13359 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13360 | irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13361 | libsuff= shlibsuff= | 
|  | 13362 | ;; | 
|  | 13363 | *) | 
|  | 13364 | 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] | 13365 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 13366 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 13367 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 13368 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 13369 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 13370 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13371 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 13372 | esac | 
|  | 13373 | ;; | 
|  | 13374 | esac | 
|  | 13375 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 13376 | shlibpath_overrides_runpath=no | 
|  | 13377 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 13378 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13379 | hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13380 | ;; | 
|  | 13381 |  | 
|  | 13382 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13383 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13384 | dynamic_linker=no | 
|  | 13385 | ;; | 
|  | 13386 |  | 
|  | 13387 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13388 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13389 | version_type=linux | 
|  | 13390 | need_lib_prefix=no | 
|  | 13391 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13393 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13394 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 13395 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13396 | shlibpath_overrides_runpath=no | 
|  | 13397 | # This implies no fast_install, which is unacceptable. | 
|  | 13398 | # Some rework will be needed to allow for fast_install | 
|  | 13399 | # before this can be enabled. | 
|  | 13400 | hardcode_into_libs=yes | 
|  | 13401 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13402 | # Append ld.so.conf contents to the search path | 
|  | 13403 | if test -f /etc/ld.so.conf; then | 
|  | 13404 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 13405 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 13406 | fi | 
|  | 13407 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13408 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 13409 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 13410 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 13411 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 13412 | # people can always --disable-shared, the test was removed, and we | 
|  | 13413 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 13414 | dynamic_linker='GNU/Linux ld.so' | 
|  | 13415 | ;; | 
|  | 13416 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13417 | knetbsd*-gnu) | 
|  | 13418 | version_type=linux | 
|  | 13419 | need_lib_prefix=no | 
|  | 13420 | need_version=no | 
|  | 13421 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 13422 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13423 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13424 | shlibpath_overrides_runpath=no | 
|  | 13425 | hardcode_into_libs=yes | 
|  | 13426 | dynamic_linker='GNU ld.so' | 
|  | 13427 | ;; | 
|  | 13428 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13429 | netbsd*) | 
|  | 13430 | version_type=sunos | 
|  | 13431 | need_lib_prefix=no | 
|  | 13432 | need_version=no | 
|  | 13433 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13435 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 13436 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 13437 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13438 | 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] | 13439 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13440 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 13441 | fi | 
|  | 13442 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13443 | shlibpath_overrides_runpath=yes | 
|  | 13444 | hardcode_into_libs=yes | 
|  | 13445 | ;; | 
|  | 13446 |  | 
|  | 13447 | newsos6) | 
|  | 13448 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13450 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13451 | shlibpath_overrides_runpath=yes | 
|  | 13452 | ;; | 
|  | 13453 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13454 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13455 | version_type=linux | 
|  | 13456 | need_lib_prefix=no | 
|  | 13457 | need_version=no | 
|  | 13458 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13459 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13460 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13461 | shlibpath_overrides_runpath=yes | 
|  | 13462 | ;; | 
|  | 13463 |  | 
|  | 13464 | openbsd*) | 
|  | 13465 | version_type=sunos | 
|  | 13466 | need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 13467 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13468 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 13469 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 13470 | shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13471 | 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] | 13472 | case $host_os in | 
|  | 13473 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 13474 | shlibpath_overrides_runpath=no | 
|  | 13475 | ;; | 
|  | 13476 | *) | 
|  | 13477 | shlibpath_overrides_runpath=yes | 
|  | 13478 | ;; | 
|  | 13479 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13480 | else | 
|  | 13481 | shlibpath_overrides_runpath=yes | 
|  | 13482 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13483 | ;; | 
|  | 13484 |  | 
|  | 13485 | os2*) | 
|  | 13486 | libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13487 | shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13488 | need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13489 | library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13490 | dynamic_linker='OS/2 ld.exe' | 
|  | 13491 | shlibpath_var=LIBPATH | 
|  | 13492 | ;; | 
|  | 13493 |  | 
|  | 13494 | osf3* | osf4* | osf5*) | 
|  | 13495 | version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13496 | need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13497 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13498 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13499 | 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] | 13500 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13501 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 13502 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 13503 | ;; | 
|  | 13504 |  | 
|  | 13505 | sco3.2v5*) | 
|  | 13506 | version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13507 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 13508 | 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] | 13509 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13510 | ;; | 
|  | 13511 |  | 
|  | 13512 | solaris*) | 
|  | 13513 | version_type=linux | 
|  | 13514 | need_lib_prefix=no | 
|  | 13515 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13517 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13518 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13519 | shlibpath_overrides_runpath=yes | 
|  | 13520 | hardcode_into_libs=yes | 
|  | 13521 | # ldd complains unless libraries are executable | 
|  | 13522 | postinstall_cmds='chmod +x $lib' | 
|  | 13523 | ;; | 
|  | 13524 |  | 
|  | 13525 | sunos4*) | 
|  | 13526 | version_type=sunos | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13528 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 13529 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13530 | shlibpath_overrides_runpath=yes | 
|  | 13531 | if test "$with_gnu_ld" = yes; then | 
|  | 13532 | need_lib_prefix=no | 
|  | 13533 | fi | 
|  | 13534 | need_version=yes | 
|  | 13535 | ;; | 
|  | 13536 |  | 
|  | 13537 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 13538 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 13540 | soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13541 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13542 | case $host_vendor in | 
|  | 13543 | sni) | 
|  | 13544 | shlibpath_overrides_runpath=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13545 | need_lib_prefix=no | 
|  | 13546 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 13547 | runpath_var=LD_RUN_PATH | 
|  | 13548 | ;; | 
|  | 13549 | siemens) | 
|  | 13550 | need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13551 | ;; | 
|  | 13552 | motorola) | 
|  | 13553 | need_lib_prefix=no | 
|  | 13554 | need_version=no | 
|  | 13555 | shlibpath_overrides_runpath=no | 
|  | 13556 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 13557 | ;; | 
|  | 13558 | esac | 
|  | 13559 | ;; | 
|  | 13560 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13561 | sysv4*MP*) | 
|  | 13562 | if test -d /usr/nec ;then | 
|  | 13563 | version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13564 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 13565 | soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13566 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13567 | fi | 
|  | 13568 | ;; | 
|  | 13569 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13570 | uts4*) | 
|  | 13571 | version_type=linux | 
|  | 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 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 13575 | ;; | 
|  | 13576 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13577 | *) | 
|  | 13578 | dynamic_linker=no | 
|  | 13579 | ;; | 
|  | 13580 | esac | 
|  | 13581 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 13582 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 13583 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13584 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13585 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 13586 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 13587 | hardcode_action= | 
|  | 13588 | if test -n "$hardcode_libdir_flag_spec" || \ | 
|  | 13589 | test -n "$runpath_var" || \ | 
|  | 13590 | test "X$hardcode_automatic" = "Xyes" ; then | 
|  | 13591 |  | 
|  | 13592 | # We can hardcode non-existant directories. | 
|  | 13593 | if test "$hardcode_direct" != no && | 
|  | 13594 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 13595 | # have to relink, otherwise we might link with an installed library | 
|  | 13596 | # when we should be linking with a yet-to-be-installed one | 
|  | 13597 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
|  | 13598 | test "$hardcode_minus_L" != no; then | 
|  | 13599 | # Linking always hardcodes the temporary library directory. | 
|  | 13600 | hardcode_action=relink | 
|  | 13601 | else | 
|  | 13602 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 13603 | hardcode_action=immediate | 
|  | 13604 | fi | 
|  | 13605 | else | 
|  | 13606 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 13607 | # directories. | 
|  | 13608 | hardcode_action=unsupported | 
|  | 13609 | fi | 
|  | 13610 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
|  | 13611 | echo "${ECHO_T}$hardcode_action" >&6 | 
|  | 13612 |  | 
|  | 13613 | if test "$hardcode_action" = relink; then | 
|  | 13614 | # Fast installation is not supported | 
|  | 13615 | enable_fast_install=no | 
|  | 13616 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 13617 | test "$enable_shared" = no; then | 
|  | 13618 | # Fast installation is not necessary | 
|  | 13619 | enable_fast_install=needless | 
|  | 13620 | fi | 
|  | 13621 |  | 
|  | 13622 | striplib= | 
|  | 13623 | old_striplib= | 
|  | 13624 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 13625 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 13626 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 13627 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 13628 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 13629 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 13630 | echo "${ECHO_T}yes" >&6 | 
|  | 13631 | else | 
|  | 13632 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 13633 | case $host_os in | 
|  | 13634 | darwin*) | 
|  | 13635 | if test -n "$STRIP" ; then | 
|  | 13636 | striplib="$STRIP -x" | 
|  | 13637 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 13638 | echo "${ECHO_T}yes" >&6 | 
|  | 13639 | else | 
|  | 13640 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 13641 | echo "${ECHO_T}no" >&6 | 
|  | 13642 | fi | 
|  | 13643 | ;; | 
|  | 13644 | *) | 
|  | 13645 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 13646 | echo "${ECHO_T}no" >&6 | 
|  | 13647 | ;; | 
|  | 13648 | esac | 
|  | 13649 | fi | 
|  | 13650 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13651 | if test "x$enable_dlopen" != xyes; then | 
|  | 13652 | enable_dlopen=unknown | 
|  | 13653 | enable_dlopen_self=unknown | 
|  | 13654 | enable_dlopen_self_static=unknown | 
|  | 13655 | else | 
|  | 13656 | lt_cv_dlopen=no | 
|  | 13657 | lt_cv_dlopen_libs= | 
|  | 13658 |  | 
|  | 13659 | case $host_os in | 
|  | 13660 | beos*) | 
|  | 13661 | lt_cv_dlopen="load_add_on" | 
|  | 13662 | lt_cv_dlopen_libs= | 
|  | 13663 | lt_cv_dlopen_self=yes | 
|  | 13664 | ;; | 
|  | 13665 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13666 | mingw* | pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13667 | lt_cv_dlopen="LoadLibrary" | 
|  | 13668 | lt_cv_dlopen_libs= | 
|  | 13669 | ;; | 
|  | 13670 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13671 | cygwin*) | 
|  | 13672 | lt_cv_dlopen="dlopen" | 
|  | 13673 | lt_cv_dlopen_libs= | 
|  | 13674 | ;; | 
|  | 13675 |  | 
|  | 13676 | darwin*) | 
|  | 13677 | # if libdl is installed we need to link against it | 
|  | 13678 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 13679 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 13680 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 13681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13682 | else | 
|  | 13683 | ac_check_lib_save_LIBS=$LIBS | 
|  | 13684 | LIBS="-ldl  $LIBS" | 
|  | 13685 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13686 | /* confdefs.h.  */ | 
|  | 13687 | _ACEOF | 
|  | 13688 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13689 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13690 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13691 |  | 
|  | 13692 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 13693 | #ifdef __cplusplus | 
|  | 13694 | extern "C" | 
|  | 13695 | #endif | 
|  | 13696 | /* We use char because int might match the return type of a gcc2 | 
|  | 13697 | builtin and then its argument prototype would still apply.  */ | 
|  | 13698 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13699 | int | 
|  | 13700 | main () | 
|  | 13701 | { | 
|  | 13702 | dlopen (); | 
|  | 13703 | ; | 
|  | 13704 | return 0; | 
|  | 13705 | } | 
|  | 13706 | _ACEOF | 
|  | 13707 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13709 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13710 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13711 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13712 | rm -f conftest.er1 | 
|  | 13713 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13715 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13716 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 13717 | || test ! -s conftest.err' | 
|  | 13718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13719 | (eval $ac_try) 2>&5 | 
|  | 13720 | ac_status=$? | 
|  | 13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13722 | (exit $ac_status); }; } && | 
|  | 13723 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13725 | (eval $ac_try) 2>&5 | 
|  | 13726 | ac_status=$? | 
|  | 13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13728 | (exit $ac_status); }; }; then | 
|  | 13729 | ac_cv_lib_dl_dlopen=yes | 
|  | 13730 | else | 
|  | 13731 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13732 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13733 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13734 | ac_cv_lib_dl_dlopen=no | 
|  | 13735 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13736 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 13737 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13738 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13739 | fi | 
|  | 13740 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 13741 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 13742 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 13743 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 13744 | else | 
|  | 13745 |  | 
|  | 13746 | lt_cv_dlopen="dyld" | 
|  | 13747 | lt_cv_dlopen_libs= | 
|  | 13748 | lt_cv_dlopen_self=yes | 
|  | 13749 |  | 
|  | 13750 | fi | 
|  | 13751 |  | 
|  | 13752 | ;; | 
|  | 13753 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13754 | *) | 
|  | 13755 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 13756 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 13757 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 13758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13759 | else | 
|  | 13760 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13761 | /* confdefs.h.  */ | 
|  | 13762 | _ACEOF | 
|  | 13763 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13764 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13765 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13766 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 13767 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 13768 | #define shl_load innocuous_shl_load | 
|  | 13769 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13770 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13771 | which can conflict with char shl_load (); below. | 
|  | 13772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 13773 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13774 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13775 | #ifdef __STDC__ | 
|  | 13776 | # include <limits.h> | 
|  | 13777 | #else | 
|  | 13778 | # include <assert.h> | 
|  | 13779 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13780 |  | 
|  | 13781 | #undef shl_load | 
|  | 13782 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13783 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 13784 | #ifdef __cplusplus | 
|  | 13785 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13786 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13787 | #endif | 
|  | 13788 | /* We use char because int might match the return type of a gcc2 | 
|  | 13789 | builtin and then its argument prototype would still apply.  */ | 
|  | 13790 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13791 | /* The GNU C library defines this for functions which it implements | 
|  | 13792 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 13793 | something starting with __ and the normal name is an alias.  */ | 
|  | 13794 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 13795 | choke me | 
|  | 13796 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13797 | char (*f) () = shl_load; | 
|  | 13798 | #endif | 
|  | 13799 | #ifdef __cplusplus | 
|  | 13800 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13801 | #endif | 
|  | 13802 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13803 | int | 
|  | 13804 | main () | 
|  | 13805 | { | 
|  | 13806 | return f != shl_load; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13807 | ; | 
|  | 13808 | return 0; | 
|  | 13809 | } | 
|  | 13810 | _ACEOF | 
|  | 13811 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13813 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13814 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13815 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13816 | rm -f conftest.er1 | 
|  | 13817 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13819 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13820 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 13821 | || test ! -s conftest.err' | 
|  | 13822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13823 | (eval $ac_try) 2>&5 | 
|  | 13824 | ac_status=$? | 
|  | 13825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13826 | (exit $ac_status); }; } && | 
|  | 13827 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13829 | (eval $ac_try) 2>&5 | 
|  | 13830 | ac_status=$? | 
|  | 13831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13832 | (exit $ac_status); }; }; then | 
|  | 13833 | ac_cv_func_shl_load=yes | 
|  | 13834 | else | 
|  | 13835 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13836 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13837 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13838 | ac_cv_func_shl_load=no | 
|  | 13839 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13840 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 13841 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13842 | fi | 
|  | 13843 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 13844 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 13845 | if test $ac_cv_func_shl_load = yes; then | 
|  | 13846 | lt_cv_dlopen="shl_load" | 
|  | 13847 | else | 
|  | 13848 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 13849 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 13850 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 13851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13852 | else | 
|  | 13853 | ac_check_lib_save_LIBS=$LIBS | 
|  | 13854 | LIBS="-ldld  $LIBS" | 
|  | 13855 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13856 | /* confdefs.h.  */ | 
|  | 13857 | _ACEOF | 
|  | 13858 | cat confdefs.h >>conftest.$ac_ext | 
|  | 13859 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 13860 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13861 |  | 
|  | 13862 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 13863 | #ifdef __cplusplus | 
|  | 13864 | extern "C" | 
|  | 13865 | #endif | 
|  | 13866 | /* We use char because int might match the return type of a gcc2 | 
|  | 13867 | builtin and then its argument prototype would still apply.  */ | 
|  | 13868 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13869 | int | 
|  | 13870 | main () | 
|  | 13871 | { | 
|  | 13872 | shl_load (); | 
|  | 13873 | ; | 
|  | 13874 | return 0; | 
|  | 13875 | } | 
|  | 13876 | _ACEOF | 
|  | 13877 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13879 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13880 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13881 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13882 | rm -f conftest.er1 | 
|  | 13883 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13885 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13886 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 13887 | || test ! -s conftest.err' | 
|  | 13888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13889 | (eval $ac_try) 2>&5 | 
|  | 13890 | ac_status=$? | 
|  | 13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13892 | (exit $ac_status); }; } && | 
|  | 13893 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13895 | (eval $ac_try) 2>&5 | 
|  | 13896 | ac_status=$? | 
|  | 13897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13898 | (exit $ac_status); }; }; then | 
|  | 13899 | ac_cv_lib_dld_shl_load=yes | 
|  | 13900 | else | 
|  | 13901 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13902 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13903 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13904 | ac_cv_lib_dld_shl_load=no | 
|  | 13905 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13906 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 13907 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13908 | LIBS=$ac_check_lib_save_LIBS | 
|  | 13909 | fi | 
|  | 13910 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 13911 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 13912 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 13913 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 13914 | else | 
|  | 13915 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 13916 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 13917 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 13918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 13919 | else | 
|  | 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.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13926 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
|  | 13927 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 13928 | #define dlopen innocuous_dlopen | 
|  | 13929 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13930 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13931 | which can conflict with char dlopen (); below. | 
|  | 13932 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 13933 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13934 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13935 | #ifdef __STDC__ | 
|  | 13936 | # include <limits.h> | 
|  | 13937 | #else | 
|  | 13938 | # include <assert.h> | 
|  | 13939 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13940 |  | 
|  | 13941 | #undef dlopen | 
|  | 13942 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13943 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 13944 | #ifdef __cplusplus | 
|  | 13945 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13946 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13947 | #endif | 
|  | 13948 | /* We use char because int might match the return type of a gcc2 | 
|  | 13949 | builtin and then its argument prototype would still apply.  */ | 
|  | 13950 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13951 | /* The GNU C library defines this for functions which it implements | 
|  | 13952 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 13953 | something starting with __ and the normal name is an alias.  */ | 
|  | 13954 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 13955 | choke me | 
|  | 13956 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13957 | char (*f) () = dlopen; | 
|  | 13958 | #endif | 
|  | 13959 | #ifdef __cplusplus | 
|  | 13960 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13961 | #endif | 
|  | 13962 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13963 | int | 
|  | 13964 | main () | 
|  | 13965 | { | 
|  | 13966 | return f != dlopen; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13967 | ; | 
|  | 13968 | return 0; | 
|  | 13969 | } | 
|  | 13970 | _ACEOF | 
|  | 13971 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 13972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13973 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13974 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13975 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 13976 | rm -f conftest.er1 | 
|  | 13977 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13979 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13980 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 13981 | || test ! -s conftest.err' | 
|  | 13982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13983 | (eval $ac_try) 2>&5 | 
|  | 13984 | ac_status=$? | 
|  | 13985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13986 | (exit $ac_status); }; } && | 
|  | 13987 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 13989 | (eval $ac_try) 2>&5 | 
|  | 13990 | ac_status=$? | 
|  | 13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 13992 | (exit $ac_status); }; }; then | 
|  | 13993 | ac_cv_func_dlopen=yes | 
|  | 13994 | else | 
|  | 13995 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13996 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 13997 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13998 | ac_cv_func_dlopen=no | 
|  | 13999 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14000 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 14001 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14002 | fi | 
|  | 14003 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 14004 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 14005 | if test $ac_cv_func_dlopen = yes; then | 
|  | 14006 | lt_cv_dlopen="dlopen" | 
|  | 14007 | else | 
|  | 14008 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 14009 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 14010 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 14011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14012 | else | 
|  | 14013 | ac_check_lib_save_LIBS=$LIBS | 
|  | 14014 | LIBS="-ldl  $LIBS" | 
|  | 14015 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14016 | /* confdefs.h.  */ | 
|  | 14017 | _ACEOF | 
|  | 14018 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14019 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14020 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14021 |  | 
|  | 14022 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 14023 | #ifdef __cplusplus | 
|  | 14024 | extern "C" | 
|  | 14025 | #endif | 
|  | 14026 | /* We use char because int might match the return type of a gcc2 | 
|  | 14027 | builtin and then its argument prototype would still apply.  */ | 
|  | 14028 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14029 | int | 
|  | 14030 | main () | 
|  | 14031 | { | 
|  | 14032 | dlopen (); | 
|  | 14033 | ; | 
|  | 14034 | return 0; | 
|  | 14035 | } | 
|  | 14036 | _ACEOF | 
|  | 14037 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14039 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14040 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14041 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14042 | rm -f conftest.er1 | 
|  | 14043 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14045 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14046 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 14047 | || test ! -s conftest.err' | 
|  | 14048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14049 | (eval $ac_try) 2>&5 | 
|  | 14050 | ac_status=$? | 
|  | 14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14052 | (exit $ac_status); }; } && | 
|  | 14053 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14055 | (eval $ac_try) 2>&5 | 
|  | 14056 | ac_status=$? | 
|  | 14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14058 | (exit $ac_status); }; }; then | 
|  | 14059 | ac_cv_lib_dl_dlopen=yes | 
|  | 14060 | else | 
|  | 14061 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14062 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14063 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14064 | ac_cv_lib_dl_dlopen=no | 
|  | 14065 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14066 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 14067 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14068 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14069 | fi | 
|  | 14070 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 14071 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 14072 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 14073 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 14074 | else | 
|  | 14075 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 14076 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 14077 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 14078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14079 | else | 
|  | 14080 | ac_check_lib_save_LIBS=$LIBS | 
|  | 14081 | LIBS="-lsvld  $LIBS" | 
|  | 14082 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14083 | /* confdefs.h.  */ | 
|  | 14084 | _ACEOF | 
|  | 14085 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14086 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14087 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14088 |  | 
|  | 14089 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 14090 | #ifdef __cplusplus | 
|  | 14091 | extern "C" | 
|  | 14092 | #endif | 
|  | 14093 | /* We use char because int might match the return type of a gcc2 | 
|  | 14094 | builtin and then its argument prototype would still apply.  */ | 
|  | 14095 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14096 | int | 
|  | 14097 | main () | 
|  | 14098 | { | 
|  | 14099 | dlopen (); | 
|  | 14100 | ; | 
|  | 14101 | return 0; | 
|  | 14102 | } | 
|  | 14103 | _ACEOF | 
|  | 14104 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14106 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14107 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14108 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14109 | rm -f conftest.er1 | 
|  | 14110 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14112 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14113 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 14114 | || test ! -s conftest.err' | 
|  | 14115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14116 | (eval $ac_try) 2>&5 | 
|  | 14117 | ac_status=$? | 
|  | 14118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14119 | (exit $ac_status); }; } && | 
|  | 14120 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14122 | (eval $ac_try) 2>&5 | 
|  | 14123 | ac_status=$? | 
|  | 14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14125 | (exit $ac_status); }; }; then | 
|  | 14126 | ac_cv_lib_svld_dlopen=yes | 
|  | 14127 | else | 
|  | 14128 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14129 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14130 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14131 | ac_cv_lib_svld_dlopen=no | 
|  | 14132 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14133 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 14134 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14135 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14136 | fi | 
|  | 14137 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 14138 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 14139 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 14140 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 14141 | else | 
|  | 14142 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 14143 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 14144 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 14145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14146 | else | 
|  | 14147 | ac_check_lib_save_LIBS=$LIBS | 
|  | 14148 | LIBS="-ldld  $LIBS" | 
|  | 14149 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14150 | /* confdefs.h.  */ | 
|  | 14151 | _ACEOF | 
|  | 14152 | cat confdefs.h >>conftest.$ac_ext | 
|  | 14153 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 14154 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14155 |  | 
|  | 14156 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 14157 | #ifdef __cplusplus | 
|  | 14158 | extern "C" | 
|  | 14159 | #endif | 
|  | 14160 | /* We use char because int might match the return type of a gcc2 | 
|  | 14161 | builtin and then its argument prototype would still apply.  */ | 
|  | 14162 | char dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14163 | int | 
|  | 14164 | main () | 
|  | 14165 | { | 
|  | 14166 | dld_link (); | 
|  | 14167 | ; | 
|  | 14168 | return 0; | 
|  | 14169 | } | 
|  | 14170 | _ACEOF | 
|  | 14171 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 14172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14173 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14174 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14175 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 14176 | rm -f conftest.er1 | 
|  | 14177 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14179 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14180 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 14181 | || test ! -s conftest.err' | 
|  | 14182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14183 | (eval $ac_try) 2>&5 | 
|  | 14184 | ac_status=$? | 
|  | 14185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14186 | (exit $ac_status); }; } && | 
|  | 14187 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 14189 | (eval $ac_try) 2>&5 | 
|  | 14190 | ac_status=$? | 
|  | 14191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14192 | (exit $ac_status); }; }; then | 
|  | 14193 | ac_cv_lib_dld_dld_link=yes | 
|  | 14194 | else | 
|  | 14195 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14196 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 14197 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14198 | ac_cv_lib_dld_dld_link=no | 
|  | 14199 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14200 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 14201 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14202 | LIBS=$ac_check_lib_save_LIBS | 
|  | 14203 | fi | 
|  | 14204 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 14205 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 14206 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 14207 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 14208 | fi | 
|  | 14209 |  | 
|  | 14210 |  | 
|  | 14211 | fi | 
|  | 14212 |  | 
|  | 14213 |  | 
|  | 14214 | fi | 
|  | 14215 |  | 
|  | 14216 |  | 
|  | 14217 | fi | 
|  | 14218 |  | 
|  | 14219 |  | 
|  | 14220 | fi | 
|  | 14221 |  | 
|  | 14222 |  | 
|  | 14223 | fi | 
|  | 14224 |  | 
|  | 14225 | ;; | 
|  | 14226 | esac | 
|  | 14227 |  | 
|  | 14228 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 14229 | enable_dlopen=yes | 
|  | 14230 | else | 
|  | 14231 | enable_dlopen=no | 
|  | 14232 | fi | 
|  | 14233 |  | 
|  | 14234 | case $lt_cv_dlopen in | 
|  | 14235 | dlopen) | 
|  | 14236 | save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14237 | 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] | 14238 |  | 
|  | 14239 | save_LDFLAGS="$LDFLAGS" | 
|  | 14240 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 14241 |  | 
|  | 14242 | save_LIBS="$LIBS" | 
|  | 14243 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 14244 |  | 
|  | 14245 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 14246 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 14247 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 14248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14249 | else | 
|  | 14250 | if test "$cross_compiling" = yes; then : | 
|  | 14251 | lt_cv_dlopen_self=cross | 
|  | 14252 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14253 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14254 | lt_status=$lt_dlunknown | 
|  | 14255 | cat > conftest.$ac_ext <<EOF | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 14256 | #line 14256 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14257 | #include "confdefs.h" | 
|  | 14258 |  | 
|  | 14259 | #if HAVE_DLFCN_H | 
|  | 14260 | #include <dlfcn.h> | 
|  | 14261 | #endif | 
|  | 14262 |  | 
|  | 14263 | #include <stdio.h> | 
|  | 14264 |  | 
|  | 14265 | #ifdef RTLD_GLOBAL | 
|  | 14266 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 14267 | #else | 
|  | 14268 | #  ifdef DL_GLOBAL | 
|  | 14269 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 14270 | #  else | 
|  | 14271 | #    define LT_DLGLOBAL		0 | 
|  | 14272 | #  endif | 
|  | 14273 | #endif | 
|  | 14274 |  | 
|  | 14275 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 14276 | find out it does not work in some platform. */ | 
|  | 14277 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 14278 | #  ifdef RTLD_LAZY | 
|  | 14279 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 14280 | #  else | 
|  | 14281 | #    ifdef DL_LAZY | 
|  | 14282 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 14283 | #    else | 
|  | 14284 | #      ifdef RTLD_NOW | 
|  | 14285 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 14286 | #      else | 
|  | 14287 | #        ifdef DL_NOW | 
|  | 14288 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 14289 | #        else | 
|  | 14290 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 14291 | #        endif | 
|  | 14292 | #      endif | 
|  | 14293 | #    endif | 
|  | 14294 | #  endif | 
|  | 14295 | #endif | 
|  | 14296 |  | 
|  | 14297 | #ifdef __cplusplus | 
|  | 14298 | extern "C" void exit (int); | 
|  | 14299 | #endif | 
|  | 14300 |  | 
|  | 14301 | void fnord() { int i=42;} | 
|  | 14302 | int main () | 
|  | 14303 | { | 
|  | 14304 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 14305 | int status = $lt_dlunknown; | 
|  | 14306 |  | 
|  | 14307 | if (self) | 
|  | 14308 | { | 
|  | 14309 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 14310 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 14311 | /* dlclose (self); */ | 
|  | 14312 | } | 
|  | 14313 |  | 
|  | 14314 | exit (status); | 
|  | 14315 | } | 
|  | 14316 | EOF | 
|  | 14317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 14318 | (eval $ac_link) 2>&5 | 
|  | 14319 | ac_status=$? | 
|  | 14320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14321 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 14322 | (./conftest; exit; ) 2>/dev/null | 
|  | 14323 | lt_status=$? | 
|  | 14324 | case x$lt_status in | 
|  | 14325 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 14326 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 14327 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 14328 | esac | 
|  | 14329 | else : | 
|  | 14330 | # compilation failed | 
|  | 14331 | lt_cv_dlopen_self=no | 
|  | 14332 | fi | 
|  | 14333 | fi | 
|  | 14334 | rm -fr conftest* | 
|  | 14335 |  | 
|  | 14336 |  | 
|  | 14337 | fi | 
|  | 14338 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 14339 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 14340 |  | 
|  | 14341 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 14342 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 14343 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 14344 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 14345 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 14346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 14347 | else | 
|  | 14348 | if test "$cross_compiling" = yes; then : | 
|  | 14349 | lt_cv_dlopen_self_static=cross | 
|  | 14350 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14351 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14352 | lt_status=$lt_dlunknown | 
|  | 14353 | cat > conftest.$ac_ext <<EOF | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 14354 | #line 14354 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14355 | #include "confdefs.h" | 
|  | 14356 |  | 
|  | 14357 | #if HAVE_DLFCN_H | 
|  | 14358 | #include <dlfcn.h> | 
|  | 14359 | #endif | 
|  | 14360 |  | 
|  | 14361 | #include <stdio.h> | 
|  | 14362 |  | 
|  | 14363 | #ifdef RTLD_GLOBAL | 
|  | 14364 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 14365 | #else | 
|  | 14366 | #  ifdef DL_GLOBAL | 
|  | 14367 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 14368 | #  else | 
|  | 14369 | #    define LT_DLGLOBAL		0 | 
|  | 14370 | #  endif | 
|  | 14371 | #endif | 
|  | 14372 |  | 
|  | 14373 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 14374 | find out it does not work in some platform. */ | 
|  | 14375 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 14376 | #  ifdef RTLD_LAZY | 
|  | 14377 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 14378 | #  else | 
|  | 14379 | #    ifdef DL_LAZY | 
|  | 14380 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 14381 | #    else | 
|  | 14382 | #      ifdef RTLD_NOW | 
|  | 14383 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 14384 | #      else | 
|  | 14385 | #        ifdef DL_NOW | 
|  | 14386 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 14387 | #        else | 
|  | 14388 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 14389 | #        endif | 
|  | 14390 | #      endif | 
|  | 14391 | #    endif | 
|  | 14392 | #  endif | 
|  | 14393 | #endif | 
|  | 14394 |  | 
|  | 14395 | #ifdef __cplusplus | 
|  | 14396 | extern "C" void exit (int); | 
|  | 14397 | #endif | 
|  | 14398 |  | 
|  | 14399 | void fnord() { int i=42;} | 
|  | 14400 | int main () | 
|  | 14401 | { | 
|  | 14402 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 14403 | int status = $lt_dlunknown; | 
|  | 14404 |  | 
|  | 14405 | if (self) | 
|  | 14406 | { | 
|  | 14407 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 14408 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 14409 | /* dlclose (self); */ | 
|  | 14410 | } | 
|  | 14411 |  | 
|  | 14412 | exit (status); | 
|  | 14413 | } | 
|  | 14414 | EOF | 
|  | 14415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 14416 | (eval $ac_link) 2>&5 | 
|  | 14417 | ac_status=$? | 
|  | 14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 14419 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 14420 | (./conftest; exit; ) 2>/dev/null | 
|  | 14421 | lt_status=$? | 
|  | 14422 | case x$lt_status in | 
|  | 14423 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 14424 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 14425 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 14426 | esac | 
|  | 14427 | else : | 
|  | 14428 | # compilation failed | 
|  | 14429 | lt_cv_dlopen_self_static=no | 
|  | 14430 | fi | 
|  | 14431 | fi | 
|  | 14432 | rm -fr conftest* | 
|  | 14433 |  | 
|  | 14434 |  | 
|  | 14435 | fi | 
|  | 14436 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 14437 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 14438 | fi | 
|  | 14439 |  | 
|  | 14440 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 14441 | LDFLAGS="$save_LDFLAGS" | 
|  | 14442 | LIBS="$save_LIBS" | 
|  | 14443 | ;; | 
|  | 14444 | esac | 
|  | 14445 |  | 
|  | 14446 | case $lt_cv_dlopen_self in | 
|  | 14447 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 14448 | *) enable_dlopen_self=unknown ;; | 
|  | 14449 | esac | 
|  | 14450 |  | 
|  | 14451 | case $lt_cv_dlopen_self_static in | 
|  | 14452 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 14453 | *) enable_dlopen_self_static=unknown ;; | 
|  | 14454 | esac | 
|  | 14455 | fi | 
|  | 14456 |  | 
|  | 14457 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14458 | # Report which librarie types wil actually be built | 
|  | 14459 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
|  | 14460 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
|  | 14461 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
|  | 14462 | echo "${ECHO_T}$can_build_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14463 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14464 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
|  | 14465 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
|  | 14466 | test "$can_build_shared" = "no" && enable_shared=no | 
|  | 14467 |  | 
|  | 14468 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|  | 14469 | # are all built from PIC. | 
|  | 14470 | case "$host_os" in | 
|  | 14471 | aix3*) | 
|  | 14472 | test "$enable_shared" = yes && enable_static=no | 
|  | 14473 | if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14474 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14475 | postinstall_cmds='$RANLIB $lib' | 
|  | 14476 | fi | 
|  | 14477 | ;; | 
|  | 14478 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14479 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14480 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
|  | 14481 | test "$enable_shared" = yes && enable_static=no | 
|  | 14482 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14483 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14484 | esac | 
|  | 14485 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
|  | 14486 | echo "${ECHO_T}$enable_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14487 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14488 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
|  | 14489 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
|  | 14490 | # Make sure either enable_shared or enable_static is yes. | 
|  | 14491 | test "$enable_shared" = yes || enable_static=yes | 
|  | 14492 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
|  | 14493 | echo "${ECHO_T}$enable_static" >&6 | 
|  | 14494 |  | 
|  | 14495 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14496 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 14497 | # with your package, and you will get complaints that there are | 
|  | 14498 | # no rules to generate ltmain.sh. | 
|  | 14499 | if test -f "$ltmain"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14500 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 14501 | # without removal of \ escapes. | 
|  | 14502 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 14503 | setopt NO_GLOB_SUBST | 
|  | 14504 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14505 | # Now quote all the things that may contain metacharacters while being | 
|  | 14506 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 14507 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14508 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 14509 | SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14510 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 14511 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 14512 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 14513 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 14514 | lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14515 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14516 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 14517 | compiler \ | 
|  | 14518 | CC \ | 
|  | 14519 | LD \ | 
|  | 14520 | lt_prog_compiler_wl \ | 
|  | 14521 | lt_prog_compiler_pic \ | 
|  | 14522 | lt_prog_compiler_static \ | 
|  | 14523 | lt_prog_compiler_no_builtin_flag \ | 
|  | 14524 | export_dynamic_flag_spec \ | 
|  | 14525 | thread_safe_flag_spec \ | 
|  | 14526 | whole_archive_flag_spec \ | 
|  | 14527 | enable_shared_with_static_runtimes \ | 
|  | 14528 | old_archive_cmds \ | 
|  | 14529 | old_archive_from_new_cmds \ | 
|  | 14530 | predep_objects \ | 
|  | 14531 | postdep_objects \ | 
|  | 14532 | predeps \ | 
|  | 14533 | postdeps \ | 
|  | 14534 | compiler_lib_search_path \ | 
|  | 14535 | archive_cmds \ | 
|  | 14536 | archive_expsym_cmds \ | 
|  | 14537 | postinstall_cmds \ | 
|  | 14538 | postuninstall_cmds \ | 
|  | 14539 | old_archive_from_expsyms_cmds \ | 
|  | 14540 | allow_undefined_flag \ | 
|  | 14541 | no_undefined_flag \ | 
|  | 14542 | export_symbols_cmds \ | 
|  | 14543 | hardcode_libdir_flag_spec \ | 
|  | 14544 | hardcode_libdir_flag_spec_ld \ | 
|  | 14545 | hardcode_libdir_separator \ | 
|  | 14546 | hardcode_automatic \ | 
|  | 14547 | module_cmds \ | 
|  | 14548 | module_expsym_cmds \ | 
|  | 14549 | lt_cv_prog_compiler_c_o \ | 
|  | 14550 | exclude_expsyms \ | 
|  | 14551 | include_expsyms; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14552 |  | 
|  | 14553 | case $var in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14554 | old_archive_cmds | \ | 
|  | 14555 | old_archive_from_new_cmds | \ | 
|  | 14556 | archive_cmds | \ | 
|  | 14557 | archive_expsym_cmds | \ | 
|  | 14558 | module_cmds | \ | 
|  | 14559 | module_expsym_cmds | \ | 
|  | 14560 | old_archive_from_expsyms_cmds | \ | 
|  | 14561 | export_symbols_cmds | \ | 
|  | 14562 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14563 | postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14564 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 14565 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14566 | # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14567 | 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] | 14568 | ;; | 
|  | 14569 | *) | 
|  | 14570 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 14571 | ;; | 
|  | 14572 | esac | 
|  | 14573 | done | 
|  | 14574 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14575 | case $lt_echo in | 
|  | 14576 | *'\$0 --fallback-echo"') | 
|  | 14577 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 14578 | ;; | 
|  | 14579 | esac | 
|  | 14580 |  | 
|  | 14581 | cfgfile="${ofile}T" | 
|  | 14582 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
|  | 14583 | $rm -f "$cfgfile" | 
|  | 14584 | { echo "$as_me:$LINENO: creating $ofile" >&5 | 
|  | 14585 | echo "$as_me: creating $ofile" >&6;} | 
|  | 14586 |  | 
|  | 14587 | cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14588 | #! $SHELL | 
|  | 14589 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14590 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14591 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
|  | 14592 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
|  | 14593 | # | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14594 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
|  | 14595 | # Free Software Foundation, Inc. | 
|  | 14596 | # | 
|  | 14597 | # This file is part of GNU Libtool: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14598 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
|  | 14599 | # | 
|  | 14600 | # This program is free software; you can redistribute it and/or modify | 
|  | 14601 | # it under the terms of the GNU General Public License as published by | 
|  | 14602 | # the Free Software Foundation; either version 2 of the License, or | 
|  | 14603 | # (at your option) any later version. | 
|  | 14604 | # | 
|  | 14605 | # This program is distributed in the hope that it will be useful, but | 
|  | 14606 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 14607 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
|  | 14608 | # General Public License for more details. | 
|  | 14609 | # | 
|  | 14610 | # You should have received a copy of the GNU General Public License | 
|  | 14611 | # along with this program; if not, write to the Free Software | 
|  | 14612 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
|  | 14613 | # | 
|  | 14614 | # As a special exception to the GNU General Public License, if you | 
|  | 14615 | # distribute this file as part of a program that contains a | 
|  | 14616 | # configuration script generated by Autoconf, you may include it under | 
|  | 14617 | # the same distribution terms that you use for the rest of that program. | 
|  | 14618 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14619 | # A sed program that does not truncate output. | 
|  | 14620 | SED=$lt_SED | 
|  | 14621 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14622 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14623 | Xsed="$SED -e s/^X//" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14624 |  | 
|  | 14625 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
|  | 14626 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14627 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14628 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14629 | # The names of the tagged configurations supported by this script. | 
|  | 14630 | available_tags= | 
|  | 14631 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14632 | # ### BEGIN LIBTOOL CONFIG | 
|  | 14633 |  | 
|  | 14634 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 14635 |  | 
|  | 14636 | # Shell to use when invoking shell scripts. | 
|  | 14637 | SHELL=$lt_SHELL | 
|  | 14638 |  | 
|  | 14639 | # Whether or not to build shared libraries. | 
|  | 14640 | build_libtool_libs=$enable_shared | 
|  | 14641 |  | 
|  | 14642 | # Whether or not to build static libraries. | 
|  | 14643 | build_old_libs=$enable_static | 
|  | 14644 |  | 
|  | 14645 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14646 | build_libtool_need_lc=$archive_cmds_need_lc | 
|  | 14647 |  | 
|  | 14648 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 14649 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14650 |  | 
|  | 14651 | # Whether or not to optimize for fast installation. | 
|  | 14652 | fast_install=$enable_fast_install | 
|  | 14653 |  | 
|  | 14654 | # The host system. | 
|  | 14655 | host_alias=$host_alias | 
|  | 14656 | host=$host | 
|  | 14657 |  | 
|  | 14658 | # An echo program that does not interpret backslashes. | 
|  | 14659 | echo=$lt_echo | 
|  | 14660 |  | 
|  | 14661 | # The archiver. | 
|  | 14662 | AR=$lt_AR | 
|  | 14663 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 14664 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14665 | # A C compiler. | 
|  | 14666 | LTCC=$lt_LTCC | 
|  | 14667 |  | 
|  | 14668 | # A language-specific compiler. | 
|  | 14669 | CC=$lt_compiler | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14670 |  | 
|  | 14671 | # Is the compiler the GNU C compiler? | 
|  | 14672 | with_gcc=$GCC | 
|  | 14673 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14674 | # An ERE matcher. | 
|  | 14675 | EGREP=$lt_EGREP | 
|  | 14676 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14677 | # The linker used to build libraries. | 
|  | 14678 | LD=$lt_LD | 
|  | 14679 |  | 
|  | 14680 | # Whether we need hard or soft links. | 
|  | 14681 | LN_S=$lt_LN_S | 
|  | 14682 |  | 
|  | 14683 | # A BSD-compatible nm program. | 
|  | 14684 | NM=$lt_NM | 
|  | 14685 |  | 
|  | 14686 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14687 | STRIP=$lt_STRIP | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14688 |  | 
|  | 14689 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 14690 | MAGIC_CMD=$MAGIC_CMD | 
|  | 14691 |  | 
|  | 14692 | # Used on cygwin: DLL creation program. | 
|  | 14693 | DLLTOOL="$DLLTOOL" | 
|  | 14694 |  | 
|  | 14695 | # Used on cygwin: object dumper. | 
|  | 14696 | OBJDUMP="$OBJDUMP" | 
|  | 14697 |  | 
|  | 14698 | # Used on cygwin: assembler. | 
|  | 14699 | AS="$AS" | 
|  | 14700 |  | 
|  | 14701 | # The name of the directory that contains temporary libtool files. | 
|  | 14702 | objdir=$objdir | 
|  | 14703 |  | 
|  | 14704 | # How to create reloadable object files. | 
|  | 14705 | reload_flag=$lt_reload_flag | 
|  | 14706 | reload_cmds=$lt_reload_cmds | 
|  | 14707 |  | 
|  | 14708 | # How to pass a linker flag through the compiler. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14709 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14710 |  | 
|  | 14711 | # Object file suffix (normally "o"). | 
|  | 14712 | objext="$ac_objext" | 
|  | 14713 |  | 
|  | 14714 | # Old archive suffix (normally "a"). | 
|  | 14715 | libext="$libext" | 
|  | 14716 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14717 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14718 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14719 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14720 | # Executable file suffix (normally ""). | 
|  | 14721 | exeext="$exeext" | 
|  | 14722 |  | 
|  | 14723 | # Additional compiler flags for building library objects. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14724 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14725 | pic_mode=$pic_mode | 
|  | 14726 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14727 | # What is the maximum length of a command? | 
|  | 14728 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14729 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14730 | # Does compiler simultaneously support -c and -o options? | 
|  | 14731 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14732 |  | 
|  | 14733 | # Must we lock files when doing compilation ? | 
|  | 14734 | need_locks=$lt_need_locks | 
|  | 14735 |  | 
|  | 14736 | # Do we need the lib prefix for modules? | 
|  | 14737 | need_lib_prefix=$need_lib_prefix | 
|  | 14738 |  | 
|  | 14739 | # Do we need a version for libraries? | 
|  | 14740 | need_version=$need_version | 
|  | 14741 |  | 
|  | 14742 | # Whether dlopen is supported. | 
|  | 14743 | dlopen_support=$enable_dlopen | 
|  | 14744 |  | 
|  | 14745 | # Whether dlopen of programs is supported. | 
|  | 14746 | dlopen_self=$enable_dlopen_self | 
|  | 14747 |  | 
|  | 14748 | # Whether dlopen of statically linked programs is supported. | 
|  | 14749 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 14750 |  | 
|  | 14751 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14752 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14753 |  | 
|  | 14754 | # Compiler flag to turn off builtin functions. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14755 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14756 |  | 
|  | 14757 | # Compiler flag to allow reflexive dlopens. | 
|  | 14758 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
|  | 14759 |  | 
|  | 14760 | # Compiler flag to generate shared objects directly from archives. | 
|  | 14761 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
|  | 14762 |  | 
|  | 14763 | # Compiler flag to generate thread-safe objects. | 
|  | 14764 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
|  | 14765 |  | 
|  | 14766 | # Library versioning type. | 
|  | 14767 | version_type=$version_type | 
|  | 14768 |  | 
|  | 14769 | # Format of library name prefix. | 
|  | 14770 | libname_spec=$lt_libname_spec | 
|  | 14771 |  | 
|  | 14772 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 14773 | # The last name is the one that the linker finds with -lNAME. | 
|  | 14774 | library_names_spec=$lt_library_names_spec | 
|  | 14775 |  | 
|  | 14776 | # The coded name of the library, if different from the real name. | 
|  | 14777 | soname_spec=$lt_soname_spec | 
|  | 14778 |  | 
|  | 14779 | # Commands used to build and install an old-style archive. | 
|  | 14780 | RANLIB=$lt_RANLIB | 
|  | 14781 | old_archive_cmds=$lt_old_archive_cmds | 
|  | 14782 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 14783 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 14784 |  | 
|  | 14785 | # Create an old-style archive from a shared archive. | 
|  | 14786 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
|  | 14787 |  | 
|  | 14788 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 14789 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
|  | 14790 |  | 
|  | 14791 | # Commands used to build and install a shared archive. | 
|  | 14792 | archive_cmds=$lt_archive_cmds | 
|  | 14793 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
|  | 14794 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 14795 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 14796 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14797 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 14798 | module_cmds=$lt_module_cmds | 
|  | 14799 | module_expsym_cmds=$lt_module_expsym_cmds | 
|  | 14800 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14801 | # Commands to strip libraries. | 
|  | 14802 | old_striplib=$lt_old_striplib | 
|  | 14803 | striplib=$lt_striplib | 
|  | 14804 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14805 | # Dependencies to place before the objects being linked to create a | 
|  | 14806 | # shared library. | 
|  | 14807 | predep_objects=$lt_predep_objects | 
|  | 14808 |  | 
|  | 14809 | # Dependencies to place after the objects being linked to create a | 
|  | 14810 | # shared library. | 
|  | 14811 | postdep_objects=$lt_postdep_objects | 
|  | 14812 |  | 
|  | 14813 | # Dependencies to place before the objects being linked to create a | 
|  | 14814 | # shared library. | 
|  | 14815 | predeps=$lt_predeps | 
|  | 14816 |  | 
|  | 14817 | # Dependencies to place after the objects being linked to create a | 
|  | 14818 | # shared library. | 
|  | 14819 | postdeps=$lt_postdeps | 
|  | 14820 |  | 
|  | 14821 | # The library search path used internally by the compiler when linking | 
|  | 14822 | # a shared library. | 
|  | 14823 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
|  | 14824 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14825 | # Method to check whether dependent libraries are shared objects. | 
|  | 14826 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 14827 |  | 
|  | 14828 | # Command to use when deplibs_check_method == file_magic. | 
|  | 14829 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 14830 |  | 
|  | 14831 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 14832 | allow_undefined_flag=$lt_allow_undefined_flag | 
|  | 14833 |  | 
|  | 14834 | # Flag that forces no undefined symbols. | 
|  | 14835 | no_undefined_flag=$lt_no_undefined_flag | 
|  | 14836 |  | 
|  | 14837 | # Commands used to finish a libtool library installation in a directory. | 
|  | 14838 | finish_cmds=$lt_finish_cmds | 
|  | 14839 |  | 
|  | 14840 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 14841 | finish_eval=$lt_finish_eval | 
|  | 14842 |  | 
|  | 14843 | # 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] | 14844 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14845 |  | 
|  | 14846 | # Transform the output of nm in a proper C declaration | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14847 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14848 |  | 
|  | 14849 | # Transform the output of nm in a C name address pair | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14850 | 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] | 14851 |  | 
|  | 14852 | # This is the shared library runtime path variable. | 
|  | 14853 | runpath_var=$runpath_var | 
|  | 14854 |  | 
|  | 14855 | # This is the shared library path variable. | 
|  | 14856 | shlibpath_var=$shlibpath_var | 
|  | 14857 |  | 
|  | 14858 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 14859 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 14860 |  | 
|  | 14861 | # How to hardcode a shared library path into an executable. | 
|  | 14862 | hardcode_action=$hardcode_action | 
|  | 14863 |  | 
|  | 14864 | # Whether we should hardcode library paths into libraries. | 
|  | 14865 | hardcode_into_libs=$hardcode_into_libs | 
|  | 14866 |  | 
|  | 14867 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 14868 | # This must work even if \$libdir does not exist. | 
|  | 14869 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
|  | 14870 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14871 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 14872 | # a binary during linking. This must work even if \$libdir does | 
|  | 14873 | # not exist. | 
|  | 14874 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
|  | 14875 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14876 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 14877 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
|  | 14878 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14879 | # 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] | 14880 | # resulting binary. | 
|  | 14881 | hardcode_direct=$hardcode_direct | 
|  | 14882 |  | 
|  | 14883 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 14884 | # resulting binary. | 
|  | 14885 | hardcode_minus_L=$hardcode_minus_L | 
|  | 14886 |  | 
|  | 14887 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 14888 | # the resulting binary. | 
|  | 14889 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
|  | 14890 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14891 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 14892 | # and all subsequent libraries and executables linked against it. | 
|  | 14893 | hardcode_automatic=$hardcode_automatic | 
|  | 14894 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14895 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 14896 | # restored at relink time. | 
|  | 14897 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 14898 |  | 
|  | 14899 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 14900 | link_all_deplibs=$link_all_deplibs | 
|  | 14901 |  | 
|  | 14902 | # Compile-time system search path for libraries | 
|  | 14903 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 14904 |  | 
|  | 14905 | # Run-time system search path for libraries | 
|  | 14906 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 14907 |  | 
|  | 14908 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 14909 | fix_srcfile_path="$fix_srcfile_path" | 
|  | 14910 |  | 
|  | 14911 | # Set to yes if exported symbols are required. | 
|  | 14912 | always_export_symbols=$always_export_symbols | 
|  | 14913 |  | 
|  | 14914 | # The commands to list exported symbols. | 
|  | 14915 | export_symbols_cmds=$lt_export_symbols_cmds | 
|  | 14916 |  | 
|  | 14917 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 14918 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 14919 |  | 
|  | 14920 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 14921 | exclude_expsyms=$lt_exclude_expsyms | 
|  | 14922 |  | 
|  | 14923 | # Symbols that must always be exported. | 
|  | 14924 | include_expsyms=$lt_include_expsyms | 
|  | 14925 |  | 
|  | 14926 | # ### END LIBTOOL CONFIG | 
|  | 14927 |  | 
|  | 14928 | __EOF__ | 
|  | 14929 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14930 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14931 | case $host_os in | 
|  | 14932 | aix3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14933 | cat <<\EOF >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14934 |  | 
|  | 14935 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 14936 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 14937 | # vanish in a puff of smoke. | 
|  | 14938 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 14939 | COLLECT_NAMES= | 
|  | 14940 | export COLLECT_NAMES | 
|  | 14941 | fi | 
|  | 14942 | EOF | 
|  | 14943 | ;; | 
|  | 14944 | esac | 
|  | 14945 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14946 | # We use sed instead of cat because bash on DJGPP gets confused if | 
|  | 14947 | # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
|  | 14948 | # text mode, it properly converts lines to CR/LF.  This bash problem | 
|  | 14949 | # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14950 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14951 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14952 | mv -f "$cfgfile" "$ofile" || \ | 
|  | 14953 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14954 | chmod +x "$ofile" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14955 |  | 
|  | 14956 | else | 
|  | 14957 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 14958 | # `config.status --recheck' to rerun these tests and create the | 
|  | 14959 | # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14960 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 14961 | if test -f "$ltmain_in"; then | 
|  | 14962 | test -f Makefile && make "$ltmain" | 
|  | 14963 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14964 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14965 |  | 
|  | 14966 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14967 | ac_ext=c | 
|  | 14968 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 14969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 14970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 14971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 14972 |  | 
|  | 14973 | CC="$lt_save_CC" | 
|  | 14974 |  | 
|  | 14975 |  | 
|  | 14976 | # Check whether --with-tags or --without-tags was given. | 
|  | 14977 | if test "${with_tags+set}" = set; then | 
|  | 14978 | withval="$with_tags" | 
|  | 14979 | tagnames="$withval" | 
|  | 14980 | fi; | 
|  | 14981 |  | 
|  | 14982 | if test -f "$ltmain" && test -n "$tagnames"; then | 
|  | 14983 | if test ! -f "${ofile}"; then | 
|  | 14984 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
|  | 14985 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
|  | 14986 | fi | 
|  | 14987 |  | 
|  | 14988 | if test -z "$LTCC"; then | 
|  | 14989 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
|  | 14990 | if test -z "$LTCC"; then | 
|  | 14991 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
|  | 14992 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
|  | 14993 | else | 
|  | 14994 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
|  | 14995 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
|  | 14996 | fi | 
|  | 14997 | fi | 
|  | 14998 |  | 
|  | 14999 | # Extract list of available tagged configurations in $ofile. | 
|  | 15000 | # Note that this assumes the entire list is on one line. | 
|  | 15001 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
|  | 15002 |  | 
|  | 15003 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 15004 | for tagname in $tagnames; do | 
|  | 15005 | IFS="$lt_save_ifs" | 
|  | 15006 | # Check whether tagname contains only valid characters | 
|  | 15007 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
|  | 15008 | "") ;; | 
|  | 15009 | *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
|  | 15010 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
|  | 15011 | { (exit 1); exit 1; }; } | 
|  | 15012 | ;; | 
|  | 15013 | esac | 
|  | 15014 |  | 
|  | 15015 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
|  | 15016 | then | 
|  | 15017 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
|  | 15018 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
|  | 15019 | { (exit 1); exit 1; }; } | 
|  | 15020 | fi | 
|  | 15021 |  | 
|  | 15022 | # Update the list of available tags. | 
|  | 15023 | if test -n "$tagname"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15024 | echo appending configuration tag "$tagname" to $ofile | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15025 |  | 
|  | 15026 | case $tagname in | 
|  | 15027 | CXX) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15028 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
|  | 15029 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
|  | 15030 | (test "X$CXX" != "Xg++"))) ; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15031 | ac_ext=cc | 
|  | 15032 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 15033 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 15034 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 15035 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 15036 |  | 
|  | 15037 |  | 
|  | 15038 |  | 
|  | 15039 |  | 
|  | 15040 | archive_cmds_need_lc_CXX=no | 
|  | 15041 | allow_undefined_flag_CXX= | 
|  | 15042 | always_export_symbols_CXX=no | 
|  | 15043 | archive_expsym_cmds_CXX= | 
|  | 15044 | export_dynamic_flag_spec_CXX= | 
|  | 15045 | hardcode_direct_CXX=no | 
|  | 15046 | hardcode_libdir_flag_spec_CXX= | 
|  | 15047 | hardcode_libdir_flag_spec_ld_CXX= | 
|  | 15048 | hardcode_libdir_separator_CXX= | 
|  | 15049 | hardcode_minus_L_CXX=no | 
|  | 15050 | hardcode_automatic_CXX=no | 
|  | 15051 | module_cmds_CXX= | 
|  | 15052 | module_expsym_cmds_CXX= | 
|  | 15053 | link_all_deplibs_CXX=unknown | 
|  | 15054 | old_archive_cmds_CXX=$old_archive_cmds | 
|  | 15055 | no_undefined_flag_CXX= | 
|  | 15056 | whole_archive_flag_spec_CXX= | 
|  | 15057 | enable_shared_with_static_runtimes_CXX=no | 
|  | 15058 |  | 
|  | 15059 | # Dependencies to place before and after the object being linked: | 
|  | 15060 | predep_objects_CXX= | 
|  | 15061 | postdep_objects_CXX= | 
|  | 15062 | predeps_CXX= | 
|  | 15063 | postdeps_CXX= | 
|  | 15064 | compiler_lib_search_path_CXX= | 
|  | 15065 |  | 
|  | 15066 | # Source file extension for C++ test sources. | 
|  | 15067 | ac_ext=cc | 
|  | 15068 |  | 
|  | 15069 | # Object file extension for compiled C++ test sources. | 
|  | 15070 | objext=o | 
|  | 15071 | objext_CXX=$objext | 
|  | 15072 |  | 
|  | 15073 | # Code to be used in simple compile tests | 
|  | 15074 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
|  | 15075 |  | 
|  | 15076 | # Code to be used in simple link tests | 
|  | 15077 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 
|  | 15078 |  | 
|  | 15079 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 15080 |  | 
|  | 15081 | # If no C compiler was specified, use CC. | 
|  | 15082 | LTCC=${LTCC-"$CC"} | 
|  | 15083 |  | 
|  | 15084 | # Allow CC to be a program name with arguments. | 
|  | 15085 | compiler=$CC | 
|  | 15086 |  | 
|  | 15087 |  | 
|  | 15088 | # Allow CC to be a program name with arguments. | 
|  | 15089 | lt_save_CC=$CC | 
|  | 15090 | lt_save_LD=$LD | 
|  | 15091 | lt_save_GCC=$GCC | 
|  | 15092 | GCC=$GXX | 
|  | 15093 | lt_save_with_gnu_ld=$with_gnu_ld | 
|  | 15094 | lt_save_path_LD=$lt_cv_path_LD | 
|  | 15095 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
|  | 15096 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
|  | 15097 | else | 
|  | 15098 | unset lt_cv_prog_gnu_ld | 
|  | 15099 | fi | 
|  | 15100 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
|  | 15101 | lt_cv_path_LD=$lt_cv_path_LDCXX | 
|  | 15102 | else | 
|  | 15103 | unset lt_cv_path_LD | 
|  | 15104 | fi | 
|  | 15105 | test -z "${LDCXX+set}" || LD=$LDCXX | 
|  | 15106 | CC=${CXX-"c++"} | 
|  | 15107 | compiler=$CC | 
|  | 15108 | compiler_CXX=$CC | 
|  | 15109 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
|  | 15110 |  | 
|  | 15111 | # We don't want -fno-exception wen compiling C++ code, so set the | 
|  | 15112 | # no_builtin_flag separately | 
|  | 15113 | if test "$GXX" = yes; then | 
|  | 15114 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
|  | 15115 | else | 
|  | 15116 | lt_prog_compiler_no_builtin_flag_CXX= | 
|  | 15117 | fi | 
|  | 15118 |  | 
|  | 15119 | if test "$GXX" = yes; then | 
|  | 15120 | # Set up default GNU C++ configuration | 
|  | 15121 |  | 
|  | 15122 |  | 
|  | 15123 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|  | 15124 | if test "${with_gnu_ld+set}" = set; then | 
|  | 15125 | withval="$with_gnu_ld" | 
|  | 15126 | test "$withval" = no || with_gnu_ld=yes | 
|  | 15127 | else | 
|  | 15128 | with_gnu_ld=no | 
|  | 15129 | fi; | 
|  | 15130 | ac_prog=ld | 
|  | 15131 | if test "$GCC" = yes; then | 
|  | 15132 | # Check if gcc -print-prog-name=ld gives a path. | 
|  | 15133 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
|  | 15134 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
|  | 15135 | case $host in | 
|  | 15136 | *-*-mingw*) | 
|  | 15137 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 15138 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 15139 | *) | 
|  | 15140 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 15141 | esac | 
|  | 15142 | case $ac_prog in | 
|  | 15143 | # Accept absolute paths. | 
|  | 15144 | [\\/]* | ?:[\\/]*) | 
|  | 15145 | re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15146 | # Canonicalize the pathname of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15147 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
|  | 15148 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
|  | 15149 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
|  | 15150 | done | 
|  | 15151 | test -z "$LD" && LD="$ac_prog" | 
|  | 15152 | ;; | 
|  | 15153 | "") | 
|  | 15154 | # If it fails, then pretend we aren't using GCC. | 
|  | 15155 | ac_prog=ld | 
|  | 15156 | ;; | 
|  | 15157 | *) | 
|  | 15158 | # If it is relative, then search for the first ld in PATH. | 
|  | 15159 | with_gnu_ld=unknown | 
|  | 15160 | ;; | 
|  | 15161 | esac | 
|  | 15162 | elif test "$with_gnu_ld" = yes; then | 
|  | 15163 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
|  | 15164 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
|  | 15165 | else | 
|  | 15166 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
|  | 15167 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
|  | 15168 | fi | 
|  | 15169 | if test "${lt_cv_path_LD+set}" = set; then | 
|  | 15170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15171 | else | 
|  | 15172 | if test -z "$LD"; then | 
|  | 15173 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 15174 | for ac_dir in $PATH; do | 
|  | 15175 | IFS="$lt_save_ifs" | 
|  | 15176 | test -z "$ac_dir" && ac_dir=. | 
|  | 15177 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 15178 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 15179 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 15180 | # but apparently some GNU ld's only accept -v. | 
|  | 15181 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|  | 15182 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 15183 | *GNU* | *'with BFD'*) | 
|  | 15184 | test "$with_gnu_ld" != no && break | 
|  | 15185 | ;; | 
|  | 15186 | *) | 
|  | 15187 | test "$with_gnu_ld" != yes && break | 
|  | 15188 | ;; | 
|  | 15189 | esac | 
|  | 15190 | fi | 
|  | 15191 | done | 
|  | 15192 | IFS="$lt_save_ifs" | 
|  | 15193 | else | 
|  | 15194 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 15195 | fi | 
|  | 15196 | fi | 
|  | 15197 |  | 
|  | 15198 | LD="$lt_cv_path_LD" | 
|  | 15199 | if test -n "$LD"; then | 
|  | 15200 | echo "$as_me:$LINENO: result: $LD" >&5 | 
|  | 15201 | echo "${ECHO_T}$LD" >&6 | 
|  | 15202 | else | 
|  | 15203 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 15204 | echo "${ECHO_T}no" >&6 | 
|  | 15205 | fi | 
|  | 15206 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
|  | 15207 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
|  | 15208 | { (exit 1); exit 1; }; } | 
|  | 15209 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
|  | 15210 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
|  | 15211 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
|  | 15212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 15213 | else | 
|  | 15214 | # 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] | 15215 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15216 | *GNU* | *'with BFD'*) | 
|  | 15217 | lt_cv_prog_gnu_ld=yes | 
|  | 15218 | ;; | 
|  | 15219 | *) | 
|  | 15220 | lt_cv_prog_gnu_ld=no | 
|  | 15221 | ;; | 
|  | 15222 | esac | 
|  | 15223 | fi | 
|  | 15224 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
|  | 15225 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
|  | 15226 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 15227 |  | 
|  | 15228 |  | 
|  | 15229 |  | 
|  | 15230 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
|  | 15231 | # archiving commands below assume that GNU ld is being used. | 
|  | 15232 | if test "$with_gnu_ld" = yes; then | 
|  | 15233 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 15234 | 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' | 
|  | 15235 |  | 
|  | 15236 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
|  | 15237 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 15238 |  | 
|  | 15239 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 15240 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
|  | 15241 | #     investigate it a little bit more. (MM) | 
|  | 15242 | wlarc='${wl}' | 
|  | 15243 |  | 
|  | 15244 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 15245 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
|  | 15246 | grep 'no-whole-archive' > /dev/null; then | 
|  | 15247 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 15248 | else | 
|  | 15249 | whole_archive_flag_spec_CXX= | 
|  | 15250 | fi | 
|  | 15251 | else | 
|  | 15252 | with_gnu_ld=no | 
|  | 15253 | wlarc= | 
|  | 15254 |  | 
|  | 15255 | # A generic and very simple default shared library creation | 
|  | 15256 | # command for GNU C++ for the case where it uses the native | 
|  | 15257 | # linker, instead of GNU ld.  If possible, this setting should | 
|  | 15258 | # overridden to take advantage of the native linker features on | 
|  | 15259 | # the platform it is being used on. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15260 | 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] | 15261 | fi | 
|  | 15262 |  | 
|  | 15263 | # Commands to make compiler produce verbose output that lists | 
|  | 15264 | # what "hidden" libraries, object files and flags are used when | 
|  | 15265 | # linking a shared library. | 
|  | 15266 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 15267 |  | 
|  | 15268 | else | 
|  | 15269 | GXX=no | 
|  | 15270 | with_gnu_ld=no | 
|  | 15271 | wlarc= | 
|  | 15272 | fi | 
|  | 15273 |  | 
|  | 15274 | # PORTME: fill in a description of your system's C++ link characteristics | 
|  | 15275 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 15276 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 15277 | ld_shlibs_CXX=yes | 
|  | 15278 | case $host_os in | 
|  | 15279 | aix3*) | 
|  | 15280 | # FIXME: insert proper C++ library support | 
|  | 15281 | ld_shlibs_CXX=no | 
|  | 15282 | ;; | 
|  | 15283 | aix4* | aix5*) | 
|  | 15284 | if test "$host_cpu" = ia64; then | 
|  | 15285 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 15286 | # have to do anything special. | 
|  | 15287 | aix_use_runtimelinking=no | 
|  | 15288 | exp_sym_flag='-Bexport' | 
|  | 15289 | no_entry_flag="" | 
|  | 15290 | else | 
|  | 15291 | aix_use_runtimelinking=no | 
|  | 15292 |  | 
|  | 15293 | # Test if we are trying to use run time linking or normal | 
|  | 15294 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 15295 | # need to do runtime linking. | 
|  | 15296 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 15297 | for ld_flag in $LDFLAGS; do | 
|  | 15298 | case $ld_flag in | 
|  | 15299 | *-brtl*) | 
|  | 15300 | aix_use_runtimelinking=yes | 
|  | 15301 | break | 
|  | 15302 | ;; | 
|  | 15303 | esac | 
|  | 15304 | done | 
|  | 15305 | esac | 
|  | 15306 |  | 
|  | 15307 | exp_sym_flag='-bexport' | 
|  | 15308 | no_entry_flag='-bnoentry' | 
|  | 15309 | fi | 
|  | 15310 |  | 
|  | 15311 | # When large executables or shared objects are built, AIX ld can | 
|  | 15312 | # have problems creating the table of contents.  If linking a library | 
|  | 15313 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 15314 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 15315 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 15316 |  | 
|  | 15317 | archive_cmds_CXX='' | 
|  | 15318 | hardcode_direct_CXX=yes | 
|  | 15319 | hardcode_libdir_separator_CXX=':' | 
|  | 15320 | link_all_deplibs_CXX=yes | 
|  | 15321 |  | 
|  | 15322 | if test "$GXX" = yes; then | 
|  | 15323 | case $host_os in aix4.012|aix4.012.*) | 
|  | 15324 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 15325 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 15326 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 15327 | if test -f "$collect2name" && \ | 
|  | 15328 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 15329 | then | 
|  | 15330 | # We have reworked collect2 | 
|  | 15331 | hardcode_direct_CXX=yes | 
|  | 15332 | else | 
|  | 15333 | # We have old collect2 | 
|  | 15334 | hardcode_direct_CXX=unsupported | 
|  | 15335 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 15336 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 15337 | # to unsupported forces relinking | 
|  | 15338 | hardcode_minus_L_CXX=yes | 
|  | 15339 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 15340 | hardcode_libdir_separator_CXX= | 
|  | 15341 | fi | 
|  | 15342 | esac | 
|  | 15343 | shared_flag='-shared' | 
|  | 15344 | else | 
|  | 15345 | # not using gcc | 
|  | 15346 | if test "$host_cpu" = ia64; then | 
|  | 15347 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 15348 | # chokes on -Wl,-G. The following line is correct: | 
|  | 15349 | shared_flag='-G' | 
|  | 15350 | else | 
|  | 15351 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 15352 | shared_flag='${wl}-G' | 
|  | 15353 | else | 
|  | 15354 | shared_flag='${wl}-bM:SRE' | 
|  | 15355 | fi | 
|  | 15356 | fi | 
|  | 15357 | fi | 
|  | 15358 |  | 
|  | 15359 | # It seems that -bexpall does not export symbols beginning with | 
|  | 15360 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 15361 | always_export_symbols_CXX=yes | 
|  | 15362 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 15363 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 15364 | # -berok will link without error, but may produce a broken library. | 
|  | 15365 | allow_undefined_flag_CXX='-berok' | 
|  | 15366 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 15367 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15368 | /* confdefs.h.  */ | 
|  | 15369 | _ACEOF | 
|  | 15370 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15371 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15372 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15373 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15374 | int | 
|  | 15375 | main () | 
|  | 15376 | { | 
|  | 15377 |  | 
|  | 15378 | ; | 
|  | 15379 | return 0; | 
|  | 15380 | } | 
|  | 15381 | _ACEOF | 
|  | 15382 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 15383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15384 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15385 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15386 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15387 | rm -f conftest.er1 | 
|  | 15388 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15390 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15391 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 15392 | || test ! -s conftest.err' | 
|  | 15393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 15394 | (eval $ac_try) 2>&5 | 
|  | 15395 | ac_status=$? | 
|  | 15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15397 | (exit $ac_status); }; } && | 
|  | 15398 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 15400 | (eval $ac_try) 2>&5 | 
|  | 15401 | ac_status=$? | 
|  | 15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15403 | (exit $ac_status); }; }; then | 
|  | 15404 |  | 
|  | 15405 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 15406 | }'` | 
|  | 15407 | # Check for a 64-bit object if we didn't find anything. | 
|  | 15408 | 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; } | 
|  | 15409 | }'`; fi | 
|  | 15410 | else | 
|  | 15411 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15412 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15413 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15414 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15415 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 15416 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15417 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 15418 |  | 
|  | 15419 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 15420 |  | 
|  | 15421 | 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" | 
|  | 15422 | else | 
|  | 15423 | if test "$host_cpu" = ia64; then | 
|  | 15424 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 15425 | allow_undefined_flag_CXX="-z nodefs" | 
|  | 15426 | 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" | 
|  | 15427 | else | 
|  | 15428 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 15429 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15430 | /* confdefs.h.  */ | 
|  | 15431 | _ACEOF | 
|  | 15432 | cat confdefs.h >>conftest.$ac_ext | 
|  | 15433 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 15434 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15435 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15436 | int | 
|  | 15437 | main () | 
|  | 15438 | { | 
|  | 15439 |  | 
|  | 15440 | ; | 
|  | 15441 | return 0; | 
|  | 15442 | } | 
|  | 15443 | _ACEOF | 
|  | 15444 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 15445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15446 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15447 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15448 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 15449 | rm -f conftest.er1 | 
|  | 15450 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15452 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15453 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 15454 | || test ! -s conftest.err' | 
|  | 15455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 15456 | (eval $ac_try) 2>&5 | 
|  | 15457 | ac_status=$? | 
|  | 15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15459 | (exit $ac_status); }; } && | 
|  | 15460 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 15462 | (eval $ac_try) 2>&5 | 
|  | 15463 | ac_status=$? | 
|  | 15464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 15465 | (exit $ac_status); }; }; then | 
|  | 15466 |  | 
|  | 15467 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 15468 | }'` | 
|  | 15469 | # Check for a 64-bit object if we didn't find anything. | 
|  | 15470 | 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; } | 
|  | 15471 | }'`; fi | 
|  | 15472 | else | 
|  | 15473 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15474 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 15475 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15476 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15477 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 15478 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15479 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 15480 |  | 
|  | 15481 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 15482 | # Warning - without using the other run time loading flags, | 
|  | 15483 | # -berok will link without error, but may produce a broken library. | 
|  | 15484 | no_undefined_flag_CXX=' ${wl}-bernotok' | 
|  | 15485 | allow_undefined_flag_CXX=' ${wl}-berok' | 
|  | 15486 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 15487 | always_export_symbols_CXX=yes | 
|  | 15488 | # Exported symbols can be pulled into shared objects from archives | 
|  | 15489 | whole_archive_flag_spec_CXX=' ' | 
|  | 15490 | archive_cmds_need_lc_CXX=yes | 
|  | 15491 | # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15492 | 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] | 15493 | fi | 
|  | 15494 | fi | 
|  | 15495 | ;; | 
|  | 15496 | chorus*) | 
|  | 15497 | case $cc_basename in | 
|  | 15498 | *) | 
|  | 15499 | # FIXME: insert proper C++ library support | 
|  | 15500 | ld_shlibs_CXX=no | 
|  | 15501 | ;; | 
|  | 15502 | esac | 
|  | 15503 | ;; | 
|  | 15504 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15505 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15506 | cygwin* | mingw* | pw32*) | 
|  | 15507 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
|  | 15508 | # as there is no search path for DLLs. | 
|  | 15509 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 15510 | allow_undefined_flag_CXX=unsupported | 
|  | 15511 | always_export_symbols_CXX=no | 
|  | 15512 | enable_shared_with_static_runtimes_CXX=yes | 
|  | 15513 |  | 
|  | 15514 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 15515 | 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' | 
|  | 15516 | # If the export-symbols file already is a .def file (1st line | 
|  | 15517 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 15518 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 15519 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 15520 | else | 
|  | 15521 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 15522 | cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15523 | fi~ | 
|  | 15524 | $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] | 15525 | else | 
|  | 15526 | ld_shlibs_CXX=no | 
|  | 15527 | fi | 
|  | 15528 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15529 | darwin* | rhapsody*) | 
|  | 15530 | case "$host_os" in | 
|  | 15531 | rhapsody* | darwin1.[012]) | 
|  | 15532 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | 
|  | 15533 | ;; | 
|  | 15534 | *) # Darwin 1.3 on | 
|  | 15535 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
|  | 15536 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 15537 | else | 
|  | 15538 | case ${MACOSX_DEPLOYMENT_TARGET} in | 
|  | 15539 | 10.[012]) | 
|  | 15540 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 15541 | ;; | 
|  | 15542 | 10.*) | 
|  | 15543 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | 
|  | 15544 | ;; | 
|  | 15545 | esac | 
|  | 15546 | fi | 
|  | 15547 | ;; | 
|  | 15548 | esac | 
|  | 15549 | archive_cmds_need_lc_CXX=no | 
|  | 15550 | hardcode_direct_CXX=no | 
|  | 15551 | hardcode_automatic_CXX=yes | 
|  | 15552 | hardcode_shlibpath_var_CXX=unsupported | 
|  | 15553 | whole_archive_flag_spec_CXX='' | 
|  | 15554 | link_all_deplibs_CXX=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15555 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15556 | if test "$GXX" = yes ; then | 
|  | 15557 | lt_int_apple_cc_single_mod=no | 
|  | 15558 | output_verbose_link_cmd='echo' | 
|  | 15559 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | 
|  | 15560 | lt_int_apple_cc_single_mod=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15561 | fi | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15562 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15563 | 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] | 15564 | else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15565 | 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] | 15566 | fi | 
|  | 15567 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 15568 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
|  | 15569 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15570 | 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] | 15571 | else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15572 | 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] | 15573 | fi | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15574 | 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] | 15575 | else | 
|  | 15576 | case "$cc_basename" in | 
|  | 15577 | xlc*) | 
|  | 15578 | output_verbose_link_cmd='echo' | 
|  | 15579 | 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' | 
|  | 15580 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 15581 | # 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] | 15582 | 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}' | 
|  | 15583 | 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] | 15584 | ;; | 
|  | 15585 | *) | 
|  | 15586 | ld_shlibs_CXX=no | 
|  | 15587 | ;; | 
|  | 15588 | esac | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15589 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15590 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15591 |  | 
|  | 15592 | dgux*) | 
|  | 15593 | case $cc_basename in | 
|  | 15594 | ec++) | 
|  | 15595 | # FIXME: insert proper C++ library support | 
|  | 15596 | ld_shlibs_CXX=no | 
|  | 15597 | ;; | 
|  | 15598 | ghcx) | 
|  | 15599 | # Green Hills C++ Compiler | 
|  | 15600 | # FIXME: insert proper C++ library support | 
|  | 15601 | ld_shlibs_CXX=no | 
|  | 15602 | ;; | 
|  | 15603 | *) | 
|  | 15604 | # FIXME: insert proper C++ library support | 
|  | 15605 | ld_shlibs_CXX=no | 
|  | 15606 | ;; | 
|  | 15607 | esac | 
|  | 15608 | ;; | 
|  | 15609 | freebsd12*) | 
|  | 15610 | # C++ shared libraries reported to be fairly broken before switch to ELF | 
|  | 15611 | ld_shlibs_CXX=no | 
|  | 15612 | ;; | 
|  | 15613 | freebsd-elf*) | 
|  | 15614 | archive_cmds_need_lc_CXX=no | 
|  | 15615 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15616 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15617 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
|  | 15618 | # conventions | 
|  | 15619 | ld_shlibs_CXX=yes | 
|  | 15620 | ;; | 
|  | 15621 | gnu*) | 
|  | 15622 | ;; | 
|  | 15623 | hpux9*) | 
|  | 15624 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 15625 | hardcode_libdir_separator_CXX=: | 
|  | 15626 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 15627 | hardcode_direct_CXX=yes | 
|  | 15628 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 15629 | # but as the default | 
|  | 15630 | # location of the library. | 
|  | 15631 |  | 
|  | 15632 | case $cc_basename in | 
|  | 15633 | CC) | 
|  | 15634 | # FIXME: insert proper C++ library support | 
|  | 15635 | ld_shlibs_CXX=no | 
|  | 15636 | ;; | 
|  | 15637 | aCC) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15638 | 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] | 15639 | # Commands to make compiler produce verbose output that lists | 
|  | 15640 | # what "hidden" libraries, object files and flags are used when | 
|  | 15641 | # linking a shared library. | 
|  | 15642 | # | 
|  | 15643 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 15644 | # explicitly linking system object files so we need to strip them | 
|  | 15645 | # from the output so that they don't get included in the library | 
|  | 15646 | # dependencies. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15647 | 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] | 15648 | ;; | 
|  | 15649 | *) | 
|  | 15650 | if test "$GXX" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15651 | 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] | 15652 | else | 
|  | 15653 | # FIXME: insert proper C++ library support | 
|  | 15654 | ld_shlibs_CXX=no | 
|  | 15655 | fi | 
|  | 15656 | ;; | 
|  | 15657 | esac | 
|  | 15658 | ;; | 
|  | 15659 | hpux10*|hpux11*) | 
|  | 15660 | if test $with_gnu_ld = no; then | 
|  | 15661 | case "$host_cpu" in | 
|  | 15662 | hppa*64*) | 
|  | 15663 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 15664 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
|  | 15665 | hardcode_libdir_separator_CXX=: | 
|  | 15666 | ;; | 
|  | 15667 | ia64*) | 
|  | 15668 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 15669 | ;; | 
|  | 15670 | *) | 
|  | 15671 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 15672 | hardcode_libdir_separator_CXX=: | 
|  | 15673 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 15674 | ;; | 
|  | 15675 | esac | 
|  | 15676 | fi | 
|  | 15677 | case "$host_cpu" in | 
|  | 15678 | hppa*64*) | 
|  | 15679 | hardcode_direct_CXX=no | 
|  | 15680 | hardcode_shlibpath_var_CXX=no | 
|  | 15681 | ;; | 
|  | 15682 | ia64*) | 
|  | 15683 | hardcode_direct_CXX=no | 
|  | 15684 | hardcode_shlibpath_var_CXX=no | 
|  | 15685 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 15686 | # but as the default | 
|  | 15687 | # location of the library. | 
|  | 15688 | ;; | 
|  | 15689 | *) | 
|  | 15690 | hardcode_direct_CXX=yes | 
|  | 15691 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 15692 | # but as the default | 
|  | 15693 | # location of the library. | 
|  | 15694 | ;; | 
|  | 15695 | esac | 
|  | 15696 |  | 
|  | 15697 | case $cc_basename in | 
|  | 15698 | CC) | 
|  | 15699 | # FIXME: insert proper C++ library support | 
|  | 15700 | ld_shlibs_CXX=no | 
|  | 15701 | ;; | 
|  | 15702 | aCC) | 
|  | 15703 | case "$host_cpu" in | 
|  | 15704 | hppa*64*|ia64*) | 
|  | 15705 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
|  | 15706 | ;; | 
|  | 15707 | *) | 
|  | 15708 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 15709 | ;; | 
|  | 15710 | esac | 
|  | 15711 | # Commands to make compiler produce verbose output that lists | 
|  | 15712 | # what "hidden" libraries, object files and flags are used when | 
|  | 15713 | # linking a shared library. | 
|  | 15714 | # | 
|  | 15715 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 15716 | # explicitly linking system object files so we need to strip them | 
|  | 15717 | # from the output so that they don't get included in the library | 
|  | 15718 | # dependencies. | 
|  | 15719 | 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' | 
|  | 15720 | ;; | 
|  | 15721 | *) | 
|  | 15722 | if test "$GXX" = yes; then | 
|  | 15723 | if test $with_gnu_ld = no; then | 
|  | 15724 | case "$host_cpu" in | 
|  | 15725 | ia64*|hppa*64*) | 
|  | 15726 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
|  | 15727 | ;; | 
|  | 15728 | *) | 
|  | 15729 | 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' | 
|  | 15730 | ;; | 
|  | 15731 | esac | 
|  | 15732 | fi | 
|  | 15733 | else | 
|  | 15734 | # FIXME: insert proper C++ library support | 
|  | 15735 | ld_shlibs_CXX=no | 
|  | 15736 | fi | 
|  | 15737 | ;; | 
|  | 15738 | esac | 
|  | 15739 | ;; | 
|  | 15740 | irix5* | irix6*) | 
|  | 15741 | case $cc_basename in | 
|  | 15742 | CC) | 
|  | 15743 | # SGI C++ | 
|  | 15744 | 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' | 
|  | 15745 |  | 
|  | 15746 | # Archives containing C++ object files must be created using | 
|  | 15747 | # "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
|  | 15748 | # necessary to make sure instantiated templates are included | 
|  | 15749 | # in the archive. | 
|  | 15750 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
|  | 15751 | ;; | 
|  | 15752 | *) | 
|  | 15753 | if test "$GXX" = yes; then | 
|  | 15754 | if test "$with_gnu_ld" = no; then | 
|  | 15755 | 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' | 
|  | 15756 | else | 
|  | 15757 | 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' | 
|  | 15758 | fi | 
|  | 15759 | fi | 
|  | 15760 | link_all_deplibs_CXX=yes | 
|  | 15761 | ;; | 
|  | 15762 | esac | 
|  | 15763 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 15764 | hardcode_libdir_separator_CXX=: | 
|  | 15765 | ;; | 
|  | 15766 | linux*) | 
|  | 15767 | case $cc_basename in | 
|  | 15768 | KCC) | 
|  | 15769 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 15770 |  | 
|  | 15771 | # KCC will only create a shared library if the output file | 
|  | 15772 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 15773 | # to its proper name (with version) after linking. | 
|  | 15774 | 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' | 
|  | 15775 | 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' | 
|  | 15776 | # Commands to make compiler produce verbose output that lists | 
|  | 15777 | # what "hidden" libraries, object files and flags are used when | 
|  | 15778 | # linking a shared library. | 
|  | 15779 | # | 
|  | 15780 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 15781 | # explicitly linking system object files so we need to strip them | 
|  | 15782 | # from the output so that they don't get included in the library | 
|  | 15783 | # dependencies. | 
|  | 15784 | 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' | 
|  | 15785 |  | 
|  | 15786 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
|  | 15787 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 15788 |  | 
|  | 15789 | # Archives containing C++ object files must be created using | 
|  | 15790 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
|  | 15791 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
|  | 15792 | ;; | 
|  | 15793 | icpc) | 
|  | 15794 | # Intel C++ | 
|  | 15795 | with_gnu_ld=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15796 | # version 8.0 and above of icpc choke on multiply defined symbols | 
|  | 15797 | # if we add $predep_objects and $postdep_objects, however 7.1 and | 
|  | 15798 | # earlier do not add the objects themselves. | 
|  | 15799 | case `$CC -V 2>&1` in | 
|  | 15800 | *"Version 7."*) | 
|  | 15801 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 15802 | 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' | 
|  | 15803 | ;; | 
|  | 15804 | *)  # Version 8.0 or newer | 
|  | 15805 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 15806 | archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 15807 | ;; | 
|  | 15808 | esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15809 | archive_cmds_need_lc_CXX=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15810 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 15811 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 15812 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 15813 | ;; | 
|  | 15814 | cxx) | 
|  | 15815 | # Compaq C++ | 
|  | 15816 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 15817 | 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' | 
|  | 15818 |  | 
|  | 15819 | runpath_var=LD_RUN_PATH | 
|  | 15820 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 15821 | hardcode_libdir_separator_CXX=: | 
|  | 15822 |  | 
|  | 15823 | # Commands to make compiler produce verbose output that lists | 
|  | 15824 | # what "hidden" libraries, object files and flags are used when | 
|  | 15825 | # linking a shared library. | 
|  | 15826 | # | 
|  | 15827 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 15828 | # explicitly linking system object files so we need to strip them | 
|  | 15829 | # from the output so that they don't get included in the library | 
|  | 15830 | # dependencies. | 
|  | 15831 | 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' | 
|  | 15832 | ;; | 
|  | 15833 | esac | 
|  | 15834 | ;; | 
|  | 15835 | lynxos*) | 
|  | 15836 | # FIXME: insert proper C++ library support | 
|  | 15837 | ld_shlibs_CXX=no | 
|  | 15838 | ;; | 
|  | 15839 | m88k*) | 
|  | 15840 | # FIXME: insert proper C++ library support | 
|  | 15841 | ld_shlibs_CXX=no | 
|  | 15842 | ;; | 
|  | 15843 | mvs*) | 
|  | 15844 | case $cc_basename in | 
|  | 15845 | cxx) | 
|  | 15846 | # FIXME: insert proper C++ library support | 
|  | 15847 | ld_shlibs_CXX=no | 
|  | 15848 | ;; | 
|  | 15849 | *) | 
|  | 15850 | # FIXME: insert proper C++ library support | 
|  | 15851 | ld_shlibs_CXX=no | 
|  | 15852 | ;; | 
|  | 15853 | esac | 
|  | 15854 | ;; | 
|  | 15855 | netbsd*) | 
|  | 15856 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 15857 | archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
|  | 15858 | wlarc= | 
|  | 15859 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 15860 | hardcode_direct_CXX=yes | 
|  | 15861 | hardcode_shlibpath_var_CXX=no | 
|  | 15862 | fi | 
|  | 15863 | # Workaround some broken pre-1.5 toolchains | 
|  | 15864 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
|  | 15865 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15866 | openbsd2*) | 
|  | 15867 | # C++ shared libraries are fairly broken | 
|  | 15868 | ld_shlibs_CXX=no | 
|  | 15869 | ;; | 
|  | 15870 | openbsd*) | 
|  | 15871 | hardcode_direct_CXX=yes | 
|  | 15872 | hardcode_shlibpath_var_CXX=no | 
|  | 15873 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
|  | 15874 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 15875 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 15876 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
|  | 15877 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 15878 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 15879 | fi | 
|  | 15880 | output_verbose_link_cmd='echo' | 
|  | 15881 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15882 | osf3*) | 
|  | 15883 | case $cc_basename in | 
|  | 15884 | KCC) | 
|  | 15885 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 15886 |  | 
|  | 15887 | # KCC will only create a shared library if the output file | 
|  | 15888 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 15889 | # to its proper name (with version) after linking. | 
|  | 15890 | 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' | 
|  | 15891 |  | 
|  | 15892 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 15893 | hardcode_libdir_separator_CXX=: | 
|  | 15894 |  | 
|  | 15895 | # Archives containing C++ object files must be created using | 
|  | 15896 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
|  | 15897 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
|  | 15898 |  | 
|  | 15899 | ;; | 
|  | 15900 | RCC) | 
|  | 15901 | # Rational C++ 2.4.1 | 
|  | 15902 | # FIXME: insert proper C++ library support | 
|  | 15903 | ld_shlibs_CXX=no | 
|  | 15904 | ;; | 
|  | 15905 | cxx) | 
|  | 15906 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 15907 | 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' | 
|  | 15908 |  | 
|  | 15909 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 15910 | hardcode_libdir_separator_CXX=: | 
|  | 15911 |  | 
|  | 15912 | # Commands to make compiler produce verbose output that lists | 
|  | 15913 | # what "hidden" libraries, object files and flags are used when | 
|  | 15914 | # linking a shared library. | 
|  | 15915 | # | 
|  | 15916 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 15917 | # explicitly linking system object files so we need to strip them | 
|  | 15918 | # from the output so that they don't get included in the library | 
|  | 15919 | # dependencies. | 
|  | 15920 | 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' | 
|  | 15921 | ;; | 
|  | 15922 | *) | 
|  | 15923 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 15924 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 15925 | 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' | 
|  | 15926 |  | 
|  | 15927 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 15928 | hardcode_libdir_separator_CXX=: | 
|  | 15929 |  | 
|  | 15930 | # Commands to make compiler produce verbose output that lists | 
|  | 15931 | # what "hidden" libraries, object files and flags are used when | 
|  | 15932 | # linking a shared library. | 
|  | 15933 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 15934 |  | 
|  | 15935 | else | 
|  | 15936 | # FIXME: insert proper C++ library support | 
|  | 15937 | ld_shlibs_CXX=no | 
|  | 15938 | fi | 
|  | 15939 | ;; | 
|  | 15940 | esac | 
|  | 15941 | ;; | 
|  | 15942 | osf4* | osf5*) | 
|  | 15943 | case $cc_basename in | 
|  | 15944 | KCC) | 
|  | 15945 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 15946 |  | 
|  | 15947 | # KCC will only create a shared library if the output file | 
|  | 15948 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 15949 | # to its proper name (with version) after linking. | 
|  | 15950 | 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' | 
|  | 15951 |  | 
|  | 15952 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 15953 | hardcode_libdir_separator_CXX=: | 
|  | 15954 |  | 
|  | 15955 | # Archives containing C++ object files must be created using | 
|  | 15956 | # the KAI C++ compiler. | 
|  | 15957 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
|  | 15958 | ;; | 
|  | 15959 | RCC) | 
|  | 15960 | # Rational C++ 2.4.1 | 
|  | 15961 | # FIXME: insert proper C++ library support | 
|  | 15962 | ld_shlibs_CXX=no | 
|  | 15963 | ;; | 
|  | 15964 | cxx) | 
|  | 15965 | allow_undefined_flag_CXX=' -expect_unresolved \*' | 
|  | 15966 | 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] | 15967 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
|  | 15968 | echo "-hidden">> $lib.exp~ | 
|  | 15969 | $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~ | 
|  | 15970 | $rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15971 |  | 
|  | 15972 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 15973 | hardcode_libdir_separator_CXX=: | 
|  | 15974 |  | 
|  | 15975 | # Commands to make compiler produce verbose output that lists | 
|  | 15976 | # what "hidden" libraries, object files and flags are used when | 
|  | 15977 | # linking a shared library. | 
|  | 15978 | # | 
|  | 15979 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 15980 | # explicitly linking system object files so we need to strip them | 
|  | 15981 | # from the output so that they don't get included in the library | 
|  | 15982 | # dependencies. | 
|  | 15983 | 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' | 
|  | 15984 | ;; | 
|  | 15985 | *) | 
|  | 15986 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 15987 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 15988 | 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' | 
|  | 15989 |  | 
|  | 15990 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 15991 | hardcode_libdir_separator_CXX=: | 
|  | 15992 |  | 
|  | 15993 | # Commands to make compiler produce verbose output that lists | 
|  | 15994 | # what "hidden" libraries, object files and flags are used when | 
|  | 15995 | # linking a shared library. | 
|  | 15996 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
|  | 15997 |  | 
|  | 15998 | else | 
|  | 15999 | # FIXME: insert proper C++ library support | 
|  | 16000 | ld_shlibs_CXX=no | 
|  | 16001 | fi | 
|  | 16002 | ;; | 
|  | 16003 | esac | 
|  | 16004 | ;; | 
|  | 16005 | psos*) | 
|  | 16006 | # FIXME: insert proper C++ library support | 
|  | 16007 | ld_shlibs_CXX=no | 
|  | 16008 | ;; | 
|  | 16009 | sco*) | 
|  | 16010 | archive_cmds_need_lc_CXX=no | 
|  | 16011 | case $cc_basename in | 
|  | 16012 | CC) | 
|  | 16013 | # FIXME: insert proper C++ library support | 
|  | 16014 | ld_shlibs_CXX=no | 
|  | 16015 | ;; | 
|  | 16016 | *) | 
|  | 16017 | # FIXME: insert proper C++ library support | 
|  | 16018 | ld_shlibs_CXX=no | 
|  | 16019 | ;; | 
|  | 16020 | esac | 
|  | 16021 | ;; | 
|  | 16022 | sunos4*) | 
|  | 16023 | case $cc_basename in | 
|  | 16024 | CC) | 
|  | 16025 | # Sun C++ 4.x | 
|  | 16026 | # FIXME: insert proper C++ library support | 
|  | 16027 | ld_shlibs_CXX=no | 
|  | 16028 | ;; | 
|  | 16029 | lcc) | 
|  | 16030 | # Lucid | 
|  | 16031 | # FIXME: insert proper C++ library support | 
|  | 16032 | ld_shlibs_CXX=no | 
|  | 16033 | ;; | 
|  | 16034 | *) | 
|  | 16035 | # FIXME: insert proper C++ library support | 
|  | 16036 | ld_shlibs_CXX=no | 
|  | 16037 | ;; | 
|  | 16038 | esac | 
|  | 16039 | ;; | 
|  | 16040 | solaris*) | 
|  | 16041 | case $cc_basename in | 
|  | 16042 | CC) | 
|  | 16043 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 16044 | no_undefined_flag_CXX=' -zdefs' | 
|  | 16045 | 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] | 16046 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 16047 | $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] | 16048 |  | 
|  | 16049 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 16050 | hardcode_shlibpath_var_CXX=no | 
|  | 16051 | case $host_os in | 
|  | 16052 | solaris2.0-5 | solaris2.0-5.*) ;; | 
|  | 16053 | *) | 
|  | 16054 | # The C++ compiler is used as linker so we must use $wl | 
|  | 16055 | # flag to pass the commands to the underlying system | 
|  | 16056 | # linker. | 
|  | 16057 | # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 16058 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
|  | 16059 | ;; | 
|  | 16060 | esac | 
|  | 16061 | link_all_deplibs_CXX=yes | 
|  | 16062 |  | 
|  | 16063 | # Commands to make compiler produce verbose output that lists | 
|  | 16064 | # what "hidden" libraries, object files and flags are used when | 
|  | 16065 | # linking a shared library. | 
|  | 16066 | # | 
|  | 16067 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 16068 | # explicitly linking system object files so we need to strip them | 
|  | 16069 | # from the output so that they don't get included in the library | 
|  | 16070 | # dependencies. | 
|  | 16071 | 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' | 
|  | 16072 |  | 
|  | 16073 | # Archives containing C++ object files must be created using | 
|  | 16074 | # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
|  | 16075 | # necessary to make sure instantiated templates are included | 
|  | 16076 | # in the archive. | 
|  | 16077 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
|  | 16078 | ;; | 
|  | 16079 | gcx) | 
|  | 16080 | # Green Hills C++ Compiler | 
|  | 16081 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 16082 |  | 
|  | 16083 | # The C++ compiler must be used to create the archive. | 
|  | 16084 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
|  | 16085 | ;; | 
|  | 16086 | *) | 
|  | 16087 | # GNU C++ compiler with Solaris linker | 
|  | 16088 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 16089 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
|  | 16090 | if $CC --version | grep -v '^2\.7' > /dev/null; then | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16091 | 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] | 16092 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 16093 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
|  | 16094 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16095 | # Commands to make compiler produce verbose output that lists | 
|  | 16096 | # what "hidden" libraries, object files and flags are used when | 
|  | 16097 | # linking a shared library. | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16098 | 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] | 16099 | else | 
|  | 16100 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
|  | 16101 | # platform. | 
|  | 16102 | 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] | 16103 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 16104 | $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] | 16105 |  | 
|  | 16106 | # Commands to make compiler produce verbose output that lists | 
|  | 16107 | # what "hidden" libraries, object files and flags are used when | 
|  | 16108 | # linking a shared library. | 
|  | 16109 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
|  | 16110 | fi | 
|  | 16111 |  | 
|  | 16112 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
|  | 16113 | fi | 
|  | 16114 | ;; | 
|  | 16115 | esac | 
|  | 16116 | ;; | 
|  | 16117 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 
|  | 16118 | archive_cmds_need_lc_CXX=no | 
|  | 16119 | ;; | 
|  | 16120 | tandem*) | 
|  | 16121 | case $cc_basename in | 
|  | 16122 | NCC) | 
|  | 16123 | # NonStop-UX NCC 3.20 | 
|  | 16124 | # FIXME: insert proper C++ library support | 
|  | 16125 | ld_shlibs_CXX=no | 
|  | 16126 | ;; | 
|  | 16127 | *) | 
|  | 16128 | # FIXME: insert proper C++ library support | 
|  | 16129 | ld_shlibs_CXX=no | 
|  | 16130 | ;; | 
|  | 16131 | esac | 
|  | 16132 | ;; | 
|  | 16133 | vxworks*) | 
|  | 16134 | # FIXME: insert proper C++ library support | 
|  | 16135 | ld_shlibs_CXX=no | 
|  | 16136 | ;; | 
|  | 16137 | *) | 
|  | 16138 | # FIXME: insert proper C++ library support | 
|  | 16139 | ld_shlibs_CXX=no | 
|  | 16140 | ;; | 
|  | 16141 | esac | 
|  | 16142 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
|  | 16143 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
|  | 16144 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 16145 |  | 
|  | 16146 | GCC_CXX="$GXX" | 
|  | 16147 | LD_CXX="$LD" | 
|  | 16148 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16149 |  | 
|  | 16150 | cat > conftest.$ac_ext <<EOF | 
|  | 16151 | class Foo | 
|  | 16152 | { | 
|  | 16153 | public: | 
|  | 16154 | Foo (void) { a = 0; } | 
|  | 16155 | private: | 
|  | 16156 | int a; | 
|  | 16157 | }; | 
|  | 16158 | EOF | 
|  | 16159 |  | 
|  | 16160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 16161 | (eval $ac_compile) 2>&5 | 
|  | 16162 | ac_status=$? | 
|  | 16163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16164 | (exit $ac_status); }; then | 
|  | 16165 | # Parse the compiler output and extract the necessary | 
|  | 16166 | # objects, libraries and library flags. | 
|  | 16167 |  | 
|  | 16168 | # Sentinel used to keep track of whether or not we are before | 
|  | 16169 | # the conftest object file. | 
|  | 16170 | pre_test_object_deps_done=no | 
|  | 16171 |  | 
|  | 16172 | # The `*' in the case matches for architectures that use `case' in | 
|  | 16173 | # $output_verbose_cmd can trigger glob expansion during the loop | 
|  | 16174 | # eval without this substitution. | 
|  | 16175 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 
|  | 16176 |  | 
|  | 16177 | for p in `eval $output_verbose_link_cmd`; do | 
|  | 16178 | case $p in | 
|  | 16179 |  | 
|  | 16180 | -L* | -R* | -l*) | 
|  | 16181 | # Some compilers place space between "-{L,R}" and the path. | 
|  | 16182 | # Remove the space. | 
|  | 16183 | if test $p = "-L" \ | 
|  | 16184 | || test $p = "-R"; then | 
|  | 16185 | prev=$p | 
|  | 16186 | continue | 
|  | 16187 | else | 
|  | 16188 | prev= | 
|  | 16189 | fi | 
|  | 16190 |  | 
|  | 16191 | if test "$pre_test_object_deps_done" = no; then | 
|  | 16192 | case $p in | 
|  | 16193 | -L* | -R*) | 
|  | 16194 | # Internal compiler library paths should come after those | 
|  | 16195 | # provided the user.  The postdeps already come after the | 
|  | 16196 | # user supplied libs so there is no need to process them. | 
|  | 16197 | if test -z "$compiler_lib_search_path_CXX"; then | 
|  | 16198 | compiler_lib_search_path_CXX="${prev}${p}" | 
|  | 16199 | else | 
|  | 16200 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
|  | 16201 | fi | 
|  | 16202 | ;; | 
|  | 16203 | # The "-l" case would never come before the object being | 
|  | 16204 | # linked, so don't bother handling this case. | 
|  | 16205 | esac | 
|  | 16206 | else | 
|  | 16207 | if test -z "$postdeps_CXX"; then | 
|  | 16208 | postdeps_CXX="${prev}${p}" | 
|  | 16209 | else | 
|  | 16210 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
|  | 16211 | fi | 
|  | 16212 | fi | 
|  | 16213 | ;; | 
|  | 16214 |  | 
|  | 16215 | *.$objext) | 
|  | 16216 | # This assumes that the test object file only shows up | 
|  | 16217 | # once in the compiler output. | 
|  | 16218 | if test "$p" = "conftest.$objext"; then | 
|  | 16219 | pre_test_object_deps_done=yes | 
|  | 16220 | continue | 
|  | 16221 | fi | 
|  | 16222 |  | 
|  | 16223 | if test "$pre_test_object_deps_done" = no; then | 
|  | 16224 | if test -z "$predep_objects_CXX"; then | 
|  | 16225 | predep_objects_CXX="$p" | 
|  | 16226 | else | 
|  | 16227 | predep_objects_CXX="$predep_objects_CXX $p" | 
|  | 16228 | fi | 
|  | 16229 | else | 
|  | 16230 | if test -z "$postdep_objects_CXX"; then | 
|  | 16231 | postdep_objects_CXX="$p" | 
|  | 16232 | else | 
|  | 16233 | postdep_objects_CXX="$postdep_objects_CXX $p" | 
|  | 16234 | fi | 
|  | 16235 | fi | 
|  | 16236 | ;; | 
|  | 16237 |  | 
|  | 16238 | *) ;; # Ignore the rest. | 
|  | 16239 |  | 
|  | 16240 | esac | 
|  | 16241 | done | 
|  | 16242 |  | 
|  | 16243 | # Clean up. | 
|  | 16244 | rm -f a.out a.exe | 
|  | 16245 | else | 
|  | 16246 | echo "libtool.m4: error: problem compiling CXX test program" | 
|  | 16247 | fi | 
|  | 16248 |  | 
|  | 16249 | $rm -f confest.$objext | 
|  | 16250 |  | 
|  | 16251 | case " $postdeps_CXX " in | 
|  | 16252 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
|  | 16253 | esac | 
|  | 16254 |  | 
|  | 16255 | lt_prog_compiler_wl_CXX= | 
|  | 16256 | lt_prog_compiler_pic_CXX= | 
|  | 16257 | lt_prog_compiler_static_CXX= | 
|  | 16258 |  | 
|  | 16259 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 16260 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 16261 |  | 
|  | 16262 | # C++ specific cases for pic, static, wl, etc. | 
|  | 16263 | if test "$GXX" = yes; then | 
|  | 16264 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 16265 | lt_prog_compiler_static_CXX='-static' | 
|  | 16266 |  | 
|  | 16267 | case $host_os in | 
|  | 16268 | aix*) | 
|  | 16269 | # All AIX code is PIC. | 
|  | 16270 | if test "$host_cpu" = ia64; then | 
|  | 16271 | # AIX 5 now supports IA64 processor | 
|  | 16272 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 16273 | fi | 
|  | 16274 | ;; | 
|  | 16275 | amigaos*) | 
|  | 16276 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 16277 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 16278 | # like `-m68040'. | 
|  | 16279 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
|  | 16280 | ;; | 
|  | 16281 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 16282 | # PIC is the default for these OSes. | 
|  | 16283 | ;; | 
|  | 16284 | mingw* | os2* | pw32*) | 
|  | 16285 | # This hack is so that the source file can tell whether it is being | 
|  | 16286 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 16287 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
|  | 16288 | ;; | 
|  | 16289 | darwin* | rhapsody*) | 
|  | 16290 | # PIC is the default on this platform | 
|  | 16291 | # Common symbols not allowed in MH_DYLIB files | 
|  | 16292 | lt_prog_compiler_pic_CXX='-fno-common' | 
|  | 16293 | ;; | 
|  | 16294 | *djgpp*) | 
|  | 16295 | # DJGPP does not support shared libraries at all | 
|  | 16296 | lt_prog_compiler_pic_CXX= | 
|  | 16297 | ;; | 
|  | 16298 | sysv4*MP*) | 
|  | 16299 | if test -d /usr/nec; then | 
|  | 16300 | lt_prog_compiler_pic_CXX=-Kconform_pic | 
|  | 16301 | fi | 
|  | 16302 | ;; | 
|  | 16303 | hpux*) | 
|  | 16304 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 16305 | # not for PA HP-UX. | 
|  | 16306 | case "$host_cpu" in | 
|  | 16307 | hppa*64*|ia64*) | 
|  | 16308 | ;; | 
|  | 16309 | *) | 
|  | 16310 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 16311 | ;; | 
|  | 16312 | esac | 
|  | 16313 | ;; | 
|  | 16314 | *) | 
|  | 16315 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 16316 | ;; | 
|  | 16317 | esac | 
|  | 16318 | else | 
|  | 16319 | case $host_os in | 
|  | 16320 | aix4* | aix5*) | 
|  | 16321 | # All AIX code is PIC. | 
|  | 16322 | if test "$host_cpu" = ia64; then | 
|  | 16323 | # AIX 5 now supports IA64 processor | 
|  | 16324 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 16325 | else | 
|  | 16326 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
|  | 16327 | fi | 
|  | 16328 | ;; | 
|  | 16329 | chorus*) | 
|  | 16330 | case $cc_basename in | 
|  | 16331 | cxch68) | 
|  | 16332 | # Green Hills C++ Compiler | 
|  | 16333 | # _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" | 
|  | 16334 | ;; | 
|  | 16335 | esac | 
|  | 16336 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16337 | darwin*) | 
|  | 16338 | # PIC is the default on this platform | 
|  | 16339 | # Common symbols not allowed in MH_DYLIB files | 
|  | 16340 | case "$cc_basename" in | 
|  | 16341 | xlc*) | 
|  | 16342 | lt_prog_compiler_pic_CXX='-qnocommon' | 
|  | 16343 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 16344 | ;; | 
|  | 16345 | esac | 
|  | 16346 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16347 | dgux*) | 
|  | 16348 | case $cc_basename in | 
|  | 16349 | ec++) | 
|  | 16350 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 16351 | ;; | 
|  | 16352 | ghcx) | 
|  | 16353 | # Green Hills C++ Compiler | 
|  | 16354 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 16355 | ;; | 
|  | 16356 | *) | 
|  | 16357 | ;; | 
|  | 16358 | esac | 
|  | 16359 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16360 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16361 | # FreeBSD uses GNU C++ | 
|  | 16362 | ;; | 
|  | 16363 | hpux9* | hpux10* | hpux11*) | 
|  | 16364 | case $cc_basename in | 
|  | 16365 | CC) | 
|  | 16366 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 16367 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
|  | 16368 | if test "$host_cpu" != ia64; then | 
|  | 16369 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 16370 | fi | 
|  | 16371 | ;; | 
|  | 16372 | aCC) | 
|  | 16373 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 16374 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
|  | 16375 | case "$host_cpu" in | 
|  | 16376 | hppa*64*|ia64*) | 
|  | 16377 | # +Z the default | 
|  | 16378 | ;; | 
|  | 16379 | *) | 
|  | 16380 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 16381 | ;; | 
|  | 16382 | esac | 
|  | 16383 | ;; | 
|  | 16384 | *) | 
|  | 16385 | ;; | 
|  | 16386 | esac | 
|  | 16387 | ;; | 
|  | 16388 | irix5* | irix6* | nonstopux*) | 
|  | 16389 | case $cc_basename in | 
|  | 16390 | CC) | 
|  | 16391 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 16392 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 16393 | # CC pic flag -KPIC is the default. | 
|  | 16394 | ;; | 
|  | 16395 | *) | 
|  | 16396 | ;; | 
|  | 16397 | esac | 
|  | 16398 | ;; | 
|  | 16399 | linux*) | 
|  | 16400 | case $cc_basename in | 
|  | 16401 | KCC) | 
|  | 16402 | # KAI C++ Compiler | 
|  | 16403 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 16404 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 16405 | ;; | 
|  | 16406 | icpc) | 
|  | 16407 | # Intel C++ | 
|  | 16408 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 16409 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 16410 | lt_prog_compiler_static_CXX='-static' | 
|  | 16411 | ;; | 
|  | 16412 | cxx) | 
|  | 16413 | # Compaq C++ | 
|  | 16414 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 16415 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 16416 | lt_prog_compiler_pic_CXX= | 
|  | 16417 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 16418 | ;; | 
|  | 16419 | *) | 
|  | 16420 | ;; | 
|  | 16421 | esac | 
|  | 16422 | ;; | 
|  | 16423 | lynxos*) | 
|  | 16424 | ;; | 
|  | 16425 | m88k*) | 
|  | 16426 | ;; | 
|  | 16427 | mvs*) | 
|  | 16428 | case $cc_basename in | 
|  | 16429 | cxx) | 
|  | 16430 | lt_prog_compiler_pic_CXX='-W c,exportall' | 
|  | 16431 | ;; | 
|  | 16432 | *) | 
|  | 16433 | ;; | 
|  | 16434 | esac | 
|  | 16435 | ;; | 
|  | 16436 | netbsd*) | 
|  | 16437 | ;; | 
|  | 16438 | osf3* | osf4* | osf5*) | 
|  | 16439 | case $cc_basename in | 
|  | 16440 | KCC) | 
|  | 16441 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 16442 | ;; | 
|  | 16443 | RCC) | 
|  | 16444 | # Rational C++ 2.4.1 | 
|  | 16445 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 16446 | ;; | 
|  | 16447 | cxx) | 
|  | 16448 | # Digital/Compaq C++ | 
|  | 16449 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 16450 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 16451 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 16452 | lt_prog_compiler_pic_CXX= | 
|  | 16453 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 16454 | ;; | 
|  | 16455 | *) | 
|  | 16456 | ;; | 
|  | 16457 | esac | 
|  | 16458 | ;; | 
|  | 16459 | psos*) | 
|  | 16460 | ;; | 
|  | 16461 | sco*) | 
|  | 16462 | case $cc_basename in | 
|  | 16463 | CC) | 
|  | 16464 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 16465 | ;; | 
|  | 16466 | *) | 
|  | 16467 | ;; | 
|  | 16468 | esac | 
|  | 16469 | ;; | 
|  | 16470 | solaris*) | 
|  | 16471 | case $cc_basename in | 
|  | 16472 | CC) | 
|  | 16473 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 16474 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 16475 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 16476 | lt_prog_compiler_wl_CXX='-Qoption ld ' | 
|  | 16477 | ;; | 
|  | 16478 | gcx) | 
|  | 16479 | # Green Hills C++ Compiler | 
|  | 16480 | lt_prog_compiler_pic_CXX='-PIC' | 
|  | 16481 | ;; | 
|  | 16482 | *) | 
|  | 16483 | ;; | 
|  | 16484 | esac | 
|  | 16485 | ;; | 
|  | 16486 | sunos4*) | 
|  | 16487 | case $cc_basename in | 
|  | 16488 | CC) | 
|  | 16489 | # Sun C++ 4.x | 
|  | 16490 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 16491 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 16492 | ;; | 
|  | 16493 | lcc) | 
|  | 16494 | # Lucid | 
|  | 16495 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 16496 | ;; | 
|  | 16497 | *) | 
|  | 16498 | ;; | 
|  | 16499 | esac | 
|  | 16500 | ;; | 
|  | 16501 | tandem*) | 
|  | 16502 | case $cc_basename in | 
|  | 16503 | NCC) | 
|  | 16504 | # NonStop-UX NCC 3.20 | 
|  | 16505 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 16506 | ;; | 
|  | 16507 | *) | 
|  | 16508 | ;; | 
|  | 16509 | esac | 
|  | 16510 | ;; | 
|  | 16511 | unixware*) | 
|  | 16512 | ;; | 
|  | 16513 | vxworks*) | 
|  | 16514 | ;; | 
|  | 16515 | *) | 
|  | 16516 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 16517 | ;; | 
|  | 16518 | esac | 
|  | 16519 | fi | 
|  | 16520 |  | 
|  | 16521 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
|  | 16522 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 
|  | 16523 |  | 
|  | 16524 | # | 
|  | 16525 | # Check to make sure the PIC flag actually works. | 
|  | 16526 | # | 
|  | 16527 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16528 |  | 
|  | 16529 | 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] | 16530 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 
|  | 16531 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
|  | 16532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16533 | else | 
|  | 16534 | lt_prog_compiler_pic_works_CXX=no | 
|  | 16535 | ac_outfile=conftest.$ac_objext | 
|  | 16536 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 16537 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 16538 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 16539 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 16540 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 16541 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 16542 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 16543 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 16544 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 16545 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 16546 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 16547 | (eval echo "\"\$as_me:16547: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16548 | (eval "$lt_compile" 2>conftest.err) | 
|  | 16549 | ac_status=$? | 
|  | 16550 | cat conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 16551 | echo "$as_me:16551: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16552 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 16553 | # The compiler can only warn and ignore the option if not recognized | 
|  | 16554 | # So say no if there are warnings | 
|  | 16555 | if test ! -s conftest.err; then | 
|  | 16556 | lt_prog_compiler_pic_works_CXX=yes | 
|  | 16557 | fi | 
|  | 16558 | fi | 
|  | 16559 | $rm conftest* | 
|  | 16560 |  | 
|  | 16561 | fi | 
|  | 16562 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
|  | 16563 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 
|  | 16564 |  | 
|  | 16565 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
|  | 16566 | case $lt_prog_compiler_pic_CXX in | 
|  | 16567 | "" | " "*) ;; | 
|  | 16568 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
|  | 16569 | esac | 
|  | 16570 | else | 
|  | 16571 | lt_prog_compiler_pic_CXX= | 
|  | 16572 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 16573 | fi | 
|  | 16574 |  | 
|  | 16575 | fi | 
|  | 16576 | case "$host_os" in | 
|  | 16577 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 16578 | *djgpp*) | 
|  | 16579 | lt_prog_compiler_pic_CXX= | 
|  | 16580 | ;; | 
|  | 16581 | *) | 
|  | 16582 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 16583 | ;; | 
|  | 16584 | esac | 
|  | 16585 |  | 
|  | 16586 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 16587 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 16588 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
|  | 16589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 16590 | else | 
|  | 16591 | lt_cv_prog_compiler_c_o_CXX=no | 
|  | 16592 | $rm -r conftest 2>/dev/null | 
|  | 16593 | mkdir conftest | 
|  | 16594 | cd conftest | 
|  | 16595 | mkdir out | 
|  | 16596 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 16597 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16598 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 16599 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 16600 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 16601 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 16602 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 16603 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 16604 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 16605 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 16606 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 16607 | (eval echo "\"\$as_me:16607: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16608 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 16609 | ac_status=$? | 
|  | 16610 | cat out/conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 16611 | echo "$as_me:16611: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16612 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 16613 | then | 
|  | 16614 | # The compiler can only warn and ignore the option if not recognized | 
|  | 16615 | # So say no if there are warnings | 
|  | 16616 | if test ! -s out/conftest.err; then | 
|  | 16617 | lt_cv_prog_compiler_c_o_CXX=yes | 
|  | 16618 | fi | 
|  | 16619 | fi | 
|  | 16620 | chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16621 | $rm conftest* | 
|  | 16622 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 16623 | # template instantiation | 
|  | 16624 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
|  | 16625 | $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16626 | cd .. | 
|  | 16627 | rmdir conftest | 
|  | 16628 | $rm conftest* | 
|  | 16629 |  | 
|  | 16630 | fi | 
|  | 16631 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
|  | 16632 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 
|  | 16633 |  | 
|  | 16634 |  | 
|  | 16635 | hard_links="nottested" | 
|  | 16636 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
|  | 16637 | # do not overwrite the value of need_locks provided by the user | 
|  | 16638 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 16639 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 16640 | hard_links=yes | 
|  | 16641 | $rm conftest* | 
|  | 16642 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 16643 | touch conftest.a | 
|  | 16644 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 16645 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 16646 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 16647 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 16648 | if test "$hard_links" = no; then | 
|  | 16649 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 16650 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 16651 | need_locks=warn | 
|  | 16652 | fi | 
|  | 16653 | else | 
|  | 16654 | need_locks=no | 
|  | 16655 | fi | 
|  | 16656 |  | 
|  | 16657 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 16658 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 16659 |  | 
|  | 16660 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 16661 | case $host_os in | 
|  | 16662 | aix4* | aix5*) | 
|  | 16663 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 16664 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 16665 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 16666 | 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' | 
|  | 16667 | else | 
|  | 16668 | 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' | 
|  | 16669 | fi | 
|  | 16670 | ;; | 
|  | 16671 | pw32*) | 
|  | 16672 | export_symbols_cmds_CXX="$ltdll_cmds" | 
|  | 16673 | ;; | 
|  | 16674 | cygwin* | mingw*) | 
|  | 16675 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 16676 | ;; | 
|  | 16677 | *) | 
|  | 16678 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 16679 | ;; | 
|  | 16680 | esac | 
|  | 16681 |  | 
|  | 16682 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
|  | 16683 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
|  | 16684 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 16685 |  | 
|  | 16686 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 16687 | if test "$GCC" = yes; then | 
|  | 16688 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 16689 | fi | 
|  | 16690 |  | 
|  | 16691 | # | 
|  | 16692 | # Do we need to explicitly link libc? | 
|  | 16693 | # | 
|  | 16694 | case "x$archive_cmds_need_lc_CXX" in | 
|  | 16695 | x|xyes) | 
|  | 16696 | # Assume -lc should be added | 
|  | 16697 | archive_cmds_need_lc_CXX=yes | 
|  | 16698 |  | 
|  | 16699 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 16700 | case $archive_cmds_CXX in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16701 | *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16702 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 16703 | ;; | 
|  | 16704 | '$CC '*) | 
|  | 16705 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 16706 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 16707 | # to ld, don't add -lc before -lgcc. | 
|  | 16708 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 16709 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 16710 | $rm conftest* | 
|  | 16711 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 16712 |  | 
|  | 16713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 16714 | (eval $ac_compile) 2>&5 | 
|  | 16715 | ac_status=$? | 
|  | 16716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16717 | (exit $ac_status); } 2>conftest.err; then | 
|  | 16718 | soname=conftest | 
|  | 16719 | lib=conftest | 
|  | 16720 | libobjs=conftest.$ac_objext | 
|  | 16721 | deplibs= | 
|  | 16722 | wl=$lt_prog_compiler_wl_CXX | 
|  | 16723 | compiler_flags=-v | 
|  | 16724 | linker_flags=-v | 
|  | 16725 | verstring= | 
|  | 16726 | output_objdir=. | 
|  | 16727 | libname=conftest | 
|  | 16728 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
|  | 16729 | allow_undefined_flag_CXX= | 
|  | 16730 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 16731 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 16732 | ac_status=$? | 
|  | 16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 16734 | (exit $ac_status); } | 
|  | 16735 | then | 
|  | 16736 | archive_cmds_need_lc_CXX=no | 
|  | 16737 | else | 
|  | 16738 | archive_cmds_need_lc_CXX=yes | 
|  | 16739 | fi | 
|  | 16740 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
|  | 16741 | else | 
|  | 16742 | cat conftest.err 1>&5 | 
|  | 16743 | fi | 
|  | 16744 | $rm conftest* | 
|  | 16745 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
|  | 16746 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 
|  | 16747 | ;; | 
|  | 16748 | esac | 
|  | 16749 | fi | 
|  | 16750 | ;; | 
|  | 16751 | esac | 
|  | 16752 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16753 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 16754 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 16755 | library_names_spec= | 
|  | 16756 | libname_spec='lib$name' | 
|  | 16757 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16758 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16759 | postinstall_cmds= | 
|  | 16760 | postuninstall_cmds= | 
|  | 16761 | finish_cmds= | 
|  | 16762 | finish_eval= | 
|  | 16763 | shlibpath_var= | 
|  | 16764 | shlibpath_overrides_runpath=unknown | 
|  | 16765 | version_type=none | 
|  | 16766 | dynamic_linker="$host_os ld.so" | 
|  | 16767 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 16768 | if test "$GCC" = yes; then | 
|  | 16769 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 16770 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 16771 | # if the path contains ";" then we assume it to be the separator | 
|  | 16772 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 16773 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 16774 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 16775 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 16776 | else | 
|  | 16777 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 16778 | fi | 
|  | 16779 | else | 
|  | 16780 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 16781 | fi | 
|  | 16782 | need_lib_prefix=unknown | 
|  | 16783 | hardcode_into_libs=no | 
|  | 16784 |  | 
|  | 16785 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 16786 | # flags to be left without arguments | 
|  | 16787 | need_version=unknown | 
|  | 16788 |  | 
|  | 16789 | case $host_os in | 
|  | 16790 | aix3*) | 
|  | 16791 | version_type=linux | 
|  | 16792 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 16793 | shlibpath_var=LIBPATH | 
|  | 16794 |  | 
|  | 16795 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 16796 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16797 | ;; | 
|  | 16798 |  | 
|  | 16799 | aix4* | aix5*) | 
|  | 16800 | version_type=linux | 
|  | 16801 | need_lib_prefix=no | 
|  | 16802 | need_version=no | 
|  | 16803 | hardcode_into_libs=yes | 
|  | 16804 | if test "$host_cpu" = ia64; then | 
|  | 16805 | # AIX 5 supports IA64 | 
|  | 16806 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 16807 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16808 | else | 
|  | 16809 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 16810 | # for dependence libraries.  The import file would start with | 
|  | 16811 | # the line `#! .'.  This would cause the generated library to | 
|  | 16812 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 16813 | # development snapshots of GCC prior to 3.0. | 
|  | 16814 | case $host_os in | 
|  | 16815 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 16816 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 16817 | echo ' yes ' | 
|  | 16818 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 16819 | : | 
|  | 16820 | else | 
|  | 16821 | can_build_shared=no | 
|  | 16822 | fi | 
|  | 16823 | ;; | 
|  | 16824 | esac | 
|  | 16825 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 16826 | # soname into executable. Probably we can add versioning support to | 
|  | 16827 | # collect2, so additional links can be useful in future. | 
|  | 16828 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16829 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 16830 | # instead of lib<name>.a to let people know that these are not | 
|  | 16831 | # typical AIX shared libraries. | 
|  | 16832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16833 | else | 
|  | 16834 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 16835 | # and later when we are not doing run time linking. | 
|  | 16836 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 16837 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16838 | fi | 
|  | 16839 | shlibpath_var=LIBPATH | 
|  | 16840 | fi | 
|  | 16841 | ;; | 
|  | 16842 |  | 
|  | 16843 | amigaos*) | 
|  | 16844 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 16845 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16846 | 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] | 16847 | ;; | 
|  | 16848 |  | 
|  | 16849 | beos*) | 
|  | 16850 | library_names_spec='${libname}${shared_ext}' | 
|  | 16851 | dynamic_linker="$host_os ld.so" | 
|  | 16852 | shlibpath_var=LIBRARY_PATH | 
|  | 16853 | ;; | 
|  | 16854 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16855 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16856 | version_type=linux | 
|  | 16857 | need_version=no | 
|  | 16858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 16859 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16860 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 16861 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16862 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 16863 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 16864 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 16865 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 16866 | # libtool to hard-code these into programs | 
|  | 16867 | ;; | 
|  | 16868 |  | 
|  | 16869 | cygwin* | mingw* | pw32*) | 
|  | 16870 | version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16871 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16872 | need_version=no | 
|  | 16873 | need_lib_prefix=no | 
|  | 16874 |  | 
|  | 16875 | case $GCC,$host_os in | 
|  | 16876 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 16877 | library_names_spec='$libname.dll.a' | 
|  | 16878 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16879 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 16880 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 16881 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 16882 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16883 | $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16884 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 16885 | dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16886 | $rm \$dlpath' | 
|  | 16887 | shlibpath_overrides_runpath=yes | 
|  | 16888 |  | 
|  | 16889 | case $host_os in | 
|  | 16890 | cygwin*) | 
|  | 16891 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 16892 | 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] | 16893 | 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] | 16894 | ;; | 
|  | 16895 | mingw*) | 
|  | 16896 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 16897 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 16898 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 16899 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 16900 | # It is most probably a Windows format PATH printed by | 
|  | 16901 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 16902 | # path with ; separators, and with drive letters. We can handle the | 
|  | 16903 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 16904 | # especially as we might pass files found there to a mingw objdump, | 
|  | 16905 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 16906 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 16907 | else | 
|  | 16908 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 16909 | fi | 
|  | 16910 | ;; | 
|  | 16911 | pw32*) | 
|  | 16912 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 16913 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 16914 | ;; | 
|  | 16915 | esac | 
|  | 16916 | ;; | 
|  | 16917 |  | 
|  | 16918 | *) | 
|  | 16919 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 16920 | ;; | 
|  | 16921 | esac | 
|  | 16922 | dynamic_linker='Win32 ld.exe' | 
|  | 16923 | # FIXME: first we should search . and the directory the executable is in | 
|  | 16924 | shlibpath_var=PATH | 
|  | 16925 | ;; | 
|  | 16926 |  | 
|  | 16927 | darwin* | rhapsody*) | 
|  | 16928 | dynamic_linker="$host_os dyld" | 
|  | 16929 | version_type=darwin | 
|  | 16930 | need_lib_prefix=no | 
|  | 16931 | need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16932 | 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] | 16933 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 16934 | shlibpath_overrides_runpath=yes | 
|  | 16935 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16936 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16937 | # 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] | 16938 | if test "$GCC" = yes; then | 
|  | 16939 | 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"` | 
|  | 16940 | else | 
|  | 16941 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16942 | fi | 
|  | 16943 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 16944 | ;; | 
|  | 16945 |  | 
|  | 16946 | dgux*) | 
|  | 16947 | version_type=linux | 
|  | 16948 | need_lib_prefix=no | 
|  | 16949 | need_version=no | 
|  | 16950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 16951 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16952 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16953 | ;; | 
|  | 16954 |  | 
|  | 16955 | freebsd1*) | 
|  | 16956 | dynamic_linker=no | 
|  | 16957 | ;; | 
|  | 16958 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16959 | kfreebsd*-gnu) | 
|  | 16960 | version_type=linux | 
|  | 16961 | need_lib_prefix=no | 
|  | 16962 | need_version=no | 
|  | 16963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 16964 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 16965 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16966 | shlibpath_overrides_runpath=no | 
|  | 16967 | hardcode_into_libs=yes | 
|  | 16968 | dynamic_linker='GNU ld.so' | 
|  | 16969 | ;; | 
|  | 16970 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16971 | freebsd*) | 
|  | 16972 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 16973 | version_type=freebsd-$objformat | 
|  | 16974 | case $version_type in | 
|  | 16975 | freebsd-elf*) | 
|  | 16976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 16977 | need_version=no | 
|  | 16978 | need_lib_prefix=no | 
|  | 16979 | ;; | 
|  | 16980 | freebsd-*) | 
|  | 16981 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 16982 | need_version=yes | 
|  | 16983 | ;; | 
|  | 16984 | esac | 
|  | 16985 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 16986 | case $host_os in | 
|  | 16987 | freebsd2*) | 
|  | 16988 | shlibpath_overrides_runpath=yes | 
|  | 16989 | ;; | 
|  | 16990 | freebsd3.01* | freebsdelf3.01*) | 
|  | 16991 | shlibpath_overrides_runpath=yes | 
|  | 16992 | hardcode_into_libs=yes | 
|  | 16993 | ;; | 
|  | 16994 | *) # from 3.2 on | 
|  | 16995 | shlibpath_overrides_runpath=no | 
|  | 16996 | hardcode_into_libs=yes | 
|  | 16997 | ;; | 
|  | 16998 | esac | 
|  | 16999 | ;; | 
|  | 17000 |  | 
|  | 17001 | gnu*) | 
|  | 17002 | version_type=linux | 
|  | 17003 | need_lib_prefix=no | 
|  | 17004 | need_version=no | 
|  | 17005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 17006 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17007 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17008 | hardcode_into_libs=yes | 
|  | 17009 | ;; | 
|  | 17010 |  | 
|  | 17011 | hpux9* | hpux10* | hpux11*) | 
|  | 17012 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 17013 | # link against other versions. | 
|  | 17014 | version_type=sunos | 
|  | 17015 | need_lib_prefix=no | 
|  | 17016 | need_version=no | 
|  | 17017 | case "$host_cpu" in | 
|  | 17018 | ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17019 | shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17020 | hardcode_into_libs=yes | 
|  | 17021 | dynamic_linker="$host_os dld.so" | 
|  | 17022 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17023 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 17024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17025 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17026 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 17027 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 17028 | else | 
|  | 17029 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 17030 | fi | 
|  | 17031 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 17032 | ;; | 
|  | 17033 | hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17034 | shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17035 | hardcode_into_libs=yes | 
|  | 17036 | dynamic_linker="$host_os dld.sl" | 
|  | 17037 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 17038 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 17039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17040 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17041 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 17042 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 17043 | ;; | 
|  | 17044 | *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17045 | shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17046 | dynamic_linker="$host_os dld.sl" | 
|  | 17047 | shlibpath_var=SHLIB_PATH | 
|  | 17048 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 17049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17050 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17051 | ;; | 
|  | 17052 | esac | 
|  | 17053 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 17054 | postinstall_cmds='chmod 555 $lib' | 
|  | 17055 | ;; | 
|  | 17056 |  | 
|  | 17057 | irix5* | irix6* | nonstopux*) | 
|  | 17058 | case $host_os in | 
|  | 17059 | nonstopux*) version_type=nonstopux ;; | 
|  | 17060 | *) | 
|  | 17061 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 17062 | version_type=linux | 
|  | 17063 | else | 
|  | 17064 | version_type=irix | 
|  | 17065 | fi ;; | 
|  | 17066 | esac | 
|  | 17067 | need_lib_prefix=no | 
|  | 17068 | need_version=no | 
|  | 17069 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 17071 | case $host_os in | 
|  | 17072 | irix5* | nonstopux*) | 
|  | 17073 | libsuff= shlibsuff= | 
|  | 17074 | ;; | 
|  | 17075 | *) | 
|  | 17076 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 17077 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 17078 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 17079 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 17080 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 17081 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 17082 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 17083 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 17084 | esac | 
|  | 17085 | ;; | 
|  | 17086 | esac | 
|  | 17087 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 17088 | shlibpath_overrides_runpath=no | 
|  | 17089 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 17090 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 17091 | hardcode_into_libs=yes | 
|  | 17092 | ;; | 
|  | 17093 |  | 
|  | 17094 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 17095 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 17096 | dynamic_linker=no | 
|  | 17097 | ;; | 
|  | 17098 |  | 
|  | 17099 | # This must be Linux ELF. | 
|  | 17100 | linux*) | 
|  | 17101 | version_type=linux | 
|  | 17102 | need_lib_prefix=no | 
|  | 17103 | need_version=no | 
|  | 17104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17105 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17106 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 17107 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17108 | shlibpath_overrides_runpath=no | 
|  | 17109 | # This implies no fast_install, which is unacceptable. | 
|  | 17110 | # Some rework will be needed to allow for fast_install | 
|  | 17111 | # before this can be enabled. | 
|  | 17112 | hardcode_into_libs=yes | 
|  | 17113 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17114 | # Append ld.so.conf contents to the search path | 
|  | 17115 | if test -f /etc/ld.so.conf; then | 
|  | 17116 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 17117 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 17118 | fi | 
|  | 17119 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17120 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 17121 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 17122 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 17123 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 17124 | # people can always --disable-shared, the test was removed, and we | 
|  | 17125 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 17126 | dynamic_linker='GNU/Linux ld.so' | 
|  | 17127 | ;; | 
|  | 17128 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17129 | knetbsd*-gnu) | 
|  | 17130 | version_type=linux | 
|  | 17131 | need_lib_prefix=no | 
|  | 17132 | need_version=no | 
|  | 17133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 17134 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17135 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17136 | shlibpath_overrides_runpath=no | 
|  | 17137 | hardcode_into_libs=yes | 
|  | 17138 | dynamic_linker='GNU ld.so' | 
|  | 17139 | ;; | 
|  | 17140 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17141 | netbsd*) | 
|  | 17142 | version_type=sunos | 
|  | 17143 | need_lib_prefix=no | 
|  | 17144 | need_version=no | 
|  | 17145 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 17146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 17147 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 17148 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 17149 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17150 | 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] | 17151 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17152 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 17153 | fi | 
|  | 17154 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17155 | shlibpath_overrides_runpath=yes | 
|  | 17156 | hardcode_into_libs=yes | 
|  | 17157 | ;; | 
|  | 17158 |  | 
|  | 17159 | newsos6) | 
|  | 17160 | version_type=linux | 
|  | 17161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17162 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17163 | shlibpath_overrides_runpath=yes | 
|  | 17164 | ;; | 
|  | 17165 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17166 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17167 | version_type=linux | 
|  | 17168 | need_lib_prefix=no | 
|  | 17169 | need_version=no | 
|  | 17170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17171 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17172 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17173 | shlibpath_overrides_runpath=yes | 
|  | 17174 | ;; | 
|  | 17175 |  | 
|  | 17176 | openbsd*) | 
|  | 17177 | version_type=sunos | 
|  | 17178 | need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17179 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 17181 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 17182 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17183 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 17184 | case $host_os in | 
|  | 17185 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 17186 | shlibpath_overrides_runpath=no | 
|  | 17187 | ;; | 
|  | 17188 | *) | 
|  | 17189 | shlibpath_overrides_runpath=yes | 
|  | 17190 | ;; | 
|  | 17191 | esac | 
|  | 17192 | else | 
|  | 17193 | shlibpath_overrides_runpath=yes | 
|  | 17194 | fi | 
|  | 17195 | ;; | 
|  | 17196 |  | 
|  | 17197 | os2*) | 
|  | 17198 | libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17199 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17200 | need_lib_prefix=no | 
|  | 17201 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 17202 | dynamic_linker='OS/2 ld.exe' | 
|  | 17203 | shlibpath_var=LIBPATH | 
|  | 17204 | ;; | 
|  | 17205 |  | 
|  | 17206 | osf3* | osf4* | osf5*) | 
|  | 17207 | version_type=osf | 
|  | 17208 | need_lib_prefix=no | 
|  | 17209 | need_version=no | 
|  | 17210 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17212 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17213 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 17214 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 17215 | ;; | 
|  | 17216 |  | 
|  | 17217 | sco3.2v5*) | 
|  | 17218 | version_type=osf | 
|  | 17219 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17221 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17222 | ;; | 
|  | 17223 |  | 
|  | 17224 | solaris*) | 
|  | 17225 | version_type=linux | 
|  | 17226 | need_lib_prefix=no | 
|  | 17227 | need_version=no | 
|  | 17228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17229 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17230 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17231 | shlibpath_overrides_runpath=yes | 
|  | 17232 | hardcode_into_libs=yes | 
|  | 17233 | # ldd complains unless libraries are executable | 
|  | 17234 | postinstall_cmds='chmod +x $lib' | 
|  | 17235 | ;; | 
|  | 17236 |  | 
|  | 17237 | sunos4*) | 
|  | 17238 | version_type=sunos | 
|  | 17239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 17240 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 17241 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17242 | shlibpath_overrides_runpath=yes | 
|  | 17243 | if test "$with_gnu_ld" = yes; then | 
|  | 17244 | need_lib_prefix=no | 
|  | 17245 | fi | 
|  | 17246 | need_version=yes | 
|  | 17247 | ;; | 
|  | 17248 |  | 
|  | 17249 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 17250 | version_type=linux | 
|  | 17251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 17252 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 17253 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17254 | case $host_vendor in | 
|  | 17255 | sni) | 
|  | 17256 | shlibpath_overrides_runpath=no | 
|  | 17257 | need_lib_prefix=no | 
|  | 17258 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 17259 | runpath_var=LD_RUN_PATH | 
|  | 17260 | ;; | 
|  | 17261 | siemens) | 
|  | 17262 | need_lib_prefix=no | 
|  | 17263 | ;; | 
|  | 17264 | motorola) | 
|  | 17265 | need_lib_prefix=no | 
|  | 17266 | need_version=no | 
|  | 17267 | shlibpath_overrides_runpath=no | 
|  | 17268 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 17269 | ;; | 
|  | 17270 | esac | 
|  | 17271 | ;; | 
|  | 17272 |  | 
|  | 17273 | sysv4*MP*) | 
|  | 17274 | if test -d /usr/nec ;then | 
|  | 17275 | version_type=linux | 
|  | 17276 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 17277 | soname_spec='$libname${shared_ext}.$major' | 
|  | 17278 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17279 | fi | 
|  | 17280 | ;; | 
|  | 17281 |  | 
|  | 17282 | uts4*) | 
|  | 17283 | version_type=linux | 
|  | 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 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 17287 | ;; | 
|  | 17288 |  | 
|  | 17289 | *) | 
|  | 17290 | dynamic_linker=no | 
|  | 17291 | ;; | 
|  | 17292 | esac | 
|  | 17293 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 17294 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 17295 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 17296 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17297 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 17298 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 17299 | hardcode_action_CXX= | 
|  | 17300 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
|  | 17301 | test -n "$runpath_var_CXX" || \ | 
|  | 17302 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
|  | 17303 |  | 
|  | 17304 | # We can hardcode non-existant directories. | 
|  | 17305 | if test "$hardcode_direct_CXX" != no && | 
|  | 17306 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 17307 | # have to relink, otherwise we might link with an installed library | 
|  | 17308 | # when we should be linking with a yet-to-be-installed one | 
|  | 17309 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
|  | 17310 | test "$hardcode_minus_L_CXX" != no; then | 
|  | 17311 | # Linking always hardcodes the temporary library directory. | 
|  | 17312 | hardcode_action_CXX=relink | 
|  | 17313 | else | 
|  | 17314 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 17315 | hardcode_action_CXX=immediate | 
|  | 17316 | fi | 
|  | 17317 | else | 
|  | 17318 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 17319 | # directories. | 
|  | 17320 | hardcode_action_CXX=unsupported | 
|  | 17321 | fi | 
|  | 17322 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
|  | 17323 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 
|  | 17324 |  | 
|  | 17325 | if test "$hardcode_action_CXX" = relink; then | 
|  | 17326 | # Fast installation is not supported | 
|  | 17327 | enable_fast_install=no | 
|  | 17328 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 17329 | test "$enable_shared" = no; then | 
|  | 17330 | # Fast installation is not necessary | 
|  | 17331 | enable_fast_install=needless | 
|  | 17332 | fi | 
|  | 17333 |  | 
|  | 17334 | striplib= | 
|  | 17335 | old_striplib= | 
|  | 17336 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 17337 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 17338 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 17339 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 17340 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 17341 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 17342 | echo "${ECHO_T}yes" >&6 | 
|  | 17343 | else | 
|  | 17344 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 17345 | case $host_os in | 
|  | 17346 | darwin*) | 
|  | 17347 | if test -n "$STRIP" ; then | 
|  | 17348 | striplib="$STRIP -x" | 
|  | 17349 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 17350 | echo "${ECHO_T}yes" >&6 | 
|  | 17351 | else | 
|  | 17352 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 17353 | echo "${ECHO_T}no" >&6 | 
|  | 17354 | fi | 
|  | 17355 | ;; | 
|  | 17356 | *) | 
|  | 17357 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 17358 | echo "${ECHO_T}no" >&6 | 
|  | 17359 | ;; | 
|  | 17360 | esac | 
|  | 17361 | fi | 
|  | 17362 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17363 | if test "x$enable_dlopen" != xyes; then | 
|  | 17364 | enable_dlopen=unknown | 
|  | 17365 | enable_dlopen_self=unknown | 
|  | 17366 | enable_dlopen_self_static=unknown | 
|  | 17367 | else | 
|  | 17368 | lt_cv_dlopen=no | 
|  | 17369 | lt_cv_dlopen_libs= | 
|  | 17370 |  | 
|  | 17371 | case $host_os in | 
|  | 17372 | beos*) | 
|  | 17373 | lt_cv_dlopen="load_add_on" | 
|  | 17374 | lt_cv_dlopen_libs= | 
|  | 17375 | lt_cv_dlopen_self=yes | 
|  | 17376 | ;; | 
|  | 17377 |  | 
|  | 17378 | mingw* | pw32*) | 
|  | 17379 | lt_cv_dlopen="LoadLibrary" | 
|  | 17380 | lt_cv_dlopen_libs= | 
|  | 17381 | ;; | 
|  | 17382 |  | 
|  | 17383 | cygwin*) | 
|  | 17384 | lt_cv_dlopen="dlopen" | 
|  | 17385 | lt_cv_dlopen_libs= | 
|  | 17386 | ;; | 
|  | 17387 |  | 
|  | 17388 | darwin*) | 
|  | 17389 | # if libdl is installed we need to link against it | 
|  | 17390 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 17391 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 17392 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 17393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17394 | else | 
|  | 17395 | ac_check_lib_save_LIBS=$LIBS | 
|  | 17396 | LIBS="-ldl  $LIBS" | 
|  | 17397 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17398 | /* confdefs.h.  */ | 
|  | 17399 | _ACEOF | 
|  | 17400 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17401 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17402 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17403 |  | 
|  | 17404 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 17405 | #ifdef __cplusplus | 
|  | 17406 | extern "C" | 
|  | 17407 | #endif | 
|  | 17408 | /* We use char because int might match the return type of a gcc2 | 
|  | 17409 | builtin and then its argument prototype would still apply.  */ | 
|  | 17410 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17411 | int | 
|  | 17412 | main () | 
|  | 17413 | { | 
|  | 17414 | dlopen (); | 
|  | 17415 | ; | 
|  | 17416 | return 0; | 
|  | 17417 | } | 
|  | 17418 | _ACEOF | 
|  | 17419 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17421 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17422 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17423 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17424 | rm -f conftest.er1 | 
|  | 17425 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17427 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17428 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 17429 | || test ! -s conftest.err' | 
|  | 17430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17431 | (eval $ac_try) 2>&5 | 
|  | 17432 | ac_status=$? | 
|  | 17433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17434 | (exit $ac_status); }; } && | 
|  | 17435 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17437 | (eval $ac_try) 2>&5 | 
|  | 17438 | ac_status=$? | 
|  | 17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17440 | (exit $ac_status); }; }; then | 
|  | 17441 | ac_cv_lib_dl_dlopen=yes | 
|  | 17442 | else | 
|  | 17443 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17444 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17445 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17446 | ac_cv_lib_dl_dlopen=no | 
|  | 17447 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17448 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 17449 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17450 | LIBS=$ac_check_lib_save_LIBS | 
|  | 17451 | fi | 
|  | 17452 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 17453 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 17454 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 17455 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 17456 | else | 
|  | 17457 |  | 
|  | 17458 | lt_cv_dlopen="dyld" | 
|  | 17459 | lt_cv_dlopen_libs= | 
|  | 17460 | lt_cv_dlopen_self=yes | 
|  | 17461 |  | 
|  | 17462 | fi | 
|  | 17463 |  | 
|  | 17464 | ;; | 
|  | 17465 |  | 
|  | 17466 | *) | 
|  | 17467 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 17468 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 17469 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 17470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17471 | else | 
|  | 17472 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17473 | /* confdefs.h.  */ | 
|  | 17474 | _ACEOF | 
|  | 17475 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17476 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17477 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17478 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 17479 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17480 | #define shl_load innocuous_shl_load | 
|  | 17481 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17482 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17483 | which can conflict with char shl_load (); below. | 
|  | 17484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17485 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17486 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17487 | #ifdef __STDC__ | 
|  | 17488 | # include <limits.h> | 
|  | 17489 | #else | 
|  | 17490 | # include <assert.h> | 
|  | 17491 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17492 |  | 
|  | 17493 | #undef shl_load | 
|  | 17494 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17495 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 17496 | #ifdef __cplusplus | 
|  | 17497 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17498 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17499 | #endif | 
|  | 17500 | /* We use char because int might match the return type of a gcc2 | 
|  | 17501 | builtin and then its argument prototype would still apply.  */ | 
|  | 17502 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17503 | /* The GNU C library defines this for functions which it implements | 
|  | 17504 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17505 | something starting with __ and the normal name is an alias.  */ | 
|  | 17506 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 17507 | choke me | 
|  | 17508 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17509 | char (*f) () = shl_load; | 
|  | 17510 | #endif | 
|  | 17511 | #ifdef __cplusplus | 
|  | 17512 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17513 | #endif | 
|  | 17514 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17515 | int | 
|  | 17516 | main () | 
|  | 17517 | { | 
|  | 17518 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17519 | ; | 
|  | 17520 | return 0; | 
|  | 17521 | } | 
|  | 17522 | _ACEOF | 
|  | 17523 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17525 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17526 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17527 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17528 | rm -f conftest.er1 | 
|  | 17529 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17531 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17532 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 17533 | || test ! -s conftest.err' | 
|  | 17534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17535 | (eval $ac_try) 2>&5 | 
|  | 17536 | ac_status=$? | 
|  | 17537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17538 | (exit $ac_status); }; } && | 
|  | 17539 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17541 | (eval $ac_try) 2>&5 | 
|  | 17542 | ac_status=$? | 
|  | 17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17544 | (exit $ac_status); }; }; then | 
|  | 17545 | ac_cv_func_shl_load=yes | 
|  | 17546 | else | 
|  | 17547 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17548 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17549 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17550 | ac_cv_func_shl_load=no | 
|  | 17551 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17552 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 17553 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17554 | fi | 
|  | 17555 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 17556 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 17557 | if test $ac_cv_func_shl_load = yes; then | 
|  | 17558 | lt_cv_dlopen="shl_load" | 
|  | 17559 | else | 
|  | 17560 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 17561 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 17562 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 17563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17564 | else | 
|  | 17565 | ac_check_lib_save_LIBS=$LIBS | 
|  | 17566 | LIBS="-ldld  $LIBS" | 
|  | 17567 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17568 | /* confdefs.h.  */ | 
|  | 17569 | _ACEOF | 
|  | 17570 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17571 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17572 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17573 |  | 
|  | 17574 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 17575 | #ifdef __cplusplus | 
|  | 17576 | extern "C" | 
|  | 17577 | #endif | 
|  | 17578 | /* We use char because int might match the return type of a gcc2 | 
|  | 17579 | builtin and then its argument prototype would still apply.  */ | 
|  | 17580 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17581 | int | 
|  | 17582 | main () | 
|  | 17583 | { | 
|  | 17584 | shl_load (); | 
|  | 17585 | ; | 
|  | 17586 | return 0; | 
|  | 17587 | } | 
|  | 17588 | _ACEOF | 
|  | 17589 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17591 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17592 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17593 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17594 | rm -f conftest.er1 | 
|  | 17595 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17597 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17598 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 17599 | || test ! -s conftest.err' | 
|  | 17600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17601 | (eval $ac_try) 2>&5 | 
|  | 17602 | ac_status=$? | 
|  | 17603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17604 | (exit $ac_status); }; } && | 
|  | 17605 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17607 | (eval $ac_try) 2>&5 | 
|  | 17608 | ac_status=$? | 
|  | 17609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17610 | (exit $ac_status); }; }; then | 
|  | 17611 | ac_cv_lib_dld_shl_load=yes | 
|  | 17612 | else | 
|  | 17613 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17614 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17615 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17616 | ac_cv_lib_dld_shl_load=no | 
|  | 17617 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17618 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 17619 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17620 | LIBS=$ac_check_lib_save_LIBS | 
|  | 17621 | fi | 
|  | 17622 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 17623 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 17624 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 17625 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 17626 | else | 
|  | 17627 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 17628 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 17629 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 17630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17631 | else | 
|  | 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.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17638 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
|  | 17639 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 17640 | #define dlopen innocuous_dlopen | 
|  | 17641 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17642 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17643 | which can conflict with char dlopen (); below. | 
|  | 17644 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 17645 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17646 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17647 | #ifdef __STDC__ | 
|  | 17648 | # include <limits.h> | 
|  | 17649 | #else | 
|  | 17650 | # include <assert.h> | 
|  | 17651 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17652 |  | 
|  | 17653 | #undef dlopen | 
|  | 17654 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17655 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 17656 | #ifdef __cplusplus | 
|  | 17657 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17658 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17659 | #endif | 
|  | 17660 | /* We use char because int might match the return type of a gcc2 | 
|  | 17661 | builtin and then its argument prototype would still apply.  */ | 
|  | 17662 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17663 | /* The GNU C library defines this for functions which it implements | 
|  | 17664 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 17665 | something starting with __ and the normal name is an alias.  */ | 
|  | 17666 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 17667 | choke me | 
|  | 17668 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17669 | char (*f) () = dlopen; | 
|  | 17670 | #endif | 
|  | 17671 | #ifdef __cplusplus | 
|  | 17672 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17673 | #endif | 
|  | 17674 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17675 | int | 
|  | 17676 | main () | 
|  | 17677 | { | 
|  | 17678 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17679 | ; | 
|  | 17680 | return 0; | 
|  | 17681 | } | 
|  | 17682 | _ACEOF | 
|  | 17683 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17685 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17686 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17687 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17688 | rm -f conftest.er1 | 
|  | 17689 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17691 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17692 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 17693 | || test ! -s conftest.err' | 
|  | 17694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17695 | (eval $ac_try) 2>&5 | 
|  | 17696 | ac_status=$? | 
|  | 17697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17698 | (exit $ac_status); }; } && | 
|  | 17699 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17701 | (eval $ac_try) 2>&5 | 
|  | 17702 | ac_status=$? | 
|  | 17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17704 | (exit $ac_status); }; }; then | 
|  | 17705 | ac_cv_func_dlopen=yes | 
|  | 17706 | else | 
|  | 17707 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17708 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17709 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17710 | ac_cv_func_dlopen=no | 
|  | 17711 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17712 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 17713 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17714 | fi | 
|  | 17715 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 17716 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 17717 | if test $ac_cv_func_dlopen = yes; then | 
|  | 17718 | lt_cv_dlopen="dlopen" | 
|  | 17719 | else | 
|  | 17720 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 17721 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 17722 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 17723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17724 | else | 
|  | 17725 | ac_check_lib_save_LIBS=$LIBS | 
|  | 17726 | LIBS="-ldl  $LIBS" | 
|  | 17727 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17728 | /* confdefs.h.  */ | 
|  | 17729 | _ACEOF | 
|  | 17730 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17731 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17732 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17733 |  | 
|  | 17734 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 17735 | #ifdef __cplusplus | 
|  | 17736 | extern "C" | 
|  | 17737 | #endif | 
|  | 17738 | /* We use char because int might match the return type of a gcc2 | 
|  | 17739 | builtin and then its argument prototype would still apply.  */ | 
|  | 17740 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17741 | int | 
|  | 17742 | main () | 
|  | 17743 | { | 
|  | 17744 | dlopen (); | 
|  | 17745 | ; | 
|  | 17746 | return 0; | 
|  | 17747 | } | 
|  | 17748 | _ACEOF | 
|  | 17749 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17751 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17752 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17753 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17754 | rm -f conftest.er1 | 
|  | 17755 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17757 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17758 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 17759 | || test ! -s conftest.err' | 
|  | 17760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17761 | (eval $ac_try) 2>&5 | 
|  | 17762 | ac_status=$? | 
|  | 17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17764 | (exit $ac_status); }; } && | 
|  | 17765 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17767 | (eval $ac_try) 2>&5 | 
|  | 17768 | ac_status=$? | 
|  | 17769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17770 | (exit $ac_status); }; }; then | 
|  | 17771 | ac_cv_lib_dl_dlopen=yes | 
|  | 17772 | else | 
|  | 17773 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17774 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17775 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17776 | ac_cv_lib_dl_dlopen=no | 
|  | 17777 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17778 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 17779 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17780 | LIBS=$ac_check_lib_save_LIBS | 
|  | 17781 | fi | 
|  | 17782 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 17783 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 17784 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 17785 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 17786 | else | 
|  | 17787 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 17788 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 17789 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 17790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17791 | else | 
|  | 17792 | ac_check_lib_save_LIBS=$LIBS | 
|  | 17793 | LIBS="-lsvld  $LIBS" | 
|  | 17794 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17795 | /* confdefs.h.  */ | 
|  | 17796 | _ACEOF | 
|  | 17797 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17798 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17799 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17800 |  | 
|  | 17801 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 17802 | #ifdef __cplusplus | 
|  | 17803 | extern "C" | 
|  | 17804 | #endif | 
|  | 17805 | /* We use char because int might match the return type of a gcc2 | 
|  | 17806 | builtin and then its argument prototype would still apply.  */ | 
|  | 17807 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17808 | int | 
|  | 17809 | main () | 
|  | 17810 | { | 
|  | 17811 | dlopen (); | 
|  | 17812 | ; | 
|  | 17813 | return 0; | 
|  | 17814 | } | 
|  | 17815 | _ACEOF | 
|  | 17816 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17818 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17819 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17820 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17821 | rm -f conftest.er1 | 
|  | 17822 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17824 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17825 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 17826 | || test ! -s conftest.err' | 
|  | 17827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17828 | (eval $ac_try) 2>&5 | 
|  | 17829 | ac_status=$? | 
|  | 17830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17831 | (exit $ac_status); }; } && | 
|  | 17832 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17834 | (eval $ac_try) 2>&5 | 
|  | 17835 | ac_status=$? | 
|  | 17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17837 | (exit $ac_status); }; }; then | 
|  | 17838 | ac_cv_lib_svld_dlopen=yes | 
|  | 17839 | else | 
|  | 17840 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17841 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17842 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17843 | ac_cv_lib_svld_dlopen=no | 
|  | 17844 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17845 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 17846 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17847 | LIBS=$ac_check_lib_save_LIBS | 
|  | 17848 | fi | 
|  | 17849 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 17850 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 17851 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 17852 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 17853 | else | 
|  | 17854 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 17855 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 17856 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 17857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17858 | else | 
|  | 17859 | ac_check_lib_save_LIBS=$LIBS | 
|  | 17860 | LIBS="-ldld  $LIBS" | 
|  | 17861 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17862 | /* confdefs.h.  */ | 
|  | 17863 | _ACEOF | 
|  | 17864 | cat confdefs.h >>conftest.$ac_ext | 
|  | 17865 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 17866 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17867 |  | 
|  | 17868 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 17869 | #ifdef __cplusplus | 
|  | 17870 | extern "C" | 
|  | 17871 | #endif | 
|  | 17872 | /* We use char because int might match the return type of a gcc2 | 
|  | 17873 | builtin and then its argument prototype would still apply.  */ | 
|  | 17874 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17875 | int | 
|  | 17876 | main () | 
|  | 17877 | { | 
|  | 17878 | dld_link (); | 
|  | 17879 | ; | 
|  | 17880 | return 0; | 
|  | 17881 | } | 
|  | 17882 | _ACEOF | 
|  | 17883 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 17884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17885 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17886 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17887 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 17888 | rm -f conftest.er1 | 
|  | 17889 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17891 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17892 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 17893 | || test ! -s conftest.err' | 
|  | 17894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17895 | (eval $ac_try) 2>&5 | 
|  | 17896 | ac_status=$? | 
|  | 17897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17898 | (exit $ac_status); }; } && | 
|  | 17899 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 17901 | (eval $ac_try) 2>&5 | 
|  | 17902 | ac_status=$? | 
|  | 17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 17904 | (exit $ac_status); }; }; then | 
|  | 17905 | ac_cv_lib_dld_dld_link=yes | 
|  | 17906 | else | 
|  | 17907 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17908 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 17909 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17910 | ac_cv_lib_dld_dld_link=no | 
|  | 17911 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17912 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 17913 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17914 | LIBS=$ac_check_lib_save_LIBS | 
|  | 17915 | fi | 
|  | 17916 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 17917 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 17918 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 17919 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 17920 | fi | 
|  | 17921 |  | 
|  | 17922 |  | 
|  | 17923 | fi | 
|  | 17924 |  | 
|  | 17925 |  | 
|  | 17926 | fi | 
|  | 17927 |  | 
|  | 17928 |  | 
|  | 17929 | fi | 
|  | 17930 |  | 
|  | 17931 |  | 
|  | 17932 | fi | 
|  | 17933 |  | 
|  | 17934 |  | 
|  | 17935 | fi | 
|  | 17936 |  | 
|  | 17937 | ;; | 
|  | 17938 | esac | 
|  | 17939 |  | 
|  | 17940 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 17941 | enable_dlopen=yes | 
|  | 17942 | else | 
|  | 17943 | enable_dlopen=no | 
|  | 17944 | fi | 
|  | 17945 |  | 
|  | 17946 | case $lt_cv_dlopen in | 
|  | 17947 | dlopen) | 
|  | 17948 | save_CPPFLAGS="$CPPFLAGS" | 
|  | 17949 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|  | 17950 |  | 
|  | 17951 | save_LDFLAGS="$LDFLAGS" | 
|  | 17952 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 17953 |  | 
|  | 17954 | save_LIBS="$LIBS" | 
|  | 17955 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 17956 |  | 
|  | 17957 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 17958 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 17959 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 17960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 17961 | else | 
|  | 17962 | if test "$cross_compiling" = yes; then : | 
|  | 17963 | lt_cv_dlopen_self=cross | 
|  | 17964 | else | 
|  | 17965 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 17966 | lt_status=$lt_dlunknown | 
|  | 17967 | cat > conftest.$ac_ext <<EOF | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 17968 | #line 17968 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17969 | #include "confdefs.h" | 
|  | 17970 |  | 
|  | 17971 | #if HAVE_DLFCN_H | 
|  | 17972 | #include <dlfcn.h> | 
|  | 17973 | #endif | 
|  | 17974 |  | 
|  | 17975 | #include <stdio.h> | 
|  | 17976 |  | 
|  | 17977 | #ifdef RTLD_GLOBAL | 
|  | 17978 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 17979 | #else | 
|  | 17980 | #  ifdef DL_GLOBAL | 
|  | 17981 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 17982 | #  else | 
|  | 17983 | #    define LT_DLGLOBAL		0 | 
|  | 17984 | #  endif | 
|  | 17985 | #endif | 
|  | 17986 |  | 
|  | 17987 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 17988 | find out it does not work in some platform. */ | 
|  | 17989 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 17990 | #  ifdef RTLD_LAZY | 
|  | 17991 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 17992 | #  else | 
|  | 17993 | #    ifdef DL_LAZY | 
|  | 17994 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 17995 | #    else | 
|  | 17996 | #      ifdef RTLD_NOW | 
|  | 17997 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 17998 | #      else | 
|  | 17999 | #        ifdef DL_NOW | 
|  | 18000 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 18001 | #        else | 
|  | 18002 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 18003 | #        endif | 
|  | 18004 | #      endif | 
|  | 18005 | #    endif | 
|  | 18006 | #  endif | 
|  | 18007 | #endif | 
|  | 18008 |  | 
|  | 18009 | #ifdef __cplusplus | 
|  | 18010 | extern "C" void exit (int); | 
|  | 18011 | #endif | 
|  | 18012 |  | 
|  | 18013 | void fnord() { int i=42;} | 
|  | 18014 | int main () | 
|  | 18015 | { | 
|  | 18016 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 18017 | int status = $lt_dlunknown; | 
|  | 18018 |  | 
|  | 18019 | if (self) | 
|  | 18020 | { | 
|  | 18021 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 18022 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 18023 | /* dlclose (self); */ | 
|  | 18024 | } | 
|  | 18025 |  | 
|  | 18026 | exit (status); | 
|  | 18027 | } | 
|  | 18028 | EOF | 
|  | 18029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18030 | (eval $ac_link) 2>&5 | 
|  | 18031 | ac_status=$? | 
|  | 18032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18033 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 18034 | (./conftest; exit; ) 2>/dev/null | 
|  | 18035 | lt_status=$? | 
|  | 18036 | case x$lt_status in | 
|  | 18037 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 18038 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 18039 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 18040 | esac | 
|  | 18041 | else : | 
|  | 18042 | # compilation failed | 
|  | 18043 | lt_cv_dlopen_self=no | 
|  | 18044 | fi | 
|  | 18045 | fi | 
|  | 18046 | rm -fr conftest* | 
|  | 18047 |  | 
|  | 18048 |  | 
|  | 18049 | fi | 
|  | 18050 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 18051 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 18052 |  | 
|  | 18053 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 18054 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 18055 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 18056 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 18057 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 18058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18059 | else | 
|  | 18060 | if test "$cross_compiling" = yes; then : | 
|  | 18061 | lt_cv_dlopen_self_static=cross | 
|  | 18062 | else | 
|  | 18063 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 18064 | lt_status=$lt_dlunknown | 
|  | 18065 | cat > conftest.$ac_ext <<EOF | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 18066 | #line 18066 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18067 | #include "confdefs.h" | 
|  | 18068 |  | 
|  | 18069 | #if HAVE_DLFCN_H | 
|  | 18070 | #include <dlfcn.h> | 
|  | 18071 | #endif | 
|  | 18072 |  | 
|  | 18073 | #include <stdio.h> | 
|  | 18074 |  | 
|  | 18075 | #ifdef RTLD_GLOBAL | 
|  | 18076 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 18077 | #else | 
|  | 18078 | #  ifdef DL_GLOBAL | 
|  | 18079 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 18080 | #  else | 
|  | 18081 | #    define LT_DLGLOBAL		0 | 
|  | 18082 | #  endif | 
|  | 18083 | #endif | 
|  | 18084 |  | 
|  | 18085 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 18086 | find out it does not work in some platform. */ | 
|  | 18087 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 18088 | #  ifdef RTLD_LAZY | 
|  | 18089 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 18090 | #  else | 
|  | 18091 | #    ifdef DL_LAZY | 
|  | 18092 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 18093 | #    else | 
|  | 18094 | #      ifdef RTLD_NOW | 
|  | 18095 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 18096 | #      else | 
|  | 18097 | #        ifdef DL_NOW | 
|  | 18098 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 18099 | #        else | 
|  | 18100 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 18101 | #        endif | 
|  | 18102 | #      endif | 
|  | 18103 | #    endif | 
|  | 18104 | #  endif | 
|  | 18105 | #endif | 
|  | 18106 |  | 
|  | 18107 | #ifdef __cplusplus | 
|  | 18108 | extern "C" void exit (int); | 
|  | 18109 | #endif | 
|  | 18110 |  | 
|  | 18111 | void fnord() { int i=42;} | 
|  | 18112 | int main () | 
|  | 18113 | { | 
|  | 18114 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 18115 | int status = $lt_dlunknown; | 
|  | 18116 |  | 
|  | 18117 | if (self) | 
|  | 18118 | { | 
|  | 18119 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 18120 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 18121 | /* dlclose (self); */ | 
|  | 18122 | } | 
|  | 18123 |  | 
|  | 18124 | exit (status); | 
|  | 18125 | } | 
|  | 18126 | EOF | 
|  | 18127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 18128 | (eval $ac_link) 2>&5 | 
|  | 18129 | ac_status=$? | 
|  | 18130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 18131 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 18132 | (./conftest; exit; ) 2>/dev/null | 
|  | 18133 | lt_status=$? | 
|  | 18134 | case x$lt_status in | 
|  | 18135 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 18136 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 18137 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 18138 | esac | 
|  | 18139 | else : | 
|  | 18140 | # compilation failed | 
|  | 18141 | lt_cv_dlopen_self_static=no | 
|  | 18142 | fi | 
|  | 18143 | fi | 
|  | 18144 | rm -fr conftest* | 
|  | 18145 |  | 
|  | 18146 |  | 
|  | 18147 | fi | 
|  | 18148 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 18149 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 18150 | fi | 
|  | 18151 |  | 
|  | 18152 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 18153 | LDFLAGS="$save_LDFLAGS" | 
|  | 18154 | LIBS="$save_LIBS" | 
|  | 18155 | ;; | 
|  | 18156 | esac | 
|  | 18157 |  | 
|  | 18158 | case $lt_cv_dlopen_self in | 
|  | 18159 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 18160 | *) enable_dlopen_self=unknown ;; | 
|  | 18161 | esac | 
|  | 18162 |  | 
|  | 18163 | case $lt_cv_dlopen_self_static in | 
|  | 18164 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 18165 | *) enable_dlopen_self_static=unknown ;; | 
|  | 18166 | esac | 
|  | 18167 | fi | 
|  | 18168 |  | 
|  | 18169 |  | 
|  | 18170 | # The else clause should only fire when bootstrapping the | 
|  | 18171 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 18172 | # with your package, and you will get complaints that there are | 
|  | 18173 | # no rules to generate ltmain.sh. | 
|  | 18174 | if test -f "$ltmain"; then | 
|  | 18175 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 18176 | # without removal of \ escapes. | 
|  | 18177 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 18178 | setopt NO_GLOB_SUBST | 
|  | 18179 | fi | 
|  | 18180 | # Now quote all the things that may contain metacharacters while being | 
|  | 18181 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 18182 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18183 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 18184 | SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18185 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 18186 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 18187 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 18188 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 18189 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 18190 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 18191 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 18192 | compiler_CXX \ | 
|  | 18193 | CC_CXX \ | 
|  | 18194 | LD_CXX \ | 
|  | 18195 | lt_prog_compiler_wl_CXX \ | 
|  | 18196 | lt_prog_compiler_pic_CXX \ | 
|  | 18197 | lt_prog_compiler_static_CXX \ | 
|  | 18198 | lt_prog_compiler_no_builtin_flag_CXX \ | 
|  | 18199 | export_dynamic_flag_spec_CXX \ | 
|  | 18200 | thread_safe_flag_spec_CXX \ | 
|  | 18201 | whole_archive_flag_spec_CXX \ | 
|  | 18202 | enable_shared_with_static_runtimes_CXX \ | 
|  | 18203 | old_archive_cmds_CXX \ | 
|  | 18204 | old_archive_from_new_cmds_CXX \ | 
|  | 18205 | predep_objects_CXX \ | 
|  | 18206 | postdep_objects_CXX \ | 
|  | 18207 | predeps_CXX \ | 
|  | 18208 | postdeps_CXX \ | 
|  | 18209 | compiler_lib_search_path_CXX \ | 
|  | 18210 | archive_cmds_CXX \ | 
|  | 18211 | archive_expsym_cmds_CXX \ | 
|  | 18212 | postinstall_cmds_CXX \ | 
|  | 18213 | postuninstall_cmds_CXX \ | 
|  | 18214 | old_archive_from_expsyms_cmds_CXX \ | 
|  | 18215 | allow_undefined_flag_CXX \ | 
|  | 18216 | no_undefined_flag_CXX \ | 
|  | 18217 | export_symbols_cmds_CXX \ | 
|  | 18218 | hardcode_libdir_flag_spec_CXX \ | 
|  | 18219 | hardcode_libdir_flag_spec_ld_CXX \ | 
|  | 18220 | hardcode_libdir_separator_CXX \ | 
|  | 18221 | hardcode_automatic_CXX \ | 
|  | 18222 | module_cmds_CXX \ | 
|  | 18223 | module_expsym_cmds_CXX \ | 
|  | 18224 | lt_cv_prog_compiler_c_o_CXX \ | 
|  | 18225 | exclude_expsyms_CXX \ | 
|  | 18226 | include_expsyms_CXX; do | 
|  | 18227 |  | 
|  | 18228 | case $var in | 
|  | 18229 | old_archive_cmds_CXX | \ | 
|  | 18230 | old_archive_from_new_cmds_CXX | \ | 
|  | 18231 | archive_cmds_CXX | \ | 
|  | 18232 | archive_expsym_cmds_CXX | \ | 
|  | 18233 | module_cmds_CXX | \ | 
|  | 18234 | module_expsym_cmds_CXX | \ | 
|  | 18235 | old_archive_from_expsyms_cmds_CXX | \ | 
|  | 18236 | export_symbols_cmds_CXX | \ | 
|  | 18237 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 18238 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 18239 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 18240 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 18241 | # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18242 | 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] | 18243 | ;; | 
|  | 18244 | *) | 
|  | 18245 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 18246 | ;; | 
|  | 18247 | esac | 
|  | 18248 | done | 
|  | 18249 |  | 
|  | 18250 | case $lt_echo in | 
|  | 18251 | *'\$0 --fallback-echo"') | 
|  | 18252 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 18253 | ;; | 
|  | 18254 | esac | 
|  | 18255 |  | 
|  | 18256 | cfgfile="$ofile" | 
|  | 18257 |  | 
|  | 18258 | cat <<__EOF__ >> "$cfgfile" | 
|  | 18259 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 18260 |  | 
|  | 18261 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 18262 |  | 
|  | 18263 | # Shell to use when invoking shell scripts. | 
|  | 18264 | SHELL=$lt_SHELL | 
|  | 18265 |  | 
|  | 18266 | # Whether or not to build shared libraries. | 
|  | 18267 | build_libtool_libs=$enable_shared | 
|  | 18268 |  | 
|  | 18269 | # Whether or not to build static libraries. | 
|  | 18270 | build_old_libs=$enable_static | 
|  | 18271 |  | 
|  | 18272 | # Whether or not to add -lc for building shared libraries. | 
|  | 18273 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
|  | 18274 |  | 
|  | 18275 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 18276 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
|  | 18277 |  | 
|  | 18278 | # Whether or not to optimize for fast installation. | 
|  | 18279 | fast_install=$enable_fast_install | 
|  | 18280 |  | 
|  | 18281 | # The host system. | 
|  | 18282 | host_alias=$host_alias | 
|  | 18283 | host=$host | 
|  | 18284 |  | 
|  | 18285 | # An echo program that does not interpret backslashes. | 
|  | 18286 | echo=$lt_echo | 
|  | 18287 |  | 
|  | 18288 | # The archiver. | 
|  | 18289 | AR=$lt_AR | 
|  | 18290 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 18291 |  | 
|  | 18292 | # A C compiler. | 
|  | 18293 | LTCC=$lt_LTCC | 
|  | 18294 |  | 
|  | 18295 | # A language-specific compiler. | 
|  | 18296 | CC=$lt_compiler_CXX | 
|  | 18297 |  | 
|  | 18298 | # Is the compiler the GNU C compiler? | 
|  | 18299 | with_gcc=$GCC_CXX | 
|  | 18300 |  | 
|  | 18301 | # An ERE matcher. | 
|  | 18302 | EGREP=$lt_EGREP | 
|  | 18303 |  | 
|  | 18304 | # The linker used to build libraries. | 
|  | 18305 | LD=$lt_LD_CXX | 
|  | 18306 |  | 
|  | 18307 | # Whether we need hard or soft links. | 
|  | 18308 | LN_S=$lt_LN_S | 
|  | 18309 |  | 
|  | 18310 | # A BSD-compatible nm program. | 
|  | 18311 | NM=$lt_NM | 
|  | 18312 |  | 
|  | 18313 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18314 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18315 |  | 
|  | 18316 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 18317 | MAGIC_CMD=$MAGIC_CMD | 
|  | 18318 |  | 
|  | 18319 | # Used on cygwin: DLL creation program. | 
|  | 18320 | DLLTOOL="$DLLTOOL" | 
|  | 18321 |  | 
|  | 18322 | # Used on cygwin: object dumper. | 
|  | 18323 | OBJDUMP="$OBJDUMP" | 
|  | 18324 |  | 
|  | 18325 | # Used on cygwin: assembler. | 
|  | 18326 | AS="$AS" | 
|  | 18327 |  | 
|  | 18328 | # The name of the directory that contains temporary libtool files. | 
|  | 18329 | objdir=$objdir | 
|  | 18330 |  | 
|  | 18331 | # How to create reloadable object files. | 
|  | 18332 | reload_flag=$lt_reload_flag | 
|  | 18333 | reload_cmds=$lt_reload_cmds | 
|  | 18334 |  | 
|  | 18335 | # How to pass a linker flag through the compiler. | 
|  | 18336 | wl=$lt_lt_prog_compiler_wl_CXX | 
|  | 18337 |  | 
|  | 18338 | # Object file suffix (normally "o"). | 
|  | 18339 | objext="$ac_objext" | 
|  | 18340 |  | 
|  | 18341 | # Old archive suffix (normally "a"). | 
|  | 18342 | libext="$libext" | 
|  | 18343 |  | 
|  | 18344 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18345 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18346 |  | 
|  | 18347 | # Executable file suffix (normally ""). | 
|  | 18348 | exeext="$exeext" | 
|  | 18349 |  | 
|  | 18350 | # Additional compiler flags for building library objects. | 
|  | 18351 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
|  | 18352 | pic_mode=$pic_mode | 
|  | 18353 |  | 
|  | 18354 | # What is the maximum length of a command? | 
|  | 18355 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 18356 |  | 
|  | 18357 | # Does compiler simultaneously support -c and -o options? | 
|  | 18358 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
|  | 18359 |  | 
|  | 18360 | # Must we lock files when doing compilation ? | 
|  | 18361 | need_locks=$lt_need_locks | 
|  | 18362 |  | 
|  | 18363 | # Do we need the lib prefix for modules? | 
|  | 18364 | need_lib_prefix=$need_lib_prefix | 
|  | 18365 |  | 
|  | 18366 | # Do we need a version for libraries? | 
|  | 18367 | need_version=$need_version | 
|  | 18368 |  | 
|  | 18369 | # Whether dlopen is supported. | 
|  | 18370 | dlopen_support=$enable_dlopen | 
|  | 18371 |  | 
|  | 18372 | # Whether dlopen of programs is supported. | 
|  | 18373 | dlopen_self=$enable_dlopen_self | 
|  | 18374 |  | 
|  | 18375 | # Whether dlopen of statically linked programs is supported. | 
|  | 18376 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 18377 |  | 
|  | 18378 | # Compiler flag to prevent dynamic linking. | 
|  | 18379 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
|  | 18380 |  | 
|  | 18381 | # Compiler flag to turn off builtin functions. | 
|  | 18382 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
|  | 18383 |  | 
|  | 18384 | # Compiler flag to allow reflexive dlopens. | 
|  | 18385 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
|  | 18386 |  | 
|  | 18387 | # Compiler flag to generate shared objects directly from archives. | 
|  | 18388 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
|  | 18389 |  | 
|  | 18390 | # Compiler flag to generate thread-safe objects. | 
|  | 18391 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
|  | 18392 |  | 
|  | 18393 | # Library versioning type. | 
|  | 18394 | version_type=$version_type | 
|  | 18395 |  | 
|  | 18396 | # Format of library name prefix. | 
|  | 18397 | libname_spec=$lt_libname_spec | 
|  | 18398 |  | 
|  | 18399 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 18400 | # The last name is the one that the linker finds with -lNAME. | 
|  | 18401 | library_names_spec=$lt_library_names_spec | 
|  | 18402 |  | 
|  | 18403 | # The coded name of the library, if different from the real name. | 
|  | 18404 | soname_spec=$lt_soname_spec | 
|  | 18405 |  | 
|  | 18406 | # Commands used to build and install an old-style archive. | 
|  | 18407 | RANLIB=$lt_RANLIB | 
|  | 18408 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
|  | 18409 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 18410 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 18411 |  | 
|  | 18412 | # Create an old-style archive from a shared archive. | 
|  | 18413 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
|  | 18414 |  | 
|  | 18415 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 18416 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
|  | 18417 |  | 
|  | 18418 | # Commands used to build and install a shared archive. | 
|  | 18419 | archive_cmds=$lt_archive_cmds_CXX | 
|  | 18420 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
|  | 18421 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 18422 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 18423 |  | 
|  | 18424 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 18425 | module_cmds=$lt_module_cmds_CXX | 
|  | 18426 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
|  | 18427 |  | 
|  | 18428 | # Commands to strip libraries. | 
|  | 18429 | old_striplib=$lt_old_striplib | 
|  | 18430 | striplib=$lt_striplib | 
|  | 18431 |  | 
|  | 18432 | # Dependencies to place before the objects being linked to create a | 
|  | 18433 | # shared library. | 
|  | 18434 | predep_objects=$lt_predep_objects_CXX | 
|  | 18435 |  | 
|  | 18436 | # Dependencies to place after the objects being linked to create a | 
|  | 18437 | # shared library. | 
|  | 18438 | postdep_objects=$lt_postdep_objects_CXX | 
|  | 18439 |  | 
|  | 18440 | # Dependencies to place before the objects being linked to create a | 
|  | 18441 | # shared library. | 
|  | 18442 | predeps=$lt_predeps_CXX | 
|  | 18443 |  | 
|  | 18444 | # Dependencies to place after the objects being linked to create a | 
|  | 18445 | # shared library. | 
|  | 18446 | postdeps=$lt_postdeps_CXX | 
|  | 18447 |  | 
|  | 18448 | # The library search path used internally by the compiler when linking | 
|  | 18449 | # a shared library. | 
|  | 18450 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
|  | 18451 |  | 
|  | 18452 | # Method to check whether dependent libraries are shared objects. | 
|  | 18453 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 18454 |  | 
|  | 18455 | # Command to use when deplibs_check_method == file_magic. | 
|  | 18456 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 18457 |  | 
|  | 18458 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 18459 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
|  | 18460 |  | 
|  | 18461 | # Flag that forces no undefined symbols. | 
|  | 18462 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
|  | 18463 |  | 
|  | 18464 | # Commands used to finish a libtool library installation in a directory. | 
|  | 18465 | finish_cmds=$lt_finish_cmds | 
|  | 18466 |  | 
|  | 18467 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 18468 | finish_eval=$lt_finish_eval | 
|  | 18469 |  | 
|  | 18470 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 18471 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 18472 |  | 
|  | 18473 | # Transform the output of nm in a proper C declaration | 
|  | 18474 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 18475 |  | 
|  | 18476 | # Transform the output of nm in a C name address pair | 
|  | 18477 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 18478 |  | 
|  | 18479 | # This is the shared library runtime path variable. | 
|  | 18480 | runpath_var=$runpath_var | 
|  | 18481 |  | 
|  | 18482 | # This is the shared library path variable. | 
|  | 18483 | shlibpath_var=$shlibpath_var | 
|  | 18484 |  | 
|  | 18485 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 18486 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 18487 |  | 
|  | 18488 | # How to hardcode a shared library path into an executable. | 
|  | 18489 | hardcode_action=$hardcode_action_CXX | 
|  | 18490 |  | 
|  | 18491 | # Whether we should hardcode library paths into libraries. | 
|  | 18492 | hardcode_into_libs=$hardcode_into_libs | 
|  | 18493 |  | 
|  | 18494 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 18495 | # This must work even if \$libdir does not exist. | 
|  | 18496 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
|  | 18497 |  | 
|  | 18498 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 18499 | # a binary during linking. This must work even if \$libdir does | 
|  | 18500 | # not exist. | 
|  | 18501 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
|  | 18502 |  | 
|  | 18503 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 18504 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
|  | 18505 |  | 
|  | 18506 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 18507 | # resulting binary. | 
|  | 18508 | hardcode_direct=$hardcode_direct_CXX | 
|  | 18509 |  | 
|  | 18510 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 18511 | # resulting binary. | 
|  | 18512 | hardcode_minus_L=$hardcode_minus_L_CXX | 
|  | 18513 |  | 
|  | 18514 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 18515 | # the resulting binary. | 
|  | 18516 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
|  | 18517 |  | 
|  | 18518 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 18519 | # and all subsequent libraries and executables linked against it. | 
|  | 18520 | hardcode_automatic=$hardcode_automatic_CXX | 
|  | 18521 |  | 
|  | 18522 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 18523 | # restored at relink time. | 
|  | 18524 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 18525 |  | 
|  | 18526 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 18527 | link_all_deplibs=$link_all_deplibs_CXX | 
|  | 18528 |  | 
|  | 18529 | # Compile-time system search path for libraries | 
|  | 18530 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 18531 |  | 
|  | 18532 | # Run-time system search path for libraries | 
|  | 18533 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 18534 |  | 
|  | 18535 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 18536 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
|  | 18537 |  | 
|  | 18538 | # Set to yes if exported symbols are required. | 
|  | 18539 | always_export_symbols=$always_export_symbols_CXX | 
|  | 18540 |  | 
|  | 18541 | # The commands to list exported symbols. | 
|  | 18542 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
|  | 18543 |  | 
|  | 18544 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 18545 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 18546 |  | 
|  | 18547 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 18548 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
|  | 18549 |  | 
|  | 18550 | # Symbols that must always be exported. | 
|  | 18551 | include_expsyms=$lt_include_expsyms_CXX | 
|  | 18552 |  | 
|  | 18553 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 18554 |  | 
|  | 18555 | __EOF__ | 
|  | 18556 |  | 
|  | 18557 |  | 
|  | 18558 | else | 
|  | 18559 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 18560 | # `config.status --recheck' to rerun these tests and create the | 
|  | 18561 | # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18562 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 18563 | if test -f "$ltmain_in"; then | 
|  | 18564 | test -f Makefile && make "$ltmain" | 
|  | 18565 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18566 | fi | 
|  | 18567 |  | 
|  | 18568 |  | 
|  | 18569 | ac_ext=c | 
|  | 18570 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 18571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 18572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 18573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 18574 |  | 
|  | 18575 | CC=$lt_save_CC | 
|  | 18576 | LDCXX=$LD | 
|  | 18577 | LD=$lt_save_LD | 
|  | 18578 | GCC=$lt_save_GCC | 
|  | 18579 | with_gnu_ldcxx=$with_gnu_ld | 
|  | 18580 | with_gnu_ld=$lt_save_with_gnu_ld | 
|  | 18581 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
|  | 18582 | lt_cv_path_LD=$lt_save_path_LD | 
|  | 18583 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
|  | 18584 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
|  | 18585 |  | 
|  | 18586 | else | 
|  | 18587 | tagname="" | 
|  | 18588 | fi | 
|  | 18589 | ;; | 
|  | 18590 |  | 
|  | 18591 | F77) | 
|  | 18592 | if test -n "$F77" && test "X$F77" != "Xno"; then | 
|  | 18593 |  | 
|  | 18594 | ac_ext=f | 
|  | 18595 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
|  | 18596 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 18597 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
|  | 18598 |  | 
|  | 18599 |  | 
|  | 18600 | archive_cmds_need_lc_F77=no | 
|  | 18601 | allow_undefined_flag_F77= | 
|  | 18602 | always_export_symbols_F77=no | 
|  | 18603 | archive_expsym_cmds_F77= | 
|  | 18604 | export_dynamic_flag_spec_F77= | 
|  | 18605 | hardcode_direct_F77=no | 
|  | 18606 | hardcode_libdir_flag_spec_F77= | 
|  | 18607 | hardcode_libdir_flag_spec_ld_F77= | 
|  | 18608 | hardcode_libdir_separator_F77= | 
|  | 18609 | hardcode_minus_L_F77=no | 
|  | 18610 | hardcode_automatic_F77=no | 
|  | 18611 | module_cmds_F77= | 
|  | 18612 | module_expsym_cmds_F77= | 
|  | 18613 | link_all_deplibs_F77=unknown | 
|  | 18614 | old_archive_cmds_F77=$old_archive_cmds | 
|  | 18615 | no_undefined_flag_F77= | 
|  | 18616 | whole_archive_flag_spec_F77= | 
|  | 18617 | enable_shared_with_static_runtimes_F77=no | 
|  | 18618 |  | 
|  | 18619 | # Source file extension for f77 test sources. | 
|  | 18620 | ac_ext=f | 
|  | 18621 |  | 
|  | 18622 | # Object file extension for compiled f77 test sources. | 
|  | 18623 | objext=o | 
|  | 18624 | objext_F77=$objext | 
|  | 18625 |  | 
|  | 18626 | # Code to be used in simple compile tests | 
|  | 18627 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
|  | 18628 |  | 
|  | 18629 | # Code to be used in simple link tests | 
|  | 18630 | lt_simple_link_test_code="      program t\n      end\n" | 
|  | 18631 |  | 
|  | 18632 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 18633 |  | 
|  | 18634 | # If no C compiler was specified, use CC. | 
|  | 18635 | LTCC=${LTCC-"$CC"} | 
|  | 18636 |  | 
|  | 18637 | # Allow CC to be a program name with arguments. | 
|  | 18638 | compiler=$CC | 
|  | 18639 |  | 
|  | 18640 |  | 
|  | 18641 | # Allow CC to be a program name with arguments. | 
|  | 18642 | lt_save_CC="$CC" | 
|  | 18643 | CC=${F77-"f77"} | 
|  | 18644 | compiler=$CC | 
|  | 18645 | compiler_F77=$CC | 
|  | 18646 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
|  | 18647 |  | 
|  | 18648 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
|  | 18649 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
|  | 18650 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
|  | 18651 | echo "${ECHO_T}$can_build_shared" >&6 | 
|  | 18652 |  | 
|  | 18653 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
|  | 18654 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
|  | 18655 | test "$can_build_shared" = "no" && enable_shared=no | 
|  | 18656 |  | 
|  | 18657 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|  | 18658 | # are all built from PIC. | 
|  | 18659 | case "$host_os" in | 
|  | 18660 | aix3*) | 
|  | 18661 | test "$enable_shared" = yes && enable_static=no | 
|  | 18662 | if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18663 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18664 | postinstall_cmds='$RANLIB $lib' | 
|  | 18665 | fi | 
|  | 18666 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18667 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18668 | test "$enable_shared" = yes && enable_static=no | 
|  | 18669 | ;; | 
|  | 18670 | esac | 
|  | 18671 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
|  | 18672 | echo "${ECHO_T}$enable_shared" >&6 | 
|  | 18673 |  | 
|  | 18674 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
|  | 18675 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
|  | 18676 | # Make sure either enable_shared or enable_static is yes. | 
|  | 18677 | test "$enable_shared" = yes || enable_static=yes | 
|  | 18678 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
|  | 18679 | echo "${ECHO_T}$enable_static" >&6 | 
|  | 18680 |  | 
|  | 18681 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
|  | 18682 |  | 
|  | 18683 | GCC_F77="$G77" | 
|  | 18684 | LD_F77="$LD" | 
|  | 18685 |  | 
|  | 18686 | lt_prog_compiler_wl_F77= | 
|  | 18687 | lt_prog_compiler_pic_F77= | 
|  | 18688 | lt_prog_compiler_static_F77= | 
|  | 18689 |  | 
|  | 18690 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 18691 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 18692 |  | 
|  | 18693 | if test "$GCC" = yes; then | 
|  | 18694 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18695 | lt_prog_compiler_static_F77='-static' | 
|  | 18696 |  | 
|  | 18697 | case $host_os in | 
|  | 18698 | aix*) | 
|  | 18699 | # All AIX code is PIC. | 
|  | 18700 | if test "$host_cpu" = ia64; then | 
|  | 18701 | # AIX 5 now supports IA64 processor | 
|  | 18702 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 18703 | fi | 
|  | 18704 | ;; | 
|  | 18705 |  | 
|  | 18706 | amigaos*) | 
|  | 18707 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 18708 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 18709 | # like `-m68040'. | 
|  | 18710 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
|  | 18711 | ;; | 
|  | 18712 |  | 
|  | 18713 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 18714 | # PIC is the default for these OSes. | 
|  | 18715 | ;; | 
|  | 18716 |  | 
|  | 18717 | mingw* | pw32* | os2*) | 
|  | 18718 | # This hack is so that the source file can tell whether it is being | 
|  | 18719 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 18720 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
|  | 18721 | ;; | 
|  | 18722 |  | 
|  | 18723 | darwin* | rhapsody*) | 
|  | 18724 | # PIC is the default on this platform | 
|  | 18725 | # Common symbols not allowed in MH_DYLIB files | 
|  | 18726 | lt_prog_compiler_pic_F77='-fno-common' | 
|  | 18727 | ;; | 
|  | 18728 |  | 
|  | 18729 | msdosdjgpp*) | 
|  | 18730 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 18731 | # on systems that don't support them. | 
|  | 18732 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 18733 | enable_shared=no | 
|  | 18734 | ;; | 
|  | 18735 |  | 
|  | 18736 | sysv4*MP*) | 
|  | 18737 | if test -d /usr/nec; then | 
|  | 18738 | lt_prog_compiler_pic_F77=-Kconform_pic | 
|  | 18739 | fi | 
|  | 18740 | ;; | 
|  | 18741 |  | 
|  | 18742 | hpux*) | 
|  | 18743 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 18744 | # not for PA HP-UX. | 
|  | 18745 | case "$host_cpu" in | 
|  | 18746 | hppa*64*|ia64*) | 
|  | 18747 | # +Z the default | 
|  | 18748 | ;; | 
|  | 18749 | *) | 
|  | 18750 | lt_prog_compiler_pic_F77='-fPIC' | 
|  | 18751 | ;; | 
|  | 18752 | esac | 
|  | 18753 | ;; | 
|  | 18754 |  | 
|  | 18755 | *) | 
|  | 18756 | lt_prog_compiler_pic_F77='-fPIC' | 
|  | 18757 | ;; | 
|  | 18758 | esac | 
|  | 18759 | else | 
|  | 18760 | # PORTME Check for flag to pass linker flags through the system compiler. | 
|  | 18761 | case $host_os in | 
|  | 18762 | aix*) | 
|  | 18763 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18764 | if test "$host_cpu" = ia64; then | 
|  | 18765 | # AIX 5 now supports IA64 processor | 
|  | 18766 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 18767 | else | 
|  | 18768 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
|  | 18769 | fi | 
|  | 18770 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18771 | darwin*) | 
|  | 18772 | # PIC is the default on this platform | 
|  | 18773 | # Common symbols not allowed in MH_DYLIB files | 
|  | 18774 | case "$cc_basename" in | 
|  | 18775 | xlc*) | 
|  | 18776 | lt_prog_compiler_pic_F77='-qnocommon' | 
|  | 18777 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18778 | ;; | 
|  | 18779 | esac | 
|  | 18780 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18781 |  | 
|  | 18782 | mingw* | pw32* | os2*) | 
|  | 18783 | # This hack is so that the source file can tell whether it is being | 
|  | 18784 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 18785 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
|  | 18786 | ;; | 
|  | 18787 |  | 
|  | 18788 | hpux9* | hpux10* | hpux11*) | 
|  | 18789 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18790 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 18791 | # not for PA HP-UX. | 
|  | 18792 | case "$host_cpu" in | 
|  | 18793 | hppa*64*|ia64*) | 
|  | 18794 | # +Z the default | 
|  | 18795 | ;; | 
|  | 18796 | *) | 
|  | 18797 | lt_prog_compiler_pic_F77='+Z' | 
|  | 18798 | ;; | 
|  | 18799 | esac | 
|  | 18800 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 18801 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
|  | 18802 | ;; | 
|  | 18803 |  | 
|  | 18804 | irix5* | irix6* | nonstopux*) | 
|  | 18805 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18806 | # PIC (with -KPIC) is the default. | 
|  | 18807 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 18808 | ;; | 
|  | 18809 |  | 
|  | 18810 | newsos6) | 
|  | 18811 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 18812 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 18813 | ;; | 
|  | 18814 |  | 
|  | 18815 | linux*) | 
|  | 18816 | case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18817 | icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18818 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18819 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 18820 | lt_prog_compiler_static_F77='-static' | 
|  | 18821 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18822 | ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18823 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18824 | # All Alpha code is PIC. | 
|  | 18825 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 18826 | ;; | 
|  | 18827 | esac | 
|  | 18828 | ;; | 
|  | 18829 |  | 
|  | 18830 | osf3* | osf4* | osf5*) | 
|  | 18831 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18832 | # All OSF/1 code is PIC. | 
|  | 18833 | lt_prog_compiler_static_F77='-non_shared' | 
|  | 18834 | ;; | 
|  | 18835 |  | 
|  | 18836 | sco3.2v5*) | 
|  | 18837 | lt_prog_compiler_pic_F77='-Kpic' | 
|  | 18838 | lt_prog_compiler_static_F77='-dn' | 
|  | 18839 | ;; | 
|  | 18840 |  | 
|  | 18841 | solaris*) | 
|  | 18842 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18843 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 18844 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 18845 | ;; | 
|  | 18846 |  | 
|  | 18847 | sunos4*) | 
|  | 18848 | lt_prog_compiler_wl_F77='-Qoption ld ' | 
|  | 18849 | lt_prog_compiler_pic_F77='-PIC' | 
|  | 18850 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 18851 | ;; | 
|  | 18852 |  | 
|  | 18853 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 18854 | lt_prog_compiler_wl_F77='-Wl,' | 
|  | 18855 | lt_prog_compiler_pic_F77='-KPIC' | 
|  | 18856 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 18857 | ;; | 
|  | 18858 |  | 
|  | 18859 | sysv4*MP*) | 
|  | 18860 | if test -d /usr/nec ;then | 
|  | 18861 | lt_prog_compiler_pic_F77='-Kconform_pic' | 
|  | 18862 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 18863 | fi | 
|  | 18864 | ;; | 
|  | 18865 |  | 
|  | 18866 | uts4*) | 
|  | 18867 | lt_prog_compiler_pic_F77='-pic' | 
|  | 18868 | lt_prog_compiler_static_F77='-Bstatic' | 
|  | 18869 | ;; | 
|  | 18870 |  | 
|  | 18871 | *) | 
|  | 18872 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 18873 | ;; | 
|  | 18874 | esac | 
|  | 18875 | fi | 
|  | 18876 |  | 
|  | 18877 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
|  | 18878 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 
|  | 18879 |  | 
|  | 18880 | # | 
|  | 18881 | # Check to make sure the PIC flag actually works. | 
|  | 18882 | # | 
|  | 18883 | if test -n "$lt_prog_compiler_pic_F77"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18884 |  | 
|  | 18885 | 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] | 18886 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 
|  | 18887 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
|  | 18888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18889 | else | 
|  | 18890 | lt_prog_compiler_pic_works_F77=no | 
|  | 18891 | ac_outfile=conftest.$ac_objext | 
|  | 18892 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 18893 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
|  | 18894 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 18895 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 18896 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 18897 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 18898 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 18899 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 18900 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 18901 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 18902 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 18903 | (eval echo "\"\$as_me:18903: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18904 | (eval "$lt_compile" 2>conftest.err) | 
|  | 18905 | ac_status=$? | 
|  | 18906 | cat conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 18907 | echo "$as_me:18907: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18908 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 18909 | # The compiler can only warn and ignore the option if not recognized | 
|  | 18910 | # So say no if there are warnings | 
|  | 18911 | if test ! -s conftest.err; then | 
|  | 18912 | lt_prog_compiler_pic_works_F77=yes | 
|  | 18913 | fi | 
|  | 18914 | fi | 
|  | 18915 | $rm conftest* | 
|  | 18916 |  | 
|  | 18917 | fi | 
|  | 18918 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
|  | 18919 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 
|  | 18920 |  | 
|  | 18921 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
|  | 18922 | case $lt_prog_compiler_pic_F77 in | 
|  | 18923 | "" | " "*) ;; | 
|  | 18924 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
|  | 18925 | esac | 
|  | 18926 | else | 
|  | 18927 | lt_prog_compiler_pic_F77= | 
|  | 18928 | lt_prog_compiler_can_build_shared_F77=no | 
|  | 18929 | fi | 
|  | 18930 |  | 
|  | 18931 | fi | 
|  | 18932 | case "$host_os" in | 
|  | 18933 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 18934 | *djgpp*) | 
|  | 18935 | lt_prog_compiler_pic_F77= | 
|  | 18936 | ;; | 
|  | 18937 | *) | 
|  | 18938 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
|  | 18939 | ;; | 
|  | 18940 | esac | 
|  | 18941 |  | 
|  | 18942 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 18943 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 18944 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
|  | 18945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 18946 | else | 
|  | 18947 | lt_cv_prog_compiler_c_o_F77=no | 
|  | 18948 | $rm -r conftest 2>/dev/null | 
|  | 18949 | mkdir conftest | 
|  | 18950 | cd conftest | 
|  | 18951 | mkdir out | 
|  | 18952 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 18953 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18954 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 18955 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 18956 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 18957 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 18958 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 18959 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 18960 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 18961 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 18962 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 18963 | (eval echo "\"\$as_me:18963: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18964 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 18965 | ac_status=$? | 
|  | 18966 | cat out/conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 18967 | echo "$as_me:18967: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18968 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 18969 | then | 
|  | 18970 | # The compiler can only warn and ignore the option if not recognized | 
|  | 18971 | # So say no if there are warnings | 
|  | 18972 | if test ! -s out/conftest.err; then | 
|  | 18973 | lt_cv_prog_compiler_c_o_F77=yes | 
|  | 18974 | fi | 
|  | 18975 | fi | 
|  | 18976 | chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18977 | $rm conftest* | 
|  | 18978 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 18979 | # template instantiation | 
|  | 18980 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
|  | 18981 | $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18982 | cd .. | 
|  | 18983 | rmdir conftest | 
|  | 18984 | $rm conftest* | 
|  | 18985 |  | 
|  | 18986 | fi | 
|  | 18987 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
|  | 18988 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 
|  | 18989 |  | 
|  | 18990 |  | 
|  | 18991 | hard_links="nottested" | 
|  | 18992 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
|  | 18993 | # do not overwrite the value of need_locks provided by the user | 
|  | 18994 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 18995 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 18996 | hard_links=yes | 
|  | 18997 | $rm conftest* | 
|  | 18998 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 18999 | touch conftest.a | 
|  | 19000 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 19001 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 19002 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 19003 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 19004 | if test "$hard_links" = no; then | 
|  | 19005 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 19006 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 19007 | need_locks=warn | 
|  | 19008 | fi | 
|  | 19009 | else | 
|  | 19010 | need_locks=no | 
|  | 19011 | fi | 
|  | 19012 |  | 
|  | 19013 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 19014 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 19015 |  | 
|  | 19016 | runpath_var= | 
|  | 19017 | allow_undefined_flag_F77= | 
|  | 19018 | enable_shared_with_static_runtimes_F77=no | 
|  | 19019 | archive_cmds_F77= | 
|  | 19020 | archive_expsym_cmds_F77= | 
|  | 19021 | old_archive_From_new_cmds_F77= | 
|  | 19022 | old_archive_from_expsyms_cmds_F77= | 
|  | 19023 | export_dynamic_flag_spec_F77= | 
|  | 19024 | whole_archive_flag_spec_F77= | 
|  | 19025 | thread_safe_flag_spec_F77= | 
|  | 19026 | hardcode_libdir_flag_spec_F77= | 
|  | 19027 | hardcode_libdir_flag_spec_ld_F77= | 
|  | 19028 | hardcode_libdir_separator_F77= | 
|  | 19029 | hardcode_direct_F77=no | 
|  | 19030 | hardcode_minus_L_F77=no | 
|  | 19031 | hardcode_shlibpath_var_F77=unsupported | 
|  | 19032 | link_all_deplibs_F77=unknown | 
|  | 19033 | hardcode_automatic_F77=no | 
|  | 19034 | module_cmds_F77= | 
|  | 19035 | module_expsym_cmds_F77= | 
|  | 19036 | always_export_symbols_F77=no | 
|  | 19037 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 19038 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 19039 | # included in the symbol list | 
|  | 19040 | include_expsyms_F77= | 
|  | 19041 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 19042 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 19043 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 19044 | # as well as any symbol that contains `d'. | 
|  | 19045 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
|  | 19046 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 19047 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 19048 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 19049 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 19050 | # preloaded symbol tables. | 
|  | 19051 | extract_expsyms_cmds= | 
|  | 19052 |  | 
|  | 19053 | case $host_os in | 
|  | 19054 | cygwin* | mingw* | pw32*) | 
|  | 19055 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 19056 | # When not using gcc, we currently assume that we are using | 
|  | 19057 | # Microsoft Visual C++. | 
|  | 19058 | if test "$GCC" != yes; then | 
|  | 19059 | with_gnu_ld=no | 
|  | 19060 | fi | 
|  | 19061 | ;; | 
|  | 19062 | openbsd*) | 
|  | 19063 | with_gnu_ld=no | 
|  | 19064 | ;; | 
|  | 19065 | esac | 
|  | 19066 |  | 
|  | 19067 | ld_shlibs_F77=yes | 
|  | 19068 | if test "$with_gnu_ld" = yes; then | 
|  | 19069 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 19070 | wlarc='${wl}' | 
|  | 19071 |  | 
|  | 19072 | # See if GNU ld supports shared libraries. | 
|  | 19073 | case $host_os in | 
|  | 19074 | aix3* | aix4* | aix5*) | 
|  | 19075 | # On AIX/PPC, the GNU linker is very broken | 
|  | 19076 | if test "$host_cpu" != ia64; then | 
|  | 19077 | ld_shlibs_F77=no | 
|  | 19078 | cat <<EOF 1>&2 | 
|  | 19079 |  | 
|  | 19080 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 19081 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 19082 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 19083 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 19084 | *** so that a non-GNU linker is found, and then restart. | 
|  | 19085 |  | 
|  | 19086 | EOF | 
|  | 19087 | fi | 
|  | 19088 | ;; | 
|  | 19089 |  | 
|  | 19090 | amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19091 | 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] | 19092 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19093 | hardcode_minus_L_F77=yes | 
|  | 19094 |  | 
|  | 19095 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 19096 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 19097 | # to version 4, is to share data among multiple programs linked | 
|  | 19098 | # with the same dynamic library.  Since this doesn't match the | 
|  | 19099 | # behavior of shared libraries on other platforms, we can't use | 
|  | 19100 | # them. | 
|  | 19101 | ld_shlibs_F77=no | 
|  | 19102 | ;; | 
|  | 19103 |  | 
|  | 19104 | beos*) | 
|  | 19105 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 19106 | allow_undefined_flag_F77=unsupported | 
|  | 19107 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 19108 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 19109 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 19110 | else | 
|  | 19111 | ld_shlibs_F77=no | 
|  | 19112 | fi | 
|  | 19113 | ;; | 
|  | 19114 |  | 
|  | 19115 | cygwin* | mingw* | pw32*) | 
|  | 19116 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
|  | 19117 | # as there is no search path for DLLs. | 
|  | 19118 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19119 | allow_undefined_flag_F77=unsupported | 
|  | 19120 | always_export_symbols_F77=no | 
|  | 19121 | enable_shared_with_static_runtimes_F77=yes | 
|  | 19122 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 19123 |  | 
|  | 19124 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 19125 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 19126 | # If the export-symbols file already is a .def file (1st line | 
|  | 19127 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 19128 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 19129 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 19130 | else | 
|  | 19131 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 19132 | cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19133 | fi~ | 
|  | 19134 | $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] | 19135 | else | 
|  | 19136 | ld_shlibs=no | 
|  | 19137 | fi | 
|  | 19138 | ;; | 
|  | 19139 |  | 
|  | 19140 | netbsd*) | 
|  | 19141 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 19142 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 19143 | wlarc= | 
|  | 19144 | else | 
|  | 19145 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 19146 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 19147 | fi | 
|  | 19148 | ;; | 
|  | 19149 |  | 
|  | 19150 | solaris* | sysv5*) | 
|  | 19151 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 19152 | ld_shlibs_F77=no | 
|  | 19153 | cat <<EOF 1>&2 | 
|  | 19154 |  | 
|  | 19155 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 19156 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 19157 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 19158 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 19159 | *** your PATH or compiler configuration so that the native linker is | 
|  | 19160 | *** used, and then restart. | 
|  | 19161 |  | 
|  | 19162 | EOF | 
|  | 19163 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 19164 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 19165 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 19166 | else | 
|  | 19167 | ld_shlibs_F77=no | 
|  | 19168 | fi | 
|  | 19169 | ;; | 
|  | 19170 |  | 
|  | 19171 | sunos4*) | 
|  | 19172 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19173 | wlarc= | 
|  | 19174 | hardcode_direct_F77=yes | 
|  | 19175 | hardcode_shlibpath_var_F77=no | 
|  | 19176 | ;; | 
|  | 19177 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19178 | linux*) | 
|  | 19179 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 19180 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 19181 | archive_cmds_F77="$tmp_archive_cmds" | 
|  | 19182 | supports_anon_versioning=no | 
|  | 19183 | case `$LD -v 2>/dev/null` in | 
|  | 19184 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
|  | 19185 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
|  | 19186 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
|  | 19187 | *\ 2.11.*) ;; # other 2.11 versions | 
|  | 19188 | *) supports_anon_versioning=yes ;; | 
|  | 19189 | esac | 
|  | 19190 | if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19191 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 19192 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 19193 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19194 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 19195 | else | 
|  | 19196 | archive_expsym_cmds_F77="$tmp_archive_cmds" | 
|  | 19197 | fi | 
|  | 19198 | else | 
|  | 19199 | ld_shlibs_F77=no | 
|  | 19200 | fi | 
|  | 19201 | ;; | 
|  | 19202 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19203 | *) | 
|  | 19204 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 19205 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 19206 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 19207 | else | 
|  | 19208 | ld_shlibs_F77=no | 
|  | 19209 | fi | 
|  | 19210 | ;; | 
|  | 19211 | esac | 
|  | 19212 |  | 
|  | 19213 | if test "$ld_shlibs_F77" = yes; then | 
|  | 19214 | runpath_var=LD_RUN_PATH | 
|  | 19215 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
|  | 19216 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
|  | 19217 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 19218 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 19219 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 19220 | else | 
|  | 19221 | whole_archive_flag_spec_F77= | 
|  | 19222 | fi | 
|  | 19223 | fi | 
|  | 19224 | else | 
|  | 19225 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 19226 | case $host_os in | 
|  | 19227 | aix3*) | 
|  | 19228 | allow_undefined_flag_F77=unsupported | 
|  | 19229 | always_export_symbols_F77=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19230 | 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] | 19231 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 19232 | # are no directories specified by -L. | 
|  | 19233 | hardcode_minus_L_F77=yes | 
|  | 19234 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 19235 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 19236 | # broken collect2. | 
|  | 19237 | hardcode_direct_F77=unsupported | 
|  | 19238 | fi | 
|  | 19239 | ;; | 
|  | 19240 |  | 
|  | 19241 | aix4* | aix5*) | 
|  | 19242 | if test "$host_cpu" = ia64; then | 
|  | 19243 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 19244 | # have to do anything special. | 
|  | 19245 | aix_use_runtimelinking=no | 
|  | 19246 | exp_sym_flag='-Bexport' | 
|  | 19247 | no_entry_flag="" | 
|  | 19248 | else | 
|  | 19249 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 19250 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 19251 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 19252 | 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' | 
|  | 19253 | else | 
|  | 19254 | 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' | 
|  | 19255 | fi | 
|  | 19256 | aix_use_runtimelinking=no | 
|  | 19257 |  | 
|  | 19258 | # Test if we are trying to use run time linking or normal | 
|  | 19259 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 19260 | # need to do runtime linking. | 
|  | 19261 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 19262 | for ld_flag in $LDFLAGS; do | 
|  | 19263 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 19264 | aix_use_runtimelinking=yes | 
|  | 19265 | break | 
|  | 19266 | fi | 
|  | 19267 | done | 
|  | 19268 | esac | 
|  | 19269 |  | 
|  | 19270 | exp_sym_flag='-bexport' | 
|  | 19271 | no_entry_flag='-bnoentry' | 
|  | 19272 | fi | 
|  | 19273 |  | 
|  | 19274 | # When large executables or shared objects are built, AIX ld can | 
|  | 19275 | # have problems creating the table of contents.  If linking a library | 
|  | 19276 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 19277 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 19278 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 19279 |  | 
|  | 19280 | archive_cmds_F77='' | 
|  | 19281 | hardcode_direct_F77=yes | 
|  | 19282 | hardcode_libdir_separator_F77=':' | 
|  | 19283 | link_all_deplibs_F77=yes | 
|  | 19284 |  | 
|  | 19285 | if test "$GCC" = yes; then | 
|  | 19286 | case $host_os in aix4.012|aix4.012.*) | 
|  | 19287 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 19288 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 19289 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 19290 | if test -f "$collect2name" && \ | 
|  | 19291 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 19292 | then | 
|  | 19293 | # We have reworked collect2 | 
|  | 19294 | hardcode_direct_F77=yes | 
|  | 19295 | else | 
|  | 19296 | # We have old collect2 | 
|  | 19297 | hardcode_direct_F77=unsupported | 
|  | 19298 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 19299 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 19300 | # to unsupported forces relinking | 
|  | 19301 | hardcode_minus_L_F77=yes | 
|  | 19302 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19303 | hardcode_libdir_separator_F77= | 
|  | 19304 | fi | 
|  | 19305 | esac | 
|  | 19306 | shared_flag='-shared' | 
|  | 19307 | else | 
|  | 19308 | # not using gcc | 
|  | 19309 | if test "$host_cpu" = ia64; then | 
|  | 19310 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 19311 | # chokes on -Wl,-G. The following line is correct: | 
|  | 19312 | shared_flag='-G' | 
|  | 19313 | else | 
|  | 19314 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 19315 | shared_flag='${wl}-G' | 
|  | 19316 | else | 
|  | 19317 | shared_flag='${wl}-bM:SRE' | 
|  | 19318 | fi | 
|  | 19319 | fi | 
|  | 19320 | fi | 
|  | 19321 |  | 
|  | 19322 | # It seems that -bexpall does not export symbols beginning with | 
|  | 19323 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 19324 | always_export_symbols_F77=yes | 
|  | 19325 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 19326 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 19327 | # -berok will link without error, but may produce a broken library. | 
|  | 19328 | allow_undefined_flag_F77='-berok' | 
|  | 19329 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 19330 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19331 | program main | 
|  | 19332 |  | 
|  | 19333 | end | 
|  | 19334 | _ACEOF | 
|  | 19335 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19337 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19338 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19339 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19340 | rm -f conftest.er1 | 
|  | 19341 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19343 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19344 | { ac_try='test -z "$ac_f77_werror_flag" | 
|  | 19345 | || test ! -s conftest.err' | 
|  | 19346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19347 | (eval $ac_try) 2>&5 | 
|  | 19348 | ac_status=$? | 
|  | 19349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19350 | (exit $ac_status); }; } && | 
|  | 19351 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19353 | (eval $ac_try) 2>&5 | 
|  | 19354 | ac_status=$? | 
|  | 19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19356 | (exit $ac_status); }; }; then | 
|  | 19357 |  | 
|  | 19358 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 19359 | }'` | 
|  | 19360 | # Check for a 64-bit object if we didn't find anything. | 
|  | 19361 | 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; } | 
|  | 19362 | }'`; fi | 
|  | 19363 | else | 
|  | 19364 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19365 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19366 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19367 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19368 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 19369 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19370 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 19371 |  | 
|  | 19372 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 19373 | 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" | 
|  | 19374 | else | 
|  | 19375 | if test "$host_cpu" = ia64; then | 
|  | 19376 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 19377 | allow_undefined_flag_F77="-z nodefs" | 
|  | 19378 | 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" | 
|  | 19379 | else | 
|  | 19380 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 19381 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 19382 | program main | 
|  | 19383 |  | 
|  | 19384 | end | 
|  | 19385 | _ACEOF | 
|  | 19386 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 19387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19388 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19389 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19390 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 19391 | rm -f conftest.er1 | 
|  | 19392 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19394 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19395 | { ac_try='test -z "$ac_f77_werror_flag" | 
|  | 19396 | || test ! -s conftest.err' | 
|  | 19397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19398 | (eval $ac_try) 2>&5 | 
|  | 19399 | ac_status=$? | 
|  | 19400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19401 | (exit $ac_status); }; } && | 
|  | 19402 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 19404 | (eval $ac_try) 2>&5 | 
|  | 19405 | ac_status=$? | 
|  | 19406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19407 | (exit $ac_status); }; }; then | 
|  | 19408 |  | 
|  | 19409 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 19410 | }'` | 
|  | 19411 | # Check for a 64-bit object if we didn't find anything. | 
|  | 19412 | 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; } | 
|  | 19413 | }'`; fi | 
|  | 19414 | else | 
|  | 19415 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19416 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 19417 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19418 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19419 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 19420 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19421 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 19422 |  | 
|  | 19423 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 19424 | # Warning - without using the other run time loading flags, | 
|  | 19425 | # -berok will link without error, but may produce a broken library. | 
|  | 19426 | no_undefined_flag_F77=' ${wl}-bernotok' | 
|  | 19427 | allow_undefined_flag_F77=' ${wl}-berok' | 
|  | 19428 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 19429 | always_export_symbols_F77=yes | 
|  | 19430 | # Exported symbols can be pulled into shared objects from archives | 
|  | 19431 | whole_archive_flag_spec_F77=' ' | 
|  | 19432 | archive_cmds_need_lc_F77=yes | 
|  | 19433 | # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19434 | 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] | 19435 | fi | 
|  | 19436 | fi | 
|  | 19437 | ;; | 
|  | 19438 |  | 
|  | 19439 | amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19440 | 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] | 19441 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19442 | hardcode_minus_L_F77=yes | 
|  | 19443 | # see comment about different semantics on the GNU ld section | 
|  | 19444 | ld_shlibs_F77=no | 
|  | 19445 | ;; | 
|  | 19446 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19447 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19448 | export_dynamic_flag_spec_F77=-rdynamic | 
|  | 19449 | ;; | 
|  | 19450 |  | 
|  | 19451 | cygwin* | mingw* | pw32*) | 
|  | 19452 | # When not using gcc, we currently assume that we are using | 
|  | 19453 | # Microsoft Visual C++. | 
|  | 19454 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 19455 | # no search path for DLLs. | 
|  | 19456 | hardcode_libdir_flag_spec_F77=' ' | 
|  | 19457 | allow_undefined_flag_F77=unsupported | 
|  | 19458 | # Tell ltmain to make .lib files, not .a files. | 
|  | 19459 | libext=lib | 
|  | 19460 | # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19461 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19462 | # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19463 | 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] | 19464 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 19465 | old_archive_From_new_cmds_F77='true' | 
|  | 19466 | # FIXME: Should let the user specify the lib program. | 
|  | 19467 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 19468 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 19469 | enable_shared_with_static_runtimes_F77=yes | 
|  | 19470 | ;; | 
|  | 19471 |  | 
|  | 19472 | darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19473 | case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19474 | rhapsody* | darwin1.[012]) | 
|  | 19475 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | 
|  | 19476 | ;; | 
|  | 19477 | *) # Darwin 1.3 on | 
|  | 19478 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
|  | 19479 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 19480 | else | 
|  | 19481 | case ${MACOSX_DEPLOYMENT_TARGET} in | 
|  | 19482 | 10.[012]) | 
|  | 19483 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 19484 | ;; | 
|  | 19485 | 10.*) | 
|  | 19486 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | 
|  | 19487 | ;; | 
|  | 19488 | esac | 
|  | 19489 | fi | 
|  | 19490 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19491 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19492 | archive_cmds_need_lc_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19493 | hardcode_direct_F77=no | 
|  | 19494 | hardcode_automatic_F77=yes | 
|  | 19495 | hardcode_shlibpath_var_F77=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19496 | whole_archive_flag_spec_F77='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19497 | link_all_deplibs_F77=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19498 | if test "$GCC" = yes ; then | 
|  | 19499 | output_verbose_link_cmd='echo' | 
|  | 19500 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 19501 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 19502 | # 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] | 19503 | 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}' | 
|  | 19504 | 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] | 19505 | else | 
|  | 19506 | case "$cc_basename" in | 
|  | 19507 | xlc*) | 
|  | 19508 | output_verbose_link_cmd='echo' | 
|  | 19509 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
|  | 19510 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 19511 | # 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] | 19512 | 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}' | 
|  | 19513 | 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] | 19514 | ;; | 
|  | 19515 | *) | 
|  | 19516 | ld_shlibs_F77=no | 
|  | 19517 | ;; | 
|  | 19518 | esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19519 | fi | 
|  | 19520 | ;; | 
|  | 19521 |  | 
|  | 19522 | dgux*) | 
|  | 19523 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19524 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19525 | hardcode_shlibpath_var_F77=no | 
|  | 19526 | ;; | 
|  | 19527 |  | 
|  | 19528 | freebsd1*) | 
|  | 19529 | ld_shlibs_F77=no | 
|  | 19530 | ;; | 
|  | 19531 |  | 
|  | 19532 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 19533 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 19534 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 19535 | # extra space). | 
|  | 19536 | freebsd2.2*) | 
|  | 19537 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 19538 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 19539 | hardcode_direct_F77=yes | 
|  | 19540 | hardcode_shlibpath_var_F77=no | 
|  | 19541 | ;; | 
|  | 19542 |  | 
|  | 19543 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 19544 | freebsd2*) | 
|  | 19545 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19546 | hardcode_direct_F77=yes | 
|  | 19547 | hardcode_minus_L_F77=yes | 
|  | 19548 | hardcode_shlibpath_var_F77=no | 
|  | 19549 | ;; | 
|  | 19550 |  | 
|  | 19551 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19552 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19553 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 19554 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 19555 | hardcode_direct_F77=yes | 
|  | 19556 | hardcode_shlibpath_var_F77=no | 
|  | 19557 | ;; | 
|  | 19558 |  | 
|  | 19559 | hpux9*) | 
|  | 19560 | if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19561 | 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] | 19562 | else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19563 | 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] | 19564 | fi | 
|  | 19565 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 19566 | hardcode_libdir_separator_F77=: | 
|  | 19567 | hardcode_direct_F77=yes | 
|  | 19568 |  | 
|  | 19569 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 19570 | # but as the default location of the library. | 
|  | 19571 | hardcode_minus_L_F77=yes | 
|  | 19572 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 19573 | ;; | 
|  | 19574 |  | 
|  | 19575 | hpux10* | hpux11*) | 
|  | 19576 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 19577 | case "$host_cpu" in | 
|  | 19578 | hppa*64*|ia64*) | 
|  | 19579 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 19580 | ;; | 
|  | 19581 | *) | 
|  | 19582 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 19583 | ;; | 
|  | 19584 | esac | 
|  | 19585 | else | 
|  | 19586 | case "$host_cpu" in | 
|  | 19587 | hppa*64*|ia64*) | 
|  | 19588 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19589 | ;; | 
|  | 19590 | *) | 
|  | 19591 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19592 | ;; | 
|  | 19593 | esac | 
|  | 19594 | fi | 
|  | 19595 | if test "$with_gnu_ld" = no; then | 
|  | 19596 | case "$host_cpu" in | 
|  | 19597 | hppa*64*) | 
|  | 19598 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 19599 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
|  | 19600 | hardcode_libdir_separator_F77=: | 
|  | 19601 | hardcode_direct_F77=no | 
|  | 19602 | hardcode_shlibpath_var_F77=no | 
|  | 19603 | ;; | 
|  | 19604 | ia64*) | 
|  | 19605 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19606 | hardcode_direct_F77=no | 
|  | 19607 | hardcode_shlibpath_var_F77=no | 
|  | 19608 |  | 
|  | 19609 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 19610 | # but as the default location of the library. | 
|  | 19611 | hardcode_minus_L_F77=yes | 
|  | 19612 | ;; | 
|  | 19613 | *) | 
|  | 19614 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
|  | 19615 | hardcode_libdir_separator_F77=: | 
|  | 19616 | hardcode_direct_F77=yes | 
|  | 19617 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 19618 |  | 
|  | 19619 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 19620 | # but as the default location of the library. | 
|  | 19621 | hardcode_minus_L_F77=yes | 
|  | 19622 | ;; | 
|  | 19623 | esac | 
|  | 19624 | fi | 
|  | 19625 | ;; | 
|  | 19626 |  | 
|  | 19627 | irix5* | irix6* | nonstopux*) | 
|  | 19628 | if test "$GCC" = yes; then | 
|  | 19629 | 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' | 
|  | 19630 | else | 
|  | 19631 | 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' | 
|  | 19632 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
|  | 19633 | fi | 
|  | 19634 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 19635 | hardcode_libdir_separator_F77=: | 
|  | 19636 | link_all_deplibs_F77=yes | 
|  | 19637 | ;; | 
|  | 19638 |  | 
|  | 19639 | netbsd*) | 
|  | 19640 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 19641 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 19642 | else | 
|  | 19643 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 19644 | fi | 
|  | 19645 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 19646 | hardcode_direct_F77=yes | 
|  | 19647 | hardcode_shlibpath_var_F77=no | 
|  | 19648 | ;; | 
|  | 19649 |  | 
|  | 19650 | newsos6) | 
|  | 19651 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19652 | hardcode_direct_F77=yes | 
|  | 19653 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 19654 | hardcode_libdir_separator_F77=: | 
|  | 19655 | hardcode_shlibpath_var_F77=no | 
|  | 19656 | ;; | 
|  | 19657 |  | 
|  | 19658 | openbsd*) | 
|  | 19659 | hardcode_direct_F77=yes | 
|  | 19660 | hardcode_shlibpath_var_F77=no | 
|  | 19661 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 19662 | 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] | 19663 | 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] | 19664 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
|  | 19665 | export_dynamic_flag_spec_F77='${wl}-E' | 
|  | 19666 | else | 
|  | 19667 | case $host_os in | 
|  | 19668 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 19669 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19670 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 19671 | ;; | 
|  | 19672 | *) | 
|  | 19673 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 19674 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
|  | 19675 | ;; | 
|  | 19676 | esac | 
|  | 19677 | fi | 
|  | 19678 | ;; | 
|  | 19679 |  | 
|  | 19680 | os2*) | 
|  | 19681 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19682 | hardcode_minus_L_F77=yes | 
|  | 19683 | allow_undefined_flag_F77=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19684 | 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] | 19685 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 19686 | ;; | 
|  | 19687 |  | 
|  | 19688 | osf3*) | 
|  | 19689 | if test "$GCC" = yes; then | 
|  | 19690 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 19691 | 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' | 
|  | 19692 | else | 
|  | 19693 | allow_undefined_flag_F77=' -expect_unresolved \*' | 
|  | 19694 | 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' | 
|  | 19695 | fi | 
|  | 19696 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 19697 | hardcode_libdir_separator_F77=: | 
|  | 19698 | ;; | 
|  | 19699 |  | 
|  | 19700 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 19701 | if test "$GCC" = yes; then | 
|  | 19702 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 19703 | 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' | 
|  | 19704 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
|  | 19705 | else | 
|  | 19706 | allow_undefined_flag_F77=' -expect_unresolved \*' | 
|  | 19707 | 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] | 19708 | 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~ | 
|  | 19709 | $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' | 
|  | 19710 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19711 | # Both c and cxx compiler support -rpath directly | 
|  | 19712 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
|  | 19713 | fi | 
|  | 19714 | hardcode_libdir_separator_F77=: | 
|  | 19715 | ;; | 
|  | 19716 |  | 
|  | 19717 | sco3.2v5*) | 
|  | 19718 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19719 | hardcode_shlibpath_var_F77=no | 
|  | 19720 | export_dynamic_flag_spec_F77='${wl}-Bexport' | 
|  | 19721 | runpath_var=LD_RUN_PATH | 
|  | 19722 | hardcode_runpath_var=yes | 
|  | 19723 | ;; | 
|  | 19724 |  | 
|  | 19725 | solaris*) | 
|  | 19726 | no_undefined_flag_F77=' -z text' | 
|  | 19727 | if test "$GCC" = yes; then | 
|  | 19728 | 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] | 19729 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 19730 | $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] | 19731 | else | 
|  | 19732 | 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] | 19733 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 19734 | $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] | 19735 | fi | 
|  | 19736 | hardcode_libdir_flag_spec_F77='-R$libdir' | 
|  | 19737 | hardcode_shlibpath_var_F77=no | 
|  | 19738 | case $host_os in | 
|  | 19739 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 19740 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 19741 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
|  | 19742 | esac | 
|  | 19743 | link_all_deplibs_F77=yes | 
|  | 19744 | ;; | 
|  | 19745 |  | 
|  | 19746 | sunos4*) | 
|  | 19747 | if test "x$host_vendor" = xsequent; then | 
|  | 19748 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 19749 | # files that make .init and .fini sections work. | 
|  | 19750 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 19751 | else | 
|  | 19752 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19753 | fi | 
|  | 19754 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19755 | hardcode_direct_F77=yes | 
|  | 19756 | hardcode_minus_L_F77=yes | 
|  | 19757 | hardcode_shlibpath_var_F77=no | 
|  | 19758 | ;; | 
|  | 19759 |  | 
|  | 19760 | sysv4) | 
|  | 19761 | case $host_vendor in | 
|  | 19762 | sni) | 
|  | 19763 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19764 | hardcode_direct_F77=yes # is this really true??? | 
|  | 19765 | ;; | 
|  | 19766 | siemens) | 
|  | 19767 | ## LD is ld it makes a PLAMLIB | 
|  | 19768 | ## CC just makes a GrossModule. | 
|  | 19769 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19770 | reload_cmds_F77='$CC -r -o $output$reload_objs' | 
|  | 19771 | hardcode_direct_F77=no | 
|  | 19772 | ;; | 
|  | 19773 | motorola) | 
|  | 19774 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19775 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
|  | 19776 | ;; | 
|  | 19777 | esac | 
|  | 19778 | runpath_var='LD_RUN_PATH' | 
|  | 19779 | hardcode_shlibpath_var_F77=no | 
|  | 19780 | ;; | 
|  | 19781 |  | 
|  | 19782 | sysv4.3*) | 
|  | 19783 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19784 | hardcode_shlibpath_var_F77=no | 
|  | 19785 | export_dynamic_flag_spec_F77='-Bexport' | 
|  | 19786 | ;; | 
|  | 19787 |  | 
|  | 19788 | sysv4*MP*) | 
|  | 19789 | if test -d /usr/nec; then | 
|  | 19790 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19791 | hardcode_shlibpath_var_F77=no | 
|  | 19792 | runpath_var=LD_RUN_PATH | 
|  | 19793 | hardcode_runpath_var=yes | 
|  | 19794 | ld_shlibs_F77=yes | 
|  | 19795 | fi | 
|  | 19796 | ;; | 
|  | 19797 |  | 
|  | 19798 | sysv4.2uw2*) | 
|  | 19799 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19800 | hardcode_direct_F77=yes | 
|  | 19801 | hardcode_minus_L_F77=no | 
|  | 19802 | hardcode_shlibpath_var_F77=no | 
|  | 19803 | hardcode_runpath_var=yes | 
|  | 19804 | runpath_var=LD_RUN_PATH | 
|  | 19805 | ;; | 
|  | 19806 |  | 
|  | 19807 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 19808 | no_undefined_flag_F77='${wl}-z ${wl}text' | 
|  | 19809 | if test "$GCC" = yes; then | 
|  | 19810 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 19811 | else | 
|  | 19812 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 19813 | fi | 
|  | 19814 | runpath_var='LD_RUN_PATH' | 
|  | 19815 | hardcode_shlibpath_var_F77=no | 
|  | 19816 | ;; | 
|  | 19817 |  | 
|  | 19818 | sysv5*) | 
|  | 19819 | no_undefined_flag_F77=' -z text' | 
|  | 19820 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 19821 | # object files and a static libstdc++, better avoid it by now | 
|  | 19822 | 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] | 19823 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 19824 | $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] | 19825 | hardcode_libdir_flag_spec_F77= | 
|  | 19826 | hardcode_shlibpath_var_F77=no | 
|  | 19827 | runpath_var='LD_RUN_PATH' | 
|  | 19828 | ;; | 
|  | 19829 |  | 
|  | 19830 | uts4*) | 
|  | 19831 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 19832 | hardcode_libdir_flag_spec_F77='-L$libdir' | 
|  | 19833 | hardcode_shlibpath_var_F77=no | 
|  | 19834 | ;; | 
|  | 19835 |  | 
|  | 19836 | *) | 
|  | 19837 | ld_shlibs_F77=no | 
|  | 19838 | ;; | 
|  | 19839 | esac | 
|  | 19840 | fi | 
|  | 19841 |  | 
|  | 19842 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
|  | 19843 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 
|  | 19844 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
|  | 19845 |  | 
|  | 19846 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 19847 | if test "$GCC" = yes; then | 
|  | 19848 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 19849 | fi | 
|  | 19850 |  | 
|  | 19851 | # | 
|  | 19852 | # Do we need to explicitly link libc? | 
|  | 19853 | # | 
|  | 19854 | case "x$archive_cmds_need_lc_F77" in | 
|  | 19855 | x|xyes) | 
|  | 19856 | # Assume -lc should be added | 
|  | 19857 | archive_cmds_need_lc_F77=yes | 
|  | 19858 |  | 
|  | 19859 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 19860 | case $archive_cmds_F77 in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19861 | *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19862 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 19863 | ;; | 
|  | 19864 | '$CC '*) | 
|  | 19865 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 19866 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 19867 | # to ld, don't add -lc before -lgcc. | 
|  | 19868 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 19869 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 19870 | $rm conftest* | 
|  | 19871 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 19872 |  | 
|  | 19873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 19874 | (eval $ac_compile) 2>&5 | 
|  | 19875 | ac_status=$? | 
|  | 19876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19877 | (exit $ac_status); } 2>conftest.err; then | 
|  | 19878 | soname=conftest | 
|  | 19879 | lib=conftest | 
|  | 19880 | libobjs=conftest.$ac_objext | 
|  | 19881 | deplibs= | 
|  | 19882 | wl=$lt_prog_compiler_wl_F77 | 
|  | 19883 | compiler_flags=-v | 
|  | 19884 | linker_flags=-v | 
|  | 19885 | verstring= | 
|  | 19886 | output_objdir=. | 
|  | 19887 | libname=conftest | 
|  | 19888 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
|  | 19889 | allow_undefined_flag_F77= | 
|  | 19890 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 19891 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 19892 | ac_status=$? | 
|  | 19893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 19894 | (exit $ac_status); } | 
|  | 19895 | then | 
|  | 19896 | archive_cmds_need_lc_F77=no | 
|  | 19897 | else | 
|  | 19898 | archive_cmds_need_lc_F77=yes | 
|  | 19899 | fi | 
|  | 19900 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
|  | 19901 | else | 
|  | 19902 | cat conftest.err 1>&5 | 
|  | 19903 | fi | 
|  | 19904 | $rm conftest* | 
|  | 19905 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
|  | 19906 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 
|  | 19907 | ;; | 
|  | 19908 | esac | 
|  | 19909 | fi | 
|  | 19910 | ;; | 
|  | 19911 | esac | 
|  | 19912 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19913 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 19914 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 19915 | library_names_spec= | 
|  | 19916 | libname_spec='lib$name' | 
|  | 19917 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19918 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19919 | postinstall_cmds= | 
|  | 19920 | postuninstall_cmds= | 
|  | 19921 | finish_cmds= | 
|  | 19922 | finish_eval= | 
|  | 19923 | shlibpath_var= | 
|  | 19924 | shlibpath_overrides_runpath=unknown | 
|  | 19925 | version_type=none | 
|  | 19926 | dynamic_linker="$host_os ld.so" | 
|  | 19927 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 19928 | if test "$GCC" = yes; then | 
|  | 19929 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 19930 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 19931 | # if the path contains ";" then we assume it to be the separator | 
|  | 19932 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 19933 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 19934 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 19935 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 19936 | else | 
|  | 19937 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 19938 | fi | 
|  | 19939 | else | 
|  | 19940 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 19941 | fi | 
|  | 19942 | need_lib_prefix=unknown | 
|  | 19943 | hardcode_into_libs=no | 
|  | 19944 |  | 
|  | 19945 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 19946 | # flags to be left without arguments | 
|  | 19947 | need_version=unknown | 
|  | 19948 |  | 
|  | 19949 | case $host_os in | 
|  | 19950 | aix3*) | 
|  | 19951 | version_type=linux | 
|  | 19952 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 19953 | shlibpath_var=LIBPATH | 
|  | 19954 |  | 
|  | 19955 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 19956 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19957 | ;; | 
|  | 19958 |  | 
|  | 19959 | aix4* | aix5*) | 
|  | 19960 | version_type=linux | 
|  | 19961 | need_lib_prefix=no | 
|  | 19962 | need_version=no | 
|  | 19963 | hardcode_into_libs=yes | 
|  | 19964 | if test "$host_cpu" = ia64; then | 
|  | 19965 | # AIX 5 supports IA64 | 
|  | 19966 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 19967 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19968 | else | 
|  | 19969 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 19970 | # for dependence libraries.  The import file would start with | 
|  | 19971 | # the line `#! .'.  This would cause the generated library to | 
|  | 19972 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 19973 | # development snapshots of GCC prior to 3.0. | 
|  | 19974 | case $host_os in | 
|  | 19975 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 19976 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 19977 | echo ' yes ' | 
|  | 19978 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 19979 | : | 
|  | 19980 | else | 
|  | 19981 | can_build_shared=no | 
|  | 19982 | fi | 
|  | 19983 | ;; | 
|  | 19984 | esac | 
|  | 19985 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 19986 | # soname into executable. Probably we can add versioning support to | 
|  | 19987 | # collect2, so additional links can be useful in future. | 
|  | 19988 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 19989 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 19990 | # instead of lib<name>.a to let people know that these are not | 
|  | 19991 | # typical AIX shared libraries. | 
|  | 19992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19993 | else | 
|  | 19994 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 19995 | # and later when we are not doing run time linking. | 
|  | 19996 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 19997 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19998 | fi | 
|  | 19999 | shlibpath_var=LIBPATH | 
|  | 20000 | fi | 
|  | 20001 | ;; | 
|  | 20002 |  | 
|  | 20003 | amigaos*) | 
|  | 20004 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 20005 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20006 | 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] | 20007 | ;; | 
|  | 20008 |  | 
|  | 20009 | beos*) | 
|  | 20010 | library_names_spec='${libname}${shared_ext}' | 
|  | 20011 | dynamic_linker="$host_os ld.so" | 
|  | 20012 | shlibpath_var=LIBRARY_PATH | 
|  | 20013 | ;; | 
|  | 20014 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20015 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20016 | version_type=linux | 
|  | 20017 | need_version=no | 
|  | 20018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20019 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20020 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 20021 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20022 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 20023 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 20024 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 20025 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 20026 | # libtool to hard-code these into programs | 
|  | 20027 | ;; | 
|  | 20028 |  | 
|  | 20029 | cygwin* | mingw* | pw32*) | 
|  | 20030 | version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20031 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20032 | need_version=no | 
|  | 20033 | need_lib_prefix=no | 
|  | 20034 |  | 
|  | 20035 | case $GCC,$host_os in | 
|  | 20036 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 20037 | library_names_spec='$libname.dll.a' | 
|  | 20038 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20039 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 20040 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 20041 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 20042 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20043 | $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20044 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 20045 | dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20046 | $rm \$dlpath' | 
|  | 20047 | shlibpath_overrides_runpath=yes | 
|  | 20048 |  | 
|  | 20049 | case $host_os in | 
|  | 20050 | cygwin*) | 
|  | 20051 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 20052 | 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] | 20053 | 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] | 20054 | ;; | 
|  | 20055 | mingw*) | 
|  | 20056 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 20057 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 20058 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 20059 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 20060 | # It is most probably a Windows format PATH printed by | 
|  | 20061 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 20062 | # path with ; separators, and with drive letters. We can handle the | 
|  | 20063 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 20064 | # especially as we might pass files found there to a mingw objdump, | 
|  | 20065 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 20066 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 20067 | else | 
|  | 20068 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 20069 | fi | 
|  | 20070 | ;; | 
|  | 20071 | pw32*) | 
|  | 20072 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 20073 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 20074 | ;; | 
|  | 20075 | esac | 
|  | 20076 | ;; | 
|  | 20077 |  | 
|  | 20078 | *) | 
|  | 20079 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 20080 | ;; | 
|  | 20081 | esac | 
|  | 20082 | dynamic_linker='Win32 ld.exe' | 
|  | 20083 | # FIXME: first we should search . and the directory the executable is in | 
|  | 20084 | shlibpath_var=PATH | 
|  | 20085 | ;; | 
|  | 20086 |  | 
|  | 20087 | darwin* | rhapsody*) | 
|  | 20088 | dynamic_linker="$host_os dyld" | 
|  | 20089 | version_type=darwin | 
|  | 20090 | need_lib_prefix=no | 
|  | 20091 | need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20092 | 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] | 20093 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 20094 | shlibpath_overrides_runpath=yes | 
|  | 20095 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20096 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20097 | # 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] | 20098 | if test "$GCC" = yes; then | 
|  | 20099 | 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"` | 
|  | 20100 | else | 
|  | 20101 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20102 | fi | 
|  | 20103 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 20104 | ;; | 
|  | 20105 |  | 
|  | 20106 | dgux*) | 
|  | 20107 | version_type=linux | 
|  | 20108 | need_lib_prefix=no | 
|  | 20109 | need_version=no | 
|  | 20110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 20111 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20112 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20113 | ;; | 
|  | 20114 |  | 
|  | 20115 | freebsd1*) | 
|  | 20116 | dynamic_linker=no | 
|  | 20117 | ;; | 
|  | 20118 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20119 | kfreebsd*-gnu) | 
|  | 20120 | version_type=linux | 
|  | 20121 | need_lib_prefix=no | 
|  | 20122 | need_version=no | 
|  | 20123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 20124 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20125 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20126 | shlibpath_overrides_runpath=no | 
|  | 20127 | hardcode_into_libs=yes | 
|  | 20128 | dynamic_linker='GNU ld.so' | 
|  | 20129 | ;; | 
|  | 20130 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20131 | freebsd*) | 
|  | 20132 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 20133 | version_type=freebsd-$objformat | 
|  | 20134 | case $version_type in | 
|  | 20135 | freebsd-elf*) | 
|  | 20136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 20137 | need_version=no | 
|  | 20138 | need_lib_prefix=no | 
|  | 20139 | ;; | 
|  | 20140 | freebsd-*) | 
|  | 20141 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 20142 | need_version=yes | 
|  | 20143 | ;; | 
|  | 20144 | esac | 
|  | 20145 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20146 | case $host_os in | 
|  | 20147 | freebsd2*) | 
|  | 20148 | shlibpath_overrides_runpath=yes | 
|  | 20149 | ;; | 
|  | 20150 | freebsd3.01* | freebsdelf3.01*) | 
|  | 20151 | shlibpath_overrides_runpath=yes | 
|  | 20152 | hardcode_into_libs=yes | 
|  | 20153 | ;; | 
|  | 20154 | *) # from 3.2 on | 
|  | 20155 | shlibpath_overrides_runpath=no | 
|  | 20156 | hardcode_into_libs=yes | 
|  | 20157 | ;; | 
|  | 20158 | esac | 
|  | 20159 | ;; | 
|  | 20160 |  | 
|  | 20161 | gnu*) | 
|  | 20162 | version_type=linux | 
|  | 20163 | need_lib_prefix=no | 
|  | 20164 | need_version=no | 
|  | 20165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 20166 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20167 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20168 | hardcode_into_libs=yes | 
|  | 20169 | ;; | 
|  | 20170 |  | 
|  | 20171 | hpux9* | hpux10* | hpux11*) | 
|  | 20172 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 20173 | # link against other versions. | 
|  | 20174 | version_type=sunos | 
|  | 20175 | need_lib_prefix=no | 
|  | 20176 | need_version=no | 
|  | 20177 | case "$host_cpu" in | 
|  | 20178 | ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20179 | shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20180 | hardcode_into_libs=yes | 
|  | 20181 | dynamic_linker="$host_os dld.so" | 
|  | 20182 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20183 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 20184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20185 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20186 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 20187 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 20188 | else | 
|  | 20189 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 20190 | fi | 
|  | 20191 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 20192 | ;; | 
|  | 20193 | hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20194 | shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20195 | hardcode_into_libs=yes | 
|  | 20196 | dynamic_linker="$host_os dld.sl" | 
|  | 20197 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 20198 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 20199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20200 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20201 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 20202 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 20203 | ;; | 
|  | 20204 | *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20205 | shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20206 | dynamic_linker="$host_os dld.sl" | 
|  | 20207 | shlibpath_var=SHLIB_PATH | 
|  | 20208 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 20209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20210 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20211 | ;; | 
|  | 20212 | esac | 
|  | 20213 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 20214 | postinstall_cmds='chmod 555 $lib' | 
|  | 20215 | ;; | 
|  | 20216 |  | 
|  | 20217 | irix5* | irix6* | nonstopux*) | 
|  | 20218 | case $host_os in | 
|  | 20219 | nonstopux*) version_type=nonstopux ;; | 
|  | 20220 | *) | 
|  | 20221 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 20222 | version_type=linux | 
|  | 20223 | else | 
|  | 20224 | version_type=irix | 
|  | 20225 | fi ;; | 
|  | 20226 | esac | 
|  | 20227 | need_lib_prefix=no | 
|  | 20228 | need_version=no | 
|  | 20229 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 20231 | case $host_os in | 
|  | 20232 | irix5* | nonstopux*) | 
|  | 20233 | libsuff= shlibsuff= | 
|  | 20234 | ;; | 
|  | 20235 | *) | 
|  | 20236 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 20237 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 20238 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 20239 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 20240 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 20241 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 20242 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 20243 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 20244 | esac | 
|  | 20245 | ;; | 
|  | 20246 | esac | 
|  | 20247 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 20248 | shlibpath_overrides_runpath=no | 
|  | 20249 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 20250 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 20251 | hardcode_into_libs=yes | 
|  | 20252 | ;; | 
|  | 20253 |  | 
|  | 20254 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 20255 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 20256 | dynamic_linker=no | 
|  | 20257 | ;; | 
|  | 20258 |  | 
|  | 20259 | # This must be Linux ELF. | 
|  | 20260 | linux*) | 
|  | 20261 | version_type=linux | 
|  | 20262 | need_lib_prefix=no | 
|  | 20263 | need_version=no | 
|  | 20264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20265 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20266 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 20267 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20268 | shlibpath_overrides_runpath=no | 
|  | 20269 | # This implies no fast_install, which is unacceptable. | 
|  | 20270 | # Some rework will be needed to allow for fast_install | 
|  | 20271 | # before this can be enabled. | 
|  | 20272 | hardcode_into_libs=yes | 
|  | 20273 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20274 | # Append ld.so.conf contents to the search path | 
|  | 20275 | if test -f /etc/ld.so.conf; then | 
|  | 20276 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 20277 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 20278 | fi | 
|  | 20279 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20280 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 20281 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 20282 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 20283 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 20284 | # people can always --disable-shared, the test was removed, and we | 
|  | 20285 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 20286 | dynamic_linker='GNU/Linux ld.so' | 
|  | 20287 | ;; | 
|  | 20288 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20289 | knetbsd*-gnu) | 
|  | 20290 | version_type=linux | 
|  | 20291 | need_lib_prefix=no | 
|  | 20292 | need_version=no | 
|  | 20293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 20294 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20295 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20296 | shlibpath_overrides_runpath=no | 
|  | 20297 | hardcode_into_libs=yes | 
|  | 20298 | dynamic_linker='GNU ld.so' | 
|  | 20299 | ;; | 
|  | 20300 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20301 | netbsd*) | 
|  | 20302 | version_type=sunos | 
|  | 20303 | need_lib_prefix=no | 
|  | 20304 | need_version=no | 
|  | 20305 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 20306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 20307 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 20308 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 20309 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20310 | 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] | 20311 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20312 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 20313 | fi | 
|  | 20314 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20315 | shlibpath_overrides_runpath=yes | 
|  | 20316 | hardcode_into_libs=yes | 
|  | 20317 | ;; | 
|  | 20318 |  | 
|  | 20319 | newsos6) | 
|  | 20320 | version_type=linux | 
|  | 20321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20322 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20323 | shlibpath_overrides_runpath=yes | 
|  | 20324 | ;; | 
|  | 20325 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20326 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20327 | version_type=linux | 
|  | 20328 | need_lib_prefix=no | 
|  | 20329 | need_version=no | 
|  | 20330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20331 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20332 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20333 | shlibpath_overrides_runpath=yes | 
|  | 20334 | ;; | 
|  | 20335 |  | 
|  | 20336 | openbsd*) | 
|  | 20337 | version_type=sunos | 
|  | 20338 | need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20339 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 20341 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 20342 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20343 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 20344 | case $host_os in | 
|  | 20345 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 20346 | shlibpath_overrides_runpath=no | 
|  | 20347 | ;; | 
|  | 20348 | *) | 
|  | 20349 | shlibpath_overrides_runpath=yes | 
|  | 20350 | ;; | 
|  | 20351 | esac | 
|  | 20352 | else | 
|  | 20353 | shlibpath_overrides_runpath=yes | 
|  | 20354 | fi | 
|  | 20355 | ;; | 
|  | 20356 |  | 
|  | 20357 | os2*) | 
|  | 20358 | libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20359 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20360 | need_lib_prefix=no | 
|  | 20361 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 20362 | dynamic_linker='OS/2 ld.exe' | 
|  | 20363 | shlibpath_var=LIBPATH | 
|  | 20364 | ;; | 
|  | 20365 |  | 
|  | 20366 | osf3* | osf4* | osf5*) | 
|  | 20367 | version_type=osf | 
|  | 20368 | need_lib_prefix=no | 
|  | 20369 | need_version=no | 
|  | 20370 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20371 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20372 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20373 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 20374 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 20375 | ;; | 
|  | 20376 |  | 
|  | 20377 | sco3.2v5*) | 
|  | 20378 | version_type=osf | 
|  | 20379 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20381 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20382 | ;; | 
|  | 20383 |  | 
|  | 20384 | solaris*) | 
|  | 20385 | version_type=linux | 
|  | 20386 | need_lib_prefix=no | 
|  | 20387 | need_version=no | 
|  | 20388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20389 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20390 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20391 | shlibpath_overrides_runpath=yes | 
|  | 20392 | hardcode_into_libs=yes | 
|  | 20393 | # ldd complains unless libraries are executable | 
|  | 20394 | postinstall_cmds='chmod +x $lib' | 
|  | 20395 | ;; | 
|  | 20396 |  | 
|  | 20397 | sunos4*) | 
|  | 20398 | version_type=sunos | 
|  | 20399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 20400 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 20401 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20402 | shlibpath_overrides_runpath=yes | 
|  | 20403 | if test "$with_gnu_ld" = yes; then | 
|  | 20404 | need_lib_prefix=no | 
|  | 20405 | fi | 
|  | 20406 | need_version=yes | 
|  | 20407 | ;; | 
|  | 20408 |  | 
|  | 20409 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 20410 | version_type=linux | 
|  | 20411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 20412 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 20413 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20414 | case $host_vendor in | 
|  | 20415 | sni) | 
|  | 20416 | shlibpath_overrides_runpath=no | 
|  | 20417 | need_lib_prefix=no | 
|  | 20418 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 20419 | runpath_var=LD_RUN_PATH | 
|  | 20420 | ;; | 
|  | 20421 | siemens) | 
|  | 20422 | need_lib_prefix=no | 
|  | 20423 | ;; | 
|  | 20424 | motorola) | 
|  | 20425 | need_lib_prefix=no | 
|  | 20426 | need_version=no | 
|  | 20427 | shlibpath_overrides_runpath=no | 
|  | 20428 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 20429 | ;; | 
|  | 20430 | esac | 
|  | 20431 | ;; | 
|  | 20432 |  | 
|  | 20433 | sysv4*MP*) | 
|  | 20434 | if test -d /usr/nec ;then | 
|  | 20435 | version_type=linux | 
|  | 20436 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 20437 | soname_spec='$libname${shared_ext}.$major' | 
|  | 20438 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20439 | fi | 
|  | 20440 | ;; | 
|  | 20441 |  | 
|  | 20442 | uts4*) | 
|  | 20443 | version_type=linux | 
|  | 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 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 20447 | ;; | 
|  | 20448 |  | 
|  | 20449 | *) | 
|  | 20450 | dynamic_linker=no | 
|  | 20451 | ;; | 
|  | 20452 | esac | 
|  | 20453 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 20454 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 20455 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 20456 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20457 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 20458 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 20459 | hardcode_action_F77= | 
|  | 20460 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
|  | 20461 | test -n "$runpath_var_F77" || \ | 
|  | 20462 | test "X$hardcode_automatic_F77" = "Xyes" ; then | 
|  | 20463 |  | 
|  | 20464 | # We can hardcode non-existant directories. | 
|  | 20465 | if test "$hardcode_direct_F77" != no && | 
|  | 20466 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 20467 | # have to relink, otherwise we might link with an installed library | 
|  | 20468 | # when we should be linking with a yet-to-be-installed one | 
|  | 20469 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
|  | 20470 | test "$hardcode_minus_L_F77" != no; then | 
|  | 20471 | # Linking always hardcodes the temporary library directory. | 
|  | 20472 | hardcode_action_F77=relink | 
|  | 20473 | else | 
|  | 20474 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 20475 | hardcode_action_F77=immediate | 
|  | 20476 | fi | 
|  | 20477 | else | 
|  | 20478 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 20479 | # directories. | 
|  | 20480 | hardcode_action_F77=unsupported | 
|  | 20481 | fi | 
|  | 20482 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
|  | 20483 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 
|  | 20484 |  | 
|  | 20485 | if test "$hardcode_action_F77" = relink; then | 
|  | 20486 | # Fast installation is not supported | 
|  | 20487 | enable_fast_install=no | 
|  | 20488 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 20489 | test "$enable_shared" = no; then | 
|  | 20490 | # Fast installation is not necessary | 
|  | 20491 | enable_fast_install=needless | 
|  | 20492 | fi | 
|  | 20493 |  | 
|  | 20494 | striplib= | 
|  | 20495 | old_striplib= | 
|  | 20496 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 20497 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 20498 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 20499 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 20500 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 20501 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 20502 | echo "${ECHO_T}yes" >&6 | 
|  | 20503 | else | 
|  | 20504 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 20505 | case $host_os in | 
|  | 20506 | darwin*) | 
|  | 20507 | if test -n "$STRIP" ; then | 
|  | 20508 | striplib="$STRIP -x" | 
|  | 20509 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 20510 | echo "${ECHO_T}yes" >&6 | 
|  | 20511 | else | 
|  | 20512 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20513 | echo "${ECHO_T}no" >&6 | 
|  | 20514 | fi | 
|  | 20515 | ;; | 
|  | 20516 | *) | 
|  | 20517 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 20518 | echo "${ECHO_T}no" >&6 | 
|  | 20519 | ;; | 
|  | 20520 | esac | 
|  | 20521 | fi | 
|  | 20522 |  | 
|  | 20523 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20524 |  | 
|  | 20525 | # The else clause should only fire when bootstrapping the | 
|  | 20526 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 20527 | # with your package, and you will get complaints that there are | 
|  | 20528 | # no rules to generate ltmain.sh. | 
|  | 20529 | if test -f "$ltmain"; then | 
|  | 20530 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 20531 | # without removal of \ escapes. | 
|  | 20532 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 20533 | setopt NO_GLOB_SUBST | 
|  | 20534 | fi | 
|  | 20535 | # Now quote all the things that may contain metacharacters while being | 
|  | 20536 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 20537 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20538 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 20539 | SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20540 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 20541 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 20542 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 20543 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 20544 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 20545 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 20546 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 20547 | compiler_F77 \ | 
|  | 20548 | CC_F77 \ | 
|  | 20549 | LD_F77 \ | 
|  | 20550 | lt_prog_compiler_wl_F77 \ | 
|  | 20551 | lt_prog_compiler_pic_F77 \ | 
|  | 20552 | lt_prog_compiler_static_F77 \ | 
|  | 20553 | lt_prog_compiler_no_builtin_flag_F77 \ | 
|  | 20554 | export_dynamic_flag_spec_F77 \ | 
|  | 20555 | thread_safe_flag_spec_F77 \ | 
|  | 20556 | whole_archive_flag_spec_F77 \ | 
|  | 20557 | enable_shared_with_static_runtimes_F77 \ | 
|  | 20558 | old_archive_cmds_F77 \ | 
|  | 20559 | old_archive_from_new_cmds_F77 \ | 
|  | 20560 | predep_objects_F77 \ | 
|  | 20561 | postdep_objects_F77 \ | 
|  | 20562 | predeps_F77 \ | 
|  | 20563 | postdeps_F77 \ | 
|  | 20564 | compiler_lib_search_path_F77 \ | 
|  | 20565 | archive_cmds_F77 \ | 
|  | 20566 | archive_expsym_cmds_F77 \ | 
|  | 20567 | postinstall_cmds_F77 \ | 
|  | 20568 | postuninstall_cmds_F77 \ | 
|  | 20569 | old_archive_from_expsyms_cmds_F77 \ | 
|  | 20570 | allow_undefined_flag_F77 \ | 
|  | 20571 | no_undefined_flag_F77 \ | 
|  | 20572 | export_symbols_cmds_F77 \ | 
|  | 20573 | hardcode_libdir_flag_spec_F77 \ | 
|  | 20574 | hardcode_libdir_flag_spec_ld_F77 \ | 
|  | 20575 | hardcode_libdir_separator_F77 \ | 
|  | 20576 | hardcode_automatic_F77 \ | 
|  | 20577 | module_cmds_F77 \ | 
|  | 20578 | module_expsym_cmds_F77 \ | 
|  | 20579 | lt_cv_prog_compiler_c_o_F77 \ | 
|  | 20580 | exclude_expsyms_F77 \ | 
|  | 20581 | include_expsyms_F77; do | 
|  | 20582 |  | 
|  | 20583 | case $var in | 
|  | 20584 | old_archive_cmds_F77 | \ | 
|  | 20585 | old_archive_from_new_cmds_F77 | \ | 
|  | 20586 | archive_cmds_F77 | \ | 
|  | 20587 | archive_expsym_cmds_F77 | \ | 
|  | 20588 | module_cmds_F77 | \ | 
|  | 20589 | module_expsym_cmds_F77 | \ | 
|  | 20590 | old_archive_from_expsyms_cmds_F77 | \ | 
|  | 20591 | export_symbols_cmds_F77 | \ | 
|  | 20592 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 20593 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 20594 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 20595 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 20596 | # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20597 | 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] | 20598 | ;; | 
|  | 20599 | *) | 
|  | 20600 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 20601 | ;; | 
|  | 20602 | esac | 
|  | 20603 | done | 
|  | 20604 |  | 
|  | 20605 | case $lt_echo in | 
|  | 20606 | *'\$0 --fallback-echo"') | 
|  | 20607 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 20608 | ;; | 
|  | 20609 | esac | 
|  | 20610 |  | 
|  | 20611 | cfgfile="$ofile" | 
|  | 20612 |  | 
|  | 20613 | cat <<__EOF__ >> "$cfgfile" | 
|  | 20614 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 20615 |  | 
|  | 20616 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 20617 |  | 
|  | 20618 | # Shell to use when invoking shell scripts. | 
|  | 20619 | SHELL=$lt_SHELL | 
|  | 20620 |  | 
|  | 20621 | # Whether or not to build shared libraries. | 
|  | 20622 | build_libtool_libs=$enable_shared | 
|  | 20623 |  | 
|  | 20624 | # Whether or not to build static libraries. | 
|  | 20625 | build_old_libs=$enable_static | 
|  | 20626 |  | 
|  | 20627 | # Whether or not to add -lc for building shared libraries. | 
|  | 20628 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
|  | 20629 |  | 
|  | 20630 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 20631 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
|  | 20632 |  | 
|  | 20633 | # Whether or not to optimize for fast installation. | 
|  | 20634 | fast_install=$enable_fast_install | 
|  | 20635 |  | 
|  | 20636 | # The host system. | 
|  | 20637 | host_alias=$host_alias | 
|  | 20638 | host=$host | 
|  | 20639 |  | 
|  | 20640 | # An echo program that does not interpret backslashes. | 
|  | 20641 | echo=$lt_echo | 
|  | 20642 |  | 
|  | 20643 | # The archiver. | 
|  | 20644 | AR=$lt_AR | 
|  | 20645 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 20646 |  | 
|  | 20647 | # A C compiler. | 
|  | 20648 | LTCC=$lt_LTCC | 
|  | 20649 |  | 
|  | 20650 | # A language-specific compiler. | 
|  | 20651 | CC=$lt_compiler_F77 | 
|  | 20652 |  | 
|  | 20653 | # Is the compiler the GNU C compiler? | 
|  | 20654 | with_gcc=$GCC_F77 | 
|  | 20655 |  | 
|  | 20656 | # An ERE matcher. | 
|  | 20657 | EGREP=$lt_EGREP | 
|  | 20658 |  | 
|  | 20659 | # The linker used to build libraries. | 
|  | 20660 | LD=$lt_LD_F77 | 
|  | 20661 |  | 
|  | 20662 | # Whether we need hard or soft links. | 
|  | 20663 | LN_S=$lt_LN_S | 
|  | 20664 |  | 
|  | 20665 | # A BSD-compatible nm program. | 
|  | 20666 | NM=$lt_NM | 
|  | 20667 |  | 
|  | 20668 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20669 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20670 |  | 
|  | 20671 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 20672 | MAGIC_CMD=$MAGIC_CMD | 
|  | 20673 |  | 
|  | 20674 | # Used on cygwin: DLL creation program. | 
|  | 20675 | DLLTOOL="$DLLTOOL" | 
|  | 20676 |  | 
|  | 20677 | # Used on cygwin: object dumper. | 
|  | 20678 | OBJDUMP="$OBJDUMP" | 
|  | 20679 |  | 
|  | 20680 | # Used on cygwin: assembler. | 
|  | 20681 | AS="$AS" | 
|  | 20682 |  | 
|  | 20683 | # The name of the directory that contains temporary libtool files. | 
|  | 20684 | objdir=$objdir | 
|  | 20685 |  | 
|  | 20686 | # How to create reloadable object files. | 
|  | 20687 | reload_flag=$lt_reload_flag | 
|  | 20688 | reload_cmds=$lt_reload_cmds | 
|  | 20689 |  | 
|  | 20690 | # How to pass a linker flag through the compiler. | 
|  | 20691 | wl=$lt_lt_prog_compiler_wl_F77 | 
|  | 20692 |  | 
|  | 20693 | # Object file suffix (normally "o"). | 
|  | 20694 | objext="$ac_objext" | 
|  | 20695 |  | 
|  | 20696 | # Old archive suffix (normally "a"). | 
|  | 20697 | libext="$libext" | 
|  | 20698 |  | 
|  | 20699 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20700 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20701 |  | 
|  | 20702 | # Executable file suffix (normally ""). | 
|  | 20703 | exeext="$exeext" | 
|  | 20704 |  | 
|  | 20705 | # Additional compiler flags for building library objects. | 
|  | 20706 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
|  | 20707 | pic_mode=$pic_mode | 
|  | 20708 |  | 
|  | 20709 | # What is the maximum length of a command? | 
|  | 20710 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 20711 |  | 
|  | 20712 | # Does compiler simultaneously support -c and -o options? | 
|  | 20713 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
|  | 20714 |  | 
|  | 20715 | # Must we lock files when doing compilation ? | 
|  | 20716 | need_locks=$lt_need_locks | 
|  | 20717 |  | 
|  | 20718 | # Do we need the lib prefix for modules? | 
|  | 20719 | need_lib_prefix=$need_lib_prefix | 
|  | 20720 |  | 
|  | 20721 | # Do we need a version for libraries? | 
|  | 20722 | need_version=$need_version | 
|  | 20723 |  | 
|  | 20724 | # Whether dlopen is supported. | 
|  | 20725 | dlopen_support=$enable_dlopen | 
|  | 20726 |  | 
|  | 20727 | # Whether dlopen of programs is supported. | 
|  | 20728 | dlopen_self=$enable_dlopen_self | 
|  | 20729 |  | 
|  | 20730 | # Whether dlopen of statically linked programs is supported. | 
|  | 20731 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 20732 |  | 
|  | 20733 | # Compiler flag to prevent dynamic linking. | 
|  | 20734 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
|  | 20735 |  | 
|  | 20736 | # Compiler flag to turn off builtin functions. | 
|  | 20737 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
|  | 20738 |  | 
|  | 20739 | # Compiler flag to allow reflexive dlopens. | 
|  | 20740 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
|  | 20741 |  | 
|  | 20742 | # Compiler flag to generate shared objects directly from archives. | 
|  | 20743 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
|  | 20744 |  | 
|  | 20745 | # Compiler flag to generate thread-safe objects. | 
|  | 20746 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
|  | 20747 |  | 
|  | 20748 | # Library versioning type. | 
|  | 20749 | version_type=$version_type | 
|  | 20750 |  | 
|  | 20751 | # Format of library name prefix. | 
|  | 20752 | libname_spec=$lt_libname_spec | 
|  | 20753 |  | 
|  | 20754 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 20755 | # The last name is the one that the linker finds with -lNAME. | 
|  | 20756 | library_names_spec=$lt_library_names_spec | 
|  | 20757 |  | 
|  | 20758 | # The coded name of the library, if different from the real name. | 
|  | 20759 | soname_spec=$lt_soname_spec | 
|  | 20760 |  | 
|  | 20761 | # Commands used to build and install an old-style archive. | 
|  | 20762 | RANLIB=$lt_RANLIB | 
|  | 20763 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
|  | 20764 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 20765 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 20766 |  | 
|  | 20767 | # Create an old-style archive from a shared archive. | 
|  | 20768 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
|  | 20769 |  | 
|  | 20770 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 20771 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
|  | 20772 |  | 
|  | 20773 | # Commands used to build and install a shared archive. | 
|  | 20774 | archive_cmds=$lt_archive_cmds_F77 | 
|  | 20775 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
|  | 20776 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 20777 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 20778 |  | 
|  | 20779 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 20780 | module_cmds=$lt_module_cmds_F77 | 
|  | 20781 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
|  | 20782 |  | 
|  | 20783 | # Commands to strip libraries. | 
|  | 20784 | old_striplib=$lt_old_striplib | 
|  | 20785 | striplib=$lt_striplib | 
|  | 20786 |  | 
|  | 20787 | # Dependencies to place before the objects being linked to create a | 
|  | 20788 | # shared library. | 
|  | 20789 | predep_objects=$lt_predep_objects_F77 | 
|  | 20790 |  | 
|  | 20791 | # Dependencies to place after the objects being linked to create a | 
|  | 20792 | # shared library. | 
|  | 20793 | postdep_objects=$lt_postdep_objects_F77 | 
|  | 20794 |  | 
|  | 20795 | # Dependencies to place before the objects being linked to create a | 
|  | 20796 | # shared library. | 
|  | 20797 | predeps=$lt_predeps_F77 | 
|  | 20798 |  | 
|  | 20799 | # Dependencies to place after the objects being linked to create a | 
|  | 20800 | # shared library. | 
|  | 20801 | postdeps=$lt_postdeps_F77 | 
|  | 20802 |  | 
|  | 20803 | # The library search path used internally by the compiler when linking | 
|  | 20804 | # a shared library. | 
|  | 20805 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
|  | 20806 |  | 
|  | 20807 | # Method to check whether dependent libraries are shared objects. | 
|  | 20808 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 20809 |  | 
|  | 20810 | # Command to use when deplibs_check_method == file_magic. | 
|  | 20811 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 20812 |  | 
|  | 20813 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 20814 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
|  | 20815 |  | 
|  | 20816 | # Flag that forces no undefined symbols. | 
|  | 20817 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
|  | 20818 |  | 
|  | 20819 | # Commands used to finish a libtool library installation in a directory. | 
|  | 20820 | finish_cmds=$lt_finish_cmds | 
|  | 20821 |  | 
|  | 20822 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 20823 | finish_eval=$lt_finish_eval | 
|  | 20824 |  | 
|  | 20825 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 20826 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 20827 |  | 
|  | 20828 | # Transform the output of nm in a proper C declaration | 
|  | 20829 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 20830 |  | 
|  | 20831 | # Transform the output of nm in a C name address pair | 
|  | 20832 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 20833 |  | 
|  | 20834 | # This is the shared library runtime path variable. | 
|  | 20835 | runpath_var=$runpath_var | 
|  | 20836 |  | 
|  | 20837 | # This is the shared library path variable. | 
|  | 20838 | shlibpath_var=$shlibpath_var | 
|  | 20839 |  | 
|  | 20840 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 20841 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 20842 |  | 
|  | 20843 | # How to hardcode a shared library path into an executable. | 
|  | 20844 | hardcode_action=$hardcode_action_F77 | 
|  | 20845 |  | 
|  | 20846 | # Whether we should hardcode library paths into libraries. | 
|  | 20847 | hardcode_into_libs=$hardcode_into_libs | 
|  | 20848 |  | 
|  | 20849 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 20850 | # This must work even if \$libdir does not exist. | 
|  | 20851 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
|  | 20852 |  | 
|  | 20853 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 20854 | # a binary during linking. This must work even if \$libdir does | 
|  | 20855 | # not exist. | 
|  | 20856 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
|  | 20857 |  | 
|  | 20858 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 20859 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
|  | 20860 |  | 
|  | 20861 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 20862 | # resulting binary. | 
|  | 20863 | hardcode_direct=$hardcode_direct_F77 | 
|  | 20864 |  | 
|  | 20865 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 20866 | # resulting binary. | 
|  | 20867 | hardcode_minus_L=$hardcode_minus_L_F77 | 
|  | 20868 |  | 
|  | 20869 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 20870 | # the resulting binary. | 
|  | 20871 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
|  | 20872 |  | 
|  | 20873 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 20874 | # and all subsequent libraries and executables linked against it. | 
|  | 20875 | hardcode_automatic=$hardcode_automatic_F77 | 
|  | 20876 |  | 
|  | 20877 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 20878 | # restored at relink time. | 
|  | 20879 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 20880 |  | 
|  | 20881 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 20882 | link_all_deplibs=$link_all_deplibs_F77 | 
|  | 20883 |  | 
|  | 20884 | # Compile-time system search path for libraries | 
|  | 20885 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 20886 |  | 
|  | 20887 | # Run-time system search path for libraries | 
|  | 20888 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 20889 |  | 
|  | 20890 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 20891 | fix_srcfile_path="$fix_srcfile_path_F77" | 
|  | 20892 |  | 
|  | 20893 | # Set to yes if exported symbols are required. | 
|  | 20894 | always_export_symbols=$always_export_symbols_F77 | 
|  | 20895 |  | 
|  | 20896 | # The commands to list exported symbols. | 
|  | 20897 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
|  | 20898 |  | 
|  | 20899 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 20900 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 20901 |  | 
|  | 20902 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 20903 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
|  | 20904 |  | 
|  | 20905 | # Symbols that must always be exported. | 
|  | 20906 | include_expsyms=$lt_include_expsyms_F77 | 
|  | 20907 |  | 
|  | 20908 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 20909 |  | 
|  | 20910 | __EOF__ | 
|  | 20911 |  | 
|  | 20912 |  | 
|  | 20913 | else | 
|  | 20914 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 20915 | # `config.status --recheck' to rerun these tests and create the | 
|  | 20916 | # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20917 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 20918 | if test -f "$ltmain_in"; then | 
|  | 20919 | test -f Makefile && make "$ltmain" | 
|  | 20920 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20921 | fi | 
|  | 20922 |  | 
|  | 20923 |  | 
|  | 20924 | ac_ext=c | 
|  | 20925 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20929 |  | 
|  | 20930 | CC="$lt_save_CC" | 
|  | 20931 |  | 
|  | 20932 | else | 
|  | 20933 | tagname="" | 
|  | 20934 | fi | 
|  | 20935 | ;; | 
|  | 20936 |  | 
|  | 20937 | GCJ) | 
|  | 20938 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20939 | ac_ext=c | 
|  | 20940 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20944 |  | 
|  | 20945 |  | 
|  | 20946 | # Source file extension for Java test sources. | 
|  | 20947 | ac_ext=java | 
|  | 20948 |  | 
|  | 20949 | # Object file extension for compiled Java test sources. | 
|  | 20950 | objext=o | 
|  | 20951 | objext_GCJ=$objext | 
|  | 20952 |  | 
|  | 20953 | # Code to be used in simple compile tests | 
|  | 20954 | lt_simple_compile_test_code="class foo {}\n" | 
|  | 20955 |  | 
|  | 20956 | # Code to be used in simple link tests | 
|  | 20957 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 
|  | 20958 |  | 
|  | 20959 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 20960 |  | 
|  | 20961 | # If no C compiler was specified, use CC. | 
|  | 20962 | LTCC=${LTCC-"$CC"} | 
|  | 20963 |  | 
|  | 20964 | # Allow CC to be a program name with arguments. | 
|  | 20965 | compiler=$CC | 
|  | 20966 |  | 
|  | 20967 |  | 
|  | 20968 | # Allow CC to be a program name with arguments. | 
|  | 20969 | lt_save_CC="$CC" | 
|  | 20970 | CC=${GCJ-"gcj"} | 
|  | 20971 | compiler=$CC | 
|  | 20972 | compiler_GCJ=$CC | 
|  | 20973 |  | 
|  | 20974 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
|  | 20975 | archive_cmds_need_lc_GCJ=no | 
|  | 20976 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20977 |  | 
|  | 20978 | lt_prog_compiler_no_builtin_flag_GCJ= | 
|  | 20979 |  | 
|  | 20980 | if test "$GCC" = yes; then | 
|  | 20981 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
|  | 20982 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20983 |  | 
|  | 20984 | 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] | 20985 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
|  | 20986 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
|  | 20987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 20988 | else | 
|  | 20989 | lt_cv_prog_compiler_rtti_exceptions=no | 
|  | 20990 | ac_outfile=conftest.$ac_objext | 
|  | 20991 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 20992 | lt_compiler_flag="-fno-rtti -fno-exceptions" | 
|  | 20993 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 20994 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 20995 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 20996 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 20997 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 20998 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 20999 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 21000 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 21001 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 21002 | (eval echo "\"\$as_me:21002: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21003 | (eval "$lt_compile" 2>conftest.err) | 
|  | 21004 | ac_status=$? | 
|  | 21005 | cat conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 21006 | echo "$as_me:21006: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21007 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 21008 | # The compiler can only warn and ignore the option if not recognized | 
|  | 21009 | # So say no if there are warnings | 
|  | 21010 | if test ! -s conftest.err; then | 
|  | 21011 | lt_cv_prog_compiler_rtti_exceptions=yes | 
|  | 21012 | fi | 
|  | 21013 | fi | 
|  | 21014 | $rm conftest* | 
|  | 21015 |  | 
|  | 21016 | fi | 
|  | 21017 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
|  | 21018 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
|  | 21019 |  | 
|  | 21020 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
|  | 21021 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
|  | 21022 | else | 
|  | 21023 | : | 
|  | 21024 | fi | 
|  | 21025 |  | 
|  | 21026 | fi | 
|  | 21027 |  | 
|  | 21028 | lt_prog_compiler_wl_GCJ= | 
|  | 21029 | lt_prog_compiler_pic_GCJ= | 
|  | 21030 | lt_prog_compiler_static_GCJ= | 
|  | 21031 |  | 
|  | 21032 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
|  | 21033 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
|  | 21034 |  | 
|  | 21035 | if test "$GCC" = yes; then | 
|  | 21036 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21037 | lt_prog_compiler_static_GCJ='-static' | 
|  | 21038 |  | 
|  | 21039 | case $host_os in | 
|  | 21040 | aix*) | 
|  | 21041 | # All AIX code is PIC. | 
|  | 21042 | if test "$host_cpu" = ia64; then | 
|  | 21043 | # AIX 5 now supports IA64 processor | 
|  | 21044 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 21045 | fi | 
|  | 21046 | ;; | 
|  | 21047 |  | 
|  | 21048 | amigaos*) | 
|  | 21049 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 21050 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 21051 | # like `-m68040'. | 
|  | 21052 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
|  | 21053 | ;; | 
|  | 21054 |  | 
|  | 21055 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 21056 | # PIC is the default for these OSes. | 
|  | 21057 | ;; | 
|  | 21058 |  | 
|  | 21059 | mingw* | pw32* | os2*) | 
|  | 21060 | # This hack is so that the source file can tell whether it is being | 
|  | 21061 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 21062 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
|  | 21063 | ;; | 
|  | 21064 |  | 
|  | 21065 | darwin* | rhapsody*) | 
|  | 21066 | # PIC is the default on this platform | 
|  | 21067 | # Common symbols not allowed in MH_DYLIB files | 
|  | 21068 | lt_prog_compiler_pic_GCJ='-fno-common' | 
|  | 21069 | ;; | 
|  | 21070 |  | 
|  | 21071 | msdosdjgpp*) | 
|  | 21072 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 21073 | # on systems that don't support them. | 
|  | 21074 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 21075 | enable_shared=no | 
|  | 21076 | ;; | 
|  | 21077 |  | 
|  | 21078 | sysv4*MP*) | 
|  | 21079 | if test -d /usr/nec; then | 
|  | 21080 | lt_prog_compiler_pic_GCJ=-Kconform_pic | 
|  | 21081 | fi | 
|  | 21082 | ;; | 
|  | 21083 |  | 
|  | 21084 | hpux*) | 
|  | 21085 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 21086 | # not for PA HP-UX. | 
|  | 21087 | case "$host_cpu" in | 
|  | 21088 | hppa*64*|ia64*) | 
|  | 21089 | # +Z the default | 
|  | 21090 | ;; | 
|  | 21091 | *) | 
|  | 21092 | lt_prog_compiler_pic_GCJ='-fPIC' | 
|  | 21093 | ;; | 
|  | 21094 | esac | 
|  | 21095 | ;; | 
|  | 21096 |  | 
|  | 21097 | *) | 
|  | 21098 | lt_prog_compiler_pic_GCJ='-fPIC' | 
|  | 21099 | ;; | 
|  | 21100 | esac | 
|  | 21101 | else | 
|  | 21102 | # PORTME Check for flag to pass linker flags through the system compiler. | 
|  | 21103 | case $host_os in | 
|  | 21104 | aix*) | 
|  | 21105 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21106 | if test "$host_cpu" = ia64; then | 
|  | 21107 | # AIX 5 now supports IA64 processor | 
|  | 21108 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 21109 | else | 
|  | 21110 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
|  | 21111 | fi | 
|  | 21112 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21113 | darwin*) | 
|  | 21114 | # PIC is the default on this platform | 
|  | 21115 | # Common symbols not allowed in MH_DYLIB files | 
|  | 21116 | case "$cc_basename" in | 
|  | 21117 | xlc*) | 
|  | 21118 | lt_prog_compiler_pic_GCJ='-qnocommon' | 
|  | 21119 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21120 | ;; | 
|  | 21121 | esac | 
|  | 21122 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21123 |  | 
|  | 21124 | mingw* | pw32* | os2*) | 
|  | 21125 | # This hack is so that the source file can tell whether it is being | 
|  | 21126 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 21127 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
|  | 21128 | ;; | 
|  | 21129 |  | 
|  | 21130 | hpux9* | hpux10* | hpux11*) | 
|  | 21131 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21132 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 21133 | # not for PA HP-UX. | 
|  | 21134 | case "$host_cpu" in | 
|  | 21135 | hppa*64*|ia64*) | 
|  | 21136 | # +Z the default | 
|  | 21137 | ;; | 
|  | 21138 | *) | 
|  | 21139 | lt_prog_compiler_pic_GCJ='+Z' | 
|  | 21140 | ;; | 
|  | 21141 | esac | 
|  | 21142 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 21143 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
|  | 21144 | ;; | 
|  | 21145 |  | 
|  | 21146 | irix5* | irix6* | nonstopux*) | 
|  | 21147 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21148 | # PIC (with -KPIC) is the default. | 
|  | 21149 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 21150 | ;; | 
|  | 21151 |  | 
|  | 21152 | newsos6) | 
|  | 21153 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 21154 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 21155 | ;; | 
|  | 21156 |  | 
|  | 21157 | linux*) | 
|  | 21158 | case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21159 | icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21160 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21161 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 21162 | lt_prog_compiler_static_GCJ='-static' | 
|  | 21163 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21164 | ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21165 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21166 | # All Alpha code is PIC. | 
|  | 21167 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 21168 | ;; | 
|  | 21169 | esac | 
|  | 21170 | ;; | 
|  | 21171 |  | 
|  | 21172 | osf3* | osf4* | osf5*) | 
|  | 21173 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21174 | # All OSF/1 code is PIC. | 
|  | 21175 | lt_prog_compiler_static_GCJ='-non_shared' | 
|  | 21176 | ;; | 
|  | 21177 |  | 
|  | 21178 | sco3.2v5*) | 
|  | 21179 | lt_prog_compiler_pic_GCJ='-Kpic' | 
|  | 21180 | lt_prog_compiler_static_GCJ='-dn' | 
|  | 21181 | ;; | 
|  | 21182 |  | 
|  | 21183 | solaris*) | 
|  | 21184 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21185 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 21186 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 21187 | ;; | 
|  | 21188 |  | 
|  | 21189 | sunos4*) | 
|  | 21190 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
|  | 21191 | lt_prog_compiler_pic_GCJ='-PIC' | 
|  | 21192 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 21193 | ;; | 
|  | 21194 |  | 
|  | 21195 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 21196 | lt_prog_compiler_wl_GCJ='-Wl,' | 
|  | 21197 | lt_prog_compiler_pic_GCJ='-KPIC' | 
|  | 21198 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 21199 | ;; | 
|  | 21200 |  | 
|  | 21201 | sysv4*MP*) | 
|  | 21202 | if test -d /usr/nec ;then | 
|  | 21203 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
|  | 21204 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 21205 | fi | 
|  | 21206 | ;; | 
|  | 21207 |  | 
|  | 21208 | uts4*) | 
|  | 21209 | lt_prog_compiler_pic_GCJ='-pic' | 
|  | 21210 | lt_prog_compiler_static_GCJ='-Bstatic' | 
|  | 21211 | ;; | 
|  | 21212 |  | 
|  | 21213 | *) | 
|  | 21214 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 21215 | ;; | 
|  | 21216 | esac | 
|  | 21217 | fi | 
|  | 21218 |  | 
|  | 21219 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
|  | 21220 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 
|  | 21221 |  | 
|  | 21222 | # | 
|  | 21223 | # Check to make sure the PIC flag actually works. | 
|  | 21224 | # | 
|  | 21225 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21226 |  | 
|  | 21227 | 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] | 21228 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 
|  | 21229 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
|  | 21230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21231 | else | 
|  | 21232 | lt_prog_compiler_pic_works_GCJ=no | 
|  | 21233 | ac_outfile=conftest.$ac_objext | 
|  | 21234 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 21235 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
|  | 21236 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 21237 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 21238 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 21239 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 21240 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 21241 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 21242 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 21243 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 21244 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 21245 | (eval echo "\"\$as_me:21245: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21246 | (eval "$lt_compile" 2>conftest.err) | 
|  | 21247 | ac_status=$? | 
|  | 21248 | cat conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 21249 | echo "$as_me:21249: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21250 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 21251 | # The compiler can only warn and ignore the option if not recognized | 
|  | 21252 | # So say no if there are warnings | 
|  | 21253 | if test ! -s conftest.err; then | 
|  | 21254 | lt_prog_compiler_pic_works_GCJ=yes | 
|  | 21255 | fi | 
|  | 21256 | fi | 
|  | 21257 | $rm conftest* | 
|  | 21258 |  | 
|  | 21259 | fi | 
|  | 21260 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
|  | 21261 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 
|  | 21262 |  | 
|  | 21263 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
|  | 21264 | case $lt_prog_compiler_pic_GCJ in | 
|  | 21265 | "" | " "*) ;; | 
|  | 21266 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
|  | 21267 | esac | 
|  | 21268 | else | 
|  | 21269 | lt_prog_compiler_pic_GCJ= | 
|  | 21270 | lt_prog_compiler_can_build_shared_GCJ=no | 
|  | 21271 | fi | 
|  | 21272 |  | 
|  | 21273 | fi | 
|  | 21274 | case "$host_os" in | 
|  | 21275 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 21276 | *djgpp*) | 
|  | 21277 | lt_prog_compiler_pic_GCJ= | 
|  | 21278 | ;; | 
|  | 21279 | *) | 
|  | 21280 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
|  | 21281 | ;; | 
|  | 21282 | esac | 
|  | 21283 |  | 
|  | 21284 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 21285 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
|  | 21286 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
|  | 21287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 21288 | else | 
|  | 21289 | lt_cv_prog_compiler_c_o_GCJ=no | 
|  | 21290 | $rm -r conftest 2>/dev/null | 
|  | 21291 | mkdir conftest | 
|  | 21292 | cd conftest | 
|  | 21293 | mkdir out | 
|  | 21294 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 21295 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21296 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 21297 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 21298 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 21299 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 21300 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 21301 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 21302 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
|  | 21303 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 21304 | -e 's:$: $lt_compiler_flag:'` | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 21305 | (eval echo "\"\$as_me:21305: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21306 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 21307 | ac_status=$? | 
|  | 21308 | cat out/conftest.err >&5 | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 21309 | echo "$as_me:21309: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21310 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 21311 | then | 
|  | 21312 | # The compiler can only warn and ignore the option if not recognized | 
|  | 21313 | # So say no if there are warnings | 
|  | 21314 | if test ! -s out/conftest.err; then | 
|  | 21315 | lt_cv_prog_compiler_c_o_GCJ=yes | 
|  | 21316 | fi | 
|  | 21317 | fi | 
|  | 21318 | chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21319 | $rm conftest* | 
|  | 21320 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 21321 | # template instantiation | 
|  | 21322 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
|  | 21323 | $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21324 | cd .. | 
|  | 21325 | rmdir conftest | 
|  | 21326 | $rm conftest* | 
|  | 21327 |  | 
|  | 21328 | fi | 
|  | 21329 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
|  | 21330 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 
|  | 21331 |  | 
|  | 21332 |  | 
|  | 21333 | hard_links="nottested" | 
|  | 21334 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
|  | 21335 | # do not overwrite the value of need_locks provided by the user | 
|  | 21336 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
|  | 21337 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
|  | 21338 | hard_links=yes | 
|  | 21339 | $rm conftest* | 
|  | 21340 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 21341 | touch conftest.a | 
|  | 21342 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 21343 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 21344 | echo "$as_me:$LINENO: result: $hard_links" >&5 | 
|  | 21345 | echo "${ECHO_T}$hard_links" >&6 | 
|  | 21346 | if test "$hard_links" = no; then | 
|  | 21347 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 21348 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 21349 | need_locks=warn | 
|  | 21350 | fi | 
|  | 21351 | else | 
|  | 21352 | need_locks=no | 
|  | 21353 | fi | 
|  | 21354 |  | 
|  | 21355 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 21356 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
|  | 21357 |  | 
|  | 21358 | runpath_var= | 
|  | 21359 | allow_undefined_flag_GCJ= | 
|  | 21360 | enable_shared_with_static_runtimes_GCJ=no | 
|  | 21361 | archive_cmds_GCJ= | 
|  | 21362 | archive_expsym_cmds_GCJ= | 
|  | 21363 | old_archive_From_new_cmds_GCJ= | 
|  | 21364 | old_archive_from_expsyms_cmds_GCJ= | 
|  | 21365 | export_dynamic_flag_spec_GCJ= | 
|  | 21366 | whole_archive_flag_spec_GCJ= | 
|  | 21367 | thread_safe_flag_spec_GCJ= | 
|  | 21368 | hardcode_libdir_flag_spec_GCJ= | 
|  | 21369 | hardcode_libdir_flag_spec_ld_GCJ= | 
|  | 21370 | hardcode_libdir_separator_GCJ= | 
|  | 21371 | hardcode_direct_GCJ=no | 
|  | 21372 | hardcode_minus_L_GCJ=no | 
|  | 21373 | hardcode_shlibpath_var_GCJ=unsupported | 
|  | 21374 | link_all_deplibs_GCJ=unknown | 
|  | 21375 | hardcode_automatic_GCJ=no | 
|  | 21376 | module_cmds_GCJ= | 
|  | 21377 | module_expsym_cmds_GCJ= | 
|  | 21378 | always_export_symbols_GCJ=no | 
|  | 21379 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 21380 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 21381 | # included in the symbol list | 
|  | 21382 | include_expsyms_GCJ= | 
|  | 21383 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 21384 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 21385 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 21386 | # as well as any symbol that contains `d'. | 
|  | 21387 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
|  | 21388 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 21389 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 21390 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 21391 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 21392 | # preloaded symbol tables. | 
|  | 21393 | extract_expsyms_cmds= | 
|  | 21394 |  | 
|  | 21395 | case $host_os in | 
|  | 21396 | cygwin* | mingw* | pw32*) | 
|  | 21397 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 21398 | # When not using gcc, we currently assume that we are using | 
|  | 21399 | # Microsoft Visual C++. | 
|  | 21400 | if test "$GCC" != yes; then | 
|  | 21401 | with_gnu_ld=no | 
|  | 21402 | fi | 
|  | 21403 | ;; | 
|  | 21404 | openbsd*) | 
|  | 21405 | with_gnu_ld=no | 
|  | 21406 | ;; | 
|  | 21407 | esac | 
|  | 21408 |  | 
|  | 21409 | ld_shlibs_GCJ=yes | 
|  | 21410 | if test "$with_gnu_ld" = yes; then | 
|  | 21411 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 21412 | wlarc='${wl}' | 
|  | 21413 |  | 
|  | 21414 | # See if GNU ld supports shared libraries. | 
|  | 21415 | case $host_os in | 
|  | 21416 | aix3* | aix4* | aix5*) | 
|  | 21417 | # On AIX/PPC, the GNU linker is very broken | 
|  | 21418 | if test "$host_cpu" != ia64; then | 
|  | 21419 | ld_shlibs_GCJ=no | 
|  | 21420 | cat <<EOF 1>&2 | 
|  | 21421 |  | 
|  | 21422 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
|  | 21423 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 21424 | *** Therefore, libtool is disabling shared libraries support.  If you | 
|  | 21425 | *** really care for shared libraries, you may want to modify your PATH | 
|  | 21426 | *** so that a non-GNU linker is found, and then restart. | 
|  | 21427 |  | 
|  | 21428 | EOF | 
|  | 21429 | fi | 
|  | 21430 | ;; | 
|  | 21431 |  | 
|  | 21432 | amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21433 | 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] | 21434 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 21435 | hardcode_minus_L_GCJ=yes | 
|  | 21436 |  | 
|  | 21437 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
|  | 21438 | # that the semantics of dynamic libraries on AmigaOS, at least up | 
|  | 21439 | # to version 4, is to share data among multiple programs linked | 
|  | 21440 | # with the same dynamic library.  Since this doesn't match the | 
|  | 21441 | # behavior of shared libraries on other platforms, we can't use | 
|  | 21442 | # them. | 
|  | 21443 | ld_shlibs_GCJ=no | 
|  | 21444 | ;; | 
|  | 21445 |  | 
|  | 21446 | beos*) | 
|  | 21447 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 21448 | allow_undefined_flag_GCJ=unsupported | 
|  | 21449 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 21450 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 21451 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 21452 | else | 
|  | 21453 | ld_shlibs_GCJ=no | 
|  | 21454 | fi | 
|  | 21455 | ;; | 
|  | 21456 |  | 
|  | 21457 | cygwin* | mingw* | pw32*) | 
|  | 21458 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
|  | 21459 | # as there is no search path for DLLs. | 
|  | 21460 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 21461 | allow_undefined_flag_GCJ=unsupported | 
|  | 21462 | always_export_symbols_GCJ=no | 
|  | 21463 | enable_shared_with_static_runtimes_GCJ=yes | 
|  | 21464 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 21465 |  | 
|  | 21466 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
|  | 21467 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
|  | 21468 | # If the export-symbols file already is a .def file (1st line | 
|  | 21469 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 21470 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 21471 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 21472 | else | 
|  | 21473 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 21474 | cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21475 | fi~ | 
|  | 21476 | $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] | 21477 | else | 
|  | 21478 | ld_shlibs=no | 
|  | 21479 | fi | 
|  | 21480 | ;; | 
|  | 21481 |  | 
|  | 21482 | netbsd*) | 
|  | 21483 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 21484 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 21485 | wlarc= | 
|  | 21486 | else | 
|  | 21487 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 21488 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 21489 | fi | 
|  | 21490 | ;; | 
|  | 21491 |  | 
|  | 21492 | solaris* | sysv5*) | 
|  | 21493 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
|  | 21494 | ld_shlibs_GCJ=no | 
|  | 21495 | cat <<EOF 1>&2 | 
|  | 21496 |  | 
|  | 21497 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 21498 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 21499 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 21500 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 21501 | *** your PATH or compiler configuration so that the native linker is | 
|  | 21502 | *** used, and then restart. | 
|  | 21503 |  | 
|  | 21504 | EOF | 
|  | 21505 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 21506 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 21507 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 21508 | else | 
|  | 21509 | ld_shlibs_GCJ=no | 
|  | 21510 | fi | 
|  | 21511 | ;; | 
|  | 21512 |  | 
|  | 21513 | sunos4*) | 
|  | 21514 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 21515 | wlarc= | 
|  | 21516 | hardcode_direct_GCJ=yes | 
|  | 21517 | hardcode_shlibpath_var_GCJ=no | 
|  | 21518 | ;; | 
|  | 21519 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21520 | linux*) | 
|  | 21521 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 21522 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 21523 | archive_cmds_GCJ="$tmp_archive_cmds" | 
|  | 21524 | supports_anon_versioning=no | 
|  | 21525 | case `$LD -v 2>/dev/null` in | 
|  | 21526 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
|  | 21527 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
|  | 21528 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
|  | 21529 | *\ 2.11.*) ;; # other 2.11 versions | 
|  | 21530 | *) supports_anon_versioning=yes ;; | 
|  | 21531 | esac | 
|  | 21532 | if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21533 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 21534 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 21535 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21536 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 21537 | else | 
|  | 21538 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" | 
|  | 21539 | fi | 
|  | 21540 | else | 
|  | 21541 | ld_shlibs_GCJ=no | 
|  | 21542 | fi | 
|  | 21543 | ;; | 
|  | 21544 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21545 | *) | 
|  | 21546 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
|  | 21547 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 21548 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 21549 | else | 
|  | 21550 | ld_shlibs_GCJ=no | 
|  | 21551 | fi | 
|  | 21552 | ;; | 
|  | 21553 | esac | 
|  | 21554 |  | 
|  | 21555 | if test "$ld_shlibs_GCJ" = yes; then | 
|  | 21556 | runpath_var=LD_RUN_PATH | 
|  | 21557 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
|  | 21558 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
|  | 21559 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 21560 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
|  | 21561 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 21562 | else | 
|  | 21563 | whole_archive_flag_spec_GCJ= | 
|  | 21564 | fi | 
|  | 21565 | fi | 
|  | 21566 | else | 
|  | 21567 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 21568 | case $host_os in | 
|  | 21569 | aix3*) | 
|  | 21570 | allow_undefined_flag_GCJ=unsupported | 
|  | 21571 | always_export_symbols_GCJ=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21572 | 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] | 21573 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 21574 | # are no directories specified by -L. | 
|  | 21575 | hardcode_minus_L_GCJ=yes | 
|  | 21576 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 
|  | 21577 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 21578 | # broken collect2. | 
|  | 21579 | hardcode_direct_GCJ=unsupported | 
|  | 21580 | fi | 
|  | 21581 | ;; | 
|  | 21582 |  | 
|  | 21583 | aix4* | aix5*) | 
|  | 21584 | if test "$host_cpu" = ia64; then | 
|  | 21585 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 21586 | # have to do anything special. | 
|  | 21587 | aix_use_runtimelinking=no | 
|  | 21588 | exp_sym_flag='-Bexport' | 
|  | 21589 | no_entry_flag="" | 
|  | 21590 | else | 
|  | 21591 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 21592 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
|  | 21593 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
|  | 21594 | 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' | 
|  | 21595 | else | 
|  | 21596 | 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' | 
|  | 21597 | fi | 
|  | 21598 | aix_use_runtimelinking=no | 
|  | 21599 |  | 
|  | 21600 | # Test if we are trying to use run time linking or normal | 
|  | 21601 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 21602 | # need to do runtime linking. | 
|  | 21603 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
|  | 21604 | for ld_flag in $LDFLAGS; do | 
|  | 21605 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 21606 | aix_use_runtimelinking=yes | 
|  | 21607 | break | 
|  | 21608 | fi | 
|  | 21609 | done | 
|  | 21610 | esac | 
|  | 21611 |  | 
|  | 21612 | exp_sym_flag='-bexport' | 
|  | 21613 | no_entry_flag='-bnoentry' | 
|  | 21614 | fi | 
|  | 21615 |  | 
|  | 21616 | # When large executables or shared objects are built, AIX ld can | 
|  | 21617 | # have problems creating the table of contents.  If linking a library | 
|  | 21618 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 21619 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 21620 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 21621 |  | 
|  | 21622 | archive_cmds_GCJ='' | 
|  | 21623 | hardcode_direct_GCJ=yes | 
|  | 21624 | hardcode_libdir_separator_GCJ=':' | 
|  | 21625 | link_all_deplibs_GCJ=yes | 
|  | 21626 |  | 
|  | 21627 | if test "$GCC" = yes; then | 
|  | 21628 | case $host_os in aix4.012|aix4.012.*) | 
|  | 21629 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 21630 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 21631 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 21632 | if test -f "$collect2name" && \ | 
|  | 21633 | strings "$collect2name" | grep resolve_lib_name >/dev/null | 
|  | 21634 | then | 
|  | 21635 | # We have reworked collect2 | 
|  | 21636 | hardcode_direct_GCJ=yes | 
|  | 21637 | else | 
|  | 21638 | # We have old collect2 | 
|  | 21639 | hardcode_direct_GCJ=unsupported | 
|  | 21640 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 21641 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 21642 | # to unsupported forces relinking | 
|  | 21643 | hardcode_minus_L_GCJ=yes | 
|  | 21644 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 21645 | hardcode_libdir_separator_GCJ= | 
|  | 21646 | fi | 
|  | 21647 | esac | 
|  | 21648 | shared_flag='-shared' | 
|  | 21649 | else | 
|  | 21650 | # not using gcc | 
|  | 21651 | if test "$host_cpu" = ia64; then | 
|  | 21652 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 21653 | # chokes on -Wl,-G. The following line is correct: | 
|  | 21654 | shared_flag='-G' | 
|  | 21655 | else | 
|  | 21656 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 21657 | shared_flag='${wl}-G' | 
|  | 21658 | else | 
|  | 21659 | shared_flag='${wl}-bM:SRE' | 
|  | 21660 | fi | 
|  | 21661 | fi | 
|  | 21662 | fi | 
|  | 21663 |  | 
|  | 21664 | # It seems that -bexpall does not export symbols beginning with | 
|  | 21665 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 21666 | always_export_symbols_GCJ=yes | 
|  | 21667 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 21668 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 21669 | # -berok will link without error, but may produce a broken library. | 
|  | 21670 | allow_undefined_flag_GCJ='-berok' | 
|  | 21671 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 21672 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21673 | /* confdefs.h.  */ | 
|  | 21674 | _ACEOF | 
|  | 21675 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21676 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21677 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21678 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21679 | int | 
|  | 21680 | main () | 
|  | 21681 | { | 
|  | 21682 |  | 
|  | 21683 | ; | 
|  | 21684 | return 0; | 
|  | 21685 | } | 
|  | 21686 | _ACEOF | 
|  | 21687 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21689 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21690 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21691 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21692 | rm -f conftest.er1 | 
|  | 21693 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21695 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21696 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21697 | || test ! -s conftest.err' | 
|  | 21698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21699 | (eval $ac_try) 2>&5 | 
|  | 21700 | ac_status=$? | 
|  | 21701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21702 | (exit $ac_status); }; } && | 
|  | 21703 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21705 | (eval $ac_try) 2>&5 | 
|  | 21706 | ac_status=$? | 
|  | 21707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21708 | (exit $ac_status); }; }; then | 
|  | 21709 |  | 
|  | 21710 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 21711 | }'` | 
|  | 21712 | # Check for a 64-bit object if we didn't find anything. | 
|  | 21713 | 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; } | 
|  | 21714 | }'`; fi | 
|  | 21715 | else | 
|  | 21716 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21717 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21718 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21719 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21720 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 21721 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21722 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 21723 |  | 
|  | 21724 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 21725 | 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" | 
|  | 21726 | else | 
|  | 21727 | if test "$host_cpu" = ia64; then | 
|  | 21728 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 21729 | allow_undefined_flag_GCJ="-z nodefs" | 
|  | 21730 | 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" | 
|  | 21731 | else | 
|  | 21732 | # Determine the default libpath from the value encoded in an empty executable. | 
|  | 21733 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21734 | /* confdefs.h.  */ | 
|  | 21735 | _ACEOF | 
|  | 21736 | cat confdefs.h >>conftest.$ac_ext | 
|  | 21737 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 21738 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21739 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21740 | int | 
|  | 21741 | main () | 
|  | 21742 | { | 
|  | 21743 |  | 
|  | 21744 | ; | 
|  | 21745 | return 0; | 
|  | 21746 | } | 
|  | 21747 | _ACEOF | 
|  | 21748 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 21749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21750 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21751 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21752 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 21753 | rm -f conftest.er1 | 
|  | 21754 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21756 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21757 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 21758 | || test ! -s conftest.err' | 
|  | 21759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21760 | (eval $ac_try) 2>&5 | 
|  | 21761 | ac_status=$? | 
|  | 21762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21763 | (exit $ac_status); }; } && | 
|  | 21764 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 21766 | (eval $ac_try) 2>&5 | 
|  | 21767 | ac_status=$? | 
|  | 21768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 21769 | (exit $ac_status); }; }; then | 
|  | 21770 |  | 
|  | 21771 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
|  | 21772 | }'` | 
|  | 21773 | # Check for a 64-bit object if we didn't find anything. | 
|  | 21774 | 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; } | 
|  | 21775 | }'`; fi | 
|  | 21776 | else | 
|  | 21777 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21778 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 21779 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21780 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21781 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 21782 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21783 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 21784 |  | 
|  | 21785 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 21786 | # Warning - without using the other run time loading flags, | 
|  | 21787 | # -berok will link without error, but may produce a broken library. | 
|  | 21788 | no_undefined_flag_GCJ=' ${wl}-bernotok' | 
|  | 21789 | allow_undefined_flag_GCJ=' ${wl}-berok' | 
|  | 21790 | # -bexpall does not export symbols beginning with underscore (_) | 
|  | 21791 | always_export_symbols_GCJ=yes | 
|  | 21792 | # Exported symbols can be pulled into shared objects from archives | 
|  | 21793 | whole_archive_flag_spec_GCJ=' ' | 
|  | 21794 | archive_cmds_need_lc_GCJ=yes | 
|  | 21795 | # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21796 | 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] | 21797 | fi | 
|  | 21798 | fi | 
|  | 21799 | ;; | 
|  | 21800 |  | 
|  | 21801 | amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21802 | 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] | 21803 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 21804 | hardcode_minus_L_GCJ=yes | 
|  | 21805 | # see comment about different semantics on the GNU ld section | 
|  | 21806 | ld_shlibs_GCJ=no | 
|  | 21807 | ;; | 
|  | 21808 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21809 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21810 | export_dynamic_flag_spec_GCJ=-rdynamic | 
|  | 21811 | ;; | 
|  | 21812 |  | 
|  | 21813 | cygwin* | mingw* | pw32*) | 
|  | 21814 | # When not using gcc, we currently assume that we are using | 
|  | 21815 | # Microsoft Visual C++. | 
|  | 21816 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 21817 | # no search path for DLLs. | 
|  | 21818 | hardcode_libdir_flag_spec_GCJ=' ' | 
|  | 21819 | allow_undefined_flag_GCJ=unsupported | 
|  | 21820 | # Tell ltmain to make .lib files, not .a files. | 
|  | 21821 | libext=lib | 
|  | 21822 | # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21823 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21824 | # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21825 | 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] | 21826 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 21827 | old_archive_From_new_cmds_GCJ='true' | 
|  | 21828 | # FIXME: Should let the user specify the lib program. | 
|  | 21829 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 21830 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 21831 | enable_shared_with_static_runtimes_GCJ=yes | 
|  | 21832 | ;; | 
|  | 21833 |  | 
|  | 21834 | darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21835 | case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21836 | rhapsody* | darwin1.[012]) | 
|  | 21837 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | 
|  | 21838 | ;; | 
|  | 21839 | *) # Darwin 1.3 on | 
|  | 21840 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
|  | 21841 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 21842 | else | 
|  | 21843 | case ${MACOSX_DEPLOYMENT_TARGET} in | 
|  | 21844 | 10.[012]) | 
|  | 21845 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
|  | 21846 | ;; | 
|  | 21847 | 10.*) | 
|  | 21848 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | 
|  | 21849 | ;; | 
|  | 21850 | esac | 
|  | 21851 | fi | 
|  | 21852 | ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21853 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21854 | archive_cmds_need_lc_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21855 | hardcode_direct_GCJ=no | 
|  | 21856 | hardcode_automatic_GCJ=yes | 
|  | 21857 | hardcode_shlibpath_var_GCJ=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21858 | whole_archive_flag_spec_GCJ='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21859 | link_all_deplibs_GCJ=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21860 | if test "$GCC" = yes ; then | 
|  | 21861 | output_verbose_link_cmd='echo' | 
|  | 21862 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
|  | 21863 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 21864 | # 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] | 21865 | 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}' | 
|  | 21866 | 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] | 21867 | else | 
|  | 21868 | case "$cc_basename" in | 
|  | 21869 | xlc*) | 
|  | 21870 | output_verbose_link_cmd='echo' | 
|  | 21871 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
|  | 21872 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
|  | 21873 | # 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] | 21874 | 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}' | 
|  | 21875 | 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] | 21876 | ;; | 
|  | 21877 | *) | 
|  | 21878 | ld_shlibs_GCJ=no | 
|  | 21879 | ;; | 
|  | 21880 | esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21881 | fi | 
|  | 21882 | ;; | 
|  | 21883 |  | 
|  | 21884 | dgux*) | 
|  | 21885 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 21886 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 21887 | hardcode_shlibpath_var_GCJ=no | 
|  | 21888 | ;; | 
|  | 21889 |  | 
|  | 21890 | freebsd1*) | 
|  | 21891 | ld_shlibs_GCJ=no | 
|  | 21892 | ;; | 
|  | 21893 |  | 
|  | 21894 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 21895 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 21896 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 21897 | # extra space). | 
|  | 21898 | freebsd2.2*) | 
|  | 21899 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 21900 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 21901 | hardcode_direct_GCJ=yes | 
|  | 21902 | hardcode_shlibpath_var_GCJ=no | 
|  | 21903 | ;; | 
|  | 21904 |  | 
|  | 21905 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 21906 | freebsd2*) | 
|  | 21907 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 21908 | hardcode_direct_GCJ=yes | 
|  | 21909 | hardcode_minus_L_GCJ=yes | 
|  | 21910 | hardcode_shlibpath_var_GCJ=no | 
|  | 21911 | ;; | 
|  | 21912 |  | 
|  | 21913 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21914 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21915 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 21916 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 21917 | hardcode_direct_GCJ=yes | 
|  | 21918 | hardcode_shlibpath_var_GCJ=no | 
|  | 21919 | ;; | 
|  | 21920 |  | 
|  | 21921 | hpux9*) | 
|  | 21922 | if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21923 | 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] | 21924 | else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21925 | 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] | 21926 | fi | 
|  | 21927 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 21928 | hardcode_libdir_separator_GCJ=: | 
|  | 21929 | hardcode_direct_GCJ=yes | 
|  | 21930 |  | 
|  | 21931 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 21932 | # but as the default location of the library. | 
|  | 21933 | hardcode_minus_L_GCJ=yes | 
|  | 21934 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 21935 | ;; | 
|  | 21936 |  | 
|  | 21937 | hpux10* | hpux11*) | 
|  | 21938 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
|  | 21939 | case "$host_cpu" in | 
|  | 21940 | hppa*64*|ia64*) | 
|  | 21941 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 21942 | ;; | 
|  | 21943 | *) | 
|  | 21944 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 21945 | ;; | 
|  | 21946 | esac | 
|  | 21947 | else | 
|  | 21948 | case "$host_cpu" in | 
|  | 21949 | hppa*64*|ia64*) | 
|  | 21950 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 21951 | ;; | 
|  | 21952 | *) | 
|  | 21953 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 21954 | ;; | 
|  | 21955 | esac | 
|  | 21956 | fi | 
|  | 21957 | if test "$with_gnu_ld" = no; then | 
|  | 21958 | case "$host_cpu" in | 
|  | 21959 | hppa*64*) | 
|  | 21960 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 21961 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
|  | 21962 | hardcode_libdir_separator_GCJ=: | 
|  | 21963 | hardcode_direct_GCJ=no | 
|  | 21964 | hardcode_shlibpath_var_GCJ=no | 
|  | 21965 | ;; | 
|  | 21966 | ia64*) | 
|  | 21967 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 21968 | hardcode_direct_GCJ=no | 
|  | 21969 | hardcode_shlibpath_var_GCJ=no | 
|  | 21970 |  | 
|  | 21971 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 21972 | # but as the default location of the library. | 
|  | 21973 | hardcode_minus_L_GCJ=yes | 
|  | 21974 | ;; | 
|  | 21975 | *) | 
|  | 21976 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
|  | 21977 | hardcode_libdir_separator_GCJ=: | 
|  | 21978 | hardcode_direct_GCJ=yes | 
|  | 21979 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 21980 |  | 
|  | 21981 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 21982 | # but as the default location of the library. | 
|  | 21983 | hardcode_minus_L_GCJ=yes | 
|  | 21984 | ;; | 
|  | 21985 | esac | 
|  | 21986 | fi | 
|  | 21987 | ;; | 
|  | 21988 |  | 
|  | 21989 | irix5* | irix6* | nonstopux*) | 
|  | 21990 | if test "$GCC" = yes; then | 
|  | 21991 | 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' | 
|  | 21992 | else | 
|  | 21993 | 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' | 
|  | 21994 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
|  | 21995 | fi | 
|  | 21996 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 21997 | hardcode_libdir_separator_GCJ=: | 
|  | 21998 | link_all_deplibs_GCJ=yes | 
|  | 21999 | ;; | 
|  | 22000 |  | 
|  | 22001 | netbsd*) | 
|  | 22002 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 22003 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 22004 | else | 
|  | 22005 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 22006 | fi | 
|  | 22007 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 22008 | hardcode_direct_GCJ=yes | 
|  | 22009 | hardcode_shlibpath_var_GCJ=no | 
|  | 22010 | ;; | 
|  | 22011 |  | 
|  | 22012 | newsos6) | 
|  | 22013 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22014 | hardcode_direct_GCJ=yes | 
|  | 22015 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 22016 | hardcode_libdir_separator_GCJ=: | 
|  | 22017 | hardcode_shlibpath_var_GCJ=no | 
|  | 22018 | ;; | 
|  | 22019 |  | 
|  | 22020 | openbsd*) | 
|  | 22021 | hardcode_direct_GCJ=yes | 
|  | 22022 | hardcode_shlibpath_var_GCJ=no | 
|  | 22023 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 22024 | 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] | 22025 | 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] | 22026 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
|  | 22027 | export_dynamic_flag_spec_GCJ='${wl}-E' | 
|  | 22028 | else | 
|  | 22029 | case $host_os in | 
|  | 22030 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 22031 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22032 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 22033 | ;; | 
|  | 22034 | *) | 
|  | 22035 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 22036 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
|  | 22037 | ;; | 
|  | 22038 | esac | 
|  | 22039 | fi | 
|  | 22040 | ;; | 
|  | 22041 |  | 
|  | 22042 | os2*) | 
|  | 22043 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 22044 | hardcode_minus_L_GCJ=yes | 
|  | 22045 | allow_undefined_flag_GCJ=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22046 | 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] | 22047 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 22048 | ;; | 
|  | 22049 |  | 
|  | 22050 | osf3*) | 
|  | 22051 | if test "$GCC" = yes; then | 
|  | 22052 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 22053 | 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' | 
|  | 22054 | else | 
|  | 22055 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
|  | 22056 | 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' | 
|  | 22057 | fi | 
|  | 22058 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 22059 | hardcode_libdir_separator_GCJ=: | 
|  | 22060 | ;; | 
|  | 22061 |  | 
|  | 22062 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 22063 | if test "$GCC" = yes; then | 
|  | 22064 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 22065 | 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' | 
|  | 22066 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
|  | 22067 | else | 
|  | 22068 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
|  | 22069 | 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] | 22070 | 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~ | 
|  | 22071 | $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' | 
|  | 22072 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22073 | # Both c and cxx compiler support -rpath directly | 
|  | 22074 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
|  | 22075 | fi | 
|  | 22076 | hardcode_libdir_separator_GCJ=: | 
|  | 22077 | ;; | 
|  | 22078 |  | 
|  | 22079 | sco3.2v5*) | 
|  | 22080 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22081 | hardcode_shlibpath_var_GCJ=no | 
|  | 22082 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
|  | 22083 | runpath_var=LD_RUN_PATH | 
|  | 22084 | hardcode_runpath_var=yes | 
|  | 22085 | ;; | 
|  | 22086 |  | 
|  | 22087 | solaris*) | 
|  | 22088 | no_undefined_flag_GCJ=' -z text' | 
|  | 22089 | if test "$GCC" = yes; then | 
|  | 22090 | 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] | 22091 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 22092 | $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] | 22093 | else | 
|  | 22094 | 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] | 22095 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 22096 | $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] | 22097 | fi | 
|  | 22098 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
|  | 22099 | hardcode_shlibpath_var_GCJ=no | 
|  | 22100 | case $host_os in | 
|  | 22101 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 22102 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 22103 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
|  | 22104 | esac | 
|  | 22105 | link_all_deplibs_GCJ=yes | 
|  | 22106 | ;; | 
|  | 22107 |  | 
|  | 22108 | sunos4*) | 
|  | 22109 | if test "x$host_vendor" = xsequent; then | 
|  | 22110 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 22111 | # files that make .init and .fini sections work. | 
|  | 22112 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 22113 | else | 
|  | 22114 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22115 | fi | 
|  | 22116 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 22117 | hardcode_direct_GCJ=yes | 
|  | 22118 | hardcode_minus_L_GCJ=yes | 
|  | 22119 | hardcode_shlibpath_var_GCJ=no | 
|  | 22120 | ;; | 
|  | 22121 |  | 
|  | 22122 | sysv4) | 
|  | 22123 | case $host_vendor in | 
|  | 22124 | sni) | 
|  | 22125 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22126 | hardcode_direct_GCJ=yes # is this really true??? | 
|  | 22127 | ;; | 
|  | 22128 | siemens) | 
|  | 22129 | ## LD is ld it makes a PLAMLIB | 
|  | 22130 | ## CC just makes a GrossModule. | 
|  | 22131 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22132 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
|  | 22133 | hardcode_direct_GCJ=no | 
|  | 22134 | ;; | 
|  | 22135 | motorola) | 
|  | 22136 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22137 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
|  | 22138 | ;; | 
|  | 22139 | esac | 
|  | 22140 | runpath_var='LD_RUN_PATH' | 
|  | 22141 | hardcode_shlibpath_var_GCJ=no | 
|  | 22142 | ;; | 
|  | 22143 |  | 
|  | 22144 | sysv4.3*) | 
|  | 22145 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22146 | hardcode_shlibpath_var_GCJ=no | 
|  | 22147 | export_dynamic_flag_spec_GCJ='-Bexport' | 
|  | 22148 | ;; | 
|  | 22149 |  | 
|  | 22150 | sysv4*MP*) | 
|  | 22151 | if test -d /usr/nec; then | 
|  | 22152 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22153 | hardcode_shlibpath_var_GCJ=no | 
|  | 22154 | runpath_var=LD_RUN_PATH | 
|  | 22155 | hardcode_runpath_var=yes | 
|  | 22156 | ld_shlibs_GCJ=yes | 
|  | 22157 | fi | 
|  | 22158 | ;; | 
|  | 22159 |  | 
|  | 22160 | sysv4.2uw2*) | 
|  | 22161 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22162 | hardcode_direct_GCJ=yes | 
|  | 22163 | hardcode_minus_L_GCJ=no | 
|  | 22164 | hardcode_shlibpath_var_GCJ=no | 
|  | 22165 | hardcode_runpath_var=yes | 
|  | 22166 | runpath_var=LD_RUN_PATH | 
|  | 22167 | ;; | 
|  | 22168 |  | 
|  | 22169 | sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
|  | 22170 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | 
|  | 22171 | if test "$GCC" = yes; then | 
|  | 22172 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 22173 | else | 
|  | 22174 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 22175 | fi | 
|  | 22176 | runpath_var='LD_RUN_PATH' | 
|  | 22177 | hardcode_shlibpath_var_GCJ=no | 
|  | 22178 | ;; | 
|  | 22179 |  | 
|  | 22180 | sysv5*) | 
|  | 22181 | no_undefined_flag_GCJ=' -z text' | 
|  | 22182 | # $CC -shared without GNU ld will not create a library from C++ | 
|  | 22183 | # object files and a static libstdc++, better avoid it by now | 
|  | 22184 | 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] | 22185 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
|  | 22186 | $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] | 22187 | hardcode_libdir_flag_spec_GCJ= | 
|  | 22188 | hardcode_shlibpath_var_GCJ=no | 
|  | 22189 | runpath_var='LD_RUN_PATH' | 
|  | 22190 | ;; | 
|  | 22191 |  | 
|  | 22192 | uts4*) | 
|  | 22193 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 22194 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
|  | 22195 | hardcode_shlibpath_var_GCJ=no | 
|  | 22196 | ;; | 
|  | 22197 |  | 
|  | 22198 | *) | 
|  | 22199 | ld_shlibs_GCJ=no | 
|  | 22200 | ;; | 
|  | 22201 | esac | 
|  | 22202 | fi | 
|  | 22203 |  | 
|  | 22204 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
|  | 22205 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 
|  | 22206 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
|  | 22207 |  | 
|  | 22208 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 22209 | if test "$GCC" = yes; then | 
|  | 22210 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 22211 | fi | 
|  | 22212 |  | 
|  | 22213 | # | 
|  | 22214 | # Do we need to explicitly link libc? | 
|  | 22215 | # | 
|  | 22216 | case "x$archive_cmds_need_lc_GCJ" in | 
|  | 22217 | x|xyes) | 
|  | 22218 | # Assume -lc should be added | 
|  | 22219 | archive_cmds_need_lc_GCJ=yes | 
|  | 22220 |  | 
|  | 22221 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 22222 | case $archive_cmds_GCJ in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22223 | *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22224 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 22225 | ;; | 
|  | 22226 | '$CC '*) | 
|  | 22227 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 22228 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 22229 | # to ld, don't add -lc before -lgcc. | 
|  | 22230 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
|  | 22231 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
|  | 22232 | $rm conftest* | 
|  | 22233 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 22234 |  | 
|  | 22235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 22236 | (eval $ac_compile) 2>&5 | 
|  | 22237 | ac_status=$? | 
|  | 22238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22239 | (exit $ac_status); } 2>conftest.err; then | 
|  | 22240 | soname=conftest | 
|  | 22241 | lib=conftest | 
|  | 22242 | libobjs=conftest.$ac_objext | 
|  | 22243 | deplibs= | 
|  | 22244 | wl=$lt_prog_compiler_wl_GCJ | 
|  | 22245 | compiler_flags=-v | 
|  | 22246 | linker_flags=-v | 
|  | 22247 | verstring= | 
|  | 22248 | output_objdir=. | 
|  | 22249 | libname=conftest | 
|  | 22250 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
|  | 22251 | allow_undefined_flag_GCJ= | 
|  | 22252 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
|  | 22253 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 22254 | ac_status=$? | 
|  | 22255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22256 | (exit $ac_status); } | 
|  | 22257 | then | 
|  | 22258 | archive_cmds_need_lc_GCJ=no | 
|  | 22259 | else | 
|  | 22260 | archive_cmds_need_lc_GCJ=yes | 
|  | 22261 | fi | 
|  | 22262 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
|  | 22263 | else | 
|  | 22264 | cat conftest.err 1>&5 | 
|  | 22265 | fi | 
|  | 22266 | $rm conftest* | 
|  | 22267 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
|  | 22268 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 
|  | 22269 | ;; | 
|  | 22270 | esac | 
|  | 22271 | fi | 
|  | 22272 | ;; | 
|  | 22273 | esac | 
|  | 22274 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22275 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
|  | 22276 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
|  | 22277 | library_names_spec= | 
|  | 22278 | libname_spec='lib$name' | 
|  | 22279 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22280 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22281 | postinstall_cmds= | 
|  | 22282 | postuninstall_cmds= | 
|  | 22283 | finish_cmds= | 
|  | 22284 | finish_eval= | 
|  | 22285 | shlibpath_var= | 
|  | 22286 | shlibpath_overrides_runpath=unknown | 
|  | 22287 | version_type=none | 
|  | 22288 | dynamic_linker="$host_os ld.so" | 
|  | 22289 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 22290 | if test "$GCC" = yes; then | 
|  | 22291 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 22292 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
|  | 22293 | # if the path contains ";" then we assume it to be the separator | 
|  | 22294 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 22295 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 22296 | # okay in the real world where ";" in dirpaths is itself problematic. | 
|  | 22297 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 22298 | else | 
|  | 22299 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 22300 | fi | 
|  | 22301 | else | 
|  | 22302 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 22303 | fi | 
|  | 22304 | need_lib_prefix=unknown | 
|  | 22305 | hardcode_into_libs=no | 
|  | 22306 |  | 
|  | 22307 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 22308 | # flags to be left without arguments | 
|  | 22309 | need_version=unknown | 
|  | 22310 |  | 
|  | 22311 | case $host_os in | 
|  | 22312 | aix3*) | 
|  | 22313 | version_type=linux | 
|  | 22314 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 22315 | shlibpath_var=LIBPATH | 
|  | 22316 |  | 
|  | 22317 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 22318 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22319 | ;; | 
|  | 22320 |  | 
|  | 22321 | aix4* | aix5*) | 
|  | 22322 | version_type=linux | 
|  | 22323 | need_lib_prefix=no | 
|  | 22324 | need_version=no | 
|  | 22325 | hardcode_into_libs=yes | 
|  | 22326 | if test "$host_cpu" = ia64; then | 
|  | 22327 | # AIX 5 supports IA64 | 
|  | 22328 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 22329 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22330 | else | 
|  | 22331 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 22332 | # for dependence libraries.  The import file would start with | 
|  | 22333 | # the line `#! .'.  This would cause the generated library to | 
|  | 22334 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 22335 | # development snapshots of GCC prior to 3.0. | 
|  | 22336 | case $host_os in | 
|  | 22337 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 22338 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 22339 | echo ' yes ' | 
|  | 22340 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
|  | 22341 | : | 
|  | 22342 | else | 
|  | 22343 | can_build_shared=no | 
|  | 22344 | fi | 
|  | 22345 | ;; | 
|  | 22346 | esac | 
|  | 22347 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 22348 | # soname into executable. Probably we can add versioning support to | 
|  | 22349 | # collect2, so additional links can be useful in future. | 
|  | 22350 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 22351 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 22352 | # instead of lib<name>.a to let people know that these are not | 
|  | 22353 | # typical AIX shared libraries. | 
|  | 22354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22355 | else | 
|  | 22356 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 22357 | # and later when we are not doing run time linking. | 
|  | 22358 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 22359 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22360 | fi | 
|  | 22361 | shlibpath_var=LIBPATH | 
|  | 22362 | fi | 
|  | 22363 | ;; | 
|  | 22364 |  | 
|  | 22365 | amigaos*) | 
|  | 22366 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 22367 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22368 | 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] | 22369 | ;; | 
|  | 22370 |  | 
|  | 22371 | beos*) | 
|  | 22372 | library_names_spec='${libname}${shared_ext}' | 
|  | 22373 | dynamic_linker="$host_os ld.so" | 
|  | 22374 | shlibpath_var=LIBRARY_PATH | 
|  | 22375 | ;; | 
|  | 22376 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22377 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22378 | version_type=linux | 
|  | 22379 | need_version=no | 
|  | 22380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22381 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22382 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 22383 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22384 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 22385 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 22386 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 22387 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 22388 | # libtool to hard-code these into programs | 
|  | 22389 | ;; | 
|  | 22390 |  | 
|  | 22391 | cygwin* | mingw* | pw32*) | 
|  | 22392 | version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22393 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22394 | need_version=no | 
|  | 22395 | need_lib_prefix=no | 
|  | 22396 |  | 
|  | 22397 | case $GCC,$host_os in | 
|  | 22398 | yes,cygwin* | yes,mingw* | yes,pw32*) | 
|  | 22399 | library_names_spec='$libname.dll.a' | 
|  | 22400 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22401 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 22402 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
|  | 22403 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 22404 | test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22405 | $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22406 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 22407 | dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22408 | $rm \$dlpath' | 
|  | 22409 | shlibpath_overrides_runpath=yes | 
|  | 22410 |  | 
|  | 22411 | case $host_os in | 
|  | 22412 | cygwin*) | 
|  | 22413 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 22414 | 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] | 22415 | 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] | 22416 | ;; | 
|  | 22417 | mingw*) | 
|  | 22418 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 22419 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 22420 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
|  | 22421 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
|  | 22422 | # It is most probably a Windows format PATH printed by | 
|  | 22423 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
|  | 22424 | # path with ; separators, and with drive letters. We can handle the | 
|  | 22425 | # drive letters (cygwin fileutils understands them), so leave them, | 
|  | 22426 | # especially as we might pass files found there to a mingw objdump, | 
|  | 22427 | # which wouldn't understand a cygwinified path. Ahh. | 
|  | 22428 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 22429 | else | 
|  | 22430 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 22431 | fi | 
|  | 22432 | ;; | 
|  | 22433 | pw32*) | 
|  | 22434 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 22435 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
|  | 22436 | ;; | 
|  | 22437 | esac | 
|  | 22438 | ;; | 
|  | 22439 |  | 
|  | 22440 | *) | 
|  | 22441 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 22442 | ;; | 
|  | 22443 | esac | 
|  | 22444 | dynamic_linker='Win32 ld.exe' | 
|  | 22445 | # FIXME: first we should search . and the directory the executable is in | 
|  | 22446 | shlibpath_var=PATH | 
|  | 22447 | ;; | 
|  | 22448 |  | 
|  | 22449 | darwin* | rhapsody*) | 
|  | 22450 | dynamic_linker="$host_os dyld" | 
|  | 22451 | version_type=darwin | 
|  | 22452 | need_lib_prefix=no | 
|  | 22453 | need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22454 | 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] | 22455 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 22456 | shlibpath_overrides_runpath=yes | 
|  | 22457 | shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22458 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22459 | # 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] | 22460 | if test "$GCC" = yes; then | 
|  | 22461 | 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"` | 
|  | 22462 | else | 
|  | 22463 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22464 | fi | 
|  | 22465 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 22466 | ;; | 
|  | 22467 |  | 
|  | 22468 | dgux*) | 
|  | 22469 | version_type=linux | 
|  | 22470 | need_lib_prefix=no | 
|  | 22471 | need_version=no | 
|  | 22472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 22473 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22474 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22475 | ;; | 
|  | 22476 |  | 
|  | 22477 | freebsd1*) | 
|  | 22478 | dynamic_linker=no | 
|  | 22479 | ;; | 
|  | 22480 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22481 | kfreebsd*-gnu) | 
|  | 22482 | version_type=linux | 
|  | 22483 | need_lib_prefix=no | 
|  | 22484 | need_version=no | 
|  | 22485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 22486 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22487 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22488 | shlibpath_overrides_runpath=no | 
|  | 22489 | hardcode_into_libs=yes | 
|  | 22490 | dynamic_linker='GNU ld.so' | 
|  | 22491 | ;; | 
|  | 22492 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22493 | freebsd*) | 
|  | 22494 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
|  | 22495 | version_type=freebsd-$objformat | 
|  | 22496 | case $version_type in | 
|  | 22497 | freebsd-elf*) | 
|  | 22498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 22499 | need_version=no | 
|  | 22500 | need_lib_prefix=no | 
|  | 22501 | ;; | 
|  | 22502 | freebsd-*) | 
|  | 22503 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 22504 | need_version=yes | 
|  | 22505 | ;; | 
|  | 22506 | esac | 
|  | 22507 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22508 | case $host_os in | 
|  | 22509 | freebsd2*) | 
|  | 22510 | shlibpath_overrides_runpath=yes | 
|  | 22511 | ;; | 
|  | 22512 | freebsd3.01* | freebsdelf3.01*) | 
|  | 22513 | shlibpath_overrides_runpath=yes | 
|  | 22514 | hardcode_into_libs=yes | 
|  | 22515 | ;; | 
|  | 22516 | *) # from 3.2 on | 
|  | 22517 | shlibpath_overrides_runpath=no | 
|  | 22518 | hardcode_into_libs=yes | 
|  | 22519 | ;; | 
|  | 22520 | esac | 
|  | 22521 | ;; | 
|  | 22522 |  | 
|  | 22523 | gnu*) | 
|  | 22524 | version_type=linux | 
|  | 22525 | need_lib_prefix=no | 
|  | 22526 | need_version=no | 
|  | 22527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 22528 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22529 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22530 | hardcode_into_libs=yes | 
|  | 22531 | ;; | 
|  | 22532 |  | 
|  | 22533 | hpux9* | hpux10* | hpux11*) | 
|  | 22534 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 22535 | # link against other versions. | 
|  | 22536 | version_type=sunos | 
|  | 22537 | need_lib_prefix=no | 
|  | 22538 | need_version=no | 
|  | 22539 | case "$host_cpu" in | 
|  | 22540 | ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22541 | shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22542 | hardcode_into_libs=yes | 
|  | 22543 | dynamic_linker="$host_os dld.so" | 
|  | 22544 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22545 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 22546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22547 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22548 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 22549 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 22550 | else | 
|  | 22551 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 22552 | fi | 
|  | 22553 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 22554 | ;; | 
|  | 22555 | hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22556 | shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22557 | hardcode_into_libs=yes | 
|  | 22558 | dynamic_linker="$host_os dld.sl" | 
|  | 22559 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 22560 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 22561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22562 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22563 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 22564 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 22565 | ;; | 
|  | 22566 | *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22567 | shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22568 | dynamic_linker="$host_os dld.sl" | 
|  | 22569 | shlibpath_var=SHLIB_PATH | 
|  | 22570 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 22571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22572 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22573 | ;; | 
|  | 22574 | esac | 
|  | 22575 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
|  | 22576 | postinstall_cmds='chmod 555 $lib' | 
|  | 22577 | ;; | 
|  | 22578 |  | 
|  | 22579 | irix5* | irix6* | nonstopux*) | 
|  | 22580 | case $host_os in | 
|  | 22581 | nonstopux*) version_type=nonstopux ;; | 
|  | 22582 | *) | 
|  | 22583 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 22584 | version_type=linux | 
|  | 22585 | else | 
|  | 22586 | version_type=irix | 
|  | 22587 | fi ;; | 
|  | 22588 | esac | 
|  | 22589 | need_lib_prefix=no | 
|  | 22590 | need_version=no | 
|  | 22591 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 22593 | case $host_os in | 
|  | 22594 | irix5* | nonstopux*) | 
|  | 22595 | libsuff= shlibsuff= | 
|  | 22596 | ;; | 
|  | 22597 | *) | 
|  | 22598 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 22599 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 22600 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 22601 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 22602 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 22603 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 22604 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 22605 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 22606 | esac | 
|  | 22607 | ;; | 
|  | 22608 | esac | 
|  | 22609 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 22610 | shlibpath_overrides_runpath=no | 
|  | 22611 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 22612 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 22613 | hardcode_into_libs=yes | 
|  | 22614 | ;; | 
|  | 22615 |  | 
|  | 22616 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 22617 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 22618 | dynamic_linker=no | 
|  | 22619 | ;; | 
|  | 22620 |  | 
|  | 22621 | # This must be Linux ELF. | 
|  | 22622 | linux*) | 
|  | 22623 | version_type=linux | 
|  | 22624 | need_lib_prefix=no | 
|  | 22625 | need_version=no | 
|  | 22626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22627 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22628 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 22629 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22630 | shlibpath_overrides_runpath=no | 
|  | 22631 | # This implies no fast_install, which is unacceptable. | 
|  | 22632 | # Some rework will be needed to allow for fast_install | 
|  | 22633 | # before this can be enabled. | 
|  | 22634 | hardcode_into_libs=yes | 
|  | 22635 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22636 | # Append ld.so.conf contents to the search path | 
|  | 22637 | if test -f /etc/ld.so.conf; then | 
|  | 22638 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
|  | 22639 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
|  | 22640 | fi | 
|  | 22641 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22642 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 22643 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 22644 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 22645 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 22646 | # people can always --disable-shared, the test was removed, and we | 
|  | 22647 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 22648 | dynamic_linker='GNU/Linux ld.so' | 
|  | 22649 | ;; | 
|  | 22650 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22651 | knetbsd*-gnu) | 
|  | 22652 | version_type=linux | 
|  | 22653 | need_lib_prefix=no | 
|  | 22654 | need_version=no | 
|  | 22655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 22656 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22657 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22658 | shlibpath_overrides_runpath=no | 
|  | 22659 | hardcode_into_libs=yes | 
|  | 22660 | dynamic_linker='GNU ld.so' | 
|  | 22661 | ;; | 
|  | 22662 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22663 | netbsd*) | 
|  | 22664 | version_type=sunos | 
|  | 22665 | need_lib_prefix=no | 
|  | 22666 | need_version=no | 
|  | 22667 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
|  | 22668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 22669 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 22670 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 22671 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22672 | 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] | 22673 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22674 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 22675 | fi | 
|  | 22676 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22677 | shlibpath_overrides_runpath=yes | 
|  | 22678 | hardcode_into_libs=yes | 
|  | 22679 | ;; | 
|  | 22680 |  | 
|  | 22681 | newsos6) | 
|  | 22682 | version_type=linux | 
|  | 22683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22684 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22685 | shlibpath_overrides_runpath=yes | 
|  | 22686 | ;; | 
|  | 22687 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22688 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22689 | version_type=linux | 
|  | 22690 | need_lib_prefix=no | 
|  | 22691 | need_version=no | 
|  | 22692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22693 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22694 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22695 | shlibpath_overrides_runpath=yes | 
|  | 22696 | ;; | 
|  | 22697 |  | 
|  | 22698 | openbsd*) | 
|  | 22699 | version_type=sunos | 
|  | 22700 | need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22701 | need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 22703 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 22704 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22705 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 22706 | case $host_os in | 
|  | 22707 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 22708 | shlibpath_overrides_runpath=no | 
|  | 22709 | ;; | 
|  | 22710 | *) | 
|  | 22711 | shlibpath_overrides_runpath=yes | 
|  | 22712 | ;; | 
|  | 22713 | esac | 
|  | 22714 | else | 
|  | 22715 | shlibpath_overrides_runpath=yes | 
|  | 22716 | fi | 
|  | 22717 | ;; | 
|  | 22718 |  | 
|  | 22719 | os2*) | 
|  | 22720 | libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22721 | shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22722 | need_lib_prefix=no | 
|  | 22723 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 22724 | dynamic_linker='OS/2 ld.exe' | 
|  | 22725 | shlibpath_var=LIBPATH | 
|  | 22726 | ;; | 
|  | 22727 |  | 
|  | 22728 | osf3* | osf4* | osf5*) | 
|  | 22729 | version_type=osf | 
|  | 22730 | need_lib_prefix=no | 
|  | 22731 | need_version=no | 
|  | 22732 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22734 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22735 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 22736 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 22737 | ;; | 
|  | 22738 |  | 
|  | 22739 | sco3.2v5*) | 
|  | 22740 | version_type=osf | 
|  | 22741 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22743 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22744 | ;; | 
|  | 22745 |  | 
|  | 22746 | solaris*) | 
|  | 22747 | version_type=linux | 
|  | 22748 | need_lib_prefix=no | 
|  | 22749 | need_version=no | 
|  | 22750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22751 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22752 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22753 | shlibpath_overrides_runpath=yes | 
|  | 22754 | hardcode_into_libs=yes | 
|  | 22755 | # ldd complains unless libraries are executable | 
|  | 22756 | postinstall_cmds='chmod +x $lib' | 
|  | 22757 | ;; | 
|  | 22758 |  | 
|  | 22759 | sunos4*) | 
|  | 22760 | version_type=sunos | 
|  | 22761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 22762 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 22763 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22764 | shlibpath_overrides_runpath=yes | 
|  | 22765 | if test "$with_gnu_ld" = yes; then | 
|  | 22766 | need_lib_prefix=no | 
|  | 22767 | fi | 
|  | 22768 | need_version=yes | 
|  | 22769 | ;; | 
|  | 22770 |  | 
|  | 22771 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 22772 | version_type=linux | 
|  | 22773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 22774 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 22775 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22776 | case $host_vendor in | 
|  | 22777 | sni) | 
|  | 22778 | shlibpath_overrides_runpath=no | 
|  | 22779 | need_lib_prefix=no | 
|  | 22780 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 22781 | runpath_var=LD_RUN_PATH | 
|  | 22782 | ;; | 
|  | 22783 | siemens) | 
|  | 22784 | need_lib_prefix=no | 
|  | 22785 | ;; | 
|  | 22786 | motorola) | 
|  | 22787 | need_lib_prefix=no | 
|  | 22788 | need_version=no | 
|  | 22789 | shlibpath_overrides_runpath=no | 
|  | 22790 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 22791 | ;; | 
|  | 22792 | esac | 
|  | 22793 | ;; | 
|  | 22794 |  | 
|  | 22795 | sysv4*MP*) | 
|  | 22796 | if test -d /usr/nec ;then | 
|  | 22797 | version_type=linux | 
|  | 22798 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 22799 | soname_spec='$libname${shared_ext}.$major' | 
|  | 22800 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22801 | fi | 
|  | 22802 | ;; | 
|  | 22803 |  | 
|  | 22804 | uts4*) | 
|  | 22805 | version_type=linux | 
|  | 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 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 22809 | ;; | 
|  | 22810 |  | 
|  | 22811 | *) | 
|  | 22812 | dynamic_linker=no | 
|  | 22813 | ;; | 
|  | 22814 | esac | 
|  | 22815 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
|  | 22816 | echo "${ECHO_T}$dynamic_linker" >&6 | 
|  | 22817 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 22818 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22819 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
|  | 22820 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
|  | 22821 | hardcode_action_GCJ= | 
|  | 22822 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
|  | 22823 | test -n "$runpath_var_GCJ" || \ | 
|  | 22824 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | 
|  | 22825 |  | 
|  | 22826 | # We can hardcode non-existant directories. | 
|  | 22827 | if test "$hardcode_direct_GCJ" != no && | 
|  | 22828 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 22829 | # have to relink, otherwise we might link with an installed library | 
|  | 22830 | # when we should be linking with a yet-to-be-installed one | 
|  | 22831 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
|  | 22832 | test "$hardcode_minus_L_GCJ" != no; then | 
|  | 22833 | # Linking always hardcodes the temporary library directory. | 
|  | 22834 | hardcode_action_GCJ=relink | 
|  | 22835 | else | 
|  | 22836 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 22837 | hardcode_action_GCJ=immediate | 
|  | 22838 | fi | 
|  | 22839 | else | 
|  | 22840 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 22841 | # directories. | 
|  | 22842 | hardcode_action_GCJ=unsupported | 
|  | 22843 | fi | 
|  | 22844 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
|  | 22845 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 
|  | 22846 |  | 
|  | 22847 | if test "$hardcode_action_GCJ" = relink; then | 
|  | 22848 | # Fast installation is not supported | 
|  | 22849 | enable_fast_install=no | 
|  | 22850 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 22851 | test "$enable_shared" = no; then | 
|  | 22852 | # Fast installation is not necessary | 
|  | 22853 | enable_fast_install=needless | 
|  | 22854 | fi | 
|  | 22855 |  | 
|  | 22856 | striplib= | 
|  | 22857 | old_striplib= | 
|  | 22858 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
|  | 22859 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
|  | 22860 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
|  | 22861 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 22862 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 22863 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 22864 | echo "${ECHO_T}yes" >&6 | 
|  | 22865 | else | 
|  | 22866 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 22867 | case $host_os in | 
|  | 22868 | darwin*) | 
|  | 22869 | if test -n "$STRIP" ; then | 
|  | 22870 | striplib="$STRIP -x" | 
|  | 22871 | echo "$as_me:$LINENO: result: yes" >&5 | 
|  | 22872 | echo "${ECHO_T}yes" >&6 | 
|  | 22873 | else | 
|  | 22874 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 22875 | echo "${ECHO_T}no" >&6 | 
|  | 22876 | fi | 
|  | 22877 | ;; | 
|  | 22878 | *) | 
|  | 22879 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 22880 | echo "${ECHO_T}no" >&6 | 
|  | 22881 | ;; | 
|  | 22882 | esac | 
|  | 22883 | fi | 
|  | 22884 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22885 | if test "x$enable_dlopen" != xyes; then | 
|  | 22886 | enable_dlopen=unknown | 
|  | 22887 | enable_dlopen_self=unknown | 
|  | 22888 | enable_dlopen_self_static=unknown | 
|  | 22889 | else | 
|  | 22890 | lt_cv_dlopen=no | 
|  | 22891 | lt_cv_dlopen_libs= | 
|  | 22892 |  | 
|  | 22893 | case $host_os in | 
|  | 22894 | beos*) | 
|  | 22895 | lt_cv_dlopen="load_add_on" | 
|  | 22896 | lt_cv_dlopen_libs= | 
|  | 22897 | lt_cv_dlopen_self=yes | 
|  | 22898 | ;; | 
|  | 22899 |  | 
|  | 22900 | mingw* | pw32*) | 
|  | 22901 | lt_cv_dlopen="LoadLibrary" | 
|  | 22902 | lt_cv_dlopen_libs= | 
|  | 22903 | ;; | 
|  | 22904 |  | 
|  | 22905 | cygwin*) | 
|  | 22906 | lt_cv_dlopen="dlopen" | 
|  | 22907 | lt_cv_dlopen_libs= | 
|  | 22908 | ;; | 
|  | 22909 |  | 
|  | 22910 | darwin*) | 
|  | 22911 | # if libdl is installed we need to link against it | 
|  | 22912 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 22913 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 22914 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 22915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22916 | else | 
|  | 22917 | ac_check_lib_save_LIBS=$LIBS | 
|  | 22918 | LIBS="-ldl  $LIBS" | 
|  | 22919 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22920 | /* confdefs.h.  */ | 
|  | 22921 | _ACEOF | 
|  | 22922 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22923 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22924 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22925 |  | 
|  | 22926 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 22927 | #ifdef __cplusplus | 
|  | 22928 | extern "C" | 
|  | 22929 | #endif | 
|  | 22930 | /* We use char because int might match the return type of a gcc2 | 
|  | 22931 | builtin and then its argument prototype would still apply.  */ | 
|  | 22932 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22933 | int | 
|  | 22934 | main () | 
|  | 22935 | { | 
|  | 22936 | dlopen (); | 
|  | 22937 | ; | 
|  | 22938 | return 0; | 
|  | 22939 | } | 
|  | 22940 | _ACEOF | 
|  | 22941 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 22942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22943 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22944 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22945 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 22946 | rm -f conftest.er1 | 
|  | 22947 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22949 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22950 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 22951 | || test ! -s conftest.err' | 
|  | 22952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22953 | (eval $ac_try) 2>&5 | 
|  | 22954 | ac_status=$? | 
|  | 22955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22956 | (exit $ac_status); }; } && | 
|  | 22957 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 22959 | (eval $ac_try) 2>&5 | 
|  | 22960 | ac_status=$? | 
|  | 22961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 22962 | (exit $ac_status); }; }; then | 
|  | 22963 | ac_cv_lib_dl_dlopen=yes | 
|  | 22964 | else | 
|  | 22965 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22966 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 22967 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22968 | ac_cv_lib_dl_dlopen=no | 
|  | 22969 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22970 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 22971 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22972 | LIBS=$ac_check_lib_save_LIBS | 
|  | 22973 | fi | 
|  | 22974 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 22975 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 22976 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 22977 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 22978 | else | 
|  | 22979 |  | 
|  | 22980 | lt_cv_dlopen="dyld" | 
|  | 22981 | lt_cv_dlopen_libs= | 
|  | 22982 | lt_cv_dlopen_self=yes | 
|  | 22983 |  | 
|  | 22984 | fi | 
|  | 22985 |  | 
|  | 22986 | ;; | 
|  | 22987 |  | 
|  | 22988 | *) | 
|  | 22989 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
|  | 22990 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
|  | 22991 | if test "${ac_cv_func_shl_load+set}" = set; then | 
|  | 22992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 22993 | else | 
|  | 22994 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22995 | /* confdefs.h.  */ | 
|  | 22996 | _ACEOF | 
|  | 22997 | cat confdefs.h >>conftest.$ac_ext | 
|  | 22998 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 22999 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23000 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
|  | 23001 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 23002 | #define shl_load innocuous_shl_load | 
|  | 23003 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23004 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23005 | which can conflict with char shl_load (); below. | 
|  | 23006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 23007 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23008 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23009 | #ifdef __STDC__ | 
|  | 23010 | # include <limits.h> | 
|  | 23011 | #else | 
|  | 23012 | # include <assert.h> | 
|  | 23013 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23014 |  | 
|  | 23015 | #undef shl_load | 
|  | 23016 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23017 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 23018 | #ifdef __cplusplus | 
|  | 23019 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23020 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23021 | #endif | 
|  | 23022 | /* We use char because int might match the return type of a gcc2 | 
|  | 23023 | builtin and then its argument prototype would still apply.  */ | 
|  | 23024 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23025 | /* The GNU C library defines this for functions which it implements | 
|  | 23026 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 23027 | something starting with __ and the normal name is an alias.  */ | 
|  | 23028 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
|  | 23029 | choke me | 
|  | 23030 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23031 | char (*f) () = shl_load; | 
|  | 23032 | #endif | 
|  | 23033 | #ifdef __cplusplus | 
|  | 23034 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23035 | #endif | 
|  | 23036 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23037 | int | 
|  | 23038 | main () | 
|  | 23039 | { | 
|  | 23040 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23041 | ; | 
|  | 23042 | return 0; | 
|  | 23043 | } | 
|  | 23044 | _ACEOF | 
|  | 23045 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23047 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23048 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23049 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23050 | rm -f conftest.er1 | 
|  | 23051 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23053 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23054 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23055 | || test ! -s conftest.err' | 
|  | 23056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23057 | (eval $ac_try) 2>&5 | 
|  | 23058 | ac_status=$? | 
|  | 23059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23060 | (exit $ac_status); }; } && | 
|  | 23061 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23063 | (eval $ac_try) 2>&5 | 
|  | 23064 | ac_status=$? | 
|  | 23065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23066 | (exit $ac_status); }; }; then | 
|  | 23067 | ac_cv_func_shl_load=yes | 
|  | 23068 | else | 
|  | 23069 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23070 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23071 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23072 | ac_cv_func_shl_load=no | 
|  | 23073 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23074 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23075 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23076 | fi | 
|  | 23077 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
|  | 23078 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
|  | 23079 | if test $ac_cv_func_shl_load = yes; then | 
|  | 23080 | lt_cv_dlopen="shl_load" | 
|  | 23081 | else | 
|  | 23082 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
|  | 23083 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
|  | 23084 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
|  | 23085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23086 | else | 
|  | 23087 | ac_check_lib_save_LIBS=$LIBS | 
|  | 23088 | LIBS="-ldld  $LIBS" | 
|  | 23089 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23090 | /* confdefs.h.  */ | 
|  | 23091 | _ACEOF | 
|  | 23092 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23093 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23094 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23095 |  | 
|  | 23096 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 23097 | #ifdef __cplusplus | 
|  | 23098 | extern "C" | 
|  | 23099 | #endif | 
|  | 23100 | /* We use char because int might match the return type of a gcc2 | 
|  | 23101 | builtin and then its argument prototype would still apply.  */ | 
|  | 23102 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23103 | int | 
|  | 23104 | main () | 
|  | 23105 | { | 
|  | 23106 | shl_load (); | 
|  | 23107 | ; | 
|  | 23108 | return 0; | 
|  | 23109 | } | 
|  | 23110 | _ACEOF | 
|  | 23111 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23113 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23114 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23115 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23116 | rm -f conftest.er1 | 
|  | 23117 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23119 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23120 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23121 | || test ! -s conftest.err' | 
|  | 23122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23123 | (eval $ac_try) 2>&5 | 
|  | 23124 | ac_status=$? | 
|  | 23125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23126 | (exit $ac_status); }; } && | 
|  | 23127 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23129 | (eval $ac_try) 2>&5 | 
|  | 23130 | ac_status=$? | 
|  | 23131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23132 | (exit $ac_status); }; }; then | 
|  | 23133 | ac_cv_lib_dld_shl_load=yes | 
|  | 23134 | else | 
|  | 23135 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23136 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23137 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23138 | ac_cv_lib_dld_shl_load=no | 
|  | 23139 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23140 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23141 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23142 | LIBS=$ac_check_lib_save_LIBS | 
|  | 23143 | fi | 
|  | 23144 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 23145 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
|  | 23146 | if test $ac_cv_lib_dld_shl_load = yes; then | 
|  | 23147 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
|  | 23148 | else | 
|  | 23149 | echo "$as_me:$LINENO: checking for dlopen" >&5 | 
|  | 23150 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
|  | 23151 | if test "${ac_cv_func_dlopen+set}" = set; then | 
|  | 23152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23153 | else | 
|  | 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.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23160 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
|  | 23161 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 23162 | #define dlopen innocuous_dlopen | 
|  | 23163 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23164 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23165 | which can conflict with char dlopen (); below. | 
|  | 23166 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 23167 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23168 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23169 | #ifdef __STDC__ | 
|  | 23170 | # include <limits.h> | 
|  | 23171 | #else | 
|  | 23172 | # include <assert.h> | 
|  | 23173 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23174 |  | 
|  | 23175 | #undef dlopen | 
|  | 23176 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23177 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 23178 | #ifdef __cplusplus | 
|  | 23179 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23180 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23181 | #endif | 
|  | 23182 | /* We use char because int might match the return type of a gcc2 | 
|  | 23183 | builtin and then its argument prototype would still apply.  */ | 
|  | 23184 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23185 | /* The GNU C library defines this for functions which it implements | 
|  | 23186 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 23187 | something starting with __ and the normal name is an alias.  */ | 
|  | 23188 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
|  | 23189 | choke me | 
|  | 23190 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23191 | char (*f) () = dlopen; | 
|  | 23192 | #endif | 
|  | 23193 | #ifdef __cplusplus | 
|  | 23194 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23195 | #endif | 
|  | 23196 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23197 | int | 
|  | 23198 | main () | 
|  | 23199 | { | 
|  | 23200 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23201 | ; | 
|  | 23202 | return 0; | 
|  | 23203 | } | 
|  | 23204 | _ACEOF | 
|  | 23205 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23207 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23208 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23209 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23210 | rm -f conftest.er1 | 
|  | 23211 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23213 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23214 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23215 | || test ! -s conftest.err' | 
|  | 23216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23217 | (eval $ac_try) 2>&5 | 
|  | 23218 | ac_status=$? | 
|  | 23219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23220 | (exit $ac_status); }; } && | 
|  | 23221 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23223 | (eval $ac_try) 2>&5 | 
|  | 23224 | ac_status=$? | 
|  | 23225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23226 | (exit $ac_status); }; }; then | 
|  | 23227 | ac_cv_func_dlopen=yes | 
|  | 23228 | else | 
|  | 23229 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23230 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23231 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23232 | ac_cv_func_dlopen=no | 
|  | 23233 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23234 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23235 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23236 | fi | 
|  | 23237 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
|  | 23238 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
|  | 23239 | if test $ac_cv_func_dlopen = yes; then | 
|  | 23240 | lt_cv_dlopen="dlopen" | 
|  | 23241 | else | 
|  | 23242 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
|  | 23243 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
|  | 23244 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
|  | 23245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23246 | else | 
|  | 23247 | ac_check_lib_save_LIBS=$LIBS | 
|  | 23248 | LIBS="-ldl  $LIBS" | 
|  | 23249 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23250 | /* confdefs.h.  */ | 
|  | 23251 | _ACEOF | 
|  | 23252 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23253 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23254 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23255 |  | 
|  | 23256 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 23257 | #ifdef __cplusplus | 
|  | 23258 | extern "C" | 
|  | 23259 | #endif | 
|  | 23260 | /* We use char because int might match the return type of a gcc2 | 
|  | 23261 | builtin and then its argument prototype would still apply.  */ | 
|  | 23262 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23263 | int | 
|  | 23264 | main () | 
|  | 23265 | { | 
|  | 23266 | dlopen (); | 
|  | 23267 | ; | 
|  | 23268 | return 0; | 
|  | 23269 | } | 
|  | 23270 | _ACEOF | 
|  | 23271 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23273 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23274 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23275 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23276 | rm -f conftest.er1 | 
|  | 23277 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23279 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23280 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23281 | || test ! -s conftest.err' | 
|  | 23282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23283 | (eval $ac_try) 2>&5 | 
|  | 23284 | ac_status=$? | 
|  | 23285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23286 | (exit $ac_status); }; } && | 
|  | 23287 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23289 | (eval $ac_try) 2>&5 | 
|  | 23290 | ac_status=$? | 
|  | 23291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23292 | (exit $ac_status); }; }; then | 
|  | 23293 | ac_cv_lib_dl_dlopen=yes | 
|  | 23294 | else | 
|  | 23295 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23296 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23297 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23298 | ac_cv_lib_dl_dlopen=no | 
|  | 23299 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23300 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23301 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23302 | LIBS=$ac_check_lib_save_LIBS | 
|  | 23303 | fi | 
|  | 23304 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 23305 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
|  | 23306 | if test $ac_cv_lib_dl_dlopen = yes; then | 
|  | 23307 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 23308 | else | 
|  | 23309 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
|  | 23310 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
|  | 23311 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
|  | 23312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23313 | else | 
|  | 23314 | ac_check_lib_save_LIBS=$LIBS | 
|  | 23315 | LIBS="-lsvld  $LIBS" | 
|  | 23316 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23317 | /* confdefs.h.  */ | 
|  | 23318 | _ACEOF | 
|  | 23319 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23320 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23321 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23322 |  | 
|  | 23323 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 23324 | #ifdef __cplusplus | 
|  | 23325 | extern "C" | 
|  | 23326 | #endif | 
|  | 23327 | /* We use char because int might match the return type of a gcc2 | 
|  | 23328 | builtin and then its argument prototype would still apply.  */ | 
|  | 23329 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23330 | int | 
|  | 23331 | main () | 
|  | 23332 | { | 
|  | 23333 | dlopen (); | 
|  | 23334 | ; | 
|  | 23335 | return 0; | 
|  | 23336 | } | 
|  | 23337 | _ACEOF | 
|  | 23338 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23340 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23341 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23342 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23343 | rm -f conftest.er1 | 
|  | 23344 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23346 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23347 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23348 | || test ! -s conftest.err' | 
|  | 23349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23350 | (eval $ac_try) 2>&5 | 
|  | 23351 | ac_status=$? | 
|  | 23352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23353 | (exit $ac_status); }; } && | 
|  | 23354 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23356 | (eval $ac_try) 2>&5 | 
|  | 23357 | ac_status=$? | 
|  | 23358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23359 | (exit $ac_status); }; }; then | 
|  | 23360 | ac_cv_lib_svld_dlopen=yes | 
|  | 23361 | else | 
|  | 23362 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23363 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23364 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23365 | ac_cv_lib_svld_dlopen=no | 
|  | 23366 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23367 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23368 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23369 | LIBS=$ac_check_lib_save_LIBS | 
|  | 23370 | fi | 
|  | 23371 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 23372 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
|  | 23373 | if test $ac_cv_lib_svld_dlopen = yes; then | 
|  | 23374 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 23375 | else | 
|  | 23376 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
|  | 23377 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
|  | 23378 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
|  | 23379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23380 | else | 
|  | 23381 | ac_check_lib_save_LIBS=$LIBS | 
|  | 23382 | LIBS="-ldld  $LIBS" | 
|  | 23383 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23384 | /* confdefs.h.  */ | 
|  | 23385 | _ACEOF | 
|  | 23386 | cat confdefs.h >>conftest.$ac_ext | 
|  | 23387 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 23388 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23389 |  | 
|  | 23390 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 23391 | #ifdef __cplusplus | 
|  | 23392 | extern "C" | 
|  | 23393 | #endif | 
|  | 23394 | /* We use char because int might match the return type of a gcc2 | 
|  | 23395 | builtin and then its argument prototype would still apply.  */ | 
|  | 23396 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23397 | int | 
|  | 23398 | main () | 
|  | 23399 | { | 
|  | 23400 | dld_link (); | 
|  | 23401 | ; | 
|  | 23402 | return 0; | 
|  | 23403 | } | 
|  | 23404 | _ACEOF | 
|  | 23405 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 23406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23407 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23408 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23409 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 23410 | rm -f conftest.er1 | 
|  | 23411 | cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23413 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23414 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 23415 | || test ! -s conftest.err' | 
|  | 23416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23417 | (eval $ac_try) 2>&5 | 
|  | 23418 | ac_status=$? | 
|  | 23419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23420 | (exit $ac_status); }; } && | 
|  | 23421 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 23423 | (eval $ac_try) 2>&5 | 
|  | 23424 | ac_status=$? | 
|  | 23425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23426 | (exit $ac_status); }; }; then | 
|  | 23427 | ac_cv_lib_dld_dld_link=yes | 
|  | 23428 | else | 
|  | 23429 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23430 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 23431 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23432 | ac_cv_lib_dld_dld_link=no | 
|  | 23433 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23434 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 23435 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23436 | LIBS=$ac_check_lib_save_LIBS | 
|  | 23437 | fi | 
|  | 23438 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 23439 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
|  | 23440 | if test $ac_cv_lib_dld_dld_link = yes; then | 
|  | 23441 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
|  | 23442 | fi | 
|  | 23443 |  | 
|  | 23444 |  | 
|  | 23445 | fi | 
|  | 23446 |  | 
|  | 23447 |  | 
|  | 23448 | fi | 
|  | 23449 |  | 
|  | 23450 |  | 
|  | 23451 | fi | 
|  | 23452 |  | 
|  | 23453 |  | 
|  | 23454 | fi | 
|  | 23455 |  | 
|  | 23456 |  | 
|  | 23457 | fi | 
|  | 23458 |  | 
|  | 23459 | ;; | 
|  | 23460 | esac | 
|  | 23461 |  | 
|  | 23462 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 23463 | enable_dlopen=yes | 
|  | 23464 | else | 
|  | 23465 | enable_dlopen=no | 
|  | 23466 | fi | 
|  | 23467 |  | 
|  | 23468 | case $lt_cv_dlopen in | 
|  | 23469 | dlopen) | 
|  | 23470 | save_CPPFLAGS="$CPPFLAGS" | 
|  | 23471 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|  | 23472 |  | 
|  | 23473 | save_LDFLAGS="$LDFLAGS" | 
|  | 23474 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 23475 |  | 
|  | 23476 | save_LIBS="$LIBS" | 
|  | 23477 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 23478 |  | 
|  | 23479 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
|  | 23480 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
|  | 23481 | if test "${lt_cv_dlopen_self+set}" = set; then | 
|  | 23482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23483 | else | 
|  | 23484 | if test "$cross_compiling" = yes; then : | 
|  | 23485 | lt_cv_dlopen_self=cross | 
|  | 23486 | else | 
|  | 23487 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 23488 | lt_status=$lt_dlunknown | 
|  | 23489 | cat > conftest.$ac_ext <<EOF | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 23490 | #line 23490 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23491 | #include "confdefs.h" | 
|  | 23492 |  | 
|  | 23493 | #if HAVE_DLFCN_H | 
|  | 23494 | #include <dlfcn.h> | 
|  | 23495 | #endif | 
|  | 23496 |  | 
|  | 23497 | #include <stdio.h> | 
|  | 23498 |  | 
|  | 23499 | #ifdef RTLD_GLOBAL | 
|  | 23500 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 23501 | #else | 
|  | 23502 | #  ifdef DL_GLOBAL | 
|  | 23503 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 23504 | #  else | 
|  | 23505 | #    define LT_DLGLOBAL		0 | 
|  | 23506 | #  endif | 
|  | 23507 | #endif | 
|  | 23508 |  | 
|  | 23509 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 23510 | find out it does not work in some platform. */ | 
|  | 23511 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 23512 | #  ifdef RTLD_LAZY | 
|  | 23513 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 23514 | #  else | 
|  | 23515 | #    ifdef DL_LAZY | 
|  | 23516 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 23517 | #    else | 
|  | 23518 | #      ifdef RTLD_NOW | 
|  | 23519 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 23520 | #      else | 
|  | 23521 | #        ifdef DL_NOW | 
|  | 23522 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 23523 | #        else | 
|  | 23524 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 23525 | #        endif | 
|  | 23526 | #      endif | 
|  | 23527 | #    endif | 
|  | 23528 | #  endif | 
|  | 23529 | #endif | 
|  | 23530 |  | 
|  | 23531 | #ifdef __cplusplus | 
|  | 23532 | extern "C" void exit (int); | 
|  | 23533 | #endif | 
|  | 23534 |  | 
|  | 23535 | void fnord() { int i=42;} | 
|  | 23536 | int main () | 
|  | 23537 | { | 
|  | 23538 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 23539 | int status = $lt_dlunknown; | 
|  | 23540 |  | 
|  | 23541 | if (self) | 
|  | 23542 | { | 
|  | 23543 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 23544 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 23545 | /* dlclose (self); */ | 
|  | 23546 | } | 
|  | 23547 |  | 
|  | 23548 | exit (status); | 
|  | 23549 | } | 
|  | 23550 | EOF | 
|  | 23551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 23552 | (eval $ac_link) 2>&5 | 
|  | 23553 | ac_status=$? | 
|  | 23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23555 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 23556 | (./conftest; exit; ) 2>/dev/null | 
|  | 23557 | lt_status=$? | 
|  | 23558 | case x$lt_status in | 
|  | 23559 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 23560 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 23561 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 23562 | esac | 
|  | 23563 | else : | 
|  | 23564 | # compilation failed | 
|  | 23565 | lt_cv_dlopen_self=no | 
|  | 23566 | fi | 
|  | 23567 | fi | 
|  | 23568 | rm -fr conftest* | 
|  | 23569 |  | 
|  | 23570 |  | 
|  | 23571 | fi | 
|  | 23572 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
|  | 23573 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
|  | 23574 |  | 
|  | 23575 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 23576 | LDFLAGS="$LDFLAGS $link_static_flag" | 
|  | 23577 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 23578 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
|  | 23579 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
|  | 23580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 23581 | else | 
|  | 23582 | if test "$cross_compiling" = yes; then : | 
|  | 23583 | lt_cv_dlopen_self_static=cross | 
|  | 23584 | else | 
|  | 23585 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 23586 | lt_status=$lt_dlunknown | 
|  | 23587 | cat > conftest.$ac_ext <<EOF | 
| Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 23588 | #line 23588 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23589 | #include "confdefs.h" | 
|  | 23590 |  | 
|  | 23591 | #if HAVE_DLFCN_H | 
|  | 23592 | #include <dlfcn.h> | 
|  | 23593 | #endif | 
|  | 23594 |  | 
|  | 23595 | #include <stdio.h> | 
|  | 23596 |  | 
|  | 23597 | #ifdef RTLD_GLOBAL | 
|  | 23598 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 23599 | #else | 
|  | 23600 | #  ifdef DL_GLOBAL | 
|  | 23601 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 23602 | #  else | 
|  | 23603 | #    define LT_DLGLOBAL		0 | 
|  | 23604 | #  endif | 
|  | 23605 | #endif | 
|  | 23606 |  | 
|  | 23607 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 23608 | find out it does not work in some platform. */ | 
|  | 23609 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 23610 | #  ifdef RTLD_LAZY | 
|  | 23611 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 23612 | #  else | 
|  | 23613 | #    ifdef DL_LAZY | 
|  | 23614 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 23615 | #    else | 
|  | 23616 | #      ifdef RTLD_NOW | 
|  | 23617 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 23618 | #      else | 
|  | 23619 | #        ifdef DL_NOW | 
|  | 23620 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 23621 | #        else | 
|  | 23622 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 23623 | #        endif | 
|  | 23624 | #      endif | 
|  | 23625 | #    endif | 
|  | 23626 | #  endif | 
|  | 23627 | #endif | 
|  | 23628 |  | 
|  | 23629 | #ifdef __cplusplus | 
|  | 23630 | extern "C" void exit (int); | 
|  | 23631 | #endif | 
|  | 23632 |  | 
|  | 23633 | void fnord() { int i=42;} | 
|  | 23634 | int main () | 
|  | 23635 | { | 
|  | 23636 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 23637 | int status = $lt_dlunknown; | 
|  | 23638 |  | 
|  | 23639 | if (self) | 
|  | 23640 | { | 
|  | 23641 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
|  | 23642 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
|  | 23643 | /* dlclose (self); */ | 
|  | 23644 | } | 
|  | 23645 |  | 
|  | 23646 | exit (status); | 
|  | 23647 | } | 
|  | 23648 | EOF | 
|  | 23649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 23650 | (eval $ac_link) 2>&5 | 
|  | 23651 | ac_status=$? | 
|  | 23652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 23653 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 23654 | (./conftest; exit; ) 2>/dev/null | 
|  | 23655 | lt_status=$? | 
|  | 23656 | case x$lt_status in | 
|  | 23657 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 23658 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 23659 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 23660 | esac | 
|  | 23661 | else : | 
|  | 23662 | # compilation failed | 
|  | 23663 | lt_cv_dlopen_self_static=no | 
|  | 23664 | fi | 
|  | 23665 | fi | 
|  | 23666 | rm -fr conftest* | 
|  | 23667 |  | 
|  | 23668 |  | 
|  | 23669 | fi | 
|  | 23670 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 23671 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
|  | 23672 | fi | 
|  | 23673 |  | 
|  | 23674 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 23675 | LDFLAGS="$save_LDFLAGS" | 
|  | 23676 | LIBS="$save_LIBS" | 
|  | 23677 | ;; | 
|  | 23678 | esac | 
|  | 23679 |  | 
|  | 23680 | case $lt_cv_dlopen_self in | 
|  | 23681 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 23682 | *) enable_dlopen_self=unknown ;; | 
|  | 23683 | esac | 
|  | 23684 |  | 
|  | 23685 | case $lt_cv_dlopen_self_static in | 
|  | 23686 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 23687 | *) enable_dlopen_self_static=unknown ;; | 
|  | 23688 | esac | 
|  | 23689 | fi | 
|  | 23690 |  | 
|  | 23691 |  | 
|  | 23692 | # The else clause should only fire when bootstrapping the | 
|  | 23693 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 23694 | # with your package, and you will get complaints that there are | 
|  | 23695 | # no rules to generate ltmain.sh. | 
|  | 23696 | if test -f "$ltmain"; then | 
|  | 23697 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 23698 | # without removal of \ escapes. | 
|  | 23699 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 23700 | setopt NO_GLOB_SUBST | 
|  | 23701 | fi | 
|  | 23702 | # Now quote all the things that may contain metacharacters while being | 
|  | 23703 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 23704 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23705 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 23706 | SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23707 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 23708 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 23709 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 23710 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 23711 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 23712 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 23713 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 23714 | compiler_GCJ \ | 
|  | 23715 | CC_GCJ \ | 
|  | 23716 | LD_GCJ \ | 
|  | 23717 | lt_prog_compiler_wl_GCJ \ | 
|  | 23718 | lt_prog_compiler_pic_GCJ \ | 
|  | 23719 | lt_prog_compiler_static_GCJ \ | 
|  | 23720 | lt_prog_compiler_no_builtin_flag_GCJ \ | 
|  | 23721 | export_dynamic_flag_spec_GCJ \ | 
|  | 23722 | thread_safe_flag_spec_GCJ \ | 
|  | 23723 | whole_archive_flag_spec_GCJ \ | 
|  | 23724 | enable_shared_with_static_runtimes_GCJ \ | 
|  | 23725 | old_archive_cmds_GCJ \ | 
|  | 23726 | old_archive_from_new_cmds_GCJ \ | 
|  | 23727 | predep_objects_GCJ \ | 
|  | 23728 | postdep_objects_GCJ \ | 
|  | 23729 | predeps_GCJ \ | 
|  | 23730 | postdeps_GCJ \ | 
|  | 23731 | compiler_lib_search_path_GCJ \ | 
|  | 23732 | archive_cmds_GCJ \ | 
|  | 23733 | archive_expsym_cmds_GCJ \ | 
|  | 23734 | postinstall_cmds_GCJ \ | 
|  | 23735 | postuninstall_cmds_GCJ \ | 
|  | 23736 | old_archive_from_expsyms_cmds_GCJ \ | 
|  | 23737 | allow_undefined_flag_GCJ \ | 
|  | 23738 | no_undefined_flag_GCJ \ | 
|  | 23739 | export_symbols_cmds_GCJ \ | 
|  | 23740 | hardcode_libdir_flag_spec_GCJ \ | 
|  | 23741 | hardcode_libdir_flag_spec_ld_GCJ \ | 
|  | 23742 | hardcode_libdir_separator_GCJ \ | 
|  | 23743 | hardcode_automatic_GCJ \ | 
|  | 23744 | module_cmds_GCJ \ | 
|  | 23745 | module_expsym_cmds_GCJ \ | 
|  | 23746 | lt_cv_prog_compiler_c_o_GCJ \ | 
|  | 23747 | exclude_expsyms_GCJ \ | 
|  | 23748 | include_expsyms_GCJ; do | 
|  | 23749 |  | 
|  | 23750 | case $var in | 
|  | 23751 | old_archive_cmds_GCJ | \ | 
|  | 23752 | old_archive_from_new_cmds_GCJ | \ | 
|  | 23753 | archive_cmds_GCJ | \ | 
|  | 23754 | archive_expsym_cmds_GCJ | \ | 
|  | 23755 | module_cmds_GCJ | \ | 
|  | 23756 | module_expsym_cmds_GCJ | \ | 
|  | 23757 | old_archive_from_expsyms_cmds_GCJ | \ | 
|  | 23758 | export_symbols_cmds_GCJ | \ | 
|  | 23759 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 23760 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 23761 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 23762 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 23763 | # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23764 | 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] | 23765 | ;; | 
|  | 23766 | *) | 
|  | 23767 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 23768 | ;; | 
|  | 23769 | esac | 
|  | 23770 | done | 
|  | 23771 |  | 
|  | 23772 | case $lt_echo in | 
|  | 23773 | *'\$0 --fallback-echo"') | 
|  | 23774 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 23775 | ;; | 
|  | 23776 | esac | 
|  | 23777 |  | 
|  | 23778 | cfgfile="$ofile" | 
|  | 23779 |  | 
|  | 23780 | cat <<__EOF__ >> "$cfgfile" | 
|  | 23781 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 23782 |  | 
|  | 23783 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 23784 |  | 
|  | 23785 | # Shell to use when invoking shell scripts. | 
|  | 23786 | SHELL=$lt_SHELL | 
|  | 23787 |  | 
|  | 23788 | # Whether or not to build shared libraries. | 
|  | 23789 | build_libtool_libs=$enable_shared | 
|  | 23790 |  | 
|  | 23791 | # Whether or not to build static libraries. | 
|  | 23792 | build_old_libs=$enable_static | 
|  | 23793 |  | 
|  | 23794 | # Whether or not to add -lc for building shared libraries. | 
|  | 23795 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
|  | 23796 |  | 
|  | 23797 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 23798 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
|  | 23799 |  | 
|  | 23800 | # Whether or not to optimize for fast installation. | 
|  | 23801 | fast_install=$enable_fast_install | 
|  | 23802 |  | 
|  | 23803 | # The host system. | 
|  | 23804 | host_alias=$host_alias | 
|  | 23805 | host=$host | 
|  | 23806 |  | 
|  | 23807 | # An echo program that does not interpret backslashes. | 
|  | 23808 | echo=$lt_echo | 
|  | 23809 |  | 
|  | 23810 | # The archiver. | 
|  | 23811 | AR=$lt_AR | 
|  | 23812 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 23813 |  | 
|  | 23814 | # A C compiler. | 
|  | 23815 | LTCC=$lt_LTCC | 
|  | 23816 |  | 
|  | 23817 | # A language-specific compiler. | 
|  | 23818 | CC=$lt_compiler_GCJ | 
|  | 23819 |  | 
|  | 23820 | # Is the compiler the GNU C compiler? | 
|  | 23821 | with_gcc=$GCC_GCJ | 
|  | 23822 |  | 
|  | 23823 | # An ERE matcher. | 
|  | 23824 | EGREP=$lt_EGREP | 
|  | 23825 |  | 
|  | 23826 | # The linker used to build libraries. | 
|  | 23827 | LD=$lt_LD_GCJ | 
|  | 23828 |  | 
|  | 23829 | # Whether we need hard or soft links. | 
|  | 23830 | LN_S=$lt_LN_S | 
|  | 23831 |  | 
|  | 23832 | # A BSD-compatible nm program. | 
|  | 23833 | NM=$lt_NM | 
|  | 23834 |  | 
|  | 23835 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23836 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23837 |  | 
|  | 23838 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 23839 | MAGIC_CMD=$MAGIC_CMD | 
|  | 23840 |  | 
|  | 23841 | # Used on cygwin: DLL creation program. | 
|  | 23842 | DLLTOOL="$DLLTOOL" | 
|  | 23843 |  | 
|  | 23844 | # Used on cygwin: object dumper. | 
|  | 23845 | OBJDUMP="$OBJDUMP" | 
|  | 23846 |  | 
|  | 23847 | # Used on cygwin: assembler. | 
|  | 23848 | AS="$AS" | 
|  | 23849 |  | 
|  | 23850 | # The name of the directory that contains temporary libtool files. | 
|  | 23851 | objdir=$objdir | 
|  | 23852 |  | 
|  | 23853 | # How to create reloadable object files. | 
|  | 23854 | reload_flag=$lt_reload_flag | 
|  | 23855 | reload_cmds=$lt_reload_cmds | 
|  | 23856 |  | 
|  | 23857 | # How to pass a linker flag through the compiler. | 
|  | 23858 | wl=$lt_lt_prog_compiler_wl_GCJ | 
|  | 23859 |  | 
|  | 23860 | # Object file suffix (normally "o"). | 
|  | 23861 | objext="$ac_objext" | 
|  | 23862 |  | 
|  | 23863 | # Old archive suffix (normally "a"). | 
|  | 23864 | libext="$libext" | 
|  | 23865 |  | 
|  | 23866 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23867 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23868 |  | 
|  | 23869 | # Executable file suffix (normally ""). | 
|  | 23870 | exeext="$exeext" | 
|  | 23871 |  | 
|  | 23872 | # Additional compiler flags for building library objects. | 
|  | 23873 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
|  | 23874 | pic_mode=$pic_mode | 
|  | 23875 |  | 
|  | 23876 | # What is the maximum length of a command? | 
|  | 23877 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 23878 |  | 
|  | 23879 | # Does compiler simultaneously support -c and -o options? | 
|  | 23880 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
|  | 23881 |  | 
|  | 23882 | # Must we lock files when doing compilation ? | 
|  | 23883 | need_locks=$lt_need_locks | 
|  | 23884 |  | 
|  | 23885 | # Do we need the lib prefix for modules? | 
|  | 23886 | need_lib_prefix=$need_lib_prefix | 
|  | 23887 |  | 
|  | 23888 | # Do we need a version for libraries? | 
|  | 23889 | need_version=$need_version | 
|  | 23890 |  | 
|  | 23891 | # Whether dlopen is supported. | 
|  | 23892 | dlopen_support=$enable_dlopen | 
|  | 23893 |  | 
|  | 23894 | # Whether dlopen of programs is supported. | 
|  | 23895 | dlopen_self=$enable_dlopen_self | 
|  | 23896 |  | 
|  | 23897 | # Whether dlopen of statically linked programs is supported. | 
|  | 23898 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 23899 |  | 
|  | 23900 | # Compiler flag to prevent dynamic linking. | 
|  | 23901 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
|  | 23902 |  | 
|  | 23903 | # Compiler flag to turn off builtin functions. | 
|  | 23904 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
|  | 23905 |  | 
|  | 23906 | # Compiler flag to allow reflexive dlopens. | 
|  | 23907 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
|  | 23908 |  | 
|  | 23909 | # Compiler flag to generate shared objects directly from archives. | 
|  | 23910 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
|  | 23911 |  | 
|  | 23912 | # Compiler flag to generate thread-safe objects. | 
|  | 23913 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
|  | 23914 |  | 
|  | 23915 | # Library versioning type. | 
|  | 23916 | version_type=$version_type | 
|  | 23917 |  | 
|  | 23918 | # Format of library name prefix. | 
|  | 23919 | libname_spec=$lt_libname_spec | 
|  | 23920 |  | 
|  | 23921 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 23922 | # The last name is the one that the linker finds with -lNAME. | 
|  | 23923 | library_names_spec=$lt_library_names_spec | 
|  | 23924 |  | 
|  | 23925 | # The coded name of the library, if different from the real name. | 
|  | 23926 | soname_spec=$lt_soname_spec | 
|  | 23927 |  | 
|  | 23928 | # Commands used to build and install an old-style archive. | 
|  | 23929 | RANLIB=$lt_RANLIB | 
|  | 23930 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
|  | 23931 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 23932 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 23933 |  | 
|  | 23934 | # Create an old-style archive from a shared archive. | 
|  | 23935 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
|  | 23936 |  | 
|  | 23937 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 23938 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
|  | 23939 |  | 
|  | 23940 | # Commands used to build and install a shared archive. | 
|  | 23941 | archive_cmds=$lt_archive_cmds_GCJ | 
|  | 23942 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
|  | 23943 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 23944 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 23945 |  | 
|  | 23946 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 23947 | module_cmds=$lt_module_cmds_GCJ | 
|  | 23948 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
|  | 23949 |  | 
|  | 23950 | # Commands to strip libraries. | 
|  | 23951 | old_striplib=$lt_old_striplib | 
|  | 23952 | striplib=$lt_striplib | 
|  | 23953 |  | 
|  | 23954 | # Dependencies to place before the objects being linked to create a | 
|  | 23955 | # shared library. | 
|  | 23956 | predep_objects=$lt_predep_objects_GCJ | 
|  | 23957 |  | 
|  | 23958 | # Dependencies to place after the objects being linked to create a | 
|  | 23959 | # shared library. | 
|  | 23960 | postdep_objects=$lt_postdep_objects_GCJ | 
|  | 23961 |  | 
|  | 23962 | # Dependencies to place before the objects being linked to create a | 
|  | 23963 | # shared library. | 
|  | 23964 | predeps=$lt_predeps_GCJ | 
|  | 23965 |  | 
|  | 23966 | # Dependencies to place after the objects being linked to create a | 
|  | 23967 | # shared library. | 
|  | 23968 | postdeps=$lt_postdeps_GCJ | 
|  | 23969 |  | 
|  | 23970 | # The library search path used internally by the compiler when linking | 
|  | 23971 | # a shared library. | 
|  | 23972 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
|  | 23973 |  | 
|  | 23974 | # Method to check whether dependent libraries are shared objects. | 
|  | 23975 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 23976 |  | 
|  | 23977 | # Command to use when deplibs_check_method == file_magic. | 
|  | 23978 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 23979 |  | 
|  | 23980 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 23981 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
|  | 23982 |  | 
|  | 23983 | # Flag that forces no undefined symbols. | 
|  | 23984 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
|  | 23985 |  | 
|  | 23986 | # Commands used to finish a libtool library installation in a directory. | 
|  | 23987 | finish_cmds=$lt_finish_cmds | 
|  | 23988 |  | 
|  | 23989 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 23990 | finish_eval=$lt_finish_eval | 
|  | 23991 |  | 
|  | 23992 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 23993 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 23994 |  | 
|  | 23995 | # Transform the output of nm in a proper C declaration | 
|  | 23996 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 23997 |  | 
|  | 23998 | # Transform the output of nm in a C name address pair | 
|  | 23999 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 24000 |  | 
|  | 24001 | # This is the shared library runtime path variable. | 
|  | 24002 | runpath_var=$runpath_var | 
|  | 24003 |  | 
|  | 24004 | # This is the shared library path variable. | 
|  | 24005 | shlibpath_var=$shlibpath_var | 
|  | 24006 |  | 
|  | 24007 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 24008 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 24009 |  | 
|  | 24010 | # How to hardcode a shared library path into an executable. | 
|  | 24011 | hardcode_action=$hardcode_action_GCJ | 
|  | 24012 |  | 
|  | 24013 | # Whether we should hardcode library paths into libraries. | 
|  | 24014 | hardcode_into_libs=$hardcode_into_libs | 
|  | 24015 |  | 
|  | 24016 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 24017 | # This must work even if \$libdir does not exist. | 
|  | 24018 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
|  | 24019 |  | 
|  | 24020 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 24021 | # a binary during linking. This must work even if \$libdir does | 
|  | 24022 | # not exist. | 
|  | 24023 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
|  | 24024 |  | 
|  | 24025 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 24026 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
|  | 24027 |  | 
|  | 24028 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 24029 | # resulting binary. | 
|  | 24030 | hardcode_direct=$hardcode_direct_GCJ | 
|  | 24031 |  | 
|  | 24032 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 24033 | # resulting binary. | 
|  | 24034 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
|  | 24035 |  | 
|  | 24036 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 24037 | # the resulting binary. | 
|  | 24038 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
|  | 24039 |  | 
|  | 24040 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 24041 | # and all subsequent libraries and executables linked against it. | 
|  | 24042 | hardcode_automatic=$hardcode_automatic_GCJ | 
|  | 24043 |  | 
|  | 24044 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 24045 | # restored at relink time. | 
|  | 24046 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 24047 |  | 
|  | 24048 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 24049 | link_all_deplibs=$link_all_deplibs_GCJ | 
|  | 24050 |  | 
|  | 24051 | # Compile-time system search path for libraries | 
|  | 24052 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 24053 |  | 
|  | 24054 | # Run-time system search path for libraries | 
|  | 24055 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 24056 |  | 
|  | 24057 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 24058 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
|  | 24059 |  | 
|  | 24060 | # Set to yes if exported symbols are required. | 
|  | 24061 | always_export_symbols=$always_export_symbols_GCJ | 
|  | 24062 |  | 
|  | 24063 | # The commands to list exported symbols. | 
|  | 24064 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
|  | 24065 |  | 
|  | 24066 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 24067 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 24068 |  | 
|  | 24069 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 24070 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
|  | 24071 |  | 
|  | 24072 | # Symbols that must always be exported. | 
|  | 24073 | include_expsyms=$lt_include_expsyms_GCJ | 
|  | 24074 |  | 
|  | 24075 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 24076 |  | 
|  | 24077 | __EOF__ | 
|  | 24078 |  | 
|  | 24079 |  | 
|  | 24080 | else | 
|  | 24081 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 24082 | # `config.status --recheck' to rerun these tests and create the | 
|  | 24083 | # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24084 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 24085 | if test -f "$ltmain_in"; then | 
|  | 24086 | test -f Makefile && make "$ltmain" | 
|  | 24087 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24088 | fi | 
|  | 24089 |  | 
|  | 24090 |  | 
|  | 24091 | ac_ext=c | 
|  | 24092 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24096 |  | 
|  | 24097 | CC="$lt_save_CC" | 
|  | 24098 |  | 
|  | 24099 | else | 
|  | 24100 | tagname="" | 
|  | 24101 | fi | 
|  | 24102 | ;; | 
|  | 24103 |  | 
|  | 24104 | RC) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24105 | ac_ext=c | 
|  | 24106 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24110 |  | 
|  | 24111 |  | 
|  | 24112 | # Source file extension for RC test sources. | 
|  | 24113 | ac_ext=rc | 
|  | 24114 |  | 
|  | 24115 | # Object file extension for compiled RC test sources. | 
|  | 24116 | objext=o | 
|  | 24117 | objext_RC=$objext | 
|  | 24118 |  | 
|  | 24119 | # Code to be used in simple compile tests | 
|  | 24120 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
|  | 24121 |  | 
|  | 24122 | # Code to be used in simple link tests | 
|  | 24123 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
|  | 24124 |  | 
|  | 24125 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 24126 |  | 
|  | 24127 | # If no C compiler was specified, use CC. | 
|  | 24128 | LTCC=${LTCC-"$CC"} | 
|  | 24129 |  | 
|  | 24130 | # Allow CC to be a program name with arguments. | 
|  | 24131 | compiler=$CC | 
|  | 24132 |  | 
|  | 24133 |  | 
|  | 24134 | # Allow CC to be a program name with arguments. | 
|  | 24135 | lt_save_CC="$CC" | 
|  | 24136 | CC=${RC-"windres"} | 
|  | 24137 | compiler=$CC | 
|  | 24138 | compiler_RC=$CC | 
|  | 24139 | lt_cv_prog_compiler_c_o_RC=yes | 
|  | 24140 |  | 
|  | 24141 | # The else clause should only fire when bootstrapping the | 
|  | 24142 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
|  | 24143 | # with your package, and you will get complaints that there are | 
|  | 24144 | # no rules to generate ltmain.sh. | 
|  | 24145 | if test -f "$ltmain"; then | 
|  | 24146 | # See if we are running on zsh, and set the options which allow our commands through | 
|  | 24147 | # without removal of \ escapes. | 
|  | 24148 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 24149 | setopt NO_GLOB_SUBST | 
|  | 24150 | fi | 
|  | 24151 | # Now quote all the things that may contain metacharacters while being | 
|  | 24152 | # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
|  | 24153 | # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24154 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
|  | 24155 | SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24156 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
|  | 24157 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
|  | 24158 | deplibs_check_method reload_flag reload_cmds need_locks \ | 
|  | 24159 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 24160 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 24161 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
|  | 24162 | old_postinstall_cmds old_postuninstall_cmds \ | 
|  | 24163 | compiler_RC \ | 
|  | 24164 | CC_RC \ | 
|  | 24165 | LD_RC \ | 
|  | 24166 | lt_prog_compiler_wl_RC \ | 
|  | 24167 | lt_prog_compiler_pic_RC \ | 
|  | 24168 | lt_prog_compiler_static_RC \ | 
|  | 24169 | lt_prog_compiler_no_builtin_flag_RC \ | 
|  | 24170 | export_dynamic_flag_spec_RC \ | 
|  | 24171 | thread_safe_flag_spec_RC \ | 
|  | 24172 | whole_archive_flag_spec_RC \ | 
|  | 24173 | enable_shared_with_static_runtimes_RC \ | 
|  | 24174 | old_archive_cmds_RC \ | 
|  | 24175 | old_archive_from_new_cmds_RC \ | 
|  | 24176 | predep_objects_RC \ | 
|  | 24177 | postdep_objects_RC \ | 
|  | 24178 | predeps_RC \ | 
|  | 24179 | postdeps_RC \ | 
|  | 24180 | compiler_lib_search_path_RC \ | 
|  | 24181 | archive_cmds_RC \ | 
|  | 24182 | archive_expsym_cmds_RC \ | 
|  | 24183 | postinstall_cmds_RC \ | 
|  | 24184 | postuninstall_cmds_RC \ | 
|  | 24185 | old_archive_from_expsyms_cmds_RC \ | 
|  | 24186 | allow_undefined_flag_RC \ | 
|  | 24187 | no_undefined_flag_RC \ | 
|  | 24188 | export_symbols_cmds_RC \ | 
|  | 24189 | hardcode_libdir_flag_spec_RC \ | 
|  | 24190 | hardcode_libdir_flag_spec_ld_RC \ | 
|  | 24191 | hardcode_libdir_separator_RC \ | 
|  | 24192 | hardcode_automatic_RC \ | 
|  | 24193 | module_cmds_RC \ | 
|  | 24194 | module_expsym_cmds_RC \ | 
|  | 24195 | lt_cv_prog_compiler_c_o_RC \ | 
|  | 24196 | exclude_expsyms_RC \ | 
|  | 24197 | include_expsyms_RC; do | 
|  | 24198 |  | 
|  | 24199 | case $var in | 
|  | 24200 | old_archive_cmds_RC | \ | 
|  | 24201 | old_archive_from_new_cmds_RC | \ | 
|  | 24202 | archive_cmds_RC | \ | 
|  | 24203 | archive_expsym_cmds_RC | \ | 
|  | 24204 | module_cmds_RC | \ | 
|  | 24205 | module_expsym_cmds_RC | \ | 
|  | 24206 | old_archive_from_expsyms_cmds_RC | \ | 
|  | 24207 | export_symbols_cmds_RC | \ | 
|  | 24208 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
|  | 24209 | postinstall_cmds | postuninstall_cmds | \ | 
|  | 24210 | old_postinstall_cmds | old_postuninstall_cmds | \ | 
|  | 24211 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
|  | 24212 | # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24213 | 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] | 24214 | ;; | 
|  | 24215 | *) | 
|  | 24216 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
|  | 24217 | ;; | 
|  | 24218 | esac | 
|  | 24219 | done | 
|  | 24220 |  | 
|  | 24221 | case $lt_echo in | 
|  | 24222 | *'\$0 --fallback-echo"') | 
|  | 24223 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
|  | 24224 | ;; | 
|  | 24225 | esac | 
|  | 24226 |  | 
|  | 24227 | cfgfile="$ofile" | 
|  | 24228 |  | 
|  | 24229 | cat <<__EOF__ >> "$cfgfile" | 
|  | 24230 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
|  | 24231 |  | 
|  | 24232 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 24233 |  | 
|  | 24234 | # Shell to use when invoking shell scripts. | 
|  | 24235 | SHELL=$lt_SHELL | 
|  | 24236 |  | 
|  | 24237 | # Whether or not to build shared libraries. | 
|  | 24238 | build_libtool_libs=$enable_shared | 
|  | 24239 |  | 
|  | 24240 | # Whether or not to build static libraries. | 
|  | 24241 | build_old_libs=$enable_static | 
|  | 24242 |  | 
|  | 24243 | # Whether or not to add -lc for building shared libraries. | 
|  | 24244 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
|  | 24245 |  | 
|  | 24246 | # Whether or not to disallow shared libs when runtime libs are static | 
|  | 24247 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
|  | 24248 |  | 
|  | 24249 | # Whether or not to optimize for fast installation. | 
|  | 24250 | fast_install=$enable_fast_install | 
|  | 24251 |  | 
|  | 24252 | # The host system. | 
|  | 24253 | host_alias=$host_alias | 
|  | 24254 | host=$host | 
|  | 24255 |  | 
|  | 24256 | # An echo program that does not interpret backslashes. | 
|  | 24257 | echo=$lt_echo | 
|  | 24258 |  | 
|  | 24259 | # The archiver. | 
|  | 24260 | AR=$lt_AR | 
|  | 24261 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 24262 |  | 
|  | 24263 | # A C compiler. | 
|  | 24264 | LTCC=$lt_LTCC | 
|  | 24265 |  | 
|  | 24266 | # A language-specific compiler. | 
|  | 24267 | CC=$lt_compiler_RC | 
|  | 24268 |  | 
|  | 24269 | # Is the compiler the GNU C compiler? | 
|  | 24270 | with_gcc=$GCC_RC | 
|  | 24271 |  | 
|  | 24272 | # An ERE matcher. | 
|  | 24273 | EGREP=$lt_EGREP | 
|  | 24274 |  | 
|  | 24275 | # The linker used to build libraries. | 
|  | 24276 | LD=$lt_LD_RC | 
|  | 24277 |  | 
|  | 24278 | # Whether we need hard or soft links. | 
|  | 24279 | LN_S=$lt_LN_S | 
|  | 24280 |  | 
|  | 24281 | # A BSD-compatible nm program. | 
|  | 24282 | NM=$lt_NM | 
|  | 24283 |  | 
|  | 24284 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24285 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24286 |  | 
|  | 24287 | # Used to examine libraries when file_magic_cmd begins "file" | 
|  | 24288 | MAGIC_CMD=$MAGIC_CMD | 
|  | 24289 |  | 
|  | 24290 | # Used on cygwin: DLL creation program. | 
|  | 24291 | DLLTOOL="$DLLTOOL" | 
|  | 24292 |  | 
|  | 24293 | # Used on cygwin: object dumper. | 
|  | 24294 | OBJDUMP="$OBJDUMP" | 
|  | 24295 |  | 
|  | 24296 | # Used on cygwin: assembler. | 
|  | 24297 | AS="$AS" | 
|  | 24298 |  | 
|  | 24299 | # The name of the directory that contains temporary libtool files. | 
|  | 24300 | objdir=$objdir | 
|  | 24301 |  | 
|  | 24302 | # How to create reloadable object files. | 
|  | 24303 | reload_flag=$lt_reload_flag | 
|  | 24304 | reload_cmds=$lt_reload_cmds | 
|  | 24305 |  | 
|  | 24306 | # How to pass a linker flag through the compiler. | 
|  | 24307 | wl=$lt_lt_prog_compiler_wl_RC | 
|  | 24308 |  | 
|  | 24309 | # Object file suffix (normally "o"). | 
|  | 24310 | objext="$ac_objext" | 
|  | 24311 |  | 
|  | 24312 | # Old archive suffix (normally "a"). | 
|  | 24313 | libext="$libext" | 
|  | 24314 |  | 
|  | 24315 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24316 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24317 |  | 
|  | 24318 | # Executable file suffix (normally ""). | 
|  | 24319 | exeext="$exeext" | 
|  | 24320 |  | 
|  | 24321 | # Additional compiler flags for building library objects. | 
|  | 24322 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
|  | 24323 | pic_mode=$pic_mode | 
|  | 24324 |  | 
|  | 24325 | # What is the maximum length of a command? | 
|  | 24326 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 24327 |  | 
|  | 24328 | # Does compiler simultaneously support -c and -o options? | 
|  | 24329 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
|  | 24330 |  | 
|  | 24331 | # Must we lock files when doing compilation ? | 
|  | 24332 | need_locks=$lt_need_locks | 
|  | 24333 |  | 
|  | 24334 | # Do we need the lib prefix for modules? | 
|  | 24335 | need_lib_prefix=$need_lib_prefix | 
|  | 24336 |  | 
|  | 24337 | # Do we need a version for libraries? | 
|  | 24338 | need_version=$need_version | 
|  | 24339 |  | 
|  | 24340 | # Whether dlopen is supported. | 
|  | 24341 | dlopen_support=$enable_dlopen | 
|  | 24342 |  | 
|  | 24343 | # Whether dlopen of programs is supported. | 
|  | 24344 | dlopen_self=$enable_dlopen_self | 
|  | 24345 |  | 
|  | 24346 | # Whether dlopen of statically linked programs is supported. | 
|  | 24347 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 24348 |  | 
|  | 24349 | # Compiler flag to prevent dynamic linking. | 
|  | 24350 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
|  | 24351 |  | 
|  | 24352 | # Compiler flag to turn off builtin functions. | 
|  | 24353 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
|  | 24354 |  | 
|  | 24355 | # Compiler flag to allow reflexive dlopens. | 
|  | 24356 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
|  | 24357 |  | 
|  | 24358 | # Compiler flag to generate shared objects directly from archives. | 
|  | 24359 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
|  | 24360 |  | 
|  | 24361 | # Compiler flag to generate thread-safe objects. | 
|  | 24362 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
|  | 24363 |  | 
|  | 24364 | # Library versioning type. | 
|  | 24365 | version_type=$version_type | 
|  | 24366 |  | 
|  | 24367 | # Format of library name prefix. | 
|  | 24368 | libname_spec=$lt_libname_spec | 
|  | 24369 |  | 
|  | 24370 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 24371 | # The last name is the one that the linker finds with -lNAME. | 
|  | 24372 | library_names_spec=$lt_library_names_spec | 
|  | 24373 |  | 
|  | 24374 | # The coded name of the library, if different from the real name. | 
|  | 24375 | soname_spec=$lt_soname_spec | 
|  | 24376 |  | 
|  | 24377 | # Commands used to build and install an old-style archive. | 
|  | 24378 | RANLIB=$lt_RANLIB | 
|  | 24379 | old_archive_cmds=$lt_old_archive_cmds_RC | 
|  | 24380 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 24381 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 24382 |  | 
|  | 24383 | # Create an old-style archive from a shared archive. | 
|  | 24384 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
|  | 24385 |  | 
|  | 24386 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 24387 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
|  | 24388 |  | 
|  | 24389 | # Commands used to build and install a shared archive. | 
|  | 24390 | archive_cmds=$lt_archive_cmds_RC | 
|  | 24391 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
|  | 24392 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 24393 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 24394 |  | 
|  | 24395 | # Commands used to build a loadable module (assumed same as above if empty) | 
|  | 24396 | module_cmds=$lt_module_cmds_RC | 
|  | 24397 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
|  | 24398 |  | 
|  | 24399 | # Commands to strip libraries. | 
|  | 24400 | old_striplib=$lt_old_striplib | 
|  | 24401 | striplib=$lt_striplib | 
|  | 24402 |  | 
|  | 24403 | # Dependencies to place before the objects being linked to create a | 
|  | 24404 | # shared library. | 
|  | 24405 | predep_objects=$lt_predep_objects_RC | 
|  | 24406 |  | 
|  | 24407 | # Dependencies to place after the objects being linked to create a | 
|  | 24408 | # shared library. | 
|  | 24409 | postdep_objects=$lt_postdep_objects_RC | 
|  | 24410 |  | 
|  | 24411 | # Dependencies to place before the objects being linked to create a | 
|  | 24412 | # shared library. | 
|  | 24413 | predeps=$lt_predeps_RC | 
|  | 24414 |  | 
|  | 24415 | # Dependencies to place after the objects being linked to create a | 
|  | 24416 | # shared library. | 
|  | 24417 | postdeps=$lt_postdeps_RC | 
|  | 24418 |  | 
|  | 24419 | # The library search path used internally by the compiler when linking | 
|  | 24420 | # a shared library. | 
|  | 24421 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
|  | 24422 |  | 
|  | 24423 | # Method to check whether dependent libraries are shared objects. | 
|  | 24424 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 24425 |  | 
|  | 24426 | # Command to use when deplibs_check_method == file_magic. | 
|  | 24427 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 24428 |  | 
|  | 24429 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 24430 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
|  | 24431 |  | 
|  | 24432 | # Flag that forces no undefined symbols. | 
|  | 24433 | no_undefined_flag=$lt_no_undefined_flag_RC | 
|  | 24434 |  | 
|  | 24435 | # Commands used to finish a libtool library installation in a directory. | 
|  | 24436 | finish_cmds=$lt_finish_cmds | 
|  | 24437 |  | 
|  | 24438 | # Same as above, but a single script fragment to be evaled but not shown. | 
|  | 24439 | finish_eval=$lt_finish_eval | 
|  | 24440 |  | 
|  | 24441 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 24442 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 24443 |  | 
|  | 24444 | # Transform the output of nm in a proper C declaration | 
|  | 24445 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 24446 |  | 
|  | 24447 | # Transform the output of nm in a C name address pair | 
|  | 24448 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 24449 |  | 
|  | 24450 | # This is the shared library runtime path variable. | 
|  | 24451 | runpath_var=$runpath_var | 
|  | 24452 |  | 
|  | 24453 | # This is the shared library path variable. | 
|  | 24454 | shlibpath_var=$shlibpath_var | 
|  | 24455 |  | 
|  | 24456 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 24457 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 24458 |  | 
|  | 24459 | # How to hardcode a shared library path into an executable. | 
|  | 24460 | hardcode_action=$hardcode_action_RC | 
|  | 24461 |  | 
|  | 24462 | # Whether we should hardcode library paths into libraries. | 
|  | 24463 | hardcode_into_libs=$hardcode_into_libs | 
|  | 24464 |  | 
|  | 24465 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 24466 | # This must work even if \$libdir does not exist. | 
|  | 24467 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
|  | 24468 |  | 
|  | 24469 | # If ld is used when linking, flag to hardcode \$libdir into | 
|  | 24470 | # a binary during linking. This must work even if \$libdir does | 
|  | 24471 | # not exist. | 
|  | 24472 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
|  | 24473 |  | 
|  | 24474 | # Whether we need a single -rpath flag with a separated argument. | 
|  | 24475 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
|  | 24476 |  | 
|  | 24477 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
|  | 24478 | # resulting binary. | 
|  | 24479 | hardcode_direct=$hardcode_direct_RC | 
|  | 24480 |  | 
|  | 24481 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
|  | 24482 | # resulting binary. | 
|  | 24483 | hardcode_minus_L=$hardcode_minus_L_RC | 
|  | 24484 |  | 
|  | 24485 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
|  | 24486 | # the resulting binary. | 
|  | 24487 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
|  | 24488 |  | 
|  | 24489 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
|  | 24490 | # and all subsequent libraries and executables linked against it. | 
|  | 24491 | hardcode_automatic=$hardcode_automatic_RC | 
|  | 24492 |  | 
|  | 24493 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 24494 | # restored at relink time. | 
|  | 24495 | variables_saved_for_relink="$variables_saved_for_relink" | 
|  | 24496 |  | 
|  | 24497 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 24498 | link_all_deplibs=$link_all_deplibs_RC | 
|  | 24499 |  | 
|  | 24500 | # Compile-time system search path for libraries | 
|  | 24501 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 24502 |  | 
|  | 24503 | # Run-time system search path for libraries | 
|  | 24504 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 24505 |  | 
|  | 24506 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 24507 | fix_srcfile_path="$fix_srcfile_path_RC" | 
|  | 24508 |  | 
|  | 24509 | # Set to yes if exported symbols are required. | 
|  | 24510 | always_export_symbols=$always_export_symbols_RC | 
|  | 24511 |  | 
|  | 24512 | # The commands to list exported symbols. | 
|  | 24513 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
|  | 24514 |  | 
|  | 24515 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 24516 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 24517 |  | 
|  | 24518 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 24519 | exclude_expsyms=$lt_exclude_expsyms_RC | 
|  | 24520 |  | 
|  | 24521 | # Symbols that must always be exported. | 
|  | 24522 | include_expsyms=$lt_include_expsyms_RC | 
|  | 24523 |  | 
|  | 24524 | # ### END LIBTOOL TAG CONFIG: $tagname | 
|  | 24525 |  | 
|  | 24526 | __EOF__ | 
|  | 24527 |  | 
|  | 24528 |  | 
|  | 24529 | else | 
|  | 24530 | # If there is no Makefile yet, we rely on a make rule to execute | 
|  | 24531 | # `config.status --recheck' to rerun these tests and create the | 
|  | 24532 | # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24533 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
|  | 24534 | if test -f "$ltmain_in"; then | 
|  | 24535 | test -f Makefile && make "$ltmain" | 
|  | 24536 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24537 | fi | 
|  | 24538 |  | 
|  | 24539 |  | 
|  | 24540 | ac_ext=c | 
|  | 24541 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24545 |  | 
|  | 24546 | CC="$lt_save_CC" | 
|  | 24547 |  | 
|  | 24548 | ;; | 
|  | 24549 |  | 
|  | 24550 | *) | 
|  | 24551 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
|  | 24552 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
|  | 24553 | { (exit 1); exit 1; }; } | 
|  | 24554 | ;; | 
|  | 24555 | esac | 
|  | 24556 |  | 
|  | 24557 | # Append the new tag name to the list of available tags. | 
|  | 24558 | if test -n "$tagname" ; then | 
|  | 24559 | available_tags="$available_tags $tagname" | 
|  | 24560 | fi | 
|  | 24561 | fi | 
|  | 24562 | done | 
|  | 24563 | IFS="$lt_save_ifs" | 
|  | 24564 |  | 
|  | 24565 | # Now substitute the updated list of available tags. | 
|  | 24566 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
|  | 24567 | mv "${ofile}T" "$ofile" | 
|  | 24568 | chmod +x "$ofile" | 
|  | 24569 | else | 
|  | 24570 | rm -f "${ofile}T" | 
|  | 24571 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
|  | 24572 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
|  | 24573 | { (exit 1); exit 1; }; } | 
|  | 24574 | fi | 
|  | 24575 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24576 |  | 
|  | 24577 |  | 
|  | 24578 |  | 
|  | 24579 | # This can be used to rebuild libtool when needed | 
|  | 24580 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
|  | 24581 |  | 
|  | 24582 | # Always use our own libtool. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24583 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24584 |  | 
|  | 24585 | # Prevent multiple expansion | 
|  | 24586 |  | 
|  | 24587 |  | 
|  | 24588 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24589 |  | 
|  | 24590 |  | 
|  | 24591 |  | 
|  | 24592 |  | 
|  | 24593 |  | 
|  | 24594 |  | 
|  | 24595 |  | 
|  | 24596 |  | 
|  | 24597 |  | 
|  | 24598 |  | 
|  | 24599 |  | 
|  | 24600 |  | 
|  | 24601 |  | 
|  | 24602 |  | 
|  | 24603 |  | 
|  | 24604 |  | 
|  | 24605 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24606 |  | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 24607 | if test "$lt_cv_dlopen_self" = "yes" ; then | 
|  | 24608 |  | 
|  | 24609 | cat >>confdefs.h <<\_ACEOF | 
|  | 24610 | #define CAN_DLOPEN_SELF 1 | 
|  | 24611 | _ACEOF | 
|  | 24612 |  | 
|  | 24613 | fi | 
|  | 24614 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24615 | etags_version=`$ETAGS --version 2>&1` | 
|  | 24616 | case "$etags_version" in | 
|  | 24617 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; | 
|  | 24618 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; | 
|  | 24619 | *) ETAGSFLAGS="" ;; | 
|  | 24620 | esac | 
|  | 24621 | ETAGSFLAGS=$ETAGSFLAGS | 
|  | 24622 |  | 
|  | 24623 |  | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 24624 | if test "$WITH_LLVMGCCDIR" = "default" ; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24625 | # Extract the first word of "llvm-gcc", so it can be a program name with args. | 
|  | 24626 | set dummy llvm-gcc; ac_word=$2 | 
|  | 24627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 24628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 24629 | if test "${ac_cv_path_LLVMGCC+set}" = set; then | 
|  | 24630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24631 | else | 
|  | 24632 | case $LLVMGCC in | 
|  | 24633 | [\\/]* | ?:[\\/]*) | 
|  | 24634 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. | 
|  | 24635 | ;; | 
|  | 24636 | *) | 
|  | 24637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 24638 | for as_dir in $PATH | 
|  | 24639 | do | 
|  | 24640 | IFS=$as_save_IFS | 
|  | 24641 | test -z "$as_dir" && as_dir=. | 
|  | 24642 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 24643 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 24644 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" | 
|  | 24645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 24646 | break 2 | 
|  | 24647 | fi | 
|  | 24648 | done | 
|  | 24649 | done | 
|  | 24650 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24651 | ;; | 
|  | 24652 | esac | 
|  | 24653 | fi | 
|  | 24654 | LLVMGCC=$ac_cv_path_LLVMGCC | 
|  | 24655 |  | 
|  | 24656 | if test -n "$LLVMGCC"; then | 
|  | 24657 | echo "$as_me:$LINENO: result: $LLVMGCC" >&5 | 
|  | 24658 | echo "${ECHO_T}$LLVMGCC" >&6 | 
|  | 24659 | else | 
|  | 24660 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 24661 | echo "${ECHO_T}no" >&6 | 
|  | 24662 | fi | 
|  | 24663 |  | 
|  | 24664 | # Extract the first word of "llvm-g++", so it can be a program name with args. | 
|  | 24665 | set dummy llvm-g++; ac_word=$2 | 
|  | 24666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
|  | 24667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
|  | 24668 | if test "${ac_cv_path_LLVMGXX+set}" = set; then | 
|  | 24669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24670 | else | 
|  | 24671 | case $LLVMGXX in | 
|  | 24672 | [\\/]* | ?:[\\/]*) | 
|  | 24673 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. | 
|  | 24674 | ;; | 
|  | 24675 | *) | 
|  | 24676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 24677 | for as_dir in $PATH | 
|  | 24678 | do | 
|  | 24679 | IFS=$as_save_IFS | 
|  | 24680 | test -z "$as_dir" && as_dir=. | 
|  | 24681 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 24682 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
|  | 24683 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" | 
|  | 24684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 24685 | break 2 | 
|  | 24686 | fi | 
|  | 24687 | done | 
|  | 24688 | done | 
|  | 24689 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 24690 | ;; | 
|  | 24691 | esac | 
|  | 24692 | fi | 
|  | 24693 | LLVMGXX=$ac_cv_path_LLVMGXX | 
|  | 24694 |  | 
|  | 24695 | if test -n "$LLVMGXX"; then | 
|  | 24696 | echo "$as_me:$LINENO: result: $LLVMGXX" >&5 | 
|  | 24697 | echo "${ECHO_T}$LLVMGXX" >&6 | 
|  | 24698 | else | 
|  | 24699 | echo "$as_me:$LINENO: result: no" >&5 | 
|  | 24700 | echo "${ECHO_T}no" >&6 | 
|  | 24701 | fi | 
|  | 24702 |  | 
|  | 24703 | else | 
|  | 24704 | LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc | 
|  | 24705 | LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++ | 
|  | 24706 | LLVMGCC=$LLVMGCC | 
|  | 24707 |  | 
|  | 24708 | LLVMGXX=$LLVMGXX | 
|  | 24709 |  | 
|  | 24710 | fi | 
|  | 24711 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24712 | echo "$as_me:$LINENO: checking tool compatibility" >&5 | 
|  | 24713 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 | 
|  | 24714 |  | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24715 | ICC=no | 
|  | 24716 | IXX=no | 
|  | 24717 | case $CC in | 
|  | 24718 | icc*|icpc*) | 
|  | 24719 | ICC=yes | 
|  | 24720 | IXX=yes | 
|  | 24721 | ;; | 
|  | 24722 | *) | 
|  | 24723 | ;; | 
|  | 24724 | esac | 
|  | 24725 |  | 
|  | 24726 | if test "$GCC" != "yes" && test "$ICC" != "yes" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24727 | then | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24728 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 | 
|  | 24729 | echo "$as_me: error: gcc|icc required but not found" >&2;} | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24730 | { (exit 1); exit 1; }; } | 
|  | 24731 | fi | 
|  | 24732 |  | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24733 | if test "$GXX" != "yes" && test "$IXX" != "yes" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24734 | then | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24735 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 | 
|  | 24736 | echo "$as_me: error: g++|icc required but not found" >&2;} | 
|  | 24737 | { (exit 1); exit 1; }; } | 
|  | 24738 | fi | 
|  | 24739 |  | 
|  | 24740 | if test "$GCC" = "yes" | 
|  | 24741 | then | 
|  | 24742 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` | 
|  | 24743 | if test "$gccmajor" -lt "3" | 
|  | 24744 | then | 
|  | 24745 | { { 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] | 24746 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
|  | 24747 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24748 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24749 | fi | 
|  | 24750 |  | 
|  | 24751 | if test -z "$llvm_cv_gnu_make_command" | 
|  | 24752 | then | 
|  | 24753 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
|  | 24754 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
|  | 24755 | { (exit 1); exit 1; }; } | 
|  | 24756 | fi | 
|  | 24757 |  | 
|  | 24758 | echo "$as_me:$LINENO: result: ok" >&5 | 
|  | 24759 | echo "${ECHO_T}ok" >&6 | 
|  | 24760 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24761 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24762 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24763 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 
|  | 24764 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | 
|  | 24765 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 
|  | 24766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24767 | else | 
|  | 24768 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24769 | LIBS="-lelf  $LIBS" | 
|  | 24770 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24771 | /* confdefs.h.  */ | 
|  | 24772 | _ACEOF | 
|  | 24773 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24774 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24775 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24776 |  | 
|  | 24777 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 24778 | #ifdef __cplusplus | 
|  | 24779 | extern "C" | 
|  | 24780 | #endif | 
|  | 24781 | /* We use char because int might match the return type of a gcc2 | 
|  | 24782 | builtin and then its argument prototype would still apply.  */ | 
|  | 24783 | char elf_begin (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24784 | int | 
|  | 24785 | main () | 
|  | 24786 | { | 
|  | 24787 | elf_begin (); | 
|  | 24788 | ; | 
|  | 24789 | return 0; | 
|  | 24790 | } | 
|  | 24791 | _ACEOF | 
|  | 24792 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 24793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24794 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24795 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24796 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24797 | rm -f conftest.er1 | 
|  | 24798 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24800 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24801 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 24802 | || test ! -s conftest.err' | 
|  | 24803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24804 | (eval $ac_try) 2>&5 | 
|  | 24805 | ac_status=$? | 
|  | 24806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24807 | (exit $ac_status); }; } && | 
|  | 24808 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24810 | (eval $ac_try) 2>&5 | 
|  | 24811 | ac_status=$? | 
|  | 24812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24813 | (exit $ac_status); }; }; then | 
|  | 24814 | ac_cv_lib_elf_elf_begin=yes | 
|  | 24815 | else | 
|  | 24816 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24817 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24818 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24819 | ac_cv_lib_elf_elf_begin=no | 
|  | 24820 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24821 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 24822 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24823 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24824 | fi | 
|  | 24825 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 
|  | 24826 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | 
|  | 24827 | if test $ac_cv_lib_elf_elf_begin = yes; then | 
|  | 24828 | cat >>confdefs.h <<_ACEOF | 
|  | 24829 | #define HAVE_LIBELF 1 | 
|  | 24830 | _ACEOF | 
|  | 24831 |  | 
|  | 24832 | LIBS="-lelf $LIBS" | 
|  | 24833 |  | 
|  | 24834 | fi | 
|  | 24835 |  | 
|  | 24836 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 24837 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 | 
|  | 24838 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 | 
|  | 24839 | if test "${ac_cv_search_lt_dlopen+set}" = set; then | 
|  | 24840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24841 | else | 
|  | 24842 | ac_func_search_save_LIBS=$LIBS | 
|  | 24843 | ac_cv_search_lt_dlopen=no | 
|  | 24844 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 24845 | /* confdefs.h.  */ | 
|  | 24846 | _ACEOF | 
|  | 24847 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24848 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24849 | /* end confdefs.h.  */ | 
|  | 24850 |  | 
|  | 24851 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 24852 | #ifdef __cplusplus | 
|  | 24853 | extern "C" | 
|  | 24854 | #endif | 
|  | 24855 | /* We use char because int might match the return type of a gcc2 | 
|  | 24856 | builtin and then its argument prototype would still apply.  */ | 
|  | 24857 | char lt_dlopen (); | 
|  | 24858 | int | 
|  | 24859 | main () | 
|  | 24860 | { | 
|  | 24861 | lt_dlopen (); | 
|  | 24862 | ; | 
|  | 24863 | return 0; | 
|  | 24864 | } | 
|  | 24865 | _ACEOF | 
|  | 24866 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 24867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 24868 | (eval $ac_link) 2>conftest.er1 | 
|  | 24869 | ac_status=$? | 
|  | 24870 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24871 | rm -f conftest.er1 | 
|  | 24872 | cat conftest.err >&5 | 
|  | 24873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24874 | (exit $ac_status); } && | 
|  | 24875 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 24876 | || test ! -s conftest.err' | 
|  | 24877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24878 | (eval $ac_try) 2>&5 | 
|  | 24879 | ac_status=$? | 
|  | 24880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24881 | (exit $ac_status); }; } && | 
|  | 24882 | { ac_try='test -s conftest$ac_exeext' | 
|  | 24883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24884 | (eval $ac_try) 2>&5 | 
|  | 24885 | ac_status=$? | 
|  | 24886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24887 | (exit $ac_status); }; }; then | 
|  | 24888 | ac_cv_search_lt_dlopen="none required" | 
|  | 24889 | else | 
|  | 24890 | echo "$as_me: failed program was:" >&5 | 
|  | 24891 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24892 |  | 
|  | 24893 | fi | 
|  | 24894 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 24895 | conftest$ac_exeext conftest.$ac_ext | 
|  | 24896 | if test "$ac_cv_search_lt_dlopen" = no; then | 
|  | 24897 | for ac_lib in ltdl; do | 
|  | 24898 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 24899 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 24900 | /* confdefs.h.  */ | 
|  | 24901 | _ACEOF | 
|  | 24902 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24903 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24904 | /* end confdefs.h.  */ | 
|  | 24905 |  | 
|  | 24906 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 24907 | #ifdef __cplusplus | 
|  | 24908 | extern "C" | 
|  | 24909 | #endif | 
|  | 24910 | /* We use char because int might match the return type of a gcc2 | 
|  | 24911 | builtin and then its argument prototype would still apply.  */ | 
|  | 24912 | char lt_dlopen (); | 
|  | 24913 | int | 
|  | 24914 | main () | 
|  | 24915 | { | 
|  | 24916 | lt_dlopen (); | 
|  | 24917 | ; | 
|  | 24918 | return 0; | 
|  | 24919 | } | 
|  | 24920 | _ACEOF | 
|  | 24921 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 24922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 24923 | (eval $ac_link) 2>conftest.er1 | 
|  | 24924 | ac_status=$? | 
|  | 24925 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 24926 | rm -f conftest.er1 | 
|  | 24927 | cat conftest.err >&5 | 
|  | 24928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24929 | (exit $ac_status); } && | 
|  | 24930 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 24931 | || test ! -s conftest.err' | 
|  | 24932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24933 | (eval $ac_try) 2>&5 | 
|  | 24934 | ac_status=$? | 
|  | 24935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24936 | (exit $ac_status); }; } && | 
|  | 24937 | { ac_try='test -s conftest$ac_exeext' | 
|  | 24938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 24939 | (eval $ac_try) 2>&5 | 
|  | 24940 | ac_status=$? | 
|  | 24941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 24942 | (exit $ac_status); }; }; then | 
|  | 24943 | ac_cv_search_lt_dlopen="-l$ac_lib" | 
|  | 24944 | break | 
|  | 24945 | else | 
|  | 24946 | echo "$as_me: failed program was:" >&5 | 
|  | 24947 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 24948 |  | 
|  | 24949 | fi | 
|  | 24950 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 24951 | conftest$ac_exeext conftest.$ac_ext | 
|  | 24952 | done | 
|  | 24953 | fi | 
|  | 24954 | LIBS=$ac_func_search_save_LIBS | 
|  | 24955 | fi | 
|  | 24956 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 | 
|  | 24957 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 | 
|  | 24958 | if test "$ac_cv_search_lt_dlopen" != no; then | 
|  | 24959 | test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" | 
|  | 24960 |  | 
|  | 24961 | cat >>confdefs.h <<\_ACEOF | 
|  | 24962 | #define HAVE_LT_DLOPEN 1 | 
|  | 24963 | _ACEOF | 
|  | 24964 |  | 
|  | 24965 | else | 
|  | 24966 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might | 
|  | 24967 | not be available" >&5 | 
|  | 24968 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might | 
|  | 24969 | not be available" >&2;} | 
|  | 24970 | fi | 
|  | 24971 |  | 
|  | 24972 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24973 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
|  | 24974 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 | 
|  | 24975 | if test "${ac_cv_search_dlopen+set}" = set; then | 
|  | 24976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 24977 | else | 
|  | 24978 | ac_func_search_save_LIBS=$LIBS | 
|  | 24979 | ac_cv_search_dlopen=no | 
|  | 24980 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24981 | /* confdefs.h.  */ | 
|  | 24982 | _ACEOF | 
|  | 24983 | cat confdefs.h >>conftest.$ac_ext | 
|  | 24984 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 24985 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24986 |  | 
|  | 24987 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 24988 | #ifdef __cplusplus | 
|  | 24989 | extern "C" | 
|  | 24990 | #endif | 
|  | 24991 | /* We use char because int might match the return type of a gcc2 | 
|  | 24992 | builtin and then its argument prototype would still apply.  */ | 
|  | 24993 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24994 | int | 
|  | 24995 | main () | 
|  | 24996 | { | 
|  | 24997 | dlopen (); | 
|  | 24998 | ; | 
|  | 24999 | return 0; | 
|  | 25000 | } | 
|  | 25001 | _ACEOF | 
|  | 25002 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25004 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25005 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25006 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25007 | rm -f conftest.er1 | 
|  | 25008 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25010 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25011 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25012 | || test ! -s conftest.err' | 
|  | 25013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25014 | (eval $ac_try) 2>&5 | 
|  | 25015 | ac_status=$? | 
|  | 25016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25017 | (exit $ac_status); }; } && | 
|  | 25018 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25020 | (eval $ac_try) 2>&5 | 
|  | 25021 | ac_status=$? | 
|  | 25022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25023 | (exit $ac_status); }; }; then | 
|  | 25024 | ac_cv_search_dlopen="none required" | 
|  | 25025 | else | 
|  | 25026 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25027 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25028 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25029 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25030 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25031 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25032 | if test "$ac_cv_search_dlopen" = no; then | 
|  | 25033 | for ac_lib in dl; do | 
|  | 25034 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 25035 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25036 | /* confdefs.h.  */ | 
|  | 25037 | _ACEOF | 
|  | 25038 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25039 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25040 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25041 |  | 
|  | 25042 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25043 | #ifdef __cplusplus | 
|  | 25044 | extern "C" | 
|  | 25045 | #endif | 
|  | 25046 | /* We use char because int might match the return type of a gcc2 | 
|  | 25047 | builtin and then its argument prototype would still apply.  */ | 
|  | 25048 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25049 | int | 
|  | 25050 | main () | 
|  | 25051 | { | 
|  | 25052 | dlopen (); | 
|  | 25053 | ; | 
|  | 25054 | return 0; | 
|  | 25055 | } | 
|  | 25056 | _ACEOF | 
|  | 25057 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25059 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25060 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25061 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25062 | rm -f conftest.er1 | 
|  | 25063 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25065 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25066 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25067 | || test ! -s conftest.err' | 
|  | 25068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25069 | (eval $ac_try) 2>&5 | 
|  | 25070 | ac_status=$? | 
|  | 25071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25072 | (exit $ac_status); }; } && | 
|  | 25073 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25075 | (eval $ac_try) 2>&5 | 
|  | 25076 | ac_status=$? | 
|  | 25077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25078 | (exit $ac_status); }; }; then | 
|  | 25079 | ac_cv_search_dlopen="-l$ac_lib" | 
|  | 25080 | break | 
|  | 25081 | else | 
|  | 25082 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25083 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25084 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25085 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25086 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25087 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25088 | done | 
|  | 25089 | fi | 
|  | 25090 | LIBS=$ac_func_search_save_LIBS | 
|  | 25091 | fi | 
|  | 25092 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
|  | 25093 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 | 
|  | 25094 | if test "$ac_cv_search_dlopen" != no; then | 
|  | 25095 | 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] | 25096 |  | 
|  | 25097 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25098 | #define HAVE_DLOPEN 1 | 
|  | 25099 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25100 |  | 
|  | 25101 | else | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25102 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
|  | 25103 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25104 | fi | 
|  | 25105 |  | 
|  | 25106 |  | 
|  | 25107 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
|  | 25108 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 | 
|  | 25109 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
|  | 25110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25111 | else | 
|  | 25112 | ac_func_search_save_LIBS=$LIBS | 
|  | 25113 | ac_cv_search_mallinfo=no | 
|  | 25114 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25115 | /* confdefs.h.  */ | 
|  | 25116 | _ACEOF | 
|  | 25117 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25118 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25119 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25120 |  | 
|  | 25121 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25122 | #ifdef __cplusplus | 
|  | 25123 | extern "C" | 
|  | 25124 | #endif | 
|  | 25125 | /* We use char because int might match the return type of a gcc2 | 
|  | 25126 | builtin and then its argument prototype would still apply.  */ | 
|  | 25127 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25128 | int | 
|  | 25129 | main () | 
|  | 25130 | { | 
|  | 25131 | mallinfo (); | 
|  | 25132 | ; | 
|  | 25133 | return 0; | 
|  | 25134 | } | 
|  | 25135 | _ACEOF | 
|  | 25136 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25138 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25139 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25140 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25141 | rm -f conftest.er1 | 
|  | 25142 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25144 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25145 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25146 | || test ! -s conftest.err' | 
|  | 25147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25148 | (eval $ac_try) 2>&5 | 
|  | 25149 | ac_status=$? | 
|  | 25150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25151 | (exit $ac_status); }; } && | 
|  | 25152 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25154 | (eval $ac_try) 2>&5 | 
|  | 25155 | ac_status=$? | 
|  | 25156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25157 | (exit $ac_status); }; }; then | 
|  | 25158 | ac_cv_search_mallinfo="none required" | 
|  | 25159 | else | 
|  | 25160 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25161 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25162 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25163 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25164 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25165 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25166 | if test "$ac_cv_search_mallinfo" = no; then | 
|  | 25167 | for ac_lib in malloc; do | 
|  | 25168 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 25169 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25170 | /* confdefs.h.  */ | 
|  | 25171 | _ACEOF | 
|  | 25172 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25173 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25174 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25175 |  | 
|  | 25176 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25177 | #ifdef __cplusplus | 
|  | 25178 | extern "C" | 
|  | 25179 | #endif | 
|  | 25180 | /* We use char because int might match the return type of a gcc2 | 
|  | 25181 | builtin and then its argument prototype would still apply.  */ | 
|  | 25182 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25183 | int | 
|  | 25184 | main () | 
|  | 25185 | { | 
|  | 25186 | mallinfo (); | 
|  | 25187 | ; | 
|  | 25188 | return 0; | 
|  | 25189 | } | 
|  | 25190 | _ACEOF | 
|  | 25191 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25193 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25194 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25195 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25196 | rm -f conftest.er1 | 
|  | 25197 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25199 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25200 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25201 | || test ! -s conftest.err' | 
|  | 25202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25203 | (eval $ac_try) 2>&5 | 
|  | 25204 | ac_status=$? | 
|  | 25205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25206 | (exit $ac_status); }; } && | 
|  | 25207 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25209 | (eval $ac_try) 2>&5 | 
|  | 25210 | ac_status=$? | 
|  | 25211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25212 | (exit $ac_status); }; }; then | 
|  | 25213 | ac_cv_search_mallinfo="-l$ac_lib" | 
|  | 25214 | break | 
|  | 25215 | else | 
|  | 25216 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25217 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25218 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25219 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25220 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25221 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25222 | done | 
|  | 25223 | fi | 
|  | 25224 | LIBS=$ac_func_search_save_LIBS | 
|  | 25225 | fi | 
|  | 25226 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
|  | 25227 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 | 
|  | 25228 | if test "$ac_cv_search_mallinfo" != no; then | 
|  | 25229 | 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] | 25230 |  | 
|  | 25231 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25232 | #define HAVE_MALLINFO 1 | 
|  | 25233 | _ACEOF | 
|  | 25234 |  | 
|  | 25235 | fi | 
|  | 25236 |  | 
|  | 25237 |  | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25238 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
|  | 25239 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 | 
|  | 25240 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
|  | 25241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25242 | else | 
|  | 25243 | ac_func_search_save_LIBS=$LIBS | 
|  | 25244 | ac_cv_search_pthread_mutex_lock=no | 
|  | 25245 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25246 | /* confdefs.h.  */ | 
|  | 25247 | _ACEOF | 
|  | 25248 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25249 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25250 | /* end confdefs.h.  */ | 
|  | 25251 |  | 
|  | 25252 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25253 | #ifdef __cplusplus | 
|  | 25254 | extern "C" | 
|  | 25255 | #endif | 
|  | 25256 | /* We use char because int might match the return type of a gcc2 | 
|  | 25257 | builtin and then its argument prototype would still apply.  */ | 
|  | 25258 | char pthread_mutex_lock (); | 
|  | 25259 | int | 
|  | 25260 | main () | 
|  | 25261 | { | 
|  | 25262 | pthread_mutex_lock (); | 
|  | 25263 | ; | 
|  | 25264 | return 0; | 
|  | 25265 | } | 
|  | 25266 | _ACEOF | 
|  | 25267 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25269 | (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25270 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25271 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25272 | rm -f conftest.er1 | 
|  | 25273 | cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25275 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25276 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25277 | || test ! -s conftest.err' | 
|  | 25278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25279 | (eval $ac_try) 2>&5 | 
|  | 25280 | ac_status=$? | 
|  | 25281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25282 | (exit $ac_status); }; } && | 
|  | 25283 | { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25285 | (eval $ac_try) 2>&5 | 
|  | 25286 | ac_status=$? | 
|  | 25287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25288 | (exit $ac_status); }; }; then | 
|  | 25289 | ac_cv_search_pthread_mutex_lock="none required" | 
|  | 25290 | else | 
|  | 25291 | echo "$as_me: failed program was:" >&5 | 
|  | 25292 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25293 |  | 
|  | 25294 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25295 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25296 | conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25297 | if test "$ac_cv_search_pthread_mutex_lock" = no; then | 
|  | 25298 | for ac_lib in pthread; do | 
|  | 25299 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 25300 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25301 | /* confdefs.h.  */ | 
|  | 25302 | _ACEOF | 
|  | 25303 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25304 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25305 | /* end confdefs.h.  */ | 
|  | 25306 |  | 
|  | 25307 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25308 | #ifdef __cplusplus | 
|  | 25309 | extern "C" | 
|  | 25310 | #endif | 
|  | 25311 | /* We use char because int might match the return type of a gcc2 | 
|  | 25312 | builtin and then its argument prototype would still apply.  */ | 
|  | 25313 | char pthread_mutex_lock (); | 
|  | 25314 | int | 
|  | 25315 | main () | 
|  | 25316 | { | 
|  | 25317 | pthread_mutex_lock (); | 
|  | 25318 | ; | 
|  | 25319 | return 0; | 
|  | 25320 | } | 
|  | 25321 | _ACEOF | 
|  | 25322 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25324 | (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25325 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25326 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25327 | rm -f conftest.er1 | 
|  | 25328 | cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25330 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25331 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25332 | || test ! -s conftest.err' | 
|  | 25333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25334 | (eval $ac_try) 2>&5 | 
|  | 25335 | ac_status=$? | 
|  | 25336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25337 | (exit $ac_status); }; } && | 
|  | 25338 | { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25340 | (eval $ac_try) 2>&5 | 
|  | 25341 | ac_status=$? | 
|  | 25342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25343 | (exit $ac_status); }; }; then | 
|  | 25344 | ac_cv_search_pthread_mutex_lock="-l$ac_lib" | 
|  | 25345 | break | 
|  | 25346 | else | 
|  | 25347 | echo "$as_me: failed program was:" >&5 | 
|  | 25348 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25349 |  | 
|  | 25350 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25351 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25352 | conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25353 | done | 
|  | 25354 | fi | 
|  | 25355 | LIBS=$ac_func_search_save_LIBS | 
|  | 25356 | fi | 
|  | 25357 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
|  | 25358 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 | 
|  | 25359 | if test "$ac_cv_search_pthread_mutex_lock" != no; then | 
|  | 25360 | 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] | 25361 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 25362 | cat >>confdefs.h <<\_ACEOF | 
|  | 25363 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
|  | 25364 | _ACEOF | 
|  | 25365 |  | 
|  | 25366 | fi | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25367 |  | 
| Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 25368 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25369 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25370 |  | 
|  | 25371 |  | 
|  | 25372 |  | 
|  | 25373 |  | 
|  | 25374 |  | 
|  | 25375 | ac_header_dirent=no | 
|  | 25376 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
|  | 25377 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
|  | 25378 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
|  | 25379 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | 
|  | 25380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 25381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25382 | else | 
|  | 25383 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 25384 | /* confdefs.h.  */ | 
|  | 25385 | _ACEOF | 
|  | 25386 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25387 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25388 | /* end confdefs.h.  */ | 
|  | 25389 | #include <sys/types.h> | 
|  | 25390 | #include <$ac_hdr> | 
|  | 25391 |  | 
|  | 25392 | int | 
|  | 25393 | main () | 
|  | 25394 | { | 
|  | 25395 | if ((DIR *) 0) | 
|  | 25396 | return 0; | 
|  | 25397 | ; | 
|  | 25398 | return 0; | 
|  | 25399 | } | 
|  | 25400 | _ACEOF | 
|  | 25401 | rm -f conftest.$ac_objext | 
|  | 25402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 25403 | (eval $ac_compile) 2>conftest.er1 | 
|  | 25404 | ac_status=$? | 
|  | 25405 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25406 | rm -f conftest.er1 | 
|  | 25407 | cat conftest.err >&5 | 
|  | 25408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25409 | (exit $ac_status); } && | 
|  | 25410 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25411 | || test ! -s conftest.err' | 
|  | 25412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25413 | (eval $ac_try) 2>&5 | 
|  | 25414 | ac_status=$? | 
|  | 25415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25416 | (exit $ac_status); }; } && | 
|  | 25417 | { ac_try='test -s conftest.$ac_objext' | 
|  | 25418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25419 | (eval $ac_try) 2>&5 | 
|  | 25420 | ac_status=$? | 
|  | 25421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25422 | (exit $ac_status); }; }; then | 
|  | 25423 | eval "$as_ac_Header=yes" | 
|  | 25424 | else | 
|  | 25425 | echo "$as_me: failed program was:" >&5 | 
|  | 25426 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25427 |  | 
|  | 25428 | eval "$as_ac_Header=no" | 
|  | 25429 | fi | 
|  | 25430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 25431 | fi | 
|  | 25432 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 25433 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 25434 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 25435 | cat >>confdefs.h <<_ACEOF | 
|  | 25436 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
|  | 25437 | _ACEOF | 
|  | 25438 |  | 
|  | 25439 | ac_header_dirent=$ac_hdr; break | 
|  | 25440 | fi | 
|  | 25441 |  | 
|  | 25442 | done | 
|  | 25443 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 25444 | if test $ac_header_dirent = dirent.h; then | 
|  | 25445 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 25446 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
|  | 25447 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 25448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25449 | else | 
|  | 25450 | ac_func_search_save_LIBS=$LIBS | 
|  | 25451 | ac_cv_search_opendir=no | 
|  | 25452 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 25453 | /* confdefs.h.  */ | 
|  | 25454 | _ACEOF | 
|  | 25455 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25456 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25457 | /* end confdefs.h.  */ | 
|  | 25458 |  | 
|  | 25459 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25460 | #ifdef __cplusplus | 
|  | 25461 | extern "C" | 
|  | 25462 | #endif | 
|  | 25463 | /* We use char because int might match the return type of a gcc2 | 
|  | 25464 | builtin and then its argument prototype would still apply.  */ | 
|  | 25465 | char opendir (); | 
|  | 25466 | int | 
|  | 25467 | main () | 
|  | 25468 | { | 
|  | 25469 | opendir (); | 
|  | 25470 | ; | 
|  | 25471 | return 0; | 
|  | 25472 | } | 
|  | 25473 | _ACEOF | 
|  | 25474 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 25476 | (eval $ac_link) 2>conftest.er1 | 
|  | 25477 | ac_status=$? | 
|  | 25478 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25479 | rm -f conftest.er1 | 
|  | 25480 | cat conftest.err >&5 | 
|  | 25481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25482 | (exit $ac_status); } && | 
|  | 25483 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25484 | || test ! -s conftest.err' | 
|  | 25485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25486 | (eval $ac_try) 2>&5 | 
|  | 25487 | ac_status=$? | 
|  | 25488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25489 | (exit $ac_status); }; } && | 
|  | 25490 | { ac_try='test -s conftest$ac_exeext' | 
|  | 25491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25492 | (eval $ac_try) 2>&5 | 
|  | 25493 | ac_status=$? | 
|  | 25494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25495 | (exit $ac_status); }; }; then | 
|  | 25496 | ac_cv_search_opendir="none required" | 
|  | 25497 | else | 
|  | 25498 | echo "$as_me: failed program was:" >&5 | 
|  | 25499 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25500 |  | 
|  | 25501 | fi | 
|  | 25502 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25503 | conftest$ac_exeext conftest.$ac_ext | 
|  | 25504 | if test "$ac_cv_search_opendir" = no; then | 
|  | 25505 | for ac_lib in dir; do | 
|  | 25506 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 25507 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 25508 | /* confdefs.h.  */ | 
|  | 25509 | _ACEOF | 
|  | 25510 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25511 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25512 | /* end confdefs.h.  */ | 
|  | 25513 |  | 
|  | 25514 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25515 | #ifdef __cplusplus | 
|  | 25516 | extern "C" | 
|  | 25517 | #endif | 
|  | 25518 | /* We use char because int might match the return type of a gcc2 | 
|  | 25519 | builtin and then its argument prototype would still apply.  */ | 
|  | 25520 | char opendir (); | 
|  | 25521 | int | 
|  | 25522 | main () | 
|  | 25523 | { | 
|  | 25524 | opendir (); | 
|  | 25525 | ; | 
|  | 25526 | return 0; | 
|  | 25527 | } | 
|  | 25528 | _ACEOF | 
|  | 25529 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 25531 | (eval $ac_link) 2>conftest.er1 | 
|  | 25532 | ac_status=$? | 
|  | 25533 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25534 | rm -f conftest.er1 | 
|  | 25535 | cat conftest.err >&5 | 
|  | 25536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25537 | (exit $ac_status); } && | 
|  | 25538 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25539 | || test ! -s conftest.err' | 
|  | 25540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25541 | (eval $ac_try) 2>&5 | 
|  | 25542 | ac_status=$? | 
|  | 25543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25544 | (exit $ac_status); }; } && | 
|  | 25545 | { ac_try='test -s conftest$ac_exeext' | 
|  | 25546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25547 | (eval $ac_try) 2>&5 | 
|  | 25548 | ac_status=$? | 
|  | 25549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25550 | (exit $ac_status); }; }; then | 
|  | 25551 | ac_cv_search_opendir="-l$ac_lib" | 
|  | 25552 | break | 
|  | 25553 | else | 
|  | 25554 | echo "$as_me: failed program was:" >&5 | 
|  | 25555 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25556 |  | 
|  | 25557 | fi | 
|  | 25558 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25559 | conftest$ac_exeext conftest.$ac_ext | 
|  | 25560 | done | 
|  | 25561 | fi | 
|  | 25562 | LIBS=$ac_func_search_save_LIBS | 
|  | 25563 | fi | 
|  | 25564 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 25565 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
|  | 25566 | if test "$ac_cv_search_opendir" != no; then | 
|  | 25567 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
|  | 25568 |  | 
|  | 25569 | fi | 
|  | 25570 |  | 
|  | 25571 | else | 
|  | 25572 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
|  | 25573 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
|  | 25574 | if test "${ac_cv_search_opendir+set}" = set; then | 
|  | 25575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25576 | else | 
|  | 25577 | ac_func_search_save_LIBS=$LIBS | 
|  | 25578 | ac_cv_search_opendir=no | 
|  | 25579 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 25580 | /* confdefs.h.  */ | 
|  | 25581 | _ACEOF | 
|  | 25582 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25583 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25584 | /* end confdefs.h.  */ | 
|  | 25585 |  | 
|  | 25586 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25587 | #ifdef __cplusplus | 
|  | 25588 | extern "C" | 
|  | 25589 | #endif | 
|  | 25590 | /* We use char because int might match the return type of a gcc2 | 
|  | 25591 | builtin and then its argument prototype would still apply.  */ | 
|  | 25592 | char opendir (); | 
|  | 25593 | int | 
|  | 25594 | main () | 
|  | 25595 | { | 
|  | 25596 | opendir (); | 
|  | 25597 | ; | 
|  | 25598 | return 0; | 
|  | 25599 | } | 
|  | 25600 | _ACEOF | 
|  | 25601 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 25603 | (eval $ac_link) 2>conftest.er1 | 
|  | 25604 | ac_status=$? | 
|  | 25605 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25606 | rm -f conftest.er1 | 
|  | 25607 | cat conftest.err >&5 | 
|  | 25608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25609 | (exit $ac_status); } && | 
|  | 25610 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25611 | || test ! -s conftest.err' | 
|  | 25612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25613 | (eval $ac_try) 2>&5 | 
|  | 25614 | ac_status=$? | 
|  | 25615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25616 | (exit $ac_status); }; } && | 
|  | 25617 | { ac_try='test -s conftest$ac_exeext' | 
|  | 25618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25619 | (eval $ac_try) 2>&5 | 
|  | 25620 | ac_status=$? | 
|  | 25621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25622 | (exit $ac_status); }; }; then | 
|  | 25623 | ac_cv_search_opendir="none required" | 
|  | 25624 | else | 
|  | 25625 | echo "$as_me: failed program was:" >&5 | 
|  | 25626 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25627 |  | 
|  | 25628 | fi | 
|  | 25629 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25630 | conftest$ac_exeext conftest.$ac_ext | 
|  | 25631 | if test "$ac_cv_search_opendir" = no; then | 
|  | 25632 | for ac_lib in x; do | 
|  | 25633 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 25634 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 25635 | /* confdefs.h.  */ | 
|  | 25636 | _ACEOF | 
|  | 25637 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25638 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25639 | /* end confdefs.h.  */ | 
|  | 25640 |  | 
|  | 25641 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 25642 | #ifdef __cplusplus | 
|  | 25643 | extern "C" | 
|  | 25644 | #endif | 
|  | 25645 | /* We use char because int might match the return type of a gcc2 | 
|  | 25646 | builtin and then its argument prototype would still apply.  */ | 
|  | 25647 | char opendir (); | 
|  | 25648 | int | 
|  | 25649 | main () | 
|  | 25650 | { | 
|  | 25651 | opendir (); | 
|  | 25652 | ; | 
|  | 25653 | return 0; | 
|  | 25654 | } | 
|  | 25655 | _ACEOF | 
|  | 25656 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 25657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 25658 | (eval $ac_link) 2>conftest.er1 | 
|  | 25659 | ac_status=$? | 
|  | 25660 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25661 | rm -f conftest.er1 | 
|  | 25662 | cat conftest.err >&5 | 
|  | 25663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25664 | (exit $ac_status); } && | 
|  | 25665 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25666 | || test ! -s conftest.err' | 
|  | 25667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25668 | (eval $ac_try) 2>&5 | 
|  | 25669 | ac_status=$? | 
|  | 25670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25671 | (exit $ac_status); }; } && | 
|  | 25672 | { ac_try='test -s conftest$ac_exeext' | 
|  | 25673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25674 | (eval $ac_try) 2>&5 | 
|  | 25675 | ac_status=$? | 
|  | 25676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25677 | (exit $ac_status); }; }; then | 
|  | 25678 | ac_cv_search_opendir="-l$ac_lib" | 
|  | 25679 | break | 
|  | 25680 | else | 
|  | 25681 | echo "$as_me: failed program was:" >&5 | 
|  | 25682 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25683 |  | 
|  | 25684 | fi | 
|  | 25685 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 25686 | conftest$ac_exeext conftest.$ac_ext | 
|  | 25687 | done | 
|  | 25688 | fi | 
|  | 25689 | LIBS=$ac_func_search_save_LIBS | 
|  | 25690 | fi | 
|  | 25691 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
|  | 25692 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
|  | 25693 | if test "$ac_cv_search_opendir" != no; then | 
|  | 25694 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
|  | 25695 |  | 
|  | 25696 | fi | 
|  | 25697 |  | 
|  | 25698 | fi | 
|  | 25699 |  | 
|  | 25700 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
|  | 25701 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 | 
|  | 25702 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
|  | 25703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25704 | else | 
|  | 25705 | ac_ext=c | 
|  | 25706 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 25707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 25708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 25709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 25710 |  | 
|  | 25711 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 25712 | /* confdefs.h.  */ | 
|  | 25713 | _ACEOF | 
|  | 25714 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25715 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25716 | /* end confdefs.h.  */ | 
|  | 25717 | #include <sys/mman.h> | 
|  | 25718 | #include <unistd.h> | 
|  | 25719 | #include <fcntl.h> | 
|  | 25720 | int | 
|  | 25721 | main () | 
|  | 25722 | { | 
|  | 25723 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
|  | 25724 | ; | 
|  | 25725 | return 0; | 
|  | 25726 | } | 
|  | 25727 | _ACEOF | 
|  | 25728 | rm -f conftest.$ac_objext | 
|  | 25729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 25730 | (eval $ac_compile) 2>conftest.er1 | 
|  | 25731 | ac_status=$? | 
|  | 25732 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25733 | rm -f conftest.er1 | 
|  | 25734 | cat conftest.err >&5 | 
|  | 25735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25736 | (exit $ac_status); } && | 
|  | 25737 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25738 | || test ! -s conftest.err' | 
|  | 25739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25740 | (eval $ac_try) 2>&5 | 
|  | 25741 | ac_status=$? | 
|  | 25742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25743 | (exit $ac_status); }; } && | 
|  | 25744 | { ac_try='test -s conftest.$ac_objext' | 
|  | 25745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25746 | (eval $ac_try) 2>&5 | 
|  | 25747 | ac_status=$? | 
|  | 25748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25749 | (exit $ac_status); }; }; then | 
|  | 25750 | ac_cv_header_mmap_anon=yes | 
|  | 25751 | else | 
|  | 25752 | echo "$as_me: failed program was:" >&5 | 
|  | 25753 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25754 |  | 
|  | 25755 | ac_cv_header_mmap_anon=no | 
|  | 25756 | fi | 
|  | 25757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 25758 | ac_ext=c | 
|  | 25759 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 25760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 25761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 25762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 25763 |  | 
|  | 25764 |  | 
|  | 25765 | fi | 
|  | 25766 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
|  | 25767 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 | 
|  | 25768 | if test "$ac_cv_header_mmap_anon" = yes; then | 
|  | 25769 |  | 
|  | 25770 | cat >>confdefs.h <<\_ACEOF | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 25771 | #define HAVE_MMAP_ANONYMOUS 1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25772 | _ACEOF | 
|  | 25773 |  | 
|  | 25774 | fi | 
|  | 25775 |  | 
|  | 25776 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | 
|  | 25777 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | 
|  | 25778 | if test "${ac_cv_header_stat_broken+set}" = set; then | 
|  | 25779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25780 | else | 
|  | 25781 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 25782 | /* confdefs.h.  */ | 
|  | 25783 | _ACEOF | 
|  | 25784 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25785 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25786 | /* end confdefs.h.  */ | 
|  | 25787 | #include <sys/types.h> | 
|  | 25788 | #include <sys/stat.h> | 
|  | 25789 |  | 
|  | 25790 | #if defined(S_ISBLK) && defined(S_IFDIR) | 
|  | 25791 | # if S_ISBLK (S_IFDIR) | 
|  | 25792 | You lose. | 
|  | 25793 | # endif | 
|  | 25794 | #endif | 
|  | 25795 |  | 
|  | 25796 | #if defined(S_ISBLK) && defined(S_IFCHR) | 
|  | 25797 | # if S_ISBLK (S_IFCHR) | 
|  | 25798 | You lose. | 
|  | 25799 | # endif | 
|  | 25800 | #endif | 
|  | 25801 |  | 
|  | 25802 | #if defined(S_ISLNK) && defined(S_IFREG) | 
|  | 25803 | # if S_ISLNK (S_IFREG) | 
|  | 25804 | You lose. | 
|  | 25805 | # endif | 
|  | 25806 | #endif | 
|  | 25807 |  | 
|  | 25808 | #if defined(S_ISSOCK) && defined(S_IFREG) | 
|  | 25809 | # if S_ISSOCK (S_IFREG) | 
|  | 25810 | You lose. | 
|  | 25811 | # endif | 
|  | 25812 | #endif | 
|  | 25813 |  | 
|  | 25814 | _ACEOF | 
|  | 25815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 25816 | $EGREP "You lose" >/dev/null 2>&1; then | 
|  | 25817 | ac_cv_header_stat_broken=yes | 
|  | 25818 | else | 
|  | 25819 | ac_cv_header_stat_broken=no | 
|  | 25820 | fi | 
|  | 25821 | rm -f conftest* | 
|  | 25822 |  | 
|  | 25823 | fi | 
|  | 25824 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 | 
|  | 25825 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | 
|  | 25826 | if test $ac_cv_header_stat_broken = yes; then | 
|  | 25827 |  | 
|  | 25828 | cat >>confdefs.h <<\_ACEOF | 
|  | 25829 | #define STAT_MACROS_BROKEN 1 | 
|  | 25830 | _ACEOF | 
|  | 25831 |  | 
|  | 25832 | fi | 
|  | 25833 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25834 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
|  | 25835 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
|  | 25836 | if test "${ac_cv_header_stdc+set}" = set; then | 
|  | 25837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 25838 | else | 
|  | 25839 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25840 | /* confdefs.h.  */ | 
|  | 25841 | _ACEOF | 
|  | 25842 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25843 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25844 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25845 | #include <stdlib.h> | 
|  | 25846 | #include <stdarg.h> | 
|  | 25847 | #include <string.h> | 
|  | 25848 | #include <float.h> | 
|  | 25849 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25850 | int | 
|  | 25851 | main () | 
|  | 25852 | { | 
|  | 25853 |  | 
|  | 25854 | ; | 
|  | 25855 | return 0; | 
|  | 25856 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25857 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25858 | rm -f conftest.$ac_objext | 
|  | 25859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25860 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25861 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25862 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 25863 | rm -f conftest.er1 | 
|  | 25864 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25866 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25867 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 25868 | || test ! -s conftest.err' | 
|  | 25869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25870 | (eval $ac_try) 2>&5 | 
|  | 25871 | ac_status=$? | 
|  | 25872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25873 | (exit $ac_status); }; } && | 
|  | 25874 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25876 | (eval $ac_try) 2>&5 | 
|  | 25877 | ac_status=$? | 
|  | 25878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25879 | (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25880 | ac_cv_header_stdc=yes | 
|  | 25881 | else | 
|  | 25882 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25883 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25884 |  | 
|  | 25885 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25886 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25888 |  | 
|  | 25889 | if test $ac_cv_header_stdc = yes; then | 
|  | 25890 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 25891 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25892 | /* confdefs.h.  */ | 
|  | 25893 | _ACEOF | 
|  | 25894 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25895 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25896 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25897 | #include <string.h> | 
|  | 25898 |  | 
|  | 25899 | _ACEOF | 
|  | 25900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25901 | $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25902 | : | 
|  | 25903 | else | 
|  | 25904 | ac_cv_header_stdc=no | 
|  | 25905 | fi | 
|  | 25906 | rm -f conftest* | 
|  | 25907 |  | 
|  | 25908 | fi | 
|  | 25909 |  | 
|  | 25910 | if test $ac_cv_header_stdc = yes; then | 
|  | 25911 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 25912 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25913 | /* confdefs.h.  */ | 
|  | 25914 | _ACEOF | 
|  | 25915 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25916 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25917 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25918 | #include <stdlib.h> | 
|  | 25919 |  | 
|  | 25920 | _ACEOF | 
|  | 25921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25922 | $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25923 | : | 
|  | 25924 | else | 
|  | 25925 | ac_cv_header_stdc=no | 
|  | 25926 | fi | 
|  | 25927 | rm -f conftest* | 
|  | 25928 |  | 
|  | 25929 | fi | 
|  | 25930 |  | 
|  | 25931 | if test $ac_cv_header_stdc = yes; then | 
|  | 25932 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 25933 | if test "$cross_compiling" = yes; then | 
|  | 25934 | : | 
|  | 25935 | else | 
|  | 25936 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25937 | /* confdefs.h.  */ | 
|  | 25938 | _ACEOF | 
|  | 25939 | cat confdefs.h >>conftest.$ac_ext | 
|  | 25940 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 25941 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25942 | #include <ctype.h> | 
|  | 25943 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 25944 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 25945 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 25946 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25947 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25948 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 25949 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 25950 | || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25951 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 25952 | #endif | 
|  | 25953 |  | 
|  | 25954 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 25955 | int | 
|  | 25956 | main () | 
|  | 25957 | { | 
|  | 25958 | int i; | 
|  | 25959 | for (i = 0; i < 256; i++) | 
|  | 25960 | if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25961 | || toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25962 | exit(2); | 
|  | 25963 | exit (0); | 
|  | 25964 | } | 
|  | 25965 | _ACEOF | 
|  | 25966 | rm -f conftest$ac_exeext | 
|  | 25967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 25968 | (eval $ac_link) 2>&5 | 
|  | 25969 | ac_status=$? | 
|  | 25970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25971 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 25972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 25973 | (eval $ac_try) 2>&5 | 
|  | 25974 | ac_status=$? | 
|  | 25975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 25976 | (exit $ac_status); }; }; then | 
|  | 25977 | : | 
|  | 25978 | else | 
|  | 25979 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 25980 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25981 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 25982 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25983 | ( exit $ac_status ) | 
|  | 25984 | ac_cv_header_stdc=no | 
|  | 25985 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25986 | 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] | 25987 | fi | 
|  | 25988 | fi | 
|  | 25989 | fi | 
|  | 25990 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
|  | 25991 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
|  | 25992 | if test $ac_cv_header_stdc = yes; then | 
|  | 25993 |  | 
|  | 25994 | cat >>confdefs.h <<\_ACEOF | 
|  | 25995 | #define STDC_HEADERS 1 | 
|  | 25996 | _ACEOF | 
|  | 25997 |  | 
|  | 25998 | fi | 
|  | 25999 |  | 
|  | 26000 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
|  | 26001 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | 
|  | 26002 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
|  | 26003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26004 | else | 
|  | 26005 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26006 | /* confdefs.h.  */ | 
|  | 26007 | _ACEOF | 
|  | 26008 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26009 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26010 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26011 | #include <sys/types.h> | 
|  | 26012 | #include <sys/wait.h> | 
|  | 26013 | #ifndef WEXITSTATUS | 
|  | 26014 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
|  | 26015 | #endif | 
|  | 26016 | #ifndef WIFEXITED | 
|  | 26017 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
|  | 26018 | #endif | 
|  | 26019 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26020 | int | 
|  | 26021 | main () | 
|  | 26022 | { | 
|  | 26023 | int s; | 
|  | 26024 | wait (&s); | 
|  | 26025 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
|  | 26026 | ; | 
|  | 26027 | return 0; | 
|  | 26028 | } | 
|  | 26029 | _ACEOF | 
|  | 26030 | rm -f conftest.$ac_objext | 
|  | 26031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26032 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26033 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26034 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26035 | rm -f conftest.er1 | 
|  | 26036 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26038 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26039 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26040 | || test ! -s conftest.err' | 
|  | 26041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26042 | (eval $ac_try) 2>&5 | 
|  | 26043 | ac_status=$? | 
|  | 26044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26045 | (exit $ac_status); }; } && | 
|  | 26046 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26048 | (eval $ac_try) 2>&5 | 
|  | 26049 | ac_status=$? | 
|  | 26050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26051 | (exit $ac_status); }; }; then | 
|  | 26052 | ac_cv_header_sys_wait_h=yes | 
|  | 26053 | else | 
|  | 26054 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26055 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26056 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26057 | ac_cv_header_sys_wait_h=no | 
|  | 26058 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26060 | fi | 
|  | 26061 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
|  | 26062 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | 
|  | 26063 | if test $ac_cv_header_sys_wait_h = yes; then | 
|  | 26064 |  | 
|  | 26065 | cat >>confdefs.h <<\_ACEOF | 
|  | 26066 | #define HAVE_SYS_WAIT_H 1 | 
|  | 26067 | _ACEOF | 
|  | 26068 |  | 
|  | 26069 | fi | 
|  | 26070 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26071 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
|  | 26072 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | 
|  | 26073 | if test "${ac_cv_header_time+set}" = set; then | 
|  | 26074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26075 | else | 
|  | 26076 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 26077 | /* confdefs.h.  */ | 
|  | 26078 | _ACEOF | 
|  | 26079 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26080 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26081 | /* end confdefs.h.  */ | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26082 | #include <sys/types.h> | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26083 | #include <sys/time.h> | 
|  | 26084 | #include <time.h> | 
|  | 26085 |  | 
|  | 26086 | int | 
|  | 26087 | main () | 
|  | 26088 | { | 
|  | 26089 | if ((struct tm *) 0) | 
|  | 26090 | return 0; | 
|  | 26091 | ; | 
|  | 26092 | return 0; | 
|  | 26093 | } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26094 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26095 | rm -f conftest.$ac_objext | 
|  | 26096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 26097 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26098 | ac_status=$? | 
|  | 26099 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26100 | rm -f conftest.er1 | 
|  | 26101 | cat conftest.err >&5 | 
|  | 26102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26103 | (exit $ac_status); } && | 
|  | 26104 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26105 | || test ! -s conftest.err' | 
|  | 26106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26107 | (eval $ac_try) 2>&5 | 
|  | 26108 | ac_status=$? | 
|  | 26109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26110 | (exit $ac_status); }; } && | 
|  | 26111 | { ac_try='test -s conftest.$ac_objext' | 
|  | 26112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26113 | (eval $ac_try) 2>&5 | 
|  | 26114 | ac_status=$? | 
|  | 26115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26116 | (exit $ac_status); }; }; then | 
|  | 26117 | ac_cv_header_time=yes | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26118 | else | 
|  | 26119 | echo "$as_me: failed program was:" >&5 | 
|  | 26120 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26121 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26122 | ac_cv_header_time=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26123 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 26125 | fi | 
|  | 26126 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
|  | 26127 | echo "${ECHO_T}$ac_cv_header_time" >&6 | 
|  | 26128 | if test $ac_cv_header_time = yes; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26129 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26130 | cat >>confdefs.h <<\_ACEOF | 
|  | 26131 | #define TIME_WITH_SYS_TIME 1 | 
|  | 26132 | _ACEOF | 
|  | 26133 |  | 
|  | 26134 | fi | 
|  | 26135 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26136 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26137 |  | 
|  | 26138 |  | 
|  | 26139 |  | 
|  | 26140 |  | 
|  | 26141 |  | 
|  | 26142 |  | 
|  | 26143 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h | 
|  | 26144 | do | 
|  | 26145 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 26146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26147 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 26148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 26149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26151 | fi | 
|  | 26152 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 26153 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 26154 | else | 
|  | 26155 | # Is the header compilable? | 
|  | 26156 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 26157 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 26158 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26159 | /* confdefs.h.  */ | 
|  | 26160 | _ACEOF | 
|  | 26161 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26162 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26163 | /* end confdefs.h.  */ | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26164 | $ac_includes_default | 
|  | 26165 | #include <$ac_header> | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26166 | _ACEOF | 
|  | 26167 | rm -f conftest.$ac_objext | 
|  | 26168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 26169 | (eval $ac_compile) 2>conftest.er1 | 
|  | 26170 | ac_status=$? | 
|  | 26171 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26172 | rm -f conftest.er1 | 
|  | 26173 | cat conftest.err >&5 | 
|  | 26174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26175 | (exit $ac_status); } && | 
|  | 26176 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26177 | || test ! -s conftest.err' | 
|  | 26178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26179 | (eval $ac_try) 2>&5 | 
|  | 26180 | ac_status=$? | 
|  | 26181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26182 | (exit $ac_status); }; } && | 
|  | 26183 | { ac_try='test -s conftest.$ac_objext' | 
|  | 26184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26185 | (eval $ac_try) 2>&5 | 
|  | 26186 | ac_status=$? | 
|  | 26187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26188 | (exit $ac_status); }; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26189 | ac_header_compiler=yes | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26190 | else | 
|  | 26191 | echo "$as_me: failed program was:" >&5 | 
|  | 26192 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26193 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26194 | ac_header_compiler=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26195 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26197 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 26198 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26199 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26200 | # Is the header present? | 
|  | 26201 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 26202 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 26203 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 26204 | /* confdefs.h.  */ | 
|  | 26205 | _ACEOF | 
|  | 26206 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26207 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26208 | /* end confdefs.h.  */ | 
|  | 26209 | #include <$ac_header> | 
|  | 26210 | _ACEOF | 
|  | 26211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 26212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 26213 | ac_status=$? | 
|  | 26214 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26215 | rm -f conftest.er1 | 
|  | 26216 | cat conftest.err >&5 | 
|  | 26217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26218 | (exit $ac_status); } >/dev/null; then | 
|  | 26219 | if test -s conftest.err; then | 
|  | 26220 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 26221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 26222 | else | 
|  | 26223 | ac_cpp_err= | 
|  | 26224 | fi | 
|  | 26225 | else | 
|  | 26226 | ac_cpp_err=yes | 
|  | 26227 | fi | 
|  | 26228 | if test -z "$ac_cpp_err"; then | 
|  | 26229 | ac_header_preproc=yes | 
|  | 26230 | else | 
|  | 26231 | echo "$as_me: failed program was:" >&5 | 
|  | 26232 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26233 |  | 
|  | 26234 | ac_header_preproc=no | 
|  | 26235 | fi | 
|  | 26236 | rm -f conftest.err conftest.$ac_ext | 
|  | 26237 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 26238 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 26239 |  | 
|  | 26240 | # So?  What about this header? | 
|  | 26241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 26242 | yes:no: ) | 
|  | 26243 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 26244 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 26245 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 26246 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 26247 | ac_header_preproc=yes | 
|  | 26248 | ;; | 
|  | 26249 | no:yes:* ) | 
|  | 26250 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 26251 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 26252 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 26253 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 26254 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 26255 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 26256 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 26257 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 26258 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 26259 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 26260 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 26261 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 26262 | ( | 
|  | 26263 | cat <<\_ASBOX | 
|  | 26264 | ## ----------------------------------- ## | 
|  | 26265 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 26266 | ## ----------------------------------- ## | 
|  | 26267 | _ASBOX | 
|  | 26268 | ) | | 
|  | 26269 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 26270 | ;; | 
|  | 26271 | esac | 
|  | 26272 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 26273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 26274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26276 | else | 
|  | 26277 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 26278 | fi | 
|  | 26279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 26280 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26281 |  | 
|  | 26282 | fi | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26283 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 26284 | cat >>confdefs.h <<_ACEOF | 
|  | 26285 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26286 | _ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26287 |  | 
|  | 26288 | fi | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26289 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26290 | done | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26291 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26292 |  | 
|  | 26293 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26294 |  | 
|  | 26295 |  | 
|  | 26296 |  | 
|  | 26297 |  | 
|  | 26298 | for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h | 
|  | 26299 | do | 
|  | 26300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 26301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26302 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 26303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 26304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26306 | fi | 
|  | 26307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 26308 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 26309 | else | 
|  | 26310 | # Is the header compilable? | 
|  | 26311 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 26312 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 26313 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 26314 | /* confdefs.h.  */ | 
|  | 26315 | _ACEOF | 
|  | 26316 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26317 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26318 | /* end confdefs.h.  */ | 
|  | 26319 | $ac_includes_default | 
|  | 26320 | #include <$ac_header> | 
|  | 26321 | _ACEOF | 
|  | 26322 | rm -f conftest.$ac_objext | 
|  | 26323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 26324 | (eval $ac_compile) 2>conftest.er1 | 
|  | 26325 | ac_status=$? | 
|  | 26326 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26327 | rm -f conftest.er1 | 
|  | 26328 | cat conftest.err >&5 | 
|  | 26329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26330 | (exit $ac_status); } && | 
|  | 26331 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26332 | || test ! -s conftest.err' | 
|  | 26333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26334 | (eval $ac_try) 2>&5 | 
|  | 26335 | ac_status=$? | 
|  | 26336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26337 | (exit $ac_status); }; } && | 
|  | 26338 | { ac_try='test -s conftest.$ac_objext' | 
|  | 26339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26340 | (eval $ac_try) 2>&5 | 
|  | 26341 | ac_status=$? | 
|  | 26342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26343 | (exit $ac_status); }; }; then | 
|  | 26344 | ac_header_compiler=yes | 
|  | 26345 | else | 
|  | 26346 | echo "$as_me: failed program was:" >&5 | 
|  | 26347 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26348 |  | 
|  | 26349 | ac_header_compiler=no | 
|  | 26350 | fi | 
|  | 26351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 26352 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 26353 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 26354 |  | 
|  | 26355 | # Is the header present? | 
|  | 26356 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 26357 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 26358 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 26359 | /* confdefs.h.  */ | 
|  | 26360 | _ACEOF | 
|  | 26361 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26362 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26363 | /* end confdefs.h.  */ | 
|  | 26364 | #include <$ac_header> | 
|  | 26365 | _ACEOF | 
|  | 26366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 26367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 26368 | ac_status=$? | 
|  | 26369 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26370 | rm -f conftest.er1 | 
|  | 26371 | cat conftest.err >&5 | 
|  | 26372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26373 | (exit $ac_status); } >/dev/null; then | 
|  | 26374 | if test -s conftest.err; then | 
|  | 26375 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 26376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 26377 | else | 
|  | 26378 | ac_cpp_err= | 
|  | 26379 | fi | 
|  | 26380 | else | 
|  | 26381 | ac_cpp_err=yes | 
|  | 26382 | fi | 
|  | 26383 | if test -z "$ac_cpp_err"; then | 
|  | 26384 | ac_header_preproc=yes | 
|  | 26385 | else | 
|  | 26386 | echo "$as_me: failed program was:" >&5 | 
|  | 26387 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26388 |  | 
|  | 26389 | ac_header_preproc=no | 
|  | 26390 | fi | 
|  | 26391 | rm -f conftest.err conftest.$ac_ext | 
|  | 26392 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 26393 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 26394 |  | 
|  | 26395 | # So?  What about this header? | 
|  | 26396 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 26397 | yes:no: ) | 
|  | 26398 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 26399 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 26400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 26401 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 26402 | ac_header_preproc=yes | 
|  | 26403 | ;; | 
|  | 26404 | no:yes:* ) | 
|  | 26405 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 26406 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 26407 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 26408 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 26409 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 26410 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 26411 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 26412 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 26413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 26414 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 26415 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 26416 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 26417 | ( | 
|  | 26418 | cat <<\_ASBOX | 
|  | 26419 | ## ----------------------------------- ## | 
|  | 26420 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 26421 | ## ----------------------------------- ## | 
|  | 26422 | _ASBOX | 
|  | 26423 | ) | | 
|  | 26424 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 26425 | ;; | 
|  | 26426 | esac | 
|  | 26427 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 26428 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 26429 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26431 | else | 
|  | 26432 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 26433 | fi | 
|  | 26434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 26435 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 26436 |  | 
|  | 26437 | fi | 
|  | 26438 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 26439 | cat >>confdefs.h <<_ACEOF | 
|  | 26440 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 26441 | _ACEOF | 
|  | 26442 |  | 
|  | 26443 | fi | 
|  | 26444 |  | 
|  | 26445 | done | 
|  | 26446 |  | 
|  | 26447 |  | 
|  | 26448 |  | 
|  | 26449 |  | 
|  | 26450 |  | 
|  | 26451 |  | 
|  | 26452 | 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] | 26453 | do | 
|  | 26454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 26455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 26457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 26458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26460 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 26462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26463 | else | 
|  | 26464 | # Is the header compilable? | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26465 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 26466 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26467 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26468 | /* confdefs.h.  */ | 
|  | 26469 | _ACEOF | 
|  | 26470 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26471 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26472 | /* end confdefs.h.  */ | 
|  | 26473 | $ac_includes_default | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26474 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26475 | _ACEOF | 
|  | 26476 | rm -f conftest.$ac_objext | 
|  | 26477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26478 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26479 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26480 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26481 | rm -f conftest.er1 | 
|  | 26482 | cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26484 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26485 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26486 | || test ! -s conftest.err' | 
|  | 26487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26488 | (eval $ac_try) 2>&5 | 
|  | 26489 | ac_status=$? | 
|  | 26490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26491 | (exit $ac_status); }; } && | 
|  | 26492 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 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); }; }; then | 
|  | 26498 | ac_header_compiler=yes | 
|  | 26499 | else | 
|  | 26500 | echo "$as_me: failed program was:" >&5 | 
|  | 26501 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26502 |  | 
|  | 26503 | ac_header_compiler=no | 
|  | 26504 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26506 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 26507 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 26508 |  | 
|  | 26509 | # Is the header present? | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26510 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 26511 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26512 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26513 | /* confdefs.h.  */ | 
|  | 26514 | _ACEOF | 
|  | 26515 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26516 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26517 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26518 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26519 | _ACEOF | 
|  | 26520 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 26521 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 26522 | ac_status=$? | 
|  | 26523 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26524 | rm -f conftest.er1 | 
|  | 26525 | cat conftest.err >&5 | 
|  | 26526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26527 | (exit $ac_status); } >/dev/null; then | 
|  | 26528 | if test -s conftest.err; then | 
|  | 26529 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26530 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26531 | else | 
|  | 26532 | ac_cpp_err= | 
|  | 26533 | fi | 
|  | 26534 | else | 
|  | 26535 | ac_cpp_err=yes | 
|  | 26536 | fi | 
|  | 26537 | if test -z "$ac_cpp_err"; then | 
|  | 26538 | ac_header_preproc=yes | 
|  | 26539 | else | 
|  | 26540 | echo "$as_me: failed program was:" >&5 | 
|  | 26541 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26542 |  | 
|  | 26543 | ac_header_preproc=no | 
|  | 26544 | fi | 
|  | 26545 | rm -f conftest.err conftest.$ac_ext | 
|  | 26546 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 26547 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 26548 |  | 
|  | 26549 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26550 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 26551 | yes:no: ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26552 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 26553 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 26554 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 26555 | 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] | 26556 | ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 26557 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26558 | no:yes:* ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26559 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 26560 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 26561 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 26562 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 26563 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 26564 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 26565 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 26566 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 26567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 26568 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 26569 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 26570 | 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] | 26571 | ( | 
|  | 26572 | cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26573 | ## ----------------------------------- ## | 
|  | 26574 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 26575 | ## ----------------------------------- ## | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26576 | _ASBOX | 
|  | 26577 | ) | | 
|  | 26578 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 26579 | ;; | 
|  | 26580 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 26582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 26583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26585 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26586 | eval "$as_ac_Header=\$ac_header_preproc" | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26587 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 26589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26590 |  | 
|  | 26591 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 26593 | cat >>confdefs.h <<_ACEOF | 
|  | 26594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26595 | _ACEOF | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26596 |  | 
|  | 26597 | fi | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26598 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26599 | done | 
|  | 26600 |  | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26601 |  | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26602 |  | 
| Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 26603 | for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h | 
|  | 26604 | do | 
|  | 26605 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 26606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26607 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 26608 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 26609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26611 | fi | 
|  | 26612 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 26613 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 26614 | else | 
|  | 26615 | # Is the header compilable? | 
|  | 26616 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 26617 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 26618 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 26619 | /* confdefs.h.  */ | 
|  | 26620 | _ACEOF | 
|  | 26621 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26622 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26623 | /* end confdefs.h.  */ | 
|  | 26624 | $ac_includes_default | 
|  | 26625 | #include <$ac_header> | 
|  | 26626 | _ACEOF | 
|  | 26627 | rm -f conftest.$ac_objext | 
|  | 26628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 26629 | (eval $ac_compile) 2>conftest.er1 | 
|  | 26630 | ac_status=$? | 
|  | 26631 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26632 | rm -f conftest.er1 | 
|  | 26633 | cat conftest.err >&5 | 
|  | 26634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26635 | (exit $ac_status); } && | 
|  | 26636 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26637 | || test ! -s conftest.err' | 
|  | 26638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26639 | (eval $ac_try) 2>&5 | 
|  | 26640 | ac_status=$? | 
|  | 26641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26642 | (exit $ac_status); }; } && | 
|  | 26643 | { ac_try='test -s conftest.$ac_objext' | 
|  | 26644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26645 | (eval $ac_try) 2>&5 | 
|  | 26646 | ac_status=$? | 
|  | 26647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26648 | (exit $ac_status); }; }; then | 
|  | 26649 | ac_header_compiler=yes | 
|  | 26650 | else | 
|  | 26651 | echo "$as_me: failed program was:" >&5 | 
|  | 26652 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26653 |  | 
|  | 26654 | ac_header_compiler=no | 
|  | 26655 | fi | 
|  | 26656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 26657 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 26658 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 26659 |  | 
|  | 26660 | # Is the header present? | 
|  | 26661 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 26662 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 26663 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 26664 | /* confdefs.h.  */ | 
|  | 26665 | _ACEOF | 
|  | 26666 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26667 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26668 | /* end confdefs.h.  */ | 
|  | 26669 | #include <$ac_header> | 
|  | 26670 | _ACEOF | 
|  | 26671 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 26672 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 26673 | ac_status=$? | 
|  | 26674 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26675 | rm -f conftest.er1 | 
|  | 26676 | cat conftest.err >&5 | 
|  | 26677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26678 | (exit $ac_status); } >/dev/null; then | 
|  | 26679 | if test -s conftest.err; then | 
|  | 26680 | ac_cpp_err=$ac_c_preproc_warn_flag | 
|  | 26681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
|  | 26682 | else | 
|  | 26683 | ac_cpp_err= | 
|  | 26684 | fi | 
|  | 26685 | else | 
|  | 26686 | ac_cpp_err=yes | 
|  | 26687 | fi | 
|  | 26688 | if test -z "$ac_cpp_err"; then | 
|  | 26689 | ac_header_preproc=yes | 
|  | 26690 | else | 
|  | 26691 | echo "$as_me: failed program was:" >&5 | 
|  | 26692 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26693 |  | 
|  | 26694 | ac_header_preproc=no | 
|  | 26695 | fi | 
|  | 26696 | rm -f conftest.err conftest.$ac_ext | 
|  | 26697 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 26698 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 26699 |  | 
|  | 26700 | # So?  What about this header? | 
|  | 26701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 26702 | yes:no: ) | 
|  | 26703 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 26704 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 26705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 26706 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 26707 | ac_header_preproc=yes | 
|  | 26708 | ;; | 
|  | 26709 | no:yes:* ) | 
|  | 26710 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 26711 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
|  | 26712 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 26713 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 26714 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 26715 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 26716 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 26717 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 26718 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 26719 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
|  | 26720 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 26721 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
|  | 26722 | ( | 
|  | 26723 | cat <<\_ASBOX | 
|  | 26724 | ## ----------------------------------- ## | 
|  | 26725 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 26726 | ## ----------------------------------- ## | 
|  | 26727 | _ASBOX | 
|  | 26728 | ) | | 
|  | 26729 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 26730 | ;; | 
|  | 26731 | esac | 
|  | 26732 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 26733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 26734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 26735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26736 | else | 
|  | 26737 | eval "$as_ac_Header=\$ac_header_preproc" | 
|  | 26738 | fi | 
|  | 26739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 26740 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 26741 |  | 
|  | 26742 | fi | 
|  | 26743 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 26744 | cat >>confdefs.h <<_ACEOF | 
|  | 26745 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 26746 | _ACEOF | 
|  | 26747 |  | 
|  | 26748 | fi | 
|  | 26749 |  | 
|  | 26750 | done | 
|  | 26751 |  | 
|  | 26752 |  | 
|  | 26753 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26754 | echo "$as_me:$LINENO: checking for pid_t" >&5 | 
|  | 26755 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | 
|  | 26756 | if test "${ac_cv_type_pid_t+set}" = set; then | 
|  | 26757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26758 | else | 
|  | 26759 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26760 | /* confdefs.h.  */ | 
|  | 26761 | _ACEOF | 
|  | 26762 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26763 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26764 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26765 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26766 | int | 
|  | 26767 | main () | 
|  | 26768 | { | 
|  | 26769 | if ((pid_t *) 0) | 
|  | 26770 | return 0; | 
|  | 26771 | if (sizeof (pid_t)) | 
|  | 26772 | return 0; | 
|  | 26773 | ; | 
|  | 26774 | return 0; | 
|  | 26775 | } | 
|  | 26776 | _ACEOF | 
|  | 26777 | rm -f conftest.$ac_objext | 
|  | 26778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26779 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26780 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26781 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26782 | rm -f conftest.er1 | 
|  | 26783 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26785 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26786 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26787 | || test ! -s conftest.err' | 
|  | 26788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26789 | (eval $ac_try) 2>&5 | 
|  | 26790 | ac_status=$? | 
|  | 26791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26792 | (exit $ac_status); }; } && | 
|  | 26793 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26795 | (eval $ac_try) 2>&5 | 
|  | 26796 | ac_status=$? | 
|  | 26797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26798 | (exit $ac_status); }; }; then | 
|  | 26799 | ac_cv_type_pid_t=yes | 
|  | 26800 | else | 
|  | 26801 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26802 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26803 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26804 | ac_cv_type_pid_t=no | 
|  | 26805 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26807 | fi | 
|  | 26808 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
|  | 26809 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | 
|  | 26810 | if test $ac_cv_type_pid_t = yes; then | 
|  | 26811 | : | 
|  | 26812 | else | 
|  | 26813 |  | 
|  | 26814 | cat >>confdefs.h <<_ACEOF | 
|  | 26815 | #define pid_t int | 
|  | 26816 | _ACEOF | 
|  | 26817 |  | 
|  | 26818 | fi | 
|  | 26819 |  | 
|  | 26820 | echo "$as_me:$LINENO: checking for size_t" >&5 | 
|  | 26821 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | 
|  | 26822 | if test "${ac_cv_type_size_t+set}" = set; then | 
|  | 26823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26824 | else | 
|  | 26825 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26826 | /* confdefs.h.  */ | 
|  | 26827 | _ACEOF | 
|  | 26828 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26829 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26830 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26831 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26832 | int | 
|  | 26833 | main () | 
|  | 26834 | { | 
|  | 26835 | if ((size_t *) 0) | 
|  | 26836 | return 0; | 
|  | 26837 | if (sizeof (size_t)) | 
|  | 26838 | return 0; | 
|  | 26839 | ; | 
|  | 26840 | return 0; | 
|  | 26841 | } | 
|  | 26842 | _ACEOF | 
|  | 26843 | rm -f conftest.$ac_objext | 
|  | 26844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26845 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26846 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26847 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26848 | rm -f conftest.er1 | 
|  | 26849 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26851 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26852 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26853 | || test ! -s conftest.err' | 
|  | 26854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26855 | (eval $ac_try) 2>&5 | 
|  | 26856 | ac_status=$? | 
|  | 26857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26858 | (exit $ac_status); }; } && | 
|  | 26859 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26861 | (eval $ac_try) 2>&5 | 
|  | 26862 | ac_status=$? | 
|  | 26863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26864 | (exit $ac_status); }; }; then | 
|  | 26865 | ac_cv_type_size_t=yes | 
|  | 26866 | else | 
|  | 26867 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26868 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26869 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26870 | ac_cv_type_size_t=no | 
|  | 26871 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26873 | fi | 
|  | 26874 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
|  | 26875 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | 
|  | 26876 | if test $ac_cv_type_size_t = yes; then | 
|  | 26877 | : | 
|  | 26878 | else | 
|  | 26879 |  | 
|  | 26880 | cat >>confdefs.h <<_ACEOF | 
|  | 26881 | #define size_t unsigned | 
|  | 26882 | _ACEOF | 
|  | 26883 |  | 
|  | 26884 | fi | 
|  | 26885 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26886 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
|  | 26887 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | 
|  | 26888 | if test "${ac_cv_type_signal+set}" = set; then | 
|  | 26889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26890 | else | 
|  | 26891 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 26892 | /* confdefs.h.  */ | 
|  | 26893 | _ACEOF | 
|  | 26894 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26895 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26896 | /* end confdefs.h.  */ | 
|  | 26897 | #include <sys/types.h> | 
|  | 26898 | #include <signal.h> | 
|  | 26899 | #ifdef signal | 
|  | 26900 | # undef signal | 
|  | 26901 | #endif | 
|  | 26902 | #ifdef __cplusplus | 
|  | 26903 | extern "C" void (*signal (int, void (*)(int)))(int); | 
|  | 26904 | #else | 
|  | 26905 | void (*signal ()) (); | 
|  | 26906 | #endif | 
|  | 26907 |  | 
|  | 26908 | int | 
|  | 26909 | main () | 
|  | 26910 | { | 
|  | 26911 | int i; | 
|  | 26912 | ; | 
|  | 26913 | return 0; | 
|  | 26914 | } | 
|  | 26915 | _ACEOF | 
|  | 26916 | rm -f conftest.$ac_objext | 
|  | 26917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 26918 | (eval $ac_compile) 2>conftest.er1 | 
|  | 26919 | ac_status=$? | 
|  | 26920 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26921 | rm -f conftest.er1 | 
|  | 26922 | cat conftest.err >&5 | 
|  | 26923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26924 | (exit $ac_status); } && | 
|  | 26925 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26926 | || test ! -s conftest.err' | 
|  | 26927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26928 | (eval $ac_try) 2>&5 | 
|  | 26929 | ac_status=$? | 
|  | 26930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26931 | (exit $ac_status); }; } && | 
|  | 26932 | { ac_try='test -s conftest.$ac_objext' | 
|  | 26933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26934 | (eval $ac_try) 2>&5 | 
|  | 26935 | ac_status=$? | 
|  | 26936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26937 | (exit $ac_status); }; }; then | 
|  | 26938 | ac_cv_type_signal=void | 
|  | 26939 | else | 
|  | 26940 | echo "$as_me: failed program was:" >&5 | 
|  | 26941 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 26942 |  | 
|  | 26943 | ac_cv_type_signal=int | 
|  | 26944 | fi | 
|  | 26945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 26946 | fi | 
|  | 26947 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
|  | 26948 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | 
|  | 26949 |  | 
|  | 26950 | cat >>confdefs.h <<_ACEOF | 
|  | 26951 | #define RETSIGTYPE $ac_cv_type_signal | 
|  | 26952 | _ACEOF | 
|  | 26953 |  | 
|  | 26954 |  | 
|  | 26955 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|  | 26956 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | 
|  | 26957 | if test "${ac_cv_struct_tm+set}" = set; then | 
|  | 26958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 26959 | else | 
|  | 26960 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 26961 | /* confdefs.h.  */ | 
|  | 26962 | _ACEOF | 
|  | 26963 | cat confdefs.h >>conftest.$ac_ext | 
|  | 26964 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 26965 | /* end confdefs.h.  */ | 
|  | 26966 | #include <sys/types.h> | 
|  | 26967 | #include <time.h> | 
|  | 26968 |  | 
|  | 26969 | int | 
|  | 26970 | main () | 
|  | 26971 | { | 
|  | 26972 | struct tm *tp; tp->tm_sec; | 
|  | 26973 | ; | 
|  | 26974 | return 0; | 
|  | 26975 | } | 
|  | 26976 | _ACEOF | 
|  | 26977 | rm -f conftest.$ac_objext | 
|  | 26978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 26979 | (eval $ac_compile) 2>conftest.er1 | 
|  | 26980 | ac_status=$? | 
|  | 26981 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 26982 | rm -f conftest.er1 | 
|  | 26983 | cat conftest.err >&5 | 
|  | 26984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26985 | (exit $ac_status); } && | 
|  | 26986 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 26987 | || test ! -s conftest.err' | 
|  | 26988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26989 | (eval $ac_try) 2>&5 | 
|  | 26990 | ac_status=$? | 
|  | 26991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26992 | (exit $ac_status); }; } && | 
|  | 26993 | { ac_try='test -s conftest.$ac_objext' | 
|  | 26994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 26995 | (eval $ac_try) 2>&5 | 
|  | 26996 | ac_status=$? | 
|  | 26997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 26998 | (exit $ac_status); }; }; then | 
|  | 26999 | ac_cv_struct_tm=time.h | 
|  | 27000 | else | 
|  | 27001 | echo "$as_me: failed program was:" >&5 | 
|  | 27002 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27003 |  | 
|  | 27004 | ac_cv_struct_tm=sys/time.h | 
|  | 27005 | fi | 
|  | 27006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 27007 | fi | 
|  | 27008 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
|  | 27009 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | 
|  | 27010 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 27011 |  | 
|  | 27012 | cat >>confdefs.h <<\_ACEOF | 
|  | 27013 | #define TM_IN_SYS_TIME 1 | 
|  | 27014 | _ACEOF | 
|  | 27015 |  | 
|  | 27016 | fi | 
|  | 27017 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27018 | echo "$as_me:$LINENO: checking for int64_t" >&5 | 
|  | 27019 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | 
|  | 27020 | if test "${ac_cv_type_int64_t+set}" = set; then | 
|  | 27021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27022 | else | 
|  | 27023 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27024 | /* confdefs.h.  */ | 
|  | 27025 | _ACEOF | 
|  | 27026 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27027 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27028 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27029 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27030 | int | 
|  | 27031 | main () | 
|  | 27032 | { | 
|  | 27033 | if ((int64_t *) 0) | 
|  | 27034 | return 0; | 
|  | 27035 | if (sizeof (int64_t)) | 
|  | 27036 | return 0; | 
|  | 27037 | ; | 
|  | 27038 | return 0; | 
|  | 27039 | } | 
|  | 27040 | _ACEOF | 
|  | 27041 | rm -f conftest.$ac_objext | 
|  | 27042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27043 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27044 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27045 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27046 | rm -f conftest.er1 | 
|  | 27047 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27049 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27050 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27051 | || test ! -s conftest.err' | 
|  | 27052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27053 | (eval $ac_try) 2>&5 | 
|  | 27054 | ac_status=$? | 
|  | 27055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27056 | (exit $ac_status); }; } && | 
|  | 27057 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27059 | (eval $ac_try) 2>&5 | 
|  | 27060 | ac_status=$? | 
|  | 27061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27062 | (exit $ac_status); }; }; then | 
|  | 27063 | ac_cv_type_int64_t=yes | 
|  | 27064 | else | 
|  | 27065 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27066 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27067 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27068 | ac_cv_type_int64_t=no | 
|  | 27069 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27071 | fi | 
|  | 27072 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
|  | 27073 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | 
|  | 27074 | if test $ac_cv_type_int64_t = yes; then | 
|  | 27075 |  | 
|  | 27076 | cat >>confdefs.h <<_ACEOF | 
|  | 27077 | #define HAVE_INT64_T 1 | 
|  | 27078 | _ACEOF | 
|  | 27079 |  | 
|  | 27080 |  | 
|  | 27081 | else | 
|  | 27082 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
|  | 27083 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
|  | 27084 | { (exit 1); exit 1; }; } | 
|  | 27085 | fi | 
|  | 27086 |  | 
|  | 27087 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
|  | 27088 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | 
|  | 27089 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
|  | 27090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27091 | else | 
|  | 27092 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27093 | /* confdefs.h.  */ | 
|  | 27094 | _ACEOF | 
|  | 27095 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27096 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27097 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27098 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27099 | int | 
|  | 27100 | main () | 
|  | 27101 | { | 
|  | 27102 | if ((uint64_t *) 0) | 
|  | 27103 | return 0; | 
|  | 27104 | if (sizeof (uint64_t)) | 
|  | 27105 | return 0; | 
|  | 27106 | ; | 
|  | 27107 | return 0; | 
|  | 27108 | } | 
|  | 27109 | _ACEOF | 
|  | 27110 | rm -f conftest.$ac_objext | 
|  | 27111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27112 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27113 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27114 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27115 | rm -f conftest.er1 | 
|  | 27116 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27118 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27119 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27120 | || test ! -s conftest.err' | 
|  | 27121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27122 | (eval $ac_try) 2>&5 | 
|  | 27123 | ac_status=$? | 
|  | 27124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27125 | (exit $ac_status); }; } && | 
|  | 27126 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27128 | (eval $ac_try) 2>&5 | 
|  | 27129 | ac_status=$? | 
|  | 27130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27131 | (exit $ac_status); }; }; then | 
|  | 27132 | ac_cv_type_uint64_t=yes | 
|  | 27133 | else | 
|  | 27134 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27135 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27136 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27137 | ac_cv_type_uint64_t=no | 
|  | 27138 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27140 | fi | 
|  | 27141 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
|  | 27142 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | 
|  | 27143 | if test $ac_cv_type_uint64_t = yes; then | 
|  | 27144 |  | 
|  | 27145 | cat >>confdefs.h <<_ACEOF | 
|  | 27146 | #define HAVE_UINT64_T 1 | 
|  | 27147 | _ACEOF | 
|  | 27148 |  | 
|  | 27149 |  | 
|  | 27150 | else | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27151 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27152 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | 
|  | 27153 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
|  | 27154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27155 | else | 
|  | 27156 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27157 | /* confdefs.h.  */ | 
|  | 27158 | _ACEOF | 
|  | 27159 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27160 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27161 | /* end confdefs.h.  */ | 
|  | 27162 | $ac_includes_default | 
|  | 27163 | int | 
|  | 27164 | main () | 
|  | 27165 | { | 
|  | 27166 | if ((u_int64_t *) 0) | 
|  | 27167 | return 0; | 
|  | 27168 | if (sizeof (u_int64_t)) | 
|  | 27169 | return 0; | 
|  | 27170 | ; | 
|  | 27171 | return 0; | 
|  | 27172 | } | 
|  | 27173 | _ACEOF | 
|  | 27174 | rm -f conftest.$ac_objext | 
|  | 27175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27176 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27177 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27178 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27179 | rm -f conftest.er1 | 
|  | 27180 | cat conftest.err >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27182 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27183 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27184 | || test ! -s conftest.err' | 
|  | 27185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27186 | (eval $ac_try) 2>&5 | 
|  | 27187 | ac_status=$? | 
|  | 27188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27189 | (exit $ac_status); }; } && | 
|  | 27190 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27192 | (eval $ac_try) 2>&5 | 
|  | 27193 | ac_status=$? | 
|  | 27194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27195 | (exit $ac_status); }; }; then | 
|  | 27196 | ac_cv_type_u_int64_t=yes | 
|  | 27197 | else | 
|  | 27198 | echo "$as_me: failed program was:" >&5 | 
|  | 27199 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27200 |  | 
|  | 27201 | ac_cv_type_u_int64_t=no | 
|  | 27202 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27204 | fi | 
|  | 27205 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
|  | 27206 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | 
|  | 27207 | if test $ac_cv_type_u_int64_t = yes; then | 
|  | 27208 |  | 
|  | 27209 | cat >>confdefs.h <<_ACEOF | 
|  | 27210 | #define HAVE_U_INT64_T 1 | 
|  | 27211 | _ACEOF | 
|  | 27212 |  | 
|  | 27213 |  | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 27214 | else | 
|  | 27215 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
|  | 27216 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
|  | 27217 | { (exit 1); exit 1; }; } | 
|  | 27218 | fi | 
|  | 27219 |  | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 27220 | fi | 
|  | 27221 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27222 |  | 
|  | 27223 |  | 
|  | 27224 |  | 
|  | 27225 |  | 
|  | 27226 |  | 
|  | 27227 |  | 
|  | 27228 |  | 
| Reid Spencer | b9a5d68 | 2005-05-15 22:15:11 +0000 | [diff] [blame] | 27229 | for ac_func in backtrace getcwd getpagesize getrusage gettimeofday | 
| Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 27230 | do | 
|  | 27231 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 27232 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 27233 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 27234 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 27235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27236 | else | 
|  | 27237 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 27238 | /* confdefs.h.  */ | 
|  | 27239 | _ACEOF | 
|  | 27240 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27241 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27242 | /* end confdefs.h.  */ | 
|  | 27243 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 27244 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 27245 | #define $ac_func innocuous_$ac_func | 
| Reid Spencer | f9960f7 | 2004-12-15 01:41:56 +0000 | [diff] [blame] | 27246 |  | 
| Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 27247 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 27248 | which can conflict with char $ac_func (); below. | 
|  | 27249 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 27250 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 27251 |  | 
|  | 27252 | #ifdef __STDC__ | 
|  | 27253 | # include <limits.h> | 
|  | 27254 | #else | 
|  | 27255 | # include <assert.h> | 
|  | 27256 | #endif | 
|  | 27257 |  | 
|  | 27258 | #undef $ac_func | 
|  | 27259 |  | 
|  | 27260 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 27261 | #ifdef __cplusplus | 
|  | 27262 | extern "C" | 
|  | 27263 | { | 
|  | 27264 | #endif | 
|  | 27265 | /* We use char because int might match the return type of a gcc2 | 
|  | 27266 | builtin and then its argument prototype would still apply.  */ | 
|  | 27267 | char $ac_func (); | 
|  | 27268 | /* The GNU C library defines this for functions which it implements | 
|  | 27269 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 27270 | something starting with __ and the normal name is an alias.  */ | 
|  | 27271 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 27272 | choke me | 
|  | 27273 | #else | 
|  | 27274 | char (*f) () = $ac_func; | 
|  | 27275 | #endif | 
|  | 27276 | #ifdef __cplusplus | 
|  | 27277 | } | 
|  | 27278 | #endif | 
|  | 27279 |  | 
|  | 27280 | int | 
|  | 27281 | main () | 
|  | 27282 | { | 
|  | 27283 | return f != $ac_func; | 
|  | 27284 | ; | 
|  | 27285 | return 0; | 
|  | 27286 | } | 
|  | 27287 | _ACEOF | 
|  | 27288 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 27289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 27290 | (eval $ac_link) 2>conftest.er1 | 
|  | 27291 | ac_status=$? | 
|  | 27292 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27293 | rm -f conftest.er1 | 
|  | 27294 | cat conftest.err >&5 | 
|  | 27295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27296 | (exit $ac_status); } && | 
|  | 27297 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27298 | || test ! -s conftest.err' | 
|  | 27299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27300 | (eval $ac_try) 2>&5 | 
|  | 27301 | ac_status=$? | 
|  | 27302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27303 | (exit $ac_status); }; } && | 
|  | 27304 | { ac_try='test -s conftest$ac_exeext' | 
|  | 27305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27306 | (eval $ac_try) 2>&5 | 
|  | 27307 | ac_status=$? | 
|  | 27308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27309 | (exit $ac_status); }; }; then | 
|  | 27310 | eval "$as_ac_var=yes" | 
|  | 27311 | else | 
|  | 27312 | echo "$as_me: failed program was:" >&5 | 
|  | 27313 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27314 |  | 
|  | 27315 | eval "$as_ac_var=no" | 
|  | 27316 | fi | 
|  | 27317 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 27318 | conftest$ac_exeext conftest.$ac_ext | 
|  | 27319 | fi | 
|  | 27320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 27321 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 27322 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 27323 | cat >>confdefs.h <<_ACEOF | 
|  | 27324 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 27325 | _ACEOF | 
|  | 27326 |  | 
|  | 27327 | fi | 
|  | 27328 | done | 
|  | 27329 |  | 
|  | 27330 |  | 
|  | 27331 |  | 
|  | 27332 |  | 
| Reid Spencer | c29b13d | 2005-05-14 16:42:52 +0000 | [diff] [blame] | 27333 |  | 
|  | 27334 | for ac_func in isatty mkdtemp mkstemp mktemp | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27335 | do | 
|  | 27336 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 27337 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 27338 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 27339 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27341 | else | 
|  | 27342 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27343 | /* confdefs.h.  */ | 
|  | 27344 | _ACEOF | 
|  | 27345 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27346 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27347 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27348 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 27349 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 27350 | #define $ac_func innocuous_$ac_func | 
|  | 27351 |  | 
|  | 27352 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 27353 | which can conflict with char $ac_func (); below. | 
|  | 27354 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 27355 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 27356 |  | 
|  | 27357 | #ifdef __STDC__ | 
|  | 27358 | # include <limits.h> | 
|  | 27359 | #else | 
|  | 27360 | # include <assert.h> | 
|  | 27361 | #endif | 
|  | 27362 |  | 
|  | 27363 | #undef $ac_func | 
|  | 27364 |  | 
|  | 27365 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 27366 | #ifdef __cplusplus | 
|  | 27367 | extern "C" | 
|  | 27368 | { | 
|  | 27369 | #endif | 
|  | 27370 | /* We use char because int might match the return type of a gcc2 | 
|  | 27371 | builtin and then its argument prototype would still apply.  */ | 
|  | 27372 | char $ac_func (); | 
|  | 27373 | /* The GNU C library defines this for functions which it implements | 
|  | 27374 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 27375 | something starting with __ and the normal name is an alias.  */ | 
|  | 27376 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 27377 | choke me | 
|  | 27378 | #else | 
|  | 27379 | char (*f) () = $ac_func; | 
|  | 27380 | #endif | 
|  | 27381 | #ifdef __cplusplus | 
|  | 27382 | } | 
|  | 27383 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27384 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27385 | int | 
|  | 27386 | main () | 
|  | 27387 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27388 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27389 | ; | 
|  | 27390 | return 0; | 
|  | 27391 | } | 
|  | 27392 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27393 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 27394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 27395 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27396 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27397 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27398 | rm -f conftest.er1 | 
|  | 27399 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27401 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27402 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27403 | || test ! -s conftest.err' | 
|  | 27404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27405 | (eval $ac_try) 2>&5 | 
|  | 27406 | ac_status=$? | 
|  | 27407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27408 | (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27409 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27411 | (eval $ac_try) 2>&5 | 
|  | 27412 | ac_status=$? | 
|  | 27413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27414 | (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27415 | eval "$as_ac_var=yes" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27416 | else | 
|  | 27417 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27418 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27419 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27420 | eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27421 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27422 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 27423 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27424 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 27426 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 27427 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 27428 | cat >>confdefs.h <<_ACEOF | 
|  | 27429 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27430 | _ACEOF | 
|  | 27431 |  | 
|  | 27432 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27433 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27434 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27435 |  | 
|  | 27436 |  | 
|  | 27437 |  | 
| Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 27438 |  | 
|  | 27439 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27440 |  | 
| Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 27441 | for ac_func in realpath sbrk setrlimit strdup strerror strerror_r | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27442 | do | 
|  | 27443 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 27444 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 27445 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 27446 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 27447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27448 | else | 
|  | 27449 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 27450 | /* confdefs.h.  */ | 
|  | 27451 | _ACEOF | 
|  | 27452 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27453 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27454 | /* end confdefs.h.  */ | 
|  | 27455 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 27456 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 27457 | #define $ac_func innocuous_$ac_func | 
|  | 27458 |  | 
|  | 27459 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 27460 | which can conflict with char $ac_func (); below. | 
|  | 27461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 27462 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 27463 |  | 
|  | 27464 | #ifdef __STDC__ | 
|  | 27465 | # include <limits.h> | 
|  | 27466 | #else | 
|  | 27467 | # include <assert.h> | 
|  | 27468 | #endif | 
|  | 27469 |  | 
|  | 27470 | #undef $ac_func | 
|  | 27471 |  | 
|  | 27472 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 27473 | #ifdef __cplusplus | 
|  | 27474 | extern "C" | 
|  | 27475 | { | 
|  | 27476 | #endif | 
|  | 27477 | /* We use char because int might match the return type of a gcc2 | 
|  | 27478 | builtin and then its argument prototype would still apply.  */ | 
|  | 27479 | char $ac_func (); | 
|  | 27480 | /* The GNU C library defines this for functions which it implements | 
|  | 27481 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 27482 | something starting with __ and the normal name is an alias.  */ | 
|  | 27483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 27484 | choke me | 
|  | 27485 | #else | 
|  | 27486 | char (*f) () = $ac_func; | 
|  | 27487 | #endif | 
|  | 27488 | #ifdef __cplusplus | 
|  | 27489 | } | 
|  | 27490 | #endif | 
|  | 27491 |  | 
|  | 27492 | int | 
|  | 27493 | main () | 
|  | 27494 | { | 
|  | 27495 | return f != $ac_func; | 
|  | 27496 | ; | 
|  | 27497 | return 0; | 
|  | 27498 | } | 
|  | 27499 | _ACEOF | 
|  | 27500 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 27501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 27502 | (eval $ac_link) 2>conftest.er1 | 
|  | 27503 | ac_status=$? | 
|  | 27504 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27505 | rm -f conftest.er1 | 
|  | 27506 | cat conftest.err >&5 | 
|  | 27507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27508 | (exit $ac_status); } && | 
|  | 27509 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27510 | || test ! -s conftest.err' | 
|  | 27511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27512 | (eval $ac_try) 2>&5 | 
|  | 27513 | ac_status=$? | 
|  | 27514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27515 | (exit $ac_status); }; } && | 
|  | 27516 | { ac_try='test -s conftest$ac_exeext' | 
|  | 27517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27518 | (eval $ac_try) 2>&5 | 
|  | 27519 | ac_status=$? | 
|  | 27520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27521 | (exit $ac_status); }; }; then | 
|  | 27522 | eval "$as_ac_var=yes" | 
|  | 27523 | else | 
|  | 27524 | echo "$as_me: failed program was:" >&5 | 
|  | 27525 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27526 |  | 
|  | 27527 | eval "$as_ac_var=no" | 
|  | 27528 | fi | 
|  | 27529 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 27530 | conftest$ac_exeext conftest.$ac_ext | 
|  | 27531 | fi | 
|  | 27532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 27533 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 27534 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 27535 | cat >>confdefs.h <<_ACEOF | 
|  | 27536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 27537 | _ACEOF | 
|  | 27538 |  | 
|  | 27539 | fi | 
|  | 27540 | done | 
|  | 27541 |  | 
|  | 27542 |  | 
| Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 27543 |  | 
|  | 27544 |  | 
|  | 27545 | for ac_func in strtoll strtoq sysconf | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27546 | do | 
|  | 27547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 27548 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 27549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 27550 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27552 | else | 
|  | 27553 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27554 | /* confdefs.h.  */ | 
|  | 27555 | _ACEOF | 
|  | 27556 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27557 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27558 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 27560 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 27561 | #define $ac_func innocuous_$ac_func | 
|  | 27562 |  | 
|  | 27563 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 27564 | which can conflict with char $ac_func (); below. | 
|  | 27565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 27566 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 27567 |  | 
|  | 27568 | #ifdef __STDC__ | 
|  | 27569 | # include <limits.h> | 
|  | 27570 | #else | 
|  | 27571 | # include <assert.h> | 
|  | 27572 | #endif | 
|  | 27573 |  | 
|  | 27574 | #undef $ac_func | 
|  | 27575 |  | 
|  | 27576 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 27577 | #ifdef __cplusplus | 
|  | 27578 | extern "C" | 
|  | 27579 | { | 
|  | 27580 | #endif | 
|  | 27581 | /* We use char because int might match the return type of a gcc2 | 
|  | 27582 | builtin and then its argument prototype would still apply.  */ | 
|  | 27583 | char $ac_func (); | 
|  | 27584 | /* The GNU C library defines this for functions which it implements | 
|  | 27585 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 27586 | something starting with __ and the normal name is an alias.  */ | 
|  | 27587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 27588 | choke me | 
|  | 27589 | #else | 
|  | 27590 | char (*f) () = $ac_func; | 
|  | 27591 | #endif | 
|  | 27592 | #ifdef __cplusplus | 
|  | 27593 | } | 
|  | 27594 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27595 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27596 | int | 
|  | 27597 | main () | 
|  | 27598 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27599 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27600 | ; | 
|  | 27601 | return 0; | 
|  | 27602 | } | 
|  | 27603 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27604 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 27605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 27606 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27607 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27608 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27609 | rm -f conftest.er1 | 
|  | 27610 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27612 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27613 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27614 | || test ! -s conftest.err' | 
|  | 27615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27616 | (eval $ac_try) 2>&5 | 
|  | 27617 | ac_status=$? | 
|  | 27618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27619 | (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27620 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27622 | (eval $ac_try) 2>&5 | 
|  | 27623 | ac_status=$? | 
|  | 27624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27625 | (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27626 | eval "$as_ac_var=yes" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27627 | else | 
|  | 27628 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27629 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27630 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27631 | eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27632 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27633 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 27634 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27635 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 27637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 27638 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 27639 | cat >>confdefs.h <<_ACEOF | 
|  | 27640 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27641 | _ACEOF | 
|  | 27642 |  | 
|  | 27643 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27644 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27645 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27646 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 | 
|  | 27647 | 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] | 27648 | if test "${llvm_cv_c_printf_a+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27650 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27651 | ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27652 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 27653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 27654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 27655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 27656 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27657 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27658 | llvmac_cv_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27659 | else | 
|  | 27660 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27661 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27662 | /* confdefs.h.  */ | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27663 | _ACEOF | 
|  | 27664 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27665 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27666 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27667 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27668 | #include <stdio.h> | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27669 | #include <stdlib.h> | 
|  | 27670 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27671 | int | 
|  | 27672 | main () | 
|  | 27673 | { | 
|  | 27674 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27675 | volatile double A, B; | 
|  | 27676 | char Buffer[100]; | 
|  | 27677 | A = 1; | 
|  | 27678 | A /= 10.0; | 
|  | 27679 | sprintf(Buffer, "%a", A); | 
|  | 27680 | B = atof(Buffer); | 
|  | 27681 | if (A != B) | 
|  | 27682 | return (1); | 
|  | 27683 | if (A != 0x1.999999999999ap-4) | 
|  | 27684 | return (1); | 
|  | 27685 | return (0); | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27686 | ; | 
|  | 27687 | return 0; | 
|  | 27688 | } | 
|  | 27689 | _ACEOF | 
|  | 27690 | rm -f conftest$ac_exeext | 
|  | 27691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 27692 | (eval $ac_link) 2>&5 | 
|  | 27693 | ac_status=$? | 
|  | 27694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 27696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27697 | (eval $ac_try) 2>&5 | 
|  | 27698 | ac_status=$? | 
|  | 27699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27700 | (exit $ac_status); }; }; then | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27701 | llvm_cv_c_printf_a=yes | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27702 | else | 
|  | 27703 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 27704 | echo "$as_me: failed program was:" >&5 | 
|  | 27705 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27706 |  | 
|  | 27707 | ( exit $ac_status ) | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27708 | llvmac_cv_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27709 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27710 | 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] | 27711 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27712 | ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27713 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 27714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 27715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 27716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 27717 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27718 | fi | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27719 | echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 | 
|  | 27720 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6 | 
|  | 27721 | if test "$llvm_cv_c_printf_a" = "yes"; then | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27722 |  | 
|  | 27723 | cat >>confdefs.h <<\_ACEOF | 
|  | 27724 | #define HAVE_PRINTF_A 1 | 
|  | 27725 | _ACEOF | 
|  | 27726 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27727 | fi | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27728 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27729 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
|  | 27730 | # for constant arguments.  Useless! | 
|  | 27731 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
|  | 27732 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | 
|  | 27733 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27735 | else | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27736 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27737 | /* confdefs.h.  */ | 
|  | 27738 | _ACEOF | 
|  | 27739 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27740 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27741 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27742 | #include <alloca.h> | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27743 | int | 
|  | 27744 | main () | 
|  | 27745 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27746 | char *p = (char *) alloca (2 * sizeof (int)); | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27747 | ; | 
|  | 27748 | return 0; | 
|  | 27749 | } | 
|  | 27750 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27751 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 27752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 27753 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27754 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27755 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27756 | rm -f conftest.er1 | 
|  | 27757 | cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27759 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27760 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27761 | || test ! -s conftest.err' | 
|  | 27762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27763 | (eval $ac_try) 2>&5 | 
|  | 27764 | ac_status=$? | 
|  | 27765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27766 | (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27767 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27769 | (eval $ac_try) 2>&5 | 
|  | 27770 | ac_status=$? | 
|  | 27771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27772 | (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27773 | ac_cv_working_alloca_h=yes | 
|  | 27774 | else | 
|  | 27775 | echo "$as_me: failed program was:" >&5 | 
|  | 27776 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27777 |  | 
|  | 27778 | ac_cv_working_alloca_h=no | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27779 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27780 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 27781 | conftest$ac_exeext conftest.$ac_ext | 
|  | 27782 | fi | 
|  | 27783 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
|  | 27784 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | 
|  | 27785 | if test $ac_cv_working_alloca_h = yes; then | 
|  | 27786 |  | 
|  | 27787 | cat >>confdefs.h <<\_ACEOF | 
|  | 27788 | #define HAVE_ALLOCA_H 1 | 
|  | 27789 | _ACEOF | 
|  | 27790 |  | 
|  | 27791 | fi | 
|  | 27792 |  | 
|  | 27793 | echo "$as_me:$LINENO: checking for alloca" >&5 | 
|  | 27794 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | 
|  | 27795 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
|  | 27796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27797 | else | 
|  | 27798 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 27799 | /* confdefs.h.  */ | 
|  | 27800 | _ACEOF | 
|  | 27801 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27802 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27803 | /* end confdefs.h.  */ | 
|  | 27804 | #ifdef __GNUC__ | 
|  | 27805 | # define alloca __builtin_alloca | 
|  | 27806 | #else | 
|  | 27807 | # ifdef _MSC_VER | 
|  | 27808 | #  include <malloc.h> | 
|  | 27809 | #  define alloca _alloca | 
|  | 27810 | # else | 
|  | 27811 | #  if HAVE_ALLOCA_H | 
|  | 27812 | #   include <alloca.h> | 
|  | 27813 | #  else | 
|  | 27814 | #   ifdef _AIX | 
|  | 27815 | #pragma alloca | 
|  | 27816 | #   else | 
|  | 27817 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
|  | 27818 | char *alloca (); | 
|  | 27819 | #    endif | 
|  | 27820 | #   endif | 
|  | 27821 | #  endif | 
|  | 27822 | # endif | 
|  | 27823 | #endif | 
|  | 27824 |  | 
|  | 27825 | int | 
|  | 27826 | main () | 
|  | 27827 | { | 
|  | 27828 | char *p = (char *) alloca (1); | 
|  | 27829 | ; | 
|  | 27830 | return 0; | 
|  | 27831 | } | 
|  | 27832 | _ACEOF | 
|  | 27833 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 27834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 27835 | (eval $ac_link) 2>conftest.er1 | 
|  | 27836 | ac_status=$? | 
|  | 27837 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27838 | rm -f conftest.er1 | 
|  | 27839 | cat conftest.err >&5 | 
|  | 27840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27841 | (exit $ac_status); } && | 
|  | 27842 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27843 | || test ! -s conftest.err' | 
|  | 27844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27845 | (eval $ac_try) 2>&5 | 
|  | 27846 | ac_status=$? | 
|  | 27847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27848 | (exit $ac_status); }; } && | 
|  | 27849 | { ac_try='test -s conftest$ac_exeext' | 
|  | 27850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27851 | (eval $ac_try) 2>&5 | 
|  | 27852 | ac_status=$? | 
|  | 27853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27854 | (exit $ac_status); }; }; then | 
|  | 27855 | ac_cv_func_alloca_works=yes | 
|  | 27856 | else | 
|  | 27857 | echo "$as_me: failed program was:" >&5 | 
|  | 27858 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 27859 |  | 
|  | 27860 | ac_cv_func_alloca_works=no | 
|  | 27861 | fi | 
|  | 27862 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 27863 | conftest$ac_exeext conftest.$ac_ext | 
|  | 27864 | fi | 
|  | 27865 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
|  | 27866 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | 
|  | 27867 |  | 
|  | 27868 | if test $ac_cv_func_alloca_works = yes; then | 
|  | 27869 |  | 
|  | 27870 | cat >>confdefs.h <<\_ACEOF | 
|  | 27871 | #define HAVE_ALLOCA 1 | 
|  | 27872 | _ACEOF | 
|  | 27873 |  | 
|  | 27874 | else | 
|  | 27875 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
|  | 27876 | # that cause trouble.  Some versions do not even contain alloca or | 
|  | 27877 | # contain a buggy version.  If you still want to use their alloca, | 
|  | 27878 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
|  | 27879 |  | 
|  | 27880 | ALLOCA=alloca.$ac_objext | 
|  | 27881 |  | 
|  | 27882 | cat >>confdefs.h <<\_ACEOF | 
|  | 27883 | #define C_ALLOCA 1 | 
|  | 27884 | _ACEOF | 
|  | 27885 |  | 
|  | 27886 |  | 
|  | 27887 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
|  | 27888 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | 
|  | 27889 | if test "${ac_cv_os_cray+set}" = set; then | 
|  | 27890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27891 | else | 
|  | 27892 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 27893 | /* confdefs.h.  */ | 
|  | 27894 | _ACEOF | 
|  | 27895 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27896 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27897 | /* end confdefs.h.  */ | 
|  | 27898 | #if defined(CRAY) && ! defined(CRAY2) | 
|  | 27899 | webecray | 
|  | 27900 | #else | 
|  | 27901 | wenotbecray | 
|  | 27902 | #endif | 
|  | 27903 |  | 
|  | 27904 | _ACEOF | 
|  | 27905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 27906 | $EGREP "webecray" >/dev/null 2>&1; then | 
|  | 27907 | ac_cv_os_cray=yes | 
|  | 27908 | else | 
|  | 27909 | ac_cv_os_cray=no | 
|  | 27910 | fi | 
|  | 27911 | rm -f conftest* | 
|  | 27912 |  | 
|  | 27913 | fi | 
|  | 27914 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
|  | 27915 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | 
|  | 27916 | if test $ac_cv_os_cray = yes; then | 
|  | 27917 | for ac_func in _getb67 GETB67 getb67; do | 
|  | 27918 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 27919 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 27920 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 27921 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 27922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 27923 | else | 
|  | 27924 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 27925 | /* confdefs.h.  */ | 
|  | 27926 | _ACEOF | 
|  | 27927 | cat confdefs.h >>conftest.$ac_ext | 
|  | 27928 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 27929 | /* end confdefs.h.  */ | 
|  | 27930 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 27931 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 27932 | #define $ac_func innocuous_$ac_func | 
|  | 27933 |  | 
|  | 27934 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 27935 | which can conflict with char $ac_func (); below. | 
|  | 27936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 27937 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 27938 |  | 
|  | 27939 | #ifdef __STDC__ | 
|  | 27940 | # include <limits.h> | 
|  | 27941 | #else | 
|  | 27942 | # include <assert.h> | 
|  | 27943 | #endif | 
|  | 27944 |  | 
|  | 27945 | #undef $ac_func | 
|  | 27946 |  | 
|  | 27947 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 27948 | #ifdef __cplusplus | 
|  | 27949 | extern "C" | 
|  | 27950 | { | 
|  | 27951 | #endif | 
|  | 27952 | /* We use char because int might match the return type of a gcc2 | 
|  | 27953 | builtin and then its argument prototype would still apply.  */ | 
|  | 27954 | char $ac_func (); | 
|  | 27955 | /* The GNU C library defines this for functions which it implements | 
|  | 27956 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 27957 | something starting with __ and the normal name is an alias.  */ | 
|  | 27958 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 27959 | choke me | 
|  | 27960 | #else | 
|  | 27961 | char (*f) () = $ac_func; | 
|  | 27962 | #endif | 
|  | 27963 | #ifdef __cplusplus | 
|  | 27964 | } | 
|  | 27965 | #endif | 
|  | 27966 |  | 
|  | 27967 | int | 
|  | 27968 | main () | 
|  | 27969 | { | 
|  | 27970 | return f != $ac_func; | 
|  | 27971 | ; | 
|  | 27972 | return 0; | 
|  | 27973 | } | 
|  | 27974 | _ACEOF | 
|  | 27975 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 27976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 27977 | (eval $ac_link) 2>conftest.er1 | 
|  | 27978 | ac_status=$? | 
|  | 27979 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 27980 | rm -f conftest.er1 | 
|  | 27981 | cat conftest.err >&5 | 
|  | 27982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27983 | (exit $ac_status); } && | 
|  | 27984 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 27985 | || test ! -s conftest.err' | 
|  | 27986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27987 | (eval $ac_try) 2>&5 | 
|  | 27988 | ac_status=$? | 
|  | 27989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27990 | (exit $ac_status); }; } && | 
|  | 27991 | { ac_try='test -s conftest$ac_exeext' | 
|  | 27992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 27993 | (eval $ac_try) 2>&5 | 
|  | 27994 | ac_status=$? | 
|  | 27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 27996 | (exit $ac_status); }; }; then | 
|  | 27997 | eval "$as_ac_var=yes" | 
|  | 27998 | else | 
|  | 27999 | echo "$as_me: failed program was:" >&5 | 
|  | 28000 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28001 |  | 
|  | 28002 | eval "$as_ac_var=no" | 
|  | 28003 | fi | 
|  | 28004 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 28005 | conftest$ac_exeext conftest.$ac_ext | 
|  | 28006 | fi | 
|  | 28007 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 28008 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 28009 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 28010 |  | 
|  | 28011 | cat >>confdefs.h <<_ACEOF | 
|  | 28012 | #define CRAY_STACKSEG_END $ac_func | 
|  | 28013 | _ACEOF | 
|  | 28014 |  | 
|  | 28015 | break | 
|  | 28016 | fi | 
|  | 28017 |  | 
|  | 28018 | done | 
|  | 28019 | fi | 
|  | 28020 |  | 
|  | 28021 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
|  | 28022 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | 
|  | 28023 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
|  | 28024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28025 | else | 
|  | 28026 | if test "$cross_compiling" = yes; then | 
|  | 28027 | ac_cv_c_stack_direction=0 | 
|  | 28028 | else | 
|  | 28029 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 28030 | /* confdefs.h.  */ | 
|  | 28031 | _ACEOF | 
|  | 28032 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28033 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28034 | /* end confdefs.h.  */ | 
|  | 28035 | int | 
|  | 28036 | find_stack_direction () | 
|  | 28037 | { | 
|  | 28038 | static char *addr = 0; | 
|  | 28039 | auto char dummy; | 
|  | 28040 | if (addr == 0) | 
|  | 28041 | { | 
|  | 28042 | addr = &dummy; | 
|  | 28043 | return find_stack_direction (); | 
|  | 28044 | } | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28045 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28046 | return (&dummy > addr) ? 1 : -1; | 
|  | 28047 | } | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28048 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28049 | int | 
|  | 28050 | main () | 
|  | 28051 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28052 | exit (find_stack_direction () < 0); | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28053 | } | 
|  | 28054 | _ACEOF | 
|  | 28055 | rm -f conftest$ac_exeext | 
|  | 28056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 28057 | (eval $ac_link) 2>&5 | 
|  | 28058 | ac_status=$? | 
|  | 28059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 28061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28062 | (eval $ac_try) 2>&5 | 
|  | 28063 | ac_status=$? | 
|  | 28064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28065 | (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28066 | ac_cv_c_stack_direction=1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28067 | else | 
|  | 28068 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 28069 | echo "$as_me: failed program was:" >&5 | 
|  | 28070 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28071 |  | 
|  | 28072 | ( exit $ac_status ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28073 | ac_cv_c_stack_direction=-1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28074 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28075 | 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] | 28076 | fi | 
|  | 28077 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28078 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
|  | 28079 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | 
|  | 28080 |  | 
|  | 28081 | cat >>confdefs.h <<_ACEOF | 
|  | 28082 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
|  | 28083 | _ACEOF | 
|  | 28084 |  | 
|  | 28085 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28086 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28087 |  | 
|  | 28088 |  | 
|  | 28089 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
|  | 28090 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 | 
|  | 28091 | if test "${ac_cv_func_rand48+set}" = set; then | 
|  | 28092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28093 | else | 
|  | 28094 | ac_ext=cc | 
|  | 28095 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28096 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28097 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28098 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28099 |  | 
|  | 28100 | cat >conftest.$ac_ext <<_ACEOF | 
|  | 28101 | /* confdefs.h.  */ | 
|  | 28102 | _ACEOF | 
|  | 28103 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28104 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28105 | /* end confdefs.h.  */ | 
|  | 28106 | #include <stdlib.h> | 
|  | 28107 | int | 
|  | 28108 | main () | 
|  | 28109 | { | 
|  | 28110 | srand48(0);lrand48();drand48(); | 
|  | 28111 | ; | 
|  | 28112 | return 0; | 
|  | 28113 | } | 
|  | 28114 | _ACEOF | 
|  | 28115 | rm -f conftest.$ac_objext | 
|  | 28116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
|  | 28117 | (eval $ac_compile) 2>conftest.er1 | 
|  | 28118 | ac_status=$? | 
|  | 28119 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28120 | rm -f conftest.er1 | 
|  | 28121 | cat conftest.err >&5 | 
|  | 28122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28123 | (exit $ac_status); } && | 
|  | 28124 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28125 | || test ! -s conftest.err' | 
|  | 28126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28127 | (eval $ac_try) 2>&5 | 
|  | 28128 | ac_status=$? | 
|  | 28129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28130 | (exit $ac_status); }; } && | 
|  | 28131 | { ac_try='test -s conftest.$ac_objext' | 
|  | 28132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28133 | (eval $ac_try) 2>&5 | 
|  | 28134 | ac_status=$? | 
|  | 28135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28136 | (exit $ac_status); }; }; then | 
|  | 28137 | ac_cv_func_rand48=yes | 
|  | 28138 | else | 
|  | 28139 | echo "$as_me: failed program was:" >&5 | 
|  | 28140 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28141 |  | 
|  | 28142 | ac_cv_func_rand48=no | 
|  | 28143 | fi | 
|  | 28144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 28145 | ac_ext=c | 
|  | 28146 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28150 |  | 
|  | 28151 | fi | 
|  | 28152 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
|  | 28153 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 | 
|  | 28154 |  | 
|  | 28155 | if test "$ac_cv_func_rand48" = "yes" ; then | 
|  | 28156 |  | 
|  | 28157 | cat >>confdefs.h <<\_ACEOF | 
|  | 28158 | #define HAVE_RAND48 1 | 
|  | 28159 | _ACEOF | 
|  | 28160 |  | 
|  | 28161 | fi | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 28162 |  | 
|  | 28163 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28164 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
|  | 28165 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 | 
|  | 28166 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
|  | 28167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28168 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28169 | ac_ext=cc | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28170 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28171 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28172 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28173 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28174 |  | 
|  | 28175 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28176 | /* confdefs.h.  */ | 
|  | 28177 | _ACEOF | 
|  | 28178 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28179 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28180 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28181 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28182 | int | 
|  | 28183 | main () | 
|  | 28184 | { | 
|  | 28185 | using namespace Outer::Inner; return i; | 
|  | 28186 | ; | 
|  | 28187 | return 0; | 
|  | 28188 | } | 
|  | 28189 | _ACEOF | 
|  | 28190 | rm -f conftest.$ac_objext | 
|  | 28191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28192 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28193 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28194 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28195 | rm -f conftest.er1 | 
|  | 28196 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28198 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28199 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28200 | || test ! -s conftest.err' | 
|  | 28201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28202 | (eval $ac_try) 2>&5 | 
|  | 28203 | ac_status=$? | 
|  | 28204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28205 | (exit $ac_status); }; } && | 
|  | 28206 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28208 | (eval $ac_try) 2>&5 | 
|  | 28209 | ac_status=$? | 
|  | 28210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28211 | (exit $ac_status); }; }; then | 
|  | 28212 | ac_cv_cxx_namespaces=yes | 
|  | 28213 | else | 
|  | 28214 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28215 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28216 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28217 | ac_cv_cxx_namespaces=no | 
|  | 28218 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28220 | ac_ext=c | 
|  | 28221 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28225 |  | 
|  | 28226 |  | 
|  | 28227 | fi | 
|  | 28228 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
|  | 28229 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 | 
|  | 28230 | if test "$ac_cv_cxx_namespaces" = yes; then | 
|  | 28231 |  | 
|  | 28232 | cat >>confdefs.h <<\_ACEOF | 
|  | 28233 | #define HAVE_NAMESPACES | 
|  | 28234 | _ACEOF | 
|  | 28235 |  | 
|  | 28236 | fi | 
|  | 28237 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28238 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 | 
|  | 28239 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 | 
|  | 28240 | 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] | 28241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28242 | else | 
|  | 28243 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28244 | ac_ext=cc | 
|  | 28245 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28246 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28247 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28248 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28249 |  | 
|  | 28250 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28251 | /* confdefs.h.  */ | 
|  | 28252 | _ACEOF | 
|  | 28253 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28254 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28255 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28256 | #include <ext/hash_map> | 
|  | 28257 | #ifdef HAVE_NAMESPACES | 
|  | 28258 | using namespace std; | 
|  | 28259 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28260 | int | 
|  | 28261 | main () | 
|  | 28262 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28263 | hash_map<int, int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28264 | ; | 
|  | 28265 | return 0; | 
|  | 28266 | } | 
|  | 28267 | _ACEOF | 
|  | 28268 | rm -f conftest.$ac_objext | 
|  | 28269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28270 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28271 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28272 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28273 | rm -f conftest.er1 | 
|  | 28274 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28276 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28277 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28278 | || test ! -s conftest.err' | 
|  | 28279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28280 | (eval $ac_try) 2>&5 | 
|  | 28281 | ac_status=$? | 
|  | 28282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28283 | (exit $ac_status); }; } && | 
|  | 28284 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28286 | (eval $ac_try) 2>&5 | 
|  | 28287 | ac_status=$? | 
|  | 28288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28289 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28290 | ac_cv_cxx_have_std_ext_hash_map=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28291 | else | 
|  | 28292 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28293 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28294 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28295 | ac_cv_cxx_have_std_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28296 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28298 | ac_ext=c | 
|  | 28299 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28303 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28304 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28305 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 | 
|  | 28306 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28307 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes | 
|  | 28308 | then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28309 |  | 
|  | 28310 | cat >>confdefs.h <<\_ACEOF | 
|  | 28311 | #define HAVE_STD_EXT_HASH_MAP 1 | 
|  | 28312 | _ACEOF | 
|  | 28313 |  | 
|  | 28314 | else | 
|  | 28315 |  | 
|  | 28316 | cat >>confdefs.h <<\_ACEOF | 
|  | 28317 | #define HAVE_STD_EXT_HASH_MAP 0 | 
|  | 28318 | _ACEOF | 
|  | 28319 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28320 | fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28321 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28322 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 | 
|  | 28323 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 | 
|  | 28324 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then | 
|  | 28325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28326 | else | 
|  | 28327 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28328 | ac_ext=cc | 
|  | 28329 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28330 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28331 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28332 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28333 |  | 
|  | 28334 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28335 | /* confdefs.h.  */ | 
|  | 28336 | _ACEOF | 
|  | 28337 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28338 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28339 | /* end confdefs.h.  */ | 
|  | 28340 | #include <ext/hash_map> | 
|  | 28341 | #ifdef HAVE_NAMESPACES | 
|  | 28342 | using namespace __gnu_cxx; | 
|  | 28343 | #endif | 
|  | 28344 | int | 
|  | 28345 | main () | 
|  | 28346 | { | 
|  | 28347 | hash_map<int,int> t; | 
|  | 28348 | ; | 
|  | 28349 | return 0; | 
|  | 28350 | } | 
|  | 28351 | _ACEOF | 
|  | 28352 | rm -f conftest.$ac_objext | 
|  | 28353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28354 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28355 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28356 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28357 | rm -f conftest.er1 | 
|  | 28358 | cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28360 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28361 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28362 | || test ! -s conftest.err' | 
|  | 28363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28364 | (eval $ac_try) 2>&5 | 
|  | 28365 | ac_status=$? | 
|  | 28366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28367 | (exit $ac_status); }; } && | 
|  | 28368 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28370 | (eval $ac_try) 2>&5 | 
|  | 28371 | ac_status=$? | 
|  | 28372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28373 | (exit $ac_status); }; }; then | 
|  | 28374 | ac_cv_cxx_have_gnu_ext_hash_map=yes | 
|  | 28375 | else | 
|  | 28376 | echo "$as_me: failed program was:" >&5 | 
|  | 28377 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28378 |  | 
|  | 28379 | ac_cv_cxx_have_gnu_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28380 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28382 | ac_ext=c | 
|  | 28383 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28387 |  | 
|  | 28388 | fi | 
|  | 28389 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 | 
|  | 28390 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28391 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes | 
|  | 28392 | then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28393 |  | 
|  | 28394 | cat >>confdefs.h <<\_ACEOF | 
|  | 28395 | #define HAVE_GNU_EXT_HASH_MAP 1 | 
|  | 28396 | _ACEOF | 
|  | 28397 |  | 
|  | 28398 | else | 
|  | 28399 |  | 
|  | 28400 | cat >>confdefs.h <<\_ACEOF | 
|  | 28401 | #define HAVE_GNU_EXT_HASH_MAP 0 | 
|  | 28402 | _ACEOF | 
|  | 28403 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28404 | fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28405 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28406 | echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 | 
|  | 28407 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 | 
|  | 28408 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then | 
|  | 28409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28410 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28411 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28412 | ac_ext=cc | 
|  | 28413 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28417 |  | 
|  | 28418 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28419 | /* confdefs.h.  */ | 
|  | 28420 | _ACEOF | 
|  | 28421 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28422 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28423 | /* end confdefs.h.  */ | 
|  | 28424 | #include <hash_map> | 
|  | 28425 | int | 
|  | 28426 | main () | 
|  | 28427 | { | 
|  | 28428 | hash_map<int,int> t; | 
|  | 28429 | ; | 
|  | 28430 | return 0; | 
|  | 28431 | } | 
|  | 28432 | _ACEOF | 
|  | 28433 | rm -f conftest.$ac_objext | 
|  | 28434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28435 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28436 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28437 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28438 | rm -f conftest.er1 | 
|  | 28439 | cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28441 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28442 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28443 | || test ! -s conftest.err' | 
|  | 28444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28445 | (eval $ac_try) 2>&5 | 
|  | 28446 | ac_status=$? | 
|  | 28447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28448 | (exit $ac_status); }; } && | 
|  | 28449 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28451 | (eval $ac_try) 2>&5 | 
|  | 28452 | ac_status=$? | 
|  | 28453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28454 | (exit $ac_status); }; }; then | 
|  | 28455 | ac_cv_cxx_have_global_hash_map=yes | 
|  | 28456 | else | 
|  | 28457 | echo "$as_me: failed program was:" >&5 | 
|  | 28458 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28459 |  | 
|  | 28460 | ac_cv_cxx_have_global_hash_map=no | 
|  | 28461 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28463 | ac_ext=c | 
|  | 28464 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28468 |  | 
|  | 28469 | fi | 
|  | 28470 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 | 
|  | 28471 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28472 | if test "$ac_cv_cxx_have_global_hash_map" = yes | 
|  | 28473 | then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28474 |  | 
|  | 28475 | cat >>confdefs.h <<\_ACEOF | 
|  | 28476 | #define HAVE_GLOBAL_HASH_MAP 1 | 
|  | 28477 | _ACEOF | 
|  | 28478 |  | 
|  | 28479 | else | 
|  | 28480 |  | 
|  | 28481 | cat >>confdefs.h <<\_ACEOF | 
|  | 28482 | #define HAVE_GLOBAL_HASH_MAP 0 | 
|  | 28483 | _ACEOF | 
|  | 28484 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28485 | fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28486 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28487 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 | 
|  | 28488 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 | 
|  | 28489 | 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] | 28490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28491 | else | 
|  | 28492 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28493 | ac_ext=cc | 
|  | 28494 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28495 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28496 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28497 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28498 |  | 
|  | 28499 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28500 | /* confdefs.h.  */ | 
|  | 28501 | _ACEOF | 
|  | 28502 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28503 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28504 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28505 | #include <ext/hash_set> | 
|  | 28506 | #ifdef HAVE_NAMESPACES | 
|  | 28507 | using namespace std; | 
|  | 28508 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28509 | int | 
|  | 28510 | main () | 
|  | 28511 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28512 | hash_set<int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28513 | ; | 
|  | 28514 | return 0; | 
|  | 28515 | } | 
|  | 28516 | _ACEOF | 
|  | 28517 | rm -f conftest.$ac_objext | 
|  | 28518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28519 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28520 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28521 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28522 | rm -f conftest.er1 | 
|  | 28523 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28525 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28526 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28527 | || test ! -s conftest.err' | 
|  | 28528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28529 | (eval $ac_try) 2>&5 | 
|  | 28530 | ac_status=$? | 
|  | 28531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28532 | (exit $ac_status); }; } && | 
|  | 28533 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28535 | (eval $ac_try) 2>&5 | 
|  | 28536 | ac_status=$? | 
|  | 28537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28538 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28539 | ac_cv_cxx_have_std_ext_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28540 | else | 
|  | 28541 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28542 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28543 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28544 | ac_cv_cxx_have_std_ext_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28545 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28547 | ac_ext=c | 
|  | 28548 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28552 |  | 
|  | 28553 | fi | 
|  | 28554 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 | 
|  | 28555 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28556 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes | 
|  | 28557 | then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28558 |  | 
|  | 28559 | cat >>confdefs.h <<\_ACEOF | 
|  | 28560 | #define HAVE_STD_EXT_HASH_SET 1 | 
|  | 28561 | _ACEOF | 
|  | 28562 |  | 
|  | 28563 | else | 
|  | 28564 |  | 
|  | 28565 | cat >>confdefs.h <<\_ACEOF | 
|  | 28566 | #define HAVE_STD_EXT_HASH_SET 0 | 
|  | 28567 | _ACEOF | 
|  | 28568 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28569 | fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28570 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28571 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 | 
|  | 28572 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 | 
|  | 28573 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then | 
|  | 28574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28575 | else | 
|  | 28576 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28577 | ac_ext=cc | 
|  | 28578 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28579 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28580 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28581 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28582 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28583 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28584 | /* confdefs.h.  */ | 
|  | 28585 | _ACEOF | 
|  | 28586 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28587 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28588 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28589 | #include <ext/hash_set> | 
|  | 28590 | #ifdef HAVE_NAMESPACES | 
|  | 28591 | using namespace __gnu_cxx; | 
|  | 28592 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28593 | int | 
|  | 28594 | main () | 
|  | 28595 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28596 | hash_set<int> t; | 
|  | 28597 | ; | 
|  | 28598 | return 0; | 
|  | 28599 | } | 
|  | 28600 | _ACEOF | 
|  | 28601 | rm -f conftest.$ac_objext | 
|  | 28602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28603 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28604 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28605 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28606 | rm -f conftest.er1 | 
|  | 28607 | cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28609 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28610 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28611 | || test ! -s conftest.err' | 
|  | 28612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28613 | (eval $ac_try) 2>&5 | 
|  | 28614 | ac_status=$? | 
|  | 28615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28616 | (exit $ac_status); }; } && | 
|  | 28617 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28619 | (eval $ac_try) 2>&5 | 
|  | 28620 | ac_status=$? | 
|  | 28621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28622 | (exit $ac_status); }; }; then | 
|  | 28623 | ac_cv_cxx_have_gnu_ext_hash_set=yes | 
|  | 28624 | else | 
|  | 28625 | echo "$as_me: failed program was:" >&5 | 
|  | 28626 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28627 |  | 
|  | 28628 | ac_cv_cxx_have_gnu_ext_hash_set=no | 
|  | 28629 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28631 | ac_ext=c | 
|  | 28632 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28636 |  | 
|  | 28637 | fi | 
|  | 28638 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 | 
|  | 28639 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28640 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes | 
|  | 28641 | then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28642 |  | 
|  | 28643 | cat >>confdefs.h <<\_ACEOF | 
|  | 28644 | #define HAVE_GNU_EXT_HASH_SET 1 | 
|  | 28645 | _ACEOF | 
|  | 28646 |  | 
|  | 28647 | else | 
|  | 28648 |  | 
|  | 28649 | cat >>confdefs.h <<\_ACEOF | 
|  | 28650 | #define HAVE_GNU_EXT_HASH_SET 0 | 
|  | 28651 | _ACEOF | 
|  | 28652 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28653 | fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28654 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28655 | echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 | 
|  | 28656 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 | 
|  | 28657 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then | 
|  | 28658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28659 | else | 
|  | 28660 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28661 | ac_ext=cc | 
|  | 28662 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28663 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28664 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28665 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28666 |  | 
|  | 28667 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28668 | /* confdefs.h.  */ | 
|  | 28669 | _ACEOF | 
|  | 28670 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28671 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28672 | /* end confdefs.h.  */ | 
|  | 28673 | #include <hash_set> | 
|  | 28674 | int | 
|  | 28675 | main () | 
|  | 28676 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28677 | hash_set<int> t; return 0; | 
|  | 28678 | ; | 
|  | 28679 | return 0; | 
|  | 28680 | } | 
|  | 28681 | _ACEOF | 
|  | 28682 | rm -f conftest.$ac_objext | 
|  | 28683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28684 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28685 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28686 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28687 | rm -f conftest.er1 | 
|  | 28688 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28690 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28691 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28692 | || test ! -s conftest.err' | 
|  | 28693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28694 | (eval $ac_try) 2>&5 | 
|  | 28695 | ac_status=$? | 
|  | 28696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28697 | (exit $ac_status); }; } && | 
|  | 28698 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28700 | (eval $ac_try) 2>&5 | 
|  | 28701 | ac_status=$? | 
|  | 28702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28703 | (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28704 | ac_cv_cxx_have_global_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28705 | else | 
|  | 28706 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28707 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28708 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28709 | ac_cv_cxx_have_global_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28710 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28712 | ac_ext=c | 
|  | 28713 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28717 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28718 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28719 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 | 
|  | 28720 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28721 | if test "$ac_cv_cxx_have_global_hash_set" = yes | 
|  | 28722 | then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28723 |  | 
|  | 28724 | cat >>confdefs.h <<\_ACEOF | 
|  | 28725 | #define HAVE_GLOBAL_HASH_SET 1 | 
|  | 28726 | _ACEOF | 
|  | 28727 |  | 
|  | 28728 | else | 
|  | 28729 |  | 
|  | 28730 | cat >>confdefs.h <<\_ACEOF | 
|  | 28731 | #define HAVE_GLOBAL_HASH_SET 0 | 
|  | 28732 | _ACEOF | 
|  | 28733 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28734 | fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28735 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28736 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
|  | 28737 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 | 
|  | 28738 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
|  | 28739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28740 | else | 
|  | 28741 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28742 | ac_ext=cc | 
|  | 28743 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28744 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28745 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28746 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28747 |  | 
|  | 28748 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28749 | /* confdefs.h.  */ | 
|  | 28750 | _ACEOF | 
|  | 28751 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28752 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28753 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28754 | #include <iterator> | 
|  | 28755 | #ifdef HAVE_NAMESPACES | 
|  | 28756 | using namespace std; | 
|  | 28757 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28758 | int | 
|  | 28759 | main () | 
|  | 28760 | { | 
|  | 28761 | iterator<int,int,int> t; return 0; | 
|  | 28762 | ; | 
|  | 28763 | return 0; | 
|  | 28764 | } | 
|  | 28765 | _ACEOF | 
|  | 28766 | rm -f conftest.$ac_objext | 
|  | 28767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28768 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28769 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28770 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28771 | rm -f conftest.er1 | 
|  | 28772 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28774 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28775 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28776 | || test ! -s conftest.err' | 
|  | 28777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28778 | (eval $ac_try) 2>&5 | 
|  | 28779 | ac_status=$? | 
|  | 28780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28781 | (exit $ac_status); }; } && | 
|  | 28782 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28784 | (eval $ac_try) 2>&5 | 
|  | 28785 | ac_status=$? | 
|  | 28786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28787 | (exit $ac_status); }; }; then | 
|  | 28788 | ac_cv_cxx_have_std_iterator=yes | 
|  | 28789 | else | 
|  | 28790 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28791 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28792 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28793 | ac_cv_cxx_have_std_iterator=no | 
|  | 28794 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28796 | ac_ext=c | 
|  | 28797 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28801 |  | 
|  | 28802 |  | 
|  | 28803 | fi | 
|  | 28804 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
|  | 28805 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28806 | if test "$ac_cv_cxx_have_std_iterator" = yes | 
|  | 28807 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28808 |  | 
|  | 28809 | cat >>confdefs.h <<\_ACEOF | 
|  | 28810 | #define HAVE_STD_ITERATOR 1 | 
|  | 28811 | _ACEOF | 
|  | 28812 |  | 
|  | 28813 | else | 
|  | 28814 |  | 
|  | 28815 | cat >>confdefs.h <<\_ACEOF | 
|  | 28816 | #define HAVE_STD_ITERATOR 0 | 
|  | 28817 | _ACEOF | 
|  | 28818 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28819 | fi | 
|  | 28820 |  | 
|  | 28821 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
|  | 28822 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 | 
|  | 28823 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
|  | 28824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28825 | else | 
|  | 28826 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28827 | ac_ext=cc | 
|  | 28828 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28829 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28830 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28831 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28832 |  | 
|  | 28833 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28834 | /* confdefs.h.  */ | 
|  | 28835 | _ACEOF | 
|  | 28836 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28837 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28838 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28839 | #include <iterator> | 
|  | 28840 | #ifdef HAVE_NAMESPACES | 
|  | 28841 | using namespace std; | 
|  | 28842 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28843 | int | 
|  | 28844 | main () | 
|  | 28845 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 28846 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28847 | ; | 
|  | 28848 | return 0; | 
|  | 28849 | } | 
|  | 28850 | _ACEOF | 
|  | 28851 | rm -f conftest.$ac_objext | 
|  | 28852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28853 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28854 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28855 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28856 | rm -f conftest.er1 | 
|  | 28857 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28859 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28860 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28861 | || test ! -s conftest.err' | 
|  | 28862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28863 | (eval $ac_try) 2>&5 | 
|  | 28864 | ac_status=$? | 
|  | 28865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28866 | (exit $ac_status); }; } && | 
|  | 28867 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28869 | (eval $ac_try) 2>&5 | 
|  | 28870 | ac_status=$? | 
|  | 28871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28872 | (exit $ac_status); }; }; then | 
|  | 28873 | ac_cv_cxx_have_bi_iterator=yes | 
|  | 28874 | else | 
|  | 28875 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28876 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28877 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28878 | ac_cv_cxx_have_bi_iterator=no | 
|  | 28879 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28881 | ac_ext=c | 
|  | 28882 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28886 |  | 
|  | 28887 |  | 
|  | 28888 | fi | 
|  | 28889 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
|  | 28890 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28891 | if test "$ac_cv_cxx_have_bi_iterator" = yes | 
|  | 28892 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28893 |  | 
|  | 28894 | cat >>confdefs.h <<\_ACEOF | 
|  | 28895 | #define HAVE_BI_ITERATOR 1 | 
|  | 28896 | _ACEOF | 
|  | 28897 |  | 
|  | 28898 | else | 
|  | 28899 |  | 
|  | 28900 | cat >>confdefs.h <<\_ACEOF | 
|  | 28901 | #define HAVE_BI_ITERATOR 0 | 
|  | 28902 | _ACEOF | 
|  | 28903 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28904 | fi | 
|  | 28905 |  | 
|  | 28906 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
|  | 28907 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 | 
|  | 28908 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
|  | 28909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28910 | else | 
|  | 28911 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28912 | ac_ext=cc | 
|  | 28913 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28914 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28915 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28916 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 28917 |  | 
|  | 28918 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28919 | /* confdefs.h.  */ | 
|  | 28920 | _ACEOF | 
|  | 28921 | cat confdefs.h >>conftest.$ac_ext | 
|  | 28922 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 28923 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28924 | #include <iterator> | 
|  | 28925 | #ifdef HAVE_NAMESPACES | 
|  | 28926 | using namespace std; | 
|  | 28927 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28928 | int | 
|  | 28929 | main () | 
|  | 28930 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 28931 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28932 | ; | 
|  | 28933 | return 0; | 
|  | 28934 | } | 
|  | 28935 | _ACEOF | 
|  | 28936 | rm -f conftest.$ac_objext | 
|  | 28937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28938 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28939 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28940 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 28941 | rm -f conftest.er1 | 
|  | 28942 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28944 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28945 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 28946 | || test ! -s conftest.err' | 
|  | 28947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28948 | (eval $ac_try) 2>&5 | 
|  | 28949 | ac_status=$? | 
|  | 28950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28951 | (exit $ac_status); }; } && | 
|  | 28952 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 28954 | (eval $ac_try) 2>&5 | 
|  | 28955 | ac_status=$? | 
|  | 28956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 28957 | (exit $ac_status); }; }; then | 
|  | 28958 | ac_cv_cxx_have_fwd_iterator=yes | 
|  | 28959 | else | 
|  | 28960 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28961 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 28962 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28963 | ac_cv_cxx_have_fwd_iterator=no | 
|  | 28964 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28966 | ac_ext=c | 
|  | 28967 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 28968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 28969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 28970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 28971 |  | 
|  | 28972 |  | 
|  | 28973 | fi | 
|  | 28974 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
|  | 28975 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28976 | if test "$ac_cv_cxx_have_fwd_iterator" = yes | 
|  | 28977 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28978 |  | 
|  | 28979 | cat >>confdefs.h <<\_ACEOF | 
|  | 28980 | #define HAVE_FWD_ITERATOR 1 | 
|  | 28981 | _ACEOF | 
|  | 28982 |  | 
|  | 28983 | else | 
|  | 28984 |  | 
|  | 28985 | cat >>confdefs.h <<\_ACEOF | 
|  | 28986 | #define HAVE_FWD_ITERATOR 0 | 
|  | 28987 | _ACEOF | 
|  | 28988 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28989 | fi | 
|  | 28990 |  | 
|  | 28991 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28992 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
|  | 28993 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 | 
|  | 28994 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
|  | 28995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 28996 | else | 
|  | 28997 | ac_ext=cc | 
|  | 28998 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 28999 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29000 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29001 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 29002 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29003 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29004 | /* confdefs.h.  */ | 
|  | 29005 | _ACEOF | 
|  | 29006 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29007 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29008 | /* end confdefs.h.  */ | 
|  | 29009 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29010 | int | 
|  | 29011 | main () | 
|  | 29012 | { | 
|  | 29013 | float f; isnan(f); | 
|  | 29014 | ; | 
|  | 29015 | return 0; | 
|  | 29016 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29017 | _ACEOF | 
|  | 29018 | rm -f conftest.$ac_objext | 
|  | 29019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29020 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29021 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29022 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29023 | rm -f conftest.er1 | 
|  | 29024 | cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29026 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29027 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 29028 | || test ! -s conftest.err' | 
|  | 29029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29030 | (eval $ac_try) 2>&5 | 
|  | 29031 | ac_status=$? | 
|  | 29032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29033 | (exit $ac_status); }; } && | 
|  | 29034 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29036 | (eval $ac_try) 2>&5 | 
|  | 29037 | ac_status=$? | 
|  | 29038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29039 | (exit $ac_status); }; }; then | 
|  | 29040 | ac_cv_func_isnan_in_math_h=yes | 
|  | 29041 | else | 
|  | 29042 | echo "$as_me: failed program was:" >&5 | 
|  | 29043 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29044 |  | 
|  | 29045 | ac_cv_func_isnan_in_math_h=no | 
|  | 29046 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29048 | ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29049 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 29050 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29051 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29052 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 29053 |  | 
|  | 29054 | fi | 
|  | 29055 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
|  | 29056 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29057 |  | 
|  | 29058 |  | 
|  | 29059 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29060 |  | 
|  | 29061 | cat >>confdefs.h <<\_ACEOF | 
|  | 29062 | #define HAVE_ISNAN_IN_MATH_H 1 | 
|  | 29063 | _ACEOF | 
|  | 29064 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29065 | fi | 
|  | 29066 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29067 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
|  | 29068 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 | 
|  | 29069 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
|  | 29070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29071 | else | 
|  | 29072 | ac_ext=cc | 
|  | 29073 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 29074 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29075 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29076 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 29077 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29078 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29079 | /* confdefs.h.  */ | 
|  | 29080 | _ACEOF | 
|  | 29081 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29082 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29083 | /* end confdefs.h.  */ | 
|  | 29084 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29085 | int | 
|  | 29086 | main () | 
|  | 29087 | { | 
|  | 29088 | float f; isnan(f); | 
|  | 29089 | ; | 
|  | 29090 | return 0; | 
|  | 29091 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29092 | _ACEOF | 
|  | 29093 | rm -f conftest.$ac_objext | 
|  | 29094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29095 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29096 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29097 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29098 | rm -f conftest.er1 | 
|  | 29099 | cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29101 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29102 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 29103 | || test ! -s conftest.err' | 
|  | 29104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29105 | (eval $ac_try) 2>&5 | 
|  | 29106 | ac_status=$? | 
|  | 29107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29108 | (exit $ac_status); }; } && | 
|  | 29109 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29111 | (eval $ac_try) 2>&5 | 
|  | 29112 | ac_status=$? | 
|  | 29113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29114 | (exit $ac_status); }; }; then | 
|  | 29115 | ac_cv_func_isnan_in_cmath=yes | 
|  | 29116 | else | 
|  | 29117 | echo "$as_me: failed program was:" >&5 | 
|  | 29118 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29119 |  | 
|  | 29120 | ac_cv_func_isnan_in_cmath=no | 
|  | 29121 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29123 | ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29124 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 29125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 29128 |  | 
|  | 29129 | fi | 
|  | 29130 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
|  | 29131 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29132 |  | 
|  | 29133 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29134 |  | 
|  | 29135 | cat >>confdefs.h <<\_ACEOF | 
|  | 29136 | #define HAVE_ISNAN_IN_CMATH 1 | 
|  | 29137 | _ACEOF | 
|  | 29138 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29139 | fi | 
|  | 29140 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29141 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
|  | 29142 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 | 
|  | 29143 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
|  | 29144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29145 | else | 
|  | 29146 | ac_ext=cc | 
|  | 29147 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 29148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 29151 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29152 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29153 | /* confdefs.h.  */ | 
|  | 29154 | _ACEOF | 
|  | 29155 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29156 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29157 | /* end confdefs.h.  */ | 
|  | 29158 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29159 | int | 
|  | 29160 | main () | 
|  | 29161 | { | 
|  | 29162 | float f; std::isnan(f); | 
|  | 29163 | ; | 
|  | 29164 | return 0; | 
|  | 29165 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29166 | _ACEOF | 
|  | 29167 | rm -f conftest.$ac_objext | 
|  | 29168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29169 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29170 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29171 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29172 | rm -f conftest.er1 | 
|  | 29173 | cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29175 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29176 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 29177 | || test ! -s conftest.err' | 
|  | 29178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29179 | (eval $ac_try) 2>&5 | 
|  | 29180 | ac_status=$? | 
|  | 29181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29182 | (exit $ac_status); }; } && | 
|  | 29183 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29185 | (eval $ac_try) 2>&5 | 
|  | 29186 | ac_status=$? | 
|  | 29187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29188 | (exit $ac_status); }; }; then | 
|  | 29189 | ac_cv_func_std_isnan_in_cmath=yes | 
|  | 29190 | else | 
|  | 29191 | echo "$as_me: failed program was:" >&5 | 
|  | 29192 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29193 |  | 
|  | 29194 | ac_cv_func_std_isnan_in_cmath=no | 
|  | 29195 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29197 | ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29198 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 29199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 29202 |  | 
|  | 29203 | fi | 
|  | 29204 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
|  | 29205 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29206 |  | 
|  | 29207 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29208 |  | 
|  | 29209 | cat >>confdefs.h <<\_ACEOF | 
|  | 29210 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
|  | 29211 | _ACEOF | 
|  | 29212 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29213 | fi | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 29214 |  | 
|  | 29215 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29216 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
|  | 29217 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 | 
|  | 29218 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
|  | 29219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29220 | else | 
|  | 29221 | ac_ext=cc | 
|  | 29222 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 29223 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29224 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29225 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 29226 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29227 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29228 | /* confdefs.h.  */ | 
|  | 29229 | _ACEOF | 
|  | 29230 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29231 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29232 | /* end confdefs.h.  */ | 
|  | 29233 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29234 | int | 
|  | 29235 | main () | 
|  | 29236 | { | 
|  | 29237 | float f; isinf(f); | 
|  | 29238 | ; | 
|  | 29239 | return 0; | 
|  | 29240 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29241 | _ACEOF | 
|  | 29242 | rm -f conftest.$ac_objext | 
|  | 29243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29244 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29245 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29246 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29247 | rm -f conftest.er1 | 
|  | 29248 | cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29250 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29251 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 29252 | || test ! -s conftest.err' | 
|  | 29253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29254 | (eval $ac_try) 2>&5 | 
|  | 29255 | ac_status=$? | 
|  | 29256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29257 | (exit $ac_status); }; } && | 
|  | 29258 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29260 | (eval $ac_try) 2>&5 | 
|  | 29261 | ac_status=$? | 
|  | 29262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29263 | (exit $ac_status); }; }; then | 
|  | 29264 | ac_cv_func_isinf_in_math_h=yes | 
|  | 29265 | else | 
|  | 29266 | echo "$as_me: failed program was:" >&5 | 
|  | 29267 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29268 |  | 
|  | 29269 | ac_cv_func_isinf_in_math_h=no | 
|  | 29270 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29272 | ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29273 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 29274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 29277 |  | 
|  | 29278 | fi | 
|  | 29279 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
|  | 29280 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29281 |  | 
|  | 29282 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29283 |  | 
|  | 29284 | cat >>confdefs.h <<\_ACEOF | 
|  | 29285 | #define HAVE_ISINF_IN_MATH_H 1 | 
|  | 29286 | _ACEOF | 
|  | 29287 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29288 | fi | 
|  | 29289 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29290 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
|  | 29291 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 | 
|  | 29292 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
|  | 29293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29294 | else | 
|  | 29295 | ac_ext=cc | 
|  | 29296 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 29297 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29298 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29299 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 29300 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29301 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29302 | /* confdefs.h.  */ | 
|  | 29303 | _ACEOF | 
|  | 29304 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29305 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29306 | /* end confdefs.h.  */ | 
|  | 29307 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29308 | int | 
|  | 29309 | main () | 
|  | 29310 | { | 
|  | 29311 | float f; isinf(f); | 
|  | 29312 | ; | 
|  | 29313 | return 0; | 
|  | 29314 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29315 | _ACEOF | 
|  | 29316 | rm -f conftest.$ac_objext | 
|  | 29317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29318 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29319 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29320 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29321 | rm -f conftest.er1 | 
|  | 29322 | cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29324 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29325 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 29326 | || test ! -s conftest.err' | 
|  | 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); }; } && | 
|  | 29332 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29334 | (eval $ac_try) 2>&5 | 
|  | 29335 | ac_status=$? | 
|  | 29336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29337 | (exit $ac_status); }; }; then | 
|  | 29338 | ac_cv_func_isinf_in_cmath=yes | 
|  | 29339 | else | 
|  | 29340 | echo "$as_me: failed program was:" >&5 | 
|  | 29341 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29342 |  | 
|  | 29343 | ac_cv_func_isinf_in_cmath=no | 
|  | 29344 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29346 | ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29347 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 29348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 29351 |  | 
|  | 29352 | fi | 
|  | 29353 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
|  | 29354 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29355 |  | 
|  | 29356 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29357 |  | 
|  | 29358 | cat >>confdefs.h <<\_ACEOF | 
|  | 29359 | #define HAVE_ISINF_IN_CMATH 1 | 
|  | 29360 | _ACEOF | 
|  | 29361 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29362 | fi | 
|  | 29363 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29364 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
|  | 29365 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 | 
|  | 29366 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
|  | 29367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29368 | else | 
|  | 29369 | ac_ext=cc | 
|  | 29370 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 29371 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29372 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29373 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 29374 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29375 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29376 | /* confdefs.h.  */ | 
|  | 29377 | _ACEOF | 
|  | 29378 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29379 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29380 | /* end confdefs.h.  */ | 
|  | 29381 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29382 | int | 
|  | 29383 | main () | 
|  | 29384 | { | 
|  | 29385 | float f; std::isinf(f)} | 
|  | 29386 | ; | 
|  | 29387 | return 0; | 
|  | 29388 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29389 | _ACEOF | 
|  | 29390 | rm -f conftest.$ac_objext | 
|  | 29391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29392 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29393 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29394 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29395 | rm -f conftest.er1 | 
|  | 29396 | cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29398 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29399 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 29400 | || test ! -s conftest.err' | 
|  | 29401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29402 | (eval $ac_try) 2>&5 | 
|  | 29403 | ac_status=$? | 
|  | 29404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29405 | (exit $ac_status); }; } && | 
|  | 29406 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29408 | (eval $ac_try) 2>&5 | 
|  | 29409 | ac_status=$? | 
|  | 29410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29411 | (exit $ac_status); }; }; then | 
|  | 29412 | ac_cv_func_std_isinf_in_cmath=yes | 
|  | 29413 | else | 
|  | 29414 | echo "$as_me: failed program was:" >&5 | 
|  | 29415 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29416 |  | 
|  | 29417 | ac_cv_func_std_isinf_in_cmath=no | 
|  | 29418 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29420 | ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29421 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 29422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 29425 |  | 
|  | 29426 | fi | 
|  | 29427 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
|  | 29428 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29429 |  | 
|  | 29430 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 29431 |  | 
|  | 29432 | cat >>confdefs.h <<\_ACEOF | 
|  | 29433 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
|  | 29434 | _ACEOF | 
|  | 29435 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29436 | fi | 
|  | 29437 |  | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29438 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
|  | 29439 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 | 
|  | 29440 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
|  | 29441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29442 | else | 
|  | 29443 | ac_ext=cc | 
|  | 29444 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 29445 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29446 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29447 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 29448 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29449 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29450 | /* confdefs.h.  */ | 
|  | 29451 | _ACEOF | 
|  | 29452 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29453 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29454 | /* end confdefs.h.  */ | 
|  | 29455 | #include <ieeefp.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29456 | int | 
|  | 29457 | main () | 
|  | 29458 | { | 
|  | 29459 | float f; finite(f); | 
|  | 29460 | ; | 
|  | 29461 | return 0; | 
|  | 29462 | } | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29463 | _ACEOF | 
|  | 29464 | rm -f conftest.$ac_objext | 
|  | 29465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29466 | (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29467 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29468 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29469 | rm -f conftest.er1 | 
|  | 29470 | cat conftest.err >&5 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29472 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29473 | { ac_try='test -z "$ac_cxx_werror_flag" | 
|  | 29474 | || test ! -s conftest.err' | 
|  | 29475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29476 | (eval $ac_try) 2>&5 | 
|  | 29477 | ac_status=$? | 
|  | 29478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29479 | (exit $ac_status); }; } && | 
|  | 29480 | { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29482 | (eval $ac_try) 2>&5 | 
|  | 29483 | ac_status=$? | 
|  | 29484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29485 | (exit $ac_status); }; }; then | 
|  | 29486 | ac_cv_func_finite_in_ieeefp_h=yes | 
|  | 29487 | else | 
|  | 29488 | echo "$as_me: failed program was:" >&5 | 
|  | 29489 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29490 |  | 
|  | 29491 | ac_cv_func_finite_in_ieeefp_h=no | 
|  | 29492 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29494 | ac_ext=c | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29495 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 29496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 29499 |  | 
|  | 29500 | fi | 
|  | 29501 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
|  | 29502 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29503 |  | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 29504 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29505 |  | 
|  | 29506 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 29507 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 29508 | _ACEOF | 
|  | 29509 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 29510 | fi | 
|  | 29511 |  | 
|  | 29512 |  | 
|  | 29513 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29514 |  | 
|  | 29515 |  | 
|  | 29516 | for ac_header in stdlib.h unistd.h | 
|  | 29517 | do | 
|  | 29518 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 29519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 29520 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 29521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 29522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 29523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29524 | fi | 
|  | 29525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 29526 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 29527 | else | 
|  | 29528 | # Is the header compilable? | 
|  | 29529 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
|  | 29530 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
|  | 29531 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29532 | /* confdefs.h.  */ | 
|  | 29533 | _ACEOF | 
|  | 29534 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29535 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29536 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29537 | $ac_includes_default | 
|  | 29538 | #include <$ac_header> | 
|  | 29539 | _ACEOF | 
|  | 29540 | rm -f conftest.$ac_objext | 
|  | 29541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29542 | (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29543 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29544 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29545 | rm -f conftest.er1 | 
|  | 29546 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29548 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29549 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 29550 | || test ! -s conftest.err' | 
|  | 29551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29552 | (eval $ac_try) 2>&5 | 
|  | 29553 | ac_status=$? | 
|  | 29554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29555 | (exit $ac_status); }; } && | 
|  | 29556 | { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29558 | (eval $ac_try) 2>&5 | 
|  | 29559 | ac_status=$? | 
|  | 29560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29561 | (exit $ac_status); }; }; then | 
|  | 29562 | ac_header_compiler=yes | 
|  | 29563 | else | 
|  | 29564 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29565 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29566 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29567 | ac_header_compiler=no | 
|  | 29568 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29570 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
|  | 29571 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
|  | 29572 |  | 
|  | 29573 | # Is the header present? | 
|  | 29574 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
|  | 29575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
|  | 29576 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29577 | /* confdefs.h.  */ | 
|  | 29578 | _ACEOF | 
|  | 29579 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29580 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29581 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29582 | #include <$ac_header> | 
|  | 29583 | _ACEOF | 
|  | 29584 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
|  | 29585 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
|  | 29586 | ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29587 | grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29588 | rm -f conftest.er1 | 
|  | 29589 | cat conftest.err >&5 | 
|  | 29590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29591 | (exit $ac_status); } >/dev/null; then | 
|  | 29592 | if test -s conftest.err; then | 
|  | 29593 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29594 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29595 | else | 
|  | 29596 | ac_cpp_err= | 
|  | 29597 | fi | 
|  | 29598 | else | 
|  | 29599 | ac_cpp_err=yes | 
|  | 29600 | fi | 
|  | 29601 | if test -z "$ac_cpp_err"; then | 
|  | 29602 | ac_header_preproc=yes | 
|  | 29603 | else | 
|  | 29604 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29605 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29606 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29607 | ac_header_preproc=no | 
|  | 29608 | fi | 
|  | 29609 | rm -f conftest.err conftest.$ac_ext | 
|  | 29610 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
|  | 29611 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
|  | 29612 |  | 
|  | 29613 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29614 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
|  | 29615 | yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29616 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 29617 | 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] | 29618 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
|  | 29619 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
|  | 29620 | ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29621 | ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29622 | no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29623 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
|  | 29624 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29625 | { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
|  | 29626 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
|  | 29627 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
|  | 29628 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
|  | 29629 | { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 29630 | 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] | 29631 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
|  | 29632 | 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] | 29633 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
|  | 29634 | 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] | 29635 | ( | 
|  | 29636 | cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29637 | ## ----------------------------------- ## | 
|  | 29638 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
|  | 29639 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29640 | _ASBOX | 
|  | 29641 | ) | | 
|  | 29642 | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 29643 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29644 | esac | 
|  | 29645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
|  | 29646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
|  | 29647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
|  | 29648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29649 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29650 | eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29651 | fi | 
|  | 29652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
|  | 29653 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
|  | 29654 |  | 
|  | 29655 | fi | 
|  | 29656 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
|  | 29657 | cat >>confdefs.h <<_ACEOF | 
|  | 29658 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 29659 | _ACEOF | 
|  | 29660 |  | 
|  | 29661 | fi | 
|  | 29662 |  | 
|  | 29663 | done | 
|  | 29664 |  | 
|  | 29665 |  | 
|  | 29666 | for ac_func in getpagesize | 
|  | 29667 | do | 
|  | 29668 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 29669 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
|  | 29670 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
|  | 29671 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
|  | 29672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29673 | else | 
|  | 29674 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29675 | /* confdefs.h.  */ | 
|  | 29676 | _ACEOF | 
|  | 29677 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29678 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29679 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29680 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
|  | 29681 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 29682 | #define $ac_func innocuous_$ac_func | 
|  | 29683 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29684 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29685 | which can conflict with char $ac_func (); below. | 
|  | 29686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 29687 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29688 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29689 | #ifdef __STDC__ | 
|  | 29690 | # include <limits.h> | 
|  | 29691 | #else | 
|  | 29692 | # include <assert.h> | 
|  | 29693 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29694 |  | 
|  | 29695 | #undef $ac_func | 
|  | 29696 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29697 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 29698 | #ifdef __cplusplus | 
|  | 29699 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29700 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29701 | #endif | 
|  | 29702 | /* We use char because int might match the return type of a gcc2 | 
|  | 29703 | builtin and then its argument prototype would still apply.  */ | 
|  | 29704 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29705 | /* The GNU C library defines this for functions which it implements | 
|  | 29706 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 29707 | something starting with __ and the normal name is an alias.  */ | 
|  | 29708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 29709 | choke me | 
|  | 29710 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29711 | char (*f) () = $ac_func; | 
|  | 29712 | #endif | 
|  | 29713 | #ifdef __cplusplus | 
|  | 29714 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29715 | #endif | 
|  | 29716 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29717 | int | 
|  | 29718 | main () | 
|  | 29719 | { | 
|  | 29720 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29721 | ; | 
|  | 29722 | return 0; | 
|  | 29723 | } | 
|  | 29724 | _ACEOF | 
|  | 29725 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 29726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29727 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29728 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29729 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 29730 | rm -f conftest.er1 | 
|  | 29731 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29733 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29734 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 29735 | || test ! -s conftest.err' | 
|  | 29736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29737 | (eval $ac_try) 2>&5 | 
|  | 29738 | ac_status=$? | 
|  | 29739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29740 | (exit $ac_status); }; } && | 
|  | 29741 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29743 | (eval $ac_try) 2>&5 | 
|  | 29744 | ac_status=$? | 
|  | 29745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29746 | (exit $ac_status); }; }; then | 
|  | 29747 | eval "$as_ac_var=yes" | 
|  | 29748 | else | 
|  | 29749 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29750 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29751 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29752 | eval "$as_ac_var=no" | 
|  | 29753 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29754 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 29755 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29756 | fi | 
|  | 29757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
|  | 29758 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
|  | 29759 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
|  | 29760 | cat >>confdefs.h <<_ACEOF | 
|  | 29761 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 29762 | _ACEOF | 
|  | 29763 |  | 
|  | 29764 | fi | 
|  | 29765 | done | 
|  | 29766 |  | 
|  | 29767 | echo "$as_me:$LINENO: checking for working mmap" >&5 | 
|  | 29768 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | 
|  | 29769 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
|  | 29770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29771 | else | 
|  | 29772 | if test "$cross_compiling" = yes; then | 
|  | 29773 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 29774 | else | 
|  | 29775 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29776 | /* confdefs.h.  */ | 
|  | 29777 | _ACEOF | 
|  | 29778 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29779 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29780 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29781 | $ac_includes_default | 
|  | 29782 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 29783 | #undef malloc | 
|  | 29784 |  | 
|  | 29785 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|  | 29786 | Here is a matrix of mmap possibilities: | 
|  | 29787 | mmap private not fixed | 
|  | 29788 | mmap private fixed at somewhere currently unmapped | 
|  | 29789 | mmap private fixed at somewhere already mapped | 
|  | 29790 | mmap shared not fixed | 
|  | 29791 | mmap shared fixed at somewhere currently unmapped | 
|  | 29792 | mmap shared fixed at somewhere already mapped | 
|  | 29793 | For private mappings, we should verify that changes cannot be read() | 
|  | 29794 | back from the file, nor mmap's back from the file at a different | 
|  | 29795 | address.  (There have been systems where private was not correctly | 
|  | 29796 | implemented like the infamous i386 svr4.0, and systems where the | 
|  | 29797 | VM page cache was not coherent with the file system buffer cache | 
|  | 29798 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|  | 29799 | For shared mappings, we should conversely verify that changes get | 
|  | 29800 | propagated back to all the places they're supposed to be. | 
|  | 29801 |  | 
|  | 29802 | Grep wants private fixed already mapped. | 
|  | 29803 | The main things grep needs to know about mmap are: | 
|  | 29804 | * does it exist and is it safe to write into the mmap'd area | 
|  | 29805 | * how to use it (BSD variants)  */ | 
|  | 29806 |  | 
|  | 29807 | #include <fcntl.h> | 
|  | 29808 | #include <sys/mman.h> | 
|  | 29809 |  | 
|  | 29810 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
|  | 29811 | char *malloc (); | 
|  | 29812 | #endif | 
|  | 29813 |  | 
|  | 29814 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|  | 29815 | #if !HAVE_GETPAGESIZE | 
|  | 29816 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|  | 29817 | # if !HAVE_SYS_PARAM_H | 
|  | 29818 | #  define HAVE_SYS_PARAM_H 1 | 
|  | 29819 | # endif | 
|  | 29820 |  | 
|  | 29821 | # ifdef _SC_PAGESIZE | 
|  | 29822 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 29823 | # else /* no _SC_PAGESIZE */ | 
|  | 29824 | #  if HAVE_SYS_PARAM_H | 
|  | 29825 | #   include <sys/param.h> | 
|  | 29826 | #   ifdef EXEC_PAGESIZE | 
|  | 29827 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 29828 | #   else /* no EXEC_PAGESIZE */ | 
|  | 29829 | #    ifdef NBPG | 
|  | 29830 | #     define getpagesize() NBPG * CLSIZE | 
|  | 29831 | #     ifndef CLSIZE | 
|  | 29832 | #      define CLSIZE 1 | 
|  | 29833 | #     endif /* no CLSIZE */ | 
|  | 29834 | #    else /* no NBPG */ | 
|  | 29835 | #     ifdef NBPC | 
|  | 29836 | #      define getpagesize() NBPC | 
|  | 29837 | #     else /* no NBPC */ | 
|  | 29838 | #      ifdef PAGESIZE | 
|  | 29839 | #       define getpagesize() PAGESIZE | 
|  | 29840 | #      endif /* PAGESIZE */ | 
|  | 29841 | #     endif /* no NBPC */ | 
|  | 29842 | #    endif /* no NBPG */ | 
|  | 29843 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 29844 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 29845 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 29846 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 29847 | # endif /* no _SC_PAGESIZE */ | 
|  | 29848 |  | 
|  | 29849 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 29850 |  | 
|  | 29851 | int | 
|  | 29852 | main () | 
|  | 29853 | { | 
|  | 29854 | char *data, *data2, *data3; | 
|  | 29855 | int i, pagesize; | 
|  | 29856 | int fd; | 
|  | 29857 |  | 
|  | 29858 | pagesize = getpagesize (); | 
|  | 29859 |  | 
|  | 29860 | /* First, make a file with some known garbage in it. */ | 
|  | 29861 | data = (char *) malloc (pagesize); | 
|  | 29862 | if (!data) | 
|  | 29863 | exit (1); | 
|  | 29864 | for (i = 0; i < pagesize; ++i) | 
|  | 29865 | *(data + i) = rand (); | 
|  | 29866 | umask (0); | 
|  | 29867 | fd = creat ("conftest.mmap", 0600); | 
|  | 29868 | if (fd < 0) | 
|  | 29869 | exit (1); | 
|  | 29870 | if (write (fd, data, pagesize) != pagesize) | 
|  | 29871 | exit (1); | 
|  | 29872 | close (fd); | 
|  | 29873 |  | 
|  | 29874 | /* Next, try to mmap the file at a fixed address which already has | 
|  | 29875 | something else allocated at it.  If we can, also make sure that | 
|  | 29876 | we see the same garbage.  */ | 
|  | 29877 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 29878 | if (fd < 0) | 
|  | 29879 | exit (1); | 
|  | 29880 | data2 = (char *) malloc (2 * pagesize); | 
|  | 29881 | if (!data2) | 
|  | 29882 | exit (1); | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29883 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29884 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29885 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29886 | exit (1); | 
|  | 29887 | for (i = 0; i < pagesize; ++i) | 
|  | 29888 | if (*(data + i) != *(data2 + i)) | 
|  | 29889 | exit (1); | 
|  | 29890 |  | 
|  | 29891 | /* Finally, make sure that changes to the mapped area do not | 
|  | 29892 | percolate back to the file as seen by read().  (This is a bug on | 
|  | 29893 | some variants of i386 svr4.0.)  */ | 
|  | 29894 | for (i = 0; i < pagesize; ++i) | 
|  | 29895 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 29896 | data3 = (char *) malloc (pagesize); | 
|  | 29897 | if (!data3) | 
|  | 29898 | exit (1); | 
|  | 29899 | if (read (fd, data3, pagesize) != pagesize) | 
|  | 29900 | exit (1); | 
|  | 29901 | for (i = 0; i < pagesize; ++i) | 
|  | 29902 | if (*(data + i) != *(data3 + i)) | 
|  | 29903 | exit (1); | 
|  | 29904 | close (fd); | 
|  | 29905 | exit (0); | 
|  | 29906 | } | 
|  | 29907 | _ACEOF | 
|  | 29908 | rm -f conftest$ac_exeext | 
|  | 29909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 29910 | (eval $ac_link) 2>&5 | 
|  | 29911 | ac_status=$? | 
|  | 29912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 29914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29915 | (eval $ac_try) 2>&5 | 
|  | 29916 | ac_status=$? | 
|  | 29917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29918 | (exit $ac_status); }; }; then | 
|  | 29919 | ac_cv_func_mmap_fixed_mapped=yes | 
|  | 29920 | else | 
|  | 29921 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 29922 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29923 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29924 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29925 | ( exit $ac_status ) | 
|  | 29926 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 29927 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29928 | 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] | 29929 | fi | 
|  | 29930 | fi | 
|  | 29931 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
|  | 29932 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | 
|  | 29933 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|  | 29934 |  | 
|  | 29935 | cat >>confdefs.h <<\_ACEOF | 
|  | 29936 | #define HAVE_MMAP 1 | 
|  | 29937 | _ACEOF | 
|  | 29938 |  | 
|  | 29939 | fi | 
|  | 29940 | rm -f conftest.mmap | 
|  | 29941 |  | 
|  | 29942 | echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
|  | 29943 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 | 
|  | 29944 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
|  | 29945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 29946 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29947 | ac_ext=c | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29948 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 29949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 29950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 29951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 29952 |  | 
|  | 29953 | if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 29954 | ac_cv_func_mmap_file=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29955 | else | 
|  | 29956 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29957 |  | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29958 | /* confdefs.h.  */ | 
|  | 29959 | _ACEOF | 
|  | 29960 | cat confdefs.h >>conftest.$ac_ext | 
|  | 29961 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 29962 | /* end confdefs.h.  */ | 
|  | 29963 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29964 | #include <sys/types.h> | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 29965 | #include <sys/mman.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29966 | #include <fcntl.h> | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29967 |  | 
|  | 29968 | int | 
|  | 29969 | main () | 
|  | 29970 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29971 |  | 
|  | 29972 | int fd; | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29973 | fd = creat ("foo",0777); | 
|  | 29974 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
|  | 29975 | unlink ("foo"); | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 29976 | return (fd != (int) MAP_FAILED); | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29977 | ; | 
|  | 29978 | return 0; | 
|  | 29979 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29980 | _ACEOF | 
|  | 29981 | rm -f conftest$ac_exeext | 
|  | 29982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
|  | 29983 | (eval $ac_link) 2>&5 | 
|  | 29984 | ac_status=$? | 
|  | 29985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29986 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
|  | 29987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 29988 | (eval $ac_try) 2>&5 | 
|  | 29989 | ac_status=$? | 
|  | 29990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 29991 | (exit $ac_status); }; }; then | 
|  | 29992 | ac_cv_func_mmap_file=yes | 
|  | 29993 | else | 
|  | 29994 | echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 29995 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29996 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 29997 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29998 | ( exit $ac_status ) | 
|  | 29999 | ac_cv_func_mmap_file=no | 
|  | 30000 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30001 | 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] | 30002 | fi | 
|  | 30003 | ac_ext=c | 
|  | 30004 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 30005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 30006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 30007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 30008 |  | 
|  | 30009 |  | 
|  | 30010 | fi | 
|  | 30011 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
|  | 30012 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 | 
|  | 30013 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 30014 |  | 
|  | 30015 | cat >>confdefs.h <<\_ACEOF | 
|  | 30016 | #define HAVE_MMAP_FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30017 | _ACEOF | 
|  | 30018 |  | 
|  | 30019 | MMAP_FILE=yes | 
|  | 30020 |  | 
|  | 30021 | fi | 
|  | 30022 |  | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30023 | echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 | 
|  | 30024 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6 | 
|  | 30025 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then | 
|  | 30026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 30027 | else | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 30028 | if test "$llvm_cv_os_type" = "Interix" ; then | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30029 | ac_cv_need_dev_zero_for_mmap=yes | 
|  | 30030 | else | 
|  | 30031 | ac_cv_need_dev_zero_for_mmap=no | 
|  | 30032 | fi | 
|  | 30033 |  | 
|  | 30034 | fi | 
|  | 30035 | echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 | 
|  | 30036 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6 | 
|  | 30037 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then | 
|  | 30038 |  | 
|  | 30039 | cat >>confdefs.h <<\_ACEOF | 
|  | 30040 | #define NEED_DEV_ZERO_FOR_MMAP 1 | 
|  | 30041 | _ACEOF | 
|  | 30042 |  | 
|  | 30043 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30044 | echo "$as_me:$LINENO: checking for mprotect" >&5 | 
|  | 30045 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 | 
|  | 30046 | if test "${ac_cv_func_mprotect+set}" = set; then | 
|  | 30047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 30048 | else | 
|  | 30049 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30050 | /* confdefs.h.  */ | 
|  | 30051 | _ACEOF | 
|  | 30052 | cat confdefs.h >>conftest.$ac_ext | 
|  | 30053 | cat >>conftest.$ac_ext <<_ACEOF | 
|  | 30054 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30055 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. | 
|  | 30056 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 30057 | #define mprotect innocuous_mprotect | 
|  | 30058 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30059 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30060 | which can conflict with char mprotect (); below. | 
|  | 30061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 30062 | <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30063 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30064 | #ifdef __STDC__ | 
|  | 30065 | # include <limits.h> | 
|  | 30066 | #else | 
|  | 30067 | # include <assert.h> | 
|  | 30068 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30069 |  | 
|  | 30070 | #undef mprotect | 
|  | 30071 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30072 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 30073 | #ifdef __cplusplus | 
|  | 30074 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30075 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30076 | #endif | 
|  | 30077 | /* We use char because int might match the return type of a gcc2 | 
|  | 30078 | builtin and then its argument prototype would still apply.  */ | 
|  | 30079 | char mprotect (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30080 | /* The GNU C library defines this for functions which it implements | 
|  | 30081 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 30082 | something starting with __ and the normal name is an alias.  */ | 
|  | 30083 | #if defined (__stub_mprotect) || defined (__stub___mprotect) | 
|  | 30084 | choke me | 
|  | 30085 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30086 | char (*f) () = mprotect; | 
|  | 30087 | #endif | 
|  | 30088 | #ifdef __cplusplus | 
|  | 30089 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30090 | #endif | 
|  | 30091 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30092 | int | 
|  | 30093 | main () | 
|  | 30094 | { | 
|  | 30095 | return f != mprotect; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30096 | ; | 
|  | 30097 | return 0; | 
|  | 30098 | } | 
|  | 30099 | _ACEOF | 
|  | 30100 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 30101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30102 | (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30103 | ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30104 | grep -v '^ *+' conftest.er1 >conftest.err | 
|  | 30105 | rm -f conftest.er1 | 
|  | 30106 | cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 30108 | (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30109 | { ac_try='test -z "$ac_c_werror_flag" | 
|  | 30110 | || test ! -s conftest.err' | 
|  | 30111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 30112 | (eval $ac_try) 2>&5 | 
|  | 30113 | ac_status=$? | 
|  | 30114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 30115 | (exit $ac_status); }; } && | 
|  | 30116 | { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
|  | 30118 | (eval $ac_try) 2>&5 | 
|  | 30119 | ac_status=$? | 
|  | 30120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
|  | 30121 | (exit $ac_status); }; }; then | 
|  | 30122 | ac_cv_func_mprotect=yes | 
|  | 30123 | else | 
|  | 30124 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30125 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 30126 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30127 | ac_cv_func_mprotect=no | 
|  | 30128 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30129 | rm -f conftest.err conftest.$ac_objext \ | 
|  | 30130 | conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30131 | fi | 
|  | 30132 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 | 
|  | 30133 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 | 
|  | 30134 | if test $ac_cv_func_mprotect = yes; then | 
|  | 30135 | : | 
|  | 30136 | else | 
|  | 30137 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 | 
|  | 30138 | echo "$as_me: error: Function mprotect() required but not found" >&2;} | 
|  | 30139 | { (exit 1); exit 1; }; } | 
|  | 30140 | fi | 
|  | 30141 |  | 
|  | 30142 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30143 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30144 | then | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 30145 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 | 
|  | 30146 | 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] | 30147 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30148 | if test "$ac_cv_func_mmap_file" = "no" | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30149 | then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30150 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
|  | 30151 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 30152 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30153 |  | 
|  | 30154 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30155 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
|  | 30156 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30157 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then | 
|  | 30158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
|  | 30159 | else | 
|  | 30160 | llvm_cv_llvmgcc_sanity="no" | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30161 | if test -x "$LLVMGCC" ; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30162 | cp /dev/null conftest.c | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30163 | "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30164 | if test $? -eq 0 ; then | 
|  | 30165 | llvm_cv_llvmgcc_sanity="yes" | 
|  | 30166 | fi | 
|  | 30167 | rm conftest.c | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30168 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30169 | fi | 
|  | 30170 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 | 
|  | 30171 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 | 
|  | 30172 |  | 
|  | 30173 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30174 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30175 | LLVMCC1=$llvmcc1path | 
|  | 30176 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30177 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30178 | LLVMCC1PLUS=$llvmcc1pluspath | 
|  | 30179 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30180 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` | 
|  | 30181 | LLVMGCCDIR=$llvmgccdir | 
|  | 30182 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 30183 | fi | 
|  | 30184 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30185 | SHLIBEXT=$libltdl_cv_shlibext | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 30186 |  | 
|  | 30187 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30188 | # Translate the various configuration directories and other basic | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30189 | # information into substitutions that will end up in Makefile.config.in | 
|  | 30190 | # that these configured values can be used by the makefiles | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30191 | eval LLVM_PREFIX="${prefix}"; | 
|  | 30192 | eval LLVM_BINDIR="${prefix}/bin"; | 
|  | 30193 | eval LLVM_LIBDIR="${prefix}/lib"; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30194 | eval LLVM_DATADIR="${prefix}/share/llvm"; | 
|  | 30195 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; | 
|  | 30196 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30197 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
|  | 30198 | eval LLVM_INFODIR="${prefix}/info"; | 
|  | 30199 | eval LLVM_MANDIR="${prefix}/man"; | 
|  | 30200 | LLVM_CONFIGTIME=`date` | 
|  | 30201 |  | 
|  | 30202 |  | 
|  | 30203 |  | 
|  | 30204 |  | 
|  | 30205 |  | 
|  | 30206 |  | 
|  | 30207 |  | 
|  | 30208 |  | 
|  | 30209 |  | 
|  | 30210 |  | 
|  | 30211 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30212 | # Place the various directores into the config.h file as #defines so that we | 
|  | 30213 | # can know about the installation paths within LLVM. | 
|  | 30214 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30215 | cat >>confdefs.h <<_ACEOF | 
|  | 30216 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
|  | 30217 | _ACEOF | 
|  | 30218 |  | 
|  | 30219 |  | 
|  | 30220 | cat >>confdefs.h <<_ACEOF | 
|  | 30221 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
|  | 30222 | _ACEOF | 
|  | 30223 |  | 
|  | 30224 |  | 
|  | 30225 | cat >>confdefs.h <<_ACEOF | 
|  | 30226 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
|  | 30227 | _ACEOF | 
|  | 30228 |  | 
|  | 30229 |  | 
|  | 30230 | cat >>confdefs.h <<_ACEOF | 
|  | 30231 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
|  | 30232 | _ACEOF | 
|  | 30233 |  | 
|  | 30234 |  | 
|  | 30235 | cat >>confdefs.h <<_ACEOF | 
|  | 30236 | #define LLVM_DATADIR "$LLVM_DOCSDIR" | 
|  | 30237 | _ACEOF | 
|  | 30238 |  | 
|  | 30239 |  | 
|  | 30240 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 30241 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30242 | _ACEOF | 
|  | 30243 |  | 
|  | 30244 |  | 
|  | 30245 | cat >>confdefs.h <<_ACEOF | 
|  | 30246 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
|  | 30247 | _ACEOF | 
|  | 30248 |  | 
|  | 30249 |  | 
|  | 30250 | cat >>confdefs.h <<_ACEOF | 
|  | 30251 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
|  | 30252 | _ACEOF | 
|  | 30253 |  | 
|  | 30254 |  | 
|  | 30255 | cat >>confdefs.h <<_ACEOF | 
|  | 30256 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
|  | 30257 | _ACEOF | 
|  | 30258 |  | 
|  | 30259 |  | 
|  | 30260 | cat >>confdefs.h <<_ACEOF | 
|  | 30261 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
|  | 30262 | _ACEOF | 
|  | 30263 |  | 
|  | 30264 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30265 |  | 
|  | 30266 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" | 
|  | 30267 |  | 
|  | 30268 |  | 
|  | 30269 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
|  | 30270 |  | 
|  | 30271 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" | 
|  | 30272 |  | 
|  | 30273 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" | 
|  | 30274 |  | 
|  | 30275 | ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h" | 
|  | 30276 |  | 
|  | 30277 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" | 
|  | 30278 |  | 
|  | 30279 |  | 
|  | 30280 | ac_config_files="$ac_config_files Makefile.config" | 
|  | 30281 |  | 
|  | 30282 |  | 
|  | 30283 | ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c" | 
|  | 30284 |  | 
|  | 30285 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30286 | ac_config_files="$ac_config_files docs/doxygen.cfg" | 
|  | 30287 |  | 
|  | 30288 |  | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 30289 | ac_config_commands="$ac_config_commands setup" | 
|  | 30290 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30291 | ac_config_commands="$ac_config_commands Makefile" | 
|  | 30292 |  | 
|  | 30293 |  | 
|  | 30294 | ac_config_commands="$ac_config_commands Makefile.common" | 
|  | 30295 |  | 
|  | 30296 |  | 
|  | 30297 | ac_config_commands="$ac_config_commands examples/Makefile" | 
|  | 30298 |  | 
|  | 30299 |  | 
|  | 30300 | ac_config_commands="$ac_config_commands lib/Makefile" | 
|  | 30301 |  | 
|  | 30302 |  | 
|  | 30303 | ac_config_commands="$ac_config_commands runtime/Makefile" | 
|  | 30304 |  | 
|  | 30305 |  | 
|  | 30306 | ac_config_commands="$ac_config_commands test/Makefile" | 
|  | 30307 |  | 
|  | 30308 |  | 
|  | 30309 | ac_config_commands="$ac_config_commands test/Makefile.tests" | 
|  | 30310 |  | 
|  | 30311 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30312 | ac_config_commands="$ac_config_commands tools/Makefile" | 
|  | 30313 |  | 
|  | 30314 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30315 | ac_config_commands="$ac_config_commands utils/Makefile" | 
|  | 30316 |  | 
|  | 30317 |  | 
|  | 30318 | ac_config_commands="$ac_config_commands projects/Makefile" | 
|  | 30319 |  | 
|  | 30320 |  | 
|  | 30321 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30322 | cat >confcache <<\_ACEOF | 
|  | 30323 | # This file is a shell script that caches the results of configure | 
|  | 30324 | # tests run on this system so they can be shared between configure | 
|  | 30325 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 30326 | # It is not useful on other systems.  If it contains results you don't | 
|  | 30327 | # want to keep, you may remove or edit it. | 
|  | 30328 | # | 
|  | 30329 | # config.status only pays attention to the cache file if you give it | 
|  | 30330 | # the --recheck option to rerun configure. | 
|  | 30331 | # | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30332 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30333 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 30334 | # following values. | 
|  | 30335 |  | 
|  | 30336 | _ACEOF | 
|  | 30337 |  | 
|  | 30338 | # The following way of writing the cache mishandles newlines in values, | 
|  | 30339 | # but we know of no workaround that is simple, portable, and efficient. | 
|  | 30340 | # So, don't put newlines in cache variables' values. | 
|  | 30341 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 30342 | # and sets the high bit in the cache file unless we assign to the vars. | 
|  | 30343 | { | 
|  | 30344 | (set) 2>&1 | | 
|  | 30345 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|  | 30346 | *ac_space=\ *) | 
|  | 30347 | # `set' does not quote correctly, so add quotes (double-quote | 
|  | 30348 | # substitution turns \\\\ into \\, and sed turns \\ into \). | 
|  | 30349 | sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30350 | "s/'/'\\\\''/g; | 
|  | 30351 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30352 | ;; | 
|  | 30353 | *) | 
|  | 30354 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|  | 30355 | sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30356 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30357 | ;; | 
|  | 30358 | esac; | 
|  | 30359 | } | | 
|  | 30360 | sed ' | 
|  | 30361 | t clear | 
|  | 30362 | : clear | 
|  | 30363 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 30364 | t end | 
|  | 30365 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 30366 | : end' >>confcache | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30367 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30368 | if test -w $cache_file; then | 
|  | 30369 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
|  | 30370 | cat confcache >$cache_file | 
|  | 30371 | else | 
|  | 30372 | echo "not updating unwritable cache $cache_file" | 
|  | 30373 | fi | 
|  | 30374 | fi | 
|  | 30375 | rm -f confcache | 
|  | 30376 |  | 
|  | 30377 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 30378 | # Let make expand exec_prefix. | 
|  | 30379 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|  | 30380 |  | 
|  | 30381 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
|  | 30382 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
|  | 30383 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 30384 | # (actually we leave an empty line to preserve line numbers). | 
|  | 30385 | if test "x$srcdir" = x.; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30386 | ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30387 | s/:*\$(srcdir):*/:/; | 
|  | 30388 | s/:*\${srcdir}:*/:/; | 
|  | 30389 | s/:*@srcdir@:*/:/; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30390 | s/^\([^=]*=[	 ]*\):*/\1/; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30391 | s/:*$//; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30392 | s/^[^=]*=[	 ]*$//; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30393 | }' | 
|  | 30394 | fi | 
|  | 30395 |  | 
|  | 30396 | DEFS=-DHAVE_CONFIG_H | 
|  | 30397 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30398 | ac_libobjs= | 
|  | 30399 | ac_ltlibobjs= | 
|  | 30400 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 30401 | # 1. Remove the extension, and $U if already installed. | 
|  | 30402 | ac_i=`echo "$ac_i" | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30403 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30404 | # 2. Add them. | 
|  | 30405 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
|  | 30406 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
|  | 30407 | done | 
|  | 30408 | LIBOBJS=$ac_libobjs | 
|  | 30409 |  | 
|  | 30410 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 30411 |  | 
|  | 30412 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30413 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
|  | 30414 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | 
|  | 30415 | Usually this means the macro was only invoked conditionally." >&5 | 
|  | 30416 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | 
|  | 30417 | Usually this means the macro was only invoked conditionally." >&2;} | 
|  | 30418 | { (exit 1); exit 1; }; } | 
|  | 30419 | fi | 
|  | 30420 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
|  | 30421 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
|  | 30422 | Usually this means the macro was only invoked conditionally." >&5 | 
|  | 30423 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
|  | 30424 | Usually this means the macro was only invoked conditionally." >&2;} | 
|  | 30425 | { (exit 1); exit 1; }; } | 
|  | 30426 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30427 |  | 
|  | 30428 | : ${CONFIG_STATUS=./config.status} | 
|  | 30429 | ac_clean_files_save=$ac_clean_files | 
|  | 30430 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
|  | 30431 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
|  | 30432 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
|  | 30433 | cat >$CONFIG_STATUS <<_ACEOF | 
|  | 30434 | #! $SHELL | 
|  | 30435 | # Generated by $as_me. | 
|  | 30436 | # Run this file to recreate the current configuration. | 
|  | 30437 | # Compiler output produced by configure, useful for debugging | 
|  | 30438 | # configure, is in config.log if it exists. | 
|  | 30439 |  | 
|  | 30440 | debug=false | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30441 | ac_cs_recheck=false | 
|  | 30442 | ac_cs_silent=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30443 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 30444 | _ACEOF | 
|  | 30445 |  | 
|  | 30446 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30447 | ## --------------------- ## | 
|  | 30448 | ## M4sh Initialization.  ## | 
|  | 30449 | ## --------------------- ## | 
|  | 30450 |  | 
|  | 30451 | # Be Bourne compatible | 
|  | 30452 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
|  | 30453 | emulate sh | 
|  | 30454 | NULLCMD=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30455 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
|  | 30456 | # is contrary to our usage.  Disable this feature. | 
|  | 30457 | alias -g '${1+"$@"}'='"$@"' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30458 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
|  | 30459 | set -o posix | 
|  | 30460 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30461 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30462 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30463 | # Support unset when possible. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30464 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30465 | as_unset=unset | 
|  | 30466 | else | 
|  | 30467 | as_unset=false | 
|  | 30468 | fi | 
|  | 30469 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30470 |  | 
|  | 30471 | # Work around bugs in pre-3.0 UWIN ksh. | 
|  | 30472 | $as_unset ENV MAIL MAILPATH | 
|  | 30473 | PS1='$ ' | 
|  | 30474 | PS2='> ' | 
|  | 30475 | PS4='+ ' | 
|  | 30476 |  | 
|  | 30477 | # NLS nuisances. | 
|  | 30478 | for as_var in \ | 
|  | 30479 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
|  | 30480 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
|  | 30481 | LC_TELEPHONE LC_TIME | 
|  | 30482 | do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30483 | 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] | 30484 | eval $as_var=C; export $as_var | 
|  | 30485 | else | 
|  | 30486 | $as_unset $as_var | 
|  | 30487 | fi | 
|  | 30488 | done | 
|  | 30489 |  | 
|  | 30490 | # Required to use basename. | 
|  | 30491 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
|  | 30492 | as_expr=expr | 
|  | 30493 | else | 
|  | 30494 | as_expr=false | 
|  | 30495 | fi | 
|  | 30496 |  | 
|  | 30497 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
|  | 30498 | as_basename=basename | 
|  | 30499 | else | 
|  | 30500 | as_basename=false | 
|  | 30501 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30502 |  | 
|  | 30503 |  | 
|  | 30504 | # Name of the executable. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30505 | as_me=`$as_basename "$0" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30506 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 30507 | X"$0" : 'X\(//\)$' \| \ | 
|  | 30508 | X"$0" : 'X\(/\)$' \| \ | 
|  | 30509 | .     : '\(.\)' 2>/dev/null || | 
|  | 30510 | echo X/"$0" | | 
|  | 30511 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
|  | 30512 | /^X\/\(\/\/\)$/{ s//\1/; q; } | 
|  | 30513 | /^X\/\(\/\).*/{ s//\1/; q; } | 
|  | 30514 | s/.*/./; q'` | 
|  | 30515 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30516 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30517 | # PATH needs CR, and LINENO needs CR and PATH. | 
|  | 30518 | # Avoid depending upon Character Ranges. | 
|  | 30519 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 30520 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 30521 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 30522 | as_cr_digits='0123456789' | 
|  | 30523 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
|  | 30524 |  | 
|  | 30525 | # The user is always right. | 
|  | 30526 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30527 | echo "#! /bin/sh" >conf$$.sh | 
|  | 30528 | echo  "exit 0"   >>conf$$.sh | 
|  | 30529 | chmod +x conf$$.sh | 
|  | 30530 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30531 | PATH_SEPARATOR=';' | 
|  | 30532 | else | 
|  | 30533 | PATH_SEPARATOR=: | 
|  | 30534 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30535 | rm -f conf$$.sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30536 | fi | 
|  | 30537 |  | 
|  | 30538 |  | 
|  | 30539 | as_lineno_1=$LINENO | 
|  | 30540 | as_lineno_2=$LINENO | 
|  | 30541 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
|  | 30542 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 30543 | test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
|  | 30544 | # Find who we are.  Look in the path if we contain no path at all | 
|  | 30545 | # relative or not. | 
|  | 30546 | case $0 in | 
|  | 30547 | *[\\/]* ) as_myself=$0 ;; | 
|  | 30548 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30549 | for as_dir in $PATH | 
|  | 30550 | do | 
|  | 30551 | IFS=$as_save_IFS | 
|  | 30552 | test -z "$as_dir" && as_dir=. | 
|  | 30553 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 30554 | done | 
|  | 30555 |  | 
|  | 30556 | ;; | 
|  | 30557 | esac | 
|  | 30558 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 30559 | # in which case we are not to be found in the path. | 
|  | 30560 | if test "x$as_myself" = x; then | 
|  | 30561 | as_myself=$0 | 
|  | 30562 | fi | 
|  | 30563 | if test ! -f "$as_myself"; then | 
|  | 30564 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
|  | 30565 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
|  | 30566 | { (exit 1); exit 1; }; } | 
|  | 30567 | fi | 
|  | 30568 | case $CONFIG_SHELL in | 
|  | 30569 | '') | 
|  | 30570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30571 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 30572 | do | 
|  | 30573 | IFS=$as_save_IFS | 
|  | 30574 | test -z "$as_dir" && as_dir=. | 
|  | 30575 | for as_base in sh bash ksh sh5; do | 
|  | 30576 | case $as_dir in | 
|  | 30577 | /*) | 
|  | 30578 | if ("$as_dir/$as_base" -c ' | 
|  | 30579 | as_lineno_1=$LINENO | 
|  | 30580 | as_lineno_2=$LINENO | 
|  | 30581 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
|  | 30582 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
|  | 30583 | 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] | 30584 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
|  | 30585 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30586 | CONFIG_SHELL=$as_dir/$as_base | 
|  | 30587 | export CONFIG_SHELL | 
|  | 30588 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
|  | 30589 | fi;; | 
|  | 30590 | esac | 
|  | 30591 | done | 
|  | 30592 | done | 
|  | 30593 | ;; | 
|  | 30594 | esac | 
|  | 30595 |  | 
|  | 30596 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
|  | 30597 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
|  | 30598 | # line-number line before each line; the second 'sed' does the real | 
|  | 30599 | # work.  The second script uses 'N' to pair each line-number line | 
|  | 30600 | # with the numbered line, and appends trailing '-' during | 
|  | 30601 | # substitution so that $LINENO is not a special case at line end. | 
|  | 30602 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
|  | 30603 | # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
|  | 30604 | sed '=' <$as_myself | | 
|  | 30605 | sed ' | 
|  | 30606 | N | 
|  | 30607 | s,$,-, | 
|  | 30608 | : loop | 
|  | 30609 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
|  | 30610 | t loop | 
|  | 30611 | s,-$,, | 
|  | 30612 | s,^['$as_cr_digits']*\n,, | 
|  | 30613 | ' >$as_me.lineno && | 
|  | 30614 | chmod +x $as_me.lineno || | 
|  | 30615 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
|  | 30616 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
|  | 30617 | { (exit 1); exit 1; }; } | 
|  | 30618 |  | 
|  | 30619 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 30620 | # (the dirname of $[0] is not the place where we might find the | 
|  | 30621 | # original and so on.  Autoconf is especially sensible to this). | 
|  | 30622 | . ./$as_me.lineno | 
|  | 30623 | # Exit status is that of the last command. | 
|  | 30624 | exit | 
|  | 30625 | } | 
|  | 30626 |  | 
|  | 30627 |  | 
|  | 30628 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
|  | 30629 | *c*,-n*) ECHO_N= ECHO_C=' | 
|  | 30630 | ' ECHO_T='	' ;; | 
|  | 30631 | *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
|  | 30632 | *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
|  | 30633 | esac | 
|  | 30634 |  | 
|  | 30635 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
|  | 30636 | as_expr=expr | 
|  | 30637 | else | 
|  | 30638 | as_expr=false | 
|  | 30639 | fi | 
|  | 30640 |  | 
|  | 30641 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 30642 | echo >conf$$.file | 
|  | 30643 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 30644 | # We could just check for DJGPP; but this test a) works b) is more generic | 
|  | 30645 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
|  | 30646 | if test -f conf$$.exe; then | 
|  | 30647 | # Don't use ln at all; we don't have any links | 
|  | 30648 | as_ln_s='cp -p' | 
|  | 30649 | else | 
|  | 30650 | as_ln_s='ln -s' | 
|  | 30651 | fi | 
|  | 30652 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 30653 | as_ln_s=ln | 
|  | 30654 | else | 
|  | 30655 | as_ln_s='cp -p' | 
|  | 30656 | fi | 
|  | 30657 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 30658 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30659 | if mkdir -p . 2>/dev/null; then | 
|  | 30660 | as_mkdir_p=: | 
|  | 30661 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30662 | test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30663 | as_mkdir_p=false | 
|  | 30664 | fi | 
|  | 30665 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30666 | as_executable_p="test -f" | 
|  | 30667 |  | 
|  | 30668 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30669 | 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] | 30670 |  | 
|  | 30671 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30672 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30673 |  | 
|  | 30674 |  | 
|  | 30675 | # IFS | 
|  | 30676 | # We need space, tab and new line, in precisely that order. | 
|  | 30677 | as_nl=' | 
|  | 30678 | ' | 
|  | 30679 | IFS=" 	$as_nl" | 
|  | 30680 |  | 
|  | 30681 | # CDPATH. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30682 | $as_unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30683 |  | 
|  | 30684 | exec 6>&1 | 
|  | 30685 |  | 
|  | 30686 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
|  | 30687 | # report actual input values of CONFIG_FILES etc. instead of their | 
|  | 30688 | # values after options handling.  Logging --version etc. is OK. | 
|  | 30689 | exec 5>>config.log | 
|  | 30690 | { | 
|  | 30691 | echo | 
|  | 30692 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 30693 | ## Running $as_me. ## | 
|  | 30694 | _ASBOX | 
|  | 30695 | } >&5 | 
|  | 30696 | cat >&5 <<_CSEOF | 
|  | 30697 |  | 
| Reid Spencer | 78ba11d | 2005-02-16 16:21:00 +0000 | [diff] [blame] | 30698 | This file was extended by llvm $as_me 1.5cvs, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30699 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30700 |  | 
|  | 30701 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 30702 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 30703 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 30704 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 30705 | $ $0 $@ | 
|  | 30706 |  | 
|  | 30707 | _CSEOF | 
|  | 30708 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
|  | 30709 | echo >&5 | 
|  | 30710 | _ACEOF | 
|  | 30711 |  | 
|  | 30712 | # Files that config.status was made for. | 
|  | 30713 | if test -n "$ac_config_files"; then | 
|  | 30714 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
|  | 30715 | fi | 
|  | 30716 |  | 
|  | 30717 | if test -n "$ac_config_headers"; then | 
|  | 30718 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
|  | 30719 | fi | 
|  | 30720 |  | 
|  | 30721 | if test -n "$ac_config_links"; then | 
|  | 30722 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
|  | 30723 | fi | 
|  | 30724 |  | 
|  | 30725 | if test -n "$ac_config_commands"; then | 
|  | 30726 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
|  | 30727 | fi | 
|  | 30728 |  | 
|  | 30729 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 30730 |  | 
|  | 30731 | ac_cs_usage="\ | 
|  | 30732 | \`$as_me' instantiates files from templates according to the | 
|  | 30733 | current configuration. | 
|  | 30734 |  | 
|  | 30735 | Usage: $0 [OPTIONS] [FILE]... | 
|  | 30736 |  | 
|  | 30737 | -h, --help       print this help, then exit | 
|  | 30738 | -V, --version    print version number, then exit | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30739 | -q, --quiet      do not print progress messages | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30740 | -d, --debug      don't remove temporary files | 
|  | 30741 | --recheck    update $as_me by reconfiguring in the same conditions | 
|  | 30742 | --file=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30743 | instantiate the configuration file FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30744 | --header=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30745 | instantiate the configuration header FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30746 |  | 
|  | 30747 | Configuration files: | 
|  | 30748 | $config_files | 
|  | 30749 |  | 
|  | 30750 | Configuration headers: | 
|  | 30751 | $config_headers | 
|  | 30752 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30753 | Configuration commands: | 
|  | 30754 | $config_commands | 
|  | 30755 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30756 | Report bugs to <bug-autoconf@gnu.org>." | 
|  | 30757 | _ACEOF | 
|  | 30758 |  | 
|  | 30759 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 30760 | ac_cs_version="\\ | 
| Reid Spencer | 78ba11d | 2005-02-16 16:21:00 +0000 | [diff] [blame] | 30761 | llvm config.status 1.5cvs | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30762 | configured by $0, generated by GNU Autoconf 2.59, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30763 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
|  | 30764 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30765 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30766 | This config.status script is free software; the Free Software Foundation | 
|  | 30767 | gives unlimited permission to copy, distribute and modify it." | 
|  | 30768 | srcdir=$srcdir | 
|  | 30769 | INSTALL="$INSTALL" | 
|  | 30770 | _ACEOF | 
|  | 30771 |  | 
|  | 30772 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 30773 | # If no file are specified by the user, then we need to provide default | 
|  | 30774 | # value.  By we need to know if files were specified by the user. | 
|  | 30775 | ac_need_defaults=: | 
|  | 30776 | while test $# != 0 | 
|  | 30777 | do | 
|  | 30778 | case $1 in | 
|  | 30779 | --*=*) | 
|  | 30780 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
|  | 30781 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30782 | ac_shift=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30783 | ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30784 | -*) | 
|  | 30785 | ac_option=$1 | 
|  | 30786 | ac_optarg=$2 | 
|  | 30787 | ac_shift=shift | 
|  | 30788 | ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30789 | *) # This is not an option, so the user has probably given explicit | 
|  | 30790 | # arguments. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30791 | ac_option=$1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30792 | ac_need_defaults=false;; | 
|  | 30793 | esac | 
|  | 30794 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30795 | case $ac_option in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30796 | # Handling of the options. | 
|  | 30797 | _ACEOF | 
| John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 30798 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30799 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 30800 | ac_cs_recheck=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30801 | --version | --vers* | -V ) | 
|  | 30802 | echo "$ac_cs_version"; exit 0 ;; | 
|  | 30803 | --he | --h) | 
|  | 30804 | # Conflict between --help and --header | 
|  | 30805 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
|  | 30806 | Try \`$0 --help' for more information." >&5 | 
|  | 30807 | echo "$as_me: error: ambiguous option: $1 | 
|  | 30808 | Try \`$0 --help' for more information." >&2;} | 
|  | 30809 | { (exit 1); exit 1; }; };; | 
|  | 30810 | --help | --hel | -h ) | 
|  | 30811 | echo "$ac_cs_usage"; exit 0 ;; | 
|  | 30812 | --debug | --d* | -d ) | 
|  | 30813 | debug=: ;; | 
|  | 30814 | --file | --fil | --fi | --f ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30815 | $ac_shift | 
|  | 30816 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30817 | ac_need_defaults=false;; | 
|  | 30818 | --header | --heade | --head | --hea ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30819 | $ac_shift | 
|  | 30820 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30821 | ac_need_defaults=false;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30822 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 30823 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 30824 | ac_cs_silent=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30825 |  | 
|  | 30826 | # This is an error. | 
|  | 30827 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
|  | 30828 | Try \`$0 --help' for more information." >&5 | 
|  | 30829 | echo "$as_me: error: unrecognized option: $1 | 
|  | 30830 | Try \`$0 --help' for more information." >&2;} | 
|  | 30831 | { (exit 1); exit 1; }; } ;; | 
|  | 30832 |  | 
|  | 30833 | *) ac_config_targets="$ac_config_targets $1" ;; | 
|  | 30834 |  | 
|  | 30835 | esac | 
|  | 30836 | shift | 
|  | 30837 | done | 
|  | 30838 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30839 | ac_configure_extra_args= | 
|  | 30840 |  | 
|  | 30841 | if $ac_cs_silent; then | 
|  | 30842 | exec 6>/dev/null | 
|  | 30843 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 30844 | fi | 
|  | 30845 |  | 
|  | 30846 | _ACEOF | 
|  | 30847 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 30848 | if \$ac_cs_recheck; then | 
|  | 30849 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
|  | 30850 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
|  | 30851 | fi | 
|  | 30852 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30853 | _ACEOF | 
|  | 30854 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30855 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 30856 | # | 
|  | 30857 | # INIT-COMMANDS section. | 
|  | 30858 | # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30859 |  | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 30860 | llvm_src="${srcdir}" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30861 |  | 
|  | 30862 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30863 |  | 
|  | 30864 |  | 
|  | 30865 |  | 
|  | 30866 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 30867 | for ac_config_target in $ac_config_targets | 
|  | 30868 | do | 
|  | 30869 | case "$ac_config_target" in | 
|  | 30870 | # Handling of arguments. | 
|  | 30871 | "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | 0acd65f | 2004-11-23 23:48:45 +0000 | [diff] [blame] | 30872 | "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;; | 
|  | 30873 | "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;; | 
|  | 30874 | "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;; | 
|  | 30875 | "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30876 | "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 30877 | "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30878 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
|  | 30879 | "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 30880 | "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30881 | "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30882 | "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30883 | "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
|  | 30884 | "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30885 | "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 30886 | "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30887 | "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 30888 | "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] | 30889 | "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] | 30890 | "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; | 
|  | 30891 | "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] | 30892 | "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;; | 
|  | 30893 | "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30894 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
|  | 30895 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
|  | 30896 | { (exit 1); exit 1; }; };; | 
|  | 30897 | esac | 
|  | 30898 | done | 
|  | 30899 |  | 
|  | 30900 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 30901 | # then the envvar interface is used.  Set only those that are not. | 
|  | 30902 | # We use the long form for the default assignment because of an extremely | 
|  | 30903 | # bizarre bug on SunOS 4.1.3. | 
|  | 30904 | if $ac_need_defaults; then | 
|  | 30905 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 30906 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30907 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30908 | fi | 
|  | 30909 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30910 | # Have a temporary directory for convenience.  Make it in the build tree | 
|  | 30911 | # simply because there is no reason to put it here, and in addition, | 
|  | 30912 | # creating and moving files from /tmp can sometimes cause problems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30913 | # Create a temporary directory, and hook for its removal unless debugging. | 
|  | 30914 | $debug || | 
|  | 30915 | { | 
|  | 30916 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
|  | 30917 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
|  | 30918 | } | 
|  | 30919 |  | 
|  | 30920 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30921 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30922 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30923 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30924 | test -n "$tmp" && test -d "$tmp" | 
|  | 30925 | }  || | 
|  | 30926 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30927 | tmp=./confstat$$-$RANDOM | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30928 | (umask 077 && mkdir $tmp) | 
|  | 30929 | } || | 
|  | 30930 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30931 | echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30932 | { (exit 1); exit 1; } | 
|  | 30933 | } | 
|  | 30934 |  | 
|  | 30935 | _ACEOF | 
|  | 30936 |  | 
|  | 30937 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 30938 |  | 
|  | 30939 | # | 
|  | 30940 | # CONFIG_FILES section. | 
|  | 30941 | # | 
|  | 30942 |  | 
|  | 30943 | # No need to generate the scripts if there are no CONFIG_FILES. | 
|  | 30944 | # This happens for instance when ./config.status config.h | 
|  | 30945 | if test -n "\$CONFIG_FILES"; then | 
|  | 30946 | # Protect against being on the right side of a sed subst in config.status. | 
|  | 30947 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
|  | 30948 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
|  | 30949 | s,@SHELL@,$SHELL,;t t | 
|  | 30950 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
|  | 30951 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
|  | 30952 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
|  | 30953 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
|  | 30954 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
|  | 30955 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
|  | 30956 | s,@exec_prefix@,$exec_prefix,;t t | 
|  | 30957 | s,@prefix@,$prefix,;t t | 
|  | 30958 | s,@program_transform_name@,$program_transform_name,;t t | 
|  | 30959 | s,@bindir@,$bindir,;t t | 
|  | 30960 | s,@sbindir@,$sbindir,;t t | 
|  | 30961 | s,@libexecdir@,$libexecdir,;t t | 
|  | 30962 | s,@datadir@,$datadir,;t t | 
|  | 30963 | s,@sysconfdir@,$sysconfdir,;t t | 
|  | 30964 | s,@sharedstatedir@,$sharedstatedir,;t t | 
|  | 30965 | s,@localstatedir@,$localstatedir,;t t | 
|  | 30966 | s,@libdir@,$libdir,;t t | 
|  | 30967 | s,@includedir@,$includedir,;t t | 
|  | 30968 | s,@oldincludedir@,$oldincludedir,;t t | 
|  | 30969 | s,@infodir@,$infodir,;t t | 
|  | 30970 | s,@mandir@,$mandir,;t t | 
|  | 30971 | s,@build_alias@,$build_alias,;t t | 
|  | 30972 | s,@host_alias@,$host_alias,;t t | 
|  | 30973 | s,@target_alias@,$target_alias,;t t | 
|  | 30974 | s,@DEFS@,$DEFS,;t t | 
|  | 30975 | s,@ECHO_C@,$ECHO_C,;t t | 
|  | 30976 | s,@ECHO_N@,$ECHO_N,;t t | 
|  | 30977 | s,@ECHO_T@,$ECHO_T,;t t | 
|  | 30978 | s,@LIBS@,$LIBS,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30979 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 30980 | s,@subdirs@,$subdirs,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30981 | s,@build@,$build,;t t | 
|  | 30982 | s,@build_cpu@,$build_cpu,;t t | 
|  | 30983 | s,@build_vendor@,$build_vendor,;t t | 
|  | 30984 | s,@build_os@,$build_os,;t t | 
|  | 30985 | s,@host@,$host,;t t | 
|  | 30986 | s,@host_cpu@,$host_cpu,;t t | 
|  | 30987 | s,@host_vendor@,$host_vendor,;t t | 
|  | 30988 | s,@host_os@,$host_os,;t t | 
|  | 30989 | s,@target@,$target,;t t | 
|  | 30990 | s,@target_cpu@,$target_cpu,;t t | 
|  | 30991 | s,@target_vendor@,$target_vendor,;t t | 
|  | 30992 | s,@target_os@,$target_os,;t t | 
|  | 30993 | s,@OS@,$OS,;t t | 
| Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 30994 | s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t | 
|  | 30995 | s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 30996 | s,@ARCH@,$ARCH,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30997 | s,@ENDIAN@,$ENDIAN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30998 | s,@CC@,$CC,;t t | 
|  | 30999 | s,@CFLAGS@,$CFLAGS,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31000 | s,@LDFLAGS@,$LDFLAGS,;t t | 
|  | 31001 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31002 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31003 | s,@EXEEXT@,$EXEEXT,;t t | 
|  | 31004 | s,@OBJEXT@,$OBJEXT,;t t | 
|  | 31005 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t | 
|  | 31006 | s,@JIT@,$JIT,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31007 | s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t | 
| Reid Spencer | 945de9b | 2005-04-22 07:27:28 +0000 | [diff] [blame] | 31008 | s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31009 | s,@CPP@,$CPP,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31010 | s,@CXX@,$CXX,;t t | 
|  | 31011 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
|  | 31012 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31013 | s,@LEX@,$LEX,;t t | 
|  | 31014 | s,@LEXLIB@,$LEXLIB,;t t | 
|  | 31015 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 31016 | s,@FLEX@,$FLEX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31017 | s,@YACC@,$YACC,;t t | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 31018 | s,@BISON@,$BISON,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31019 | s,@ifGNUmake@,$ifGNUmake,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31020 | s,@LN_S@,$LN_S,;t t | 
| Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 31021 | s,@CMP@,$CMP,;t t | 
|  | 31022 | s,@CP@,$CP,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31023 | s,@DATE@,$DATE,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31024 | s,@FIND@,$FIND,;t t | 
|  | 31025 | s,@GREP@,$GREP,;t t | 
|  | 31026 | s,@MKDIR@,$MKDIR,;t t | 
|  | 31027 | s,@MV@,$MV,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31028 | s,@RANLIB@,$RANLIB,;t t | 
|  | 31029 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31030 | s,@RM@,$RM,;t t | 
|  | 31031 | s,@SED@,$SED,;t t | 
| Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 31032 | s,@TAR@,$TAR,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31033 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
|  | 31034 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
|  | 31035 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31036 | s,@BZIP2@,$BZIP2,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31037 | s,@DOT@,$DOT,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31038 | s,@DOXYGEN@,$DOXYGEN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31039 | s,@ETAGS@,$ETAGS,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31040 | s,@GROFF@,$GROFF,;t t | 
|  | 31041 | s,@GZIP@,$GZIP,;t t | 
|  | 31042 | s,@POD2HTML@,$POD2HTML,;t t | 
|  | 31043 | s,@POD2MAN@,$POD2MAN,;t t | 
| Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 31044 | s,@RUNTEST@,$RUNTEST,;t t | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 31045 | s,@TCLSH@,$TCLSH,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31046 | s,@ZIP@,$ZIP,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31047 | s,@EGREP@,$EGREP,;t t | 
|  | 31048 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t | 
|  | 31049 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t | 
|  | 31050 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t | 
|  | 31051 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t | 
|  | 31052 | s,@LIBADD_DL@,$LIBADD_DL,;t t | 
|  | 31053 | s,@ECHO@,$ECHO,;t t | 
|  | 31054 | s,@AR@,$AR,;t t | 
|  | 31055 | s,@ac_ct_AR@,$ac_ct_AR,;t t | 
|  | 31056 | s,@STRIP@,$STRIP,;t t | 
|  | 31057 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | 
|  | 31058 | s,@CXXCPP@,$CXXCPP,;t t | 
|  | 31059 | s,@F77@,$F77,;t t | 
|  | 31060 | s,@FFLAGS@,$FFLAGS,;t t | 
|  | 31061 | s,@ac_ct_F77@,$ac_ct_F77,;t t | 
|  | 31062 | s,@LIBTOOL@,$LIBTOOL,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31063 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31064 | s,@LLVMGCC@,$LLVMGCC,;t t | 
|  | 31065 | s,@LLVMGXX@,$LLVMGXX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31066 | s,@ALLOCA@,$ALLOCA,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31067 | s,@MMAP_FILE@,$MMAP_FILE,;t t | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 31068 | s,@LLVMCC1@,$LLVMCC1,;t t | 
|  | 31069 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31070 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 31071 | s,@SHLIBEXT@,$SHLIBEXT,;t t | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31072 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t | 
|  | 31073 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t | 
|  | 31074 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t | 
|  | 31075 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t | 
|  | 31076 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t | 
|  | 31077 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t | 
|  | 31078 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t | 
|  | 31079 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t | 
|  | 31080 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t | 
|  | 31081 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 31082 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31083 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31084 | CEOF | 
|  | 31085 |  | 
|  | 31086 | _ACEOF | 
|  | 31087 |  | 
|  | 31088 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 31089 | # Split the substitutions into bite-sized pieces for seds with | 
|  | 31090 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|  | 31091 | ac_max_sed_lines=48 | 
|  | 31092 | ac_sed_frag=1 # Number of current file. | 
|  | 31093 | ac_beg=1 # First line for current file. | 
|  | 31094 | ac_end=$ac_max_sed_lines # Line after last line for current file. | 
|  | 31095 | ac_more_lines=: | 
|  | 31096 | ac_sed_cmds= | 
|  | 31097 | while $ac_more_lines; do | 
|  | 31098 | if test $ac_beg -gt 1; then | 
|  | 31099 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
|  | 31100 | else | 
|  | 31101 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
|  | 31102 | fi | 
|  | 31103 | if test ! -s $tmp/subs.frag; then | 
|  | 31104 | ac_more_lines=false | 
|  | 31105 | else | 
|  | 31106 | # The purpose of the label and of the branching condition is to | 
|  | 31107 | # speed up the sed processing (if there are no `@' at all, there | 
|  | 31108 | # is no need to browse any of the substitutions). | 
|  | 31109 | # These are the two extra sed commands mentioned above. | 
|  | 31110 | (echo ':t | 
|  | 31111 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
|  | 31112 | if test -z "$ac_sed_cmds"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31113 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31114 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31115 | 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] | 31116 | fi | 
|  | 31117 | ac_sed_frag=`expr $ac_sed_frag + 1` | 
|  | 31118 | ac_beg=$ac_end | 
|  | 31119 | ac_end=`expr $ac_end + $ac_max_sed_lines` | 
|  | 31120 | fi | 
|  | 31121 | done | 
|  | 31122 | if test -z "$ac_sed_cmds"; then | 
|  | 31123 | ac_sed_cmds=cat | 
|  | 31124 | fi | 
|  | 31125 | fi # test -n "$CONFIG_FILES" | 
|  | 31126 |  | 
|  | 31127 | _ACEOF | 
|  | 31128 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 31129 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
|  | 31130 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|  | 31131 | case $ac_file in | 
|  | 31132 | - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31133 | cat >$tmp/stdin | 
|  | 31134 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 31135 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31136 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31137 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31138 | * )   ac_file_in=$ac_file.in ;; | 
|  | 31139 | esac | 
|  | 31140 |  | 
|  | 31141 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
|  | 31142 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
|  | 31143 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31144 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 31145 | X"$ac_file" : 'X\(//\)$' \| \ | 
|  | 31146 | X"$ac_file" : 'X\(/\)' \| \ | 
|  | 31147 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31148 | echo X"$ac_file" | | 
|  | 31149 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 31150 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 31151 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 31152 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 31153 | s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31154 | { if $as_mkdir_p; then | 
|  | 31155 | mkdir -p "$ac_dir" | 
|  | 31156 | else | 
|  | 31157 | as_dir="$ac_dir" | 
|  | 31158 | as_dirs= | 
|  | 31159 | while test ! -d "$as_dir"; do | 
|  | 31160 | as_dirs="$as_dir $as_dirs" | 
|  | 31161 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 31162 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31163 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 31164 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 31165 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 31166 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31167 | echo X"$as_dir" | | 
|  | 31168 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 31169 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 31170 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 31171 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 31172 | s/.*/./; q'` | 
|  | 31173 | done | 
|  | 31174 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 31175 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 31176 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 31177 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31178 |  | 
|  | 31179 | ac_builddir=. | 
|  | 31180 |  | 
|  | 31181 | if test "$ac_dir" != .; then | 
|  | 31182 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 31183 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 31184 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 31185 | else | 
|  | 31186 | ac_dir_suffix= ac_top_builddir= | 
|  | 31187 | fi | 
|  | 31188 |  | 
|  | 31189 | case $srcdir in | 
|  | 31190 | .)  # No --srcdir option.  We are building in place. | 
|  | 31191 | ac_srcdir=. | 
|  | 31192 | if test -z "$ac_top_builddir"; then | 
|  | 31193 | ac_top_srcdir=. | 
|  | 31194 | else | 
|  | 31195 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 31196 | fi ;; | 
|  | 31197 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 31198 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 31199 | ac_top_srcdir=$srcdir ;; | 
|  | 31200 | *) # Relative path. | 
|  | 31201 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 31202 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 31203 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31204 |  | 
|  | 31205 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 31206 | # the directories may not exist. | 
|  | 31207 | case `pwd` in | 
|  | 31208 | .) ac_abs_builddir="$ac_dir";; | 
|  | 31209 | *) | 
|  | 31210 | case "$ac_dir" in | 
|  | 31211 | .) ac_abs_builddir=`pwd`;; | 
|  | 31212 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
|  | 31213 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
|  | 31214 | esac;; | 
|  | 31215 | esac | 
|  | 31216 | case $ac_abs_builddir in | 
|  | 31217 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 31218 | *) | 
|  | 31219 | case ${ac_top_builddir}. in | 
|  | 31220 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 31221 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 31222 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 31223 | esac;; | 
|  | 31224 | esac | 
|  | 31225 | case $ac_abs_builddir in | 
|  | 31226 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 31227 | *) | 
|  | 31228 | case $ac_srcdir in | 
|  | 31229 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 31230 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 31231 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 31232 | esac;; | 
|  | 31233 | esac | 
|  | 31234 | case $ac_abs_builddir in | 
|  | 31235 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 31236 | *) | 
|  | 31237 | case $ac_top_srcdir in | 
|  | 31238 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 31239 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 31240 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 31241 | esac;; | 
|  | 31242 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31243 |  | 
|  | 31244 |  | 
|  | 31245 | case $INSTALL in | 
|  | 31246 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
|  | 31247 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
|  | 31248 | esac | 
|  | 31249 |  | 
|  | 31250 | if test x"$ac_file" != x-; then | 
|  | 31251 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 31252 | echo "$as_me: creating $ac_file" >&6;} | 
|  | 31253 | rm -f "$ac_file" | 
|  | 31254 | fi | 
|  | 31255 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 31256 | # use $as_me), people would be surprised to read: | 
|  | 31257 | #    /* config.h.  Generated by config.status.  */ | 
|  | 31258 | if test x"$ac_file" = x-; then | 
|  | 31259 | configure_input= | 
|  | 31260 | else | 
|  | 31261 | configure_input="$ac_file.  " | 
|  | 31262 | fi | 
|  | 31263 | configure_input=$configure_input"Generated from `echo $ac_file_in | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31264 | sed 's,.*/,,'` by configure." | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31265 |  | 
|  | 31266 | # First look for the input files in the build tree, otherwise in the | 
|  | 31267 | # src tree. | 
|  | 31268 | ac_file_inputs=`IFS=: | 
|  | 31269 | for f in $ac_file_in; do | 
|  | 31270 | case $f in | 
|  | 31271 | -) echo $tmp/stdin ;; | 
|  | 31272 | [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31273 | # Absolute (can't be DOS-style, as IFS=:) | 
|  | 31274 | 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] | 31275 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 31276 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31277 | echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31278 | *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31279 | if test -f "$f"; then | 
|  | 31280 | # Build tree | 
|  | 31281 | echo "$f" | 
|  | 31282 | elif test -f "$srcdir/$f"; then | 
|  | 31283 | # Source tree | 
|  | 31284 | echo "$srcdir/$f" | 
|  | 31285 | else | 
|  | 31286 | # /dev/null tree | 
|  | 31287 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31288 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 31289 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31290 | fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31291 | esac | 
|  | 31292 | done` || { (exit 1); exit 1; } | 
|  | 31293 | _ACEOF | 
|  | 31294 | cat >>$CONFIG_STATUS <<_ACEOF | 
|  | 31295 | sed "$ac_vpsub | 
|  | 31296 | $extrasub | 
|  | 31297 | _ACEOF | 
|  | 31298 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 31299 | :t | 
|  | 31300 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
|  | 31301 | s,@configure_input@,$configure_input,;t t | 
|  | 31302 | s,@srcdir@,$ac_srcdir,;t t | 
|  | 31303 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
|  | 31304 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
|  | 31305 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
|  | 31306 | s,@builddir@,$ac_builddir,;t t | 
|  | 31307 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
|  | 31308 | s,@top_builddir@,$ac_top_builddir,;t t | 
|  | 31309 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
|  | 31310 | s,@INSTALL@,$ac_INSTALL,;t t | 
|  | 31311 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
|  | 31312 | rm -f $tmp/stdin | 
|  | 31313 | if test x"$ac_file" != x-; then | 
|  | 31314 | mv $tmp/out $ac_file | 
|  | 31315 | else | 
|  | 31316 | cat $tmp/out | 
|  | 31317 | rm -f $tmp/out | 
|  | 31318 | fi | 
|  | 31319 |  | 
|  | 31320 | done | 
|  | 31321 | _ACEOF | 
|  | 31322 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 31323 |  | 
|  | 31324 | # | 
|  | 31325 | # CONFIG_HEADER section. | 
|  | 31326 | # | 
|  | 31327 |  | 
|  | 31328 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
|  | 31329 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
|  | 31330 | # | 
|  | 31331 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31332 | ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)' | 
|  | 31333 | ac_dB='[	 ].*$,\1#\2' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31334 | ac_dC=' ' | 
|  | 31335 | ac_dD=',;t' | 
|  | 31336 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31337 | ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31338 | ac_uB='$,\1#\2define\3' | 
|  | 31339 | ac_uC=' ' | 
|  | 31340 | ac_uD=',;t' | 
|  | 31341 |  | 
|  | 31342 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
|  | 31343 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|  | 31344 | case $ac_file in | 
|  | 31345 | - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31346 | cat >$tmp/stdin | 
|  | 31347 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 31348 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31349 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31350 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31351 | * )   ac_file_in=$ac_file.in ;; | 
|  | 31352 | esac | 
|  | 31353 |  | 
|  | 31354 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
|  | 31355 | echo "$as_me: creating $ac_file" >&6;} | 
|  | 31356 |  | 
|  | 31357 | # First look for the input files in the build tree, otherwise in the | 
|  | 31358 | # src tree. | 
|  | 31359 | ac_file_inputs=`IFS=: | 
|  | 31360 | for f in $ac_file_in; do | 
|  | 31361 | case $f in | 
|  | 31362 | -) echo $tmp/stdin ;; | 
|  | 31363 | [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31364 | # Absolute (can't be DOS-style, as IFS=:) | 
|  | 31365 | 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] | 31366 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 31367 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31368 | # Do quote $f, to prevent DOS paths from being IFS'd. | 
|  | 31369 | echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31370 | *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31371 | if test -f "$f"; then | 
|  | 31372 | # Build tree | 
|  | 31373 | echo "$f" | 
|  | 31374 | elif test -f "$srcdir/$f"; then | 
|  | 31375 | # Source tree | 
|  | 31376 | echo "$srcdir/$f" | 
|  | 31377 | else | 
|  | 31378 | # /dev/null tree | 
|  | 31379 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31380 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
|  | 31381 | { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31382 | fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31383 | esac | 
|  | 31384 | done` || { (exit 1); exit 1; } | 
|  | 31385 | # Remove the trailing spaces. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31386 | sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31387 |  | 
|  | 31388 | _ACEOF | 
|  | 31389 |  | 
|  | 31390 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
|  | 31391 | # `conftest.undefs', that substitutes the proper values into | 
|  | 31392 | # config.h.in to produce config.h.  The first handles `#define' | 
|  | 31393 | # templates, and the second `#undef' templates. | 
|  | 31394 | # And first: Protect against being on the right side of a sed subst in | 
|  | 31395 | # config.status.  Protect against being in an unquoted here document | 
|  | 31396 | # in config.status. | 
|  | 31397 | rm -f conftest.defines conftest.undefs | 
|  | 31398 | # Using a here document instead of a string reduces the quoting nightmare. | 
|  | 31399 | # Putting comments in sed scripts is not portable. | 
|  | 31400 | # | 
|  | 31401 | # `end' is used to avoid that the second main sed command (meant for | 
|  | 31402 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
|  | 31403 | # See the Autoconf documentation for `clear'. | 
|  | 31404 | cat >confdef2sed.sed <<\_ACEOF | 
|  | 31405 | s/[\\&,]/\\&/g | 
|  | 31406 | s,[\\$`],\\&,g | 
|  | 31407 | t clear | 
|  | 31408 | : clear | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31409 | 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] | 31410 | t end | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31411 | 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] | 31412 | : end | 
|  | 31413 | _ACEOF | 
|  | 31414 | # If some macros were called several times there might be several times | 
|  | 31415 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
|  | 31416 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
|  | 31417 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
|  | 31418 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
|  | 31419 | rm -f confdef2sed.sed | 
|  | 31420 |  | 
|  | 31421 | # This sed command replaces #undef with comments.  This is necessary, for | 
|  | 31422 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 31423 | # on some systems where configure will not decide to define it. | 
|  | 31424 | cat >>conftest.undefs <<\_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31425 | s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31426 | _ACEOF | 
|  | 31427 |  | 
|  | 31428 | # Break up conftest.defines because some shells have a limit on the size | 
|  | 31429 | # of here documents, and old seds have small limits too (100 cmds). | 
|  | 31430 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31431 | echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31432 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
|  | 31433 | echo '  :' >>$CONFIG_STATUS | 
|  | 31434 | rm -f conftest.tail | 
|  | 31435 | while grep . conftest.defines >/dev/null | 
|  | 31436 | do | 
|  | 31437 | # Write a limited-size here document to $tmp/defines.sed. | 
|  | 31438 | echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
|  | 31439 | # Speed up: don't consider the non `#define' lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31440 | echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31441 | # Work around the forget-to-reset-the-flag bug. | 
|  | 31442 | echo 't clr' >>$CONFIG_STATUS | 
|  | 31443 | echo ': clr' >>$CONFIG_STATUS | 
|  | 31444 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
|  | 31445 | echo 'CEOF | 
|  | 31446 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
|  | 31447 | rm -f $tmp/in | 
|  | 31448 | mv $tmp/out $tmp/in | 
|  | 31449 | ' >>$CONFIG_STATUS | 
|  | 31450 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
|  | 31451 | rm -f conftest.defines | 
|  | 31452 | mv conftest.tail conftest.defines | 
|  | 31453 | done | 
|  | 31454 | rm -f conftest.defines | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31455 | echo '  fi # grep' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31456 | echo >>$CONFIG_STATUS | 
|  | 31457 |  | 
|  | 31458 | # Break up conftest.undefs because some shells have a limit on the size | 
|  | 31459 | # of here documents, and old seds have small limits too (100 cmds). | 
|  | 31460 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
|  | 31461 | rm -f conftest.tail | 
|  | 31462 | while grep . conftest.undefs >/dev/null | 
|  | 31463 | do | 
|  | 31464 | # Write a limited-size here document to $tmp/undefs.sed. | 
|  | 31465 | echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
|  | 31466 | # Speed up: don't consider the non `#undef' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31467 | echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31468 | # Work around the forget-to-reset-the-flag bug. | 
|  | 31469 | echo 't clr' >>$CONFIG_STATUS | 
|  | 31470 | echo ': clr' >>$CONFIG_STATUS | 
|  | 31471 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
|  | 31472 | echo 'CEOF | 
|  | 31473 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
|  | 31474 | rm -f $tmp/in | 
|  | 31475 | mv $tmp/out $tmp/in | 
|  | 31476 | ' >>$CONFIG_STATUS | 
|  | 31477 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
|  | 31478 | rm -f conftest.undefs | 
|  | 31479 | mv conftest.tail conftest.undefs | 
|  | 31480 | done | 
|  | 31481 | rm -f conftest.undefs | 
|  | 31482 |  | 
|  | 31483 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 31484 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 31485 | # use $as_me), people would be surprised to read: | 
|  | 31486 | #    /* config.h.  Generated by config.status.  */ | 
|  | 31487 | if test x"$ac_file" = x-; then | 
|  | 31488 | echo "/* Generated by configure.  */" >$tmp/config.h | 
|  | 31489 | else | 
|  | 31490 | echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
|  | 31491 | fi | 
|  | 31492 | cat $tmp/in >>$tmp/config.h | 
|  | 31493 | rm -f $tmp/in | 
|  | 31494 | if test x"$ac_file" != x-; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31495 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31496 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
|  | 31497 | echo "$as_me: $ac_file is unchanged" >&6;} | 
|  | 31498 | else | 
|  | 31499 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
|  | 31500 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31501 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 31502 | X"$ac_file" : 'X\(//\)$' \| \ | 
|  | 31503 | X"$ac_file" : 'X\(/\)' \| \ | 
|  | 31504 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31505 | echo X"$ac_file" | | 
|  | 31506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 31507 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 31508 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 31509 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 31510 | s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31511 | { if $as_mkdir_p; then | 
|  | 31512 | mkdir -p "$ac_dir" | 
|  | 31513 | else | 
|  | 31514 | as_dir="$ac_dir" | 
|  | 31515 | as_dirs= | 
|  | 31516 | while test ! -d "$as_dir"; do | 
|  | 31517 | as_dirs="$as_dir $as_dirs" | 
|  | 31518 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 31519 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31520 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 31521 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 31522 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 31523 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31524 | echo X"$as_dir" | | 
|  | 31525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 31526 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 31527 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 31528 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 31529 | s/.*/./; q'` | 
|  | 31530 | done | 
|  | 31531 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 31532 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 31533 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 31534 | { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31535 |  | 
|  | 31536 | rm -f $ac_file | 
|  | 31537 | mv $tmp/config.h $ac_file | 
|  | 31538 | fi | 
|  | 31539 | else | 
|  | 31540 | cat $tmp/config.h | 
|  | 31541 | rm -f $tmp/config.h | 
|  | 31542 | fi | 
|  | 31543 | done | 
|  | 31544 | _ACEOF | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31545 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 31546 |  | 
|  | 31547 | # | 
|  | 31548 | # CONFIG_COMMANDS section. | 
|  | 31549 | # | 
|  | 31550 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | 
|  | 31551 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
|  | 31552 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
|  | 31553 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | 
|  | 31554 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31555 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
|  | 31556 | X"$ac_dest" : 'X\(//\)$' \| \ | 
|  | 31557 | X"$ac_dest" : 'X\(/\)' \| \ | 
|  | 31558 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31559 | echo X"$ac_dest" | | 
|  | 31560 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 31561 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 31562 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 31563 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 31564 | s/.*/./; q'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31565 | { if $as_mkdir_p; then | 
|  | 31566 | mkdir -p "$ac_dir" | 
|  | 31567 | else | 
|  | 31568 | as_dir="$ac_dir" | 
|  | 31569 | as_dirs= | 
|  | 31570 | while test ! -d "$as_dir"; do | 
|  | 31571 | as_dirs="$as_dir $as_dirs" | 
|  | 31572 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 31573 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 31574 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 31575 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 31576 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 31577 | .     : '\(.\)' 2>/dev/null || | 
|  | 31578 | echo X"$as_dir" | | 
|  | 31579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 31580 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 31581 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 31582 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 31583 | s/.*/./; q'` | 
|  | 31584 | done | 
|  | 31585 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 31586 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 31587 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 31588 | { (exit 1); exit 1; }; }; } | 
|  | 31589 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31590 | ac_builddir=. | 
|  | 31591 |  | 
|  | 31592 | if test "$ac_dir" != .; then | 
|  | 31593 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 31594 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 31595 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 31596 | else | 
|  | 31597 | ac_dir_suffix= ac_top_builddir= | 
|  | 31598 | fi | 
|  | 31599 |  | 
|  | 31600 | case $srcdir in | 
|  | 31601 | .)  # No --srcdir option.  We are building in place. | 
|  | 31602 | ac_srcdir=. | 
|  | 31603 | if test -z "$ac_top_builddir"; then | 
|  | 31604 | ac_top_srcdir=. | 
|  | 31605 | else | 
|  | 31606 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 31607 | fi ;; | 
|  | 31608 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 31609 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 31610 | ac_top_srcdir=$srcdir ;; | 
|  | 31611 | *) # Relative path. | 
|  | 31612 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 31613 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 31614 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31615 |  | 
|  | 31616 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 31617 | # the directories may not exist. | 
|  | 31618 | case `pwd` in | 
|  | 31619 | .) ac_abs_builddir="$ac_dir";; | 
|  | 31620 | *) | 
|  | 31621 | case "$ac_dir" in | 
|  | 31622 | .) ac_abs_builddir=`pwd`;; | 
|  | 31623 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
|  | 31624 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
|  | 31625 | esac;; | 
|  | 31626 | esac | 
|  | 31627 | case $ac_abs_builddir in | 
|  | 31628 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 31629 | *) | 
|  | 31630 | case ${ac_top_builddir}. in | 
|  | 31631 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 31632 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 31633 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 31634 | esac;; | 
|  | 31635 | esac | 
|  | 31636 | case $ac_abs_builddir in | 
|  | 31637 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 31638 | *) | 
|  | 31639 | case $ac_srcdir in | 
|  | 31640 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 31641 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 31642 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 31643 | esac;; | 
|  | 31644 | esac | 
|  | 31645 | case $ac_abs_builddir in | 
|  | 31646 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 31647 | *) | 
|  | 31648 | case $ac_top_srcdir in | 
|  | 31649 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 31650 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 31651 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 31652 | esac;; | 
|  | 31653 | esac | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31654 |  | 
|  | 31655 |  | 
|  | 31656 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 
|  | 31657 | echo "$as_me: executing $ac_dest commands" >&6;} | 
|  | 31658 | case $ac_dest in | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 31659 | Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` | 
|  | 31660 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; | 
|  | 31661 | Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` | 
|  | 31662 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; | 
|  | 31663 | examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
|  | 31664 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; | 
|  | 31665 | lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
|  | 31666 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; | 
|  | 31667 | runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
|  | 31668 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; | 
|  | 31669 | test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` | 
|  | 31670 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; | 
|  | 31671 | test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
|  | 31672 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
|  | 31673 | tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
|  | 31674 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
|  | 31675 | utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
|  | 31676 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; | 
|  | 31677 | projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
|  | 31678 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31679 | esac | 
|  | 31680 | done | 
|  | 31681 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31682 |  | 
|  | 31683 | cat >>$CONFIG_STATUS <<\_ACEOF | 
|  | 31684 |  | 
|  | 31685 | { (exit 0); exit 0; } | 
|  | 31686 | _ACEOF | 
|  | 31687 | chmod +x $CONFIG_STATUS | 
|  | 31688 | ac_clean_files=$ac_clean_files_save | 
|  | 31689 |  | 
|  | 31690 |  | 
|  | 31691 | # configure is writing to config.log, and then calls config.status. | 
|  | 31692 | # config.status does its own redirection, appending to config.log. | 
|  | 31693 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 31694 | # by configure, so config.status won't be able to write to it; its | 
|  | 31695 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 31696 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 31697 | # appended to by config.status.  When coming back to configure, we | 
|  | 31698 | # need to make the FD available again. | 
|  | 31699 | if test "$no_create" != yes; then | 
|  | 31700 | ac_cs_success=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31701 | ac_config_status_args= | 
|  | 31702 | test "$silent" = yes && | 
|  | 31703 | ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31704 | exec 5>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31705 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31706 | exec 5>>config.log | 
|  | 31707 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 31708 | # would make configure fail if this is the last instruction. | 
|  | 31709 | $ac_cs_success || { (exit 1); exit 1; } | 
|  | 31710 | fi | 
|  | 31711 |  | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31712 | # | 
|  | 31713 | # CONFIG_SUBDIRS section. | 
|  | 31714 | # | 
|  | 31715 | if test "$no_recursion" != yes; then | 
|  | 31716 |  | 
|  | 31717 | # Remove --cache-file and --srcdir arguments so they do not pile up. | 
|  | 31718 | ac_sub_configure_args= | 
|  | 31719 | ac_prev= | 
|  | 31720 | for ac_arg in $ac_configure_args; do | 
|  | 31721 | if test -n "$ac_prev"; then | 
|  | 31722 | ac_prev= | 
|  | 31723 | continue | 
|  | 31724 | fi | 
|  | 31725 | case $ac_arg in | 
|  | 31726 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 31727 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 31728 | ac_prev=cache_file ;; | 
|  | 31729 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 31730 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
|  | 31731 | | --c=*) | 
|  | 31732 | ;; | 
|  | 31733 | --config-cache | -C) | 
|  | 31734 | ;; | 
|  | 31735 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 31736 | ac_prev=srcdir ;; | 
|  | 31737 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 31738 | ;; | 
|  | 31739 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 31740 | ac_prev=prefix ;; | 
|  | 31741 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 31742 | ;; | 
|  | 31743 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
|  | 31744 | esac | 
|  | 31745 | done | 
|  | 31746 |  | 
|  | 31747 | # Always prepend --prefix to ensure using the same prefix | 
|  | 31748 | # in subdir configurations. | 
|  | 31749 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | 
|  | 31750 |  | 
|  | 31751 | ac_popdir=`pwd` | 
|  | 31752 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
|  | 31753 |  | 
|  | 31754 | # Do not complain, so a configure script can configure whichever | 
|  | 31755 | # parts of a large source tree are present. | 
|  | 31756 | test -d $srcdir/$ac_dir || continue | 
|  | 31757 |  | 
|  | 31758 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | 
|  | 31759 | echo "$as_me: configuring in $ac_dir" >&6;} | 
|  | 31760 | { if $as_mkdir_p; then | 
|  | 31761 | mkdir -p "$ac_dir" | 
|  | 31762 | else | 
|  | 31763 | as_dir="$ac_dir" | 
|  | 31764 | as_dirs= | 
|  | 31765 | while test ! -d "$as_dir"; do | 
|  | 31766 | as_dirs="$as_dir $as_dirs" | 
|  | 31767 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
|  | 31768 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31769 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 31770 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 31771 | X"$as_dir" : 'X\(/\)' \| \ | 
|  | 31772 | .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31773 | echo X"$as_dir" | | 
|  | 31774 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
|  | 31775 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
|  | 31776 | /^X\(\/\/\)$/{ s//\1/; q; } | 
|  | 31777 | /^X\(\/\).*/{ s//\1/; q; } | 
|  | 31778 | s/.*/./; q'` | 
|  | 31779 | done | 
|  | 31780 | test ! -n "$as_dirs" || mkdir $as_dirs | 
|  | 31781 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
|  | 31782 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
|  | 31783 | { (exit 1); exit 1; }; }; } | 
|  | 31784 |  | 
|  | 31785 | ac_builddir=. | 
|  | 31786 |  | 
|  | 31787 | if test "$ac_dir" != .; then | 
|  | 31788 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
|  | 31789 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 31790 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
|  | 31791 | else | 
|  | 31792 | ac_dir_suffix= ac_top_builddir= | 
|  | 31793 | fi | 
|  | 31794 |  | 
|  | 31795 | case $srcdir in | 
|  | 31796 | .)  # No --srcdir option.  We are building in place. | 
|  | 31797 | ac_srcdir=. | 
|  | 31798 | if test -z "$ac_top_builddir"; then | 
|  | 31799 | ac_top_srcdir=. | 
|  | 31800 | else | 
|  | 31801 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
|  | 31802 | fi ;; | 
|  | 31803 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
|  | 31804 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 31805 | ac_top_srcdir=$srcdir ;; | 
|  | 31806 | *) # Relative path. | 
|  | 31807 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
|  | 31808 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
|  | 31809 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31810 |  | 
|  | 31811 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
|  | 31812 | # the directories may not exist. | 
|  | 31813 | case `pwd` in | 
|  | 31814 | .) ac_abs_builddir="$ac_dir";; | 
|  | 31815 | *) | 
|  | 31816 | case "$ac_dir" in | 
|  | 31817 | .) ac_abs_builddir=`pwd`;; | 
|  | 31818 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
|  | 31819 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
|  | 31820 | esac;; | 
|  | 31821 | esac | 
|  | 31822 | case $ac_abs_builddir in | 
|  | 31823 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 31824 | *) | 
|  | 31825 | case ${ac_top_builddir}. in | 
|  | 31826 | .) ac_abs_top_builddir=$ac_abs_builddir;; | 
|  | 31827 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
|  | 31828 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
|  | 31829 | esac;; | 
|  | 31830 | esac | 
|  | 31831 | case $ac_abs_builddir in | 
|  | 31832 | .) ac_abs_srcdir=$ac_srcdir;; | 
|  | 31833 | *) | 
|  | 31834 | case $ac_srcdir in | 
|  | 31835 | .) ac_abs_srcdir=$ac_abs_builddir;; | 
|  | 31836 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
|  | 31837 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
|  | 31838 | esac;; | 
|  | 31839 | esac | 
|  | 31840 | case $ac_abs_builddir in | 
|  | 31841 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 31842 | *) | 
|  | 31843 | case $ac_top_srcdir in | 
|  | 31844 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
|  | 31845 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
|  | 31846 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
|  | 31847 | esac;; | 
|  | 31848 | esac | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31849 |  | 
|  | 31850 |  | 
|  | 31851 | cd $ac_dir | 
|  | 31852 |  | 
|  | 31853 | # Check for guested configure; otherwise get Cygnus style configure. | 
|  | 31854 | if test -f $ac_srcdir/configure.gnu; then | 
|  | 31855 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | 
|  | 31856 | elif test -f $ac_srcdir/configure; then | 
|  | 31857 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | 
|  | 31858 | elif test -f $ac_srcdir/configure.in; then | 
|  | 31859 | ac_sub_configure=$ac_configure | 
|  | 31860 | else | 
|  | 31861 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
|  | 31862 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
|  | 31863 | ac_sub_configure= | 
|  | 31864 | fi | 
|  | 31865 |  | 
|  | 31866 | # The recursion is here. | 
|  | 31867 | if test -n "$ac_sub_configure"; then | 
|  | 31868 | # Make the cache file name correct relative to the subdirectory. | 
|  | 31869 | case $cache_file in | 
|  | 31870 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
|  | 31871 | *) # Relative path. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31872 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31873 | esac | 
|  | 31874 |  | 
|  | 31875 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
|  | 31876 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
|  | 31877 | # The eval makes quoting arguments work. | 
|  | 31878 | eval $ac_sub_configure $ac_sub_configure_args \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31879 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | 
|  | 31880 | { { 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] | 31881 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
|  | 31882 | { (exit 1); exit 1; }; } | 
|  | 31883 | fi | 
|  | 31884 |  | 
|  | 31885 | cd $ac_popdir | 
|  | 31886 | done | 
|  | 31887 | fi | 
|  | 31888 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31889 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31890 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 31891 | { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 | 
|  | 31892 | 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] | 31893 | { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 | 
|  | 31894 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} | 
|  | 31895 | { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 | 
|  | 31896 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} | 
|  | 31897 | { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 | 
|  | 31898 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} | 
|  | 31899 | { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 | 
|  | 31900 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31901 | fi |