| 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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for LLVM 1.4. | 
| 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. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10 | ## --------------------- ## | 
 | 11 | ## M4sh Initialization.  ## | 
 | 12 | ## --------------------- ## | 
 | 13 |  | 
 | 14 | # Be Bourne compatible | 
 | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 16 |   emulate sh | 
 | 17 |   NULLCMD=: | 
 | 18 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 19 |   # is contrary to our usage.  Disable this feature. | 
 | 20 |   alias -g '${1+"$@"}'='"$@"' | 
 | 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 22 |   set -o posix | 
 | 23 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25 |  | 
 | 26 | # Support unset when possible. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28 |   as_unset=unset | 
 | 29 | else | 
 | 30 |   as_unset=false | 
 | 31 | fi | 
 | 32 |  | 
 | 33 |  | 
 | 34 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 35 | $as_unset ENV MAIL MAILPATH | 
 | 36 | PS1='$ ' | 
 | 37 | PS2='> ' | 
 | 38 | PS4='+ ' | 
 | 39 |  | 
 | 40 | # NLS nuisances. | 
 | 41 | for as_var in \ | 
 | 42 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 43 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 44 |   LC_TELEPHONE LC_TIME | 
 | 45 | do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 46 |   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] | 47 |     eval $as_var=C; export $as_var | 
 | 48 |   else | 
 | 49 |     $as_unset $as_var | 
 | 50 |   fi | 
 | 51 | done | 
 | 52 |  | 
 | 53 | # Required to use basename. | 
 | 54 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 55 |   as_expr=expr | 
 | 56 | else | 
 | 57 |   as_expr=false | 
 | 58 | fi | 
 | 59 |  | 
 | 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 61 |   as_basename=basename | 
 | 62 | else | 
 | 63 |   as_basename=false | 
 | 64 | fi | 
 | 65 |  | 
 | 66 |  | 
 | 67 | # Name of the executable. | 
 | 68 | as_me=`$as_basename "$0" || | 
 | 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 70 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 71 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 72 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 73 | echo X/"$0" | | 
 | 74 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 75 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 76 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 77 |   	  s/.*/./; q'` | 
 | 78 |  | 
 | 79 |  | 
 | 80 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 81 | # Avoid depending upon Character Ranges. | 
 | 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 85 | as_cr_digits='0123456789' | 
 | 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 87 |  | 
 | 88 | # The user is always right. | 
 | 89 | if test "${PATH_SEPARATOR+set}" != set; then | 
 | 90 |   echo "#! /bin/sh" >conf$$.sh | 
 | 91 |   echo  "exit 0"   >>conf$$.sh | 
 | 92 |   chmod +x conf$$.sh | 
 | 93 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
 | 94 |     PATH_SEPARATOR=';' | 
 | 95 |   else | 
 | 96 |     PATH_SEPARATOR=: | 
 | 97 |   fi | 
 | 98 |   rm -f conf$$.sh | 
 | 99 | fi | 
 | 100 |  | 
 | 101 |  | 
 | 102 |   as_lineno_1=$LINENO | 
 | 103 |   as_lineno_2=$LINENO | 
 | 104 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 105 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 106 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 107 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 108 |   # relative or not. | 
 | 109 |   case $0 in | 
 | 110 |     *[\\/]* ) as_myself=$0 ;; | 
 | 111 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 112 | for as_dir in $PATH | 
 | 113 | do | 
 | 114 |   IFS=$as_save_IFS | 
 | 115 |   test -z "$as_dir" && as_dir=. | 
 | 116 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 117 | done | 
 | 118 |  | 
 | 119 |        ;; | 
 | 120 |   esac | 
 | 121 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 122 |   # in which case we are not to be found in the path. | 
 | 123 |   if test "x$as_myself" = x; then | 
 | 124 |     as_myself=$0 | 
 | 125 |   fi | 
 | 126 |   if test ! -f "$as_myself"; then | 
 | 127 |     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | 
 | 128 |    { (exit 1); exit 1; }; } | 
 | 129 |   fi | 
 | 130 |   case $CONFIG_SHELL in | 
 | 131 |   '') | 
 | 132 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 134 | do | 
 | 135 |   IFS=$as_save_IFS | 
 | 136 |   test -z "$as_dir" && as_dir=. | 
 | 137 |   for as_base in sh bash ksh sh5; do | 
 | 138 | 	 case $as_dir in | 
 | 139 | 	 /*) | 
 | 140 | 	   if ("$as_dir/$as_base" -c ' | 
 | 141 |   as_lineno_1=$LINENO | 
 | 142 |   as_lineno_2=$LINENO | 
 | 143 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 144 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 145 |   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
 | 146 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 147 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
 | 148 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 149 | 	     export CONFIG_SHELL | 
 | 150 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 151 | 	   fi;; | 
 | 152 | 	 esac | 
 | 153 |        done | 
 | 154 | done | 
 | 155 | ;; | 
 | 156 |   esac | 
 | 157 |  | 
 | 158 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 159 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 160 |   # line-number line before each line; the second 'sed' does the real | 
 | 161 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 162 |   # with the numbered line, and appends trailing '-' during | 
 | 163 |   # substitution so that $LINENO is not a special case at line end. | 
 | 164 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 165 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 166 |   sed '=' <$as_myself | | 
 | 167 |     sed ' | 
 | 168 |       N | 
 | 169 |       s,$,-, | 
 | 170 |       : loop | 
 | 171 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 172 |       t loop | 
 | 173 |       s,-$,, | 
 | 174 |       s,^['$as_cr_digits']*\n,, | 
 | 175 |     ' >$as_me.lineno && | 
 | 176 |   chmod +x $as_me.lineno || | 
 | 177 |     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
 | 178 |    { (exit 1); exit 1; }; } | 
 | 179 |  | 
 | 180 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 181 |   # (the dirname of $[0] is not the place where we might find the | 
 | 182 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 183 |   . ./$as_me.lineno | 
 | 184 |   # Exit status is that of the last command. | 
 | 185 |   exit | 
 | 186 | } | 
 | 187 |  | 
 | 188 |  | 
 | 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 190 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 191 | ' ECHO_T='	' ;; | 
 | 192 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 193 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 194 | esac | 
 | 195 |  | 
 | 196 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 197 |   as_expr=expr | 
 | 198 | else | 
 | 199 |   as_expr=false | 
 | 200 | fi | 
 | 201 |  | 
 | 202 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 203 | echo >conf$$.file | 
 | 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 205 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 206 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 207 |   if test -f conf$$.exe; then | 
 | 208 |     # Don't use ln at all; we don't have any links | 
 | 209 |     as_ln_s='cp -p' | 
 | 210 |   else | 
 | 211 |     as_ln_s='ln -s' | 
 | 212 |   fi | 
 | 213 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 214 |   as_ln_s=ln | 
 | 215 | else | 
 | 216 |   as_ln_s='cp -p' | 
 | 217 | fi | 
 | 218 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 219 |  | 
 | 220 | if mkdir -p . 2>/dev/null; then | 
 | 221 |   as_mkdir_p=: | 
 | 222 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 223 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 224 |   as_mkdir_p=false | 
 | 225 | fi | 
 | 226 |  | 
 | 227 | as_executable_p="test -f" | 
 | 228 |  | 
 | 229 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 230 | 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] | 231 |  | 
 | 232 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 234 |  | 
 | 235 |  | 
 | 236 | # IFS | 
 | 237 | # We need space, tab and new line, in precisely that order. | 
 | 238 | as_nl=' | 
 | 239 | ' | 
 | 240 | IFS=" 	$as_nl" | 
 | 241 |  | 
 | 242 | # CDPATH. | 
 | 243 | $as_unset CDPATH | 
 | 244 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 245 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 246 |  | 
 | 247 | # Check that we are running under the correct shell. | 
 | 248 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 249 |  | 
 | 250 | case X$ECHO in | 
 | 251 | X*--fallback-echo) | 
 | 252 |   # Remove one level of quotation (which was required for Make). | 
 | 253 |   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | 
 | 254 |   ;; | 
 | 255 | esac | 
 | 256 |  | 
 | 257 | echo=${ECHO-echo} | 
 | 258 | if test "X$1" = X--no-reexec; then | 
 | 259 |   # Discard the --no-reexec flag, and continue. | 
 | 260 |   shift | 
 | 261 | elif test "X$1" = X--fallback-echo; then | 
 | 262 |   # Avoid inline document here, it may be left over | 
 | 263 |   : | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 265 |   # Yippee, $echo works! | 
 | 266 |   : | 
 | 267 | else | 
 | 268 |   # Restart under the correct shell. | 
 | 269 |   exec $SHELL "$0" --no-reexec ${1+"$@"} | 
 | 270 | fi | 
 | 271 |  | 
 | 272 | if test "X$1" = X--fallback-echo; then | 
 | 273 |   # used as fallback echo | 
 | 274 |   shift | 
 | 275 |   cat <<EOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 276 | $* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 277 | EOF | 
 | 278 |   exit 0 | 
 | 279 | fi | 
 | 280 |  | 
 | 281 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 282 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 283 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 284 |  | 
 | 285 | if test -z "$ECHO"; then | 
 | 286 | if test "X${echo_test_string+set}" != Xset; then | 
 | 287 | # find a string as large as possible, as long as the shell can cope with it | 
 | 288 |   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | 
 | 289 |     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 
 | 290 |     if (echo_test_string="`eval $cmd`") 2>/dev/null && | 
 | 291 |        echo_test_string="`eval $cmd`" && | 
 | 292 |        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 
 | 293 |     then | 
 | 294 |       break | 
 | 295 |     fi | 
 | 296 |   done | 
 | 297 | fi | 
 | 298 |  | 
 | 299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 300 |    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 301 |    test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 302 |   : | 
 | 303 | else | 
 | 304 |   # The Solaris, AIX, and Digital Unix default echo programs unquote | 
 | 305 |   # backslashes.  This makes it impossible to quote backslashes using | 
 | 306 |   #   echo "$something" | sed 's/\\/\\\\/g' | 
 | 307 |   # | 
 | 308 |   # So, first we look for a working echo in the user's PATH. | 
 | 309 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 310 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 311 |   for dir in $PATH /usr/ucb; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 |     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | 
 | 314 |        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 315 |        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | 
 | 316 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 317 |       echo="$dir/echo" | 
 | 318 |       break | 
 | 319 |     fi | 
 | 320 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 321 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 322 |  | 
 | 323 |   if test "X$echo" = Xecho; then | 
 | 324 |     # We didn't find a better echo, so look for alternatives. | 
 | 325 |     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | 
 | 326 |        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | 
 | 327 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 328 |       # This shell has a builtin print -r that does the trick. | 
 | 329 |       echo='print -r' | 
 | 330 |     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | 
 | 331 | 	 test "X$CONFIG_SHELL" != X/bin/ksh; then | 
 | 332 |       # If we have ksh, try running configure again with it. | 
 | 333 |       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 334 |       export ORIGINAL_CONFIG_SHELL | 
 | 335 |       CONFIG_SHELL=/bin/ksh | 
 | 336 |       export CONFIG_SHELL | 
 | 337 |       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | 
 | 338 |     else | 
 | 339 |       # Try using printf. | 
 | 340 |       echo='printf %s\n' | 
 | 341 |       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 342 | 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 343 | 	 test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 344 | 	# Cool, printf works | 
 | 345 | 	: | 
 | 346 |       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 347 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 348 | 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 349 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 350 | 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | 
 | 351 | 	export CONFIG_SHELL | 
 | 352 | 	SHELL="$CONFIG_SHELL" | 
 | 353 | 	export SHELL | 
 | 354 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 355 |       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 356 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 357 | 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 358 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 359 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 360 |       else | 
 | 361 | 	# maybe with a smaller string... | 
 | 362 | 	prev=: | 
 | 363 |  | 
 | 364 | 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | 
 | 365 | 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 
 | 366 | 	  then | 
 | 367 | 	    break | 
 | 368 | 	  fi | 
 | 369 | 	  prev="$cmd" | 
 | 370 | 	done | 
 | 371 |  | 
 | 372 | 	if test "$prev" != 'sed 50q "$0"'; then | 
 | 373 | 	  echo_test_string=`eval $prev` | 
 | 374 | 	  export echo_test_string | 
 | 375 | 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | 
 | 376 | 	else | 
 | 377 | 	  # Oops.  We lost completely, so just stick with echo. | 
 | 378 | 	  echo=echo | 
 | 379 | 	fi | 
 | 380 |       fi | 
 | 381 |     fi | 
 | 382 |   fi | 
 | 383 | fi | 
 | 384 | fi | 
 | 385 |  | 
 | 386 | # Copy echo and quote the copy suitably for passing to libtool from | 
 | 387 | # the Makefile, instead of quoting the original, which is used later. | 
 | 388 | ECHO=$echo | 
 | 389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | 
 | 390 |    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | 
 | 391 | fi | 
 | 392 |  | 
 | 393 |  | 
 | 394 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 395 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 396 | tagnames=${tagnames+${tagnames},}CXX | 
| 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},}F77 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 400 | # Name of the host. | 
 | 401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
 | 402 | # so uname gets run too. | 
 | 403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 404 |  | 
 | 405 | exec 6>&1 | 
 | 406 |  | 
 | 407 | # | 
 | 408 | # Initializations. | 
 | 409 | # | 
 | 410 | ac_default_prefix=/usr/local | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 411 | ac_config_libobj_dir=. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 412 | cross_compiling=no | 
 | 413 | subdirs= | 
 | 414 | MFLAGS= | 
 | 415 | MAKEFLAGS= | 
 | 416 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 417 |  | 
 | 418 | # Maximum number of lines to put in a shell here document. | 
 | 419 | # This variable seems obsolete.  It should probably be removed, and | 
 | 420 | # only ac_max_sed_lines should be used. | 
 | 421 | : ${ac_max_here_lines=38} | 
 | 422 |  | 
 | 423 | # Identity of this package. | 
| Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 424 | PACKAGE_NAME='LLVM' | 
 | 425 | PACKAGE_TARNAME='-llvm-' | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 426 | PACKAGE_VERSION='1.4' | 
 | 427 | PACKAGE_STRING='LLVM 1.4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 428 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' | 
 | 429 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 430 | ac_unique_file=""Makefile.config.in"" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 431 | ac_subdirs_all="$ac_subdirs_all projects/sample" | 
 | 432 | ac_subdirs_all="$ac_subdirs_all projects/Stacker" | 
 | 433 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" | 
 | 434 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" | 
 | 435 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" | 
| Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 436 | ac_subdirs_all="$ac_subdirs_all projects/Java" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" | 
 | 438 | ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 439 | # Factoring default headers for most tests. | 
 | 440 | ac_includes_default="\ | 
 | 441 | #include <stdio.h> | 
 | 442 | #if HAVE_SYS_TYPES_H | 
 | 443 | # include <sys/types.h> | 
 | 444 | #endif | 
 | 445 | #if HAVE_SYS_STAT_H | 
 | 446 | # include <sys/stat.h> | 
 | 447 | #endif | 
 | 448 | #if STDC_HEADERS | 
 | 449 | # include <stdlib.h> | 
 | 450 | # include <stddef.h> | 
 | 451 | #else | 
 | 452 | # if HAVE_STDLIB_H | 
 | 453 | #  include <stdlib.h> | 
 | 454 | # endif | 
 | 455 | #endif | 
 | 456 | #if HAVE_STRING_H | 
 | 457 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
 | 458 | #  include <memory.h> | 
 | 459 | # endif | 
 | 460 | # include <string.h> | 
 | 461 | #endif | 
 | 462 | #if HAVE_STRINGS_H | 
 | 463 | # include <strings.h> | 
 | 464 | #endif | 
 | 465 | #if HAVE_INTTYPES_H | 
 | 466 | # include <inttypes.h> | 
 | 467 | #else | 
 | 468 | # if HAVE_STDINT_H | 
 | 469 | #  include <stdint.h> | 
 | 470 | # endif | 
 | 471 | #endif | 
 | 472 | #if HAVE_UNISTD_H | 
 | 473 | # include <unistd.h> | 
 | 474 | #endif" | 
 | 475 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 476 | 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS 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] | 477 | ac_subst_files='' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 478 |  | 
 | 479 | # Initialize some variables set by options. | 
 | 480 | ac_init_help= | 
 | 481 | ac_init_version=false | 
 | 482 | # The variables have the same names as the options, with | 
 | 483 | # dashes changed to underlines. | 
 | 484 | cache_file=/dev/null | 
 | 485 | exec_prefix=NONE | 
 | 486 | no_create= | 
 | 487 | no_recursion= | 
 | 488 | prefix=NONE | 
 | 489 | program_prefix=NONE | 
 | 490 | program_suffix=NONE | 
 | 491 | program_transform_name=s,x,x, | 
 | 492 | silent= | 
 | 493 | site= | 
 | 494 | srcdir= | 
 | 495 | verbose= | 
 | 496 | x_includes=NONE | 
 | 497 | x_libraries=NONE | 
 | 498 |  | 
 | 499 | # Installation directory options. | 
 | 500 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 501 | # and all the variables that are supposed to be based on exec_prefix | 
 | 502 | # by default will actually change. | 
 | 503 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
 | 504 | bindir='${exec_prefix}/bin' | 
 | 505 | sbindir='${exec_prefix}/sbin' | 
 | 506 | libexecdir='${exec_prefix}/libexec' | 
 | 507 | datadir='${prefix}/share' | 
 | 508 | sysconfdir='${prefix}/etc' | 
 | 509 | sharedstatedir='${prefix}/com' | 
 | 510 | localstatedir='${prefix}/var' | 
 | 511 | libdir='${exec_prefix}/lib' | 
 | 512 | includedir='${prefix}/include' | 
 | 513 | oldincludedir='/usr/include' | 
 | 514 | infodir='${prefix}/info' | 
 | 515 | mandir='${prefix}/man' | 
 | 516 |  | 
 | 517 | ac_prev= | 
 | 518 | for ac_option | 
 | 519 | do | 
 | 520 |   # If the previous option needs an argument, assign it. | 
 | 521 |   if test -n "$ac_prev"; then | 
 | 522 |     eval "$ac_prev=\$ac_option" | 
 | 523 |     ac_prev= | 
 | 524 |     continue | 
 | 525 |   fi | 
 | 526 |  | 
 | 527 |   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
 | 528 |  | 
 | 529 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 530 |  | 
 | 531 |   case $ac_option in | 
 | 532 |  | 
 | 533 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 534 |     ac_prev=bindir ;; | 
 | 535 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 536 |     bindir=$ac_optarg ;; | 
 | 537 |  | 
 | 538 |   -build | --build | --buil | --bui | --bu) | 
 | 539 |     ac_prev=build_alias ;; | 
 | 540 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
 | 541 |     build_alias=$ac_optarg ;; | 
 | 542 |  | 
 | 543 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 544 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 545 |     ac_prev=cache_file ;; | 
 | 546 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 547 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 548 |     cache_file=$ac_optarg ;; | 
 | 549 |  | 
 | 550 |   --config-cache | -C) | 
 | 551 |     cache_file=config.cache ;; | 
 | 552 |  | 
 | 553 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 554 |     ac_prev=datadir ;; | 
 | 555 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 556 |   | --da=*) | 
 | 557 |     datadir=$ac_optarg ;; | 
 | 558 |  | 
 | 559 |   -disable-* | --disable-*) | 
 | 560 |     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
 | 561 |     # Reject names that are not valid shell variable names. | 
 | 562 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 563 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 564 |    { (exit 1); exit 1; }; } | 
 | 565 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 566 |     eval "enable_$ac_feature=no" ;; | 
 | 567 |  | 
 | 568 |   -enable-* | --enable-*) | 
 | 569 |     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
 | 570 |     # Reject names that are not valid shell variable names. | 
 | 571 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 572 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 573 |    { (exit 1); exit 1; }; } | 
 | 574 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 575 |     case $ac_option in | 
 | 576 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 577 |       *) ac_optarg=yes ;; | 
 | 578 |     esac | 
 | 579 |     eval "enable_$ac_feature='$ac_optarg'" ;; | 
 | 580 |  | 
 | 581 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 582 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 583 |   | --exec | --exe | --ex) | 
 | 584 |     ac_prev=exec_prefix ;; | 
 | 585 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 586 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 587 |   | --exec=* | --exe=* | --ex=*) | 
 | 588 |     exec_prefix=$ac_optarg ;; | 
 | 589 |  | 
 | 590 |   -gas | --gas | --ga | --g) | 
 | 591 |     # Obsolete; use --with-gas. | 
 | 592 |     with_gas=yes ;; | 
 | 593 |  | 
 | 594 |   -help | --help | --hel | --he | -h) | 
 | 595 |     ac_init_help=long ;; | 
 | 596 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 597 |     ac_init_help=recursive ;; | 
 | 598 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 599 |     ac_init_help=short ;; | 
 | 600 |  | 
 | 601 |   -host | --host | --hos | --ho) | 
 | 602 |     ac_prev=host_alias ;; | 
 | 603 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 604 |     host_alias=$ac_optarg ;; | 
 | 605 |  | 
 | 606 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 607 |   | --includ | --inclu | --incl | --inc) | 
 | 608 |     ac_prev=includedir ;; | 
 | 609 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 610 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 611 |     includedir=$ac_optarg ;; | 
 | 612 |  | 
 | 613 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 614 |     ac_prev=infodir ;; | 
 | 615 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 616 |     infodir=$ac_optarg ;; | 
 | 617 |  | 
 | 618 |   -libdir | --libdir | --libdi | --libd) | 
 | 619 |     ac_prev=libdir ;; | 
 | 620 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 621 |     libdir=$ac_optarg ;; | 
 | 622 |  | 
 | 623 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 624 |   | --libexe | --libex | --libe) | 
 | 625 |     ac_prev=libexecdir ;; | 
 | 626 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 627 |   | --libexe=* | --libex=* | --libe=*) | 
 | 628 |     libexecdir=$ac_optarg ;; | 
 | 629 |  | 
 | 630 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 631 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 632 |   | --locals | --local | --loca | --loc | --lo) | 
 | 633 |     ac_prev=localstatedir ;; | 
 | 634 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 635 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 636 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
 | 637 |     localstatedir=$ac_optarg ;; | 
 | 638 |  | 
 | 639 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 640 |     ac_prev=mandir ;; | 
 | 641 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 642 |     mandir=$ac_optarg ;; | 
 | 643 |  | 
 | 644 |   -nfp | --nfp | --nf) | 
 | 645 |     # Obsolete; use --without-fp. | 
 | 646 |     with_fp=no ;; | 
 | 647 |  | 
 | 648 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 649 |   | --no-cr | --no-c | -n) | 
 | 650 |     no_create=yes ;; | 
 | 651 |  | 
 | 652 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 653 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 654 |     no_recursion=yes ;; | 
 | 655 |  | 
 | 656 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 657 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 658 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 659 |     ac_prev=oldincludedir ;; | 
 | 660 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 661 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 662 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 663 |     oldincludedir=$ac_optarg ;; | 
 | 664 |  | 
 | 665 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 666 |     ac_prev=prefix ;; | 
 | 667 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 668 |     prefix=$ac_optarg ;; | 
 | 669 |  | 
 | 670 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 671 |   | --program-pre | --program-pr | --program-p) | 
 | 672 |     ac_prev=program_prefix ;; | 
 | 673 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 674 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 675 |     program_prefix=$ac_optarg ;; | 
 | 676 |  | 
 | 677 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 678 |   | --program-suf | --program-su | --program-s) | 
 | 679 |     ac_prev=program_suffix ;; | 
 | 680 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 681 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 682 |     program_suffix=$ac_optarg ;; | 
 | 683 |  | 
 | 684 |   -program-transform-name | --program-transform-name \ | 
 | 685 |   | --program-transform-nam | --program-transform-na \ | 
 | 686 |   | --program-transform-n | --program-transform- \ | 
 | 687 |   | --program-transform | --program-transfor \ | 
 | 688 |   | --program-transfo | --program-transf \ | 
 | 689 |   | --program-trans | --program-tran \ | 
 | 690 |   | --progr-tra | --program-tr | --program-t) | 
 | 691 |     ac_prev=program_transform_name ;; | 
 | 692 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 693 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 694 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 695 |   | --program-transform=* | --program-transfor=* \ | 
 | 696 |   | --program-transfo=* | --program-transf=* \ | 
 | 697 |   | --program-trans=* | --program-tran=* \ | 
 | 698 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 699 |     program_transform_name=$ac_optarg ;; | 
 | 700 |  | 
 | 701 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 702 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 703 |     silent=yes ;; | 
 | 704 |  | 
 | 705 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 706 |     ac_prev=sbindir ;; | 
 | 707 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 708 |   | --sbi=* | --sb=*) | 
 | 709 |     sbindir=$ac_optarg ;; | 
 | 710 |  | 
 | 711 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 712 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 713 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 714 |   | --sha | --sh) | 
 | 715 |     ac_prev=sharedstatedir ;; | 
 | 716 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 717 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 718 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 719 |   | --sha=* | --sh=*) | 
 | 720 |     sharedstatedir=$ac_optarg ;; | 
 | 721 |  | 
 | 722 |   -site | --site | --sit) | 
 | 723 |     ac_prev=site ;; | 
 | 724 |   -site=* | --site=* | --sit=*) | 
 | 725 |     site=$ac_optarg ;; | 
 | 726 |  | 
 | 727 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 728 |     ac_prev=srcdir ;; | 
 | 729 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 730 |     srcdir=$ac_optarg ;; | 
 | 731 |  | 
 | 732 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 733 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 734 |     ac_prev=sysconfdir ;; | 
 | 735 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 736 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 737 |     sysconfdir=$ac_optarg ;; | 
 | 738 |  | 
 | 739 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 740 |     ac_prev=target_alias ;; | 
 | 741 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 742 |     target_alias=$ac_optarg ;; | 
 | 743 |  | 
 | 744 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 745 |     verbose=yes ;; | 
 | 746 |  | 
 | 747 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 748 |     ac_init_version=: ;; | 
 | 749 |  | 
 | 750 |   -with-* | --with-*) | 
 | 751 |     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
 | 752 |     # Reject names that are not valid shell variable names. | 
 | 753 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 754 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 755 |    { (exit 1); exit 1; }; } | 
 | 756 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 757 |     case $ac_option in | 
 | 758 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 759 |       *) ac_optarg=yes ;; | 
 | 760 |     esac | 
 | 761 |     eval "with_$ac_package='$ac_optarg'" ;; | 
 | 762 |  | 
 | 763 |   -without-* | --without-*) | 
 | 764 |     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
 | 765 |     # Reject names that are not valid shell variable names. | 
 | 766 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 767 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 768 |    { (exit 1); exit 1; }; } | 
 | 769 |     ac_package=`echo $ac_package | sed 's/-/_/g'` | 
 | 770 |     eval "with_$ac_package=no" ;; | 
 | 771 |  | 
 | 772 |   --x) | 
 | 773 |     # Obsolete; use --with-x. | 
 | 774 |     with_x=yes ;; | 
 | 775 |  | 
 | 776 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 777 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 778 |     ac_prev=x_includes ;; | 
 | 779 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 780 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 781 |     x_includes=$ac_optarg ;; | 
 | 782 |  | 
 | 783 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 784 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 785 |     ac_prev=x_libraries ;; | 
 | 786 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 787 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 788 |     x_libraries=$ac_optarg ;; | 
 | 789 |  | 
 | 790 |   -*) { echo "$as_me: error: unrecognized option: $ac_option | 
 | 791 | Try \`$0 --help' for more information." >&2 | 
 | 792 |    { (exit 1); exit 1; }; } | 
 | 793 |     ;; | 
 | 794 |  | 
 | 795 |   *=*) | 
 | 796 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 797 |     # Reject names that are not valid shell variable names. | 
 | 798 |     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
 | 799 |       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
 | 800 |    { (exit 1); exit 1; }; } | 
 | 801 |     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
 | 802 |     eval "$ac_envvar='$ac_optarg'" | 
 | 803 |     export $ac_envvar ;; | 
 | 804 |  | 
 | 805 |   *) | 
 | 806 |     # FIXME: should be removed in autoconf 3.0. | 
 | 807 |     echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
 | 808 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
 | 809 |       echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
 | 810 |     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
 | 811 |     ;; | 
 | 812 |  | 
 | 813 |   esac | 
 | 814 | done | 
 | 815 |  | 
 | 816 | if test -n "$ac_prev"; then | 
 | 817 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
 | 818 |   { echo "$as_me: error: missing argument to $ac_option" >&2 | 
 | 819 |    { (exit 1); exit 1; }; } | 
 | 820 | fi | 
 | 821 |  | 
 | 822 | # Be sure to have absolute paths. | 
 | 823 | for ac_var in exec_prefix prefix | 
 | 824 | do | 
 | 825 |   eval ac_val=$`echo $ac_var` | 
 | 826 |   case $ac_val in | 
 | 827 |     [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
 | 828 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 829 |    { (exit 1); exit 1; }; };; | 
 | 830 |   esac | 
 | 831 | done | 
 | 832 |  | 
 | 833 | # Be sure to have absolute paths. | 
 | 834 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 835 | 	      localstatedir libdir includedir oldincludedir infodir mandir | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 836 | do | 
 | 837 |   eval ac_val=$`echo $ac_var` | 
 | 838 |   case $ac_val in | 
 | 839 |     [\\/$]* | ?:[\\/]* ) ;; | 
 | 840 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 841 |    { (exit 1); exit 1; }; };; | 
 | 842 |   esac | 
 | 843 | done | 
 | 844 |  | 
 | 845 | # There might be people who depend on the old broken behavior: `$host' | 
 | 846 | # used to hold the argument of --host etc. | 
 | 847 | # FIXME: To remove some day. | 
 | 848 | build=$build_alias | 
 | 849 | host=$host_alias | 
 | 850 | target=$target_alias | 
 | 851 |  | 
 | 852 | # FIXME: To remove some day. | 
 | 853 | if test "x$host_alias" != x; then | 
 | 854 |   if test "x$build_alias" = x; then | 
 | 855 |     cross_compiling=maybe | 
 | 856 |     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
 | 857 |     If a cross compiler is detected then cross compile mode will be used." >&2 | 
 | 858 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 859 |     cross_compiling=yes | 
 | 860 |   fi | 
 | 861 | fi | 
 | 862 |  | 
 | 863 | ac_tool_prefix= | 
 | 864 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 865 |  | 
 | 866 | test "$silent" = yes && exec 6>/dev/null | 
 | 867 |  | 
 | 868 |  | 
 | 869 | # Find the source files, if location was not specified. | 
 | 870 | if test -z "$srcdir"; then | 
 | 871 |   ac_srcdir_defaulted=yes | 
 | 872 |   # Try the directory containing this script, then its parent. | 
 | 873 |   ac_confdir=`(dirname "$0") 2>/dev/null || | 
 | 874 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 875 | 	 X"$0" : 'X\(//\)[^/]' \| \ | 
 | 876 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 877 | 	 X"$0" : 'X\(/\)' \| \ | 
 | 878 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 879 | echo X"$0" | | 
 | 880 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 881 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 882 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 883 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 884 |   	  s/.*/./; q'` | 
 | 885 |   srcdir=$ac_confdir | 
 | 886 |   if test ! -r $srcdir/$ac_unique_file; then | 
 | 887 |     srcdir=.. | 
 | 888 |   fi | 
 | 889 | else | 
 | 890 |   ac_srcdir_defaulted=no | 
 | 891 | fi | 
 | 892 | if test ! -r $srcdir/$ac_unique_file; then | 
 | 893 |   if test "$ac_srcdir_defaulted" = yes; then | 
 | 894 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
 | 895 |    { (exit 1); exit 1; }; } | 
 | 896 |   else | 
 | 897 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
 | 898 |    { (exit 1); exit 1; }; } | 
 | 899 |   fi | 
 | 900 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 901 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
 | 902 |   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
 | 903 |    { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 904 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
 | 905 | ac_env_build_alias_set=${build_alias+set} | 
 | 906 | ac_env_build_alias_value=$build_alias | 
 | 907 | ac_cv_env_build_alias_set=${build_alias+set} | 
 | 908 | ac_cv_env_build_alias_value=$build_alias | 
 | 909 | ac_env_host_alias_set=${host_alias+set} | 
 | 910 | ac_env_host_alias_value=$host_alias | 
 | 911 | ac_cv_env_host_alias_set=${host_alias+set} | 
 | 912 | ac_cv_env_host_alias_value=$host_alias | 
 | 913 | ac_env_target_alias_set=${target_alias+set} | 
 | 914 | ac_env_target_alias_value=$target_alias | 
 | 915 | ac_cv_env_target_alias_set=${target_alias+set} | 
 | 916 | ac_cv_env_target_alias_value=$target_alias | 
 | 917 | ac_env_CXX_set=${CXX+set} | 
 | 918 | ac_env_CXX_value=$CXX | 
 | 919 | ac_cv_env_CXX_set=${CXX+set} | 
 | 920 | ac_cv_env_CXX_value=$CXX | 
 | 921 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 922 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
 | 923 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 924 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
 | 925 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 926 | ac_env_LDFLAGS_value=$LDFLAGS | 
 | 927 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 928 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
 | 929 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 930 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
 | 931 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 932 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
 | 933 | ac_env_CC_set=${CC+set} | 
 | 934 | ac_env_CC_value=$CC | 
 | 935 | ac_cv_env_CC_set=${CC+set} | 
 | 936 | ac_cv_env_CC_value=$CC | 
 | 937 | ac_env_CFLAGS_set=${CFLAGS+set} | 
 | 938 | ac_env_CFLAGS_value=$CFLAGS | 
 | 939 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
 | 940 | ac_cv_env_CFLAGS_value=$CFLAGS | 
 | 941 | ac_env_CPP_set=${CPP+set} | 
 | 942 | ac_env_CPP_value=$CPP | 
 | 943 | ac_cv_env_CPP_set=${CPP+set} | 
 | 944 | ac_cv_env_CPP_value=$CPP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 945 | ac_env_CXXCPP_set=${CXXCPP+set} | 
 | 946 | ac_env_CXXCPP_value=$CXXCPP | 
 | 947 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | 
 | 948 | ac_cv_env_CXXCPP_value=$CXXCPP | 
 | 949 | ac_env_F77_set=${F77+set} | 
 | 950 | ac_env_F77_value=$F77 | 
 | 951 | ac_cv_env_F77_set=${F77+set} | 
 | 952 | ac_cv_env_F77_value=$F77 | 
 | 953 | ac_env_FFLAGS_set=${FFLAGS+set} | 
 | 954 | ac_env_FFLAGS_value=$FFLAGS | 
 | 955 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | 
 | 956 | ac_cv_env_FFLAGS_value=$FFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 957 |  | 
 | 958 | # | 
 | 959 | # Report the --help message. | 
 | 960 | # | 
 | 961 | if test "$ac_init_help" = "long"; then | 
 | 962 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 963 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 964 |   cat <<_ACEOF | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 965 | \`configure' configures LLVM 1.4 to adapt to many kinds of systems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 966 |  | 
 | 967 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 968 |  | 
 | 969 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 970 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 971 |  | 
 | 972 | Defaults for the options are specified in brackets. | 
 | 973 |  | 
 | 974 | Configuration: | 
 | 975 |   -h, --help              display this help and exit | 
 | 976 |       --help=short        display options specific to this package | 
 | 977 |       --help=recursive    display the short help of all the included packages | 
 | 978 |   -V, --version           display version information and exit | 
 | 979 |   -q, --quiet, --silent   do not print \`checking...' messages | 
 | 980 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 981 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 982 |   -n, --no-create         do not create output files | 
 | 983 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 984 |  | 
 | 985 | _ACEOF | 
 | 986 |  | 
 | 987 |   cat <<_ACEOF | 
 | 988 | Installation directories: | 
 | 989 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 990 | 			  [$ac_default_prefix] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 991 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 992 | 			  [PREFIX] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 993 |  | 
 | 994 | By default, \`make install' will install all the files in | 
 | 995 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 996 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 997 | for instance \`--prefix=\$HOME'. | 
 | 998 |  | 
 | 999 | For better control, use the options below. | 
 | 1000 |  | 
 | 1001 | Fine tuning of the installation directories: | 
 | 1002 |   --bindir=DIR           user executables [EPREFIX/bin] | 
 | 1003 |   --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
 | 1004 |   --libexecdir=DIR       program executables [EPREFIX/libexec] | 
 | 1005 |   --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
 | 1006 |   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
 | 1007 |   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
 | 1008 |   --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
 | 1009 |   --libdir=DIR           object code libraries [EPREFIX/lib] | 
 | 1010 |   --includedir=DIR       C header files [PREFIX/include] | 
 | 1011 |   --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
 | 1012 |   --infodir=DIR          info documentation [PREFIX/info] | 
 | 1013 |   --mandir=DIR           man documentation [PREFIX/man] | 
 | 1014 | _ACEOF | 
 | 1015 |  | 
 | 1016 |   cat <<\_ACEOF | 
 | 1017 |  | 
 | 1018 | System types: | 
 | 1019 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1020 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
 | 1021 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
 | 1022 | _ACEOF | 
 | 1023 | fi | 
 | 1024 |  | 
 | 1025 | if test -n "$ac_init_help"; then | 
 | 1026 |   case $ac_init_help in | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 1027 |      short | recursive ) echo "Configuration of LLVM 1.4:";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1028 |    esac | 
 | 1029 |   cat <<\_ACEOF | 
 | 1030 |  | 
 | 1031 | Optional Features: | 
 | 1032 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1033 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1034 |   --enable-shared[=PKGS] | 
 | 1035 |                           build shared libraries [default=yes] | 
 | 1036 |   --enable-static[=PKGS] | 
 | 1037 |                           build static libraries [default=yes] | 
 | 1038 |   --enable-fast-install[=PKGS] | 
 | 1039 |                           optimize for fast installation [default=yes] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1040 |   --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1041 |   --enable-optimized      Compile with optimizations enabled (default is NO) | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1042 |   --enable-jit            Enable Just In Time Compiling (default is YES) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1043 |  | 
 | 1044 | Optional Packages: | 
 | 1045 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1046 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1047 |   --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
 | 1048 |   --with-pic              try to use only PIC/non-PIC objects [default=use | 
 | 1049 |                           both] | 
 | 1050 |   --with-tags[=TAGS] | 
 | 1051 |                           include additional configurations [automatic] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1052 |   --with-llvmgccdir       Location of LLVM GCC front-end | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 |  | 
 | 1054 | Some influential environment variables: | 
 | 1055 |   CXX         C++ compiler command | 
 | 1056 |   CXXFLAGS    C++ compiler flags | 
 | 1057 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1058 |               nonstandard directory <lib dir> | 
 | 1059 |   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
 | 1060 |               headers in a nonstandard directory <include dir> | 
 | 1061 |   CC          C compiler command | 
 | 1062 |   CFLAGS      C compiler flags | 
 | 1063 |   CPP         C preprocessor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1064 |   CXXCPP      C++ preprocessor | 
 | 1065 |   F77         Fortran 77 compiler command | 
 | 1066 |   FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1067 |  | 
 | 1068 | Use these variables to override the choices made by `configure' or to help | 
 | 1069 | it to find libraries and programs with nonstandard names/locations. | 
 | 1070 |  | 
 | 1071 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 1072 | _ACEOF | 
 | 1073 | fi | 
 | 1074 |  | 
 | 1075 | if test "$ac_init_help" = "recursive"; then | 
 | 1076 |   # If there are subdirs, report their specific --help. | 
 | 1077 |   ac_popdir=`pwd` | 
 | 1078 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
 | 1079 |     test -d $ac_dir || continue | 
 | 1080 |     ac_builddir=. | 
 | 1081 |  | 
 | 1082 | if test "$ac_dir" != .; then | 
 | 1083 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 1084 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 1085 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 1086 | else | 
 | 1087 |   ac_dir_suffix= ac_top_builddir= | 
 | 1088 | fi | 
 | 1089 |  | 
 | 1090 | case $srcdir in | 
 | 1091 |   .)  # No --srcdir option.  We are building in place. | 
 | 1092 |     ac_srcdir=. | 
 | 1093 |     if test -z "$ac_top_builddir"; then | 
 | 1094 |        ac_top_srcdir=. | 
 | 1095 |     else | 
 | 1096 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 1097 |     fi ;; | 
 | 1098 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 1099 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 1100 |     ac_top_srcdir=$srcdir ;; | 
 | 1101 |   *) # Relative path. | 
 | 1102 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 1103 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 1104 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1105 |  | 
 | 1106 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 1107 | # the directories may not exist. | 
 | 1108 | case `pwd` in | 
 | 1109 | .) ac_abs_builddir="$ac_dir";; | 
 | 1110 | *) | 
 | 1111 |   case "$ac_dir" in | 
 | 1112 |   .) ac_abs_builddir=`pwd`;; | 
 | 1113 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 1114 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 1115 |   esac;; | 
 | 1116 | esac | 
 | 1117 | case $ac_abs_builddir in | 
 | 1118 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 1119 | *) | 
 | 1120 |   case ${ac_top_builddir}. in | 
 | 1121 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 1122 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 1123 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 1124 |   esac;; | 
 | 1125 | esac | 
 | 1126 | case $ac_abs_builddir in | 
 | 1127 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 1128 | *) | 
 | 1129 |   case $ac_srcdir in | 
 | 1130 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 1131 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 1132 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 1133 |   esac;; | 
 | 1134 | esac | 
 | 1135 | case $ac_abs_builddir in | 
 | 1136 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 1137 | *) | 
 | 1138 |   case $ac_top_srcdir in | 
 | 1139 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 1140 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 1141 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 1142 |   esac;; | 
 | 1143 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1144 |  | 
 | 1145 |     cd $ac_dir | 
 | 1146 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 1147 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 1148 |       echo | 
 | 1149 |       $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
 | 1150 |     elif test -f $ac_srcdir/configure; then | 
 | 1151 |       echo | 
 | 1152 |       $SHELL $ac_srcdir/configure  --help=recursive | 
 | 1153 |     elif test -f $ac_srcdir/configure.ac || | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1154 | 	   test -f $ac_srcdir/configure.in; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1155 |       echo | 
 | 1156 |       $ac_configure --help | 
 | 1157 |     else | 
 | 1158 |       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
 | 1159 |     fi | 
 | 1160 |     cd $ac_popdir | 
 | 1161 |   done | 
 | 1162 | fi | 
 | 1163 |  | 
 | 1164 | test -n "$ac_init_help" && exit 0 | 
 | 1165 | if $ac_init_version; then | 
 | 1166 |   cat <<\_ACEOF | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 1167 | LLVM configure 1.4 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1168 | generated by GNU Autoconf 2.59 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1169 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1170 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1171 | This configure script is free software; the Free Software Foundation | 
 | 1172 | gives unlimited permission to copy, distribute and modify it. | 
 | 1173 | _ACEOF | 
 | 1174 |   exit 0 | 
 | 1175 | fi | 
 | 1176 | exec 5>config.log | 
 | 1177 | cat >&5 <<_ACEOF | 
 | 1178 | This file contains any messages produced by compilers while | 
 | 1179 | running configure, to aid debugging if configure makes a mistake. | 
 | 1180 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 1181 | It was created by LLVM $as_me 1.4, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1182 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1183 |  | 
 | 1184 |   $ $0 $@ | 
 | 1185 |  | 
 | 1186 | _ACEOF | 
 | 1187 | { | 
 | 1188 | cat <<_ASUNAME | 
 | 1189 | ## --------- ## | 
 | 1190 | ## Platform. ## | 
 | 1191 | ## --------- ## | 
 | 1192 |  | 
 | 1193 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 1194 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 1195 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 1196 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 1197 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 1198 |  | 
 | 1199 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 1200 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 1201 |  | 
 | 1202 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 1203 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 1204 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
 | 1205 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
 | 1206 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 1207 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 1208 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 1209 |  | 
 | 1210 | _ASUNAME | 
 | 1211 |  | 
 | 1212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1213 | for as_dir in $PATH | 
 | 1214 | do | 
 | 1215 |   IFS=$as_save_IFS | 
 | 1216 |   test -z "$as_dir" && as_dir=. | 
 | 1217 |   echo "PATH: $as_dir" | 
 | 1218 | done | 
 | 1219 |  | 
 | 1220 | } >&5 | 
 | 1221 |  | 
 | 1222 | cat >&5 <<_ACEOF | 
 | 1223 |  | 
 | 1224 |  | 
 | 1225 | ## ----------- ## | 
 | 1226 | ## Core tests. ## | 
 | 1227 | ## ----------- ## | 
 | 1228 |  | 
 | 1229 | _ACEOF | 
 | 1230 |  | 
 | 1231 |  | 
 | 1232 | # Keep a trace of the command line. | 
 | 1233 | # 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] | 1234 | # 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] | 1235 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1236 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1237 | ac_configure_args= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1238 | ac_configure_args0= | 
 | 1239 | ac_configure_args1= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1240 | ac_sep= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1241 | ac_must_keep_next=false | 
 | 1242 | for ac_pass in 1 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1243 | do | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1244 |   for ac_arg | 
 | 1245 |   do | 
 | 1246 |     case $ac_arg in | 
 | 1247 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 1248 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1249 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 1250 |       continue ;; | 
 | 1251 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1252 |       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1253 |     esac | 
 | 1254 |     case $ac_pass in | 
 | 1255 |     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
 | 1256 |     2) | 
 | 1257 |       ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
 | 1258 |       if test $ac_must_keep_next = true; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1259 | 	ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1260 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1261 | 	case $ac_arg in | 
 | 1262 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 1263 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 1264 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 1265 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 1266 | 	    case "$ac_configure_args0 " in | 
 | 1267 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 1268 | 	    esac | 
 | 1269 | 	    ;; | 
 | 1270 | 	  -* ) ac_must_keep_next=true ;; | 
 | 1271 | 	esac | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1272 |       fi | 
 | 1273 |       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
 | 1274 |       # Get rid of the leading space. | 
 | 1275 |       ac_sep=" " | 
 | 1276 |       ;; | 
 | 1277 |     esac | 
 | 1278 |   done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1279 | done | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1280 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
 | 1281 | $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] | 1282 |  | 
 | 1283 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 1284 | # config.log.  We remove comments because anyway the quotes in there | 
 | 1285 | # would cause problems or look ugly. | 
 | 1286 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
 | 1287 | # such as our DU 5.0 friend, will then `close' the trap. | 
 | 1288 | trap 'exit_status=$? | 
 | 1289 |   # Save into config.log some information that might help in debugging. | 
 | 1290 |   { | 
 | 1291 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1292 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1293 |     cat <<\_ASBOX | 
 | 1294 | ## ---------------- ## | 
 | 1295 | ## Cache variables. ## | 
 | 1296 | ## ---------------- ## | 
 | 1297 | _ASBOX | 
 | 1298 |     echo | 
 | 1299 |     # The following way of writing the cache mishandles newlines in values, | 
 | 1300 | { | 
 | 1301 |   (set) 2>&1 | | 
 | 1302 |     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
 | 1303 |     *ac_space=\ *) | 
 | 1304 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1305 | 	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
 | 1306 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1307 |       ;; | 
 | 1308 |     *) | 
 | 1309 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1310 | 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1311 |       ;; | 
 | 1312 |     esac; | 
 | 1313 | } | 
 | 1314 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1315 |  | 
 | 1316 |     cat <<\_ASBOX | 
 | 1317 | ## ----------------- ## | 
 | 1318 | ## Output variables. ## | 
 | 1319 | ## ----------------- ## | 
 | 1320 | _ASBOX | 
 | 1321 |     echo | 
 | 1322 |     for ac_var in $ac_subst_vars | 
 | 1323 |     do | 
 | 1324 |       eval ac_val=$`echo $ac_var` | 
 | 1325 |       echo "$ac_var='"'"'$ac_val'"'"'" | 
 | 1326 |     done | sort | 
 | 1327 |     echo | 
 | 1328 |  | 
 | 1329 |     if test -n "$ac_subst_files"; then | 
 | 1330 |       cat <<\_ASBOX | 
 | 1331 | ## ------------- ## | 
 | 1332 | ## Output files. ## | 
 | 1333 | ## ------------- ## | 
 | 1334 | _ASBOX | 
 | 1335 |       echo | 
 | 1336 |       for ac_var in $ac_subst_files | 
 | 1337 |       do | 
 | 1338 | 	eval ac_val=$`echo $ac_var` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1339 | 	echo "$ac_var='"'"'$ac_val'"'"'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1340 |       done | sort | 
 | 1341 |       echo | 
 | 1342 |     fi | 
 | 1343 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1344 |     if test -s confdefs.h; then | 
 | 1345 |       cat <<\_ASBOX | 
 | 1346 | ## ----------- ## | 
 | 1347 | ## confdefs.h. ## | 
 | 1348 | ## ----------- ## | 
 | 1349 | _ASBOX | 
 | 1350 |       echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1351 |       sed "/^$/d" confdefs.h | sort | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1352 |       echo | 
 | 1353 |     fi | 
 | 1354 |     test "$ac_signal" != 0 && | 
 | 1355 |       echo "$as_me: caught signal $ac_signal" | 
 | 1356 |     echo "$as_me: exit $exit_status" | 
 | 1357 |   } >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1358 |   rm -f core *.core && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1359 |   rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
 | 1360 |     exit $exit_status | 
 | 1361 |      ' 0 | 
 | 1362 | for ac_signal in 1 2 13 15; do | 
 | 1363 |   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
 | 1364 | done | 
 | 1365 | ac_signal=0 | 
 | 1366 |  | 
 | 1367 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 1368 | rm -rf conftest* confdefs.h | 
 | 1369 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 1370 | echo >confdefs.h | 
 | 1371 |  | 
 | 1372 | # Predefined preprocessor variables. | 
 | 1373 |  | 
 | 1374 | cat >>confdefs.h <<_ACEOF | 
 | 1375 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 1376 | _ACEOF | 
 | 1377 |  | 
 | 1378 |  | 
 | 1379 | cat >>confdefs.h <<_ACEOF | 
 | 1380 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 1381 | _ACEOF | 
 | 1382 |  | 
 | 1383 |  | 
 | 1384 | cat >>confdefs.h <<_ACEOF | 
 | 1385 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 1386 | _ACEOF | 
 | 1387 |  | 
 | 1388 |  | 
 | 1389 | cat >>confdefs.h <<_ACEOF | 
 | 1390 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 1391 | _ACEOF | 
 | 1392 |  | 
 | 1393 |  | 
 | 1394 | cat >>confdefs.h <<_ACEOF | 
 | 1395 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 1396 | _ACEOF | 
 | 1397 |  | 
 | 1398 |  | 
 | 1399 | # Let the site file select an alternate cache file if it wants to. | 
 | 1400 | # Prefer explicitly selected file to automatically selected ones. | 
 | 1401 | if test -z "$CONFIG_SITE"; then | 
 | 1402 |   if test "x$prefix" != xNONE; then | 
 | 1403 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 1404 |   else | 
 | 1405 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 1406 |   fi | 
 | 1407 | fi | 
 | 1408 | for ac_site_file in $CONFIG_SITE; do | 
 | 1409 |   if test -r "$ac_site_file"; then | 
 | 1410 |     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
 | 1411 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
 | 1412 |     sed 's/^/| /' "$ac_site_file" >&5 | 
 | 1413 |     . "$ac_site_file" | 
 | 1414 |   fi | 
 | 1415 | done | 
 | 1416 |  | 
 | 1417 | if test -r "$cache_file"; then | 
 | 1418 |   # Some versions of bash will fail to source /dev/null (special | 
 | 1419 |   # files actually), so we avoid doing that. | 
 | 1420 |   if test -f "$cache_file"; then | 
 | 1421 |     { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
 | 1422 | echo "$as_me: loading cache $cache_file" >&6;} | 
 | 1423 |     case $cache_file in | 
 | 1424 |       [\\/]* | ?:[\\/]* ) . $cache_file;; | 
 | 1425 |       *)                      . ./$cache_file;; | 
 | 1426 |     esac | 
 | 1427 |   fi | 
 | 1428 | else | 
 | 1429 |   { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
 | 1430 | echo "$as_me: creating cache $cache_file" >&6;} | 
 | 1431 |   >$cache_file | 
 | 1432 | fi | 
 | 1433 |  | 
 | 1434 | # Check that the precious variables saved in the cache have kept the same | 
 | 1435 | # value. | 
 | 1436 | ac_cache_corrupted=false | 
 | 1437 | for ac_var in `(set) 2>&1 | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1438 | 	       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] | 1439 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 1440 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
 | 1441 |   eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
 | 1442 |   eval ac_new_val="\$ac_env_${ac_var}_value" | 
 | 1443 |   case $ac_old_set,$ac_new_set in | 
 | 1444 |     set,) | 
 | 1445 |       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 1446 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
 | 1447 |       ac_cache_corrupted=: ;; | 
 | 1448 |     ,set) | 
 | 1449 |       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 1450 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
 | 1451 |       ac_cache_corrupted=: ;; | 
 | 1452 |     ,);; | 
 | 1453 |     *) | 
 | 1454 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1455 | 	{ 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] | 1456 | 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] | 1457 | 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1458 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1459 | 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1460 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1461 | 	ac_cache_corrupted=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1462 |       fi;; | 
 | 1463 |   esac | 
 | 1464 |   # Pass precious variables to config.status. | 
 | 1465 |   if test "$ac_new_set" = set; then | 
 | 1466 |     case $ac_new_val in | 
 | 1467 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1468 |       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1469 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 1470 |     esac | 
 | 1471 |     case " $ac_configure_args " in | 
 | 1472 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
 | 1473 |       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 1474 |     esac | 
 | 1475 |   fi | 
 | 1476 | done | 
 | 1477 | if $ac_cache_corrupted; then | 
 | 1478 |   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
 | 1479 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
 | 1480 |   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
 | 1481 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
 | 1482 |    { (exit 1); exit 1; }; } | 
 | 1483 | fi | 
 | 1484 |  | 
 | 1485 | ac_ext=c | 
 | 1486 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 1490 |  | 
 | 1491 |  | 
 | 1492 |  | 
 | 1493 |  | 
 | 1494 |  | 
 | 1495 |  | 
 | 1496 |  | 
 | 1497 |  | 
 | 1498 |  | 
 | 1499 |  | 
 | 1500 |  | 
 | 1501 |  | 
 | 1502 |  | 
 | 1503 |  | 
 | 1504 |  | 
 | 1505 |  | 
 | 1506 |  | 
 | 1507 |  | 
 | 1508 |  | 
 | 1509 |  | 
 | 1510 |  | 
 | 1511 |  | 
 | 1512 |  | 
 | 1513 |  | 
 | 1514 |  | 
 | 1515 |  | 
 | 1516 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1517 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1518 | ac_aux_dir= | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1519 | for ac_dir in autoconf $srcdir/autoconf; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1520 |   if test -f $ac_dir/install-sh; then | 
 | 1521 |     ac_aux_dir=$ac_dir | 
 | 1522 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 1523 |     break | 
 | 1524 |   elif test -f $ac_dir/install.sh; then | 
 | 1525 |     ac_aux_dir=$ac_dir | 
 | 1526 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 1527 |     break | 
 | 1528 |   elif test -f $ac_dir/shtool; then | 
 | 1529 |     ac_aux_dir=$ac_dir | 
 | 1530 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 1531 |     break | 
 | 1532 |   fi | 
 | 1533 | done | 
 | 1534 | if test -z "$ac_aux_dir"; then | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1535 |   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 | 
 | 1536 | 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] | 1537 |    { (exit 1); exit 1; }; } | 
 | 1538 | fi | 
 | 1539 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
 | 1540 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
 | 1541 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
 | 1542 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1543 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1544 |  | 
 | 1545 | if test ${srcdir} != "." ; then | 
 | 1546 | 	if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1547 | 		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1548 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
 | 1549 |    { (exit 1); exit 1; }; } | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1550 | 	fi | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1551 | fi | 
 | 1552 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1553 | for i in `ls ${srcdir}/projects` | 
 | 1554 | do | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1555 |   if test -d ${srcdir}/projects/${i} ; then | 
 | 1556 |     case ${i} in | 
 | 1557 |       "CVS") ;; | 
 | 1558 |       "sample") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1559 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1560 | subdirs="$subdirs projects/sample" | 
 | 1561 |     ;; | 
 | 1562 |       "Stacker") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1563 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1564 | subdirs="$subdirs projects/Stacker" | 
 | 1565 |    ;; | 
 | 1566 |       "llvm-test") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1567 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1568 | subdirs="$subdirs projects/llvm-test" | 
 | 1569 |  ;; | 
 | 1570 |       "llvm-reopt") | 
 | 1571 |  | 
 | 1572 | subdirs="$subdirs projects/llvm-reopt" | 
 | 1573 | ;; | 
 | 1574 |       "llvm-gcc") | 
 | 1575 |  | 
 | 1576 | subdirs="$subdirs projects/llvm-gcc" | 
 | 1577 |   ;; | 
| Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1578 |       "Java") | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1579 |  | 
| Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1580 | subdirs="$subdirs projects/Java" | 
 | 1581 |       ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1582 |       "llvm-tv") | 
 | 1583 |  | 
 | 1584 | subdirs="$subdirs projects/llvm-tv" | 
 | 1585 |    ;; | 
 | 1586 |       "llvm-fefw") | 
 | 1587 |  | 
 | 1588 | subdirs="$subdirs projects/llvm-fefw" | 
 | 1589 |  ;; | 
 | 1590 |       *) | 
| Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame^] | 1591 |         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
 | 1592 | 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] | 1593 |         ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1594 |     esac | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1595 |   fi | 
 | 1596 | done | 
| John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1597 |  | 
| Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 1598 |           ac_config_headers="$ac_config_headers include/llvm/Config/config.h" | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1599 |  | 
| John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 1600 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 1601 |           ac_config_files="$ac_config_files Makefile.config" | 
| John Criswell | 5fbb1f8 | 2004-09-24 13:28:51 +0000 | [diff] [blame] | 1602 |  | 
 | 1603 |           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
| John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 1604 |  | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 1605 |           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" | 
 | 1606 |  | 
 | 1607 |           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" | 
 | 1608 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 1609 |           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h" | 
 | 1610 |  | 
 | 1611 |           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" | 
 | 1612 |  | 
| John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 1613 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1614 |           ac_config_commands="$ac_config_commands Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1615 |  | 
 | 1616 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1617 |           ac_config_commands="$ac_config_commands Makefile.common" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1618 |  | 
 | 1619 |  | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 1620 |           ac_config_commands="$ac_config_commands examples/Makefile" | 
 | 1621 |  | 
 | 1622 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1623 |           ac_config_commands="$ac_config_commands lib/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1624 |  | 
 | 1625 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1626 |           ac_config_commands="$ac_config_commands runtime/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1627 |  | 
 | 1628 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1629 |           ac_config_commands="$ac_config_commands test/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1630 |  | 
 | 1631 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1632 |           ac_config_commands="$ac_config_commands test/Makefile.tests" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1633 |  | 
 | 1634 |  | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 1635 |           ac_config_commands="$ac_config_commands test/QMTest/llvm.py" | 
 | 1636 |  | 
 | 1637 |  | 
 | 1638 |           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" | 
| John Criswell | 08acb9b | 2003-09-16 02:12:45 +0000 | [diff] [blame] | 1639 |  | 
 | 1640 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1641 |           ac_config_commands="$ac_config_commands tools/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1642 |  | 
 | 1643 |  | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 1644 |           ac_config_commands="$ac_config_commands utils/Makefile" | 
 | 1645 |  | 
 | 1646 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1647 |           ac_config_commands="$ac_config_commands projects/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1648 |  | 
 | 1649 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1650 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1651 | # Find a good install program.  We prefer a C program (faster), | 
 | 1652 | # so one script is as good as another.  But avoid the broken or | 
 | 1653 | # incompatible versions: | 
 | 1654 | # SysV /etc/install, /usr/sbin/install | 
 | 1655 | # SunOS /usr/etc/install | 
 | 1656 | # IRIX /sbin/install | 
 | 1657 | # AIX /bin/install | 
 | 1658 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 1659 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 1660 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 1661 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1662 | # OS/2's system install, which has a completely different semantic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1663 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 1664 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
 | 1665 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
 | 1666 | if test -z "$INSTALL"; then | 
 | 1667 | if test "${ac_cv_path_install+set}" = set; then | 
 | 1668 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1669 | else | 
 | 1670 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1671 | for as_dir in $PATH | 
 | 1672 | do | 
 | 1673 |   IFS=$as_save_IFS | 
 | 1674 |   test -z "$as_dir" && as_dir=. | 
 | 1675 |   # Account for people who put trailing slashes in PATH elements. | 
 | 1676 | case $as_dir/ in | 
 | 1677 |   ./ | .// | /cC/* | \ | 
 | 1678 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1679 |   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1680 |   /usr/ucb/* ) ;; | 
 | 1681 |   *) | 
 | 1682 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 1683 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 1684 |     # by default. | 
 | 1685 |     for ac_prog in ginstall scoinst install; do | 
 | 1686 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1687 | 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
 | 1688 | 	  if test $ac_prog = install && | 
 | 1689 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 1690 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 1691 | 	    : | 
 | 1692 | 	  elif test $ac_prog = install && | 
 | 1693 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 1694 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 1695 | 	    : | 
 | 1696 | 	  else | 
 | 1697 | 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 1698 | 	    break 3 | 
 | 1699 | 	  fi | 
 | 1700 | 	fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1701 |       done | 
 | 1702 |     done | 
 | 1703 |     ;; | 
 | 1704 | esac | 
 | 1705 | done | 
 | 1706 |  | 
 | 1707 |  | 
 | 1708 | fi | 
 | 1709 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 1710 |     INSTALL=$ac_cv_path_install | 
 | 1711 |   else | 
 | 1712 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 1713 |     # path for INSTALL within a source directory, because that will | 
 | 1714 |     # break other packages using the cache if that directory is | 
 | 1715 |     # removed, or if the path is relative. | 
 | 1716 |     INSTALL=$ac_install_sh | 
 | 1717 |   fi | 
 | 1718 | fi | 
 | 1719 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
 | 1720 | echo "${ECHO_T}$INSTALL" >&6 | 
 | 1721 |  | 
 | 1722 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 1723 | # It thinks the first close brace ends the variable substitution. | 
 | 1724 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 1725 |  | 
 | 1726 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 1727 |  | 
 | 1728 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 1729 |  | 
 | 1730 |  | 
 | 1731 | # Make sure we can run config.sub. | 
 | 1732 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
 | 1733 |   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
 | 1734 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
 | 1735 |    { (exit 1); exit 1; }; } | 
 | 1736 |  | 
 | 1737 | echo "$as_me:$LINENO: checking build system type" >&5 | 
 | 1738 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
 | 1739 | if test "${ac_cv_build+set}" = set; then | 
 | 1740 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1741 | else | 
 | 1742 |   ac_cv_build_alias=$build_alias | 
 | 1743 | test -z "$ac_cv_build_alias" && | 
 | 1744 |   ac_cv_build_alias=`$ac_config_guess` | 
 | 1745 | test -z "$ac_cv_build_alias" && | 
 | 1746 |   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
 | 1747 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
 | 1748 |    { (exit 1); exit 1; }; } | 
 | 1749 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
 | 1750 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
 | 1751 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
 | 1752 |    { (exit 1); exit 1; }; } | 
 | 1753 |  | 
 | 1754 | fi | 
 | 1755 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
 | 1756 | echo "${ECHO_T}$ac_cv_build" >&6 | 
 | 1757 | build=$ac_cv_build | 
 | 1758 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1759 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1760 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1761 |  | 
 | 1762 |  | 
 | 1763 | echo "$as_me:$LINENO: checking host system type" >&5 | 
 | 1764 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
 | 1765 | if test "${ac_cv_host+set}" = set; then | 
 | 1766 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1767 | else | 
 | 1768 |   ac_cv_host_alias=$host_alias | 
 | 1769 | test -z "$ac_cv_host_alias" && | 
 | 1770 |   ac_cv_host_alias=$ac_cv_build_alias | 
 | 1771 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
 | 1772 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
 | 1773 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
 | 1774 |    { (exit 1); exit 1; }; } | 
 | 1775 |  | 
 | 1776 | fi | 
 | 1777 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
 | 1778 | echo "${ECHO_T}$ac_cv_host" >&6 | 
 | 1779 | host=$ac_cv_host | 
 | 1780 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1781 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1782 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1783 |  | 
 | 1784 |  | 
 | 1785 | echo "$as_me:$LINENO: checking target system type" >&5 | 
 | 1786 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | 
 | 1787 | if test "${ac_cv_target+set}" = set; then | 
 | 1788 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1789 | else | 
 | 1790 |   ac_cv_target_alias=$target_alias | 
 | 1791 | test "x$ac_cv_target_alias" = "x" && | 
 | 1792 |   ac_cv_target_alias=$ac_cv_host_alias | 
 | 1793 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | 
 | 1794 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | 
 | 1795 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | 
 | 1796 |    { (exit 1); exit 1; }; } | 
 | 1797 |  | 
 | 1798 | fi | 
 | 1799 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
 | 1800 | echo "${ECHO_T}$ac_cv_target" >&6 | 
 | 1801 | target=$ac_cv_target | 
 | 1802 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1803 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1804 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1805 |  | 
 | 1806 |  | 
 | 1807 | # The aliases save the names the user supplied, while $host etc. | 
 | 1808 | # will get canonicalized. | 
 | 1809 | test -n "$target_alias" && | 
 | 1810 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 1811 |     NONENONEs,x,x, && | 
 | 1812 |   program_prefix=${target_alias}- | 
 | 1813 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1814 |  | 
 | 1815 | echo "$as_me:$LINENO: checking support for generic build operating system" >&5 | 
 | 1816 | echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | case $build in | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1818 | 	*-*-aix*) | 
 | 1819 |              OS=AIX | 
 | 1820 |  | 
 | 1821 |              platform_type="AIX" | 
 | 1822 |              ;; | 
 | 1823 | 	*-*-cygwin*) | 
 | 1824 |              OS=Cygwin | 
 | 1825 |  | 
 | 1826 |              platform_type="Cygwin" | 
 | 1827 |              ;; | 
 | 1828 | 	*-*-darwin*) | 
 | 1829 |              OS=Darwin | 
 | 1830 |  | 
 | 1831 |              platform_type="Darwin" | 
 | 1832 |              ;; | 
 | 1833 |         *-*-freebsd*) | 
 | 1834 |              OS=Linux | 
 | 1835 |  | 
| Reid Spencer | a11e4db | 2004-08-31 18:03:23 +0000 | [diff] [blame] | 1836 |              platform_type="FreeBSD" | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1837 |              ;; | 
 | 1838 |         *-*-interix*) | 
 | 1839 |              OS=SunOS | 
 | 1840 |  | 
| Reid Spencer | a11e4db | 2004-08-31 18:03:23 +0000 | [diff] [blame] | 1841 |              platform_type="Interix" | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1842 |              ;; | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1843 | 	*-*-linux*) | 
 | 1844 |              OS=Linux | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1845 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1846 |              platform_type="Linux" | 
 | 1847 |              if test -d /home/vadve/lattner/local/x86/llvm-gcc | 
 | 1848 | 	     then | 
 | 1849 | 	       LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1850 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1851 |              fi | 
 | 1852 |              ;; | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1853 | 	*-*-solaris*) | 
 | 1854 |              OS=SunOS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1855 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1856 |              platform_type="SunOS" | 
 | 1857 |              if test -d /home/vadve/lattner/local/sparc/llvm-gcc | 
 | 1858 |              then | 
 | 1859 |                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1860 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1861 |              fi | 
 | 1862 |              ;; | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1863 |         *-*-win32*) | 
 | 1864 |              OS=Win32 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1865 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1866 |              platform_type="Win32" | 
 | 1867 | 	     ;; | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 1868 |         *-*-mingw*) | 
 | 1869 |              OS=Win32 | 
 | 1870 |  | 
 | 1871 |              platform_type="Win32" | 
 | 1872 | 	     ;; | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1873 | 	*) | 
 | 1874 |              OS=Unknown | 
 | 1875 |  | 
 | 1876 |              platform_type="Unknown" | 
 | 1877 | 	     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1878 | esac | 
 | 1879 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1880 | if test "$platform_type" = "Unknown" ; then | 
| Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1881 |   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5 | 
 | 1882 | echo "$as_me: error: Platform is unknown, configure can't continue" >&2;} | 
 | 1883 |    { (exit 1); exit 1; }; } | 
 | 1884 | fi | 
 | 1885 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1886 |           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type" | 
 | 1887 |  | 
 | 1888 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1889 |  | 
 | 1890 | echo "$as_me:$LINENO: checking target architecture" >&5 | 
 | 1891 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1892 | case $target in | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1893 | 	sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1894 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1895 | 	                    ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1896 | esac | 
 | 1897 |  | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1898 | case $target in | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1899 | 	i*86-*) | 
 | 1900 |           ARCH="x86" | 
 | 1901 |           ARCH=x86 | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1902 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1903 | 	  ;; | 
 | 1904 | 	sparc*-*) | 
 | 1905 |           ARCH="Sparc" | 
 | 1906 |           ARCH=Sparc | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1907 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1908 | 	  ;; | 
 | 1909 | 	powerpc*-*) | 
 | 1910 |           ARCH="PowerPC" | 
 | 1911 |           ARCH=PowerPC | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1912 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1913 | 	  ;; | 
 | 1914 | 	*) | 
 | 1915 |           ARCH="Unknown" | 
 | 1916 |           ARCH=Unknown | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1917 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1918 | 	  ;; | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1919 | esac | 
 | 1920 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1921 | echo "$as_me:$LINENO: result: $ARCH" >&5 | 
 | 1922 | echo "${ECHO_T}$ARCH" >&6 | 
 | 1923 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1924 | ac_ext=cc | 
 | 1925 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 1926 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1927 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1928 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 1929 | if test -n "$ac_tool_prefix"; then | 
 | 1930 |   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | 
 | 1931 |   do | 
 | 1932 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 1933 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 1934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1936 | if test "${ac_cv_prog_CXX+set}" = set; then | 
 | 1937 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1938 | else | 
 | 1939 |   if test -n "$CXX"; then | 
 | 1940 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 1941 | else | 
 | 1942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1943 | for as_dir in $PATH | 
 | 1944 | do | 
 | 1945 |   IFS=$as_save_IFS | 
 | 1946 |   test -z "$as_dir" && as_dir=. | 
 | 1947 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1948 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1949 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
 | 1950 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1951 |     break 2 | 
 | 1952 |   fi | 
 | 1953 | done | 
 | 1954 | done | 
 | 1955 |  | 
 | 1956 | fi | 
 | 1957 | fi | 
 | 1958 | CXX=$ac_cv_prog_CXX | 
 | 1959 | if test -n "$CXX"; then | 
 | 1960 |   echo "$as_me:$LINENO: result: $CXX" >&5 | 
 | 1961 | echo "${ECHO_T}$CXX" >&6 | 
 | 1962 | else | 
 | 1963 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1964 | echo "${ECHO_T}no" >&6 | 
 | 1965 | fi | 
 | 1966 |  | 
 | 1967 |     test -n "$CXX" && break | 
 | 1968 |   done | 
 | 1969 | fi | 
 | 1970 | if test -z "$CXX"; then | 
 | 1971 |   ac_ct_CXX=$CXX | 
 | 1972 |   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | 
 | 1973 | do | 
 | 1974 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 1975 | set dummy $ac_prog; ac_word=$2 | 
 | 1976 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1978 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
 | 1979 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1980 | else | 
 | 1981 |   if test -n "$ac_ct_CXX"; then | 
 | 1982 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 1983 | else | 
 | 1984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1985 | for as_dir in $PATH | 
 | 1986 | do | 
 | 1987 |   IFS=$as_save_IFS | 
 | 1988 |   test -z "$as_dir" && as_dir=. | 
 | 1989 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1990 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1991 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 1992 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1993 |     break 2 | 
 | 1994 |   fi | 
 | 1995 | done | 
 | 1996 | done | 
 | 1997 |  | 
 | 1998 | fi | 
 | 1999 | fi | 
 | 2000 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 2001 | if test -n "$ac_ct_CXX"; then | 
 | 2002 |   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
 | 2003 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
 | 2004 | else | 
 | 2005 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2006 | echo "${ECHO_T}no" >&6 | 
 | 2007 | fi | 
 | 2008 |  | 
 | 2009 |   test -n "$ac_ct_CXX" && break | 
 | 2010 | done | 
 | 2011 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
 | 2012 |  | 
 | 2013 |   CXX=$ac_ct_CXX | 
 | 2014 | fi | 
 | 2015 |  | 
 | 2016 |  | 
 | 2017 | # Provide some information about the compiler. | 
 | 2018 | echo "$as_me:$LINENO:" \ | 
 | 2019 |      "checking for C++ compiler version" >&5 | 
 | 2020 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 2021 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 2022 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 2023 |   ac_status=$? | 
 | 2024 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2025 |   (exit $ac_status); } | 
 | 2026 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 2027 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 2028 |   ac_status=$? | 
 | 2029 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2030 |   (exit $ac_status); } | 
 | 2031 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 2032 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 2033 |   ac_status=$? | 
 | 2034 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2035 |   (exit $ac_status); } | 
 | 2036 |  | 
 | 2037 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2038 | /* confdefs.h.  */ | 
 | 2039 | _ACEOF | 
 | 2040 | cat confdefs.h >>conftest.$ac_ext | 
 | 2041 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2042 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2043 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | int | 
 | 2045 | main () | 
 | 2046 | { | 
 | 2047 |  | 
 | 2048 |   ; | 
 | 2049 |   return 0; | 
 | 2050 | } | 
 | 2051 | _ACEOF | 
 | 2052 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2053 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2054 | # Try to create an executable without -o first, disregard a.out. | 
 | 2055 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 2056 | # of exeext. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2057 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 | 
 | 2058 | 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] | 2059 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 2060 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
 | 2061 |   (eval $ac_link_default) 2>&5 | 
 | 2062 |   ac_status=$? | 
 | 2063 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2064 |   (exit $ac_status); }; then | 
 | 2065 |   # Find the output, starting from the most likely.  This scheme is | 
 | 2066 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
 | 2067 | # resort. | 
 | 2068 |  | 
 | 2069 | # Be careful to initialize this variable, since it used to be cached. | 
 | 2070 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
 | 2071 | ac_cv_exeext= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2072 | # b.out is created by i960 compilers. | 
 | 2073 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
 | 2074 | do | 
 | 2075 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2076 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2077 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2078 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2079 |     conftest.$ac_ext ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2080 | 	# This is the source file. | 
 | 2081 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2082 |     [ab].out ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2083 | 	# We found the default executable, but exeext='' is most | 
 | 2084 | 	# certainly right. | 
 | 2085 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2086 |     *.* ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2087 | 	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 2088 | 	# FIXME: I believe we export ac_cv_exeext for Libtool, | 
 | 2089 | 	# but it would be cool to find out if it's true.  Does anybody | 
 | 2090 | 	# maintain Libtool? --akim. | 
 | 2091 | 	export ac_cv_exeext | 
 | 2092 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2093 |     * ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2094 | 	break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2095 |   esac | 
 | 2096 | done | 
 | 2097 | else | 
 | 2098 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2099 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2100 |  | 
 | 2101 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables | 
 | 2102 | See \`config.log' for more details." >&5 | 
 | 2103 | echo "$as_me: error: C++ compiler cannot create executables | 
 | 2104 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2105 |    { (exit 77); exit 77; }; } | 
 | 2106 | fi | 
 | 2107 |  | 
 | 2108 | ac_exeext=$ac_cv_exeext | 
 | 2109 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
 | 2110 | echo "${ECHO_T}$ac_file" >&6 | 
 | 2111 |  | 
 | 2112 | # Check the compiler produces executables we can run.  If not, either | 
 | 2113 | # the compiler is broken, or we cross compile. | 
 | 2114 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 | 
 | 2115 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 | 
 | 2116 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
 | 2117 | # If not cross compiling, check that we can run a simple program. | 
 | 2118 | if test "$cross_compiling" != yes; then | 
 | 2119 |   if { ac_try='./$ac_file' | 
 | 2120 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2121 |   (eval $ac_try) 2>&5 | 
 | 2122 |   ac_status=$? | 
 | 2123 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2124 |   (exit $ac_status); }; }; then | 
 | 2125 |     cross_compiling=no | 
 | 2126 |   else | 
 | 2127 |     if test "$cross_compiling" = maybe; then | 
 | 2128 | 	cross_compiling=yes | 
 | 2129 |     else | 
 | 2130 | 	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2131 | If you meant to cross compile, use \`--host'. | 
 | 2132 | See \`config.log' for more details." >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2133 | echo "$as_me: error: cannot run C++ compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2134 | If you meant to cross compile, use \`--host'. | 
 | 2135 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2136 |    { (exit 1); exit 1; }; } | 
 | 2137 |     fi | 
 | 2138 |   fi | 
 | 2139 | fi | 
 | 2140 | echo "$as_me:$LINENO: result: yes" >&5 | 
 | 2141 | echo "${ECHO_T}yes" >&6 | 
 | 2142 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2143 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2144 | ac_clean_files=$ac_clean_files_save | 
 | 2145 | # Check the compiler produces executables we can run.  If not, either | 
 | 2146 | # the compiler is broken, or we cross compile. | 
 | 2147 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
 | 2148 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
 | 2149 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
 | 2150 | echo "${ECHO_T}$cross_compiling" >&6 | 
 | 2151 |  | 
 | 2152 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
 | 2153 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
 | 2154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 2155 |   (eval $ac_link) 2>&5 | 
 | 2156 |   ac_status=$? | 
 | 2157 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2158 |   (exit $ac_status); }; then | 
 | 2159 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 2160 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 2161 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 2162 | # `rm'. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2163 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 2164 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2165 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2166 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2167 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2168 | 	  export ac_cv_exeext | 
 | 2169 | 	  break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2170 |     * ) break;; | 
 | 2171 |   esac | 
 | 2172 | done | 
 | 2173 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2174 |   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
 | 2175 | See \`config.log' for more details." >&5 | 
 | 2176 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
 | 2177 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2178 |    { (exit 1); exit 1; }; } | 
 | 2179 | fi | 
 | 2180 |  | 
 | 2181 | rm -f conftest$ac_cv_exeext | 
 | 2182 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
 | 2183 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
 | 2184 |  | 
 | 2185 | rm -f conftest.$ac_ext | 
 | 2186 | EXEEXT=$ac_cv_exeext | 
 | 2187 | ac_exeext=$EXEEXT | 
 | 2188 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
 | 2189 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
 | 2190 | if test "${ac_cv_objext+set}" = set; then | 
 | 2191 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2192 | else | 
 | 2193 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2194 | /* confdefs.h.  */ | 
 | 2195 | _ACEOF | 
 | 2196 | cat confdefs.h >>conftest.$ac_ext | 
 | 2197 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2198 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2199 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2200 | int | 
 | 2201 | main () | 
 | 2202 | { | 
 | 2203 |  | 
 | 2204 |   ; | 
 | 2205 |   return 0; | 
 | 2206 | } | 
 | 2207 | _ACEOF | 
 | 2208 | rm -f conftest.o conftest.obj | 
 | 2209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2210 |   (eval $ac_compile) 2>&5 | 
 | 2211 |   ac_status=$? | 
 | 2212 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2213 |   (exit $ac_status); }; then | 
 | 2214 |   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
 | 2215 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2216 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2217 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 2218 |        break;; | 
 | 2219 |   esac | 
 | 2220 | done | 
 | 2221 | else | 
 | 2222 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2223 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2224 |  | 
 | 2225 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
 | 2226 | See \`config.log' for more details." >&5 | 
 | 2227 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
 | 2228 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2229 |    { (exit 1); exit 1; }; } | 
 | 2230 | fi | 
 | 2231 |  | 
 | 2232 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 2233 | fi | 
 | 2234 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
 | 2235 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
 | 2236 | OBJEXT=$ac_cv_objext | 
 | 2237 | ac_objext=$OBJEXT | 
 | 2238 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
 | 2239 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
 | 2240 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
 | 2241 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2242 | else | 
 | 2243 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2244 | /* confdefs.h.  */ | 
 | 2245 | _ACEOF | 
 | 2246 | cat confdefs.h >>conftest.$ac_ext | 
 | 2247 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2248 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2249 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2250 | int | 
 | 2251 | main () | 
 | 2252 | { | 
 | 2253 | #ifndef __GNUC__ | 
 | 2254 |        choke me | 
 | 2255 | #endif | 
 | 2256 |  | 
 | 2257 |   ; | 
 | 2258 |   return 0; | 
 | 2259 | } | 
 | 2260 | _ACEOF | 
 | 2261 | rm -f conftest.$ac_objext | 
 | 2262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2263 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2264 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2265 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2266 |   rm -f conftest.er1 | 
 | 2267 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2268 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2269 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2270 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 2271 | 			 || test ! -s conftest.err' | 
 | 2272 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2273 |   (eval $ac_try) 2>&5 | 
 | 2274 |   ac_status=$? | 
 | 2275 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2276 |   (exit $ac_status); }; } && | 
 | 2277 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2278 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2279 |   (eval $ac_try) 2>&5 | 
 | 2280 |   ac_status=$? | 
 | 2281 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2282 |   (exit $ac_status); }; }; then | 
 | 2283 |   ac_compiler_gnu=yes | 
 | 2284 | else | 
 | 2285 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2286 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2287 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2288 | ac_compiler_gnu=no | 
 | 2289 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2291 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
 | 2292 |  | 
 | 2293 | fi | 
 | 2294 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
 | 2295 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
 | 2296 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
 | 2297 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
 | 2298 | ac_save_CXXFLAGS=$CXXFLAGS | 
 | 2299 | CXXFLAGS="-g" | 
 | 2300 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
 | 2301 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
 | 2302 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
 | 2303 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2304 | else | 
 | 2305 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2306 | /* confdefs.h.  */ | 
 | 2307 | _ACEOF | 
 | 2308 | cat confdefs.h >>conftest.$ac_ext | 
 | 2309 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2310 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2311 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2312 | int | 
 | 2313 | main () | 
 | 2314 | { | 
 | 2315 |  | 
 | 2316 |   ; | 
 | 2317 |   return 0; | 
 | 2318 | } | 
 | 2319 | _ACEOF | 
 | 2320 | rm -f conftest.$ac_objext | 
 | 2321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2322 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2323 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2324 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2325 |   rm -f conftest.er1 | 
 | 2326 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2327 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2328 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2329 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 2330 | 			 || test ! -s conftest.err' | 
 | 2331 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2332 |   (eval $ac_try) 2>&5 | 
 | 2333 |   ac_status=$? | 
 | 2334 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2335 |   (exit $ac_status); }; } && | 
 | 2336 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2337 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2338 |   (eval $ac_try) 2>&5 | 
 | 2339 |   ac_status=$? | 
 | 2340 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2341 |   (exit $ac_status); }; }; then | 
 | 2342 |   ac_cv_prog_cxx_g=yes | 
 | 2343 | else | 
 | 2344 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2345 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2346 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2347 | ac_cv_prog_cxx_g=no | 
 | 2348 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 | fi | 
 | 2351 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
 | 2352 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
 | 2353 | if test "$ac_test_CXXFLAGS" = set; then | 
 | 2354 |   CXXFLAGS=$ac_save_CXXFLAGS | 
 | 2355 | elif test $ac_cv_prog_cxx_g = yes; then | 
 | 2356 |   if test "$GXX" = yes; then | 
 | 2357 |     CXXFLAGS="-g -O2" | 
 | 2358 |   else | 
 | 2359 |     CXXFLAGS="-g" | 
 | 2360 |   fi | 
 | 2361 | else | 
 | 2362 |   if test "$GXX" = yes; then | 
 | 2363 |     CXXFLAGS="-O2" | 
 | 2364 |   else | 
 | 2365 |     CXXFLAGS= | 
 | 2366 |   fi | 
 | 2367 | fi | 
 | 2368 | for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2369 |    '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2370 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 2371 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 2372 |    'extern "C" void exit (int) throw ();' \ | 
 | 2373 |    'extern "C" void exit (int);' \ | 
 | 2374 |    'void exit (int);' | 
 | 2375 | do | 
 | 2376 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2377 | /* confdefs.h.  */ | 
 | 2378 | _ACEOF | 
 | 2379 | cat confdefs.h >>conftest.$ac_ext | 
 | 2380 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2381 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2382 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2383 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2384 | int | 
 | 2385 | main () | 
 | 2386 | { | 
 | 2387 | exit (42); | 
 | 2388 |   ; | 
 | 2389 |   return 0; | 
 | 2390 | } | 
 | 2391 | _ACEOF | 
 | 2392 | rm -f conftest.$ac_objext | 
 | 2393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2394 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2395 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2396 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2397 |   rm -f conftest.er1 | 
 | 2398 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2399 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2400 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2401 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 2402 | 			 || test ! -s conftest.err' | 
 | 2403 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2404 |   (eval $ac_try) 2>&5 | 
 | 2405 |   ac_status=$? | 
 | 2406 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2407 |   (exit $ac_status); }; } && | 
 | 2408 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2409 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2410 |   (eval $ac_try) 2>&5 | 
 | 2411 |   ac_status=$? | 
 | 2412 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2413 |   (exit $ac_status); }; }; then | 
 | 2414 |   : | 
 | 2415 | else | 
 | 2416 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2417 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2418 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2419 | continue | 
 | 2420 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2422 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2423 | /* confdefs.h.  */ | 
 | 2424 | _ACEOF | 
 | 2425 | cat confdefs.h >>conftest.$ac_ext | 
 | 2426 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2427 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2428 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2429 | int | 
 | 2430 | main () | 
 | 2431 | { | 
 | 2432 | exit (42); | 
 | 2433 |   ; | 
 | 2434 |   return 0; | 
 | 2435 | } | 
 | 2436 | _ACEOF | 
 | 2437 | rm -f conftest.$ac_objext | 
 | 2438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2439 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2440 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2441 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2442 |   rm -f conftest.er1 | 
 | 2443 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2444 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2445 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2446 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 2447 | 			 || test ! -s conftest.err' | 
 | 2448 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2449 |   (eval $ac_try) 2>&5 | 
 | 2450 |   ac_status=$? | 
 | 2451 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2452 |   (exit $ac_status); }; } && | 
 | 2453 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2454 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2455 |   (eval $ac_try) 2>&5 | 
 | 2456 |   ac_status=$? | 
 | 2457 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2458 |   (exit $ac_status); }; }; then | 
 | 2459 |   break | 
 | 2460 | else | 
 | 2461 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2462 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2463 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2464 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2466 | done | 
 | 2467 | rm -f conftest* | 
 | 2468 | if test -n "$ac_declaration"; then | 
 | 2469 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 2470 |   echo $ac_declaration      >>confdefs.h | 
 | 2471 |   echo '#endif'             >>confdefs.h | 
 | 2472 | fi | 
 | 2473 |  | 
 | 2474 | ac_ext=c | 
 | 2475 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2479 |  | 
 | 2480 | ac_ext=c | 
 | 2481 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2485 | if test -n "$ac_tool_prefix"; then | 
 | 2486 |   for ac_prog in gcc | 
 | 2487 |   do | 
 | 2488 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 2489 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 2490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 2492 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 2493 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2494 | else | 
 | 2495 |   if test -n "$CC"; then | 
 | 2496 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 2497 | else | 
 | 2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2499 | for as_dir in $PATH | 
 | 2500 | do | 
 | 2501 |   IFS=$as_save_IFS | 
 | 2502 |   test -z "$as_dir" && as_dir=. | 
 | 2503 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2504 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 2505 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
 | 2506 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2507 |     break 2 | 
 | 2508 |   fi | 
 | 2509 | done | 
 | 2510 | done | 
 | 2511 |  | 
 | 2512 | fi | 
 | 2513 | fi | 
 | 2514 | CC=$ac_cv_prog_CC | 
 | 2515 | if test -n "$CC"; then | 
 | 2516 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2517 | echo "${ECHO_T}$CC" >&6 | 
 | 2518 | else | 
 | 2519 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2520 | echo "${ECHO_T}no" >&6 | 
 | 2521 | fi | 
 | 2522 |  | 
 | 2523 |     test -n "$CC" && break | 
 | 2524 |   done | 
 | 2525 | fi | 
 | 2526 | if test -z "$CC"; then | 
 | 2527 |   ac_ct_CC=$CC | 
 | 2528 |   for ac_prog in gcc | 
 | 2529 | do | 
 | 2530 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 2531 | set dummy $ac_prog; ac_word=$2 | 
 | 2532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 2534 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 2535 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2536 | else | 
 | 2537 |   if test -n "$ac_ct_CC"; then | 
 | 2538 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 2539 | else | 
 | 2540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2541 | for as_dir in $PATH | 
 | 2542 | do | 
 | 2543 |   IFS=$as_save_IFS | 
 | 2544 |   test -z "$as_dir" && as_dir=. | 
 | 2545 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2546 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 2547 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
 | 2548 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2549 |     break 2 | 
 | 2550 |   fi | 
 | 2551 | done | 
 | 2552 | done | 
 | 2553 |  | 
 | 2554 | fi | 
 | 2555 | fi | 
 | 2556 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 2557 | if test -n "$ac_ct_CC"; then | 
 | 2558 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 2559 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 2560 | else | 
 | 2561 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2562 | echo "${ECHO_T}no" >&6 | 
 | 2563 | fi | 
 | 2564 |  | 
 | 2565 |   test -n "$ac_ct_CC" && break | 
 | 2566 | done | 
 | 2567 |  | 
 | 2568 |   CC=$ac_ct_CC | 
 | 2569 | fi | 
 | 2570 |  | 
 | 2571 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2572 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 2573 | See \`config.log' for more details." >&5 | 
 | 2574 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 2575 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2576 |    { (exit 1); exit 1; }; } | 
 | 2577 |  | 
 | 2578 | # Provide some information about the compiler. | 
 | 2579 | echo "$as_me:$LINENO:" \ | 
 | 2580 |      "checking for C compiler version" >&5 | 
 | 2581 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 2582 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 2583 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 2584 |   ac_status=$? | 
 | 2585 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2586 |   (exit $ac_status); } | 
 | 2587 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 2588 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 2589 |   ac_status=$? | 
 | 2590 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2591 |   (exit $ac_status); } | 
 | 2592 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 2593 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 2594 |   ac_status=$? | 
 | 2595 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2596 |   (exit $ac_status); } | 
 | 2597 |  | 
 | 2598 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 2599 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
 | 2600 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
 | 2601 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2602 | else | 
 | 2603 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2604 | /* confdefs.h.  */ | 
 | 2605 | _ACEOF | 
 | 2606 | cat confdefs.h >>conftest.$ac_ext | 
 | 2607 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2608 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2609 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2610 | int | 
 | 2611 | main () | 
 | 2612 | { | 
 | 2613 | #ifndef __GNUC__ | 
 | 2614 |        choke me | 
 | 2615 | #endif | 
 | 2616 |  | 
 | 2617 |   ; | 
 | 2618 |   return 0; | 
 | 2619 | } | 
 | 2620 | _ACEOF | 
 | 2621 | rm -f conftest.$ac_objext | 
 | 2622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2623 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2624 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2625 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2626 |   rm -f conftest.er1 | 
 | 2627 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2629 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2630 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2631 | 			 || test ! -s conftest.err' | 
 | 2632 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2633 |   (eval $ac_try) 2>&5 | 
 | 2634 |   ac_status=$? | 
 | 2635 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2636 |   (exit $ac_status); }; } && | 
 | 2637 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2638 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2639 |   (eval $ac_try) 2>&5 | 
 | 2640 |   ac_status=$? | 
 | 2641 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2642 |   (exit $ac_status); }; }; then | 
 | 2643 |   ac_compiler_gnu=yes | 
 | 2644 | else | 
 | 2645 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2646 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2647 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2648 | ac_compiler_gnu=no | 
 | 2649 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2651 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 2652 |  | 
 | 2653 | fi | 
 | 2654 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 2655 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
 | 2656 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 2657 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 2658 | ac_save_CFLAGS=$CFLAGS | 
 | 2659 | CFLAGS="-g" | 
 | 2660 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 2661 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
 | 2662 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
 | 2663 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2664 | else | 
 | 2665 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2666 | /* confdefs.h.  */ | 
 | 2667 | _ACEOF | 
 | 2668 | cat confdefs.h >>conftest.$ac_ext | 
 | 2669 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2670 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2671 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2672 | int | 
 | 2673 | main () | 
 | 2674 | { | 
 | 2675 |  | 
 | 2676 |   ; | 
 | 2677 |   return 0; | 
 | 2678 | } | 
 | 2679 | _ACEOF | 
 | 2680 | rm -f conftest.$ac_objext | 
 | 2681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2682 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2683 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2684 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2685 |   rm -f conftest.er1 | 
 | 2686 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2687 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2688 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2689 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2690 | 			 || test ! -s conftest.err' | 
 | 2691 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2692 |   (eval $ac_try) 2>&5 | 
 | 2693 |   ac_status=$? | 
 | 2694 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2695 |   (exit $ac_status); }; } && | 
 | 2696 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2697 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2698 |   (eval $ac_try) 2>&5 | 
 | 2699 |   ac_status=$? | 
 | 2700 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2701 |   (exit $ac_status); }; }; then | 
 | 2702 |   ac_cv_prog_cc_g=yes | 
 | 2703 | else | 
 | 2704 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2705 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2706 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2707 | ac_cv_prog_cc_g=no | 
 | 2708 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2710 | fi | 
 | 2711 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 2712 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
 | 2713 | if test "$ac_test_CFLAGS" = set; then | 
 | 2714 |   CFLAGS=$ac_save_CFLAGS | 
 | 2715 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 2716 |   if test "$GCC" = yes; then | 
 | 2717 |     CFLAGS="-g -O2" | 
 | 2718 |   else | 
 | 2719 |     CFLAGS="-g" | 
 | 2720 |   fi | 
 | 2721 | else | 
 | 2722 |   if test "$GCC" = yes; then | 
 | 2723 |     CFLAGS="-O2" | 
 | 2724 |   else | 
 | 2725 |     CFLAGS= | 
 | 2726 |   fi | 
 | 2727 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2728 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
 | 2729 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
 | 2730 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
 | 2731 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2732 | else | 
 | 2733 |   ac_cv_prog_cc_stdc=no | 
 | 2734 | ac_save_CC=$CC | 
 | 2735 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2736 | /* confdefs.h.  */ | 
 | 2737 | _ACEOF | 
 | 2738 | cat confdefs.h >>conftest.$ac_ext | 
 | 2739 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2740 | /* end confdefs.h.  */ | 
 | 2741 | #include <stdarg.h> | 
 | 2742 | #include <stdio.h> | 
 | 2743 | #include <sys/types.h> | 
 | 2744 | #include <sys/stat.h> | 
 | 2745 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 2746 | struct buf { int x; }; | 
 | 2747 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 2748 | static char *e (p, i) | 
 | 2749 |      char **p; | 
 | 2750 |      int i; | 
 | 2751 | { | 
 | 2752 |   return p[i]; | 
 | 2753 | } | 
 | 2754 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 2755 | { | 
 | 2756 |   char *s; | 
 | 2757 |   va_list v; | 
 | 2758 |   va_start (v,p); | 
 | 2759 |   s = g (p, va_arg (v,int)); | 
 | 2760 |   va_end (v); | 
 | 2761 |   return s; | 
 | 2762 | } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2763 |  | 
 | 2764 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 2765 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 2766 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 2767 |    as 'x'.  The following induces an error, until -std1 is added to get | 
 | 2768 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 2769 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 2770 |    that's true only with -std1.  */ | 
 | 2771 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 2772 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2773 | int test (int i, double x); | 
 | 2774 | struct s1 {int (*f) (int a);}; | 
 | 2775 | struct s2 {int (*f) (double a);}; | 
 | 2776 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 2777 | int argc; | 
 | 2778 | char **argv; | 
 | 2779 | int | 
 | 2780 | main () | 
 | 2781 | { | 
 | 2782 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 2783 |   ; | 
 | 2784 |   return 0; | 
 | 2785 | } | 
 | 2786 | _ACEOF | 
 | 2787 | # Don't try gcc -ansi; that turns off useful extensions and | 
 | 2788 | # breaks some systems' header files. | 
 | 2789 | # AIX			-qlanglvl=ansi | 
 | 2790 | # Ultrix and OSF/1	-std1 | 
 | 2791 | # HP-UX 10.20 and later	-Ae | 
 | 2792 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
 | 2793 | # SVR4			-Xc -D__EXTENSIONS__ | 
 | 2794 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 2795 | do | 
 | 2796 |   CC="$ac_save_CC $ac_arg" | 
 | 2797 |   rm -f conftest.$ac_objext | 
 | 2798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2799 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2800 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2801 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2802 |   rm -f conftest.er1 | 
 | 2803 |   cat conftest.err >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2804 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2805 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2806 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2807 | 			 || test ! -s conftest.err' | 
 | 2808 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2809 |   (eval $ac_try) 2>&5 | 
 | 2810 |   ac_status=$? | 
 | 2811 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2812 |   (exit $ac_status); }; } && | 
 | 2813 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2814 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2815 |   (eval $ac_try) 2>&5 | 
 | 2816 |   ac_status=$? | 
 | 2817 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2818 |   (exit $ac_status); }; }; then | 
 | 2819 |   ac_cv_prog_cc_stdc=$ac_arg | 
 | 2820 | break | 
 | 2821 | else | 
 | 2822 |   echo "$as_me: failed program was:" >&5 | 
 | 2823 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2824 |  | 
 | 2825 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2826 | rm -f conftest.err conftest.$ac_objext | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2827 | done | 
 | 2828 | rm -f conftest.$ac_ext conftest.$ac_objext | 
 | 2829 | CC=$ac_save_CC | 
 | 2830 |  | 
 | 2831 | fi | 
 | 2832 |  | 
 | 2833 | case "x$ac_cv_prog_cc_stdc" in | 
 | 2834 |   x|xno) | 
 | 2835 |     echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 2836 | echo "${ECHO_T}none needed" >&6 ;; | 
 | 2837 |   *) | 
 | 2838 |     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
 | 2839 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
 | 2840 |     CC="$CC $ac_cv_prog_cc_stdc" ;; | 
 | 2841 | esac | 
 | 2842 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2843 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
 | 2844 | # in C++ we need to declare it.  In case someone uses the same compiler | 
 | 2845 | # for both compiling C and C++ we need to have the C++ compiler decide | 
 | 2846 | # the declaration of exit, since it's the most demanding environment. | 
 | 2847 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2848 | #ifndef __cplusplus | 
 | 2849 |   choke me | 
 | 2850 | #endif | 
 | 2851 | _ACEOF | 
 | 2852 | rm -f conftest.$ac_objext | 
 | 2853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2854 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2855 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2856 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2857 |   rm -f conftest.er1 | 
 | 2858 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2859 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2860 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2861 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2862 | 			 || test ! -s conftest.err' | 
 | 2863 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2864 |   (eval $ac_try) 2>&5 | 
 | 2865 |   ac_status=$? | 
 | 2866 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2867 |   (exit $ac_status); }; } && | 
 | 2868 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2869 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2870 |   (eval $ac_try) 2>&5 | 
 | 2871 |   ac_status=$? | 
 | 2872 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2873 |   (exit $ac_status); }; }; then | 
 | 2874 |   for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2875 |    '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2876 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 2877 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 2878 |    'extern "C" void exit (int) throw ();' \ | 
 | 2879 |    'extern "C" void exit (int);' \ | 
 | 2880 |    'void exit (int);' | 
 | 2881 | do | 
 | 2882 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2883 | /* confdefs.h.  */ | 
 | 2884 | _ACEOF | 
 | 2885 | cat confdefs.h >>conftest.$ac_ext | 
 | 2886 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2887 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2888 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2889 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2890 | int | 
 | 2891 | main () | 
 | 2892 | { | 
 | 2893 | exit (42); | 
 | 2894 |   ; | 
 | 2895 |   return 0; | 
 | 2896 | } | 
 | 2897 | _ACEOF | 
 | 2898 | rm -f conftest.$ac_objext | 
 | 2899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2900 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2901 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2902 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2903 |   rm -f conftest.er1 | 
 | 2904 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2905 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2906 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2907 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2908 | 			 || test ! -s conftest.err' | 
 | 2909 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2910 |   (eval $ac_try) 2>&5 | 
 | 2911 |   ac_status=$? | 
 | 2912 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2913 |   (exit $ac_status); }; } && | 
 | 2914 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2915 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2916 |   (eval $ac_try) 2>&5 | 
 | 2917 |   ac_status=$? | 
 | 2918 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2919 |   (exit $ac_status); }; }; then | 
 | 2920 |   : | 
 | 2921 | else | 
 | 2922 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2923 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2924 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2925 | continue | 
 | 2926 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2928 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2929 | /* confdefs.h.  */ | 
 | 2930 | _ACEOF | 
 | 2931 | cat confdefs.h >>conftest.$ac_ext | 
 | 2932 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2933 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2934 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2935 | int | 
 | 2936 | main () | 
 | 2937 | { | 
 | 2938 | exit (42); | 
 | 2939 |   ; | 
 | 2940 |   return 0; | 
 | 2941 | } | 
 | 2942 | _ACEOF | 
 | 2943 | rm -f conftest.$ac_objext | 
 | 2944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2945 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2946 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2947 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2948 |   rm -f conftest.er1 | 
 | 2949 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2951 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2952 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2953 | 			 || test ! -s conftest.err' | 
 | 2954 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2955 |   (eval $ac_try) 2>&5 | 
 | 2956 |   ac_status=$? | 
 | 2957 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2958 |   (exit $ac_status); }; } && | 
 | 2959 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2960 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2961 |   (eval $ac_try) 2>&5 | 
 | 2962 |   ac_status=$? | 
 | 2963 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2964 |   (exit $ac_status); }; }; then | 
 | 2965 |   break | 
 | 2966 | else | 
 | 2967 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2968 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2969 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2970 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2972 | done | 
 | 2973 | rm -f conftest* | 
 | 2974 | if test -n "$ac_declaration"; then | 
 | 2975 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 2976 |   echo $ac_declaration      >>confdefs.h | 
 | 2977 |   echo '#endif'             >>confdefs.h | 
 | 2978 | fi | 
 | 2979 |  | 
 | 2980 | else | 
 | 2981 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2982 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2983 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2984 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2986 | ac_ext=c | 
 | 2987 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2991 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2992 | if test "$GCC" != "yes" | 
 | 2993 | then | 
 | 2994 | 	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5 | 
 | 2995 | echo "$as_me: error: gcc required but not found" >&2;} | 
 | 2996 |    { (exit 1); exit 1; }; } | 
 | 2997 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2998 | ac_ext=c | 
 | 2999 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3000 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3001 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3002 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3003 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
 | 3004 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
 | 3005 | # On Suns, sometimes $CPP names a directory. | 
 | 3006 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 3007 |   CPP= | 
 | 3008 | fi | 
 | 3009 | if test -z "$CPP"; then | 
 | 3010 |   if test "${ac_cv_prog_CPP+set}" = set; then | 
 | 3011 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3012 | else | 
 | 3013 |       # Double quotes because CPP needs to be expanded | 
 | 3014 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 3015 |     do | 
 | 3016 |       ac_preproc_ok=false | 
 | 3017 | for ac_c_preproc_warn_flag in '' yes | 
 | 3018 | do | 
 | 3019 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3020 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3021 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3022 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3023 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3024 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3025 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3026 | /* confdefs.h.  */ | 
 | 3027 | _ACEOF | 
 | 3028 | cat confdefs.h >>conftest.$ac_ext | 
 | 3029 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3030 | /* end confdefs.h.  */ | 
 | 3031 | #ifdef __STDC__ | 
 | 3032 | # include <limits.h> | 
 | 3033 | #else | 
 | 3034 | # include <assert.h> | 
 | 3035 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3036 | 		     Syntax error | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | _ACEOF | 
 | 3038 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3039 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3040 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3041 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3042 |   rm -f conftest.er1 | 
 | 3043 |   cat conftest.err >&5 | 
 | 3044 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3045 |   (exit $ac_status); } >/dev/null; then | 
 | 3046 |   if test -s conftest.err; then | 
 | 3047 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3048 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3049 |   else | 
 | 3050 |     ac_cpp_err= | 
 | 3051 |   fi | 
 | 3052 | else | 
 | 3053 |   ac_cpp_err=yes | 
 | 3054 | fi | 
 | 3055 | if test -z "$ac_cpp_err"; then | 
 | 3056 |   : | 
 | 3057 | else | 
 | 3058 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3059 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3060 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3061 |   # Broken: fails on valid input. | 
 | 3062 | continue | 
 | 3063 | fi | 
 | 3064 | rm -f conftest.err conftest.$ac_ext | 
 | 3065 |  | 
 | 3066 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3067 |   # can be detected and how. | 
 | 3068 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3069 | /* confdefs.h.  */ | 
 | 3070 | _ACEOF | 
 | 3071 | cat confdefs.h >>conftest.$ac_ext | 
 | 3072 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3073 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3074 | #include <ac_nonexistent.h> | 
 | 3075 | _ACEOF | 
 | 3076 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3077 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3078 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3079 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3080 |   rm -f conftest.er1 | 
 | 3081 |   cat conftest.err >&5 | 
 | 3082 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3083 |   (exit $ac_status); } >/dev/null; then | 
 | 3084 |   if test -s conftest.err; then | 
 | 3085 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3086 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3087 |   else | 
 | 3088 |     ac_cpp_err= | 
 | 3089 |   fi | 
 | 3090 | else | 
 | 3091 |   ac_cpp_err=yes | 
 | 3092 | fi | 
 | 3093 | if test -z "$ac_cpp_err"; then | 
 | 3094 |   # Broken: success on invalid input. | 
 | 3095 | continue | 
 | 3096 | else | 
 | 3097 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3098 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3099 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3100 |   # Passes both tests. | 
 | 3101 | ac_preproc_ok=: | 
 | 3102 | break | 
 | 3103 | fi | 
 | 3104 | rm -f conftest.err conftest.$ac_ext | 
 | 3105 |  | 
 | 3106 | done | 
 | 3107 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3108 | rm -f conftest.err conftest.$ac_ext | 
 | 3109 | if $ac_preproc_ok; then | 
 | 3110 |   break | 
 | 3111 | fi | 
 | 3112 |  | 
 | 3113 |     done | 
 | 3114 |     ac_cv_prog_CPP=$CPP | 
 | 3115 |  | 
 | 3116 | fi | 
 | 3117 |   CPP=$ac_cv_prog_CPP | 
 | 3118 | else | 
 | 3119 |   ac_cv_prog_CPP=$CPP | 
 | 3120 | fi | 
 | 3121 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
 | 3122 | echo "${ECHO_T}$CPP" >&6 | 
 | 3123 | ac_preproc_ok=false | 
 | 3124 | for ac_c_preproc_warn_flag in '' yes | 
 | 3125 | do | 
 | 3126 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3127 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3128 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3129 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3130 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3131 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3132 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3133 | /* confdefs.h.  */ | 
 | 3134 | _ACEOF | 
 | 3135 | cat confdefs.h >>conftest.$ac_ext | 
 | 3136 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3137 | /* end confdefs.h.  */ | 
 | 3138 | #ifdef __STDC__ | 
 | 3139 | # include <limits.h> | 
 | 3140 | #else | 
 | 3141 | # include <assert.h> | 
 | 3142 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3143 | 		     Syntax error | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3144 | _ACEOF | 
 | 3145 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3146 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3147 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3148 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3149 |   rm -f conftest.er1 | 
 | 3150 |   cat conftest.err >&5 | 
 | 3151 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3152 |   (exit $ac_status); } >/dev/null; then | 
 | 3153 |   if test -s conftest.err; then | 
 | 3154 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3155 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3156 |   else | 
 | 3157 |     ac_cpp_err= | 
 | 3158 |   fi | 
 | 3159 | else | 
 | 3160 |   ac_cpp_err=yes | 
 | 3161 | fi | 
 | 3162 | if test -z "$ac_cpp_err"; then | 
 | 3163 |   : | 
 | 3164 | else | 
 | 3165 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3166 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3167 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3168 |   # Broken: fails on valid input. | 
 | 3169 | continue | 
 | 3170 | fi | 
 | 3171 | rm -f conftest.err conftest.$ac_ext | 
 | 3172 |  | 
 | 3173 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3174 |   # can be detected and how. | 
 | 3175 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3176 | /* confdefs.h.  */ | 
 | 3177 | _ACEOF | 
 | 3178 | cat confdefs.h >>conftest.$ac_ext | 
 | 3179 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3180 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3181 | #include <ac_nonexistent.h> | 
 | 3182 | _ACEOF | 
 | 3183 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3184 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3185 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3186 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3187 |   rm -f conftest.er1 | 
 | 3188 |   cat conftest.err >&5 | 
 | 3189 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3190 |   (exit $ac_status); } >/dev/null; then | 
 | 3191 |   if test -s conftest.err; then | 
 | 3192 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3193 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3194 |   else | 
 | 3195 |     ac_cpp_err= | 
 | 3196 |   fi | 
 | 3197 | else | 
 | 3198 |   ac_cpp_err=yes | 
 | 3199 | fi | 
 | 3200 | if test -z "$ac_cpp_err"; then | 
 | 3201 |   # Broken: success on invalid input. | 
 | 3202 | continue | 
 | 3203 | else | 
 | 3204 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3205 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3206 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3207 |   # Passes both tests. | 
 | 3208 | ac_preproc_ok=: | 
 | 3209 | break | 
 | 3210 | fi | 
 | 3211 | rm -f conftest.err conftest.$ac_ext | 
 | 3212 |  | 
 | 3213 | done | 
 | 3214 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3215 | rm -f conftest.err conftest.$ac_ext | 
 | 3216 | if $ac_preproc_ok; then | 
 | 3217 |   : | 
 | 3218 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3219 |   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3220 | See \`config.log' for more details." >&5 | 
 | 3221 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3222 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3223 |    { (exit 1); exit 1; }; } | 
 | 3224 | fi | 
 | 3225 |  | 
 | 3226 | ac_ext=c | 
 | 3227 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3231 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3232 | if test "$GXX" != "yes" | 
 | 3233 | then | 
 | 3234 | 	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5 | 
 | 3235 | echo "$as_me: error: g++ required but not found" >&2;} | 
 | 3236 |    { (exit 1); exit 1; }; } | 
 | 3237 | fi | 
 | 3238 |  | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3239 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` | 
 | 3240 | if test "$gccmajor" -lt "3" | 
 | 3241 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 3242 | 	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
 | 3243 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3244 |    { (exit 1); exit 1; }; } | 
 | 3245 | fi | 
 | 3246 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3247 |  echo "$as_me:$LINENO: checking for GNU make" >&5 | 
 | 3248 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 | 
 | 3249 | if test "${_cv_gnu_make_command+set}" = set; then | 
 | 3250 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3251 | else | 
 | 3252 |   _cv_gnu_make_command='' ; | 
 | 3253 |                 for a in "$MAKE" make gmake gnumake ; do | 
 | 3254 |                         if test -z "$a" ; then continue ; fi ; | 
 | 3255 |                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then | 
 | 3256 |                                 _cv_gnu_make_command=$a ; | 
 | 3257 |                                 break; | 
 | 3258 |                         fi | 
 | 3259 |                 done ; | 
 | 3260 |  | 
 | 3261 | fi | 
 | 3262 | echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 | 
 | 3263 | echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; | 
 | 3264 |         if test  "x$_cv_gnu_make_command" != "x"  ; then | 
 | 3265 |                 ifGNUmake='' ; | 
 | 3266 |         else | 
 | 3267 |                 ifGNUmake='#' ; | 
 | 3268 |                 echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
 | 3269 | echo "${ECHO_T}\"Not found\"" >&6; | 
 | 3270 |         fi | 
 | 3271 |  | 
 | 3272 |  | 
 | 3273 | if test -z "$_cv_gnu_make_command" | 
 | 3274 | then | 
 | 3275 | 	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
 | 3276 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
 | 3277 |    { (exit 1); exit 1; }; } | 
 | 3278 | fi | 
 | 3279 |  | 
 | 3280 |  | 
 | 3281 | echo "$as_me:$LINENO: checking " >&5 | 
 | 3282 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
 | 3283 | if test "${ac_cv_has_flex+set}" = set; then | 
 | 3284 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3285 | else | 
 | 3286 |   for ac_prog in flex lex | 
 | 3287 | do | 
 | 3288 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3289 | set dummy $ac_prog; ac_word=$2 | 
 | 3290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3292 | if test "${ac_cv_prog_LEX+set}" = set; then | 
 | 3293 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3294 | else | 
 | 3295 |   if test -n "$LEX"; then | 
 | 3296 |   ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
 | 3297 | else | 
 | 3298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3299 | for as_dir in $PATH | 
 | 3300 | do | 
 | 3301 |   IFS=$as_save_IFS | 
 | 3302 |   test -z "$as_dir" && as_dir=. | 
 | 3303 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3304 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3305 |     ac_cv_prog_LEX="$ac_prog" | 
 | 3306 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3307 |     break 2 | 
 | 3308 |   fi | 
 | 3309 | done | 
 | 3310 | done | 
 | 3311 |  | 
 | 3312 | fi | 
 | 3313 | fi | 
 | 3314 | LEX=$ac_cv_prog_LEX | 
 | 3315 | if test -n "$LEX"; then | 
 | 3316 |   echo "$as_me:$LINENO: result: $LEX" >&5 | 
 | 3317 | echo "${ECHO_T}$LEX" >&6 | 
 | 3318 | else | 
 | 3319 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3320 | echo "${ECHO_T}no" >&6 | 
 | 3321 | fi | 
 | 3322 |  | 
 | 3323 |   test -n "$LEX" && break | 
 | 3324 | done | 
 | 3325 | test -n "$LEX" || LEX=":" | 
 | 3326 |  | 
 | 3327 | if test -z "$LEXLIB" | 
 | 3328 | then | 
 | 3329 |   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
 | 3330 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
 | 3331 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
 | 3332 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3333 | else | 
 | 3334 |   ac_check_lib_save_LIBS=$LIBS | 
 | 3335 | LIBS="-lfl  $LIBS" | 
 | 3336 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3337 | /* confdefs.h.  */ | 
 | 3338 | _ACEOF | 
 | 3339 | cat confdefs.h >>conftest.$ac_ext | 
 | 3340 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3341 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3342 |  | 
 | 3343 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3344 | #ifdef __cplusplus | 
 | 3345 | extern "C" | 
 | 3346 | #endif | 
 | 3347 | /* We use char because int might match the return type of a gcc2 | 
 | 3348 |    builtin and then its argument prototype would still apply.  */ | 
 | 3349 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3350 | int | 
 | 3351 | main () | 
 | 3352 | { | 
 | 3353 | yywrap (); | 
 | 3354 |   ; | 
 | 3355 |   return 0; | 
 | 3356 | } | 
 | 3357 | _ACEOF | 
 | 3358 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3360 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3361 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3362 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3363 |   rm -f conftest.er1 | 
 | 3364 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3365 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3366 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3367 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3368 | 			 || test ! -s conftest.err' | 
 | 3369 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3370 |   (eval $ac_try) 2>&5 | 
 | 3371 |   ac_status=$? | 
 | 3372 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3373 |   (exit $ac_status); }; } && | 
 | 3374 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3375 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3376 |   (eval $ac_try) 2>&5 | 
 | 3377 |   ac_status=$? | 
 | 3378 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3379 |   (exit $ac_status); }; }; then | 
 | 3380 |   ac_cv_lib_fl_yywrap=yes | 
 | 3381 | else | 
 | 3382 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3383 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3384 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3385 | ac_cv_lib_fl_yywrap=no | 
 | 3386 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3387 | rm -f conftest.err conftest.$ac_objext \ | 
 | 3388 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3389 | LIBS=$ac_check_lib_save_LIBS | 
 | 3390 | fi | 
 | 3391 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
 | 3392 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
 | 3393 | if test $ac_cv_lib_fl_yywrap = yes; then | 
 | 3394 |   LEXLIB="-lfl" | 
 | 3395 | else | 
 | 3396 |   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
 | 3397 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
 | 3398 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
 | 3399 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3400 | else | 
 | 3401 |   ac_check_lib_save_LIBS=$LIBS | 
 | 3402 | LIBS="-ll  $LIBS" | 
 | 3403 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3404 | /* confdefs.h.  */ | 
 | 3405 | _ACEOF | 
 | 3406 | cat confdefs.h >>conftest.$ac_ext | 
 | 3407 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3408 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3409 |  | 
 | 3410 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3411 | #ifdef __cplusplus | 
 | 3412 | extern "C" | 
 | 3413 | #endif | 
 | 3414 | /* We use char because int might match the return type of a gcc2 | 
 | 3415 |    builtin and then its argument prototype would still apply.  */ | 
 | 3416 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3417 | int | 
 | 3418 | main () | 
 | 3419 | { | 
 | 3420 | yywrap (); | 
 | 3421 |   ; | 
 | 3422 |   return 0; | 
 | 3423 | } | 
 | 3424 | _ACEOF | 
 | 3425 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3427 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3428 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3429 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3430 |   rm -f conftest.er1 | 
 | 3431 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3432 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3433 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3434 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3435 | 			 || test ! -s conftest.err' | 
 | 3436 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3437 |   (eval $ac_try) 2>&5 | 
 | 3438 |   ac_status=$? | 
 | 3439 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3440 |   (exit $ac_status); }; } && | 
 | 3441 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3442 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3443 |   (eval $ac_try) 2>&5 | 
 | 3444 |   ac_status=$? | 
 | 3445 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3446 |   (exit $ac_status); }; }; then | 
 | 3447 |   ac_cv_lib_l_yywrap=yes | 
 | 3448 | else | 
 | 3449 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3450 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3451 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3452 | ac_cv_lib_l_yywrap=no | 
 | 3453 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3454 | rm -f conftest.err conftest.$ac_objext \ | 
 | 3455 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3456 | LIBS=$ac_check_lib_save_LIBS | 
 | 3457 | fi | 
 | 3458 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
 | 3459 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
 | 3460 | if test $ac_cv_lib_l_yywrap = yes; then | 
 | 3461 |   LEXLIB="-ll" | 
 | 3462 | fi | 
 | 3463 |  | 
 | 3464 | fi | 
 | 3465 |  | 
 | 3466 | fi | 
 | 3467 |  | 
 | 3468 | if test "x$LEX" != "x:"; then | 
 | 3469 |   echo "$as_me:$LINENO: checking lex output file root" >&5 | 
 | 3470 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
 | 3471 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
 | 3472 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3473 | else | 
 | 3474 |   # The minimal lex program is just a single line: %%.  But some broken lexes | 
 | 3475 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
 | 3476 | cat >conftest.l <<_ACEOF | 
 | 3477 | %% | 
 | 3478 | %% | 
 | 3479 | _ACEOF | 
 | 3480 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
 | 3481 |   (eval $LEX conftest.l) 2>&5 | 
 | 3482 |   ac_status=$? | 
 | 3483 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3484 |   (exit $ac_status); } | 
 | 3485 | if test -f lex.yy.c; then | 
 | 3486 |   ac_cv_prog_lex_root=lex.yy | 
 | 3487 | elif test -f lexyy.c; then | 
 | 3488 |   ac_cv_prog_lex_root=lexyy | 
 | 3489 | else | 
 | 3490 |   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
 | 3491 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
 | 3492 |    { (exit 1); exit 1; }; } | 
 | 3493 | fi | 
 | 3494 | fi | 
 | 3495 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
 | 3496 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
 | 3497 | rm -f conftest.l | 
 | 3498 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
 | 3499 |  | 
 | 3500 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
 | 3501 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
 | 3502 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
 | 3503 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3504 | else | 
 | 3505 |   # POSIX says lex can declare yytext either as a pointer or an array; the | 
 | 3506 | # default is implementation-dependent. Figure out which it is, since | 
 | 3507 | # not all implementations provide the %pointer and %array declarations. | 
 | 3508 | ac_cv_prog_lex_yytext_pointer=no | 
 | 3509 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
 | 3510 | ac_save_LIBS=$LIBS | 
 | 3511 | LIBS="$LIBS $LEXLIB" | 
 | 3512 | cat >conftest.$ac_ext <<_ACEOF | 
 | 3513 | `cat $LEX_OUTPUT_ROOT.c` | 
 | 3514 | _ACEOF | 
 | 3515 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3517 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3518 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3519 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3520 |   rm -f conftest.er1 | 
 | 3521 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3522 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3523 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3524 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3525 | 			 || test ! -s conftest.err' | 
 | 3526 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3527 |   (eval $ac_try) 2>&5 | 
 | 3528 |   ac_status=$? | 
 | 3529 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3530 |   (exit $ac_status); }; } && | 
 | 3531 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3532 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3533 |   (eval $ac_try) 2>&5 | 
 | 3534 |   ac_status=$? | 
 | 3535 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3536 |   (exit $ac_status); }; }; then | 
 | 3537 |   ac_cv_prog_lex_yytext_pointer=yes | 
 | 3538 | else | 
 | 3539 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3540 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3541 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3542 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3543 | rm -f conftest.err conftest.$ac_objext \ | 
 | 3544 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3545 | LIBS=$ac_save_LIBS | 
 | 3546 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
 | 3547 |  | 
 | 3548 | fi | 
 | 3549 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
 | 3550 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
 | 3551 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
 | 3552 |  | 
 | 3553 | cat >>confdefs.h <<\_ACEOF | 
 | 3554 | #define YYTEXT_POINTER 1 | 
 | 3555 | _ACEOF | 
 | 3556 |  | 
 | 3557 | fi | 
 | 3558 |  | 
 | 3559 | fi | 
 | 3560 |  | 
 | 3561 | fi | 
 | 3562 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 | 
 | 3563 | echo "${ECHO_T}$ac_cv_has_flex" >&6 | 
 | 3564 | if test "$LEX" != "flex"; then | 
 | 3565 |   { { echo "$as_me:$LINENO: error: flex not found but required" >&5 | 
 | 3566 | echo "$as_me: error: flex not found but required" >&2;} | 
 | 3567 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 3568 | else | 
 | 3569 |   FLEX=flex | 
 | 3570 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3571 | fi | 
 | 3572 |  | 
 | 3573 | echo "$as_me:$LINENO: checking " >&5 | 
 | 3574 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
 | 3575 | if test "${ac_cv_has_bison+set}" = set; then | 
 | 3576 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3577 | else | 
 | 3578 |   for ac_prog in 'bison -y' byacc | 
 | 3579 | do | 
 | 3580 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3581 | set dummy $ac_prog; ac_word=$2 | 
 | 3582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3584 | if test "${ac_cv_prog_YACC+set}" = set; then | 
 | 3585 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3586 | else | 
 | 3587 |   if test -n "$YACC"; then | 
 | 3588 |   ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
 | 3589 | else | 
 | 3590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3591 | for as_dir in $PATH | 
 | 3592 | do | 
 | 3593 |   IFS=$as_save_IFS | 
 | 3594 |   test -z "$as_dir" && as_dir=. | 
 | 3595 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3596 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3597 |     ac_cv_prog_YACC="$ac_prog" | 
 | 3598 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3599 |     break 2 | 
 | 3600 |   fi | 
 | 3601 | done | 
 | 3602 | done | 
 | 3603 |  | 
 | 3604 | fi | 
 | 3605 | fi | 
 | 3606 | YACC=$ac_cv_prog_YACC | 
 | 3607 | if test -n "$YACC"; then | 
 | 3608 |   echo "$as_me:$LINENO: result: $YACC" >&5 | 
 | 3609 | echo "${ECHO_T}$YACC" >&6 | 
 | 3610 | else | 
 | 3611 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3612 | echo "${ECHO_T}no" >&6 | 
 | 3613 | fi | 
 | 3614 |  | 
 | 3615 |   test -n "$YACC" && break | 
 | 3616 | done | 
 | 3617 | test -n "$YACC" || YACC="yacc" | 
 | 3618 |  | 
 | 3619 |  | 
 | 3620 | fi | 
 | 3621 | echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 | 
 | 3622 | echo "${ECHO_T}$ac_cv_has_bison" >&6 | 
 | 3623 | if test "$YACC" != "bison -y"; then | 
 | 3624 |   { { echo "$as_me:$LINENO: error: bison not found but required" >&5 | 
 | 3625 | echo "$as_me: error: bison not found but required" >&2;} | 
 | 3626 |    { (exit 1); exit 1; }; } | 
 | 3627 | else | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 3628 |   BISON=bison | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3629 |  | 
 | 3630 | fi | 
 | 3631 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3632 | # Check whether --enable-shared or --disable-shared was given. | 
 | 3633 | if test "${enable_shared+set}" = set; then | 
 | 3634 |   enableval="$enable_shared" | 
 | 3635 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3636 |     case $enableval in | 
 | 3637 |     yes) enable_shared=yes ;; | 
 | 3638 |     no) enable_shared=no ;; | 
 | 3639 |     *) | 
 | 3640 |       enable_shared=no | 
 | 3641 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3642 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3643 |       for pkg in $enableval; do | 
 | 3644 | 	IFS="$lt_save_ifs" | 
 | 3645 | 	if test "X$pkg" = "X$p"; then | 
 | 3646 | 	  enable_shared=yes | 
 | 3647 | 	fi | 
 | 3648 |       done | 
 | 3649 |       IFS="$lt_save_ifs" | 
 | 3650 |       ;; | 
 | 3651 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3652 | else | 
 | 3653 |   enable_shared=yes | 
 | 3654 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3655 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3656 | # Check whether --enable-static or --disable-static was given. | 
 | 3657 | if test "${enable_static+set}" = set; then | 
 | 3658 |   enableval="$enable_static" | 
 | 3659 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3660 |     case $enableval in | 
 | 3661 |     yes) enable_static=yes ;; | 
 | 3662 |     no) enable_static=no ;; | 
 | 3663 |     *) | 
 | 3664 |      enable_static=no | 
 | 3665 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3666 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3667 |       for pkg in $enableval; do | 
 | 3668 | 	IFS="$lt_save_ifs" | 
 | 3669 | 	if test "X$pkg" = "X$p"; then | 
 | 3670 | 	  enable_static=yes | 
 | 3671 | 	fi | 
 | 3672 |       done | 
 | 3673 |       IFS="$lt_save_ifs" | 
 | 3674 |       ;; | 
 | 3675 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3676 | else | 
 | 3677 |   enable_static=yes | 
 | 3678 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3679 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3680 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
 | 3681 | if test "${enable_fast_install+set}" = set; then | 
 | 3682 |   enableval="$enable_fast_install" | 
 | 3683 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3684 |     case $enableval in | 
 | 3685 |     yes) enable_fast_install=yes ;; | 
 | 3686 |     no) enable_fast_install=no ;; | 
 | 3687 |     *) | 
 | 3688 |       enable_fast_install=no | 
 | 3689 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3690 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3691 |       for pkg in $enableval; do | 
 | 3692 | 	IFS="$lt_save_ifs" | 
 | 3693 | 	if test "X$pkg" = "X$p"; then | 
 | 3694 | 	  enable_fast_install=yes | 
 | 3695 | 	fi | 
 | 3696 |       done | 
 | 3697 |       IFS="$lt_save_ifs" | 
 | 3698 |       ;; | 
 | 3699 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3700 | else | 
 | 3701 |   enable_fast_install=yes | 
 | 3702 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3703 |  | 
 | 3704 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
 | 3705 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | 
 | 3706 | if test "${lt_cv_path_SED+set}" = set; then | 
 | 3707 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3708 | else | 
 | 3709 |   # Loop through the user's path and test for sed and gsed. | 
 | 3710 | # Then use that list of sed's as ones to test for truncation. | 
 | 3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3712 | for as_dir in $PATH | 
 | 3713 | do | 
 | 3714 |   IFS=$as_save_IFS | 
 | 3715 |   test -z "$as_dir" && as_dir=. | 
 | 3716 |   for lt_ac_prog in sed gsed; do | 
 | 3717 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3718 |       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
 | 3719 |         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
 | 3720 |       fi | 
 | 3721 |     done | 
 | 3722 |   done | 
 | 3723 | done | 
 | 3724 | lt_ac_max=0 | 
 | 3725 | lt_ac_count=0 | 
 | 3726 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
 | 3727 | # along with /bin/sed that truncates output. | 
 | 3728 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
 | 3729 |   test ! -f $lt_ac_sed && break | 
 | 3730 |   cat /dev/null > conftest.in | 
 | 3731 |   lt_ac_count=0 | 
 | 3732 |   echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
 | 3733 |   # Check for GNU sed and select it if it is found. | 
 | 3734 |   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
 | 3735 |     lt_cv_path_SED=$lt_ac_sed | 
 | 3736 |     break | 
 | 3737 |   fi | 
 | 3738 |   while true; do | 
 | 3739 |     cat conftest.in conftest.in >conftest.tmp | 
 | 3740 |     mv conftest.tmp conftest.in | 
 | 3741 |     cp conftest.in conftest.nl | 
 | 3742 |     echo >>conftest.nl | 
 | 3743 |     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
 | 3744 |     cmp -s conftest.out conftest.nl || break | 
 | 3745 |     # 10000 chars as input seems more than enough | 
 | 3746 |     test $lt_ac_count -gt 10 && break | 
 | 3747 |     lt_ac_count=`expr $lt_ac_count + 1` | 
 | 3748 |     if test $lt_ac_count -gt $lt_ac_max; then | 
 | 3749 |       lt_ac_max=$lt_ac_count | 
 | 3750 |       lt_cv_path_SED=$lt_ac_sed | 
 | 3751 |     fi | 
 | 3752 |   done | 
 | 3753 | done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3754 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3755 | fi | 
 | 3756 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3757 | SED=$lt_cv_path_SED | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3758 | echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 3759 | echo "${ECHO_T}$SED" >&6 | 
 | 3760 |  | 
 | 3761 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
 | 3762 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
 | 3763 | if test "${ac_cv_prog_egrep+set}" = set; then | 
 | 3764 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3765 | else | 
 | 3766 |   if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
 | 3767 |     then ac_cv_prog_egrep='grep -E' | 
 | 3768 |     else ac_cv_prog_egrep='egrep' | 
 | 3769 |     fi | 
 | 3770 | fi | 
 | 3771 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
 | 3772 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
 | 3773 |  EGREP=$ac_cv_prog_egrep | 
 | 3774 |  | 
 | 3775 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3776 |  | 
 | 3777 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 3778 | if test "${with_gnu_ld+set}" = set; then | 
 | 3779 |   withval="$with_gnu_ld" | 
 | 3780 |   test "$withval" = no || with_gnu_ld=yes | 
 | 3781 | else | 
 | 3782 |   with_gnu_ld=no | 
 | 3783 | fi; | 
 | 3784 | ac_prog=ld | 
 | 3785 | if test "$GCC" = yes; then | 
 | 3786 |   # Check if gcc -print-prog-name=ld gives a path. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3787 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 3788 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3789 |   case $host in | 
 | 3790 |   *-*-mingw*) | 
 | 3791 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 3792 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 3793 |   *) | 
 | 3794 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 3795 |   esac | 
 | 3796 |   case $ac_prog in | 
 | 3797 |     # Accept absolute paths. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3798 |     [\\/]* | ?:[\\/]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3799 |       re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3800 |       # Canonicalize the pathname of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3801 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3802 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3803 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3804 |       done | 
 | 3805 |       test -z "$LD" && LD="$ac_prog" | 
 | 3806 |       ;; | 
 | 3807 |   "") | 
 | 3808 |     # If it fails, then pretend we aren't using GCC. | 
 | 3809 |     ac_prog=ld | 
 | 3810 |     ;; | 
 | 3811 |   *) | 
 | 3812 |     # If it is relative, then search for the first ld in PATH. | 
 | 3813 |     with_gnu_ld=unknown | 
 | 3814 |     ;; | 
 | 3815 |   esac | 
 | 3816 | elif test "$with_gnu_ld" = yes; then | 
 | 3817 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 3818 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 3819 | else | 
 | 3820 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 3821 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 3822 | fi | 
 | 3823 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 3824 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3825 | else | 
 | 3826 |   if test -z "$LD"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3827 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3828 |   for ac_dir in $PATH; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3829 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3830 |     test -z "$ac_dir" && ac_dir=. | 
 | 3831 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 3832 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 3833 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 3834 |       # but apparently some GNU ld's only accept -v. | 
 | 3835 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3836 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 3837 |       *GNU* | *'with BFD'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3838 | 	test "$with_gnu_ld" != no && break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3839 | 	;; | 
 | 3840 |       *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3841 | 	test "$with_gnu_ld" != yes && break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3842 | 	;; | 
 | 3843 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3844 |     fi | 
 | 3845 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3846 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3847 | else | 
 | 3848 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 3849 | fi | 
 | 3850 | fi | 
 | 3851 |  | 
 | 3852 | LD="$lt_cv_path_LD" | 
 | 3853 | if test -n "$LD"; then | 
 | 3854 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 3855 | echo "${ECHO_T}$LD" >&6 | 
 | 3856 | else | 
 | 3857 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3858 | echo "${ECHO_T}no" >&6 | 
 | 3859 | fi | 
 | 3860 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 3861 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 3862 |    { (exit 1); exit 1; }; } | 
 | 3863 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 3864 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 3865 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 3866 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3867 | else | 
 | 3868 |   # 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] | 3869 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3870 | *GNU* | *'with BFD'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3871 |   lt_cv_prog_gnu_ld=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3872 |   ;; | 
 | 3873 | *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3874 |   lt_cv_prog_gnu_ld=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3875 |   ;; | 
 | 3876 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3877 | fi | 
 | 3878 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 3879 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 3880 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 3881 |  | 
 | 3882 |  | 
 | 3883 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
 | 3884 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 
 | 3885 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
 | 3886 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3887 | else | 
 | 3888 |   lt_cv_ld_reload_flag='-r' | 
 | 3889 | fi | 
 | 3890 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
 | 3891 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 
 | 3892 | reload_flag=$lt_cv_ld_reload_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3893 | case $reload_flag in | 
 | 3894 | "" | " "*) ;; | 
 | 3895 | *) reload_flag=" $reload_flag" ;; | 
 | 3896 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3897 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 3898 | case $host_os in | 
 | 3899 |   darwin*) | 
 | 3900 |     if test "$GCC" = yes; then | 
 | 3901 |       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | 
 | 3902 |     else | 
 | 3903 |       reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 3904 |     fi | 
 | 3905 |     ;; | 
 | 3906 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3907 |  | 
 | 3908 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
 | 3909 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 
 | 3910 | if test "${lt_cv_path_NM+set}" = set; then | 
 | 3911 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3912 | else | 
 | 3913 |   if test -n "$NM"; then | 
 | 3914 |   # Let the user override the test. | 
 | 3915 |   lt_cv_path_NM="$NM" | 
 | 3916 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3917 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3918 |   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3919 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3920 |     test -z "$ac_dir" && ac_dir=. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3921 |     tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 
 | 3922 |     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3923 |       # Check to see if the nm accepts a BSD-compat flag. | 
 | 3924 |       # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
 | 3925 |       #   nm: unknown option "B" ignored | 
 | 3926 |       # Tru64's nm complains that /dev/null is an invalid object file | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3927 |       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
 | 3928 |       */dev/null* | *'Invalid file or object type'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3929 | 	lt_cv_path_NM="$tmp_nm -B" | 
 | 3930 | 	break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3931 |         ;; | 
 | 3932 |       *) | 
 | 3933 | 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
 | 3934 | 	*/dev/null*) | 
 | 3935 | 	  lt_cv_path_NM="$tmp_nm -p" | 
 | 3936 | 	  break | 
 | 3937 | 	  ;; | 
 | 3938 | 	*) | 
 | 3939 | 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
 | 3940 | 	  continue # so that we can try to find one that supports BSD flags | 
 | 3941 | 	  ;; | 
 | 3942 | 	esac | 
 | 3943 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3944 |     fi | 
 | 3945 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3946 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3947 |   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
 | 3948 | fi | 
 | 3949 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3950 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
 | 3951 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3952 | NM="$lt_cv_path_NM" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3953 |  | 
 | 3954 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
 | 3955 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
 | 3956 | LN_S=$as_ln_s | 
 | 3957 | if test "$LN_S" = "ln -s"; then | 
 | 3958 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 3959 | echo "${ECHO_T}yes" >&6 | 
 | 3960 | else | 
 | 3961 |   echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
 | 3962 | echo "${ECHO_T}no, using $LN_S" >&6 | 
 | 3963 | fi | 
 | 3964 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3965 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
 | 3966 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3967 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
 | 3968 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3969 | else | 
 | 3970 |   lt_cv_file_magic_cmd='$MAGIC_CMD' | 
 | 3971 | lt_cv_file_magic_test_file= | 
 | 3972 | lt_cv_deplibs_check_method='unknown' | 
 | 3973 | # Need to set the preceding variable on all platforms that support | 
 | 3974 | # interlibrary dependencies. | 
 | 3975 | # 'none' -- dependencies not supported. | 
 | 3976 | # `unknown' -- same as none, but documents that we really don't know. | 
 | 3977 | # 'pass_all' -- all dependencies passed with no checks. | 
 | 3978 | # 'test_compile' -- check by making test program. | 
 | 3979 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3980 | # which responds to the $file_magic_cmd with a given extended regex. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3981 | # If you have `file' or equivalent on your system and you're not sure | 
 | 3982 | # whether `pass_all' will *always* work, you probably want this one. | 
 | 3983 |  | 
 | 3984 | case $host_os in | 
 | 3985 | aix4* | aix5*) | 
 | 3986 |   lt_cv_deplibs_check_method=pass_all | 
 | 3987 |   ;; | 
 | 3988 |  | 
 | 3989 | beos*) | 
 | 3990 |   lt_cv_deplibs_check_method=pass_all | 
 | 3991 |   ;; | 
 | 3992 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3993 | bsdi[45]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3994 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
 | 3995 |   lt_cv_file_magic_cmd='/usr/bin/file -L' | 
 | 3996 |   lt_cv_file_magic_test_file=/shlib/libc.so | 
 | 3997 |   ;; | 
 | 3998 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3999 | cygwin*) | 
 | 4000 |   # func_win32_libid is a shell function defined in ltmain.sh | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4001 |   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4002 |   lt_cv_file_magic_cmd='func_win32_libid' | 
 | 4003 |   ;; | 
 | 4004 |  | 
 | 4005 | mingw* | pw32*) | 
 | 4006 |   # Base MSYS/MinGW do not provide the 'file' command needed by | 
 | 4007 |   # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 
 | 4008 |   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
 | 4009 |   lt_cv_file_magic_cmd='$OBJDUMP -f' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4010 |   ;; | 
 | 4011 |  | 
 | 4012 | darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4013 |   lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4014 |   ;; | 
 | 4015 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4016 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4017 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 4018 |     case $host_cpu in | 
 | 4019 |     i*86 ) | 
 | 4020 |       # Not sure whether the presence of OpenBSD here was a mistake. | 
 | 4021 |       # Let's accept both of them until this is cleared up. | 
 | 4022 |       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
 | 4023 |       lt_cv_file_magic_cmd=/usr/bin/file | 
 | 4024 |       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
 | 4025 |       ;; | 
 | 4026 |     esac | 
 | 4027 |   else | 
 | 4028 |     lt_cv_deplibs_check_method=pass_all | 
 | 4029 |   fi | 
 | 4030 |   ;; | 
 | 4031 |  | 
 | 4032 | gnu*) | 
 | 4033 |   lt_cv_deplibs_check_method=pass_all | 
 | 4034 |   ;; | 
 | 4035 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4036 | hpux10.20* | hpux11*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4037 |   lt_cv_file_magic_cmd=/usr/bin/file | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4038 |   case "$host_cpu" in | 
 | 4039 |   ia64*) | 
 | 4040 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
 | 4041 |     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
 | 4042 |     ;; | 
 | 4043 |   hppa*64*) | 
 | 4044 |     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]' | 
 | 4045 |     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
 | 4046 |     ;; | 
 | 4047 |   *) | 
 | 4048 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
 | 4049 |     lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
 | 4050 |     ;; | 
 | 4051 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4052 |   ;; | 
 | 4053 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4054 | irix5* | irix6* | nonstopux*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4055 |   case $LD in | 
 | 4056 |   *-32|*"-32 ") libmagic=32-bit;; | 
 | 4057 |   *-n32|*"-n32 ") libmagic=N32;; | 
 | 4058 |   *-64|*"-64 ") libmagic=64-bit;; | 
 | 4059 |   *) libmagic=never-match;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4060 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4061 |   lt_cv_deplibs_check_method=pass_all | 
 | 4062 |   ;; | 
 | 4063 |  | 
 | 4064 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4065 | linux*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4066 |   lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4067 |   ;; | 
 | 4068 |  | 
 | 4069 | netbsd*) | 
 | 4070 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4071 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4072 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4073 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4074 |   fi | 
 | 4075 |   ;; | 
 | 4076 |  | 
 | 4077 | newos6*) | 
 | 4078 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
 | 4079 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 4080 |   lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
 | 4081 |   ;; | 
 | 4082 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4083 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4084 |   lt_cv_deplibs_check_method=unknown | 
 | 4085 |   ;; | 
 | 4086 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4087 | openbsd*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4088 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4089 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4090 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4091 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4092 |   fi | 
 | 4093 |   ;; | 
 | 4094 |  | 
 | 4095 | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4096 |   lt_cv_deplibs_check_method=pass_all | 
 | 4097 |   ;; | 
 | 4098 |  | 
 | 4099 | sco3.2v5*) | 
 | 4100 |   lt_cv_deplibs_check_method=pass_all | 
 | 4101 |   ;; | 
 | 4102 |  | 
 | 4103 | solaris*) | 
 | 4104 |   lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4105 |   ;; | 
 | 4106 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4107 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 4108 |   case $host_vendor in | 
 | 4109 |   motorola) | 
 | 4110 |     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]' | 
 | 4111 |     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
 | 4112 |     ;; | 
 | 4113 |   ncr) | 
 | 4114 |     lt_cv_deplibs_check_method=pass_all | 
 | 4115 |     ;; | 
 | 4116 |   sequent) | 
 | 4117 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 4118 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
 | 4119 |     ;; | 
 | 4120 |   sni) | 
 | 4121 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 4122 |     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
 | 4123 |     lt_cv_file_magic_test_file=/lib/libc.so | 
 | 4124 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4125 |   siemens) | 
 | 4126 |     lt_cv_deplibs_check_method=pass_all | 
 | 4127 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4128 |   esac | 
 | 4129 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4130 |  | 
 | 4131 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 
 | 4132 |   lt_cv_deplibs_check_method=pass_all | 
 | 4133 |   ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4134 | esac | 
 | 4135 |  | 
 | 4136 | fi | 
 | 4137 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
 | 4138 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 
 | 4139 | file_magic_cmd=$lt_cv_file_magic_cmd | 
 | 4140 | deplibs_check_method=$lt_cv_deplibs_check_method | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4141 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4142 |  | 
 | 4143 |  | 
 | 4144 |  | 
 | 4145 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4146 | # If no C compiler was specified, use CC. | 
 | 4147 | LTCC=${LTCC-"$CC"} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4148 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4149 | # Allow CC to be a program name with arguments. | 
 | 4150 | compiler=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4151 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4152 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 4153 | if test "${enable_libtool_lock+set}" = set; then | 
 | 4154 |   enableval="$enable_libtool_lock" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4155 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4156 | fi; | 
 | 4157 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4158 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4159 | # Some flags need to be propagated to the compiler or linker for good | 
 | 4160 | # libtool support. | 
 | 4161 | case $host in | 
 | 4162 | ia64-*-hpux*) | 
 | 4163 |   # Find out which ABI we are using. | 
 | 4164 |   echo 'int i;' > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4165 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4166 |   (eval $ac_compile) 2>&5 | 
 | 4167 |   ac_status=$? | 
 | 4168 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4169 |   (exit $ac_status); }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4170 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4171 |     *ELF-32*) | 
 | 4172 |       HPUX_IA64_MODE="32" | 
 | 4173 |       ;; | 
 | 4174 |     *ELF-64*) | 
 | 4175 |       HPUX_IA64_MODE="64" | 
 | 4176 |       ;; | 
 | 4177 |     esac | 
 | 4178 |   fi | 
 | 4179 |   rm -rf conftest* | 
 | 4180 |   ;; | 
 | 4181 | *-*-irix6*) | 
 | 4182 |   # Find out which ABI we are using. | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 4183 |   echo '#line 4183 "configure"' > conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4184 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4185 |   (eval $ac_compile) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4186 |   ac_status=$? | 
 | 4187 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4188 |   (exit $ac_status); }; then | 
 | 4189 |    if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 4190 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4191 |     *32-bit*) | 
 | 4192 |       LD="${LD-ld} -melf32bsmip" | 
 | 4193 |       ;; | 
 | 4194 |     *N32*) | 
 | 4195 |       LD="${LD-ld} -melf32bmipn32" | 
 | 4196 |       ;; | 
 | 4197 |     *64-bit*) | 
 | 4198 |       LD="${LD-ld} -melf64bmip" | 
 | 4199 |       ;; | 
 | 4200 |     esac | 
 | 4201 |    else | 
 | 4202 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4203 |     *32-bit*) | 
 | 4204 |       LD="${LD-ld} -32" | 
 | 4205 |       ;; | 
 | 4206 |     *N32*) | 
 | 4207 |       LD="${LD-ld} -n32" | 
 | 4208 |       ;; | 
 | 4209 |     *64-bit*) | 
 | 4210 |       LD="${LD-ld} -64" | 
 | 4211 |       ;; | 
 | 4212 |     esac | 
 | 4213 |    fi | 
 | 4214 |   fi | 
 | 4215 |   rm -rf conftest* | 
 | 4216 |   ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4217 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4218 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
 | 4219 |   # Find out which ABI we are using. | 
 | 4220 |   echo 'int i;' > conftest.$ac_ext | 
 | 4221 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4222 |   (eval $ac_compile) 2>&5 | 
 | 4223 |   ac_status=$? | 
 | 4224 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4225 |   (exit $ac_status); }; then | 
 | 4226 |     case "`/usr/bin/file conftest.o`" in | 
 | 4227 |     *32-bit*) | 
 | 4228 |       case $host in | 
 | 4229 |         x86_64-*linux*) | 
 | 4230 |           LD="${LD-ld} -m elf_i386" | 
 | 4231 |           ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4232 |         ppc64-*linux*|powerpc64-*linux*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4233 |           LD="${LD-ld} -m elf32ppclinux" | 
 | 4234 |           ;; | 
 | 4235 |         s390x-*linux*) | 
 | 4236 |           LD="${LD-ld} -m elf_s390" | 
 | 4237 |           ;; | 
 | 4238 |         sparc64-*linux*) | 
 | 4239 |           LD="${LD-ld} -m elf32_sparc" | 
 | 4240 |           ;; | 
 | 4241 |       esac | 
 | 4242 |       ;; | 
 | 4243 |     *64-bit*) | 
 | 4244 |       case $host in | 
 | 4245 |         x86_64-*linux*) | 
 | 4246 |           LD="${LD-ld} -m elf_x86_64" | 
 | 4247 |           ;; | 
 | 4248 |         ppc*-*linux*|powerpc*-*linux*) | 
 | 4249 |           LD="${LD-ld} -m elf64ppc" | 
 | 4250 |           ;; | 
 | 4251 |         s390*-*linux*) | 
 | 4252 |           LD="${LD-ld} -m elf64_s390" | 
 | 4253 |           ;; | 
 | 4254 |         sparc*-*linux*) | 
 | 4255 |           LD="${LD-ld} -m elf64_sparc" | 
 | 4256 |           ;; | 
 | 4257 |       esac | 
 | 4258 |       ;; | 
 | 4259 |     esac | 
 | 4260 |   fi | 
 | 4261 |   rm -rf conftest* | 
 | 4262 |   ;; | 
 | 4263 |  | 
 | 4264 | *-*-sco3.2v5*) | 
 | 4265 |   # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
 | 4266 |   SAVE_CFLAGS="$CFLAGS" | 
 | 4267 |   CFLAGS="$CFLAGS -belf" | 
 | 4268 |   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
 | 4269 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 
 | 4270 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
 | 4271 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4272 | else | 
 | 4273 |   ac_ext=c | 
 | 4274 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4278 |  | 
 | 4279 |      cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4280 | /* confdefs.h.  */ | 
 | 4281 | _ACEOF | 
 | 4282 | cat confdefs.h >>conftest.$ac_ext | 
 | 4283 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4284 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4285 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4286 | int | 
 | 4287 | main () | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4288 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4289 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4290 |   ; | 
 | 4291 |   return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4292 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4293 | _ACEOF | 
 | 4294 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4296 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4297 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4298 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4299 |   rm -f conftest.er1 | 
 | 4300 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4301 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4302 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4303 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4304 | 			 || test ! -s conftest.err' | 
 | 4305 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4306 |   (eval $ac_try) 2>&5 | 
 | 4307 |   ac_status=$? | 
 | 4308 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4309 |   (exit $ac_status); }; } && | 
 | 4310 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4311 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4312 |   (eval $ac_try) 2>&5 | 
 | 4313 |   ac_status=$? | 
 | 4314 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4315 |   (exit $ac_status); }; }; then | 
 | 4316 |   lt_cv_cc_needs_belf=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4317 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4318 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4319 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4320 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4321 | lt_cv_cc_needs_belf=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4322 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4323 | rm -f conftest.err conftest.$ac_objext \ | 
 | 4324 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4325 |      ac_ext=c | 
 | 4326 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4330 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4331 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4332 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
 | 4333 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 
 | 4334 |   if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
 | 4335 |     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
 | 4336 |     CFLAGS="$SAVE_CFLAGS" | 
 | 4337 |   fi | 
 | 4338 |   ;; | 
 | 4339 |  | 
 | 4340 | esac | 
 | 4341 |  | 
 | 4342 | need_locks="$enable_libtool_lock" | 
 | 4343 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4344 |  | 
 | 4345 |  | 
 | 4346 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 4347 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 4348 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 4349 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4350 | else | 
 | 4351 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4352 | /* confdefs.h.  */ | 
 | 4353 | _ACEOF | 
 | 4354 | cat confdefs.h >>conftest.$ac_ext | 
 | 4355 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4356 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4357 | #include <stdlib.h> | 
 | 4358 | #include <stdarg.h> | 
 | 4359 | #include <string.h> | 
 | 4360 | #include <float.h> | 
 | 4361 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4362 | int | 
 | 4363 | main () | 
 | 4364 | { | 
 | 4365 |  | 
 | 4366 |   ; | 
 | 4367 |   return 0; | 
 | 4368 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4369 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4370 | rm -f conftest.$ac_objext | 
 | 4371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4372 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4373 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4374 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4375 |   rm -f conftest.er1 | 
 | 4376 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4377 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4378 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4379 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4380 | 			 || test ! -s conftest.err' | 
 | 4381 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4382 |   (eval $ac_try) 2>&5 | 
 | 4383 |   ac_status=$? | 
 | 4384 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4385 |   (exit $ac_status); }; } && | 
 | 4386 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4387 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4388 |   (eval $ac_try) 2>&5 | 
 | 4389 |   ac_status=$? | 
 | 4390 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4391 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4392 |   ac_cv_header_stdc=yes | 
 | 4393 | else | 
 | 4394 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4395 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4396 |  | 
 | 4397 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4398 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4400 |  | 
 | 4401 | if test $ac_cv_header_stdc = yes; then | 
 | 4402 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4403 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4404 | /* confdefs.h.  */ | 
 | 4405 | _ACEOF | 
 | 4406 | cat confdefs.h >>conftest.$ac_ext | 
 | 4407 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4408 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4409 | #include <string.h> | 
 | 4410 |  | 
 | 4411 | _ACEOF | 
 | 4412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4413 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4414 |   : | 
 | 4415 | else | 
 | 4416 |   ac_cv_header_stdc=no | 
 | 4417 | fi | 
 | 4418 | rm -f conftest* | 
 | 4419 |  | 
 | 4420 | fi | 
 | 4421 |  | 
 | 4422 | if test $ac_cv_header_stdc = yes; then | 
 | 4423 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4424 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4425 | /* confdefs.h.  */ | 
 | 4426 | _ACEOF | 
 | 4427 | cat confdefs.h >>conftest.$ac_ext | 
 | 4428 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4429 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4430 | #include <stdlib.h> | 
 | 4431 |  | 
 | 4432 | _ACEOF | 
 | 4433 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4434 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4435 |   : | 
 | 4436 | else | 
 | 4437 |   ac_cv_header_stdc=no | 
 | 4438 | fi | 
 | 4439 | rm -f conftest* | 
 | 4440 |  | 
 | 4441 | fi | 
 | 4442 |  | 
 | 4443 | if test $ac_cv_header_stdc = yes; then | 
 | 4444 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4445 |   if test "$cross_compiling" = yes; then | 
 | 4446 |   : | 
 | 4447 | else | 
 | 4448 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4449 | /* confdefs.h.  */ | 
 | 4450 | _ACEOF | 
 | 4451 | cat confdefs.h >>conftest.$ac_ext | 
 | 4452 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4453 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4454 | #include <ctype.h> | 
 | 4455 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4456 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4457 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4458 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4459 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4460 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 4461 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 4462 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4463 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 4464 | #endif | 
 | 4465 |  | 
 | 4466 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 4467 | int | 
 | 4468 | main () | 
 | 4469 | { | 
 | 4470 |   int i; | 
 | 4471 |   for (i = 0; i < 256; i++) | 
 | 4472 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4473 | 	|| toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4474 |       exit(2); | 
 | 4475 |   exit (0); | 
 | 4476 | } | 
 | 4477 | _ACEOF | 
 | 4478 | rm -f conftest$ac_exeext | 
 | 4479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 4480 |   (eval $ac_link) 2>&5 | 
 | 4481 |   ac_status=$? | 
 | 4482 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4483 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 4484 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4485 |   (eval $ac_try) 2>&5 | 
 | 4486 |   ac_status=$? | 
 | 4487 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4488 |   (exit $ac_status); }; }; then | 
 | 4489 |   : | 
 | 4490 | else | 
 | 4491 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 4492 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4493 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4494 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4495 | ( exit $ac_status ) | 
 | 4496 | ac_cv_header_stdc=no | 
 | 4497 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4498 | 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] | 4499 | fi | 
 | 4500 | fi | 
 | 4501 | fi | 
 | 4502 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 4503 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 4504 | if test $ac_cv_header_stdc = yes; then | 
 | 4505 |  | 
 | 4506 | cat >>confdefs.h <<\_ACEOF | 
 | 4507 | #define STDC_HEADERS 1 | 
 | 4508 | _ACEOF | 
 | 4509 |  | 
 | 4510 | fi | 
 | 4511 |  | 
 | 4512 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 4513 |  | 
 | 4514 |  | 
 | 4515 |  | 
 | 4516 |  | 
 | 4517 |  | 
 | 4518 |  | 
 | 4519 |  | 
 | 4520 |  | 
 | 4521 |  | 
 | 4522 | 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] | 4523 | 		  inttypes.h stdint.h unistd.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4524 | do | 
 | 4525 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 4526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 4527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4529 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4530 | else | 
 | 4531 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4532 | /* confdefs.h.  */ | 
 | 4533 | _ACEOF | 
 | 4534 | cat confdefs.h >>conftest.$ac_ext | 
 | 4535 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4536 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4537 | $ac_includes_default | 
 | 4538 |  | 
 | 4539 | #include <$ac_header> | 
 | 4540 | _ACEOF | 
 | 4541 | rm -f conftest.$ac_objext | 
 | 4542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4543 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4544 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4545 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4546 |   rm -f conftest.er1 | 
 | 4547 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4548 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4549 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4550 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4551 | 			 || test ! -s conftest.err' | 
 | 4552 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4553 |   (eval $ac_try) 2>&5 | 
 | 4554 |   ac_status=$? | 
 | 4555 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4556 |   (exit $ac_status); }; } && | 
 | 4557 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4558 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4559 |   (eval $ac_try) 2>&5 | 
 | 4560 |   ac_status=$? | 
 | 4561 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4562 |   (exit $ac_status); }; }; then | 
 | 4563 |   eval "$as_ac_Header=yes" | 
 | 4564 | else | 
 | 4565 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4566 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4567 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4568 | eval "$as_ac_Header=no" | 
 | 4569 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4571 | fi | 
 | 4572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4573 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 4574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 4575 |   cat >>confdefs.h <<_ACEOF | 
 | 4576 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4577 | _ACEOF | 
 | 4578 |  | 
 | 4579 | fi | 
 | 4580 |  | 
 | 4581 | done | 
 | 4582 |  | 
 | 4583 |  | 
 | 4584 |  | 
 | 4585 | for ac_header in dlfcn.h | 
 | 4586 | do | 
 | 4587 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4588 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4589 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4592 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4593 | fi | 
 | 4594 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4595 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4596 | else | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4597 |   # Is the header compilable? | 
 | 4598 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 4599 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 4600 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4601 | /* confdefs.h.  */ | 
 | 4602 | _ACEOF | 
 | 4603 | cat confdefs.h >>conftest.$ac_ext | 
 | 4604 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4605 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4606 | $ac_includes_default | 
 | 4607 | #include <$ac_header> | 
 | 4608 | _ACEOF | 
 | 4609 | rm -f conftest.$ac_objext | 
 | 4610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4611 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4612 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4613 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4614 |   rm -f conftest.er1 | 
 | 4615 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4616 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4617 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4618 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4619 | 			 || test ! -s conftest.err' | 
 | 4620 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4621 |   (eval $ac_try) 2>&5 | 
 | 4622 |   ac_status=$? | 
 | 4623 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4624 |   (exit $ac_status); }; } && | 
 | 4625 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4626 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4627 |   (eval $ac_try) 2>&5 | 
 | 4628 |   ac_status=$? | 
 | 4629 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4630 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4631 |   ac_header_compiler=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4632 | else | 
 | 4633 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4634 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4635 |  | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4636 | ac_header_compiler=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4637 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4639 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 4640 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 4641 |  | 
 | 4642 | # Is the header present? | 
 | 4643 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 4644 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 4645 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4646 | /* confdefs.h.  */ | 
 | 4647 | _ACEOF | 
 | 4648 | cat confdefs.h >>conftest.$ac_ext | 
 | 4649 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4650 | /* end confdefs.h.  */ | 
 | 4651 | #include <$ac_header> | 
 | 4652 | _ACEOF | 
 | 4653 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4654 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4655 |   ac_status=$? | 
 | 4656 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4657 |   rm -f conftest.er1 | 
 | 4658 |   cat conftest.err >&5 | 
 | 4659 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4660 |   (exit $ac_status); } >/dev/null; then | 
 | 4661 |   if test -s conftest.err; then | 
 | 4662 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4663 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4664 |   else | 
 | 4665 |     ac_cpp_err= | 
 | 4666 |   fi | 
 | 4667 | else | 
 | 4668 |   ac_cpp_err=yes | 
 | 4669 | fi | 
 | 4670 | if test -z "$ac_cpp_err"; then | 
 | 4671 |   ac_header_preproc=yes | 
 | 4672 | else | 
 | 4673 |   echo "$as_me: failed program was:" >&5 | 
 | 4674 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4675 |  | 
 | 4676 |   ac_header_preproc=no | 
 | 4677 | fi | 
 | 4678 | rm -f conftest.err conftest.$ac_ext | 
 | 4679 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 4680 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 4681 |  | 
 | 4682 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 4684 |   yes:no: ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4685 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 4686 | 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] | 4687 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 4688 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 4689 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4690 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4691 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4692 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 4693 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4694 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 4695 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 4696 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 4697 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 4698 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 4699 | 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] | 4700 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 4701 | 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] | 4702 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 4703 | 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] | 4704 |     ( | 
 | 4705 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4706 | ## ----------------------------------- ## | 
 | 4707 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 4708 | ## ----------------------------------- ## | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4709 | _ASBOX | 
 | 4710 |     ) | | 
 | 4711 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 4712 |     ;; | 
 | 4713 | esac | 
 | 4714 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 4715 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4717 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4718 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4719 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4720 | fi | 
 | 4721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4722 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4723 |  | 
 | 4724 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4725 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 4726 |   cat >>confdefs.h <<_ACEOF | 
 | 4727 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4728 | _ACEOF | 
 | 4729 |  | 
 | 4730 | fi | 
 | 4731 |  | 
 | 4732 | done | 
 | 4733 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4734 |  | 
 | 4735 |  | 
 | 4736 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 4737 |     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 4738 |     (test "X$CXX" != "Xg++"))) ; then | 
 | 4739 |   ac_ext=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4740 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 4741 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4742 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4743 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 4744 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
 | 4745 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 
 | 4746 | if test -z "$CXXCPP"; then | 
 | 4747 |   if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4748 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4749 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4750 |       # Double quotes because CXXCPP needs to be expanded | 
 | 4751 |     for CXXCPP in "$CXX -E" "/lib/cpp" | 
 | 4752 |     do | 
 | 4753 |       ac_preproc_ok=false | 
 | 4754 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 4755 | do | 
 | 4756 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4757 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4758 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4759 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4760 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4761 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4762 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4763 | /* confdefs.h.  */ | 
 | 4764 | _ACEOF | 
 | 4765 | cat confdefs.h >>conftest.$ac_ext | 
 | 4766 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4767 | /* end confdefs.h.  */ | 
 | 4768 | #ifdef __STDC__ | 
 | 4769 | # include <limits.h> | 
 | 4770 | #else | 
 | 4771 | # include <assert.h> | 
 | 4772 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4773 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4774 | _ACEOF | 
 | 4775 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4776 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4777 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4778 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4779 |   rm -f conftest.er1 | 
 | 4780 |   cat conftest.err >&5 | 
 | 4781 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4782 |   (exit $ac_status); } >/dev/null; then | 
 | 4783 |   if test -s conftest.err; then | 
 | 4784 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4785 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4786 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4787 |     ac_cpp_err= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4788 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4789 | else | 
 | 4790 |   ac_cpp_err=yes | 
 | 4791 | fi | 
 | 4792 | if test -z "$ac_cpp_err"; then | 
 | 4793 |   : | 
 | 4794 | else | 
 | 4795 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4796 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4797 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4798 |   # Broken: fails on valid input. | 
 | 4799 | continue | 
 | 4800 | fi | 
 | 4801 | rm -f conftest.err conftest.$ac_ext | 
 | 4802 |  | 
 | 4803 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 4804 |   # can be detected and how. | 
 | 4805 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4806 | /* confdefs.h.  */ | 
 | 4807 | _ACEOF | 
 | 4808 | cat confdefs.h >>conftest.$ac_ext | 
 | 4809 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4810 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4811 | #include <ac_nonexistent.h> | 
 | 4812 | _ACEOF | 
 | 4813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4814 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4815 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4816 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4817 |   rm -f conftest.er1 | 
 | 4818 |   cat conftest.err >&5 | 
 | 4819 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4820 |   (exit $ac_status); } >/dev/null; then | 
 | 4821 |   if test -s conftest.err; then | 
 | 4822 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4823 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4824 |   else | 
 | 4825 |     ac_cpp_err= | 
 | 4826 |   fi | 
 | 4827 | else | 
 | 4828 |   ac_cpp_err=yes | 
 | 4829 | fi | 
 | 4830 | if test -z "$ac_cpp_err"; then | 
 | 4831 |   # Broken: success on invalid input. | 
 | 4832 | continue | 
 | 4833 | else | 
 | 4834 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4835 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4836 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4837 |   # Passes both tests. | 
 | 4838 | ac_preproc_ok=: | 
 | 4839 | break | 
 | 4840 | fi | 
 | 4841 | rm -f conftest.err conftest.$ac_ext | 
 | 4842 |  | 
 | 4843 | done | 
 | 4844 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4845 | rm -f conftest.err conftest.$ac_ext | 
 | 4846 | if $ac_preproc_ok; then | 
 | 4847 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4848 | fi | 
 | 4849 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4850 |     done | 
 | 4851 |     ac_cv_prog_CXXCPP=$CXXCPP | 
 | 4852 |  | 
 | 4853 | fi | 
 | 4854 |   CXXCPP=$ac_cv_prog_CXXCPP | 
 | 4855 | else | 
 | 4856 |   ac_cv_prog_CXXCPP=$CXXCPP | 
 | 4857 | fi | 
 | 4858 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
 | 4859 | echo "${ECHO_T}$CXXCPP" >&6 | 
 | 4860 | ac_preproc_ok=false | 
 | 4861 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 4862 | do | 
 | 4863 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4864 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4865 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4866 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4867 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4868 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4869 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4870 | /* confdefs.h.  */ | 
 | 4871 | _ACEOF | 
 | 4872 | cat confdefs.h >>conftest.$ac_ext | 
 | 4873 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4874 | /* end confdefs.h.  */ | 
 | 4875 | #ifdef __STDC__ | 
 | 4876 | # include <limits.h> | 
 | 4877 | #else | 
 | 4878 | # include <assert.h> | 
 | 4879 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4880 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4881 | _ACEOF | 
 | 4882 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4883 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4884 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4885 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4886 |   rm -f conftest.er1 | 
 | 4887 |   cat conftest.err >&5 | 
 | 4888 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4889 |   (exit $ac_status); } >/dev/null; then | 
 | 4890 |   if test -s conftest.err; then | 
 | 4891 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4892 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4893 |   else | 
 | 4894 |     ac_cpp_err= | 
 | 4895 |   fi | 
 | 4896 | else | 
 | 4897 |   ac_cpp_err=yes | 
 | 4898 | fi | 
 | 4899 | if test -z "$ac_cpp_err"; then | 
 | 4900 |   : | 
 | 4901 | else | 
 | 4902 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4903 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4904 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4905 |   # Broken: fails on valid input. | 
 | 4906 | continue | 
 | 4907 | fi | 
 | 4908 | rm -f conftest.err conftest.$ac_ext | 
 | 4909 |  | 
 | 4910 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 4911 |   # can be detected and how. | 
 | 4912 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4913 | /* confdefs.h.  */ | 
 | 4914 | _ACEOF | 
 | 4915 | cat confdefs.h >>conftest.$ac_ext | 
 | 4916 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4917 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4918 | #include <ac_nonexistent.h> | 
 | 4919 | _ACEOF | 
 | 4920 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4921 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4922 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4923 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4924 |   rm -f conftest.er1 | 
 | 4925 |   cat conftest.err >&5 | 
 | 4926 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4927 |   (exit $ac_status); } >/dev/null; then | 
 | 4928 |   if test -s conftest.err; then | 
 | 4929 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4930 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4931 |   else | 
 | 4932 |     ac_cpp_err= | 
 | 4933 |   fi | 
 | 4934 | else | 
 | 4935 |   ac_cpp_err=yes | 
 | 4936 | fi | 
 | 4937 | if test -z "$ac_cpp_err"; then | 
 | 4938 |   # Broken: success on invalid input. | 
 | 4939 | continue | 
 | 4940 | else | 
 | 4941 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4942 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4943 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4944 |   # Passes both tests. | 
 | 4945 | ac_preproc_ok=: | 
 | 4946 | break | 
 | 4947 | fi | 
 | 4948 | rm -f conftest.err conftest.$ac_ext | 
 | 4949 |  | 
 | 4950 | done | 
 | 4951 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4952 | rm -f conftest.err conftest.$ac_ext | 
 | 4953 | if $ac_preproc_ok; then | 
 | 4954 |   : | 
 | 4955 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4956 |   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 4957 | See \`config.log' for more details." >&5 | 
 | 4958 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 4959 | See \`config.log' for more details." >&2;} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4960 |    { (exit 1); exit 1; }; } | 
 | 4961 | fi | 
 | 4962 |  | 
 | 4963 | ac_ext=cc | 
 | 4964 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 4965 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4966 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4967 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 4968 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4969 | fi | 
 | 4970 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4971 |  | 
 | 4972 | ac_ext=f | 
 | 4973 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 4974 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4975 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 4976 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4977 |   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] | 4978 |   do | 
 | 4979 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 4980 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 4981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4983 | if test "${ac_cv_prog_F77+set}" = set; then | 
 | 4984 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4985 | else | 
 | 4986 |   if test -n "$F77"; then | 
 | 4987 |   ac_cv_prog_F77="$F77" # Let the user override the test. | 
 | 4988 | else | 
 | 4989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4990 | for as_dir in $PATH | 
 | 4991 | do | 
 | 4992 |   IFS=$as_save_IFS | 
 | 4993 |   test -z "$as_dir" && as_dir=. | 
 | 4994 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4995 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4996 |     ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
 | 4997 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4998 |     break 2 | 
 | 4999 |   fi | 
 | 5000 | done | 
 | 5001 | done | 
 | 5002 |  | 
 | 5003 | fi | 
 | 5004 | fi | 
 | 5005 | F77=$ac_cv_prog_F77 | 
 | 5006 | if test -n "$F77"; then | 
 | 5007 |   echo "$as_me:$LINENO: result: $F77" >&5 | 
 | 5008 | echo "${ECHO_T}$F77" >&6 | 
 | 5009 | else | 
 | 5010 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5011 | echo "${ECHO_T}no" >&6 | 
 | 5012 | fi | 
 | 5013 |  | 
 | 5014 |     test -n "$F77" && break | 
 | 5015 |   done | 
 | 5016 | fi | 
 | 5017 | if test -z "$F77"; then | 
 | 5018 |   ac_ct_F77=$F77 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5019 |   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] | 5020 | do | 
 | 5021 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5022 | set dummy $ac_prog; ac_word=$2 | 
 | 5023 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5025 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
 | 5026 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5027 | else | 
 | 5028 |   if test -n "$ac_ct_F77"; then | 
 | 5029 |   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
 | 5030 | else | 
 | 5031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5032 | for as_dir in $PATH | 
 | 5033 | do | 
 | 5034 |   IFS=$as_save_IFS | 
 | 5035 |   test -z "$as_dir" && as_dir=. | 
 | 5036 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5037 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5038 |     ac_cv_prog_ac_ct_F77="$ac_prog" | 
 | 5039 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5040 |     break 2 | 
 | 5041 |   fi | 
 | 5042 | done | 
 | 5043 | done | 
 | 5044 |  | 
 | 5045 | fi | 
 | 5046 | fi | 
 | 5047 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
 | 5048 | if test -n "$ac_ct_F77"; then | 
 | 5049 |   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
 | 5050 | echo "${ECHO_T}$ac_ct_F77" >&6 | 
 | 5051 | else | 
 | 5052 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5053 | echo "${ECHO_T}no" >&6 | 
 | 5054 | fi | 
 | 5055 |  | 
 | 5056 |   test -n "$ac_ct_F77" && break | 
 | 5057 | done | 
 | 5058 |  | 
 | 5059 |   F77=$ac_ct_F77 | 
 | 5060 | fi | 
 | 5061 |  | 
 | 5062 |  | 
 | 5063 | # Provide some information about the compiler. | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 5064 | echo "$as_me:5064:" \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5065 |      "checking for Fortran 77 compiler version" >&5 | 
 | 5066 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 5067 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 5068 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 5069 |   ac_status=$? | 
 | 5070 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5071 |   (exit $ac_status); } | 
 | 5072 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 5073 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 5074 |   ac_status=$? | 
 | 5075 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5076 |   (exit $ac_status); } | 
 | 5077 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 5078 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 5079 |   ac_status=$? | 
 | 5080 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5081 |   (exit $ac_status); } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5082 | rm -f a.out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5083 |  | 
 | 5084 | # 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] | 5085 | # input file.  (Note that this only needs to work for GNU compilers.) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5086 | ac_save_ext=$ac_ext | 
 | 5087 | ac_ext=F | 
 | 5088 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
 | 5089 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 
 | 5090 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
 | 5091 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5092 | else | 
 | 5093 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5094 |       program main | 
 | 5095 | #ifndef __GNUC__ | 
 | 5096 |        choke me | 
 | 5097 | #endif | 
 | 5098 |  | 
 | 5099 |       end | 
 | 5100 | _ACEOF | 
 | 5101 | rm -f conftest.$ac_objext | 
 | 5102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5103 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5104 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5105 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5106 |   rm -f conftest.er1 | 
 | 5107 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5108 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5109 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5110 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 5111 | 			 || test ! -s conftest.err' | 
 | 5112 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5113 |   (eval $ac_try) 2>&5 | 
 | 5114 |   ac_status=$? | 
 | 5115 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5116 |   (exit $ac_status); }; } && | 
 | 5117 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5118 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5119 |   (eval $ac_try) 2>&5 | 
 | 5120 |   ac_status=$? | 
 | 5121 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5122 |   (exit $ac_status); }; }; then | 
 | 5123 |   ac_compiler_gnu=yes | 
 | 5124 | else | 
 | 5125 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5126 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5127 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5128 | ac_compiler_gnu=no | 
 | 5129 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5131 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
 | 5132 |  | 
 | 5133 | fi | 
 | 5134 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
 | 5135 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 
 | 5136 | ac_ext=$ac_save_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5137 | ac_test_FFLAGS=${FFLAGS+set} | 
 | 5138 | ac_save_FFLAGS=$FFLAGS | 
 | 5139 | FFLAGS= | 
 | 5140 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
 | 5141 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 
 | 5142 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
 | 5143 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5144 | else | 
 | 5145 |   FFLAGS=-g | 
 | 5146 | cat >conftest.$ac_ext <<_ACEOF | 
 | 5147 |       program main | 
 | 5148 |  | 
 | 5149 |       end | 
 | 5150 | _ACEOF | 
 | 5151 | rm -f conftest.$ac_objext | 
 | 5152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5153 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5154 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5155 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5156 |   rm -f conftest.er1 | 
 | 5157 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5158 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5159 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5160 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 5161 | 			 || test ! -s conftest.err' | 
 | 5162 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5163 |   (eval $ac_try) 2>&5 | 
 | 5164 |   ac_status=$? | 
 | 5165 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5166 |   (exit $ac_status); }; } && | 
 | 5167 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5168 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5169 |   (eval $ac_try) 2>&5 | 
 | 5170 |   ac_status=$? | 
 | 5171 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5172 |   (exit $ac_status); }; }; then | 
 | 5173 |   ac_cv_prog_f77_g=yes | 
 | 5174 | else | 
 | 5175 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5176 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5177 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5178 | ac_cv_prog_f77_g=no | 
 | 5179 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5181 |  | 
 | 5182 | fi | 
 | 5183 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
 | 5184 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 
 | 5185 | if test "$ac_test_FFLAGS" = set; then | 
 | 5186 |   FFLAGS=$ac_save_FFLAGS | 
 | 5187 | elif test $ac_cv_prog_f77_g = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5188 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5189 |     FFLAGS="-g -O2" | 
 | 5190 |   else | 
 | 5191 |     FFLAGS="-g" | 
 | 5192 |   fi | 
 | 5193 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5194 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5195 |     FFLAGS="-O2" | 
 | 5196 |   else | 
 | 5197 |     FFLAGS= | 
 | 5198 |   fi | 
 | 5199 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5200 |  | 
 | 5201 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5202 | ac_ext=c | 
 | 5203 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5207 |  | 
 | 5208 |  | 
 | 5209 |  | 
 | 5210 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
 | 5211 |  | 
 | 5212 | # find the maximum length of command line arguments | 
 | 5213 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
 | 5214 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 
 | 5215 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
 | 5216 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5217 | else | 
 | 5218 |     i=0 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5219 |   teststring="ABCD" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5220 |  | 
 | 5221 |   case $build_os in | 
 | 5222 |   msdosdjgpp*) | 
 | 5223 |     # On DJGPP, this test can blow up pretty badly due to problems in libc | 
 | 5224 |     # (any single argument exceeding 2000 bytes causes a buffer overrun | 
 | 5225 |     # during glob expansion).  Even if it were fixed, the result of this | 
 | 5226 |     # check would be larger than it should be. | 
 | 5227 |     lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
 | 5228 |     ;; | 
 | 5229 |  | 
 | 5230 |   gnu*) | 
 | 5231 |     # Under GNU Hurd, this test is not required because there is | 
 | 5232 |     # no limit to the length of command line arguments. | 
 | 5233 |     # Libtool will interpret -1 as no limit whatsoever | 
 | 5234 |     lt_cv_sys_max_cmd_len=-1; | 
 | 5235 |     ;; | 
 | 5236 |  | 
 | 5237 |   cygwin* | mingw*) | 
 | 5238 |     # On Win9x/ME, this test blows up -- it succeeds, but takes | 
 | 5239 |     # about 5 minutes as the teststring grows exponentially. | 
 | 5240 |     # Worse, since 9x/ME are not pre-emptively multitasking, | 
 | 5241 |     # you end up with a "frozen" computer, even though with patience | 
 | 5242 |     # the test eventually succeeds (with a max line length of 256k). | 
 | 5243 |     # Instead, let's just punt: use the minimum linelength reported by | 
 | 5244 |     # all of the supported platforms: 8192 (on NT/2K/XP). | 
 | 5245 |     lt_cv_sys_max_cmd_len=8192; | 
 | 5246 |     ;; | 
 | 5247 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5248 |   amigaos*) | 
 | 5249 |     # On AmigaOS with pdksh, this test takes hours, literally. | 
 | 5250 |     # So we just punt and use a minimum line length of 8192. | 
 | 5251 |     lt_cv_sys_max_cmd_len=8192; | 
 | 5252 |     ;; | 
 | 5253 |  | 
 | 5254 |   netbsd* | freebsd* | openbsd* | darwin* ) | 
 | 5255 |     # This has been around since 386BSD, at least.  Likely further. | 
 | 5256 |     if test -x /sbin/sysctl; then | 
 | 5257 |       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
 | 5258 |     elif test -x /usr/sbin/sysctl; then | 
 | 5259 |       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
 | 5260 |     else | 
 | 5261 |       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | 
 | 5262 |     fi | 
 | 5263 |     # And add a safety zone | 
 | 5264 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
 | 5265 |     ;; | 
 | 5266 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5267 |  *) | 
 | 5268 |     # If test is not a shell built-in, we'll probably end up computing a | 
 | 5269 |     # maximum length that is only half of the actual maximum length, but | 
 | 5270 |     # we can't tell. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5271 |     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
 | 5272 |     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | 
 | 5273 | 	       = "XX$teststring") >/dev/null 2>&1 && | 
 | 5274 | 	    new_result=`expr "X$teststring" : ".*" 2>&1` && | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5275 | 	    lt_cv_sys_max_cmd_len=$new_result && | 
 | 5276 | 	    test $i != 17 # 1/2 MB should be enough | 
 | 5277 |     do | 
 | 5278 |       i=`expr $i + 1` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5279 |       teststring=$teststring$teststring | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5280 |     done | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5281 |     teststring= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5282 |     # Add a significant safety factor because C++ compilers can tack on massive | 
 | 5283 |     # amounts of additional arguments before passing them to the linker. | 
 | 5284 |     # It appears as though 1/2 is a usable value. | 
 | 5285 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
 | 5286 |     ;; | 
 | 5287 |   esac | 
 | 5288 |  | 
 | 5289 | fi | 
 | 5290 |  | 
 | 5291 | if test -n $lt_cv_sys_max_cmd_len ; then | 
 | 5292 |   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
 | 5293 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 
 | 5294 | else | 
 | 5295 |   echo "$as_me:$LINENO: result: none" >&5 | 
 | 5296 | echo "${ECHO_T}none" >&6 | 
 | 5297 | fi | 
 | 5298 |  | 
 | 5299 |  | 
 | 5300 |  | 
 | 5301 |  | 
 | 5302 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
 | 5303 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 5304 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
 | 5305 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 5306 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5307 | else | 
 | 5308 |  | 
 | 5309 | # These are sane defaults that work on at least a few old systems. | 
 | 5310 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 5311 |  | 
 | 5312 | # Character class describing NM global symbol codes. | 
 | 5313 | symcode='[BCDEGRST]' | 
 | 5314 |  | 
 | 5315 | # Regexp to match symbols that can be accessed directly from C. | 
 | 5316 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 5317 |  | 
 | 5318 | # Transform the above into a raw symbol and a C symbol. | 
 | 5319 | symxfrm='\1 \2\3 \3' | 
 | 5320 |  | 
 | 5321 | # Transform an extracted symbol line into a proper C declaration | 
 | 5322 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 5323 |  | 
 | 5324 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 5325 | 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'" | 
 | 5326 |  | 
 | 5327 | # Define system-specific variables. | 
 | 5328 | case $host_os in | 
 | 5329 | aix*) | 
 | 5330 |   symcode='[BCDT]' | 
 | 5331 |   ;; | 
 | 5332 | cygwin* | mingw* | pw32*) | 
 | 5333 |   symcode='[ABCDGISTW]' | 
 | 5334 |   ;; | 
 | 5335 | hpux*) # Its linker distinguishes data from code symbols | 
 | 5336 |   if test "$host_cpu" = ia64; then | 
 | 5337 |     symcode='[ABCDEGRST]' | 
 | 5338 |   fi | 
 | 5339 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 5340 |   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'" | 
 | 5341 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5342 | linux*) | 
 | 5343 |   if test "$host_cpu" = ia64; then | 
 | 5344 |     symcode='[ABCDGIRSTW]' | 
 | 5345 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 5346 |     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'" | 
 | 5347 |   fi | 
 | 5348 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5349 | irix* | nonstopux*) | 
 | 5350 |   symcode='[BCDEGRST]' | 
 | 5351 |   ;; | 
 | 5352 | osf*) | 
 | 5353 |   symcode='[BCDEGQRST]' | 
 | 5354 |   ;; | 
 | 5355 | solaris* | sysv5*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5356 |   symcode='[BDRT]' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5357 |   ;; | 
 | 5358 | sysv4) | 
 | 5359 |   symcode='[DFNSTU]' | 
 | 5360 |   ;; | 
 | 5361 | esac | 
 | 5362 |  | 
 | 5363 | # Handle CRLF in mingw tool chain | 
 | 5364 | opt_cr= | 
 | 5365 | case $build_os in | 
 | 5366 | mingw*) | 
 | 5367 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 5368 |   ;; | 
 | 5369 | esac | 
 | 5370 |  | 
 | 5371 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 5372 | case `$NM -V 2>&1` in | 
 | 5373 | *GNU* | *'with BFD'*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5374 |   symcode='[ABCDGIRSTW]' ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5375 | esac | 
 | 5376 |  | 
 | 5377 | # Try without a prefix undercore, then with it. | 
 | 5378 | for ac_symprfx in "" "_"; do | 
 | 5379 |  | 
 | 5380 |   # Write the raw and C identifiers. | 
 | 5381 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
 | 5382 |  | 
 | 5383 |   # Check to see that the pipe works correctly. | 
 | 5384 |   pipe_works=no | 
 | 5385 |  | 
 | 5386 |   rm -f conftest* | 
 | 5387 |   cat > conftest.$ac_ext <<EOF | 
 | 5388 | #ifdef __cplusplus | 
 | 5389 | extern "C" { | 
 | 5390 | #endif | 
 | 5391 | char nm_test_var; | 
 | 5392 | void nm_test_func(){} | 
 | 5393 | #ifdef __cplusplus | 
 | 5394 | } | 
 | 5395 | #endif | 
 | 5396 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 5397 | EOF | 
 | 5398 |  | 
 | 5399 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 5400 |   (eval $ac_compile) 2>&5 | 
 | 5401 |   ac_status=$? | 
 | 5402 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5403 |   (exit $ac_status); }; then | 
 | 5404 |     # Now try to grab the symbols. | 
 | 5405 |     nlist=conftest.nm | 
 | 5406 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 5407 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 5408 |   ac_status=$? | 
 | 5409 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5410 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 5411 |       # Try sorting and uniquifying the output. | 
 | 5412 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 5413 | 	mv -f "$nlist"T "$nlist" | 
 | 5414 |       else | 
 | 5415 | 	rm -f "$nlist"T | 
 | 5416 |       fi | 
 | 5417 |  | 
 | 5418 |       # Make sure that we snagged all the symbols we need. | 
 | 5419 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 5420 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 5421 | 	  cat <<EOF > conftest.$ac_ext | 
 | 5422 | #ifdef __cplusplus | 
 | 5423 | extern "C" { | 
 | 5424 | #endif | 
 | 5425 |  | 
 | 5426 | EOF | 
 | 5427 | 	  # Now generate the symbol file. | 
 | 5428 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 5429 |  | 
 | 5430 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 5431 | #if defined (__STDC__) && __STDC__ | 
 | 5432 | # define lt_ptr_t void * | 
 | 5433 | #else | 
 | 5434 | # define lt_ptr_t char * | 
 | 5435 | # define const | 
 | 5436 | #endif | 
 | 5437 |  | 
 | 5438 | /* The mapping between symbol names and symbols. */ | 
 | 5439 | const struct { | 
 | 5440 |   const char *name; | 
 | 5441 |   lt_ptr_t address; | 
 | 5442 | } | 
 | 5443 | lt_preloaded_symbols[] = | 
 | 5444 | { | 
 | 5445 | EOF | 
 | 5446 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 5447 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 5448 |   {0, (lt_ptr_t) 0} | 
 | 5449 | }; | 
 | 5450 |  | 
 | 5451 | #ifdef __cplusplus | 
 | 5452 | } | 
 | 5453 | #endif | 
 | 5454 | EOF | 
 | 5455 | 	  # Now try linking the two files. | 
 | 5456 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 5457 | 	  lt_save_LIBS="$LIBS" | 
 | 5458 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 5459 | 	  LIBS="conftstm.$ac_objext" | 
 | 5460 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 5461 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 5462 |   (eval $ac_link) 2>&5 | 
 | 5463 |   ac_status=$? | 
 | 5464 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5465 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 5466 | 	    pipe_works=yes | 
 | 5467 | 	  fi | 
 | 5468 | 	  LIBS="$lt_save_LIBS" | 
 | 5469 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 5470 | 	else | 
 | 5471 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 5472 | 	fi | 
 | 5473 |       else | 
 | 5474 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 5475 |       fi | 
 | 5476 |     else | 
 | 5477 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 5478 |     fi | 
 | 5479 |   else | 
 | 5480 |     echo "$progname: failed program was:" >&5 | 
 | 5481 |     cat conftest.$ac_ext >&5 | 
 | 5482 |   fi | 
 | 5483 |   rm -f conftest* conftst* | 
 | 5484 |  | 
 | 5485 |   # Do not use the global_symbol_pipe unless it works. | 
 | 5486 |   if test "$pipe_works" = yes; then | 
 | 5487 |     break | 
 | 5488 |   else | 
 | 5489 |     lt_cv_sys_global_symbol_pipe= | 
 | 5490 |   fi | 
 | 5491 | done | 
 | 5492 |  | 
 | 5493 | fi | 
 | 5494 |  | 
 | 5495 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 5496 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 5497 | fi | 
 | 5498 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
 | 5499 |   echo "$as_me:$LINENO: result: failed" >&5 | 
 | 5500 | echo "${ECHO_T}failed" >&6 | 
 | 5501 | else | 
 | 5502 |   echo "$as_me:$LINENO: result: ok" >&5 | 
 | 5503 | echo "${ECHO_T}ok" >&6 | 
 | 5504 | fi | 
 | 5505 |  | 
 | 5506 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 5507 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
 | 5508 | if test "${lt_cv_objdir+set}" = set; then | 
 | 5509 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5510 | else | 
 | 5511 |   rm -f .libs 2>/dev/null | 
 | 5512 | mkdir .libs 2>/dev/null | 
 | 5513 | if test -d .libs; then | 
 | 5514 |   lt_cv_objdir=.libs | 
 | 5515 | else | 
 | 5516 |   # MS-DOS does not allow filenames that begin with a dot. | 
 | 5517 |   lt_cv_objdir=_libs | 
 | 5518 | fi | 
 | 5519 | rmdir .libs 2>/dev/null | 
 | 5520 | fi | 
 | 5521 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
 | 5522 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 
 | 5523 | objdir=$lt_cv_objdir | 
 | 5524 |  | 
 | 5525 |  | 
 | 5526 |  | 
 | 5527 |  | 
 | 5528 |  | 
 | 5529 | case $host_os in | 
 | 5530 | aix3*) | 
 | 5531 |   # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 5532 |   # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 5533 |   # vanish in a puff of smoke. | 
 | 5534 |   if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 5535 |     COLLECT_NAMES= | 
 | 5536 |     export COLLECT_NAMES | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5537 |   fi | 
 | 5538 |   ;; | 
 | 5539 | esac | 
 | 5540 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5541 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
 | 5542 | # metacharacters that are still active within double-quoted strings. | 
 | 5543 | Xsed='sed -e s/^X//' | 
 | 5544 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
 | 5545 |  | 
 | 5546 | # Same as above, but do not quote variable references. | 
 | 5547 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
 | 5548 |  | 
 | 5549 | # Sed substitution to delay expansion of an escaped shell variable in a | 
 | 5550 | # double_quote_subst'ed string. | 
 | 5551 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
 | 5552 |  | 
 | 5553 | # Sed substitution to avoid accidental globbing in evaled expressions | 
 | 5554 | no_glob_subst='s/\*/\\\*/g' | 
 | 5555 |  | 
 | 5556 | # Constants: | 
 | 5557 | rm="rm -f" | 
 | 5558 |  | 
 | 5559 | # Global variables: | 
| Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 5560 | default_ofile=mklib | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5561 | can_build_shared=yes | 
 | 5562 |  | 
 | 5563 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
 | 5564 | # which needs '.lib'). | 
 | 5565 | libext=a | 
 | 5566 | ltmain="$ac_aux_dir/ltmain.sh" | 
 | 5567 | ofile="$default_ofile" | 
 | 5568 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
 | 5569 |  | 
 | 5570 | if test -n "$ac_tool_prefix"; then | 
 | 5571 |   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
 | 5572 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
 | 5573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5575 | if test "${ac_cv_prog_AR+set}" = set; then | 
 | 5576 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5577 | else | 
 | 5578 |   if test -n "$AR"; then | 
 | 5579 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5580 | else | 
 | 5581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5582 | for as_dir in $PATH | 
 | 5583 | do | 
 | 5584 |   IFS=$as_save_IFS | 
 | 5585 |   test -z "$as_dir" && as_dir=. | 
 | 5586 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5587 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5588 |     ac_cv_prog_AR="${ac_tool_prefix}ar" | 
 | 5589 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5590 |     break 2 | 
 | 5591 |   fi | 
 | 5592 | done | 
 | 5593 | done | 
 | 5594 |  | 
 | 5595 | fi | 
 | 5596 | fi | 
 | 5597 | AR=$ac_cv_prog_AR | 
 | 5598 | if test -n "$AR"; then | 
 | 5599 |   echo "$as_me:$LINENO: result: $AR" >&5 | 
 | 5600 | echo "${ECHO_T}$AR" >&6 | 
 | 5601 | else | 
 | 5602 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5603 | echo "${ECHO_T}no" >&6 | 
 | 5604 | fi | 
 | 5605 |  | 
 | 5606 | fi | 
 | 5607 | if test -z "$ac_cv_prog_AR"; then | 
 | 5608 |   ac_ct_AR=$AR | 
 | 5609 |   # Extract the first word of "ar", so it can be a program name with args. | 
 | 5610 | set dummy ar; ac_word=$2 | 
 | 5611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5613 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
 | 5614 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5615 | else | 
 | 5616 |   if test -n "$ac_ct_AR"; then | 
 | 5617 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 5618 | else | 
 | 5619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5620 | for as_dir in $PATH | 
 | 5621 | do | 
 | 5622 |   IFS=$as_save_IFS | 
 | 5623 |   test -z "$as_dir" && as_dir=. | 
 | 5624 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5625 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5626 |     ac_cv_prog_ac_ct_AR="ar" | 
 | 5627 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5628 |     break 2 | 
 | 5629 |   fi | 
 | 5630 | done | 
 | 5631 | done | 
 | 5632 |  | 
 | 5633 |   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | 
 | 5634 | fi | 
 | 5635 | fi | 
 | 5636 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 5637 | if test -n "$ac_ct_AR"; then | 
 | 5638 |   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
 | 5639 | echo "${ECHO_T}$ac_ct_AR" >&6 | 
 | 5640 | else | 
 | 5641 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5642 | echo "${ECHO_T}no" >&6 | 
 | 5643 | fi | 
 | 5644 |  | 
 | 5645 |   AR=$ac_ct_AR | 
 | 5646 | else | 
 | 5647 |   AR="$ac_cv_prog_AR" | 
 | 5648 | fi | 
 | 5649 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5650 | if test -n "$ac_tool_prefix"; then | 
 | 5651 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5652 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 5653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5655 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 5656 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5657 | else | 
 | 5658 |   if test -n "$RANLIB"; then | 
 | 5659 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5660 | else | 
 | 5661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5662 | for as_dir in $PATH | 
 | 5663 | do | 
 | 5664 |   IFS=$as_save_IFS | 
 | 5665 |   test -z "$as_dir" && as_dir=. | 
 | 5666 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5667 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5668 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 5669 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5670 |     break 2 | 
 | 5671 |   fi | 
 | 5672 | done | 
 | 5673 | done | 
 | 5674 |  | 
 | 5675 | fi | 
 | 5676 | fi | 
 | 5677 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5678 | if test -n "$RANLIB"; then | 
 | 5679 |   echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 5680 | echo "${ECHO_T}$RANLIB" >&6 | 
 | 5681 | else | 
 | 5682 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5683 | echo "${ECHO_T}no" >&6 | 
 | 5684 | fi | 
 | 5685 |  | 
 | 5686 | fi | 
 | 5687 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5688 |   ac_ct_RANLIB=$RANLIB | 
 | 5689 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5690 | set dummy ranlib; ac_word=$2 | 
 | 5691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5693 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 5694 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5695 | else | 
 | 5696 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5697 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5698 | else | 
 | 5699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5700 | for as_dir in $PATH | 
 | 5701 | do | 
 | 5702 |   IFS=$as_save_IFS | 
 | 5703 |   test -z "$as_dir" && as_dir=. | 
 | 5704 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5705 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5706 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 5707 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5708 |     break 2 | 
 | 5709 |   fi | 
 | 5710 | done | 
 | 5711 | done | 
 | 5712 |  | 
 | 5713 |   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
 | 5714 | fi | 
 | 5715 | fi | 
 | 5716 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5717 | if test -n "$ac_ct_RANLIB"; then | 
 | 5718 |   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 5719 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
 | 5720 | else | 
 | 5721 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5722 | echo "${ECHO_T}no" >&6 | 
 | 5723 | fi | 
 | 5724 |  | 
 | 5725 |   RANLIB=$ac_ct_RANLIB | 
 | 5726 | else | 
 | 5727 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5728 | fi | 
 | 5729 |  | 
 | 5730 | if test -n "$ac_tool_prefix"; then | 
 | 5731 |   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 5732 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 5733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5735 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
 | 5736 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5737 | else | 
 | 5738 |   if test -n "$STRIP"; then | 
 | 5739 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 5740 | else | 
 | 5741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5742 | for as_dir in $PATH | 
 | 5743 | do | 
 | 5744 |   IFS=$as_save_IFS | 
 | 5745 |   test -z "$as_dir" && as_dir=. | 
 | 5746 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5747 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5748 |     ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 5749 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5750 |     break 2 | 
 | 5751 |   fi | 
 | 5752 | done | 
 | 5753 | done | 
 | 5754 |  | 
 | 5755 | fi | 
 | 5756 | fi | 
 | 5757 | STRIP=$ac_cv_prog_STRIP | 
 | 5758 | if test -n "$STRIP"; then | 
 | 5759 |   echo "$as_me:$LINENO: result: $STRIP" >&5 | 
 | 5760 | echo "${ECHO_T}$STRIP" >&6 | 
 | 5761 | else | 
 | 5762 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5763 | echo "${ECHO_T}no" >&6 | 
 | 5764 | fi | 
 | 5765 |  | 
 | 5766 | fi | 
 | 5767 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 5768 |   ac_ct_STRIP=$STRIP | 
 | 5769 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 5770 | set dummy strip; ac_word=$2 | 
 | 5771 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5773 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
 | 5774 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5775 | else | 
 | 5776 |   if test -n "$ac_ct_STRIP"; then | 
 | 5777 |   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
 | 5778 | else | 
 | 5779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5780 | for as_dir in $PATH | 
 | 5781 | do | 
 | 5782 |   IFS=$as_save_IFS | 
 | 5783 |   test -z "$as_dir" && as_dir=. | 
 | 5784 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5785 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5786 |     ac_cv_prog_ac_ct_STRIP="strip" | 
 | 5787 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5788 |     break 2 | 
 | 5789 |   fi | 
 | 5790 | done | 
 | 5791 | done | 
 | 5792 |  | 
 | 5793 |   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | 
 | 5794 | fi | 
 | 5795 | fi | 
 | 5796 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
 | 5797 | if test -n "$ac_ct_STRIP"; then | 
 | 5798 |   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
 | 5799 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 
 | 5800 | else | 
 | 5801 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5802 | echo "${ECHO_T}no" >&6 | 
 | 5803 | fi | 
 | 5804 |  | 
 | 5805 |   STRIP=$ac_ct_STRIP | 
 | 5806 | else | 
 | 5807 |   STRIP="$ac_cv_prog_STRIP" | 
 | 5808 | fi | 
 | 5809 |  | 
 | 5810 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5811 | old_CC="$CC" | 
 | 5812 | old_CFLAGS="$CFLAGS" | 
 | 5813 |  | 
 | 5814 | # Set sane defaults for various variables | 
 | 5815 | test -z "$AR" && AR=ar | 
 | 5816 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
 | 5817 | test -z "$AS" && AS=as | 
 | 5818 | test -z "$CC" && CC=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5819 | test -z "$LTCC" && LTCC=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5820 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
 | 5821 | test -z "$LD" && LD=ld | 
 | 5822 | test -z "$LN_S" && LN_S="ln -s" | 
 | 5823 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
 | 5824 | test -z "$NM" && NM=nm | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5825 | test -z "$SED" && SED=sed | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5826 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
 | 5827 | test -z "$RANLIB" && RANLIB=: | 
 | 5828 | test -z "$STRIP" && STRIP=: | 
 | 5829 | test -z "$ac_objext" && ac_objext=o | 
 | 5830 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5831 | # Determine commands to create old-style static archives. | 
 | 5832 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
 | 5833 | old_postinstall_cmds='chmod 644 $oldlib' | 
 | 5834 | old_postuninstall_cmds= | 
 | 5835 |  | 
 | 5836 | if test -n "$RANLIB"; then | 
 | 5837 |   case $host_os in | 
 | 5838 |   openbsd*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5839 |     old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5840 |     ;; | 
 | 5841 |   *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5842 |     old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5843 |     ;; | 
 | 5844 |   esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5845 |   old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5846 | fi | 
 | 5847 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5848 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 5849 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5850 | # Only perform the check for file, if the check method requires it | 
 | 5851 | case $deplibs_check_method in | 
 | 5852 | file_magic*) | 
 | 5853 |   if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
 | 5854 |     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
 | 5855 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 
 | 5856 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 5857 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5858 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5859 |   case $MAGIC_CMD in | 
 | 5860 | [\\/*] |  ?:[\\/]*) | 
 | 5861 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 5862 |   ;; | 
 | 5863 | *) | 
 | 5864 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 5865 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 5866 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 5867 |   for ac_dir in $ac_dummy; do | 
 | 5868 |     IFS="$lt_save_ifs" | 
 | 5869 |     test -z "$ac_dir" && ac_dir=. | 
 | 5870 |     if test -f $ac_dir/${ac_tool_prefix}file; then | 
 | 5871 |       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
 | 5872 |       if test -n "$file_magic_test_file"; then | 
 | 5873 | 	case $deplibs_check_method in | 
 | 5874 | 	"file_magic "*) | 
 | 5875 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 5876 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5877 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 5878 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 5879 | 	    : | 
 | 5880 | 	  else | 
 | 5881 | 	    cat <<EOF 1>&2 | 
 | 5882 |  | 
 | 5883 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 5884 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 5885 | *** The result is that libtool may fail to recognize shared libraries | 
 | 5886 | *** as such.  This will affect the creation of libtool libraries that | 
 | 5887 | *** depend on shared libraries, but programs linked with such libtool | 
 | 5888 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 5889 | *** may want to report the problem to your system manager and/or to | 
 | 5890 | *** bug-libtool@gnu.org | 
 | 5891 |  | 
 | 5892 | EOF | 
 | 5893 | 	  fi ;; | 
 | 5894 | 	esac | 
 | 5895 |       fi | 
 | 5896 |       break | 
 | 5897 |     fi | 
 | 5898 |   done | 
 | 5899 |   IFS="$lt_save_ifs" | 
 | 5900 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 5901 |   ;; | 
 | 5902 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5903 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5904 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5905 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5906 | if test -n "$MAGIC_CMD"; then | 
 | 5907 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 5908 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 5909 | else | 
 | 5910 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5911 | echo "${ECHO_T}no" >&6 | 
 | 5912 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5913 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5914 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
 | 5915 |   if test -n "$ac_tool_prefix"; then | 
 | 5916 |     echo "$as_me:$LINENO: checking for file" >&5 | 
 | 5917 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 
 | 5918 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 5919 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5920 | else | 
 | 5921 |   case $MAGIC_CMD in | 
 | 5922 | [\\/*] |  ?:[\\/]*) | 
 | 5923 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 5924 |   ;; | 
 | 5925 | *) | 
 | 5926 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 5927 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 5928 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 5929 |   for ac_dir in $ac_dummy; do | 
 | 5930 |     IFS="$lt_save_ifs" | 
 | 5931 |     test -z "$ac_dir" && ac_dir=. | 
 | 5932 |     if test -f $ac_dir/file; then | 
 | 5933 |       lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
 | 5934 |       if test -n "$file_magic_test_file"; then | 
 | 5935 | 	case $deplibs_check_method in | 
 | 5936 | 	"file_magic "*) | 
 | 5937 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 5938 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5939 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 5940 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 5941 | 	    : | 
 | 5942 | 	  else | 
 | 5943 | 	    cat <<EOF 1>&2 | 
 | 5944 |  | 
 | 5945 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 5946 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 5947 | *** The result is that libtool may fail to recognize shared libraries | 
 | 5948 | *** as such.  This will affect the creation of libtool libraries that | 
 | 5949 | *** depend on shared libraries, but programs linked with such libtool | 
 | 5950 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 5951 | *** may want to report the problem to your system manager and/or to | 
 | 5952 | *** bug-libtool@gnu.org | 
 | 5953 |  | 
 | 5954 | EOF | 
 | 5955 | 	  fi ;; | 
 | 5956 | 	esac | 
 | 5957 |       fi | 
 | 5958 |       break | 
 | 5959 |     fi | 
 | 5960 |   done | 
 | 5961 |   IFS="$lt_save_ifs" | 
 | 5962 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 5963 |   ;; | 
 | 5964 | esac | 
 | 5965 | fi | 
 | 5966 |  | 
 | 5967 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5968 | if test -n "$MAGIC_CMD"; then | 
 | 5969 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 5970 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 5971 | else | 
 | 5972 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5973 | echo "${ECHO_T}no" >&6 | 
 | 5974 | fi | 
 | 5975 |  | 
 | 5976 |   else | 
 | 5977 |     MAGIC_CMD=: | 
 | 5978 |   fi | 
 | 5979 | fi | 
 | 5980 |  | 
 | 5981 |   fi | 
 | 5982 |   ;; | 
 | 5983 | esac | 
 | 5984 |  | 
 | 5985 | enable_dlopen=no | 
 | 5986 | enable_win32_dll=no | 
 | 5987 |  | 
 | 5988 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 5989 | if test "${enable_libtool_lock+set}" = set; then | 
 | 5990 |   enableval="$enable_libtool_lock" | 
 | 5991 |  | 
 | 5992 | fi; | 
 | 5993 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 5994 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5995 |  | 
 | 5996 | # Check whether --with-pic or --without-pic was given. | 
 | 5997 | if test "${with_pic+set}" = set; then | 
 | 5998 |   withval="$with_pic" | 
 | 5999 |   pic_mode="$withval" | 
 | 6000 | else | 
 | 6001 |   pic_mode=default | 
 | 6002 | fi; | 
 | 6003 | test -z "$pic_mode" && pic_mode=default | 
 | 6004 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6005 | # Use C for the default configuration in the libtool script | 
 | 6006 | tagname= | 
 | 6007 | lt_save_CC="$CC" | 
 | 6008 | ac_ext=c | 
 | 6009 | ac_cpp='$CPP $CPPFLAGS' | 
 | 6010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 6011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 6012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 6013 |  | 
 | 6014 |  | 
 | 6015 | # Source file extension for C test sources. | 
 | 6016 | ac_ext=c | 
 | 6017 |  | 
 | 6018 | # Object file extension for compiled C test sources. | 
 | 6019 | objext=o | 
 | 6020 | objext=$objext | 
 | 6021 |  | 
 | 6022 | # Code to be used in simple compile tests | 
 | 6023 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 6024 |  | 
 | 6025 | # Code to be used in simple link tests | 
 | 6026 | lt_simple_link_test_code='int main(){return(0);}\n' | 
 | 6027 |  | 
 | 6028 |  | 
 | 6029 | # If no C compiler was specified, use CC. | 
 | 6030 | LTCC=${LTCC-"$CC"} | 
 | 6031 |  | 
 | 6032 | # Allow CC to be a program name with arguments. | 
 | 6033 | compiler=$CC | 
 | 6034 |  | 
 | 6035 |  | 
 | 6036 | # | 
 | 6037 | # Check for any special shared library compilation flags. | 
 | 6038 | # | 
 | 6039 | lt_prog_cc_shlib= | 
 | 6040 | if test "$GCC" = no; then | 
 | 6041 |   case $host_os in | 
 | 6042 |   sco3.2v5*) | 
 | 6043 |     lt_prog_cc_shlib='-belf' | 
 | 6044 |     ;; | 
 | 6045 |   esac | 
 | 6046 | fi | 
 | 6047 | if test -n "$lt_prog_cc_shlib"; then | 
 | 6048 |   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | 
 | 6049 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | 
 | 6050 |   if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then : | 
 | 6051 |   else | 
 | 6052 |     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | 
 | 6053 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | 
 | 6054 |     lt_cv_prog_cc_can_build_shared=no | 
 | 6055 |   fi | 
 | 6056 | fi | 
 | 6057 |  | 
 | 6058 |  | 
 | 6059 | # | 
 | 6060 | # Check to make sure the static flag actually works. | 
 | 6061 | # | 
 | 6062 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | 
 | 6063 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | 
 | 6064 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6065 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6066 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6067 |   lt_prog_compiler_static_works=no | 
 | 6068 |    save_LDFLAGS="$LDFLAGS" | 
 | 6069 |    LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | 
 | 6070 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 6071 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 6072 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6073 |      # So say no if there are warnings | 
 | 6074 |      if test -s conftest.err; then | 
 | 6075 |        # Append any errors to the config.log. | 
 | 6076 |        cat conftest.err 1>&5 | 
 | 6077 |      else | 
 | 6078 |        lt_prog_compiler_static_works=yes | 
 | 6079 |      fi | 
 | 6080 |    fi | 
 | 6081 |    $rm conftest* | 
 | 6082 |    LDFLAGS="$save_LDFLAGS" | 
 | 6083 |  | 
 | 6084 | fi | 
 | 6085 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
 | 6086 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | 
 | 6087 |  | 
 | 6088 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
 | 6089 |     : | 
 | 6090 | else | 
 | 6091 |     lt_prog_compiler_static= | 
 | 6092 | fi | 
 | 6093 |  | 
 | 6094 |  | 
 | 6095 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6096 |  | 
 | 6097 | lt_prog_compiler_no_builtin_flag= | 
 | 6098 |  | 
 | 6099 | if test "$GCC" = yes; then | 
 | 6100 |   lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
 | 6101 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6102 |  | 
 | 6103 | 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] | 6104 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 6105 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 6106 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6107 | else | 
 | 6108 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 6109 |   ac_outfile=conftest.$ac_objext | 
 | 6110 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 6111 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 6112 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 6113 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 6114 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 6115 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 6116 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 6117 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 6118 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 6119 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 6120 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 6121 |    (eval echo "\"\$as_me:6121: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6122 |    (eval "$lt_compile" 2>conftest.err) | 
 | 6123 |    ac_status=$? | 
 | 6124 |    cat conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 6125 |    echo "$as_me:6125: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6126 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 6127 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6128 |      # So say no if there are warnings | 
 | 6129 |      if test ! -s conftest.err; then | 
 | 6130 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 6131 |      fi | 
 | 6132 |    fi | 
 | 6133 |    $rm conftest* | 
 | 6134 |  | 
 | 6135 | fi | 
 | 6136 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 6137 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 6138 |  | 
 | 6139 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 6140 |     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
 | 6141 | else | 
 | 6142 |     : | 
 | 6143 | fi | 
 | 6144 |  | 
 | 6145 | fi | 
 | 6146 |  | 
 | 6147 | lt_prog_compiler_wl= | 
 | 6148 | lt_prog_compiler_pic= | 
 | 6149 | lt_prog_compiler_static= | 
 | 6150 |  | 
 | 6151 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 6152 | 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] | 6153 |  | 
 | 6154 |   if test "$GCC" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6155 |     lt_prog_compiler_wl='-Wl,' | 
 | 6156 |     lt_prog_compiler_static='-static' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6157 |  | 
 | 6158 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6159 |       aix*) | 
 | 6160 |       # All AIX code is PIC. | 
 | 6161 |       if test "$host_cpu" = ia64; then | 
 | 6162 | 	# AIX 5 now supports IA64 processor | 
 | 6163 | 	lt_prog_compiler_static='-Bstatic' | 
 | 6164 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6165 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6166 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6167 |     amigaos*) | 
 | 6168 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 6169 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 6170 |       # like `-m68040'. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6171 |       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6172 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6173 |  | 
 | 6174 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6175 |       # PIC is the default for these OSes. | 
 | 6176 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6177 |  | 
 | 6178 |     mingw* | pw32* | os2*) | 
 | 6179 |       # This hack is so that the source file can tell whether it is being | 
 | 6180 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 6181 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 6182 |       ;; | 
 | 6183 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6184 |     darwin* | rhapsody*) | 
 | 6185 |       # PIC is the default on this platform | 
 | 6186 |       # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6187 |       lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6188 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6189 |  | 
 | 6190 |     msdosdjgpp*) | 
 | 6191 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 6192 |       # on systems that don't support them. | 
 | 6193 |       lt_prog_compiler_can_build_shared=no | 
 | 6194 |       enable_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6195 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6196 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6197 |     sysv4*MP*) | 
 | 6198 |       if test -d /usr/nec; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6199 | 	lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6200 |       fi | 
 | 6201 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6202 |  | 
 | 6203 |     hpux*) | 
 | 6204 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 6205 |       # not for PA HP-UX. | 
 | 6206 |       case "$host_cpu" in | 
 | 6207 |       hppa*64*|ia64*) | 
 | 6208 | 	# +Z the default | 
 | 6209 | 	;; | 
 | 6210 |       *) | 
 | 6211 | 	lt_prog_compiler_pic='-fPIC' | 
 | 6212 | 	;; | 
 | 6213 |       esac | 
 | 6214 |       ;; | 
 | 6215 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6216 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6217 |       lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6218 |       ;; | 
 | 6219 |     esac | 
 | 6220 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6221 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6222 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6223 |     aix*) | 
 | 6224 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6225 |       if test "$host_cpu" = ia64; then | 
 | 6226 | 	# AIX 5 now supports IA64 processor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6227 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6228 |       else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6229 | 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6230 |       fi | 
 | 6231 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6232 |       darwin*) | 
 | 6233 |         # PIC is the default on this platform | 
 | 6234 |         # Common symbols not allowed in MH_DYLIB files | 
 | 6235 |        case "$cc_basename" in | 
 | 6236 |          xlc*) | 
 | 6237 |          lt_prog_compiler_pic='-qnocommon' | 
 | 6238 |          lt_prog_compiler_wl='-Wl,' | 
 | 6239 |          ;; | 
 | 6240 |        esac | 
 | 6241 |        ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6242 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6243 |     mingw* | pw32* | os2*) | 
 | 6244 |       # This hack is so that the source file can tell whether it is being | 
 | 6245 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 6246 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 6247 |       ;; | 
 | 6248 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6249 |     hpux9* | hpux10* | hpux11*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6250 |       lt_prog_compiler_wl='-Wl,' | 
 | 6251 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 6252 |       # not for PA HP-UX. | 
 | 6253 |       case "$host_cpu" in | 
 | 6254 |       hppa*64*|ia64*) | 
 | 6255 | 	# +Z the default | 
 | 6256 | 	;; | 
 | 6257 |       *) | 
 | 6258 | 	lt_prog_compiler_pic='+Z' | 
 | 6259 | 	;; | 
 | 6260 |       esac | 
 | 6261 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 6262 |       lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6263 |       ;; | 
 | 6264 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6265 |     irix5* | irix6* | nonstopux*) | 
 | 6266 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6267 |       # PIC (with -KPIC) is the default. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6268 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6269 |       ;; | 
 | 6270 |  | 
 | 6271 |     newsos6) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6272 |       lt_prog_compiler_pic='-KPIC' | 
 | 6273 |       lt_prog_compiler_static='-Bstatic' | 
 | 6274 |       ;; | 
 | 6275 |  | 
 | 6276 |     linux*) | 
 | 6277 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6278 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6279 | 	lt_prog_compiler_wl='-Wl,' | 
 | 6280 | 	lt_prog_compiler_pic='-KPIC' | 
 | 6281 | 	lt_prog_compiler_static='-static' | 
 | 6282 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6283 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6284 |         lt_prog_compiler_wl='-Wl,' | 
 | 6285 |         # All Alpha code is PIC. | 
 | 6286 |         lt_prog_compiler_static='-non_shared' | 
 | 6287 |         ;; | 
 | 6288 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6289 |       ;; | 
 | 6290 |  | 
 | 6291 |     osf3* | osf4* | osf5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6292 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6293 |       # All OSF/1 code is PIC. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6294 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6295 |       ;; | 
 | 6296 |  | 
 | 6297 |     sco3.2v5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6298 |       lt_prog_compiler_pic='-Kpic' | 
 | 6299 |       lt_prog_compiler_static='-dn' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6300 |       ;; | 
 | 6301 |  | 
 | 6302 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6303 |       lt_prog_compiler_wl='-Wl,' | 
 | 6304 |       lt_prog_compiler_pic='-KPIC' | 
 | 6305 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6306 |       ;; | 
 | 6307 |  | 
 | 6308 |     sunos4*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6309 |       lt_prog_compiler_wl='-Qoption ld ' | 
 | 6310 |       lt_prog_compiler_pic='-PIC' | 
 | 6311 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6312 |       ;; | 
 | 6313 |  | 
 | 6314 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6315 |       lt_prog_compiler_wl='-Wl,' | 
 | 6316 |       lt_prog_compiler_pic='-KPIC' | 
 | 6317 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6318 |       ;; | 
 | 6319 |  | 
 | 6320 |     sysv4*MP*) | 
 | 6321 |       if test -d /usr/nec ;then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6322 | 	lt_prog_compiler_pic='-Kconform_pic' | 
 | 6323 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6324 |       fi | 
 | 6325 |       ;; | 
 | 6326 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6327 |     uts4*) | 
 | 6328 |       lt_prog_compiler_pic='-pic' | 
 | 6329 |       lt_prog_compiler_static='-Bstatic' | 
 | 6330 |       ;; | 
 | 6331 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6332 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6333 |       lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6334 |       ;; | 
 | 6335 |     esac | 
 | 6336 |   fi | 
 | 6337 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6338 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
 | 6339 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6340 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6341 | # | 
 | 6342 | # Check to make sure the PIC flag actually works. | 
 | 6343 | # | 
 | 6344 | if test -n "$lt_prog_compiler_pic"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6345 |  | 
 | 6346 | 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] | 6347 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 
 | 6348 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6349 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6350 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6351 |   lt_prog_compiler_pic_works=no | 
 | 6352 |   ac_outfile=conftest.$ac_objext | 
 | 6353 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 6354 |    lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
 | 6355 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 6356 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 6357 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 6358 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 6359 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 6360 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 6361 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 6362 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 6363 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 6364 |    (eval echo "\"\$as_me:6364: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6365 |    (eval "$lt_compile" 2>conftest.err) | 
 | 6366 |    ac_status=$? | 
 | 6367 |    cat conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 6368 |    echo "$as_me:6368: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6369 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 6370 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6371 |      # So say no if there are warnings | 
 | 6372 |      if test ! -s conftest.err; then | 
 | 6373 |        lt_prog_compiler_pic_works=yes | 
 | 6374 |      fi | 
 | 6375 |    fi | 
 | 6376 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6377 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6378 | fi | 
 | 6379 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
 | 6380 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6381 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6382 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
 | 6383 |     case $lt_prog_compiler_pic in | 
 | 6384 |      "" | " "*) ;; | 
 | 6385 |      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
 | 6386 |      esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6387 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6388 |     lt_prog_compiler_pic= | 
 | 6389 |      lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6390 | fi | 
 | 6391 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6392 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6393 | case "$host_os" in | 
 | 6394 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 6395 |   *djgpp*) | 
 | 6396 |     lt_prog_compiler_pic= | 
 | 6397 |     ;; | 
 | 6398 |   *) | 
 | 6399 |     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
 | 6400 |     ;; | 
 | 6401 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6402 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6403 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 6404 | 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] | 6405 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6406 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6407 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6408 |   lt_cv_prog_compiler_c_o=no | 
 | 6409 |    $rm -r conftest 2>/dev/null | 
 | 6410 |    mkdir conftest | 
 | 6411 |    cd conftest | 
 | 6412 |    mkdir out | 
 | 6413 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6414 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6415 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 6416 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 6417 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 6418 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 6419 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 6420 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 6421 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 6422 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 6423 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 6424 |    (eval echo "\"\$as_me:6424: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6425 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 6426 |    ac_status=$? | 
 | 6427 |    cat out/conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 6428 |    echo "$as_me:6428: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6429 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 6430 |    then | 
 | 6431 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6432 |      # So say no if there are warnings | 
 | 6433 |      if test ! -s out/conftest.err; then | 
 | 6434 |        lt_cv_prog_compiler_c_o=yes | 
 | 6435 |      fi | 
 | 6436 |    fi | 
 | 6437 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6438 |    $rm conftest* | 
 | 6439 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 6440 |    # template instantiation | 
 | 6441 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 6442 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6443 |    cd .. | 
 | 6444 |    rmdir conftest | 
 | 6445 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6446 |  | 
 | 6447 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6448 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
 | 6449 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6450 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6451 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6452 | hard_links="nottested" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6453 | 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] | 6454 |   # do not overwrite the value of need_locks provided by the user | 
 | 6455 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 6456 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 6457 |   hard_links=yes | 
 | 6458 |   $rm conftest* | 
 | 6459 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 6460 |   touch conftest.a | 
 | 6461 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 6462 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 6463 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 6464 | echo "${ECHO_T}$hard_links" >&6 | 
 | 6465 |   if test "$hard_links" = no; then | 
 | 6466 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 6467 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 6468 |     need_locks=warn | 
 | 6469 |   fi | 
 | 6470 | else | 
 | 6471 |   need_locks=no | 
 | 6472 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6473 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6474 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 6475 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 6476 |  | 
 | 6477 |   runpath_var= | 
 | 6478 |   allow_undefined_flag= | 
 | 6479 |   enable_shared_with_static_runtimes=no | 
 | 6480 |   archive_cmds= | 
 | 6481 |   archive_expsym_cmds= | 
 | 6482 |   old_archive_From_new_cmds= | 
 | 6483 |   old_archive_from_expsyms_cmds= | 
 | 6484 |   export_dynamic_flag_spec= | 
 | 6485 |   whole_archive_flag_spec= | 
 | 6486 |   thread_safe_flag_spec= | 
 | 6487 |   hardcode_libdir_flag_spec= | 
 | 6488 |   hardcode_libdir_flag_spec_ld= | 
 | 6489 |   hardcode_libdir_separator= | 
 | 6490 |   hardcode_direct=no | 
 | 6491 |   hardcode_minus_L=no | 
 | 6492 |   hardcode_shlibpath_var=unsupported | 
 | 6493 |   link_all_deplibs=unknown | 
 | 6494 |   hardcode_automatic=no | 
 | 6495 |   module_cmds= | 
 | 6496 |   module_expsym_cmds= | 
 | 6497 |   always_export_symbols=no | 
 | 6498 |   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 6499 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 6500 |   # included in the symbol list | 
 | 6501 |   include_expsyms= | 
 | 6502 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 6503 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 6504 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 6505 |   # as well as any symbol that contains `d'. | 
 | 6506 |   exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
 | 6507 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 6508 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 6509 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 6510 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 6511 |   # preloaded symbol tables. | 
 | 6512 |   extract_expsyms_cmds= | 
 | 6513 |  | 
 | 6514 |   case $host_os in | 
 | 6515 |   cygwin* | mingw* | pw32*) | 
 | 6516 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 6517 |     # When not using gcc, we currently assume that we are using | 
 | 6518 |     # Microsoft Visual C++. | 
 | 6519 |     if test "$GCC" != yes; then | 
 | 6520 |       with_gnu_ld=no | 
 | 6521 |     fi | 
 | 6522 |     ;; | 
 | 6523 |   openbsd*) | 
 | 6524 |     with_gnu_ld=no | 
 | 6525 |     ;; | 
 | 6526 |   esac | 
 | 6527 |  | 
 | 6528 |   ld_shlibs=yes | 
 | 6529 |   if test "$with_gnu_ld" = yes; then | 
 | 6530 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 6531 |     wlarc='${wl}' | 
 | 6532 |  | 
 | 6533 |     # See if GNU ld supports shared libraries. | 
 | 6534 |     case $host_os in | 
 | 6535 |     aix3* | aix4* | aix5*) | 
 | 6536 |       # On AIX/PPC, the GNU linker is very broken | 
 | 6537 |       if test "$host_cpu" != ia64; then | 
 | 6538 | 	ld_shlibs=no | 
 | 6539 | 	cat <<EOF 1>&2 | 
 | 6540 |  | 
 | 6541 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 6542 | *** to be unable to reliably create shared libraries on AIX. | 
 | 6543 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 6544 | *** really care for shared libraries, you may want to modify your PATH | 
 | 6545 | *** so that a non-GNU linker is found, and then restart. | 
 | 6546 |  | 
 | 6547 | EOF | 
 | 6548 |       fi | 
 | 6549 |       ;; | 
 | 6550 |  | 
 | 6551 |     amigaos*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6552 |       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] | 6553 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6554 |       hardcode_minus_L=yes | 
 | 6555 |  | 
 | 6556 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 6557 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 6558 |       # to version 4, is to share data among multiple programs linked | 
 | 6559 |       # with the same dynamic library.  Since this doesn't match the | 
 | 6560 |       # behavior of shared libraries on other platforms, we can't use | 
 | 6561 |       # them. | 
 | 6562 |       ld_shlibs=no | 
 | 6563 |       ;; | 
 | 6564 |  | 
 | 6565 |     beos*) | 
 | 6566 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6567 | 	allow_undefined_flag=unsupported | 
 | 6568 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 6569 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 6570 | 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6571 |       else | 
 | 6572 | 	ld_shlibs=no | 
 | 6573 |       fi | 
 | 6574 |       ;; | 
 | 6575 |  | 
 | 6576 |     cygwin* | mingw* | pw32*) | 
 | 6577 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
 | 6578 |       # as there is no search path for DLLs. | 
 | 6579 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6580 |       allow_undefined_flag=unsupported | 
 | 6581 |       always_export_symbols=no | 
 | 6582 |       enable_shared_with_static_runtimes=yes | 
 | 6583 |       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 6584 |  | 
 | 6585 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 6586 |         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 6587 | 	# If the export-symbols file already is a .def file (1st line | 
 | 6588 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 6589 | 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 6590 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 6591 | 	else | 
 | 6592 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 6593 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6594 | 	fi;$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] | 6595 |       else | 
 | 6596 | 	ld_shlibs=no | 
 | 6597 |       fi | 
 | 6598 |       ;; | 
 | 6599 |  | 
 | 6600 |     netbsd*) | 
 | 6601 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 6602 | 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 6603 | 	wlarc= | 
 | 6604 |       else | 
 | 6605 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6606 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6607 |       fi | 
 | 6608 |       ;; | 
 | 6609 |  | 
 | 6610 |     solaris* | sysv5*) | 
 | 6611 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 6612 | 	ld_shlibs=no | 
 | 6613 | 	cat <<EOF 1>&2 | 
 | 6614 |  | 
 | 6615 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 6616 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 6617 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 6618 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 6619 | *** your PATH or compiler configuration so that the native linker is | 
 | 6620 | *** used, and then restart. | 
 | 6621 |  | 
 | 6622 | EOF | 
 | 6623 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6624 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6625 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6626 |       else | 
 | 6627 | 	ld_shlibs=no | 
 | 6628 |       fi | 
 | 6629 |       ;; | 
 | 6630 |  | 
 | 6631 |     sunos4*) | 
 | 6632 |       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 6633 |       wlarc= | 
 | 6634 |       hardcode_direct=yes | 
 | 6635 |       hardcode_shlibpath_var=no | 
 | 6636 |       ;; | 
 | 6637 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6638 |   linux*) | 
 | 6639 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6640 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6641 | 	archive_cmds="$tmp_archive_cmds" | 
 | 6642 |       supports_anon_versioning=no | 
 | 6643 |       case `$LD -v 2>/dev/null` in | 
 | 6644 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 6645 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 6646 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 6647 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 6648 |         *) supports_anon_versioning=yes ;; | 
 | 6649 |       esac | 
 | 6650 |       if test $supports_anon_versioning = yes; then | 
 | 6651 |         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; | 
 | 6652 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 6653 |       else | 
 | 6654 |         archive_expsym_cmds="$tmp_archive_cmds" | 
 | 6655 |       fi | 
 | 6656 |     else | 
 | 6657 |       ld_shlibs=no | 
 | 6658 |     fi | 
 | 6659 |     ;; | 
 | 6660 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6661 |     *) | 
 | 6662 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6663 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6664 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6665 |       else | 
 | 6666 | 	ld_shlibs=no | 
 | 6667 |       fi | 
 | 6668 |       ;; | 
 | 6669 |     esac | 
 | 6670 |  | 
 | 6671 |     if test "$ld_shlibs" = yes; then | 
 | 6672 |       runpath_var=LD_RUN_PATH | 
 | 6673 |       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
 | 6674 |       export_dynamic_flag_spec='${wl}--export-dynamic' | 
 | 6675 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 6676 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 6677 |  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 6678 |       else | 
 | 6679 |   	whole_archive_flag_spec= | 
 | 6680 |       fi | 
 | 6681 |     fi | 
 | 6682 |   else | 
 | 6683 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 6684 |     case $host_os in | 
 | 6685 |     aix3*) | 
 | 6686 |       allow_undefined_flag=unsupported | 
 | 6687 |       always_export_symbols=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6688 |       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] | 6689 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 6690 |       # are no directories specified by -L. | 
 | 6691 |       hardcode_minus_L=yes | 
 | 6692 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 6693 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 6694 | 	# broken collect2. | 
 | 6695 | 	hardcode_direct=unsupported | 
 | 6696 |       fi | 
 | 6697 |       ;; | 
 | 6698 |  | 
 | 6699 |     aix4* | aix5*) | 
 | 6700 |       if test "$host_cpu" = ia64; then | 
 | 6701 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 6702 | 	# have to do anything special. | 
 | 6703 | 	aix_use_runtimelinking=no | 
 | 6704 | 	exp_sym_flag='-Bexport' | 
 | 6705 | 	no_entry_flag="" | 
 | 6706 |       else | 
 | 6707 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 6708 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 6709 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 6710 | 	  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' | 
 | 6711 | 	else | 
 | 6712 | 	  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' | 
 | 6713 | 	fi | 
 | 6714 | 	aix_use_runtimelinking=no | 
 | 6715 |  | 
 | 6716 | 	# Test if we are trying to use run time linking or normal | 
 | 6717 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 6718 | 	# need to do runtime linking. | 
 | 6719 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 6720 | 	  for ld_flag in $LDFLAGS; do | 
 | 6721 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 6722 |   	    aix_use_runtimelinking=yes | 
 | 6723 |   	    break | 
 | 6724 |   	  fi | 
 | 6725 | 	  done | 
 | 6726 | 	esac | 
 | 6727 |  | 
 | 6728 | 	exp_sym_flag='-bexport' | 
 | 6729 | 	no_entry_flag='-bnoentry' | 
 | 6730 |       fi | 
 | 6731 |  | 
 | 6732 |       # When large executables or shared objects are built, AIX ld can | 
 | 6733 |       # have problems creating the table of contents.  If linking a library | 
 | 6734 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 6735 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 6736 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 6737 |  | 
 | 6738 |       archive_cmds='' | 
 | 6739 |       hardcode_direct=yes | 
 | 6740 |       hardcode_libdir_separator=':' | 
 | 6741 |       link_all_deplibs=yes | 
 | 6742 |  | 
 | 6743 |       if test "$GCC" = yes; then | 
 | 6744 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 6745 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 6746 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 6747 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 6748 | 	  if test -f "$collect2name" && \ | 
 | 6749 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 6750 | 	  then | 
 | 6751 |   	  # We have reworked collect2 | 
 | 6752 |   	  hardcode_direct=yes | 
 | 6753 | 	  else | 
 | 6754 |   	  # We have old collect2 | 
 | 6755 |   	  hardcode_direct=unsupported | 
 | 6756 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 6757 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 6758 |   	  # to unsupported forces relinking | 
 | 6759 |   	  hardcode_minus_L=yes | 
 | 6760 |   	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 6761 |   	  hardcode_libdir_separator= | 
 | 6762 | 	  fi | 
 | 6763 | 	esac | 
 | 6764 | 	shared_flag='-shared' | 
 | 6765 |       else | 
 | 6766 | 	# not using gcc | 
 | 6767 | 	if test "$host_cpu" = ia64; then | 
 | 6768 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 6769 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 6770 | 	  shared_flag='-G' | 
 | 6771 | 	else | 
 | 6772 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 6773 | 	    shared_flag='${wl}-G' | 
 | 6774 | 	  else | 
 | 6775 | 	    shared_flag='${wl}-bM:SRE' | 
 | 6776 |   	fi | 
 | 6777 | 	fi | 
 | 6778 |       fi | 
 | 6779 |  | 
 | 6780 |       # It seems that -bexpall does not export symbols beginning with | 
 | 6781 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 6782 |       always_export_symbols=yes | 
 | 6783 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 6784 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 6785 | 	# -berok will link without error, but may produce a broken library. | 
 | 6786 | 	allow_undefined_flag='-berok' | 
 | 6787 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 6788 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6789 | /* confdefs.h.  */ | 
 | 6790 | _ACEOF | 
 | 6791 | cat confdefs.h >>conftest.$ac_ext | 
 | 6792 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6793 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6794 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6795 | int | 
 | 6796 | main () | 
 | 6797 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6798 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6799 |   ; | 
 | 6800 |   return 0; | 
 | 6801 | } | 
 | 6802 | _ACEOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6803 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6805 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6806 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6807 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6808 |   rm -f conftest.er1 | 
 | 6809 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6810 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6811 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6812 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6813 | 			 || test ! -s conftest.err' | 
 | 6814 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6815 |   (eval $ac_try) 2>&5 | 
 | 6816 |   ac_status=$? | 
 | 6817 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6818 |   (exit $ac_status); }; } && | 
 | 6819 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6820 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6821 |   (eval $ac_try) 2>&5 | 
 | 6822 |   ac_status=$? | 
 | 6823 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6824 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6825 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6826 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 6827 | }'` | 
 | 6828 | # Check for a 64-bit object if we didn't find anything. | 
 | 6829 | 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; } | 
 | 6830 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6831 | else | 
 | 6832 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6833 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6834 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6835 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6836 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6837 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6838 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6839 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6840 |        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 6841 | 	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" | 
 | 6842 |        else | 
 | 6843 | 	if test "$host_cpu" = ia64; then | 
 | 6844 | 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
 | 6845 | 	  allow_undefined_flag="-z nodefs" | 
 | 6846 | 	  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" | 
 | 6847 | 	else | 
 | 6848 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 6849 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6850 | /* confdefs.h.  */ | 
 | 6851 | _ACEOF | 
 | 6852 | cat confdefs.h >>conftest.$ac_ext | 
 | 6853 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6854 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6855 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6856 | int | 
 | 6857 | main () | 
 | 6858 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6859 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6860 |   ; | 
 | 6861 |   return 0; | 
 | 6862 | } | 
 | 6863 | _ACEOF | 
 | 6864 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6866 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6867 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6868 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6869 |   rm -f conftest.er1 | 
 | 6870 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6871 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6872 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6873 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6874 | 			 || test ! -s conftest.err' | 
 | 6875 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6876 |   (eval $ac_try) 2>&5 | 
 | 6877 |   ac_status=$? | 
 | 6878 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6879 |   (exit $ac_status); }; } && | 
 | 6880 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6881 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6882 |   (eval $ac_try) 2>&5 | 
 | 6883 |   ac_status=$? | 
 | 6884 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6885 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6886 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6887 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 6888 | }'` | 
 | 6889 | # Check for a 64-bit object if we didn't find anything. | 
 | 6890 | 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; } | 
 | 6891 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6892 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6893 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6894 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6895 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6896 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6897 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6898 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6899 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6900 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6901 | 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 6902 | 	  # Warning - without using the other run time loading flags, | 
 | 6903 | 	  # -berok will link without error, but may produce a broken library. | 
 | 6904 | 	  no_undefined_flag=' ${wl}-bernotok' | 
 | 6905 | 	  allow_undefined_flag=' ${wl}-berok' | 
 | 6906 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 6907 | 	  always_export_symbols=yes | 
 | 6908 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 6909 | 	  whole_archive_flag_spec=' ' | 
 | 6910 | 	  archive_cmds_need_lc=yes | 
 | 6911 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6912 | 	  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] | 6913 | 	fi | 
 | 6914 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6915 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6916 |  | 
 | 6917 |     amigaos*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6918 |       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] | 6919 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6920 |       hardcode_minus_L=yes | 
 | 6921 |       # see comment about different semantics on the GNU ld section | 
 | 6922 |       ld_shlibs=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6923 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6924 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6925 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6926 |       export_dynamic_flag_spec=-rdynamic | 
 | 6927 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6928 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6929 |     cygwin* | mingw* | pw32*) | 
 | 6930 |       # When not using gcc, we currently assume that we are using | 
 | 6931 |       # Microsoft Visual C++. | 
 | 6932 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 6933 |       # no search path for DLLs. | 
 | 6934 |       hardcode_libdir_flag_spec=' ' | 
 | 6935 |       allow_undefined_flag=unsupported | 
 | 6936 |       # Tell ltmain to make .lib files, not .a files. | 
 | 6937 |       libext=lib | 
 | 6938 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6939 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6940 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6941 |       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] | 6942 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 6943 |       old_archive_From_new_cmds='true' | 
 | 6944 |       # FIXME: Should let the user specify the lib program. | 
 | 6945 |       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 6946 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 6947 |       enable_shared_with_static_runtimes=yes | 
 | 6948 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6949 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6950 |     darwin* | rhapsody*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6951 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6952 |         rhapsody* | darwin1.[012]) | 
 | 6953 |          allow_undefined_flag='${wl}-undefined ${wl}suppress' | 
 | 6954 |          ;; | 
 | 6955 |        *) # Darwin 1.3 on | 
 | 6956 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 6957 |            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 6958 |          else | 
 | 6959 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 6960 |              10.[012]) | 
 | 6961 |                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 6962 |                ;; | 
 | 6963 |              10.*) | 
 | 6964 |                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | 
 | 6965 |                ;; | 
 | 6966 |            esac | 
 | 6967 |          fi | 
 | 6968 |          ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6969 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6970 |       archive_cmds_need_lc=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6971 |       hardcode_direct=no | 
 | 6972 |       hardcode_automatic=yes | 
 | 6973 |       hardcode_shlibpath_var=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6974 |       whole_archive_flag_spec='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6975 |       link_all_deplibs=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6976 |     if test "$GCC" = yes ; then | 
 | 6977 |     	output_verbose_link_cmd='echo' | 
 | 6978 |         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 6979 |       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 6980 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 6981 |       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}' | 
 | 6982 |       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}' | 
 | 6983 |     else | 
 | 6984 |       case "$cc_basename" in | 
 | 6985 |         xlc*) | 
 | 6986 |          output_verbose_link_cmd='echo' | 
 | 6987 |          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 6988 |          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 6989 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 6990 |          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}' | 
 | 6991 |           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}' | 
 | 6992 |           ;; | 
 | 6993 |        *) | 
 | 6994 |          ld_shlibs=no | 
 | 6995 |           ;; | 
 | 6996 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6997 |     fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6998 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6999 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7000 |     dgux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7001 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7002 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7003 |       hardcode_shlibpath_var=no | 
 | 7004 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7005 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7006 |     freebsd1*) | 
 | 7007 |       ld_shlibs=no | 
 | 7008 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7009 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7010 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 7011 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 7012 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 7013 |     # extra space). | 
 | 7014 |     freebsd2.2*) | 
 | 7015 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 7016 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 7017 |       hardcode_direct=yes | 
 | 7018 |       hardcode_shlibpath_var=no | 
 | 7019 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7020 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7021 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 7022 |     freebsd2*) | 
 | 7023 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 7024 |       hardcode_direct=yes | 
 | 7025 |       hardcode_minus_L=yes | 
 | 7026 |       hardcode_shlibpath_var=no | 
 | 7027 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7028 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7029 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7030 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7031 |       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7032 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 7033 |       hardcode_direct=yes | 
 | 7034 |       hardcode_shlibpath_var=no | 
 | 7035 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7036 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7037 |     hpux9*) | 
 | 7038 |       if test "$GCC" = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7039 | 	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] | 7040 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7041 | 	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] | 7042 |       fi | 
 | 7043 |       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 7044 |       hardcode_libdir_separator=: | 
 | 7045 |       hardcode_direct=yes | 
 | 7046 |  | 
 | 7047 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 7048 |       # but as the default location of the library. | 
 | 7049 |       hardcode_minus_L=yes | 
 | 7050 |       export_dynamic_flag_spec='${wl}-E' | 
 | 7051 |       ;; | 
 | 7052 |  | 
 | 7053 |     hpux10* | hpux11*) | 
 | 7054 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 7055 | 	case "$host_cpu" in | 
 | 7056 | 	hppa*64*|ia64*) | 
 | 7057 | 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7058 | 	  ;; | 
 | 7059 | 	*) | 
 | 7060 | 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7061 | 	  ;; | 
 | 7062 | 	esac | 
 | 7063 |       else | 
 | 7064 | 	case "$host_cpu" in | 
 | 7065 | 	hppa*64*|ia64*) | 
 | 7066 | 	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7067 | 	  ;; | 
 | 7068 | 	*) | 
 | 7069 | 	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 7070 | 	  ;; | 
 | 7071 | 	esac | 
 | 7072 |       fi | 
 | 7073 |       if test "$with_gnu_ld" = no; then | 
 | 7074 | 	case "$host_cpu" in | 
 | 7075 | 	hppa*64*) | 
 | 7076 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 7077 | 	  hardcode_libdir_flag_spec_ld='+b $libdir' | 
 | 7078 | 	  hardcode_libdir_separator=: | 
 | 7079 | 	  hardcode_direct=no | 
 | 7080 | 	  hardcode_shlibpath_var=no | 
 | 7081 | 	  ;; | 
 | 7082 | 	ia64*) | 
 | 7083 | 	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 7084 | 	  hardcode_direct=no | 
 | 7085 | 	  hardcode_shlibpath_var=no | 
 | 7086 |  | 
 | 7087 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 7088 | 	  # but as the default location of the library. | 
 | 7089 | 	  hardcode_minus_L=yes | 
 | 7090 | 	  ;; | 
 | 7091 | 	*) | 
 | 7092 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 7093 | 	  hardcode_libdir_separator=: | 
 | 7094 | 	  hardcode_direct=yes | 
 | 7095 | 	  export_dynamic_flag_spec='${wl}-E' | 
 | 7096 |  | 
 | 7097 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 7098 | 	  # but as the default location of the library. | 
 | 7099 | 	  hardcode_minus_L=yes | 
 | 7100 | 	  ;; | 
 | 7101 | 	esac | 
 | 7102 |       fi | 
 | 7103 |       ;; | 
 | 7104 |  | 
 | 7105 |     irix5* | irix6* | nonstopux*) | 
 | 7106 |       if test "$GCC" = yes; then | 
 | 7107 | 	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' | 
 | 7108 |       else | 
 | 7109 | 	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' | 
 | 7110 | 	hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
 | 7111 |       fi | 
 | 7112 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 7113 |       hardcode_libdir_separator=: | 
 | 7114 |       link_all_deplibs=yes | 
 | 7115 |       ;; | 
 | 7116 |  | 
 | 7117 |     netbsd*) | 
 | 7118 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 7119 | 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 7120 |       else | 
 | 7121 | 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 7122 |       fi | 
 | 7123 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 7124 |       hardcode_direct=yes | 
 | 7125 |       hardcode_shlibpath_var=no | 
 | 7126 |       ;; | 
 | 7127 |  | 
 | 7128 |     newsos6) | 
 | 7129 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7130 |       hardcode_direct=yes | 
 | 7131 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 7132 |       hardcode_libdir_separator=: | 
 | 7133 |       hardcode_shlibpath_var=no | 
 | 7134 |       ;; | 
 | 7135 |  | 
 | 7136 |     openbsd*) | 
 | 7137 |       hardcode_direct=yes | 
 | 7138 |       hardcode_shlibpath_var=no | 
 | 7139 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 7140 | 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7141 | 	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] | 7142 | 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 7143 | 	export_dynamic_flag_spec='${wl}-E' | 
 | 7144 |       else | 
 | 7145 |        case $host_os in | 
 | 7146 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 7147 | 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 7148 | 	   hardcode_libdir_flag_spec='-R$libdir' | 
 | 7149 | 	   ;; | 
 | 7150 | 	 *) | 
 | 7151 | 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7152 | 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 7153 | 	   ;; | 
 | 7154 |        esac | 
 | 7155 |       fi | 
 | 7156 |       ;; | 
 | 7157 |  | 
 | 7158 |     os2*) | 
 | 7159 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7160 |       hardcode_minus_L=yes | 
 | 7161 |       allow_undefined_flag=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7162 |       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] | 7163 |       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 7164 |       ;; | 
 | 7165 |  | 
 | 7166 |     osf3*) | 
 | 7167 |       if test "$GCC" = yes; then | 
 | 7168 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 7169 | 	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' | 
 | 7170 |       else | 
 | 7171 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 7172 | 	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' | 
 | 7173 |       fi | 
 | 7174 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 7175 |       hardcode_libdir_separator=: | 
 | 7176 |       ;; | 
 | 7177 |  | 
 | 7178 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 7179 |       if test "$GCC" = yes; then | 
 | 7180 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 7181 | 	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' | 
 | 7182 | 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 7183 |       else | 
 | 7184 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 7185 | 	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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7186 | 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7187 | 	# Both c and cxx compiler support -rpath directly | 
 | 7188 | 	hardcode_libdir_flag_spec='-rpath $libdir' | 
 | 7189 |       fi | 
 | 7190 |       hardcode_libdir_separator=: | 
 | 7191 |       ;; | 
 | 7192 |  | 
 | 7193 |     sco3.2v5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7194 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7195 |       hardcode_shlibpath_var=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7196 |       export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7197 |       runpath_var=LD_RUN_PATH | 
 | 7198 |       hardcode_runpath_var=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7199 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7200 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7201 |     solaris*) | 
 | 7202 |       no_undefined_flag=' -z text' | 
 | 7203 |       if test "$GCC" = yes; then | 
 | 7204 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7205 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 7206 |       else | 
 | 7207 | 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7208 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 7209 |       fi | 
 | 7210 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 7211 |       hardcode_shlibpath_var=no | 
 | 7212 |       case $host_os in | 
 | 7213 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 7214 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 7215 | 	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
 | 7216 |       esac | 
 | 7217 |       link_all_deplibs=yes | 
 | 7218 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7219 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7220 |     sunos4*) | 
 | 7221 |       if test "x$host_vendor" = xsequent; then | 
 | 7222 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 7223 | 	# files that make .init and .fini sections work. | 
 | 7224 | 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7225 |       else | 
 | 7226 | 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 7227 |       fi | 
 | 7228 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7229 |       hardcode_direct=yes | 
 | 7230 |       hardcode_minus_L=yes | 
 | 7231 |       hardcode_shlibpath_var=no | 
 | 7232 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7233 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7234 |     sysv4) | 
 | 7235 |       case $host_vendor in | 
 | 7236 | 	sni) | 
 | 7237 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7238 | 	  hardcode_direct=yes # is this really true??? | 
 | 7239 | 	;; | 
 | 7240 | 	siemens) | 
 | 7241 | 	  ## LD is ld it makes a PLAMLIB | 
 | 7242 | 	  ## CC just makes a GrossModule. | 
 | 7243 | 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 7244 | 	  reload_cmds='$CC -r -o $output$reload_objs' | 
 | 7245 | 	  hardcode_direct=no | 
 | 7246 |         ;; | 
 | 7247 | 	motorola) | 
 | 7248 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7249 | 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
 | 7250 | 	;; | 
 | 7251 |       esac | 
 | 7252 |       runpath_var='LD_RUN_PATH' | 
 | 7253 |       hardcode_shlibpath_var=no | 
 | 7254 |       ;; | 
 | 7255 |  | 
 | 7256 |     sysv4.3*) | 
 | 7257 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7258 |       hardcode_shlibpath_var=no | 
 | 7259 |       export_dynamic_flag_spec='-Bexport' | 
 | 7260 |       ;; | 
 | 7261 |  | 
 | 7262 |     sysv4*MP*) | 
 | 7263 |       if test -d /usr/nec; then | 
 | 7264 | 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7265 | 	hardcode_shlibpath_var=no | 
 | 7266 | 	runpath_var=LD_RUN_PATH | 
 | 7267 | 	hardcode_runpath_var=yes | 
 | 7268 | 	ld_shlibs=yes | 
 | 7269 |       fi | 
 | 7270 |       ;; | 
 | 7271 |  | 
 | 7272 |     sysv4.2uw2*) | 
 | 7273 |       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 7274 |       hardcode_direct=yes | 
 | 7275 |       hardcode_minus_L=no | 
 | 7276 |       hardcode_shlibpath_var=no | 
 | 7277 |       hardcode_runpath_var=yes | 
 | 7278 |       runpath_var=LD_RUN_PATH | 
 | 7279 |       ;; | 
 | 7280 |  | 
 | 7281 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 7282 |       no_undefined_flag='${wl}-z ${wl}text' | 
 | 7283 |       if test "$GCC" = yes; then | 
 | 7284 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7285 |       else | 
 | 7286 | 	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7287 |       fi | 
 | 7288 |       runpath_var='LD_RUN_PATH' | 
 | 7289 |       hardcode_shlibpath_var=no | 
 | 7290 |       ;; | 
 | 7291 |  | 
 | 7292 |     sysv5*) | 
 | 7293 |       no_undefined_flag=' -z text' | 
 | 7294 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 7295 |       # object files and a static libstdc++, better avoid it by now | 
 | 7296 |       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7297 |       archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 7298 |       hardcode_libdir_flag_spec= | 
 | 7299 |       hardcode_shlibpath_var=no | 
 | 7300 |       runpath_var='LD_RUN_PATH' | 
 | 7301 |       ;; | 
 | 7302 |  | 
 | 7303 |     uts4*) | 
 | 7304 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7305 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7306 |       hardcode_shlibpath_var=no | 
 | 7307 |       ;; | 
 | 7308 |  | 
 | 7309 |     *) | 
 | 7310 |       ld_shlibs=no | 
 | 7311 |       ;; | 
 | 7312 |     esac | 
 | 7313 |   fi | 
 | 7314 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7315 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
 | 7316 | echo "${ECHO_T}$ld_shlibs" >&6 | 
 | 7317 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7318 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7319 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 7320 | if test "$GCC" = yes; then | 
 | 7321 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 7322 | fi | 
 | 7323 |  | 
 | 7324 | # | 
 | 7325 | # Do we need to explicitly link libc? | 
 | 7326 | # | 
 | 7327 | case "x$archive_cmds_need_lc" in | 
 | 7328 | x|xyes) | 
 | 7329 |   # Assume -lc should be added | 
 | 7330 |   archive_cmds_need_lc=yes | 
 | 7331 |  | 
 | 7332 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 7333 |     case $archive_cmds in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7334 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7335 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 7336 |       ;; | 
 | 7337 |     '$CC '*) | 
 | 7338 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 7339 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 7340 |       # to ld, don't add -lc before -lgcc. | 
 | 7341 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 7342 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 7343 |       $rm conftest* | 
 | 7344 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 7345 |  | 
 | 7346 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 7347 |   (eval $ac_compile) 2>&5 | 
 | 7348 |   ac_status=$? | 
 | 7349 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7350 |   (exit $ac_status); } 2>conftest.err; then | 
 | 7351 |         soname=conftest | 
 | 7352 |         lib=conftest | 
 | 7353 |         libobjs=conftest.$ac_objext | 
 | 7354 |         deplibs= | 
 | 7355 |         wl=$lt_prog_compiler_wl | 
 | 7356 |         compiler_flags=-v | 
 | 7357 |         linker_flags=-v | 
 | 7358 |         verstring= | 
 | 7359 |         output_objdir=. | 
 | 7360 |         libname=conftest | 
 | 7361 |         lt_save_allow_undefined_flag=$allow_undefined_flag | 
 | 7362 |         allow_undefined_flag= | 
 | 7363 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 7364 |   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 7365 |   ac_status=$? | 
 | 7366 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7367 |   (exit $ac_status); } | 
 | 7368 |         then | 
 | 7369 | 	  archive_cmds_need_lc=no | 
 | 7370 |         else | 
 | 7371 | 	  archive_cmds_need_lc=yes | 
 | 7372 |         fi | 
 | 7373 |         allow_undefined_flag=$lt_save_allow_undefined_flag | 
 | 7374 |       else | 
 | 7375 |         cat conftest.err 1>&5 | 
 | 7376 |       fi | 
 | 7377 |       $rm conftest* | 
 | 7378 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
 | 7379 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 
 | 7380 |       ;; | 
 | 7381 |     esac | 
 | 7382 |   fi | 
 | 7383 |   ;; | 
 | 7384 | esac | 
 | 7385 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7386 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 7387 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 7388 | library_names_spec= | 
 | 7389 | libname_spec='lib$name' | 
 | 7390 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7391 | shrext_cmds=".so" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7392 | postinstall_cmds= | 
 | 7393 | postuninstall_cmds= | 
 | 7394 | finish_cmds= | 
 | 7395 | finish_eval= | 
 | 7396 | shlibpath_var= | 
 | 7397 | shlibpath_overrides_runpath=unknown | 
 | 7398 | version_type=none | 
 | 7399 | dynamic_linker="$host_os ld.so" | 
 | 7400 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7401 | if test "$GCC" = yes; then | 
 | 7402 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 7403 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 7404 |     # if the path contains ";" then we assume it to be the separator | 
 | 7405 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 7406 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 7407 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 7408 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 7409 |   else | 
 | 7410 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 7411 |   fi | 
 | 7412 | else | 
 | 7413 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 7414 | fi | 
 | 7415 | need_lib_prefix=unknown | 
 | 7416 | hardcode_into_libs=no | 
 | 7417 |  | 
 | 7418 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 7419 | # flags to be left without arguments | 
 | 7420 | need_version=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7421 |  | 
 | 7422 | case $host_os in | 
 | 7423 | aix3*) | 
 | 7424 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7425 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7426 |   shlibpath_var=LIBPATH | 
 | 7427 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7428 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 7429 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7430 |   ;; | 
 | 7431 |  | 
 | 7432 | aix4* | aix5*) | 
 | 7433 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7434 |   need_lib_prefix=no | 
 | 7435 |   need_version=no | 
 | 7436 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7437 |   if test "$host_cpu" = ia64; then | 
 | 7438 |     # AIX 5 supports IA64 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7439 |     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] | 7440 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7441 |   else | 
 | 7442 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 7443 |     # for dependence libraries.  The import file would start with | 
 | 7444 |     # the line `#! .'.  This would cause the generated library to | 
 | 7445 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 7446 |     # development snapshots of GCC prior to 3.0. | 
 | 7447 |     case $host_os in | 
 | 7448 |       aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7449 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 7450 | 	   echo ' yes ' | 
 | 7451 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 7452 | 	: | 
 | 7453 |       else | 
 | 7454 | 	can_build_shared=no | 
 | 7455 |       fi | 
 | 7456 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7457 |     esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7458 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 7459 |     # soname into executable. Probably we can add versioning support to | 
 | 7460 |     # collect2, so additional links can be useful in future. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7461 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 7462 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 7463 |       # instead of lib<name>.a to let people know that these are not | 
 | 7464 |       # typical AIX shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7465 |       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] | 7466 |     else | 
 | 7467 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 7468 |       # and later when we are not doing run time linking. | 
 | 7469 |       library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7470 |       soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7471 |     fi | 
 | 7472 |     shlibpath_var=LIBPATH | 
 | 7473 |   fi | 
 | 7474 |   ;; | 
 | 7475 |  | 
 | 7476 | amigaos*) | 
 | 7477 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 7478 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7479 |   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] | 7480 |   ;; | 
 | 7481 |  | 
 | 7482 | beos*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7483 |   library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7484 |   dynamic_linker="$host_os ld.so" | 
 | 7485 |   shlibpath_var=LIBRARY_PATH | 
 | 7486 |   ;; | 
 | 7487 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7488 | bsdi[45]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7489 |   version_type=linux | 
 | 7490 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7491 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7492 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7493 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 7494 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7495 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 7496 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7497 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 7498 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 7499 |   # libtool to hard-code these into programs | 
 | 7500 |   ;; | 
 | 7501 |  | 
 | 7502 | cygwin* | mingw* | pw32*) | 
 | 7503 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7504 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7505 |   need_version=no | 
 | 7506 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7507 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7508 |   case $GCC,$host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7509 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7510 |     library_names_spec='$libname.dll.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7511 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7512 |     postinstall_cmds='base_file=`basename \${file}`; | 
 | 7513 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; | 
 | 7514 |       dldir=$destdir/`dirname \$dlpath`; | 
 | 7515 |       test -d \$dldir || mkdir -p \$dldir; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7516 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7517 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; | 
 | 7518 |       dlpath=$dir/\$dldll; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7519 |        $rm \$dlpath' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7520 |     shlibpath_overrides_runpath=yes | 
 | 7521 |  | 
 | 7522 |     case $host_os in | 
 | 7523 |     cygwin*) | 
 | 7524 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 7525 |       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] | 7526 |       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] | 7527 |       ;; | 
 | 7528 |     mingw*) | 
 | 7529 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 7530 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 7531 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 7532 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 7533 |         # It is most probably a Windows format PATH printed by | 
 | 7534 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 7535 |         # path with ; separators, and with drive letters. We can handle the | 
 | 7536 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 7537 |         # especially as we might pass files found there to a mingw objdump, | 
 | 7538 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 7539 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 7540 |       else | 
 | 7541 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 7542 |       fi | 
 | 7543 |       ;; | 
 | 7544 |     pw32*) | 
 | 7545 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 7546 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 7547 |       ;; | 
 | 7548 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7549 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7550 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7551 |   *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7552 |     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] | 7553 |     ;; | 
 | 7554 |   esac | 
 | 7555 |   dynamic_linker='Win32 ld.exe' | 
 | 7556 |   # FIXME: first we should search . and the directory the executable is in | 
 | 7557 |   shlibpath_var=PATH | 
 | 7558 |   ;; | 
 | 7559 |  | 
 | 7560 | darwin* | rhapsody*) | 
 | 7561 |   dynamic_linker="$host_os dyld" | 
 | 7562 |   version_type=darwin | 
 | 7563 |   need_lib_prefix=no | 
 | 7564 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7565 |   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] | 7566 |   soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7567 |   shlibpath_overrides_runpath=yes | 
 | 7568 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7569 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7570 |   # 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] | 7571 |   if test "$GCC" = yes; then | 
 | 7572 |     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"` | 
 | 7573 |   else | 
 | 7574 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7575 |   fi | 
 | 7576 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 7577 |   ;; | 
 | 7578 |  | 
 | 7579 | dgux*) | 
 | 7580 |   version_type=linux | 
 | 7581 |   need_lib_prefix=no | 
 | 7582 |   need_version=no | 
 | 7583 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 7584 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7585 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7586 |   ;; | 
 | 7587 |  | 
 | 7588 | freebsd1*) | 
 | 7589 |   dynamic_linker=no | 
 | 7590 |   ;; | 
 | 7591 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7592 | kfreebsd*-gnu) | 
 | 7593 |   version_type=linux | 
 | 7594 |   need_lib_prefix=no | 
 | 7595 |   need_version=no | 
 | 7596 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7597 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7598 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7599 |   shlibpath_overrides_runpath=no | 
 | 7600 |   hardcode_into_libs=yes | 
 | 7601 |   dynamic_linker='GNU ld.so' | 
 | 7602 |   ;; | 
 | 7603 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7604 | freebsd*) | 
 | 7605 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 7606 |   version_type=freebsd-$objformat | 
 | 7607 |   case $version_type in | 
 | 7608 |     freebsd-elf*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7609 |       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] | 7610 |       need_version=no | 
 | 7611 |       need_lib_prefix=no | 
 | 7612 |       ;; | 
 | 7613 |     freebsd-*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7614 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7615 |       need_version=yes | 
 | 7616 |       ;; | 
 | 7617 |   esac | 
 | 7618 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7619 |   case $host_os in | 
 | 7620 |   freebsd2*) | 
 | 7621 |     shlibpath_overrides_runpath=yes | 
 | 7622 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7623 |   freebsd3.01* | freebsdelf3.01*) | 
 | 7624 |     shlibpath_overrides_runpath=yes | 
 | 7625 |     hardcode_into_libs=yes | 
 | 7626 |     ;; | 
 | 7627 |   *) # from 3.2 on | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7628 |     shlibpath_overrides_runpath=no | 
 | 7629 |     hardcode_into_libs=yes | 
 | 7630 |     ;; | 
 | 7631 |   esac | 
 | 7632 |   ;; | 
 | 7633 |  | 
 | 7634 | gnu*) | 
 | 7635 |   version_type=linux | 
 | 7636 |   need_lib_prefix=no | 
 | 7637 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7638 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 7639 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7640 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7641 |   hardcode_into_libs=yes | 
 | 7642 |   ;; | 
 | 7643 |  | 
 | 7644 | hpux9* | hpux10* | hpux11*) | 
 | 7645 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 7646 |   # link against other versions. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7647 |   version_type=sunos | 
 | 7648 |   need_lib_prefix=no | 
 | 7649 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7650 |   case "$host_cpu" in | 
 | 7651 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7652 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7653 |     hardcode_into_libs=yes | 
 | 7654 |     dynamic_linker="$host_os dld.so" | 
 | 7655 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7656 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 7657 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7658 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7659 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 7660 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 7661 |     else | 
 | 7662 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 7663 |     fi | 
 | 7664 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 7665 |     ;; | 
 | 7666 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7667 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7668 |      hardcode_into_libs=yes | 
 | 7669 |      dynamic_linker="$host_os dld.sl" | 
 | 7670 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 7671 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 7672 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7673 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7674 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 7675 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 7676 |      ;; | 
 | 7677 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7678 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7679 |     dynamic_linker="$host_os dld.sl" | 
 | 7680 |     shlibpath_var=SHLIB_PATH | 
 | 7681 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 7682 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7683 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7684 |     ;; | 
 | 7685 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7686 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 7687 |   postinstall_cmds='chmod 555 $lib' | 
 | 7688 |   ;; | 
 | 7689 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7690 | irix5* | irix6* | nonstopux*) | 
 | 7691 |   case $host_os in | 
 | 7692 |     nonstopux*) version_type=nonstopux ;; | 
 | 7693 |     *) | 
 | 7694 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 7695 | 		version_type=linux | 
 | 7696 | 	else | 
 | 7697 | 		version_type=irix | 
 | 7698 | 	fi ;; | 
 | 7699 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7700 |   need_lib_prefix=no | 
 | 7701 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7702 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7703 |   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] | 7704 |   case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7705 |   irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7706 |     libsuff= shlibsuff= | 
 | 7707 |     ;; | 
 | 7708 |   *) | 
 | 7709 |     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] | 7710 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 7711 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 7712 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 7713 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 7714 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 7715 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7716 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 7717 |     esac | 
 | 7718 |     ;; | 
 | 7719 |   esac | 
 | 7720 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 7721 |   shlibpath_overrides_runpath=no | 
 | 7722 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 7723 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7724 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7725 |   ;; | 
 | 7726 |  | 
 | 7727 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7728 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7729 |   dynamic_linker=no | 
 | 7730 |   ;; | 
 | 7731 |  | 
 | 7732 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7733 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7734 |   version_type=linux | 
 | 7735 |   need_lib_prefix=no | 
 | 7736 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7737 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7738 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7739 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 7740 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7741 |   shlibpath_overrides_runpath=no | 
 | 7742 |   # This implies no fast_install, which is unacceptable. | 
 | 7743 |   # Some rework will be needed to allow for fast_install | 
 | 7744 |   # before this can be enabled. | 
 | 7745 |   hardcode_into_libs=yes | 
 | 7746 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7747 |   # Append ld.so.conf contents to the search path | 
 | 7748 |   if test -f /etc/ld.so.conf; then | 
 | 7749 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 7750 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 7751 |   fi | 
 | 7752 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7753 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 7754 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 7755 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 7756 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 7757 |   # people can always --disable-shared, the test was removed, and we | 
 | 7758 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 7759 |   dynamic_linker='GNU/Linux ld.so' | 
 | 7760 |   ;; | 
 | 7761 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7762 | knetbsd*-gnu) | 
 | 7763 |   version_type=linux | 
 | 7764 |   need_lib_prefix=no | 
 | 7765 |   need_version=no | 
 | 7766 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7767 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7768 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7769 |   shlibpath_overrides_runpath=no | 
 | 7770 |   hardcode_into_libs=yes | 
 | 7771 |   dynamic_linker='GNU ld.so' | 
 | 7772 |   ;; | 
 | 7773 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7774 | netbsd*) | 
 | 7775 |   version_type=sunos | 
 | 7776 |   need_lib_prefix=no | 
 | 7777 |   need_version=no | 
 | 7778 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7779 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7780 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7781 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 7782 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7783 |     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] | 7784 |     soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7785 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 7786 |   fi | 
 | 7787 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7788 |   shlibpath_overrides_runpath=yes | 
 | 7789 |   hardcode_into_libs=yes | 
 | 7790 |   ;; | 
 | 7791 |  | 
 | 7792 | newsos6) | 
 | 7793 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7794 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7795 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7796 |   shlibpath_overrides_runpath=yes | 
 | 7797 |   ;; | 
 | 7798 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7799 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7800 |   version_type=linux | 
 | 7801 |   need_lib_prefix=no | 
 | 7802 |   need_version=no | 
 | 7803 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7804 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7805 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7806 |   shlibpath_overrides_runpath=yes | 
 | 7807 |   ;; | 
 | 7808 |  | 
 | 7809 | openbsd*) | 
 | 7810 |   version_type=sunos | 
 | 7811 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7812 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7813 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7814 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7815 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7816 |   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] | 7817 |     case $host_os in | 
 | 7818 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 7819 | 	shlibpath_overrides_runpath=no | 
 | 7820 | 	;; | 
 | 7821 |       *) | 
 | 7822 | 	shlibpath_overrides_runpath=yes | 
 | 7823 | 	;; | 
 | 7824 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7825 |   else | 
 | 7826 |     shlibpath_overrides_runpath=yes | 
 | 7827 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7828 |   ;; | 
 | 7829 |  | 
 | 7830 | os2*) | 
 | 7831 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7832 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7833 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7834 |   library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7835 |   dynamic_linker='OS/2 ld.exe' | 
 | 7836 |   shlibpath_var=LIBPATH | 
 | 7837 |   ;; | 
 | 7838 |  | 
 | 7839 | osf3* | osf4* | osf5*) | 
 | 7840 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7841 |   need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7842 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7843 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7844 |   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] | 7845 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7846 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 7847 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 7848 |   ;; | 
 | 7849 |  | 
 | 7850 | sco3.2v5*) | 
 | 7851 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7852 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7853 |   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] | 7854 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7855 |   ;; | 
 | 7856 |  | 
 | 7857 | solaris*) | 
 | 7858 |   version_type=linux | 
 | 7859 |   need_lib_prefix=no | 
 | 7860 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7861 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7862 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7863 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7864 |   shlibpath_overrides_runpath=yes | 
 | 7865 |   hardcode_into_libs=yes | 
 | 7866 |   # ldd complains unless libraries are executable | 
 | 7867 |   postinstall_cmds='chmod +x $lib' | 
 | 7868 |   ;; | 
 | 7869 |  | 
 | 7870 | sunos4*) | 
 | 7871 |   version_type=sunos | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7872 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7873 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 7874 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7875 |   shlibpath_overrides_runpath=yes | 
 | 7876 |   if test "$with_gnu_ld" = yes; then | 
 | 7877 |     need_lib_prefix=no | 
 | 7878 |   fi | 
 | 7879 |   need_version=yes | 
 | 7880 |   ;; | 
 | 7881 |  | 
 | 7882 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 7883 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7884 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7885 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7886 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7887 |   case $host_vendor in | 
 | 7888 |     sni) | 
 | 7889 |       shlibpath_overrides_runpath=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7890 |       need_lib_prefix=no | 
 | 7891 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 7892 |       runpath_var=LD_RUN_PATH | 
 | 7893 |       ;; | 
 | 7894 |     siemens) | 
 | 7895 |       need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7896 |       ;; | 
 | 7897 |     motorola) | 
 | 7898 |       need_lib_prefix=no | 
 | 7899 |       need_version=no | 
 | 7900 |       shlibpath_overrides_runpath=no | 
 | 7901 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 7902 |       ;; | 
 | 7903 |   esac | 
 | 7904 |   ;; | 
 | 7905 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7906 | sysv4*MP*) | 
 | 7907 |   if test -d /usr/nec ;then | 
 | 7908 |     version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7909 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 7910 |     soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7911 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7912 |   fi | 
 | 7913 |   ;; | 
 | 7914 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7915 | uts4*) | 
 | 7916 |   version_type=linux | 
 | 7917 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7918 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7919 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7920 |   ;; | 
 | 7921 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7922 | *) | 
 | 7923 |   dynamic_linker=no | 
 | 7924 |   ;; | 
 | 7925 | esac | 
 | 7926 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 7927 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 7928 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7929 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7930 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 7931 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 7932 | hardcode_action= | 
 | 7933 | if test -n "$hardcode_libdir_flag_spec" || \ | 
 | 7934 |    test -n "$runpath_var" || \ | 
 | 7935 |    test "X$hardcode_automatic" = "Xyes" ; then | 
 | 7936 |  | 
 | 7937 |   # We can hardcode non-existant directories. | 
 | 7938 |   if test "$hardcode_direct" != no && | 
 | 7939 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 7940 |      # have to relink, otherwise we might link with an installed library | 
 | 7941 |      # when we should be linking with a yet-to-be-installed one | 
 | 7942 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
 | 7943 |      test "$hardcode_minus_L" != no; then | 
 | 7944 |     # Linking always hardcodes the temporary library directory. | 
 | 7945 |     hardcode_action=relink | 
 | 7946 |   else | 
 | 7947 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 7948 |     hardcode_action=immediate | 
 | 7949 |   fi | 
 | 7950 | else | 
 | 7951 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 7952 |   # directories. | 
 | 7953 |   hardcode_action=unsupported | 
 | 7954 | fi | 
 | 7955 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
 | 7956 | echo "${ECHO_T}$hardcode_action" >&6 | 
 | 7957 |  | 
 | 7958 | if test "$hardcode_action" = relink; then | 
 | 7959 |   # Fast installation is not supported | 
 | 7960 |   enable_fast_install=no | 
 | 7961 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 7962 |      test "$enable_shared" = no; then | 
 | 7963 |   # Fast installation is not necessary | 
 | 7964 |   enable_fast_install=needless | 
 | 7965 | fi | 
 | 7966 |  | 
 | 7967 | striplib= | 
 | 7968 | old_striplib= | 
 | 7969 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 7970 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 7971 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 7972 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 7973 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 7974 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 7975 | echo "${ECHO_T}yes" >&6 | 
 | 7976 | else | 
 | 7977 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 7978 |   case $host_os in | 
 | 7979 |    darwin*) | 
 | 7980 |        if test -n "$STRIP" ; then | 
 | 7981 |          striplib="$STRIP -x" | 
 | 7982 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 7983 | echo "${ECHO_T}yes" >&6 | 
 | 7984 |        else | 
 | 7985 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 7986 | echo "${ECHO_T}no" >&6 | 
 | 7987 | fi | 
 | 7988 |        ;; | 
 | 7989 |    *) | 
 | 7990 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 7991 | echo "${ECHO_T}no" >&6 | 
 | 7992 |     ;; | 
 | 7993 |   esac | 
 | 7994 | fi | 
 | 7995 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7996 | if test "x$enable_dlopen" != xyes; then | 
 | 7997 |   enable_dlopen=unknown | 
 | 7998 |   enable_dlopen_self=unknown | 
 | 7999 |   enable_dlopen_self_static=unknown | 
 | 8000 | else | 
 | 8001 |   lt_cv_dlopen=no | 
 | 8002 |   lt_cv_dlopen_libs= | 
 | 8003 |  | 
 | 8004 |   case $host_os in | 
 | 8005 |   beos*) | 
 | 8006 |     lt_cv_dlopen="load_add_on" | 
 | 8007 |     lt_cv_dlopen_libs= | 
 | 8008 |     lt_cv_dlopen_self=yes | 
 | 8009 |     ;; | 
 | 8010 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8011 |   mingw* | pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8012 |     lt_cv_dlopen="LoadLibrary" | 
 | 8013 |     lt_cv_dlopen_libs= | 
 | 8014 |    ;; | 
 | 8015 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8016 |   cygwin*) | 
 | 8017 |     lt_cv_dlopen="dlopen" | 
 | 8018 |     lt_cv_dlopen_libs= | 
 | 8019 |    ;; | 
 | 8020 |  | 
 | 8021 |   darwin*) | 
 | 8022 |   # if libdl is installed we need to link against it | 
 | 8023 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 8024 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 8025 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 8026 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8027 | else | 
 | 8028 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8029 | LIBS="-ldl  $LIBS" | 
 | 8030 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8031 | /* confdefs.h.  */ | 
 | 8032 | _ACEOF | 
 | 8033 | cat confdefs.h >>conftest.$ac_ext | 
 | 8034 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8035 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8036 |  | 
 | 8037 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8038 | #ifdef __cplusplus | 
 | 8039 | extern "C" | 
 | 8040 | #endif | 
 | 8041 | /* We use char because int might match the return type of a gcc2 | 
 | 8042 |    builtin and then its argument prototype would still apply.  */ | 
 | 8043 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8044 | int | 
 | 8045 | main () | 
 | 8046 | { | 
 | 8047 | dlopen (); | 
 | 8048 |   ; | 
 | 8049 |   return 0; | 
 | 8050 | } | 
 | 8051 | _ACEOF | 
 | 8052 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8054 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8055 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8056 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8057 |   rm -f conftest.er1 | 
 | 8058 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8059 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8060 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8061 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8062 | 			 || test ! -s conftest.err' | 
 | 8063 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8064 |   (eval $ac_try) 2>&5 | 
 | 8065 |   ac_status=$? | 
 | 8066 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8067 |   (exit $ac_status); }; } && | 
 | 8068 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8069 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8070 |   (eval $ac_try) 2>&5 | 
 | 8071 |   ac_status=$? | 
 | 8072 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8073 |   (exit $ac_status); }; }; then | 
 | 8074 |   ac_cv_lib_dl_dlopen=yes | 
 | 8075 | else | 
 | 8076 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8077 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8078 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8079 | ac_cv_lib_dl_dlopen=no | 
 | 8080 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8081 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8082 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8083 | LIBS=$ac_check_lib_save_LIBS | 
 | 8084 | fi | 
 | 8085 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8086 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 8087 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 8088 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 8089 | else | 
 | 8090 |  | 
 | 8091 |     lt_cv_dlopen="dyld" | 
 | 8092 |     lt_cv_dlopen_libs= | 
 | 8093 |     lt_cv_dlopen_self=yes | 
 | 8094 |  | 
 | 8095 | fi | 
 | 8096 |  | 
 | 8097 |    ;; | 
 | 8098 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8099 |   *) | 
 | 8100 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 8101 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 8102 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 8103 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8104 | else | 
 | 8105 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8106 | /* confdefs.h.  */ | 
 | 8107 | _ACEOF | 
 | 8108 | cat confdefs.h >>conftest.$ac_ext | 
 | 8109 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8110 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8111 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 8112 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8113 | #define shl_load innocuous_shl_load | 
 | 8114 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8115 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8116 |     which can conflict with char shl_load (); below. | 
 | 8117 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8118 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8119 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8120 | #ifdef __STDC__ | 
 | 8121 | # include <limits.h> | 
 | 8122 | #else | 
 | 8123 | # include <assert.h> | 
 | 8124 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8125 |  | 
 | 8126 | #undef shl_load | 
 | 8127 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8128 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8129 | #ifdef __cplusplus | 
 | 8130 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8131 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8132 | #endif | 
 | 8133 | /* We use char because int might match the return type of a gcc2 | 
 | 8134 |    builtin and then its argument prototype would still apply.  */ | 
 | 8135 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8136 | /* The GNU C library defines this for functions which it implements | 
 | 8137 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8138 |     something starting with __ and the normal name is an alias.  */ | 
 | 8139 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 8140 | choke me | 
 | 8141 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8142 | char (*f) () = shl_load; | 
 | 8143 | #endif | 
 | 8144 | #ifdef __cplusplus | 
 | 8145 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8146 | #endif | 
 | 8147 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8148 | int | 
 | 8149 | main () | 
 | 8150 | { | 
 | 8151 | return f != shl_load; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8152 |   ; | 
 | 8153 |   return 0; | 
 | 8154 | } | 
 | 8155 | _ACEOF | 
 | 8156 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8158 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8159 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8160 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8161 |   rm -f conftest.er1 | 
 | 8162 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8163 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8164 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8165 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8166 | 			 || test ! -s conftest.err' | 
 | 8167 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8168 |   (eval $ac_try) 2>&5 | 
 | 8169 |   ac_status=$? | 
 | 8170 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8171 |   (exit $ac_status); }; } && | 
 | 8172 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8173 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8174 |   (eval $ac_try) 2>&5 | 
 | 8175 |   ac_status=$? | 
 | 8176 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8177 |   (exit $ac_status); }; }; then | 
 | 8178 |   ac_cv_func_shl_load=yes | 
 | 8179 | else | 
 | 8180 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8181 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8182 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8183 | ac_cv_func_shl_load=no | 
 | 8184 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8185 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8186 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8187 | fi | 
 | 8188 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 8189 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 8190 | if test $ac_cv_func_shl_load = yes; then | 
 | 8191 |   lt_cv_dlopen="shl_load" | 
 | 8192 | else | 
 | 8193 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 8194 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 8195 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 8196 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8197 | else | 
 | 8198 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8199 | LIBS="-ldld  $LIBS" | 
 | 8200 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8201 | /* confdefs.h.  */ | 
 | 8202 | _ACEOF | 
 | 8203 | cat confdefs.h >>conftest.$ac_ext | 
 | 8204 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8205 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8206 |  | 
 | 8207 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8208 | #ifdef __cplusplus | 
 | 8209 | extern "C" | 
 | 8210 | #endif | 
 | 8211 | /* We use char because int might match the return type of a gcc2 | 
 | 8212 |    builtin and then its argument prototype would still apply.  */ | 
 | 8213 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8214 | int | 
 | 8215 | main () | 
 | 8216 | { | 
 | 8217 | shl_load (); | 
 | 8218 |   ; | 
 | 8219 |   return 0; | 
 | 8220 | } | 
 | 8221 | _ACEOF | 
 | 8222 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8224 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8225 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8226 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8227 |   rm -f conftest.er1 | 
 | 8228 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8229 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8230 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8231 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8232 | 			 || test ! -s conftest.err' | 
 | 8233 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8234 |   (eval $ac_try) 2>&5 | 
 | 8235 |   ac_status=$? | 
 | 8236 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8237 |   (exit $ac_status); }; } && | 
 | 8238 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8239 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8240 |   (eval $ac_try) 2>&5 | 
 | 8241 |   ac_status=$? | 
 | 8242 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8243 |   (exit $ac_status); }; }; then | 
 | 8244 |   ac_cv_lib_dld_shl_load=yes | 
 | 8245 | else | 
 | 8246 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8247 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8248 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8249 | ac_cv_lib_dld_shl_load=no | 
 | 8250 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8251 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8252 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8253 | LIBS=$ac_check_lib_save_LIBS | 
 | 8254 | fi | 
 | 8255 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 8256 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 8257 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 8258 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 8259 | else | 
 | 8260 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 8261 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 8262 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 8263 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8264 | else | 
 | 8265 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8266 | /* confdefs.h.  */ | 
 | 8267 | _ACEOF | 
 | 8268 | cat confdefs.h >>conftest.$ac_ext | 
 | 8269 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8270 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8271 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 8272 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8273 | #define dlopen innocuous_dlopen | 
 | 8274 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8275 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8276 |     which can conflict with char dlopen (); below. | 
 | 8277 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8278 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8279 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8280 | #ifdef __STDC__ | 
 | 8281 | # include <limits.h> | 
 | 8282 | #else | 
 | 8283 | # include <assert.h> | 
 | 8284 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8285 |  | 
 | 8286 | #undef dlopen | 
 | 8287 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8288 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8289 | #ifdef __cplusplus | 
 | 8290 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8291 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8292 | #endif | 
 | 8293 | /* We use char because int might match the return type of a gcc2 | 
 | 8294 |    builtin and then its argument prototype would still apply.  */ | 
 | 8295 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8296 | /* The GNU C library defines this for functions which it implements | 
 | 8297 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8298 |     something starting with __ and the normal name is an alias.  */ | 
 | 8299 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 8300 | choke me | 
 | 8301 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8302 | char (*f) () = dlopen; | 
 | 8303 | #endif | 
 | 8304 | #ifdef __cplusplus | 
 | 8305 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8306 | #endif | 
 | 8307 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8308 | int | 
 | 8309 | main () | 
 | 8310 | { | 
 | 8311 | return f != dlopen; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8312 |   ; | 
 | 8313 |   return 0; | 
 | 8314 | } | 
 | 8315 | _ACEOF | 
 | 8316 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8318 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8319 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8320 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8321 |   rm -f conftest.er1 | 
 | 8322 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8323 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8324 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8325 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8326 | 			 || test ! -s conftest.err' | 
 | 8327 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8328 |   (eval $ac_try) 2>&5 | 
 | 8329 |   ac_status=$? | 
 | 8330 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8331 |   (exit $ac_status); }; } && | 
 | 8332 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8333 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8334 |   (eval $ac_try) 2>&5 | 
 | 8335 |   ac_status=$? | 
 | 8336 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8337 |   (exit $ac_status); }; }; then | 
 | 8338 |   ac_cv_func_dlopen=yes | 
 | 8339 | else | 
 | 8340 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8341 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8342 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8343 | ac_cv_func_dlopen=no | 
 | 8344 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8345 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8346 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8347 | fi | 
 | 8348 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 8349 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 8350 | if test $ac_cv_func_dlopen = yes; then | 
 | 8351 |   lt_cv_dlopen="dlopen" | 
 | 8352 | else | 
 | 8353 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 8354 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 8355 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 8356 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8357 | else | 
 | 8358 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8359 | LIBS="-ldl  $LIBS" | 
 | 8360 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8361 | /* confdefs.h.  */ | 
 | 8362 | _ACEOF | 
 | 8363 | cat confdefs.h >>conftest.$ac_ext | 
 | 8364 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8365 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8366 |  | 
 | 8367 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8368 | #ifdef __cplusplus | 
 | 8369 | extern "C" | 
 | 8370 | #endif | 
 | 8371 | /* We use char because int might match the return type of a gcc2 | 
 | 8372 |    builtin and then its argument prototype would still apply.  */ | 
 | 8373 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8374 | int | 
 | 8375 | main () | 
 | 8376 | { | 
 | 8377 | dlopen (); | 
 | 8378 |   ; | 
 | 8379 |   return 0; | 
 | 8380 | } | 
 | 8381 | _ACEOF | 
 | 8382 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8384 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8385 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8386 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8387 |   rm -f conftest.er1 | 
 | 8388 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8389 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8390 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8391 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8392 | 			 || test ! -s conftest.err' | 
 | 8393 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8394 |   (eval $ac_try) 2>&5 | 
 | 8395 |   ac_status=$? | 
 | 8396 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8397 |   (exit $ac_status); }; } && | 
 | 8398 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8399 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8400 |   (eval $ac_try) 2>&5 | 
 | 8401 |   ac_status=$? | 
 | 8402 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8403 |   (exit $ac_status); }; }; then | 
 | 8404 |   ac_cv_lib_dl_dlopen=yes | 
 | 8405 | else | 
 | 8406 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8407 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8408 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8409 | ac_cv_lib_dl_dlopen=no | 
 | 8410 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8411 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8412 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8413 | LIBS=$ac_check_lib_save_LIBS | 
 | 8414 | fi | 
 | 8415 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8416 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 8417 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 8418 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 8419 | else | 
 | 8420 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 8421 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 8422 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 8423 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8424 | else | 
 | 8425 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8426 | LIBS="-lsvld  $LIBS" | 
 | 8427 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8428 | /* confdefs.h.  */ | 
 | 8429 | _ACEOF | 
 | 8430 | cat confdefs.h >>conftest.$ac_ext | 
 | 8431 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8432 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8433 |  | 
 | 8434 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8435 | #ifdef __cplusplus | 
 | 8436 | extern "C" | 
 | 8437 | #endif | 
 | 8438 | /* We use char because int might match the return type of a gcc2 | 
 | 8439 |    builtin and then its argument prototype would still apply.  */ | 
 | 8440 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8441 | int | 
 | 8442 | main () | 
 | 8443 | { | 
 | 8444 | dlopen (); | 
 | 8445 |   ; | 
 | 8446 |   return 0; | 
 | 8447 | } | 
 | 8448 | _ACEOF | 
 | 8449 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8451 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8452 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8453 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8454 |   rm -f conftest.er1 | 
 | 8455 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8456 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8457 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8458 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8459 | 			 || test ! -s conftest.err' | 
 | 8460 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8461 |   (eval $ac_try) 2>&5 | 
 | 8462 |   ac_status=$? | 
 | 8463 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8464 |   (exit $ac_status); }; } && | 
 | 8465 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8466 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8467 |   (eval $ac_try) 2>&5 | 
 | 8468 |   ac_status=$? | 
 | 8469 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8470 |   (exit $ac_status); }; }; then | 
 | 8471 |   ac_cv_lib_svld_dlopen=yes | 
 | 8472 | else | 
 | 8473 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8474 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8475 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8476 | ac_cv_lib_svld_dlopen=no | 
 | 8477 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8478 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8479 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8480 | LIBS=$ac_check_lib_save_LIBS | 
 | 8481 | fi | 
 | 8482 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 8483 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 8484 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 8485 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 8486 | else | 
 | 8487 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 8488 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 8489 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 8490 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8491 | else | 
 | 8492 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8493 | LIBS="-ldld  $LIBS" | 
 | 8494 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8495 | /* confdefs.h.  */ | 
 | 8496 | _ACEOF | 
 | 8497 | cat confdefs.h >>conftest.$ac_ext | 
 | 8498 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8499 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8500 |  | 
 | 8501 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8502 | #ifdef __cplusplus | 
 | 8503 | extern "C" | 
 | 8504 | #endif | 
 | 8505 | /* We use char because int might match the return type of a gcc2 | 
 | 8506 |    builtin and then its argument prototype would still apply.  */ | 
 | 8507 | char dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8508 | int | 
 | 8509 | main () | 
 | 8510 | { | 
 | 8511 | dld_link (); | 
 | 8512 |   ; | 
 | 8513 |   return 0; | 
 | 8514 | } | 
 | 8515 | _ACEOF | 
 | 8516 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8518 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8519 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8520 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8521 |   rm -f conftest.er1 | 
 | 8522 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8523 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8524 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8525 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8526 | 			 || test ! -s conftest.err' | 
 | 8527 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8528 |   (eval $ac_try) 2>&5 | 
 | 8529 |   ac_status=$? | 
 | 8530 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8531 |   (exit $ac_status); }; } && | 
 | 8532 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8533 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8534 |   (eval $ac_try) 2>&5 | 
 | 8535 |   ac_status=$? | 
 | 8536 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8537 |   (exit $ac_status); }; }; then | 
 | 8538 |   ac_cv_lib_dld_dld_link=yes | 
 | 8539 | else | 
 | 8540 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8541 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8542 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8543 | ac_cv_lib_dld_dld_link=no | 
 | 8544 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8545 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8546 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8547 | LIBS=$ac_check_lib_save_LIBS | 
 | 8548 | fi | 
 | 8549 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 8550 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 8551 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 8552 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 8553 | fi | 
 | 8554 |  | 
 | 8555 |  | 
 | 8556 | fi | 
 | 8557 |  | 
 | 8558 |  | 
 | 8559 | fi | 
 | 8560 |  | 
 | 8561 |  | 
 | 8562 | fi | 
 | 8563 |  | 
 | 8564 |  | 
 | 8565 | fi | 
 | 8566 |  | 
 | 8567 |  | 
 | 8568 | fi | 
 | 8569 |  | 
 | 8570 |     ;; | 
 | 8571 |   esac | 
 | 8572 |  | 
 | 8573 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 8574 |     enable_dlopen=yes | 
 | 8575 |   else | 
 | 8576 |     enable_dlopen=no | 
 | 8577 |   fi | 
 | 8578 |  | 
 | 8579 |   case $lt_cv_dlopen in | 
 | 8580 |   dlopen) | 
 | 8581 |     save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8582 |     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] | 8583 |  | 
 | 8584 |     save_LDFLAGS="$LDFLAGS" | 
 | 8585 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 8586 |  | 
 | 8587 |     save_LIBS="$LIBS" | 
 | 8588 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 8589 |  | 
 | 8590 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 8591 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 8592 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 8593 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8594 | else | 
 | 8595 |   	  if test "$cross_compiling" = yes; then : | 
 | 8596 |   lt_cv_dlopen_self=cross | 
 | 8597 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8598 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8599 |   lt_status=$lt_dlunknown | 
 | 8600 |   cat > conftest.$ac_ext <<EOF | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 8601 | #line 8601 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8602 | #include "confdefs.h" | 
 | 8603 |  | 
 | 8604 | #if HAVE_DLFCN_H | 
 | 8605 | #include <dlfcn.h> | 
 | 8606 | #endif | 
 | 8607 |  | 
 | 8608 | #include <stdio.h> | 
 | 8609 |  | 
 | 8610 | #ifdef RTLD_GLOBAL | 
 | 8611 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 8612 | #else | 
 | 8613 | #  ifdef DL_GLOBAL | 
 | 8614 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 8615 | #  else | 
 | 8616 | #    define LT_DLGLOBAL		0 | 
 | 8617 | #  endif | 
 | 8618 | #endif | 
 | 8619 |  | 
 | 8620 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 8621 |    find out it does not work in some platform. */ | 
 | 8622 | #ifndef LT_DLLAZY_OR_NOW | 
 | 8623 | #  ifdef RTLD_LAZY | 
 | 8624 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 8625 | #  else | 
 | 8626 | #    ifdef DL_LAZY | 
 | 8627 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 8628 | #    else | 
 | 8629 | #      ifdef RTLD_NOW | 
 | 8630 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 8631 | #      else | 
 | 8632 | #        ifdef DL_NOW | 
 | 8633 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 8634 | #        else | 
 | 8635 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 8636 | #        endif | 
 | 8637 | #      endif | 
 | 8638 | #    endif | 
 | 8639 | #  endif | 
 | 8640 | #endif | 
 | 8641 |  | 
 | 8642 | #ifdef __cplusplus | 
 | 8643 | extern "C" void exit (int); | 
 | 8644 | #endif | 
 | 8645 |  | 
 | 8646 | void fnord() { int i=42;} | 
 | 8647 | int main () | 
 | 8648 | { | 
 | 8649 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 8650 |   int status = $lt_dlunknown; | 
 | 8651 |  | 
 | 8652 |   if (self) | 
 | 8653 |     { | 
 | 8654 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 8655 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 8656 |       /* dlclose (self); */ | 
 | 8657 |     } | 
 | 8658 |  | 
 | 8659 |     exit (status); | 
 | 8660 | } | 
 | 8661 | EOF | 
 | 8662 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8663 |   (eval $ac_link) 2>&5 | 
 | 8664 |   ac_status=$? | 
 | 8665 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8666 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 8667 |     (./conftest; exit; ) 2>/dev/null | 
 | 8668 |     lt_status=$? | 
 | 8669 |     case x$lt_status in | 
 | 8670 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 8671 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 8672 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 8673 |     esac | 
 | 8674 |   else : | 
 | 8675 |     # compilation failed | 
 | 8676 |     lt_cv_dlopen_self=no | 
 | 8677 |   fi | 
 | 8678 | fi | 
 | 8679 | rm -fr conftest* | 
 | 8680 |  | 
 | 8681 |  | 
 | 8682 | fi | 
 | 8683 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 8684 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 8685 |  | 
 | 8686 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 8687 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 8688 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 8689 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 8690 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 8691 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8692 | else | 
 | 8693 |   	  if test "$cross_compiling" = yes; then : | 
 | 8694 |   lt_cv_dlopen_self_static=cross | 
 | 8695 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8696 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8697 |   lt_status=$lt_dlunknown | 
 | 8698 |   cat > conftest.$ac_ext <<EOF | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 8699 | #line 8699 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8700 | #include "confdefs.h" | 
 | 8701 |  | 
 | 8702 | #if HAVE_DLFCN_H | 
 | 8703 | #include <dlfcn.h> | 
 | 8704 | #endif | 
 | 8705 |  | 
 | 8706 | #include <stdio.h> | 
 | 8707 |  | 
 | 8708 | #ifdef RTLD_GLOBAL | 
 | 8709 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 8710 | #else | 
 | 8711 | #  ifdef DL_GLOBAL | 
 | 8712 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 8713 | #  else | 
 | 8714 | #    define LT_DLGLOBAL		0 | 
 | 8715 | #  endif | 
 | 8716 | #endif | 
 | 8717 |  | 
 | 8718 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 8719 |    find out it does not work in some platform. */ | 
 | 8720 | #ifndef LT_DLLAZY_OR_NOW | 
 | 8721 | #  ifdef RTLD_LAZY | 
 | 8722 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 8723 | #  else | 
 | 8724 | #    ifdef DL_LAZY | 
 | 8725 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 8726 | #    else | 
 | 8727 | #      ifdef RTLD_NOW | 
 | 8728 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 8729 | #      else | 
 | 8730 | #        ifdef DL_NOW | 
 | 8731 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 8732 | #        else | 
 | 8733 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 8734 | #        endif | 
 | 8735 | #      endif | 
 | 8736 | #    endif | 
 | 8737 | #  endif | 
 | 8738 | #endif | 
 | 8739 |  | 
 | 8740 | #ifdef __cplusplus | 
 | 8741 | extern "C" void exit (int); | 
 | 8742 | #endif | 
 | 8743 |  | 
 | 8744 | void fnord() { int i=42;} | 
 | 8745 | int main () | 
 | 8746 | { | 
 | 8747 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 8748 |   int status = $lt_dlunknown; | 
 | 8749 |  | 
 | 8750 |   if (self) | 
 | 8751 |     { | 
 | 8752 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 8753 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 8754 |       /* dlclose (self); */ | 
 | 8755 |     } | 
 | 8756 |  | 
 | 8757 |     exit (status); | 
 | 8758 | } | 
 | 8759 | EOF | 
 | 8760 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8761 |   (eval $ac_link) 2>&5 | 
 | 8762 |   ac_status=$? | 
 | 8763 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8764 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 8765 |     (./conftest; exit; ) 2>/dev/null | 
 | 8766 |     lt_status=$? | 
 | 8767 |     case x$lt_status in | 
 | 8768 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 8769 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 8770 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 8771 |     esac | 
 | 8772 |   else : | 
 | 8773 |     # compilation failed | 
 | 8774 |     lt_cv_dlopen_self_static=no | 
 | 8775 |   fi | 
 | 8776 | fi | 
 | 8777 | rm -fr conftest* | 
 | 8778 |  | 
 | 8779 |  | 
 | 8780 | fi | 
 | 8781 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 8782 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 8783 |     fi | 
 | 8784 |  | 
 | 8785 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 8786 |     LDFLAGS="$save_LDFLAGS" | 
 | 8787 |     LIBS="$save_LIBS" | 
 | 8788 |     ;; | 
 | 8789 |   esac | 
 | 8790 |  | 
 | 8791 |   case $lt_cv_dlopen_self in | 
 | 8792 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 8793 |   *) enable_dlopen_self=unknown ;; | 
 | 8794 |   esac | 
 | 8795 |  | 
 | 8796 |   case $lt_cv_dlopen_self_static in | 
 | 8797 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 8798 |   *) enable_dlopen_self_static=unknown ;; | 
 | 8799 |   esac | 
 | 8800 | fi | 
 | 8801 |  | 
 | 8802 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8803 | # Report which librarie types wil actually be built | 
 | 8804 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 8805 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 8806 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 8807 | echo "${ECHO_T}$can_build_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8808 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8809 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 8810 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 8811 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 8812 |  | 
 | 8813 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 8814 | # are all built from PIC. | 
 | 8815 | case "$host_os" in | 
 | 8816 | aix3*) | 
 | 8817 |   test "$enable_shared" = yes && enable_static=no | 
 | 8818 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8819 |     archive_cmds="$archive_cmds;\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8820 |     postinstall_cmds='$RANLIB $lib' | 
 | 8821 |   fi | 
 | 8822 |   ;; | 
 | 8823 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8824 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8825 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
 | 8826 |     test "$enable_shared" = yes && enable_static=no | 
 | 8827 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8828 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8829 | esac | 
 | 8830 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 8831 | echo "${ECHO_T}$enable_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8832 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8833 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 8834 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 8835 | # Make sure either enable_shared or enable_static is yes. | 
 | 8836 | test "$enable_shared" = yes || enable_static=yes | 
 | 8837 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 8838 | echo "${ECHO_T}$enable_static" >&6 | 
 | 8839 |  | 
 | 8840 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8841 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 8842 | # with your package, and you will get complaints that there are | 
 | 8843 | # no rules to generate ltmain.sh. | 
 | 8844 | if test -f "$ltmain"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8845 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 8846 |   # without removal of \ escapes. | 
 | 8847 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 8848 |     setopt NO_GLOB_SUBST | 
 | 8849 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8850 |   # Now quote all the things that may contain metacharacters while being | 
 | 8851 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 8852 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8853 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 8854 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8855 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 8856 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 8857 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 8858 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 8859 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8860 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8861 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 8862 |     compiler \ | 
 | 8863 |     CC \ | 
 | 8864 |     LD \ | 
 | 8865 |     lt_prog_compiler_wl \ | 
 | 8866 |     lt_prog_compiler_pic \ | 
 | 8867 |     lt_prog_compiler_static \ | 
 | 8868 |     lt_prog_compiler_no_builtin_flag \ | 
 | 8869 |     export_dynamic_flag_spec \ | 
 | 8870 |     thread_safe_flag_spec \ | 
 | 8871 |     whole_archive_flag_spec \ | 
 | 8872 |     enable_shared_with_static_runtimes \ | 
 | 8873 |     old_archive_cmds \ | 
 | 8874 |     old_archive_from_new_cmds \ | 
 | 8875 |     predep_objects \ | 
 | 8876 |     postdep_objects \ | 
 | 8877 |     predeps \ | 
 | 8878 |     postdeps \ | 
 | 8879 |     compiler_lib_search_path \ | 
 | 8880 |     archive_cmds \ | 
 | 8881 |     archive_expsym_cmds \ | 
 | 8882 |     postinstall_cmds \ | 
 | 8883 |     postuninstall_cmds \ | 
 | 8884 |     old_archive_from_expsyms_cmds \ | 
 | 8885 |     allow_undefined_flag \ | 
 | 8886 |     no_undefined_flag \ | 
 | 8887 |     export_symbols_cmds \ | 
 | 8888 |     hardcode_libdir_flag_spec \ | 
 | 8889 |     hardcode_libdir_flag_spec_ld \ | 
 | 8890 |     hardcode_libdir_separator \ | 
 | 8891 |     hardcode_automatic \ | 
 | 8892 |     module_cmds \ | 
 | 8893 |     module_expsym_cmds \ | 
 | 8894 |     lt_cv_prog_compiler_c_o \ | 
 | 8895 |     exclude_expsyms \ | 
 | 8896 |     include_expsyms; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8897 |  | 
 | 8898 |     case $var in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8899 |     old_archive_cmds | \ | 
 | 8900 |     old_archive_from_new_cmds | \ | 
 | 8901 |     archive_cmds | \ | 
 | 8902 |     archive_expsym_cmds | \ | 
 | 8903 |     module_cmds | \ | 
 | 8904 |     module_expsym_cmds | \ | 
 | 8905 |     old_archive_from_expsyms_cmds | \ | 
 | 8906 |     export_symbols_cmds | \ | 
 | 8907 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8908 |     postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8909 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 8910 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8911 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8912 |       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] | 8913 |       ;; | 
 | 8914 |     *) | 
 | 8915 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 8916 |       ;; | 
 | 8917 |     esac | 
 | 8918 |   done | 
 | 8919 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8920 |   case $lt_echo in | 
 | 8921 |   *'\$0 --fallback-echo"') | 
 | 8922 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 8923 |     ;; | 
 | 8924 |   esac | 
 | 8925 |  | 
 | 8926 | cfgfile="${ofile}T" | 
 | 8927 |   trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
 | 8928 |   $rm -f "$cfgfile" | 
 | 8929 |   { echo "$as_me:$LINENO: creating $ofile" >&5 | 
 | 8930 | echo "$as_me: creating $ofile" >&6;} | 
 | 8931 |  | 
 | 8932 |   cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8933 | #! $SHELL | 
 | 8934 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8935 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8936 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
 | 8937 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
 | 8938 | # | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8939 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
 | 8940 | # Free Software Foundation, Inc. | 
 | 8941 | # | 
 | 8942 | # This file is part of GNU Libtool: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8943 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
 | 8944 | # | 
 | 8945 | # This program is free software; you can redistribute it and/or modify | 
 | 8946 | # it under the terms of the GNU General Public License as published by | 
 | 8947 | # the Free Software Foundation; either version 2 of the License, or | 
 | 8948 | # (at your option) any later version. | 
 | 8949 | # | 
 | 8950 | # This program is distributed in the hope that it will be useful, but | 
 | 8951 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 8952 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
 | 8953 | # General Public License for more details. | 
 | 8954 | # | 
 | 8955 | # You should have received a copy of the GNU General Public License | 
 | 8956 | # along with this program; if not, write to the Free Software | 
 | 8957 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
 | 8958 | # | 
 | 8959 | # As a special exception to the GNU General Public License, if you | 
 | 8960 | # distribute this file as part of a program that contains a | 
 | 8961 | # configuration script generated by Autoconf, you may include it under | 
 | 8962 | # the same distribution terms that you use for the rest of that program. | 
 | 8963 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8964 | # A sed program that does not truncate output. | 
 | 8965 | SED=$lt_SED | 
 | 8966 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8967 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8968 | Xsed="$SED -e s/^X//" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8969 |  | 
 | 8970 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 8971 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8972 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8973 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8974 | # The names of the tagged configurations supported by this script. | 
 | 8975 | available_tags= | 
 | 8976 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8977 | # ### BEGIN LIBTOOL CONFIG | 
 | 8978 |  | 
 | 8979 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 8980 |  | 
 | 8981 | # Shell to use when invoking shell scripts. | 
 | 8982 | SHELL=$lt_SHELL | 
 | 8983 |  | 
 | 8984 | # Whether or not to build shared libraries. | 
 | 8985 | build_libtool_libs=$enable_shared | 
 | 8986 |  | 
 | 8987 | # Whether or not to build static libraries. | 
 | 8988 | build_old_libs=$enable_static | 
 | 8989 |  | 
 | 8990 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8991 | build_libtool_need_lc=$archive_cmds_need_lc | 
 | 8992 |  | 
 | 8993 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 8994 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8995 |  | 
 | 8996 | # Whether or not to optimize for fast installation. | 
 | 8997 | fast_install=$enable_fast_install | 
 | 8998 |  | 
 | 8999 | # The host system. | 
 | 9000 | host_alias=$host_alias | 
 | 9001 | host=$host | 
 | 9002 |  | 
 | 9003 | # An echo program that does not interpret backslashes. | 
 | 9004 | echo=$lt_echo | 
 | 9005 |  | 
 | 9006 | # The archiver. | 
 | 9007 | AR=$lt_AR | 
 | 9008 | AR_FLAGS=$lt_AR_FLAGS | 
 | 9009 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9010 | # A C compiler. | 
 | 9011 | LTCC=$lt_LTCC | 
 | 9012 |  | 
 | 9013 | # A language-specific compiler. | 
 | 9014 | CC=$lt_compiler | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9015 |  | 
 | 9016 | # Is the compiler the GNU C compiler? | 
 | 9017 | with_gcc=$GCC | 
 | 9018 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9019 | # An ERE matcher. | 
 | 9020 | EGREP=$lt_EGREP | 
 | 9021 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9022 | # The linker used to build libraries. | 
 | 9023 | LD=$lt_LD | 
 | 9024 |  | 
 | 9025 | # Whether we need hard or soft links. | 
 | 9026 | LN_S=$lt_LN_S | 
 | 9027 |  | 
 | 9028 | # A BSD-compatible nm program. | 
 | 9029 | NM=$lt_NM | 
 | 9030 |  | 
 | 9031 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9032 | STRIP=$lt_STRIP | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9033 |  | 
 | 9034 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 9035 | MAGIC_CMD=$MAGIC_CMD | 
 | 9036 |  | 
 | 9037 | # Used on cygwin: DLL creation program. | 
 | 9038 | DLLTOOL="$DLLTOOL" | 
 | 9039 |  | 
 | 9040 | # Used on cygwin: object dumper. | 
 | 9041 | OBJDUMP="$OBJDUMP" | 
 | 9042 |  | 
 | 9043 | # Used on cygwin: assembler. | 
 | 9044 | AS="$AS" | 
 | 9045 |  | 
 | 9046 | # The name of the directory that contains temporary libtool files. | 
 | 9047 | objdir=$objdir | 
 | 9048 |  | 
 | 9049 | # How to create reloadable object files. | 
 | 9050 | reload_flag=$lt_reload_flag | 
 | 9051 | reload_cmds=$lt_reload_cmds | 
 | 9052 |  | 
 | 9053 | # How to pass a linker flag through the compiler. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9054 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9055 |  | 
 | 9056 | # Object file suffix (normally "o"). | 
 | 9057 | objext="$ac_objext" | 
 | 9058 |  | 
 | 9059 | # Old archive suffix (normally "a"). | 
 | 9060 | libext="$libext" | 
 | 9061 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9062 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9063 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9064 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9065 | # Executable file suffix (normally ""). | 
 | 9066 | exeext="$exeext" | 
 | 9067 |  | 
 | 9068 | # Additional compiler flags for building library objects. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9069 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9070 | pic_mode=$pic_mode | 
 | 9071 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9072 | # What is the maximum length of a command? | 
 | 9073 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9074 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9075 | # Does compiler simultaneously support -c and -o options? | 
 | 9076 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9077 |  | 
 | 9078 | # Must we lock files when doing compilation ? | 
 | 9079 | need_locks=$lt_need_locks | 
 | 9080 |  | 
 | 9081 | # Do we need the lib prefix for modules? | 
 | 9082 | need_lib_prefix=$need_lib_prefix | 
 | 9083 |  | 
 | 9084 | # Do we need a version for libraries? | 
 | 9085 | need_version=$need_version | 
 | 9086 |  | 
 | 9087 | # Whether dlopen is supported. | 
 | 9088 | dlopen_support=$enable_dlopen | 
 | 9089 |  | 
 | 9090 | # Whether dlopen of programs is supported. | 
 | 9091 | dlopen_self=$enable_dlopen_self | 
 | 9092 |  | 
 | 9093 | # Whether dlopen of statically linked programs is supported. | 
 | 9094 | dlopen_self_static=$enable_dlopen_self_static | 
 | 9095 |  | 
 | 9096 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9097 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9098 |  | 
 | 9099 | # Compiler flag to turn off builtin functions. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9100 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9101 |  | 
 | 9102 | # Compiler flag to allow reflexive dlopens. | 
 | 9103 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
 | 9104 |  | 
 | 9105 | # Compiler flag to generate shared objects directly from archives. | 
 | 9106 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
 | 9107 |  | 
 | 9108 | # Compiler flag to generate thread-safe objects. | 
 | 9109 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
 | 9110 |  | 
 | 9111 | # Library versioning type. | 
 | 9112 | version_type=$version_type | 
 | 9113 |  | 
 | 9114 | # Format of library name prefix. | 
 | 9115 | libname_spec=$lt_libname_spec | 
 | 9116 |  | 
 | 9117 | # List of archive names.  First name is the real one, the rest are links. | 
 | 9118 | # The last name is the one that the linker finds with -lNAME. | 
 | 9119 | library_names_spec=$lt_library_names_spec | 
 | 9120 |  | 
 | 9121 | # The coded name of the library, if different from the real name. | 
 | 9122 | soname_spec=$lt_soname_spec | 
 | 9123 |  | 
 | 9124 | # Commands used to build and install an old-style archive. | 
 | 9125 | RANLIB=$lt_RANLIB | 
 | 9126 | old_archive_cmds=$lt_old_archive_cmds | 
 | 9127 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 9128 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 9129 |  | 
 | 9130 | # Create an old-style archive from a shared archive. | 
 | 9131 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
 | 9132 |  | 
 | 9133 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 9134 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
 | 9135 |  | 
 | 9136 | # Commands used to build and install a shared archive. | 
 | 9137 | archive_cmds=$lt_archive_cmds | 
 | 9138 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
 | 9139 | postinstall_cmds=$lt_postinstall_cmds | 
 | 9140 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 9141 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9142 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 9143 | module_cmds=$lt_module_cmds | 
 | 9144 | module_expsym_cmds=$lt_module_expsym_cmds | 
 | 9145 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9146 | # Commands to strip libraries. | 
 | 9147 | old_striplib=$lt_old_striplib | 
 | 9148 | striplib=$lt_striplib | 
 | 9149 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9150 | # Dependencies to place before the objects being linked to create a | 
 | 9151 | # shared library. | 
 | 9152 | predep_objects=$lt_predep_objects | 
 | 9153 |  | 
 | 9154 | # Dependencies to place after the objects being linked to create a | 
 | 9155 | # shared library. | 
 | 9156 | postdep_objects=$lt_postdep_objects | 
 | 9157 |  | 
 | 9158 | # Dependencies to place before the objects being linked to create a | 
 | 9159 | # shared library. | 
 | 9160 | predeps=$lt_predeps | 
 | 9161 |  | 
 | 9162 | # Dependencies to place after the objects being linked to create a | 
 | 9163 | # shared library. | 
 | 9164 | postdeps=$lt_postdeps | 
 | 9165 |  | 
 | 9166 | # The library search path used internally by the compiler when linking | 
 | 9167 | # a shared library. | 
 | 9168 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
 | 9169 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9170 | # Method to check whether dependent libraries are shared objects. | 
 | 9171 | deplibs_check_method=$lt_deplibs_check_method | 
 | 9172 |  | 
 | 9173 | # Command to use when deplibs_check_method == file_magic. | 
 | 9174 | file_magic_cmd=$lt_file_magic_cmd | 
 | 9175 |  | 
 | 9176 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 9177 | allow_undefined_flag=$lt_allow_undefined_flag | 
 | 9178 |  | 
 | 9179 | # Flag that forces no undefined symbols. | 
 | 9180 | no_undefined_flag=$lt_no_undefined_flag | 
 | 9181 |  | 
 | 9182 | # Commands used to finish a libtool library installation in a directory. | 
 | 9183 | finish_cmds=$lt_finish_cmds | 
 | 9184 |  | 
 | 9185 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 9186 | finish_eval=$lt_finish_eval | 
 | 9187 |  | 
 | 9188 | # 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] | 9189 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9190 |  | 
 | 9191 | # Transform the output of nm in a proper C declaration | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9192 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9193 |  | 
 | 9194 | # Transform the output of nm in a C name address pair | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9195 | 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] | 9196 |  | 
 | 9197 | # This is the shared library runtime path variable. | 
 | 9198 | runpath_var=$runpath_var | 
 | 9199 |  | 
 | 9200 | # This is the shared library path variable. | 
 | 9201 | shlibpath_var=$shlibpath_var | 
 | 9202 |  | 
 | 9203 | # Is shlibpath searched before the hard-coded library search path? | 
 | 9204 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 9205 |  | 
 | 9206 | # How to hardcode a shared library path into an executable. | 
 | 9207 | hardcode_action=$hardcode_action | 
 | 9208 |  | 
 | 9209 | # Whether we should hardcode library paths into libraries. | 
 | 9210 | hardcode_into_libs=$hardcode_into_libs | 
 | 9211 |  | 
 | 9212 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 9213 | # This must work even if \$libdir does not exist. | 
 | 9214 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
 | 9215 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9216 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 9217 | # a binary during linking. This must work even if \$libdir does | 
 | 9218 | # not exist. | 
 | 9219 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
 | 9220 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9221 | # Whether we need a single -rpath flag with a separated argument. | 
 | 9222 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
 | 9223 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9224 | # 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] | 9225 | # resulting binary. | 
 | 9226 | hardcode_direct=$hardcode_direct | 
 | 9227 |  | 
 | 9228 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 9229 | # resulting binary. | 
 | 9230 | hardcode_minus_L=$hardcode_minus_L | 
 | 9231 |  | 
 | 9232 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 9233 | # the resulting binary. | 
 | 9234 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
 | 9235 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9236 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 9237 | # and all subsequent libraries and executables linked against it. | 
 | 9238 | hardcode_automatic=$hardcode_automatic | 
 | 9239 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9240 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 9241 | # restored at relink time. | 
 | 9242 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 9243 |  | 
 | 9244 | # Whether libtool must link a program against all its dependency libraries. | 
 | 9245 | link_all_deplibs=$link_all_deplibs | 
 | 9246 |  | 
 | 9247 | # Compile-time system search path for libraries | 
 | 9248 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 9249 |  | 
 | 9250 | # Run-time system search path for libraries | 
 | 9251 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 9252 |  | 
 | 9253 | # Fix the shell variable \$srcfile for the compiler. | 
 | 9254 | fix_srcfile_path="$fix_srcfile_path" | 
 | 9255 |  | 
 | 9256 | # Set to yes if exported symbols are required. | 
 | 9257 | always_export_symbols=$always_export_symbols | 
 | 9258 |  | 
 | 9259 | # The commands to list exported symbols. | 
 | 9260 | export_symbols_cmds=$lt_export_symbols_cmds | 
 | 9261 |  | 
 | 9262 | # The commands to extract the exported symbol list from a shared archive. | 
 | 9263 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 9264 |  | 
 | 9265 | # Symbols that should not be listed in the preloaded symbols. | 
 | 9266 | exclude_expsyms=$lt_exclude_expsyms | 
 | 9267 |  | 
 | 9268 | # Symbols that must always be exported. | 
 | 9269 | include_expsyms=$lt_include_expsyms | 
 | 9270 |  | 
 | 9271 | # ### END LIBTOOL CONFIG | 
 | 9272 |  | 
 | 9273 | __EOF__ | 
 | 9274 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9275 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9276 |   case $host_os in | 
 | 9277 |   aix3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9278 |     cat <<\EOF >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9279 |  | 
 | 9280 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 9281 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 9282 | # vanish in a puff of smoke. | 
 | 9283 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 9284 |   COLLECT_NAMES= | 
 | 9285 |   export COLLECT_NAMES | 
 | 9286 | fi | 
 | 9287 | EOF | 
 | 9288 |     ;; | 
 | 9289 |   esac | 
 | 9290 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9291 |   # We use sed instead of cat because bash on DJGPP gets confused if | 
 | 9292 |   # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
 | 9293 |   # text mode, it properly converts lines to CR/LF.  This bash problem | 
 | 9294 |   # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9295 |   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9296 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9297 |   mv -f "$cfgfile" "$ofile" || \ | 
 | 9298 |     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9299 |   chmod +x "$ofile" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9300 |  | 
 | 9301 | else | 
 | 9302 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 9303 |   # `config.status --recheck' to rerun these tests and create the | 
 | 9304 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9305 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 9306 |   if test -f "$ltmain_in"; then | 
 | 9307 |     test -f Makefile && make "$ltmain" | 
 | 9308 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9309 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9310 |  | 
 | 9311 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9312 | ac_ext=c | 
 | 9313 | ac_cpp='$CPP $CPPFLAGS' | 
 | 9314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 9315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 9316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 9317 |  | 
 | 9318 | CC="$lt_save_CC" | 
 | 9319 |  | 
 | 9320 |  | 
 | 9321 | # Check whether --with-tags or --without-tags was given. | 
 | 9322 | if test "${with_tags+set}" = set; then | 
 | 9323 |   withval="$with_tags" | 
 | 9324 |   tagnames="$withval" | 
 | 9325 | fi; | 
 | 9326 |  | 
 | 9327 | if test -f "$ltmain" && test -n "$tagnames"; then | 
 | 9328 |   if test ! -f "${ofile}"; then | 
 | 9329 |     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
 | 9330 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
 | 9331 |   fi | 
 | 9332 |  | 
 | 9333 |   if test -z "$LTCC"; then | 
 | 9334 |     eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
 | 9335 |     if test -z "$LTCC"; then | 
 | 9336 |       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
 | 9337 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
 | 9338 |     else | 
 | 9339 |       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
 | 9340 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
 | 9341 |     fi | 
 | 9342 |   fi | 
 | 9343 |  | 
 | 9344 |   # Extract list of available tagged configurations in $ofile. | 
 | 9345 |   # Note that this assumes the entire list is on one line. | 
 | 9346 |   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
 | 9347 |  | 
 | 9348 |   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 9349 |   for tagname in $tagnames; do | 
 | 9350 |     IFS="$lt_save_ifs" | 
 | 9351 |     # Check whether tagname contains only valid characters | 
 | 9352 |     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
 | 9353 |     "") ;; | 
 | 9354 |     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
 | 9355 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
 | 9356 |    { (exit 1); exit 1; }; } | 
 | 9357 | 	;; | 
 | 9358 |     esac | 
 | 9359 |  | 
 | 9360 |     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
 | 9361 |     then | 
 | 9362 |       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
 | 9363 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
 | 9364 |    { (exit 1); exit 1; }; } | 
 | 9365 |     fi | 
 | 9366 |  | 
 | 9367 |     # Update the list of available tags. | 
 | 9368 |     if test -n "$tagname"; then | 
 | 9369 |       echo appending configuration tag \"$tagname\" to $ofile | 
 | 9370 |  | 
 | 9371 |       case $tagname in | 
 | 9372 |       CXX) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9373 | 	if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 9374 | 	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 9375 | 	    (test "X$CXX" != "Xg++"))) ; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9376 | 	  ac_ext=cc | 
 | 9377 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 9378 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 9379 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 9380 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 9381 |  | 
 | 9382 |  | 
 | 9383 |  | 
 | 9384 |  | 
 | 9385 | archive_cmds_need_lc_CXX=no | 
 | 9386 | allow_undefined_flag_CXX= | 
 | 9387 | always_export_symbols_CXX=no | 
 | 9388 | archive_expsym_cmds_CXX= | 
 | 9389 | export_dynamic_flag_spec_CXX= | 
 | 9390 | hardcode_direct_CXX=no | 
 | 9391 | hardcode_libdir_flag_spec_CXX= | 
 | 9392 | hardcode_libdir_flag_spec_ld_CXX= | 
 | 9393 | hardcode_libdir_separator_CXX= | 
 | 9394 | hardcode_minus_L_CXX=no | 
 | 9395 | hardcode_automatic_CXX=no | 
 | 9396 | module_cmds_CXX= | 
 | 9397 | module_expsym_cmds_CXX= | 
 | 9398 | link_all_deplibs_CXX=unknown | 
 | 9399 | old_archive_cmds_CXX=$old_archive_cmds | 
 | 9400 | no_undefined_flag_CXX= | 
 | 9401 | whole_archive_flag_spec_CXX= | 
 | 9402 | enable_shared_with_static_runtimes_CXX=no | 
 | 9403 |  | 
 | 9404 | # Dependencies to place before and after the object being linked: | 
 | 9405 | predep_objects_CXX= | 
 | 9406 | postdep_objects_CXX= | 
 | 9407 | predeps_CXX= | 
 | 9408 | postdeps_CXX= | 
 | 9409 | compiler_lib_search_path_CXX= | 
 | 9410 |  | 
 | 9411 | # Source file extension for C++ test sources. | 
 | 9412 | ac_ext=cc | 
 | 9413 |  | 
 | 9414 | # Object file extension for compiled C++ test sources. | 
 | 9415 | objext=o | 
 | 9416 | objext_CXX=$objext | 
 | 9417 |  | 
 | 9418 | # Code to be used in simple compile tests | 
 | 9419 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 9420 |  | 
 | 9421 | # Code to be used in simple link tests | 
 | 9422 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 
 | 9423 |  | 
 | 9424 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 9425 |  | 
 | 9426 | # If no C compiler was specified, use CC. | 
 | 9427 | LTCC=${LTCC-"$CC"} | 
 | 9428 |  | 
 | 9429 | # Allow CC to be a program name with arguments. | 
 | 9430 | compiler=$CC | 
 | 9431 |  | 
 | 9432 |  | 
 | 9433 | # Allow CC to be a program name with arguments. | 
 | 9434 | lt_save_CC=$CC | 
 | 9435 | lt_save_LD=$LD | 
 | 9436 | lt_save_GCC=$GCC | 
 | 9437 | GCC=$GXX | 
 | 9438 | lt_save_with_gnu_ld=$with_gnu_ld | 
 | 9439 | lt_save_path_LD=$lt_cv_path_LD | 
 | 9440 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
 | 9441 |   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
 | 9442 | else | 
 | 9443 |   unset lt_cv_prog_gnu_ld | 
 | 9444 | fi | 
 | 9445 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
 | 9446 |   lt_cv_path_LD=$lt_cv_path_LDCXX | 
 | 9447 | else | 
 | 9448 |   unset lt_cv_path_LD | 
 | 9449 | fi | 
 | 9450 | test -z "${LDCXX+set}" || LD=$LDCXX | 
 | 9451 | CC=${CXX-"c++"} | 
 | 9452 | compiler=$CC | 
 | 9453 | compiler_CXX=$CC | 
 | 9454 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 9455 |  | 
 | 9456 | # We don't want -fno-exception wen compiling C++ code, so set the | 
 | 9457 | # no_builtin_flag separately | 
 | 9458 | if test "$GXX" = yes; then | 
 | 9459 |   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
 | 9460 | else | 
 | 9461 |   lt_prog_compiler_no_builtin_flag_CXX= | 
 | 9462 | fi | 
 | 9463 |  | 
 | 9464 | if test "$GXX" = yes; then | 
 | 9465 |   # Set up default GNU C++ configuration | 
 | 9466 |  | 
 | 9467 |  | 
 | 9468 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 9469 | if test "${with_gnu_ld+set}" = set; then | 
 | 9470 |   withval="$with_gnu_ld" | 
 | 9471 |   test "$withval" = no || with_gnu_ld=yes | 
 | 9472 | else | 
 | 9473 |   with_gnu_ld=no | 
 | 9474 | fi; | 
 | 9475 | ac_prog=ld | 
 | 9476 | if test "$GCC" = yes; then | 
 | 9477 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 9478 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 9479 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
 | 9480 |   case $host in | 
 | 9481 |   *-*-mingw*) | 
 | 9482 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 9483 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 9484 |   *) | 
 | 9485 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 9486 |   esac | 
 | 9487 |   case $ac_prog in | 
 | 9488 |     # Accept absolute paths. | 
 | 9489 |     [\\/]* | ?:[\\/]*) | 
 | 9490 |       re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9491 |       # Canonicalize the pathname of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9492 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 9493 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 9494 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 9495 |       done | 
 | 9496 |       test -z "$LD" && LD="$ac_prog" | 
 | 9497 |       ;; | 
 | 9498 |   "") | 
 | 9499 |     # If it fails, then pretend we aren't using GCC. | 
 | 9500 |     ac_prog=ld | 
 | 9501 |     ;; | 
 | 9502 |   *) | 
 | 9503 |     # If it is relative, then search for the first ld in PATH. | 
 | 9504 |     with_gnu_ld=unknown | 
 | 9505 |     ;; | 
 | 9506 |   esac | 
 | 9507 | elif test "$with_gnu_ld" = yes; then | 
 | 9508 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 9509 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 9510 | else | 
 | 9511 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 9512 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 9513 | fi | 
 | 9514 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 9515 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9516 | else | 
 | 9517 |   if test -z "$LD"; then | 
 | 9518 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 9519 |   for ac_dir in $PATH; do | 
 | 9520 |     IFS="$lt_save_ifs" | 
 | 9521 |     test -z "$ac_dir" && ac_dir=. | 
 | 9522 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 9523 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 9524 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 9525 |       # but apparently some GNU ld's only accept -v. | 
 | 9526 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 9527 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 9528 |       *GNU* | *'with BFD'*) | 
 | 9529 | 	test "$with_gnu_ld" != no && break | 
 | 9530 | 	;; | 
 | 9531 |       *) | 
 | 9532 | 	test "$with_gnu_ld" != yes && break | 
 | 9533 | 	;; | 
 | 9534 |       esac | 
 | 9535 |     fi | 
 | 9536 |   done | 
 | 9537 |   IFS="$lt_save_ifs" | 
 | 9538 | else | 
 | 9539 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 9540 | fi | 
 | 9541 | fi | 
 | 9542 |  | 
 | 9543 | LD="$lt_cv_path_LD" | 
 | 9544 | if test -n "$LD"; then | 
 | 9545 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 9546 | echo "${ECHO_T}$LD" >&6 | 
 | 9547 | else | 
 | 9548 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 9549 | echo "${ECHO_T}no" >&6 | 
 | 9550 | fi | 
 | 9551 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 9552 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 9553 |    { (exit 1); exit 1; }; } | 
 | 9554 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 9555 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 9556 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 9557 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9558 | else | 
 | 9559 |   # 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] | 9560 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9561 | *GNU* | *'with BFD'*) | 
 | 9562 |   lt_cv_prog_gnu_ld=yes | 
 | 9563 |   ;; | 
 | 9564 | *) | 
 | 9565 |   lt_cv_prog_gnu_ld=no | 
 | 9566 |   ;; | 
 | 9567 | esac | 
 | 9568 | fi | 
 | 9569 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 9570 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 9571 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 9572 |  | 
 | 9573 |  | 
 | 9574 |  | 
 | 9575 |   # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
 | 9576 |   # archiving commands below assume that GNU ld is being used. | 
 | 9577 |   if test "$with_gnu_ld" = yes; then | 
 | 9578 |     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 9579 |     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' | 
 | 9580 |  | 
 | 9581 |     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
 | 9582 |     export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 9583 |  | 
 | 9584 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 9585 |     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
 | 9586 |     #     investigate it a little bit more. (MM) | 
 | 9587 |     wlarc='${wl}' | 
 | 9588 |  | 
 | 9589 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 9590 |     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
 | 9591 | 	grep 'no-whole-archive' > /dev/null; then | 
 | 9592 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 9593 |     else | 
 | 9594 |       whole_archive_flag_spec_CXX= | 
 | 9595 |     fi | 
 | 9596 |   else | 
 | 9597 |     with_gnu_ld=no | 
 | 9598 |     wlarc= | 
 | 9599 |  | 
 | 9600 |     # A generic and very simple default shared library creation | 
 | 9601 |     # command for GNU C++ for the case where it uses the native | 
 | 9602 |     # linker, instead of GNU ld.  If possible, this setting should | 
 | 9603 |     # overridden to take advantage of the native linker features on | 
 | 9604 |     # the platform it is being used on. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9605 |     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] | 9606 |   fi | 
 | 9607 |  | 
 | 9608 |   # Commands to make compiler produce verbose output that lists | 
 | 9609 |   # what "hidden" libraries, object files and flags are used when | 
 | 9610 |   # linking a shared library. | 
 | 9611 |   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 9612 |  | 
 | 9613 | else | 
 | 9614 |   GXX=no | 
 | 9615 |   with_gnu_ld=no | 
 | 9616 |   wlarc= | 
 | 9617 | fi | 
 | 9618 |  | 
 | 9619 | # PORTME: fill in a description of your system's C++ link characteristics | 
 | 9620 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 9621 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 9622 | ld_shlibs_CXX=yes | 
 | 9623 | case $host_os in | 
 | 9624 |   aix3*) | 
 | 9625 |     # FIXME: insert proper C++ library support | 
 | 9626 |     ld_shlibs_CXX=no | 
 | 9627 |     ;; | 
 | 9628 |   aix4* | aix5*) | 
 | 9629 |     if test "$host_cpu" = ia64; then | 
 | 9630 |       # On IA64, the linker does run time linking by default, so we don't | 
 | 9631 |       # have to do anything special. | 
 | 9632 |       aix_use_runtimelinking=no | 
 | 9633 |       exp_sym_flag='-Bexport' | 
 | 9634 |       no_entry_flag="" | 
 | 9635 |     else | 
 | 9636 |       aix_use_runtimelinking=no | 
 | 9637 |  | 
 | 9638 |       # Test if we are trying to use run time linking or normal | 
 | 9639 |       # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 9640 |       # need to do runtime linking. | 
 | 9641 |       case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 9642 | 	for ld_flag in $LDFLAGS; do | 
 | 9643 | 	  case $ld_flag in | 
 | 9644 | 	  *-brtl*) | 
 | 9645 | 	    aix_use_runtimelinking=yes | 
 | 9646 | 	    break | 
 | 9647 | 	    ;; | 
 | 9648 | 	  esac | 
 | 9649 | 	done | 
 | 9650 |       esac | 
 | 9651 |  | 
 | 9652 |       exp_sym_flag='-bexport' | 
 | 9653 |       no_entry_flag='-bnoentry' | 
 | 9654 |     fi | 
 | 9655 |  | 
 | 9656 |     # When large executables or shared objects are built, AIX ld can | 
 | 9657 |     # have problems creating the table of contents.  If linking a library | 
 | 9658 |     # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 9659 |     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 9660 |     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 9661 |  | 
 | 9662 |     archive_cmds_CXX='' | 
 | 9663 |     hardcode_direct_CXX=yes | 
 | 9664 |     hardcode_libdir_separator_CXX=':' | 
 | 9665 |     link_all_deplibs_CXX=yes | 
 | 9666 |  | 
 | 9667 |     if test "$GXX" = yes; then | 
 | 9668 |       case $host_os in aix4.012|aix4.012.*) | 
 | 9669 |       # We only want to do this on AIX 4.2 and lower, the check | 
 | 9670 |       # below for broken collect2 doesn't work under 4.3+ | 
 | 9671 | 	collect2name=`${CC} -print-prog-name=collect2` | 
 | 9672 | 	if test -f "$collect2name" && \ | 
 | 9673 | 	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 9674 | 	then | 
 | 9675 | 	  # We have reworked collect2 | 
 | 9676 | 	  hardcode_direct_CXX=yes | 
 | 9677 | 	else | 
 | 9678 | 	  # We have old collect2 | 
 | 9679 | 	  hardcode_direct_CXX=unsupported | 
 | 9680 | 	  # It fails to find uninstalled libraries when the uninstalled | 
 | 9681 | 	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 9682 | 	  # to unsupported forces relinking | 
 | 9683 | 	  hardcode_minus_L_CXX=yes | 
 | 9684 | 	  hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 9685 | 	  hardcode_libdir_separator_CXX= | 
 | 9686 | 	fi | 
 | 9687 |       esac | 
 | 9688 |       shared_flag='-shared' | 
 | 9689 |     else | 
 | 9690 |       # not using gcc | 
 | 9691 |       if test "$host_cpu" = ia64; then | 
 | 9692 | 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 9693 | 	# chokes on -Wl,-G. The following line is correct: | 
 | 9694 | 	shared_flag='-G' | 
 | 9695 |       else | 
 | 9696 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 9697 | 	  shared_flag='${wl}-G' | 
 | 9698 | 	else | 
 | 9699 | 	  shared_flag='${wl}-bM:SRE' | 
 | 9700 | 	fi | 
 | 9701 |       fi | 
 | 9702 |     fi | 
 | 9703 |  | 
 | 9704 |     # It seems that -bexpall does not export symbols beginning with | 
 | 9705 |     # underscore (_), so it is better to generate a list of symbols to export. | 
 | 9706 |     always_export_symbols_CXX=yes | 
 | 9707 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 9708 |       # Warning - without using the other runtime loading flags (-brtl), | 
 | 9709 |       # -berok will link without error, but may produce a broken library. | 
 | 9710 |       allow_undefined_flag_CXX='-berok' | 
 | 9711 |       # Determine the default libpath from the value encoded in an empty executable. | 
 | 9712 |       cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9713 | /* confdefs.h.  */ | 
 | 9714 | _ACEOF | 
 | 9715 | cat confdefs.h >>conftest.$ac_ext | 
 | 9716 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9717 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9718 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9719 | int | 
 | 9720 | main () | 
 | 9721 | { | 
 | 9722 |  | 
 | 9723 |   ; | 
 | 9724 |   return 0; | 
 | 9725 | } | 
 | 9726 | _ACEOF | 
 | 9727 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9729 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9730 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9731 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9732 |   rm -f conftest.er1 | 
 | 9733 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9734 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9735 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9736 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 9737 | 			 || test ! -s conftest.err' | 
 | 9738 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9739 |   (eval $ac_try) 2>&5 | 
 | 9740 |   ac_status=$? | 
 | 9741 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9742 |   (exit $ac_status); }; } && | 
 | 9743 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9744 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9745 |   (eval $ac_try) 2>&5 | 
 | 9746 |   ac_status=$? | 
 | 9747 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9748 |   (exit $ac_status); }; }; then | 
 | 9749 |  | 
 | 9750 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 9751 | }'` | 
 | 9752 | # Check for a 64-bit object if we didn't find anything. | 
 | 9753 | 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; } | 
 | 9754 | }'`; fi | 
 | 9755 | else | 
 | 9756 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9757 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9758 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9759 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9760 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9761 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9762 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 9763 |  | 
 | 9764 |       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 9765 |  | 
 | 9766 |       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" | 
 | 9767 |      else | 
 | 9768 |       if test "$host_cpu" = ia64; then | 
 | 9769 | 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
 | 9770 | 	allow_undefined_flag_CXX="-z nodefs" | 
 | 9771 | 	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" | 
 | 9772 |       else | 
 | 9773 | 	# Determine the default libpath from the value encoded in an empty executable. | 
 | 9774 | 	cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9775 | /* confdefs.h.  */ | 
 | 9776 | _ACEOF | 
 | 9777 | cat confdefs.h >>conftest.$ac_ext | 
 | 9778 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9779 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9780 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9781 | int | 
 | 9782 | main () | 
 | 9783 | { | 
 | 9784 |  | 
 | 9785 |   ; | 
 | 9786 |   return 0; | 
 | 9787 | } | 
 | 9788 | _ACEOF | 
 | 9789 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9791 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9792 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9793 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9794 |   rm -f conftest.er1 | 
 | 9795 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9796 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9797 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9798 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 9799 | 			 || test ! -s conftest.err' | 
 | 9800 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9801 |   (eval $ac_try) 2>&5 | 
 | 9802 |   ac_status=$? | 
 | 9803 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9804 |   (exit $ac_status); }; } && | 
 | 9805 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9806 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9807 |   (eval $ac_try) 2>&5 | 
 | 9808 |   ac_status=$? | 
 | 9809 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9810 |   (exit $ac_status); }; }; then | 
 | 9811 |  | 
 | 9812 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 9813 | }'` | 
 | 9814 | # Check for a 64-bit object if we didn't find anything. | 
 | 9815 | 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; } | 
 | 9816 | }'`; fi | 
 | 9817 | else | 
 | 9818 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9819 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9820 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9821 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9822 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9823 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9824 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 9825 |  | 
 | 9826 | 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 9827 | 	# Warning - without using the other run time loading flags, | 
 | 9828 | 	# -berok will link without error, but may produce a broken library. | 
 | 9829 | 	no_undefined_flag_CXX=' ${wl}-bernotok' | 
 | 9830 | 	allow_undefined_flag_CXX=' ${wl}-berok' | 
 | 9831 | 	# -bexpall does not export symbols beginning with underscore (_) | 
 | 9832 | 	always_export_symbols_CXX=yes | 
 | 9833 | 	# Exported symbols can be pulled into shared objects from archives | 
 | 9834 | 	whole_archive_flag_spec_CXX=' ' | 
 | 9835 | 	archive_cmds_need_lc_CXX=yes | 
 | 9836 | 	# This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9837 | 	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] | 9838 |       fi | 
 | 9839 |     fi | 
 | 9840 |     ;; | 
 | 9841 |   chorus*) | 
 | 9842 |     case $cc_basename in | 
 | 9843 |       *) | 
 | 9844 | 	# FIXME: insert proper C++ library support | 
 | 9845 | 	ld_shlibs_CXX=no | 
 | 9846 | 	;; | 
 | 9847 |     esac | 
 | 9848 |     ;; | 
 | 9849 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9850 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9851 |   cygwin* | mingw* | pw32*) | 
 | 9852 |     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
 | 9853 |     # as there is no search path for DLLs. | 
 | 9854 |     hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 9855 |     allow_undefined_flag_CXX=unsupported | 
 | 9856 |     always_export_symbols_CXX=no | 
 | 9857 |     enable_shared_with_static_runtimes_CXX=yes | 
 | 9858 |  | 
 | 9859 |     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 9860 |       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' | 
 | 9861 |       # If the export-symbols file already is a .def file (1st line | 
 | 9862 |       # is EXPORTS), use it as is; otherwise, prepend... | 
 | 9863 |       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 9864 | 	cp $export_symbols $output_objdir/$soname.def; | 
 | 9865 |       else | 
 | 9866 | 	echo EXPORTS > $output_objdir/$soname.def; | 
 | 9867 | 	cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9868 |       fi;$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] | 9869 |     else | 
 | 9870 |       ld_shlibs_CXX=no | 
 | 9871 |     fi | 
 | 9872 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9873 |       darwin* | rhapsody*) | 
 | 9874 |         case "$host_os" in | 
 | 9875 |         rhapsody* | darwin1.[012]) | 
 | 9876 |          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | 
 | 9877 |          ;; | 
 | 9878 |        *) # Darwin 1.3 on | 
 | 9879 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 9880 |            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 9881 |          else | 
 | 9882 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 9883 |              10.[012]) | 
 | 9884 |                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 9885 |                ;; | 
 | 9886 |              10.*) | 
 | 9887 |                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | 
 | 9888 |                ;; | 
 | 9889 |            esac | 
 | 9890 |          fi | 
 | 9891 |          ;; | 
 | 9892 |         esac | 
 | 9893 |       archive_cmds_need_lc_CXX=no | 
 | 9894 |       hardcode_direct_CXX=no | 
 | 9895 |       hardcode_automatic_CXX=yes | 
 | 9896 |       hardcode_shlibpath_var_CXX=unsupported | 
 | 9897 |       whole_archive_flag_spec_CXX='' | 
 | 9898 |       link_all_deplibs_CXX=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9899 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9900 |     if test "$GXX" = yes ; then | 
 | 9901 |       lt_int_apple_cc_single_mod=no | 
 | 9902 |       output_verbose_link_cmd='echo' | 
 | 9903 |       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | 
 | 9904 |        lt_int_apple_cc_single_mod=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9905 |       fi | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9906 |       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9907 |        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] | 9908 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9909 |           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' | 
 | 9910 |         fi | 
 | 9911 |         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 9912 |         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 9913 |           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 9914 |             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}' | 
 | 9915 |           else | 
 | 9916 |             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}' | 
 | 9917 |           fi | 
 | 9918 |             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}' | 
 | 9919 |       else | 
 | 9920 |       case "$cc_basename" in | 
 | 9921 |         xlc*) | 
 | 9922 |          output_verbose_link_cmd='echo' | 
 | 9923 |           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' | 
 | 9924 |           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 9925 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 9926 |           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}' | 
 | 9927 |           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}' | 
 | 9928 |           ;; | 
 | 9929 |        *) | 
 | 9930 |          ld_shlibs_CXX=no | 
 | 9931 |           ;; | 
 | 9932 |       esac | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9933 |       fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9934 |         ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9935 |  | 
 | 9936 |   dgux*) | 
 | 9937 |     case $cc_basename in | 
 | 9938 |       ec++) | 
 | 9939 | 	# FIXME: insert proper C++ library support | 
 | 9940 | 	ld_shlibs_CXX=no | 
 | 9941 | 	;; | 
 | 9942 |       ghcx) | 
 | 9943 | 	# Green Hills C++ Compiler | 
 | 9944 | 	# FIXME: insert proper C++ library support | 
 | 9945 | 	ld_shlibs_CXX=no | 
 | 9946 | 	;; | 
 | 9947 |       *) | 
 | 9948 | 	# FIXME: insert proper C++ library support | 
 | 9949 | 	ld_shlibs_CXX=no | 
 | 9950 | 	;; | 
 | 9951 |     esac | 
 | 9952 |     ;; | 
 | 9953 |   freebsd12*) | 
 | 9954 |     # C++ shared libraries reported to be fairly broken before switch to ELF | 
 | 9955 |     ld_shlibs_CXX=no | 
 | 9956 |     ;; | 
 | 9957 |   freebsd-elf*) | 
 | 9958 |     archive_cmds_need_lc_CXX=no | 
 | 9959 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9960 |   freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9961 |     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
 | 9962 |     # conventions | 
 | 9963 |     ld_shlibs_CXX=yes | 
 | 9964 |     ;; | 
 | 9965 |   gnu*) | 
 | 9966 |     ;; | 
 | 9967 |   hpux9*) | 
 | 9968 |     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 9969 |     hardcode_libdir_separator_CXX=: | 
 | 9970 |     export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 9971 |     hardcode_direct_CXX=yes | 
 | 9972 |     hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 9973 | 				# but as the default | 
 | 9974 | 				# location of the library. | 
 | 9975 |  | 
 | 9976 |     case $cc_basename in | 
 | 9977 |     CC) | 
 | 9978 |       # FIXME: insert proper C++ library support | 
 | 9979 |       ld_shlibs_CXX=no | 
 | 9980 |       ;; | 
 | 9981 |     aCC) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9982 |       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] | 9983 |       # Commands to make compiler produce verbose output that lists | 
 | 9984 |       # what "hidden" libraries, object files and flags are used when | 
 | 9985 |       # linking a shared library. | 
 | 9986 |       # | 
 | 9987 |       # There doesn't appear to be a way to prevent this compiler from | 
 | 9988 |       # explicitly linking system object files so we need to strip them | 
 | 9989 |       # from the output so that they don't get included in the library | 
 | 9990 |       # dependencies. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9991 |       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] | 9992 |       ;; | 
 | 9993 |     *) | 
 | 9994 |       if test "$GXX" = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9995 |         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] | 9996 |       else | 
 | 9997 |         # FIXME: insert proper C++ library support | 
 | 9998 |         ld_shlibs_CXX=no | 
 | 9999 |       fi | 
 | 10000 |       ;; | 
 | 10001 |     esac | 
 | 10002 |     ;; | 
 | 10003 |   hpux10*|hpux11*) | 
 | 10004 |     if test $with_gnu_ld = no; then | 
 | 10005 |       case "$host_cpu" in | 
 | 10006 |       hppa*64*) | 
 | 10007 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 10008 | 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
 | 10009 | 	hardcode_libdir_separator_CXX=: | 
 | 10010 |         ;; | 
 | 10011 |       ia64*) | 
 | 10012 | 	hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 10013 |         ;; | 
 | 10014 |       *) | 
 | 10015 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 10016 | 	hardcode_libdir_separator_CXX=: | 
 | 10017 | 	export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 10018 |         ;; | 
 | 10019 |       esac | 
 | 10020 |     fi | 
 | 10021 |     case "$host_cpu" in | 
 | 10022 |     hppa*64*) | 
 | 10023 |       hardcode_direct_CXX=no | 
 | 10024 |       hardcode_shlibpath_var_CXX=no | 
 | 10025 |       ;; | 
 | 10026 |     ia64*) | 
 | 10027 |       hardcode_direct_CXX=no | 
 | 10028 |       hardcode_shlibpath_var_CXX=no | 
 | 10029 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 10030 | 					      # but as the default | 
 | 10031 | 					      # location of the library. | 
 | 10032 |       ;; | 
 | 10033 |     *) | 
 | 10034 |       hardcode_direct_CXX=yes | 
 | 10035 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 10036 | 					      # but as the default | 
 | 10037 | 					      # location of the library. | 
 | 10038 |       ;; | 
 | 10039 |     esac | 
 | 10040 |  | 
 | 10041 |     case $cc_basename in | 
 | 10042 |       CC) | 
 | 10043 | 	# FIXME: insert proper C++ library support | 
 | 10044 | 	ld_shlibs_CXX=no | 
 | 10045 | 	;; | 
 | 10046 |       aCC) | 
 | 10047 | 	case "$host_cpu" in | 
 | 10048 | 	hppa*64*|ia64*) | 
 | 10049 | 	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 10050 | 	  ;; | 
 | 10051 | 	*) | 
 | 10052 | 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 10053 | 	  ;; | 
 | 10054 | 	esac | 
 | 10055 | 	# Commands to make compiler produce verbose output that lists | 
 | 10056 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10057 | 	# linking a shared library. | 
 | 10058 | 	# | 
 | 10059 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10060 | 	# explicitly linking system object files so we need to strip them | 
 | 10061 | 	# from the output so that they don't get included in the library | 
 | 10062 | 	# dependencies. | 
 | 10063 | 	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' | 
 | 10064 | 	;; | 
 | 10065 |       *) | 
 | 10066 | 	if test "$GXX" = yes; then | 
 | 10067 | 	  if test $with_gnu_ld = no; then | 
 | 10068 | 	    case "$host_cpu" in | 
 | 10069 | 	    ia64*|hppa*64*) | 
 | 10070 | 	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 10071 | 	      ;; | 
 | 10072 | 	    *) | 
 | 10073 | 	      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' | 
 | 10074 | 	      ;; | 
 | 10075 | 	    esac | 
 | 10076 | 	  fi | 
 | 10077 | 	else | 
 | 10078 | 	  # FIXME: insert proper C++ library support | 
 | 10079 | 	  ld_shlibs_CXX=no | 
 | 10080 | 	fi | 
 | 10081 | 	;; | 
 | 10082 |     esac | 
 | 10083 |     ;; | 
 | 10084 |   irix5* | irix6*) | 
 | 10085 |     case $cc_basename in | 
 | 10086 |       CC) | 
 | 10087 | 	# SGI C++ | 
 | 10088 | 	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' | 
 | 10089 |  | 
 | 10090 | 	# Archives containing C++ object files must be created using | 
 | 10091 | 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
 | 10092 | 	# necessary to make sure instantiated templates are included | 
 | 10093 | 	# in the archive. | 
 | 10094 | 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
 | 10095 | 	;; | 
 | 10096 |       *) | 
 | 10097 | 	if test "$GXX" = yes; then | 
 | 10098 | 	  if test "$with_gnu_ld" = no; then | 
 | 10099 | 	    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' | 
 | 10100 | 	  else | 
 | 10101 | 	    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' | 
 | 10102 | 	  fi | 
 | 10103 | 	fi | 
 | 10104 | 	link_all_deplibs_CXX=yes | 
 | 10105 | 	;; | 
 | 10106 |     esac | 
 | 10107 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 10108 |     hardcode_libdir_separator_CXX=: | 
 | 10109 |     ;; | 
 | 10110 |   linux*) | 
 | 10111 |     case $cc_basename in | 
 | 10112 |       KCC) | 
 | 10113 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 10114 |  | 
 | 10115 | 	# KCC will only create a shared library if the output file | 
 | 10116 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 10117 | 	# to its proper name (with version) after linking. | 
 | 10118 | 	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' | 
 | 10119 | 	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' | 
 | 10120 | 	# Commands to make compiler produce verbose output that lists | 
 | 10121 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10122 | 	# linking a shared library. | 
 | 10123 | 	# | 
 | 10124 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10125 | 	# explicitly linking system object files so we need to strip them | 
 | 10126 | 	# from the output so that they don't get included in the library | 
 | 10127 | 	# dependencies. | 
 | 10128 | 	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' | 
 | 10129 |  | 
 | 10130 | 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
 | 10131 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 10132 |  | 
 | 10133 | 	# Archives containing C++ object files must be created using | 
 | 10134 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 10135 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 10136 | 	;; | 
 | 10137 |       icpc) | 
 | 10138 | 	# Intel C++ | 
 | 10139 | 	with_gnu_ld=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10140 | 	# version 8.0 and above of icpc choke on multiply defined symbols | 
 | 10141 | 	# if we add $predep_objects and $postdep_objects, however 7.1 and | 
 | 10142 | 	# earlier do not add the objects themselves. | 
 | 10143 | 	case `$CC -V 2>&1` in | 
 | 10144 | 	*"Version 7."*) | 
 | 10145 |   	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 10146 |   	  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' | 
 | 10147 | 	  ;; | 
 | 10148 | 	*)  # Version 8.0 or newer | 
 | 10149 |   	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 10150 |   	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 10151 | 	  ;; | 
 | 10152 | 	esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10153 | 	archive_cmds_need_lc_CXX=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10154 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 10155 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 10156 | 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 10157 | 	;; | 
 | 10158 |       cxx) | 
 | 10159 | 	# Compaq C++ | 
 | 10160 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 10161 | 	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' | 
 | 10162 |  | 
 | 10163 | 	runpath_var=LD_RUN_PATH | 
 | 10164 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 10165 | 	hardcode_libdir_separator_CXX=: | 
 | 10166 |  | 
 | 10167 | 	# Commands to make compiler produce verbose output that lists | 
 | 10168 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10169 | 	# linking a shared library. | 
 | 10170 | 	# | 
 | 10171 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10172 | 	# explicitly linking system object files so we need to strip them | 
 | 10173 | 	# from the output so that they don't get included in the library | 
 | 10174 | 	# dependencies. | 
 | 10175 | 	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' | 
 | 10176 | 	;; | 
 | 10177 |     esac | 
 | 10178 |     ;; | 
 | 10179 |   lynxos*) | 
 | 10180 |     # FIXME: insert proper C++ library support | 
 | 10181 |     ld_shlibs_CXX=no | 
 | 10182 |     ;; | 
 | 10183 |   m88k*) | 
 | 10184 |     # FIXME: insert proper C++ library support | 
 | 10185 |     ld_shlibs_CXX=no | 
 | 10186 |     ;; | 
 | 10187 |   mvs*) | 
 | 10188 |     case $cc_basename in | 
 | 10189 |       cxx) | 
 | 10190 | 	# FIXME: insert proper C++ library support | 
 | 10191 | 	ld_shlibs_CXX=no | 
 | 10192 | 	;; | 
 | 10193 |       *) | 
 | 10194 | 	# FIXME: insert proper C++ library support | 
 | 10195 | 	ld_shlibs_CXX=no | 
 | 10196 | 	;; | 
 | 10197 |     esac | 
 | 10198 |     ;; | 
 | 10199 |   netbsd*) | 
 | 10200 |     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 10201 |       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
 | 10202 |       wlarc= | 
 | 10203 |       hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 10204 |       hardcode_direct_CXX=yes | 
 | 10205 |       hardcode_shlibpath_var_CXX=no | 
 | 10206 |     fi | 
 | 10207 |     # Workaround some broken pre-1.5 toolchains | 
 | 10208 |     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
 | 10209 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10210 |   openbsd2*) | 
 | 10211 |     # C++ shared libraries are fairly broken | 
 | 10212 |     ld_shlibs_CXX=no | 
 | 10213 |     ;; | 
 | 10214 |   openbsd*) | 
 | 10215 |     hardcode_direct_CXX=yes | 
 | 10216 |     hardcode_shlibpath_var_CXX=no | 
 | 10217 |     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
 | 10218 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 10219 |     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 10220 |       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
 | 10221 |       export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 10222 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 10223 |     fi | 
 | 10224 |     output_verbose_link_cmd='echo' | 
 | 10225 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10226 |   osf3*) | 
 | 10227 |     case $cc_basename in | 
 | 10228 |       KCC) | 
 | 10229 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 10230 |  | 
 | 10231 | 	# KCC will only create a shared library if the output file | 
 | 10232 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 10233 | 	# to its proper name (with version) after linking. | 
 | 10234 | 	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' | 
 | 10235 |  | 
 | 10236 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 10237 | 	hardcode_libdir_separator_CXX=: | 
 | 10238 |  | 
 | 10239 | 	# Archives containing C++ object files must be created using | 
 | 10240 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 10241 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 10242 |  | 
 | 10243 | 	;; | 
 | 10244 |       RCC) | 
 | 10245 | 	# Rational C++ 2.4.1 | 
 | 10246 | 	# FIXME: insert proper C++ library support | 
 | 10247 | 	ld_shlibs_CXX=no | 
 | 10248 | 	;; | 
 | 10249 |       cxx) | 
 | 10250 | 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 10251 | 	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' | 
 | 10252 |  | 
 | 10253 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 10254 | 	hardcode_libdir_separator_CXX=: | 
 | 10255 |  | 
 | 10256 | 	# Commands to make compiler produce verbose output that lists | 
 | 10257 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10258 | 	# linking a shared library. | 
 | 10259 | 	# | 
 | 10260 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10261 | 	# explicitly linking system object files so we need to strip them | 
 | 10262 | 	# from the output so that they don't get included in the library | 
 | 10263 | 	# dependencies. | 
 | 10264 | 	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' | 
 | 10265 | 	;; | 
 | 10266 |       *) | 
 | 10267 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 10268 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 10269 | 	  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' | 
 | 10270 |  | 
 | 10271 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 10272 | 	  hardcode_libdir_separator_CXX=: | 
 | 10273 |  | 
 | 10274 | 	  # Commands to make compiler produce verbose output that lists | 
 | 10275 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 10276 | 	  # linking a shared library. | 
 | 10277 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 10278 |  | 
 | 10279 | 	else | 
 | 10280 | 	  # FIXME: insert proper C++ library support | 
 | 10281 | 	  ld_shlibs_CXX=no | 
 | 10282 | 	fi | 
 | 10283 | 	;; | 
 | 10284 |     esac | 
 | 10285 |     ;; | 
 | 10286 |   osf4* | osf5*) | 
 | 10287 |     case $cc_basename in | 
 | 10288 |       KCC) | 
 | 10289 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 10290 |  | 
 | 10291 | 	# KCC will only create a shared library if the output file | 
 | 10292 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 10293 | 	# to its proper name (with version) after linking. | 
 | 10294 | 	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' | 
 | 10295 |  | 
 | 10296 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 10297 | 	hardcode_libdir_separator_CXX=: | 
 | 10298 |  | 
 | 10299 | 	# Archives containing C++ object files must be created using | 
 | 10300 | 	# the KAI C++ compiler. | 
 | 10301 | 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
 | 10302 | 	;; | 
 | 10303 |       RCC) | 
 | 10304 | 	# Rational C++ 2.4.1 | 
 | 10305 | 	# FIXME: insert proper C++ library support | 
 | 10306 | 	ld_shlibs_CXX=no | 
 | 10307 | 	;; | 
 | 10308 |       cxx) | 
 | 10309 | 	allow_undefined_flag_CXX=' -expect_unresolved \*' | 
 | 10310 | 	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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10311 | 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10312 |  | 
 | 10313 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 10314 | 	hardcode_libdir_separator_CXX=: | 
 | 10315 |  | 
 | 10316 | 	# Commands to make compiler produce verbose output that lists | 
 | 10317 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10318 | 	# linking a shared library. | 
 | 10319 | 	# | 
 | 10320 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10321 | 	# explicitly linking system object files so we need to strip them | 
 | 10322 | 	# from the output so that they don't get included in the library | 
 | 10323 | 	# dependencies. | 
 | 10324 | 	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' | 
 | 10325 | 	;; | 
 | 10326 |       *) | 
 | 10327 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 10328 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 10329 | 	 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' | 
 | 10330 |  | 
 | 10331 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 10332 | 	  hardcode_libdir_separator_CXX=: | 
 | 10333 |  | 
 | 10334 | 	  # Commands to make compiler produce verbose output that lists | 
 | 10335 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 10336 | 	  # linking a shared library. | 
 | 10337 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 10338 |  | 
 | 10339 | 	else | 
 | 10340 | 	  # FIXME: insert proper C++ library support | 
 | 10341 | 	  ld_shlibs_CXX=no | 
 | 10342 | 	fi | 
 | 10343 | 	;; | 
 | 10344 |     esac | 
 | 10345 |     ;; | 
 | 10346 |   psos*) | 
 | 10347 |     # FIXME: insert proper C++ library support | 
 | 10348 |     ld_shlibs_CXX=no | 
 | 10349 |     ;; | 
 | 10350 |   sco*) | 
 | 10351 |     archive_cmds_need_lc_CXX=no | 
 | 10352 |     case $cc_basename in | 
 | 10353 |       CC) | 
 | 10354 | 	# FIXME: insert proper C++ library support | 
 | 10355 | 	ld_shlibs_CXX=no | 
 | 10356 | 	;; | 
 | 10357 |       *) | 
 | 10358 | 	# FIXME: insert proper C++ library support | 
 | 10359 | 	ld_shlibs_CXX=no | 
 | 10360 | 	;; | 
 | 10361 |     esac | 
 | 10362 |     ;; | 
 | 10363 |   sunos4*) | 
 | 10364 |     case $cc_basename in | 
 | 10365 |       CC) | 
 | 10366 | 	# Sun C++ 4.x | 
 | 10367 | 	# FIXME: insert proper C++ library support | 
 | 10368 | 	ld_shlibs_CXX=no | 
 | 10369 | 	;; | 
 | 10370 |       lcc) | 
 | 10371 | 	# Lucid | 
 | 10372 | 	# FIXME: insert proper C++ library support | 
 | 10373 | 	ld_shlibs_CXX=no | 
 | 10374 | 	;; | 
 | 10375 |       *) | 
 | 10376 | 	# FIXME: insert proper C++ library support | 
 | 10377 | 	ld_shlibs_CXX=no | 
 | 10378 | 	;; | 
 | 10379 |     esac | 
 | 10380 |     ;; | 
 | 10381 |   solaris*) | 
 | 10382 |     case $cc_basename in | 
 | 10383 |       CC) | 
 | 10384 | 	# Sun C++ 4.2, 5.x and Centerline C++ | 
 | 10385 | 	no_undefined_flag_CXX=' -zdefs' | 
 | 10386 | 	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10387 | 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 10388 |  | 
 | 10389 | 	hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 10390 | 	hardcode_shlibpath_var_CXX=no | 
 | 10391 | 	case $host_os in | 
 | 10392 | 	  solaris2.0-5 | solaris2.0-5.*) ;; | 
 | 10393 | 	  *) | 
 | 10394 | 	    # The C++ compiler is used as linker so we must use $wl | 
 | 10395 | 	    # flag to pass the commands to the underlying system | 
 | 10396 | 	    # linker. | 
 | 10397 | 	    # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 10398 | 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
 | 10399 | 	    ;; | 
 | 10400 | 	esac | 
 | 10401 | 	link_all_deplibs_CXX=yes | 
 | 10402 |  | 
 | 10403 | 	# Commands to make compiler produce verbose output that lists | 
 | 10404 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10405 | 	# linking a shared library. | 
 | 10406 | 	# | 
 | 10407 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10408 | 	# explicitly linking system object files so we need to strip them | 
 | 10409 | 	# from the output so that they don't get included in the library | 
 | 10410 | 	# dependencies. | 
 | 10411 | 	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' | 
 | 10412 |  | 
 | 10413 | 	# Archives containing C++ object files must be created using | 
 | 10414 | 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
 | 10415 | 	# necessary to make sure instantiated templates are included | 
 | 10416 | 	# in the archive. | 
 | 10417 | 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
 | 10418 | 	;; | 
 | 10419 |       gcx) | 
 | 10420 | 	# Green Hills C++ Compiler | 
 | 10421 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 10422 |  | 
 | 10423 | 	# The C++ compiler must be used to create the archive. | 
 | 10424 | 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
 | 10425 | 	;; | 
 | 10426 |       *) | 
 | 10427 | 	# GNU C++ compiler with Solaris linker | 
 | 10428 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 10429 | 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
 | 10430 | 	  if $CC --version | grep -v '^2\.7' > /dev/null; then | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 10431 | 	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10432 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -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] | 10433 | 	    # Commands to make compiler produce verbose output that lists | 
 | 10434 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 10435 | 	    # linking a shared library. | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 10436 | 	    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] | 10437 | 	  else | 
 | 10438 | 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
 | 10439 | 	    # platform. | 
 | 10440 | 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10441 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; | 
 | 10442 | 		$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] | 10443 |  | 
 | 10444 | 	    # Commands to make compiler produce verbose output that lists | 
 | 10445 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 10446 | 	    # linking a shared library. | 
 | 10447 | 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
 | 10448 | 	  fi | 
 | 10449 |  | 
 | 10450 | 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
 | 10451 | 	fi | 
 | 10452 | 	;; | 
 | 10453 |     esac | 
 | 10454 |     ;; | 
 | 10455 |   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 
 | 10456 |     archive_cmds_need_lc_CXX=no | 
 | 10457 |     ;; | 
 | 10458 |   tandem*) | 
 | 10459 |     case $cc_basename in | 
 | 10460 |       NCC) | 
 | 10461 | 	# NonStop-UX NCC 3.20 | 
 | 10462 | 	# FIXME: insert proper C++ library support | 
 | 10463 | 	ld_shlibs_CXX=no | 
 | 10464 | 	;; | 
 | 10465 |       *) | 
 | 10466 | 	# FIXME: insert proper C++ library support | 
 | 10467 | 	ld_shlibs_CXX=no | 
 | 10468 | 	;; | 
 | 10469 |     esac | 
 | 10470 |     ;; | 
 | 10471 |   vxworks*) | 
 | 10472 |     # FIXME: insert proper C++ library support | 
 | 10473 |     ld_shlibs_CXX=no | 
 | 10474 |     ;; | 
 | 10475 |   *) | 
 | 10476 |     # FIXME: insert proper C++ library support | 
 | 10477 |     ld_shlibs_CXX=no | 
 | 10478 |     ;; | 
 | 10479 | esac | 
 | 10480 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 10481 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 10482 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 10483 |  | 
 | 10484 | GCC_CXX="$GXX" | 
 | 10485 | LD_CXX="$LD" | 
 | 10486 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10487 |  | 
 | 10488 | cat > conftest.$ac_ext <<EOF | 
 | 10489 | class Foo | 
 | 10490 | { | 
 | 10491 | public: | 
 | 10492 |   Foo (void) { a = 0; } | 
 | 10493 | private: | 
 | 10494 |   int a; | 
 | 10495 | }; | 
 | 10496 | EOF | 
 | 10497 |  | 
 | 10498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10499 |   (eval $ac_compile) 2>&5 | 
 | 10500 |   ac_status=$? | 
 | 10501 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10502 |   (exit $ac_status); }; then | 
 | 10503 |   # Parse the compiler output and extract the necessary | 
 | 10504 |   # objects, libraries and library flags. | 
 | 10505 |  | 
 | 10506 |   # Sentinel used to keep track of whether or not we are before | 
 | 10507 |   # the conftest object file. | 
 | 10508 |   pre_test_object_deps_done=no | 
 | 10509 |  | 
 | 10510 |   # The `*' in the case matches for architectures that use `case' in | 
 | 10511 |   # $output_verbose_cmd can trigger glob expansion during the loop | 
 | 10512 |   # eval without this substitution. | 
 | 10513 |   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 
 | 10514 |  | 
 | 10515 |   for p in `eval $output_verbose_link_cmd`; do | 
 | 10516 |     case $p in | 
 | 10517 |  | 
 | 10518 |     -L* | -R* | -l*) | 
 | 10519 |        # Some compilers place space between "-{L,R}" and the path. | 
 | 10520 |        # Remove the space. | 
 | 10521 |        if test $p = "-L" \ | 
 | 10522 | 	  || test $p = "-R"; then | 
 | 10523 | 	 prev=$p | 
 | 10524 | 	 continue | 
 | 10525 |        else | 
 | 10526 | 	 prev= | 
 | 10527 |        fi | 
 | 10528 |  | 
 | 10529 |        if test "$pre_test_object_deps_done" = no; then | 
 | 10530 | 	 case $p in | 
 | 10531 | 	 -L* | -R*) | 
 | 10532 | 	   # Internal compiler library paths should come after those | 
 | 10533 | 	   # provided the user.  The postdeps already come after the | 
 | 10534 | 	   # user supplied libs so there is no need to process them. | 
 | 10535 | 	   if test -z "$compiler_lib_search_path_CXX"; then | 
 | 10536 | 	     compiler_lib_search_path_CXX="${prev}${p}" | 
 | 10537 | 	   else | 
 | 10538 | 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
 | 10539 | 	   fi | 
 | 10540 | 	   ;; | 
 | 10541 | 	 # The "-l" case would never come before the object being | 
 | 10542 | 	 # linked, so don't bother handling this case. | 
 | 10543 | 	 esac | 
 | 10544 |        else | 
 | 10545 | 	 if test -z "$postdeps_CXX"; then | 
 | 10546 | 	   postdeps_CXX="${prev}${p}" | 
 | 10547 | 	 else | 
 | 10548 | 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
 | 10549 | 	 fi | 
 | 10550 |        fi | 
 | 10551 |        ;; | 
 | 10552 |  | 
 | 10553 |     *.$objext) | 
 | 10554 |        # This assumes that the test object file only shows up | 
 | 10555 |        # once in the compiler output. | 
 | 10556 |        if test "$p" = "conftest.$objext"; then | 
 | 10557 | 	 pre_test_object_deps_done=yes | 
 | 10558 | 	 continue | 
 | 10559 |        fi | 
 | 10560 |  | 
 | 10561 |        if test "$pre_test_object_deps_done" = no; then | 
 | 10562 | 	 if test -z "$predep_objects_CXX"; then | 
 | 10563 | 	   predep_objects_CXX="$p" | 
 | 10564 | 	 else | 
 | 10565 | 	   predep_objects_CXX="$predep_objects_CXX $p" | 
 | 10566 | 	 fi | 
 | 10567 |        else | 
 | 10568 | 	 if test -z "$postdep_objects_CXX"; then | 
 | 10569 | 	   postdep_objects_CXX="$p" | 
 | 10570 | 	 else | 
 | 10571 | 	   postdep_objects_CXX="$postdep_objects_CXX $p" | 
 | 10572 | 	 fi | 
 | 10573 |        fi | 
 | 10574 |        ;; | 
 | 10575 |  | 
 | 10576 |     *) ;; # Ignore the rest. | 
 | 10577 |  | 
 | 10578 |     esac | 
 | 10579 |   done | 
 | 10580 |  | 
 | 10581 |   # Clean up. | 
 | 10582 |   rm -f a.out a.exe | 
 | 10583 | else | 
 | 10584 |   echo "libtool.m4: error: problem compiling CXX test program" | 
 | 10585 | fi | 
 | 10586 |  | 
 | 10587 | $rm -f confest.$objext | 
 | 10588 |  | 
 | 10589 | case " $postdeps_CXX " in | 
 | 10590 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
 | 10591 | esac | 
 | 10592 |  | 
 | 10593 | lt_prog_compiler_wl_CXX= | 
 | 10594 | lt_prog_compiler_pic_CXX= | 
 | 10595 | lt_prog_compiler_static_CXX= | 
 | 10596 |  | 
 | 10597 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 10598 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 10599 |  | 
 | 10600 |   # C++ specific cases for pic, static, wl, etc. | 
 | 10601 |   if test "$GXX" = yes; then | 
 | 10602 |     lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10603 |     lt_prog_compiler_static_CXX='-static' | 
 | 10604 |  | 
 | 10605 |     case $host_os in | 
 | 10606 |     aix*) | 
 | 10607 |       # All AIX code is PIC. | 
 | 10608 |       if test "$host_cpu" = ia64; then | 
 | 10609 | 	# AIX 5 now supports IA64 processor | 
 | 10610 | 	lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10611 |       fi | 
 | 10612 |       ;; | 
 | 10613 |     amigaos*) | 
 | 10614 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 10615 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 10616 |       # like `-m68040'. | 
 | 10617 |       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
 | 10618 |       ;; | 
 | 10619 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 10620 |       # PIC is the default for these OSes. | 
 | 10621 |       ;; | 
 | 10622 |     mingw* | os2* | pw32*) | 
 | 10623 |       # This hack is so that the source file can tell whether it is being | 
 | 10624 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 10625 |       lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
 | 10626 |       ;; | 
 | 10627 |     darwin* | rhapsody*) | 
 | 10628 |       # PIC is the default on this platform | 
 | 10629 |       # Common symbols not allowed in MH_DYLIB files | 
 | 10630 |       lt_prog_compiler_pic_CXX='-fno-common' | 
 | 10631 |       ;; | 
 | 10632 |     *djgpp*) | 
 | 10633 |       # DJGPP does not support shared libraries at all | 
 | 10634 |       lt_prog_compiler_pic_CXX= | 
 | 10635 |       ;; | 
 | 10636 |     sysv4*MP*) | 
 | 10637 |       if test -d /usr/nec; then | 
 | 10638 | 	lt_prog_compiler_pic_CXX=-Kconform_pic | 
 | 10639 |       fi | 
 | 10640 |       ;; | 
 | 10641 |     hpux*) | 
 | 10642 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 10643 |       # not for PA HP-UX. | 
 | 10644 |       case "$host_cpu" in | 
 | 10645 |       hppa*64*|ia64*) | 
 | 10646 | 	;; | 
 | 10647 |       *) | 
 | 10648 | 	lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10649 | 	;; | 
 | 10650 |       esac | 
 | 10651 |       ;; | 
 | 10652 |     *) | 
 | 10653 |       lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10654 |       ;; | 
 | 10655 |     esac | 
 | 10656 |   else | 
 | 10657 |     case $host_os in | 
 | 10658 |       aix4* | aix5*) | 
 | 10659 | 	# All AIX code is PIC. | 
 | 10660 | 	if test "$host_cpu" = ia64; then | 
 | 10661 | 	  # AIX 5 now supports IA64 processor | 
 | 10662 | 	  lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10663 | 	else | 
 | 10664 | 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
 | 10665 | 	fi | 
 | 10666 | 	;; | 
 | 10667 |       chorus*) | 
 | 10668 | 	case $cc_basename in | 
 | 10669 | 	cxch68) | 
 | 10670 | 	  # Green Hills C++ Compiler | 
 | 10671 | 	  # _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" | 
 | 10672 | 	  ;; | 
 | 10673 | 	esac | 
 | 10674 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10675 |        darwin*) | 
 | 10676 |          # PIC is the default on this platform | 
 | 10677 |          # Common symbols not allowed in MH_DYLIB files | 
 | 10678 |          case "$cc_basename" in | 
 | 10679 |            xlc*) | 
 | 10680 |            lt_prog_compiler_pic_CXX='-qnocommon' | 
 | 10681 |            lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10682 |            ;; | 
 | 10683 |          esac | 
 | 10684 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10685 |       dgux*) | 
 | 10686 | 	case $cc_basename in | 
 | 10687 | 	  ec++) | 
 | 10688 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10689 | 	    ;; | 
 | 10690 | 	  ghcx) | 
 | 10691 | 	    # Green Hills C++ Compiler | 
 | 10692 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10693 | 	    ;; | 
 | 10694 | 	  *) | 
 | 10695 | 	    ;; | 
 | 10696 | 	esac | 
 | 10697 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10698 |       freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10699 | 	# FreeBSD uses GNU C++ | 
 | 10700 | 	;; | 
 | 10701 |       hpux9* | hpux10* | hpux11*) | 
 | 10702 | 	case $cc_basename in | 
 | 10703 | 	  CC) | 
 | 10704 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10705 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 10706 | 	    if test "$host_cpu" != ia64; then | 
 | 10707 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 10708 | 	    fi | 
 | 10709 | 	    ;; | 
 | 10710 | 	  aCC) | 
 | 10711 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10712 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 10713 | 	    case "$host_cpu" in | 
 | 10714 | 	    hppa*64*|ia64*) | 
 | 10715 | 	      # +Z the default | 
 | 10716 | 	      ;; | 
 | 10717 | 	    *) | 
 | 10718 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 10719 | 	      ;; | 
 | 10720 | 	    esac | 
 | 10721 | 	    ;; | 
 | 10722 | 	  *) | 
 | 10723 | 	    ;; | 
 | 10724 | 	esac | 
 | 10725 | 	;; | 
 | 10726 |       irix5* | irix6* | nonstopux*) | 
 | 10727 | 	case $cc_basename in | 
 | 10728 | 	  CC) | 
 | 10729 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10730 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10731 | 	    # CC pic flag -KPIC is the default. | 
 | 10732 | 	    ;; | 
 | 10733 | 	  *) | 
 | 10734 | 	    ;; | 
 | 10735 | 	esac | 
 | 10736 | 	;; | 
 | 10737 |       linux*) | 
 | 10738 | 	case $cc_basename in | 
 | 10739 | 	  KCC) | 
 | 10740 | 	    # KAI C++ Compiler | 
 | 10741 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 10742 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10743 | 	    ;; | 
 | 10744 | 	  icpc) | 
 | 10745 | 	    # Intel C++ | 
 | 10746 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10747 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10748 | 	    lt_prog_compiler_static_CXX='-static' | 
 | 10749 | 	    ;; | 
 | 10750 | 	  cxx) | 
 | 10751 | 	    # Compaq C++ | 
 | 10752 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 10753 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 10754 | 	    lt_prog_compiler_pic_CXX= | 
 | 10755 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10756 | 	    ;; | 
 | 10757 | 	  *) | 
 | 10758 | 	    ;; | 
 | 10759 | 	esac | 
 | 10760 | 	;; | 
 | 10761 |       lynxos*) | 
 | 10762 | 	;; | 
 | 10763 |       m88k*) | 
 | 10764 | 	;; | 
 | 10765 |       mvs*) | 
 | 10766 | 	case $cc_basename in | 
 | 10767 | 	  cxx) | 
 | 10768 | 	    lt_prog_compiler_pic_CXX='-W c,exportall' | 
 | 10769 | 	    ;; | 
 | 10770 | 	  *) | 
 | 10771 | 	    ;; | 
 | 10772 | 	esac | 
 | 10773 | 	;; | 
 | 10774 |       netbsd*) | 
 | 10775 | 	;; | 
 | 10776 |       osf3* | osf4* | osf5*) | 
 | 10777 | 	case $cc_basename in | 
 | 10778 | 	  KCC) | 
 | 10779 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 10780 | 	    ;; | 
 | 10781 | 	  RCC) | 
 | 10782 | 	    # Rational C++ 2.4.1 | 
 | 10783 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10784 | 	    ;; | 
 | 10785 | 	  cxx) | 
 | 10786 | 	    # Digital/Compaq C++ | 
 | 10787 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10788 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 10789 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 10790 | 	    lt_prog_compiler_pic_CXX= | 
 | 10791 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10792 | 	    ;; | 
 | 10793 | 	  *) | 
 | 10794 | 	    ;; | 
 | 10795 | 	esac | 
 | 10796 | 	;; | 
 | 10797 |       psos*) | 
 | 10798 | 	;; | 
 | 10799 |       sco*) | 
 | 10800 | 	case $cc_basename in | 
 | 10801 | 	  CC) | 
 | 10802 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10803 | 	    ;; | 
 | 10804 | 	  *) | 
 | 10805 | 	    ;; | 
 | 10806 | 	esac | 
 | 10807 | 	;; | 
 | 10808 |       solaris*) | 
 | 10809 | 	case $cc_basename in | 
 | 10810 | 	  CC) | 
 | 10811 | 	    # Sun C++ 4.2, 5.x and Centerline C++ | 
 | 10812 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10813 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10814 | 	    lt_prog_compiler_wl_CXX='-Qoption ld ' | 
 | 10815 | 	    ;; | 
 | 10816 | 	  gcx) | 
 | 10817 | 	    # Green Hills C++ Compiler | 
 | 10818 | 	    lt_prog_compiler_pic_CXX='-PIC' | 
 | 10819 | 	    ;; | 
 | 10820 | 	  *) | 
 | 10821 | 	    ;; | 
 | 10822 | 	esac | 
 | 10823 | 	;; | 
 | 10824 |       sunos4*) | 
 | 10825 | 	case $cc_basename in | 
 | 10826 | 	  CC) | 
 | 10827 | 	    # Sun C++ 4.x | 
 | 10828 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10829 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10830 | 	    ;; | 
 | 10831 | 	  lcc) | 
 | 10832 | 	    # Lucid | 
 | 10833 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10834 | 	    ;; | 
 | 10835 | 	  *) | 
 | 10836 | 	    ;; | 
 | 10837 | 	esac | 
 | 10838 | 	;; | 
 | 10839 |       tandem*) | 
 | 10840 | 	case $cc_basename in | 
 | 10841 | 	  NCC) | 
 | 10842 | 	    # NonStop-UX NCC 3.20 | 
 | 10843 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10844 | 	    ;; | 
 | 10845 | 	  *) | 
 | 10846 | 	    ;; | 
 | 10847 | 	esac | 
 | 10848 | 	;; | 
 | 10849 |       unixware*) | 
 | 10850 | 	;; | 
 | 10851 |       vxworks*) | 
 | 10852 | 	;; | 
 | 10853 |       *) | 
 | 10854 | 	lt_prog_compiler_can_build_shared_CXX=no | 
 | 10855 | 	;; | 
 | 10856 |     esac | 
 | 10857 |   fi | 
 | 10858 |  | 
 | 10859 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
 | 10860 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 
 | 10861 |  | 
 | 10862 | # | 
 | 10863 | # Check to make sure the PIC flag actually works. | 
 | 10864 | # | 
 | 10865 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10866 |  | 
 | 10867 | 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] | 10868 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 
 | 10869 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
 | 10870 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10871 | else | 
 | 10872 |   lt_prog_compiler_pic_works_CXX=no | 
 | 10873 |   ac_outfile=conftest.$ac_objext | 
 | 10874 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 10875 |    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 10876 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 10877 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 10878 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 10879 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 10880 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 10881 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 10882 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 10883 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 10884 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 10885 |    (eval echo "\"\$as_me:10885: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10886 |    (eval "$lt_compile" 2>conftest.err) | 
 | 10887 |    ac_status=$? | 
 | 10888 |    cat conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 10889 |    echo "$as_me:10889: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10890 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 10891 |      # The compiler can only warn and ignore the option if not recognized | 
 | 10892 |      # So say no if there are warnings | 
 | 10893 |      if test ! -s conftest.err; then | 
 | 10894 |        lt_prog_compiler_pic_works_CXX=yes | 
 | 10895 |      fi | 
 | 10896 |    fi | 
 | 10897 |    $rm conftest* | 
 | 10898 |  | 
 | 10899 | fi | 
 | 10900 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
 | 10901 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 
 | 10902 |  | 
 | 10903 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
 | 10904 |     case $lt_prog_compiler_pic_CXX in | 
 | 10905 |      "" | " "*) ;; | 
 | 10906 |      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
 | 10907 |      esac | 
 | 10908 | else | 
 | 10909 |     lt_prog_compiler_pic_CXX= | 
 | 10910 |      lt_prog_compiler_can_build_shared_CXX=no | 
 | 10911 | fi | 
 | 10912 |  | 
 | 10913 | fi | 
 | 10914 | case "$host_os" in | 
 | 10915 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 10916 |   *djgpp*) | 
 | 10917 |     lt_prog_compiler_pic_CXX= | 
 | 10918 |     ;; | 
 | 10919 |   *) | 
 | 10920 |     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 10921 |     ;; | 
 | 10922 | esac | 
 | 10923 |  | 
 | 10924 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 10925 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 10926 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
 | 10927 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10928 | else | 
 | 10929 |   lt_cv_prog_compiler_c_o_CXX=no | 
 | 10930 |    $rm -r conftest 2>/dev/null | 
 | 10931 |    mkdir conftest | 
 | 10932 |    cd conftest | 
 | 10933 |    mkdir out | 
 | 10934 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 10935 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10936 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 10937 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 10938 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 10939 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 10940 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 10941 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 10942 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 10943 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 10944 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 10945 |    (eval echo "\"\$as_me:10945: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10946 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 10947 |    ac_status=$? | 
 | 10948 |    cat out/conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 10949 |    echo "$as_me:10949: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10950 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 10951 |    then | 
 | 10952 |      # The compiler can only warn and ignore the option if not recognized | 
 | 10953 |      # So say no if there are warnings | 
 | 10954 |      if test ! -s out/conftest.err; then | 
 | 10955 |        lt_cv_prog_compiler_c_o_CXX=yes | 
 | 10956 |      fi | 
 | 10957 |    fi | 
 | 10958 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10959 |    $rm conftest* | 
 | 10960 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 10961 |    # template instantiation | 
 | 10962 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 10963 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10964 |    cd .. | 
 | 10965 |    rmdir conftest | 
 | 10966 |    $rm conftest* | 
 | 10967 |  | 
 | 10968 | fi | 
 | 10969 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
 | 10970 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 
 | 10971 |  | 
 | 10972 |  | 
 | 10973 | hard_links="nottested" | 
 | 10974 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
 | 10975 |   # do not overwrite the value of need_locks provided by the user | 
 | 10976 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 10977 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 10978 |   hard_links=yes | 
 | 10979 |   $rm conftest* | 
 | 10980 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 10981 |   touch conftest.a | 
 | 10982 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 10983 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 10984 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 10985 | echo "${ECHO_T}$hard_links" >&6 | 
 | 10986 |   if test "$hard_links" = no; then | 
 | 10987 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 10988 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 10989 |     need_locks=warn | 
 | 10990 |   fi | 
 | 10991 | else | 
 | 10992 |   need_locks=no | 
 | 10993 | fi | 
 | 10994 |  | 
 | 10995 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 10996 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 10997 |  | 
 | 10998 |   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 10999 |   case $host_os in | 
 | 11000 |   aix4* | aix5*) | 
 | 11001 |     # If we're using GNU nm, then we don't want the "-C" option. | 
 | 11002 |     # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 11003 |     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 11004 |       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' | 
 | 11005 |     else | 
 | 11006 |       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' | 
 | 11007 |     fi | 
 | 11008 |     ;; | 
 | 11009 |   pw32*) | 
 | 11010 |     export_symbols_cmds_CXX="$ltdll_cmds" | 
 | 11011 |   ;; | 
 | 11012 |   cygwin* | mingw*) | 
 | 11013 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 11014 |   ;; | 
 | 11015 |   *) | 
 | 11016 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 11017 |   ;; | 
 | 11018 |   esac | 
 | 11019 |  | 
 | 11020 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 11021 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 11022 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 11023 |  | 
 | 11024 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 11025 | if test "$GCC" = yes; then | 
 | 11026 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 11027 | fi | 
 | 11028 |  | 
 | 11029 | # | 
 | 11030 | # Do we need to explicitly link libc? | 
 | 11031 | # | 
 | 11032 | case "x$archive_cmds_need_lc_CXX" in | 
 | 11033 | x|xyes) | 
 | 11034 |   # Assume -lc should be added | 
 | 11035 |   archive_cmds_need_lc_CXX=yes | 
 | 11036 |  | 
 | 11037 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 11038 |     case $archive_cmds_CXX in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11039 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11040 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 11041 |       ;; | 
 | 11042 |     '$CC '*) | 
 | 11043 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 11044 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 11045 |       # to ld, don't add -lc before -lgcc. | 
 | 11046 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 11047 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 11048 |       $rm conftest* | 
 | 11049 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 11050 |  | 
 | 11051 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 11052 |   (eval $ac_compile) 2>&5 | 
 | 11053 |   ac_status=$? | 
 | 11054 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11055 |   (exit $ac_status); } 2>conftest.err; then | 
 | 11056 |         soname=conftest | 
 | 11057 |         lib=conftest | 
 | 11058 |         libobjs=conftest.$ac_objext | 
 | 11059 |         deplibs= | 
 | 11060 |         wl=$lt_prog_compiler_wl_CXX | 
 | 11061 |         compiler_flags=-v | 
 | 11062 |         linker_flags=-v | 
 | 11063 |         verstring= | 
 | 11064 |         output_objdir=. | 
 | 11065 |         libname=conftest | 
 | 11066 |         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
 | 11067 |         allow_undefined_flag_CXX= | 
 | 11068 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 11069 |   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 11070 |   ac_status=$? | 
 | 11071 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11072 |   (exit $ac_status); } | 
 | 11073 |         then | 
 | 11074 | 	  archive_cmds_need_lc_CXX=no | 
 | 11075 |         else | 
 | 11076 | 	  archive_cmds_need_lc_CXX=yes | 
 | 11077 |         fi | 
 | 11078 |         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
 | 11079 |       else | 
 | 11080 |         cat conftest.err 1>&5 | 
 | 11081 |       fi | 
 | 11082 |       $rm conftest* | 
 | 11083 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
 | 11084 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 
 | 11085 |       ;; | 
 | 11086 |     esac | 
 | 11087 |   fi | 
 | 11088 |   ;; | 
 | 11089 | esac | 
 | 11090 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11091 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 11092 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 11093 | library_names_spec= | 
 | 11094 | libname_spec='lib$name' | 
 | 11095 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11096 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11097 | postinstall_cmds= | 
 | 11098 | postuninstall_cmds= | 
 | 11099 | finish_cmds= | 
 | 11100 | finish_eval= | 
 | 11101 | shlibpath_var= | 
 | 11102 | shlibpath_overrides_runpath=unknown | 
 | 11103 | version_type=none | 
 | 11104 | dynamic_linker="$host_os ld.so" | 
 | 11105 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 11106 | if test "$GCC" = yes; then | 
 | 11107 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 11108 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 11109 |     # if the path contains ";" then we assume it to be the separator | 
 | 11110 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 11111 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 11112 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 11113 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 11114 |   else | 
 | 11115 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 11116 |   fi | 
 | 11117 | else | 
 | 11118 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 11119 | fi | 
 | 11120 | need_lib_prefix=unknown | 
 | 11121 | hardcode_into_libs=no | 
 | 11122 |  | 
 | 11123 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 11124 | # flags to be left without arguments | 
 | 11125 | need_version=unknown | 
 | 11126 |  | 
 | 11127 | case $host_os in | 
 | 11128 | aix3*) | 
 | 11129 |   version_type=linux | 
 | 11130 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 11131 |   shlibpath_var=LIBPATH | 
 | 11132 |  | 
 | 11133 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 11134 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11135 |   ;; | 
 | 11136 |  | 
 | 11137 | aix4* | aix5*) | 
 | 11138 |   version_type=linux | 
 | 11139 |   need_lib_prefix=no | 
 | 11140 |   need_version=no | 
 | 11141 |   hardcode_into_libs=yes | 
 | 11142 |   if test "$host_cpu" = ia64; then | 
 | 11143 |     # AIX 5 supports IA64 | 
 | 11144 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 11145 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 11146 |   else | 
 | 11147 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 11148 |     # for dependence libraries.  The import file would start with | 
 | 11149 |     # the line `#! .'.  This would cause the generated library to | 
 | 11150 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 11151 |     # development snapshots of GCC prior to 3.0. | 
 | 11152 |     case $host_os in | 
 | 11153 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 11154 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 11155 | 	   echo ' yes ' | 
 | 11156 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 11157 | 	: | 
 | 11158 |       else | 
 | 11159 | 	can_build_shared=no | 
 | 11160 |       fi | 
 | 11161 |       ;; | 
 | 11162 |     esac | 
 | 11163 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 11164 |     # soname into executable. Probably we can add versioning support to | 
 | 11165 |     # collect2, so additional links can be useful in future. | 
 | 11166 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 11167 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 11168 |       # instead of lib<name>.a to let people know that these are not | 
 | 11169 |       # typical AIX shared libraries. | 
 | 11170 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11171 |     else | 
 | 11172 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 11173 |       # and later when we are not doing run time linking. | 
 | 11174 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 11175 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11176 |     fi | 
 | 11177 |     shlibpath_var=LIBPATH | 
 | 11178 |   fi | 
 | 11179 |   ;; | 
 | 11180 |  | 
 | 11181 | amigaos*) | 
 | 11182 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 11183 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11184 |   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] | 11185 |   ;; | 
 | 11186 |  | 
 | 11187 | beos*) | 
 | 11188 |   library_names_spec='${libname}${shared_ext}' | 
 | 11189 |   dynamic_linker="$host_os ld.so" | 
 | 11190 |   shlibpath_var=LIBRARY_PATH | 
 | 11191 |   ;; | 
 | 11192 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11193 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11194 |   version_type=linux | 
 | 11195 |   need_version=no | 
 | 11196 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11197 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11198 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 11199 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11200 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 11201 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 11202 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 11203 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 11204 |   # libtool to hard-code these into programs | 
 | 11205 |   ;; | 
 | 11206 |  | 
 | 11207 | cygwin* | mingw* | pw32*) | 
 | 11208 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11209 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11210 |   need_version=no | 
 | 11211 |   need_lib_prefix=no | 
 | 11212 |  | 
 | 11213 |   case $GCC,$host_os in | 
 | 11214 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 11215 |     library_names_spec='$libname.dll.a' | 
 | 11216 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11217 |     postinstall_cmds='base_file=`basename \${file}`; | 
 | 11218 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; | 
 | 11219 |       dldir=$destdir/`dirname \$dlpath`; | 
 | 11220 |       test -d \$dldir || mkdir -p \$dldir; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11221 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11222 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; | 
 | 11223 |       dlpath=$dir/\$dldll; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11224 |        $rm \$dlpath' | 
 | 11225 |     shlibpath_overrides_runpath=yes | 
 | 11226 |  | 
 | 11227 |     case $host_os in | 
 | 11228 |     cygwin*) | 
 | 11229 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 11230 |       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] | 11231 |       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] | 11232 |       ;; | 
 | 11233 |     mingw*) | 
 | 11234 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 11235 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 11236 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 11237 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 11238 |         # It is most probably a Windows format PATH printed by | 
 | 11239 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 11240 |         # path with ; separators, and with drive letters. We can handle the | 
 | 11241 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 11242 |         # especially as we might pass files found there to a mingw objdump, | 
 | 11243 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 11244 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 11245 |       else | 
 | 11246 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 11247 |       fi | 
 | 11248 |       ;; | 
 | 11249 |     pw32*) | 
 | 11250 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 11251 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 11252 |       ;; | 
 | 11253 |     esac | 
 | 11254 |     ;; | 
 | 11255 |  | 
 | 11256 |   *) | 
 | 11257 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 11258 |     ;; | 
 | 11259 |   esac | 
 | 11260 |   dynamic_linker='Win32 ld.exe' | 
 | 11261 |   # FIXME: first we should search . and the directory the executable is in | 
 | 11262 |   shlibpath_var=PATH | 
 | 11263 |   ;; | 
 | 11264 |  | 
 | 11265 | darwin* | rhapsody*) | 
 | 11266 |   dynamic_linker="$host_os dyld" | 
 | 11267 |   version_type=darwin | 
 | 11268 |   need_lib_prefix=no | 
 | 11269 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11270 |   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] | 11271 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 11272 |   shlibpath_overrides_runpath=yes | 
 | 11273 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11274 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11275 |   # 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] | 11276 |   if test "$GCC" = yes; then | 
 | 11277 |     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"` | 
 | 11278 |   else | 
 | 11279 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11280 |   fi | 
 | 11281 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 11282 |   ;; | 
 | 11283 |  | 
 | 11284 | dgux*) | 
 | 11285 |   version_type=linux | 
 | 11286 |   need_lib_prefix=no | 
 | 11287 |   need_version=no | 
 | 11288 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 11289 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11290 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11291 |   ;; | 
 | 11292 |  | 
 | 11293 | freebsd1*) | 
 | 11294 |   dynamic_linker=no | 
 | 11295 |   ;; | 
 | 11296 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11297 | kfreebsd*-gnu) | 
 | 11298 |   version_type=linux | 
 | 11299 |   need_lib_prefix=no | 
 | 11300 |   need_version=no | 
 | 11301 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 11302 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11303 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11304 |   shlibpath_overrides_runpath=no | 
 | 11305 |   hardcode_into_libs=yes | 
 | 11306 |   dynamic_linker='GNU ld.so' | 
 | 11307 |   ;; | 
 | 11308 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11309 | freebsd*) | 
 | 11310 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 11311 |   version_type=freebsd-$objformat | 
 | 11312 |   case $version_type in | 
 | 11313 |     freebsd-elf*) | 
 | 11314 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 11315 |       need_version=no | 
 | 11316 |       need_lib_prefix=no | 
 | 11317 |       ;; | 
 | 11318 |     freebsd-*) | 
 | 11319 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 11320 |       need_version=yes | 
 | 11321 |       ;; | 
 | 11322 |   esac | 
 | 11323 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11324 |   case $host_os in | 
 | 11325 |   freebsd2*) | 
 | 11326 |     shlibpath_overrides_runpath=yes | 
 | 11327 |     ;; | 
 | 11328 |   freebsd3.01* | freebsdelf3.01*) | 
 | 11329 |     shlibpath_overrides_runpath=yes | 
 | 11330 |     hardcode_into_libs=yes | 
 | 11331 |     ;; | 
 | 11332 |   *) # from 3.2 on | 
 | 11333 |     shlibpath_overrides_runpath=no | 
 | 11334 |     hardcode_into_libs=yes | 
 | 11335 |     ;; | 
 | 11336 |   esac | 
 | 11337 |   ;; | 
 | 11338 |  | 
 | 11339 | gnu*) | 
 | 11340 |   version_type=linux | 
 | 11341 |   need_lib_prefix=no | 
 | 11342 |   need_version=no | 
 | 11343 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 11344 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11345 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11346 |   hardcode_into_libs=yes | 
 | 11347 |   ;; | 
 | 11348 |  | 
 | 11349 | hpux9* | hpux10* | hpux11*) | 
 | 11350 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 11351 |   # link against other versions. | 
 | 11352 |   version_type=sunos | 
 | 11353 |   need_lib_prefix=no | 
 | 11354 |   need_version=no | 
 | 11355 |   case "$host_cpu" in | 
 | 11356 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11357 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11358 |     hardcode_into_libs=yes | 
 | 11359 |     dynamic_linker="$host_os dld.so" | 
 | 11360 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 11361 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 11362 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11363 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11364 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 11365 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 11366 |     else | 
 | 11367 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 11368 |     fi | 
 | 11369 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 11370 |     ;; | 
 | 11371 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11372 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11373 |      hardcode_into_libs=yes | 
 | 11374 |      dynamic_linker="$host_os dld.sl" | 
 | 11375 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 11376 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 11377 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11378 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11379 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 11380 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 11381 |      ;; | 
 | 11382 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11383 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11384 |     dynamic_linker="$host_os dld.sl" | 
 | 11385 |     shlibpath_var=SHLIB_PATH | 
 | 11386 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 11387 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11388 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11389 |     ;; | 
 | 11390 |   esac | 
 | 11391 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 11392 |   postinstall_cmds='chmod 555 $lib' | 
 | 11393 |   ;; | 
 | 11394 |  | 
 | 11395 | irix5* | irix6* | nonstopux*) | 
 | 11396 |   case $host_os in | 
 | 11397 |     nonstopux*) version_type=nonstopux ;; | 
 | 11398 |     *) | 
 | 11399 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 11400 | 		version_type=linux | 
 | 11401 | 	else | 
 | 11402 | 		version_type=irix | 
 | 11403 | 	fi ;; | 
 | 11404 |   esac | 
 | 11405 |   need_lib_prefix=no | 
 | 11406 |   need_version=no | 
 | 11407 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11408 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 11409 |   case $host_os in | 
 | 11410 |   irix5* | nonstopux*) | 
 | 11411 |     libsuff= shlibsuff= | 
 | 11412 |     ;; | 
 | 11413 |   *) | 
 | 11414 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 11415 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 11416 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 11417 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 11418 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 11419 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 11420 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 11421 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 11422 |     esac | 
 | 11423 |     ;; | 
 | 11424 |   esac | 
 | 11425 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 11426 |   shlibpath_overrides_runpath=no | 
 | 11427 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 11428 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 11429 |   hardcode_into_libs=yes | 
 | 11430 |   ;; | 
 | 11431 |  | 
 | 11432 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 11433 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 11434 |   dynamic_linker=no | 
 | 11435 |   ;; | 
 | 11436 |  | 
 | 11437 | # This must be Linux ELF. | 
 | 11438 | linux*) | 
 | 11439 |   version_type=linux | 
 | 11440 |   need_lib_prefix=no | 
 | 11441 |   need_version=no | 
 | 11442 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11443 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11444 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 11445 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11446 |   shlibpath_overrides_runpath=no | 
 | 11447 |   # This implies no fast_install, which is unacceptable. | 
 | 11448 |   # Some rework will be needed to allow for fast_install | 
 | 11449 |   # before this can be enabled. | 
 | 11450 |   hardcode_into_libs=yes | 
 | 11451 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11452 |   # Append ld.so.conf contents to the search path | 
 | 11453 |   if test -f /etc/ld.so.conf; then | 
 | 11454 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 11455 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 11456 |   fi | 
 | 11457 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11458 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 11459 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 11460 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 11461 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 11462 |   # people can always --disable-shared, the test was removed, and we | 
 | 11463 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 11464 |   dynamic_linker='GNU/Linux ld.so' | 
 | 11465 |   ;; | 
 | 11466 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11467 | knetbsd*-gnu) | 
 | 11468 |   version_type=linux | 
 | 11469 |   need_lib_prefix=no | 
 | 11470 |   need_version=no | 
 | 11471 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 11472 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11473 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11474 |   shlibpath_overrides_runpath=no | 
 | 11475 |   hardcode_into_libs=yes | 
 | 11476 |   dynamic_linker='GNU ld.so' | 
 | 11477 |   ;; | 
 | 11478 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11479 | netbsd*) | 
 | 11480 |   version_type=sunos | 
 | 11481 |   need_lib_prefix=no | 
 | 11482 |   need_version=no | 
 | 11483 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 11484 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11485 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 11486 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 11487 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11488 |     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] | 11489 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11490 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 11491 |   fi | 
 | 11492 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11493 |   shlibpath_overrides_runpath=yes | 
 | 11494 |   hardcode_into_libs=yes | 
 | 11495 |   ;; | 
 | 11496 |  | 
 | 11497 | newsos6) | 
 | 11498 |   version_type=linux | 
 | 11499 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11500 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11501 |   shlibpath_overrides_runpath=yes | 
 | 11502 |   ;; | 
 | 11503 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11504 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11505 |   version_type=linux | 
 | 11506 |   need_lib_prefix=no | 
 | 11507 |   need_version=no | 
 | 11508 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11509 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11510 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11511 |   shlibpath_overrides_runpath=yes | 
 | 11512 |   ;; | 
 | 11513 |  | 
 | 11514 | openbsd*) | 
 | 11515 |   version_type=sunos | 
 | 11516 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 11517 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11518 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11519 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 11520 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11521 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 11522 |     case $host_os in | 
 | 11523 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 11524 | 	shlibpath_overrides_runpath=no | 
 | 11525 | 	;; | 
 | 11526 |       *) | 
 | 11527 | 	shlibpath_overrides_runpath=yes | 
 | 11528 | 	;; | 
 | 11529 |       esac | 
 | 11530 |   else | 
 | 11531 |     shlibpath_overrides_runpath=yes | 
 | 11532 |   fi | 
 | 11533 |   ;; | 
 | 11534 |  | 
 | 11535 | os2*) | 
 | 11536 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11537 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11538 |   need_lib_prefix=no | 
 | 11539 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 11540 |   dynamic_linker='OS/2 ld.exe' | 
 | 11541 |   shlibpath_var=LIBPATH | 
 | 11542 |   ;; | 
 | 11543 |  | 
 | 11544 | osf3* | osf4* | osf5*) | 
 | 11545 |   version_type=osf | 
 | 11546 |   need_lib_prefix=no | 
 | 11547 |   need_version=no | 
 | 11548 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11549 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11550 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11551 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 11552 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 11553 |   ;; | 
 | 11554 |  | 
 | 11555 | sco3.2v5*) | 
 | 11556 |   version_type=osf | 
 | 11557 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11558 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11559 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11560 |   ;; | 
 | 11561 |  | 
 | 11562 | solaris*) | 
 | 11563 |   version_type=linux | 
 | 11564 |   need_lib_prefix=no | 
 | 11565 |   need_version=no | 
 | 11566 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11567 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11568 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11569 |   shlibpath_overrides_runpath=yes | 
 | 11570 |   hardcode_into_libs=yes | 
 | 11571 |   # ldd complains unless libraries are executable | 
 | 11572 |   postinstall_cmds='chmod +x $lib' | 
 | 11573 |   ;; | 
 | 11574 |  | 
 | 11575 | sunos4*) | 
 | 11576 |   version_type=sunos | 
 | 11577 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11578 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 11579 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11580 |   shlibpath_overrides_runpath=yes | 
 | 11581 |   if test "$with_gnu_ld" = yes; then | 
 | 11582 |     need_lib_prefix=no | 
 | 11583 |   fi | 
 | 11584 |   need_version=yes | 
 | 11585 |   ;; | 
 | 11586 |  | 
 | 11587 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 11588 |   version_type=linux | 
 | 11589 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11590 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11591 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11592 |   case $host_vendor in | 
 | 11593 |     sni) | 
 | 11594 |       shlibpath_overrides_runpath=no | 
 | 11595 |       need_lib_prefix=no | 
 | 11596 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 11597 |       runpath_var=LD_RUN_PATH | 
 | 11598 |       ;; | 
 | 11599 |     siemens) | 
 | 11600 |       need_lib_prefix=no | 
 | 11601 |       ;; | 
 | 11602 |     motorola) | 
 | 11603 |       need_lib_prefix=no | 
 | 11604 |       need_version=no | 
 | 11605 |       shlibpath_overrides_runpath=no | 
 | 11606 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 11607 |       ;; | 
 | 11608 |   esac | 
 | 11609 |   ;; | 
 | 11610 |  | 
 | 11611 | sysv4*MP*) | 
 | 11612 |   if test -d /usr/nec ;then | 
 | 11613 |     version_type=linux | 
 | 11614 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 11615 |     soname_spec='$libname${shared_ext}.$major' | 
 | 11616 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 11617 |   fi | 
 | 11618 |   ;; | 
 | 11619 |  | 
 | 11620 | uts4*) | 
 | 11621 |   version_type=linux | 
 | 11622 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11623 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11624 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11625 |   ;; | 
 | 11626 |  | 
 | 11627 | *) | 
 | 11628 |   dynamic_linker=no | 
 | 11629 |   ;; | 
 | 11630 | esac | 
 | 11631 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 11632 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 11633 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 11634 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11635 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 11636 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 11637 | hardcode_action_CXX= | 
 | 11638 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
 | 11639 |    test -n "$runpath_var_CXX" || \ | 
 | 11640 |    test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
 | 11641 |  | 
 | 11642 |   # We can hardcode non-existant directories. | 
 | 11643 |   if test "$hardcode_direct_CXX" != no && | 
 | 11644 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 11645 |      # have to relink, otherwise we might link with an installed library | 
 | 11646 |      # when we should be linking with a yet-to-be-installed one | 
 | 11647 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
 | 11648 |      test "$hardcode_minus_L_CXX" != no; then | 
 | 11649 |     # Linking always hardcodes the temporary library directory. | 
 | 11650 |     hardcode_action_CXX=relink | 
 | 11651 |   else | 
 | 11652 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 11653 |     hardcode_action_CXX=immediate | 
 | 11654 |   fi | 
 | 11655 | else | 
 | 11656 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 11657 |   # directories. | 
 | 11658 |   hardcode_action_CXX=unsupported | 
 | 11659 | fi | 
 | 11660 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
 | 11661 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 
 | 11662 |  | 
 | 11663 | if test "$hardcode_action_CXX" = relink; then | 
 | 11664 |   # Fast installation is not supported | 
 | 11665 |   enable_fast_install=no | 
 | 11666 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 11667 |      test "$enable_shared" = no; then | 
 | 11668 |   # Fast installation is not necessary | 
 | 11669 |   enable_fast_install=needless | 
 | 11670 | fi | 
 | 11671 |  | 
 | 11672 | striplib= | 
 | 11673 | old_striplib= | 
 | 11674 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 11675 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 11676 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 11677 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 11678 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 11679 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 11680 | echo "${ECHO_T}yes" >&6 | 
 | 11681 | else | 
 | 11682 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 11683 |   case $host_os in | 
 | 11684 |    darwin*) | 
 | 11685 |        if test -n "$STRIP" ; then | 
 | 11686 |          striplib="$STRIP -x" | 
 | 11687 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 11688 | echo "${ECHO_T}yes" >&6 | 
 | 11689 |        else | 
 | 11690 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11691 | echo "${ECHO_T}no" >&6 | 
 | 11692 | fi | 
 | 11693 |        ;; | 
 | 11694 |    *) | 
 | 11695 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11696 | echo "${ECHO_T}no" >&6 | 
 | 11697 |     ;; | 
 | 11698 |   esac | 
 | 11699 | fi | 
 | 11700 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11701 | if test "x$enable_dlopen" != xyes; then | 
 | 11702 |   enable_dlopen=unknown | 
 | 11703 |   enable_dlopen_self=unknown | 
 | 11704 |   enable_dlopen_self_static=unknown | 
 | 11705 | else | 
 | 11706 |   lt_cv_dlopen=no | 
 | 11707 |   lt_cv_dlopen_libs= | 
 | 11708 |  | 
 | 11709 |   case $host_os in | 
 | 11710 |   beos*) | 
 | 11711 |     lt_cv_dlopen="load_add_on" | 
 | 11712 |     lt_cv_dlopen_libs= | 
 | 11713 |     lt_cv_dlopen_self=yes | 
 | 11714 |     ;; | 
 | 11715 |  | 
 | 11716 |   mingw* | pw32*) | 
 | 11717 |     lt_cv_dlopen="LoadLibrary" | 
 | 11718 |     lt_cv_dlopen_libs= | 
 | 11719 |    ;; | 
 | 11720 |  | 
 | 11721 |   cygwin*) | 
 | 11722 |     lt_cv_dlopen="dlopen" | 
 | 11723 |     lt_cv_dlopen_libs= | 
 | 11724 |    ;; | 
 | 11725 |  | 
 | 11726 |   darwin*) | 
 | 11727 |   # if libdl is installed we need to link against it | 
 | 11728 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 11729 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 11730 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 11731 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11732 | else | 
 | 11733 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11734 | LIBS="-ldl  $LIBS" | 
 | 11735 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11736 | /* confdefs.h.  */ | 
 | 11737 | _ACEOF | 
 | 11738 | cat confdefs.h >>conftest.$ac_ext | 
 | 11739 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11740 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11741 |  | 
 | 11742 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11743 | #ifdef __cplusplus | 
 | 11744 | extern "C" | 
 | 11745 | #endif | 
 | 11746 | /* We use char because int might match the return type of a gcc2 | 
 | 11747 |    builtin and then its argument prototype would still apply.  */ | 
 | 11748 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11749 | int | 
 | 11750 | main () | 
 | 11751 | { | 
 | 11752 | dlopen (); | 
 | 11753 |   ; | 
 | 11754 |   return 0; | 
 | 11755 | } | 
 | 11756 | _ACEOF | 
 | 11757 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11759 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11760 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11761 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11762 |   rm -f conftest.er1 | 
 | 11763 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11764 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11765 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11766 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 11767 | 			 || test ! -s conftest.err' | 
 | 11768 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11769 |   (eval $ac_try) 2>&5 | 
 | 11770 |   ac_status=$? | 
 | 11771 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11772 |   (exit $ac_status); }; } && | 
 | 11773 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11774 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11775 |   (eval $ac_try) 2>&5 | 
 | 11776 |   ac_status=$? | 
 | 11777 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11778 |   (exit $ac_status); }; }; then | 
 | 11779 |   ac_cv_lib_dl_dlopen=yes | 
 | 11780 | else | 
 | 11781 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11782 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11783 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11784 | ac_cv_lib_dl_dlopen=no | 
 | 11785 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11786 | rm -f conftest.err conftest.$ac_objext \ | 
 | 11787 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11788 | LIBS=$ac_check_lib_save_LIBS | 
 | 11789 | fi | 
 | 11790 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 11791 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 11792 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 11793 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 11794 | else | 
 | 11795 |  | 
 | 11796 |     lt_cv_dlopen="dyld" | 
 | 11797 |     lt_cv_dlopen_libs= | 
 | 11798 |     lt_cv_dlopen_self=yes | 
 | 11799 |  | 
 | 11800 | fi | 
 | 11801 |  | 
 | 11802 |    ;; | 
 | 11803 |  | 
 | 11804 |   *) | 
 | 11805 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 11806 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 11807 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 11808 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11809 | else | 
 | 11810 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11811 | /* confdefs.h.  */ | 
 | 11812 | _ACEOF | 
 | 11813 | cat confdefs.h >>conftest.$ac_ext | 
 | 11814 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11815 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11816 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 11817 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 11818 | #define shl_load innocuous_shl_load | 
 | 11819 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11820 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11821 |     which can conflict with char shl_load (); below. | 
 | 11822 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 11823 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11824 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11825 | #ifdef __STDC__ | 
 | 11826 | # include <limits.h> | 
 | 11827 | #else | 
 | 11828 | # include <assert.h> | 
 | 11829 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11830 |  | 
 | 11831 | #undef shl_load | 
 | 11832 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11833 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11834 | #ifdef __cplusplus | 
 | 11835 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11836 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11837 | #endif | 
 | 11838 | /* We use char because int might match the return type of a gcc2 | 
 | 11839 |    builtin and then its argument prototype would still apply.  */ | 
 | 11840 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11841 | /* The GNU C library defines this for functions which it implements | 
 | 11842 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 11843 |     something starting with __ and the normal name is an alias.  */ | 
 | 11844 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 11845 | choke me | 
 | 11846 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11847 | char (*f) () = shl_load; | 
 | 11848 | #endif | 
 | 11849 | #ifdef __cplusplus | 
 | 11850 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11851 | #endif | 
 | 11852 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11853 | int | 
 | 11854 | main () | 
 | 11855 | { | 
 | 11856 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11857 |   ; | 
 | 11858 |   return 0; | 
 | 11859 | } | 
 | 11860 | _ACEOF | 
 | 11861 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11863 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11864 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11865 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11866 |   rm -f conftest.er1 | 
 | 11867 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11868 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11869 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11870 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 11871 | 			 || test ! -s conftest.err' | 
 | 11872 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11873 |   (eval $ac_try) 2>&5 | 
 | 11874 |   ac_status=$? | 
 | 11875 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11876 |   (exit $ac_status); }; } && | 
 | 11877 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11878 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11879 |   (eval $ac_try) 2>&5 | 
 | 11880 |   ac_status=$? | 
 | 11881 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11882 |   (exit $ac_status); }; }; then | 
 | 11883 |   ac_cv_func_shl_load=yes | 
 | 11884 | else | 
 | 11885 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11886 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11887 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11888 | ac_cv_func_shl_load=no | 
 | 11889 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11890 | rm -f conftest.err conftest.$ac_objext \ | 
 | 11891 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11892 | fi | 
 | 11893 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 11894 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 11895 | if test $ac_cv_func_shl_load = yes; then | 
 | 11896 |   lt_cv_dlopen="shl_load" | 
 | 11897 | else | 
 | 11898 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 11899 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 11900 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 11901 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11902 | else | 
 | 11903 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11904 | LIBS="-ldld  $LIBS" | 
 | 11905 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11906 | /* confdefs.h.  */ | 
 | 11907 | _ACEOF | 
 | 11908 | cat confdefs.h >>conftest.$ac_ext | 
 | 11909 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11910 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11911 |  | 
 | 11912 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11913 | #ifdef __cplusplus | 
 | 11914 | extern "C" | 
 | 11915 | #endif | 
 | 11916 | /* We use char because int might match the return type of a gcc2 | 
 | 11917 |    builtin and then its argument prototype would still apply.  */ | 
 | 11918 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11919 | int | 
 | 11920 | main () | 
 | 11921 | { | 
 | 11922 | shl_load (); | 
 | 11923 |   ; | 
 | 11924 |   return 0; | 
 | 11925 | } | 
 | 11926 | _ACEOF | 
 | 11927 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11929 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11930 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11931 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11932 |   rm -f conftest.er1 | 
 | 11933 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11934 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11935 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11936 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 11937 | 			 || test ! -s conftest.err' | 
 | 11938 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11939 |   (eval $ac_try) 2>&5 | 
 | 11940 |   ac_status=$? | 
 | 11941 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11942 |   (exit $ac_status); }; } && | 
 | 11943 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11944 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11945 |   (eval $ac_try) 2>&5 | 
 | 11946 |   ac_status=$? | 
 | 11947 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11948 |   (exit $ac_status); }; }; then | 
 | 11949 |   ac_cv_lib_dld_shl_load=yes | 
 | 11950 | else | 
 | 11951 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11952 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11953 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11954 | ac_cv_lib_dld_shl_load=no | 
 | 11955 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11956 | rm -f conftest.err conftest.$ac_objext \ | 
 | 11957 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11958 | LIBS=$ac_check_lib_save_LIBS | 
 | 11959 | fi | 
 | 11960 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 11961 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 11962 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 11963 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 11964 | else | 
 | 11965 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 11966 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 11967 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 11968 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11969 | else | 
 | 11970 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11971 | /* confdefs.h.  */ | 
 | 11972 | _ACEOF | 
 | 11973 | cat confdefs.h >>conftest.$ac_ext | 
 | 11974 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11975 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11976 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 11977 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 11978 | #define dlopen innocuous_dlopen | 
 | 11979 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11980 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11981 |     which can conflict with char dlopen (); below. | 
 | 11982 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 11983 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11984 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11985 | #ifdef __STDC__ | 
 | 11986 | # include <limits.h> | 
 | 11987 | #else | 
 | 11988 | # include <assert.h> | 
 | 11989 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11990 |  | 
 | 11991 | #undef dlopen | 
 | 11992 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11993 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11994 | #ifdef __cplusplus | 
 | 11995 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11996 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11997 | #endif | 
 | 11998 | /* We use char because int might match the return type of a gcc2 | 
 | 11999 |    builtin and then its argument prototype would still apply.  */ | 
 | 12000 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12001 | /* The GNU C library defines this for functions which it implements | 
 | 12002 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 12003 |     something starting with __ and the normal name is an alias.  */ | 
 | 12004 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 12005 | choke me | 
 | 12006 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12007 | char (*f) () = dlopen; | 
 | 12008 | #endif | 
 | 12009 | #ifdef __cplusplus | 
 | 12010 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12011 | #endif | 
 | 12012 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12013 | int | 
 | 12014 | main () | 
 | 12015 | { | 
 | 12016 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12017 |   ; | 
 | 12018 |   return 0; | 
 | 12019 | } | 
 | 12020 | _ACEOF | 
 | 12021 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12023 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12024 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12025 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12026 |   rm -f conftest.er1 | 
 | 12027 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12028 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12029 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12030 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 12031 | 			 || test ! -s conftest.err' | 
 | 12032 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12033 |   (eval $ac_try) 2>&5 | 
 | 12034 |   ac_status=$? | 
 | 12035 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12036 |   (exit $ac_status); }; } && | 
 | 12037 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12038 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12039 |   (eval $ac_try) 2>&5 | 
 | 12040 |   ac_status=$? | 
 | 12041 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12042 |   (exit $ac_status); }; }; then | 
 | 12043 |   ac_cv_func_dlopen=yes | 
 | 12044 | else | 
 | 12045 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12046 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12047 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12048 | ac_cv_func_dlopen=no | 
 | 12049 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12050 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12051 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12052 | fi | 
 | 12053 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 12054 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 12055 | if test $ac_cv_func_dlopen = yes; then | 
 | 12056 |   lt_cv_dlopen="dlopen" | 
 | 12057 | else | 
 | 12058 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 12059 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 12060 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 12061 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12062 | else | 
 | 12063 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12064 | LIBS="-ldl  $LIBS" | 
 | 12065 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12066 | /* confdefs.h.  */ | 
 | 12067 | _ACEOF | 
 | 12068 | cat confdefs.h >>conftest.$ac_ext | 
 | 12069 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12070 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12071 |  | 
 | 12072 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 12073 | #ifdef __cplusplus | 
 | 12074 | extern "C" | 
 | 12075 | #endif | 
 | 12076 | /* We use char because int might match the return type of a gcc2 | 
 | 12077 |    builtin and then its argument prototype would still apply.  */ | 
 | 12078 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12079 | int | 
 | 12080 | main () | 
 | 12081 | { | 
 | 12082 | dlopen (); | 
 | 12083 |   ; | 
 | 12084 |   return 0; | 
 | 12085 | } | 
 | 12086 | _ACEOF | 
 | 12087 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12089 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12090 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12091 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12092 |   rm -f conftest.er1 | 
 | 12093 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12094 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12095 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12096 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 12097 | 			 || test ! -s conftest.err' | 
 | 12098 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12099 |   (eval $ac_try) 2>&5 | 
 | 12100 |   ac_status=$? | 
 | 12101 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12102 |   (exit $ac_status); }; } && | 
 | 12103 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12104 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12105 |   (eval $ac_try) 2>&5 | 
 | 12106 |   ac_status=$? | 
 | 12107 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12108 |   (exit $ac_status); }; }; then | 
 | 12109 |   ac_cv_lib_dl_dlopen=yes | 
 | 12110 | else | 
 | 12111 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12112 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12113 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12114 | ac_cv_lib_dl_dlopen=no | 
 | 12115 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12116 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12117 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12118 | LIBS=$ac_check_lib_save_LIBS | 
 | 12119 | fi | 
 | 12120 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 12121 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 12122 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 12123 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 12124 | else | 
 | 12125 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 12126 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 12127 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 12128 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12129 | else | 
 | 12130 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12131 | LIBS="-lsvld  $LIBS" | 
 | 12132 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12133 | /* confdefs.h.  */ | 
 | 12134 | _ACEOF | 
 | 12135 | cat confdefs.h >>conftest.$ac_ext | 
 | 12136 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12137 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12138 |  | 
 | 12139 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 12140 | #ifdef __cplusplus | 
 | 12141 | extern "C" | 
 | 12142 | #endif | 
 | 12143 | /* We use char because int might match the return type of a gcc2 | 
 | 12144 |    builtin and then its argument prototype would still apply.  */ | 
 | 12145 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12146 | int | 
 | 12147 | main () | 
 | 12148 | { | 
 | 12149 | dlopen (); | 
 | 12150 |   ; | 
 | 12151 |   return 0; | 
 | 12152 | } | 
 | 12153 | _ACEOF | 
 | 12154 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12156 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12157 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12158 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12159 |   rm -f conftest.er1 | 
 | 12160 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12161 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12162 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12163 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 12164 | 			 || test ! -s conftest.err' | 
 | 12165 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12166 |   (eval $ac_try) 2>&5 | 
 | 12167 |   ac_status=$? | 
 | 12168 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12169 |   (exit $ac_status); }; } && | 
 | 12170 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12171 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12172 |   (eval $ac_try) 2>&5 | 
 | 12173 |   ac_status=$? | 
 | 12174 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12175 |   (exit $ac_status); }; }; then | 
 | 12176 |   ac_cv_lib_svld_dlopen=yes | 
 | 12177 | else | 
 | 12178 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12179 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12180 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12181 | ac_cv_lib_svld_dlopen=no | 
 | 12182 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12183 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12184 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12185 | LIBS=$ac_check_lib_save_LIBS | 
 | 12186 | fi | 
 | 12187 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 12188 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 12189 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 12190 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 12191 | else | 
 | 12192 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 12193 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 12194 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 12195 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12196 | else | 
 | 12197 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12198 | LIBS="-ldld  $LIBS" | 
 | 12199 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12200 | /* confdefs.h.  */ | 
 | 12201 | _ACEOF | 
 | 12202 | cat confdefs.h >>conftest.$ac_ext | 
 | 12203 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12204 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12205 |  | 
 | 12206 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 12207 | #ifdef __cplusplus | 
 | 12208 | extern "C" | 
 | 12209 | #endif | 
 | 12210 | /* We use char because int might match the return type of a gcc2 | 
 | 12211 |    builtin and then its argument prototype would still apply.  */ | 
 | 12212 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12213 | int | 
 | 12214 | main () | 
 | 12215 | { | 
 | 12216 | dld_link (); | 
 | 12217 |   ; | 
 | 12218 |   return 0; | 
 | 12219 | } | 
 | 12220 | _ACEOF | 
 | 12221 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12223 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12224 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12225 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12226 |   rm -f conftest.er1 | 
 | 12227 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12228 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12229 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12230 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 12231 | 			 || test ! -s conftest.err' | 
 | 12232 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12233 |   (eval $ac_try) 2>&5 | 
 | 12234 |   ac_status=$? | 
 | 12235 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12236 |   (exit $ac_status); }; } && | 
 | 12237 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12238 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12239 |   (eval $ac_try) 2>&5 | 
 | 12240 |   ac_status=$? | 
 | 12241 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12242 |   (exit $ac_status); }; }; then | 
 | 12243 |   ac_cv_lib_dld_dld_link=yes | 
 | 12244 | else | 
 | 12245 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12246 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12247 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12248 | ac_cv_lib_dld_dld_link=no | 
 | 12249 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12250 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12251 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12252 | LIBS=$ac_check_lib_save_LIBS | 
 | 12253 | fi | 
 | 12254 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 12255 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 12256 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 12257 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 12258 | fi | 
 | 12259 |  | 
 | 12260 |  | 
 | 12261 | fi | 
 | 12262 |  | 
 | 12263 |  | 
 | 12264 | fi | 
 | 12265 |  | 
 | 12266 |  | 
 | 12267 | fi | 
 | 12268 |  | 
 | 12269 |  | 
 | 12270 | fi | 
 | 12271 |  | 
 | 12272 |  | 
 | 12273 | fi | 
 | 12274 |  | 
 | 12275 |     ;; | 
 | 12276 |   esac | 
 | 12277 |  | 
 | 12278 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 12279 |     enable_dlopen=yes | 
 | 12280 |   else | 
 | 12281 |     enable_dlopen=no | 
 | 12282 |   fi | 
 | 12283 |  | 
 | 12284 |   case $lt_cv_dlopen in | 
 | 12285 |   dlopen) | 
 | 12286 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 12287 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 12288 |  | 
 | 12289 |     save_LDFLAGS="$LDFLAGS" | 
 | 12290 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 12291 |  | 
 | 12292 |     save_LIBS="$LIBS" | 
 | 12293 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 12294 |  | 
 | 12295 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 12296 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 12297 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 12298 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12299 | else | 
 | 12300 |   	  if test "$cross_compiling" = yes; then : | 
 | 12301 |   lt_cv_dlopen_self=cross | 
 | 12302 | else | 
 | 12303 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 12304 |   lt_status=$lt_dlunknown | 
 | 12305 |   cat > conftest.$ac_ext <<EOF | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 12306 | #line 12306 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12307 | #include "confdefs.h" | 
 | 12308 |  | 
 | 12309 | #if HAVE_DLFCN_H | 
 | 12310 | #include <dlfcn.h> | 
 | 12311 | #endif | 
 | 12312 |  | 
 | 12313 | #include <stdio.h> | 
 | 12314 |  | 
 | 12315 | #ifdef RTLD_GLOBAL | 
 | 12316 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 12317 | #else | 
 | 12318 | #  ifdef DL_GLOBAL | 
 | 12319 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 12320 | #  else | 
 | 12321 | #    define LT_DLGLOBAL		0 | 
 | 12322 | #  endif | 
 | 12323 | #endif | 
 | 12324 |  | 
 | 12325 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 12326 |    find out it does not work in some platform. */ | 
 | 12327 | #ifndef LT_DLLAZY_OR_NOW | 
 | 12328 | #  ifdef RTLD_LAZY | 
 | 12329 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 12330 | #  else | 
 | 12331 | #    ifdef DL_LAZY | 
 | 12332 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 12333 | #    else | 
 | 12334 | #      ifdef RTLD_NOW | 
 | 12335 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 12336 | #      else | 
 | 12337 | #        ifdef DL_NOW | 
 | 12338 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 12339 | #        else | 
 | 12340 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 12341 | #        endif | 
 | 12342 | #      endif | 
 | 12343 | #    endif | 
 | 12344 | #  endif | 
 | 12345 | #endif | 
 | 12346 |  | 
 | 12347 | #ifdef __cplusplus | 
 | 12348 | extern "C" void exit (int); | 
 | 12349 | #endif | 
 | 12350 |  | 
 | 12351 | void fnord() { int i=42;} | 
 | 12352 | int main () | 
 | 12353 | { | 
 | 12354 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 12355 |   int status = $lt_dlunknown; | 
 | 12356 |  | 
 | 12357 |   if (self) | 
 | 12358 |     { | 
 | 12359 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 12360 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 12361 |       /* dlclose (self); */ | 
 | 12362 |     } | 
 | 12363 |  | 
 | 12364 |     exit (status); | 
 | 12365 | } | 
 | 12366 | EOF | 
 | 12367 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 12368 |   (eval $ac_link) 2>&5 | 
 | 12369 |   ac_status=$? | 
 | 12370 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12371 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 12372 |     (./conftest; exit; ) 2>/dev/null | 
 | 12373 |     lt_status=$? | 
 | 12374 |     case x$lt_status in | 
 | 12375 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 12376 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 12377 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 12378 |     esac | 
 | 12379 |   else : | 
 | 12380 |     # compilation failed | 
 | 12381 |     lt_cv_dlopen_self=no | 
 | 12382 |   fi | 
 | 12383 | fi | 
 | 12384 | rm -fr conftest* | 
 | 12385 |  | 
 | 12386 |  | 
 | 12387 | fi | 
 | 12388 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 12389 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 12390 |  | 
 | 12391 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 12392 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 12393 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 12394 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 12395 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 12396 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12397 | else | 
 | 12398 |   	  if test "$cross_compiling" = yes; then : | 
 | 12399 |   lt_cv_dlopen_self_static=cross | 
 | 12400 | else | 
 | 12401 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 12402 |   lt_status=$lt_dlunknown | 
 | 12403 |   cat > conftest.$ac_ext <<EOF | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 12404 | #line 12404 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12405 | #include "confdefs.h" | 
 | 12406 |  | 
 | 12407 | #if HAVE_DLFCN_H | 
 | 12408 | #include <dlfcn.h> | 
 | 12409 | #endif | 
 | 12410 |  | 
 | 12411 | #include <stdio.h> | 
 | 12412 |  | 
 | 12413 | #ifdef RTLD_GLOBAL | 
 | 12414 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 12415 | #else | 
 | 12416 | #  ifdef DL_GLOBAL | 
 | 12417 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 12418 | #  else | 
 | 12419 | #    define LT_DLGLOBAL		0 | 
 | 12420 | #  endif | 
 | 12421 | #endif | 
 | 12422 |  | 
 | 12423 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 12424 |    find out it does not work in some platform. */ | 
 | 12425 | #ifndef LT_DLLAZY_OR_NOW | 
 | 12426 | #  ifdef RTLD_LAZY | 
 | 12427 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 12428 | #  else | 
 | 12429 | #    ifdef DL_LAZY | 
 | 12430 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 12431 | #    else | 
 | 12432 | #      ifdef RTLD_NOW | 
 | 12433 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 12434 | #      else | 
 | 12435 | #        ifdef DL_NOW | 
 | 12436 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 12437 | #        else | 
 | 12438 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 12439 | #        endif | 
 | 12440 | #      endif | 
 | 12441 | #    endif | 
 | 12442 | #  endif | 
 | 12443 | #endif | 
 | 12444 |  | 
 | 12445 | #ifdef __cplusplus | 
 | 12446 | extern "C" void exit (int); | 
 | 12447 | #endif | 
 | 12448 |  | 
 | 12449 | void fnord() { int i=42;} | 
 | 12450 | int main () | 
 | 12451 | { | 
 | 12452 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 12453 |   int status = $lt_dlunknown; | 
 | 12454 |  | 
 | 12455 |   if (self) | 
 | 12456 |     { | 
 | 12457 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 12458 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 12459 |       /* dlclose (self); */ | 
 | 12460 |     } | 
 | 12461 |  | 
 | 12462 |     exit (status); | 
 | 12463 | } | 
 | 12464 | EOF | 
 | 12465 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 12466 |   (eval $ac_link) 2>&5 | 
 | 12467 |   ac_status=$? | 
 | 12468 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12469 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 12470 |     (./conftest; exit; ) 2>/dev/null | 
 | 12471 |     lt_status=$? | 
 | 12472 |     case x$lt_status in | 
 | 12473 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 12474 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 12475 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 12476 |     esac | 
 | 12477 |   else : | 
 | 12478 |     # compilation failed | 
 | 12479 |     lt_cv_dlopen_self_static=no | 
 | 12480 |   fi | 
 | 12481 | fi | 
 | 12482 | rm -fr conftest* | 
 | 12483 |  | 
 | 12484 |  | 
 | 12485 | fi | 
 | 12486 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 12487 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 12488 |     fi | 
 | 12489 |  | 
 | 12490 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 12491 |     LDFLAGS="$save_LDFLAGS" | 
 | 12492 |     LIBS="$save_LIBS" | 
 | 12493 |     ;; | 
 | 12494 |   esac | 
 | 12495 |  | 
 | 12496 |   case $lt_cv_dlopen_self in | 
 | 12497 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 12498 |   *) enable_dlopen_self=unknown ;; | 
 | 12499 |   esac | 
 | 12500 |  | 
 | 12501 |   case $lt_cv_dlopen_self_static in | 
 | 12502 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 12503 |   *) enable_dlopen_self_static=unknown ;; | 
 | 12504 |   esac | 
 | 12505 | fi | 
 | 12506 |  | 
 | 12507 |  | 
 | 12508 | # The else clause should only fire when bootstrapping the | 
 | 12509 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 12510 | # with your package, and you will get complaints that there are | 
 | 12511 | # no rules to generate ltmain.sh. | 
 | 12512 | if test -f "$ltmain"; then | 
 | 12513 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 12514 |   # without removal of \ escapes. | 
 | 12515 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 12516 |     setopt NO_GLOB_SUBST | 
 | 12517 |   fi | 
 | 12518 |   # Now quote all the things that may contain metacharacters while being | 
 | 12519 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 12520 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12521 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 12522 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12523 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 12524 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 12525 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 12526 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 12527 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 12528 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 12529 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 12530 |     compiler_CXX \ | 
 | 12531 |     CC_CXX \ | 
 | 12532 |     LD_CXX \ | 
 | 12533 |     lt_prog_compiler_wl_CXX \ | 
 | 12534 |     lt_prog_compiler_pic_CXX \ | 
 | 12535 |     lt_prog_compiler_static_CXX \ | 
 | 12536 |     lt_prog_compiler_no_builtin_flag_CXX \ | 
 | 12537 |     export_dynamic_flag_spec_CXX \ | 
 | 12538 |     thread_safe_flag_spec_CXX \ | 
 | 12539 |     whole_archive_flag_spec_CXX \ | 
 | 12540 |     enable_shared_with_static_runtimes_CXX \ | 
 | 12541 |     old_archive_cmds_CXX \ | 
 | 12542 |     old_archive_from_new_cmds_CXX \ | 
 | 12543 |     predep_objects_CXX \ | 
 | 12544 |     postdep_objects_CXX \ | 
 | 12545 |     predeps_CXX \ | 
 | 12546 |     postdeps_CXX \ | 
 | 12547 |     compiler_lib_search_path_CXX \ | 
 | 12548 |     archive_cmds_CXX \ | 
 | 12549 |     archive_expsym_cmds_CXX \ | 
 | 12550 |     postinstall_cmds_CXX \ | 
 | 12551 |     postuninstall_cmds_CXX \ | 
 | 12552 |     old_archive_from_expsyms_cmds_CXX \ | 
 | 12553 |     allow_undefined_flag_CXX \ | 
 | 12554 |     no_undefined_flag_CXX \ | 
 | 12555 |     export_symbols_cmds_CXX \ | 
 | 12556 |     hardcode_libdir_flag_spec_CXX \ | 
 | 12557 |     hardcode_libdir_flag_spec_ld_CXX \ | 
 | 12558 |     hardcode_libdir_separator_CXX \ | 
 | 12559 |     hardcode_automatic_CXX \ | 
 | 12560 |     module_cmds_CXX \ | 
 | 12561 |     module_expsym_cmds_CXX \ | 
 | 12562 |     lt_cv_prog_compiler_c_o_CXX \ | 
 | 12563 |     exclude_expsyms_CXX \ | 
 | 12564 |     include_expsyms_CXX; do | 
 | 12565 |  | 
 | 12566 |     case $var in | 
 | 12567 |     old_archive_cmds_CXX | \ | 
 | 12568 |     old_archive_from_new_cmds_CXX | \ | 
 | 12569 |     archive_cmds_CXX | \ | 
 | 12570 |     archive_expsym_cmds_CXX | \ | 
 | 12571 |     module_cmds_CXX | \ | 
 | 12572 |     module_expsym_cmds_CXX | \ | 
 | 12573 |     old_archive_from_expsyms_cmds_CXX | \ | 
 | 12574 |     export_symbols_cmds_CXX | \ | 
 | 12575 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 12576 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 12577 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 12578 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 12579 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12580 |       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] | 12581 |       ;; | 
 | 12582 |     *) | 
 | 12583 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 12584 |       ;; | 
 | 12585 |     esac | 
 | 12586 |   done | 
 | 12587 |  | 
 | 12588 |   case $lt_echo in | 
 | 12589 |   *'\$0 --fallback-echo"') | 
 | 12590 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 12591 |     ;; | 
 | 12592 |   esac | 
 | 12593 |  | 
 | 12594 | cfgfile="$ofile" | 
 | 12595 |  | 
 | 12596 |   cat <<__EOF__ >> "$cfgfile" | 
 | 12597 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 12598 |  | 
 | 12599 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 12600 |  | 
 | 12601 | # Shell to use when invoking shell scripts. | 
 | 12602 | SHELL=$lt_SHELL | 
 | 12603 |  | 
 | 12604 | # Whether or not to build shared libraries. | 
 | 12605 | build_libtool_libs=$enable_shared | 
 | 12606 |  | 
 | 12607 | # Whether or not to build static libraries. | 
 | 12608 | build_old_libs=$enable_static | 
 | 12609 |  | 
 | 12610 | # Whether or not to add -lc for building shared libraries. | 
 | 12611 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
 | 12612 |  | 
 | 12613 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 12614 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
 | 12615 |  | 
 | 12616 | # Whether or not to optimize for fast installation. | 
 | 12617 | fast_install=$enable_fast_install | 
 | 12618 |  | 
 | 12619 | # The host system. | 
 | 12620 | host_alias=$host_alias | 
 | 12621 | host=$host | 
 | 12622 |  | 
 | 12623 | # An echo program that does not interpret backslashes. | 
 | 12624 | echo=$lt_echo | 
 | 12625 |  | 
 | 12626 | # The archiver. | 
 | 12627 | AR=$lt_AR | 
 | 12628 | AR_FLAGS=$lt_AR_FLAGS | 
 | 12629 |  | 
 | 12630 | # A C compiler. | 
 | 12631 | LTCC=$lt_LTCC | 
 | 12632 |  | 
 | 12633 | # A language-specific compiler. | 
 | 12634 | CC=$lt_compiler_CXX | 
 | 12635 |  | 
 | 12636 | # Is the compiler the GNU C compiler? | 
 | 12637 | with_gcc=$GCC_CXX | 
 | 12638 |  | 
 | 12639 | # An ERE matcher. | 
 | 12640 | EGREP=$lt_EGREP | 
 | 12641 |  | 
 | 12642 | # The linker used to build libraries. | 
 | 12643 | LD=$lt_LD_CXX | 
 | 12644 |  | 
 | 12645 | # Whether we need hard or soft links. | 
 | 12646 | LN_S=$lt_LN_S | 
 | 12647 |  | 
 | 12648 | # A BSD-compatible nm program. | 
 | 12649 | NM=$lt_NM | 
 | 12650 |  | 
 | 12651 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12652 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12653 |  | 
 | 12654 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 12655 | MAGIC_CMD=$MAGIC_CMD | 
 | 12656 |  | 
 | 12657 | # Used on cygwin: DLL creation program. | 
 | 12658 | DLLTOOL="$DLLTOOL" | 
 | 12659 |  | 
 | 12660 | # Used on cygwin: object dumper. | 
 | 12661 | OBJDUMP="$OBJDUMP" | 
 | 12662 |  | 
 | 12663 | # Used on cygwin: assembler. | 
 | 12664 | AS="$AS" | 
 | 12665 |  | 
 | 12666 | # The name of the directory that contains temporary libtool files. | 
 | 12667 | objdir=$objdir | 
 | 12668 |  | 
 | 12669 | # How to create reloadable object files. | 
 | 12670 | reload_flag=$lt_reload_flag | 
 | 12671 | reload_cmds=$lt_reload_cmds | 
 | 12672 |  | 
 | 12673 | # How to pass a linker flag through the compiler. | 
 | 12674 | wl=$lt_lt_prog_compiler_wl_CXX | 
 | 12675 |  | 
 | 12676 | # Object file suffix (normally "o"). | 
 | 12677 | objext="$ac_objext" | 
 | 12678 |  | 
 | 12679 | # Old archive suffix (normally "a"). | 
 | 12680 | libext="$libext" | 
 | 12681 |  | 
 | 12682 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12683 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12684 |  | 
 | 12685 | # Executable file suffix (normally ""). | 
 | 12686 | exeext="$exeext" | 
 | 12687 |  | 
 | 12688 | # Additional compiler flags for building library objects. | 
 | 12689 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
 | 12690 | pic_mode=$pic_mode | 
 | 12691 |  | 
 | 12692 | # What is the maximum length of a command? | 
 | 12693 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 12694 |  | 
 | 12695 | # Does compiler simultaneously support -c and -o options? | 
 | 12696 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
 | 12697 |  | 
 | 12698 | # Must we lock files when doing compilation ? | 
 | 12699 | need_locks=$lt_need_locks | 
 | 12700 |  | 
 | 12701 | # Do we need the lib prefix for modules? | 
 | 12702 | need_lib_prefix=$need_lib_prefix | 
 | 12703 |  | 
 | 12704 | # Do we need a version for libraries? | 
 | 12705 | need_version=$need_version | 
 | 12706 |  | 
 | 12707 | # Whether dlopen is supported. | 
 | 12708 | dlopen_support=$enable_dlopen | 
 | 12709 |  | 
 | 12710 | # Whether dlopen of programs is supported. | 
 | 12711 | dlopen_self=$enable_dlopen_self | 
 | 12712 |  | 
 | 12713 | # Whether dlopen of statically linked programs is supported. | 
 | 12714 | dlopen_self_static=$enable_dlopen_self_static | 
 | 12715 |  | 
 | 12716 | # Compiler flag to prevent dynamic linking. | 
 | 12717 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
 | 12718 |  | 
 | 12719 | # Compiler flag to turn off builtin functions. | 
 | 12720 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
 | 12721 |  | 
 | 12722 | # Compiler flag to allow reflexive dlopens. | 
 | 12723 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
 | 12724 |  | 
 | 12725 | # Compiler flag to generate shared objects directly from archives. | 
 | 12726 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
 | 12727 |  | 
 | 12728 | # Compiler flag to generate thread-safe objects. | 
 | 12729 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
 | 12730 |  | 
 | 12731 | # Library versioning type. | 
 | 12732 | version_type=$version_type | 
 | 12733 |  | 
 | 12734 | # Format of library name prefix. | 
 | 12735 | libname_spec=$lt_libname_spec | 
 | 12736 |  | 
 | 12737 | # List of archive names.  First name is the real one, the rest are links. | 
 | 12738 | # The last name is the one that the linker finds with -lNAME. | 
 | 12739 | library_names_spec=$lt_library_names_spec | 
 | 12740 |  | 
 | 12741 | # The coded name of the library, if different from the real name. | 
 | 12742 | soname_spec=$lt_soname_spec | 
 | 12743 |  | 
 | 12744 | # Commands used to build and install an old-style archive. | 
 | 12745 | RANLIB=$lt_RANLIB | 
 | 12746 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
 | 12747 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 12748 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 12749 |  | 
 | 12750 | # Create an old-style archive from a shared archive. | 
 | 12751 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
 | 12752 |  | 
 | 12753 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 12754 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
 | 12755 |  | 
 | 12756 | # Commands used to build and install a shared archive. | 
 | 12757 | archive_cmds=$lt_archive_cmds_CXX | 
 | 12758 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
 | 12759 | postinstall_cmds=$lt_postinstall_cmds | 
 | 12760 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 12761 |  | 
 | 12762 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 12763 | module_cmds=$lt_module_cmds_CXX | 
 | 12764 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
 | 12765 |  | 
 | 12766 | # Commands to strip libraries. | 
 | 12767 | old_striplib=$lt_old_striplib | 
 | 12768 | striplib=$lt_striplib | 
 | 12769 |  | 
 | 12770 | # Dependencies to place before the objects being linked to create a | 
 | 12771 | # shared library. | 
 | 12772 | predep_objects=$lt_predep_objects_CXX | 
 | 12773 |  | 
 | 12774 | # Dependencies to place after the objects being linked to create a | 
 | 12775 | # shared library. | 
 | 12776 | postdep_objects=$lt_postdep_objects_CXX | 
 | 12777 |  | 
 | 12778 | # Dependencies to place before the objects being linked to create a | 
 | 12779 | # shared library. | 
 | 12780 | predeps=$lt_predeps_CXX | 
 | 12781 |  | 
 | 12782 | # Dependencies to place after the objects being linked to create a | 
 | 12783 | # shared library. | 
 | 12784 | postdeps=$lt_postdeps_CXX | 
 | 12785 |  | 
 | 12786 | # The library search path used internally by the compiler when linking | 
 | 12787 | # a shared library. | 
 | 12788 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
 | 12789 |  | 
 | 12790 | # Method to check whether dependent libraries are shared objects. | 
 | 12791 | deplibs_check_method=$lt_deplibs_check_method | 
 | 12792 |  | 
 | 12793 | # Command to use when deplibs_check_method == file_magic. | 
 | 12794 | file_magic_cmd=$lt_file_magic_cmd | 
 | 12795 |  | 
 | 12796 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 12797 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
 | 12798 |  | 
 | 12799 | # Flag that forces no undefined symbols. | 
 | 12800 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
 | 12801 |  | 
 | 12802 | # Commands used to finish a libtool library installation in a directory. | 
 | 12803 | finish_cmds=$lt_finish_cmds | 
 | 12804 |  | 
 | 12805 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 12806 | finish_eval=$lt_finish_eval | 
 | 12807 |  | 
 | 12808 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 12809 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 12810 |  | 
 | 12811 | # Transform the output of nm in a proper C declaration | 
 | 12812 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 12813 |  | 
 | 12814 | # Transform the output of nm in a C name address pair | 
 | 12815 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 12816 |  | 
 | 12817 | # This is the shared library runtime path variable. | 
 | 12818 | runpath_var=$runpath_var | 
 | 12819 |  | 
 | 12820 | # This is the shared library path variable. | 
 | 12821 | shlibpath_var=$shlibpath_var | 
 | 12822 |  | 
 | 12823 | # Is shlibpath searched before the hard-coded library search path? | 
 | 12824 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 12825 |  | 
 | 12826 | # How to hardcode a shared library path into an executable. | 
 | 12827 | hardcode_action=$hardcode_action_CXX | 
 | 12828 |  | 
 | 12829 | # Whether we should hardcode library paths into libraries. | 
 | 12830 | hardcode_into_libs=$hardcode_into_libs | 
 | 12831 |  | 
 | 12832 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 12833 | # This must work even if \$libdir does not exist. | 
 | 12834 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
 | 12835 |  | 
 | 12836 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 12837 | # a binary during linking. This must work even if \$libdir does | 
 | 12838 | # not exist. | 
 | 12839 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
 | 12840 |  | 
 | 12841 | # Whether we need a single -rpath flag with a separated argument. | 
 | 12842 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
 | 12843 |  | 
 | 12844 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 12845 | # resulting binary. | 
 | 12846 | hardcode_direct=$hardcode_direct_CXX | 
 | 12847 |  | 
 | 12848 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 12849 | # resulting binary. | 
 | 12850 | hardcode_minus_L=$hardcode_minus_L_CXX | 
 | 12851 |  | 
 | 12852 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 12853 | # the resulting binary. | 
 | 12854 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
 | 12855 |  | 
 | 12856 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 12857 | # and all subsequent libraries and executables linked against it. | 
 | 12858 | hardcode_automatic=$hardcode_automatic_CXX | 
 | 12859 |  | 
 | 12860 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 12861 | # restored at relink time. | 
 | 12862 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 12863 |  | 
 | 12864 | # Whether libtool must link a program against all its dependency libraries. | 
 | 12865 | link_all_deplibs=$link_all_deplibs_CXX | 
 | 12866 |  | 
 | 12867 | # Compile-time system search path for libraries | 
 | 12868 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 12869 |  | 
 | 12870 | # Run-time system search path for libraries | 
 | 12871 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 12872 |  | 
 | 12873 | # Fix the shell variable \$srcfile for the compiler. | 
 | 12874 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
 | 12875 |  | 
 | 12876 | # Set to yes if exported symbols are required. | 
 | 12877 | always_export_symbols=$always_export_symbols_CXX | 
 | 12878 |  | 
 | 12879 | # The commands to list exported symbols. | 
 | 12880 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
 | 12881 |  | 
 | 12882 | # The commands to extract the exported symbol list from a shared archive. | 
 | 12883 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 12884 |  | 
 | 12885 | # Symbols that should not be listed in the preloaded symbols. | 
 | 12886 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
 | 12887 |  | 
 | 12888 | # Symbols that must always be exported. | 
 | 12889 | include_expsyms=$lt_include_expsyms_CXX | 
 | 12890 |  | 
 | 12891 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 12892 |  | 
 | 12893 | __EOF__ | 
 | 12894 |  | 
 | 12895 |  | 
 | 12896 | else | 
 | 12897 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 12898 |   # `config.status --recheck' to rerun these tests and create the | 
 | 12899 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12900 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 12901 |   if test -f "$ltmain_in"; then | 
 | 12902 |     test -f Makefile && make "$ltmain" | 
 | 12903 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12904 | fi | 
 | 12905 |  | 
 | 12906 |  | 
 | 12907 | ac_ext=c | 
 | 12908 | ac_cpp='$CPP $CPPFLAGS' | 
 | 12909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 12910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 12911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 12912 |  | 
 | 12913 | CC=$lt_save_CC | 
 | 12914 | LDCXX=$LD | 
 | 12915 | LD=$lt_save_LD | 
 | 12916 | GCC=$lt_save_GCC | 
 | 12917 | with_gnu_ldcxx=$with_gnu_ld | 
 | 12918 | with_gnu_ld=$lt_save_with_gnu_ld | 
 | 12919 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
 | 12920 | lt_cv_path_LD=$lt_save_path_LD | 
 | 12921 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
 | 12922 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
 | 12923 |  | 
 | 12924 | 	else | 
 | 12925 | 	  tagname="" | 
 | 12926 | 	fi | 
 | 12927 | 	;; | 
 | 12928 |  | 
 | 12929 |       F77) | 
 | 12930 | 	if test -n "$F77" && test "X$F77" != "Xno"; then | 
 | 12931 |  | 
 | 12932 | ac_ext=f | 
 | 12933 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 12934 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 12935 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 12936 |  | 
 | 12937 |  | 
 | 12938 | archive_cmds_need_lc_F77=no | 
 | 12939 | allow_undefined_flag_F77= | 
 | 12940 | always_export_symbols_F77=no | 
 | 12941 | archive_expsym_cmds_F77= | 
 | 12942 | export_dynamic_flag_spec_F77= | 
 | 12943 | hardcode_direct_F77=no | 
 | 12944 | hardcode_libdir_flag_spec_F77= | 
 | 12945 | hardcode_libdir_flag_spec_ld_F77= | 
 | 12946 | hardcode_libdir_separator_F77= | 
 | 12947 | hardcode_minus_L_F77=no | 
 | 12948 | hardcode_automatic_F77=no | 
 | 12949 | module_cmds_F77= | 
 | 12950 | module_expsym_cmds_F77= | 
 | 12951 | link_all_deplibs_F77=unknown | 
 | 12952 | old_archive_cmds_F77=$old_archive_cmds | 
 | 12953 | no_undefined_flag_F77= | 
 | 12954 | whole_archive_flag_spec_F77= | 
 | 12955 | enable_shared_with_static_runtimes_F77=no | 
 | 12956 |  | 
 | 12957 | # Source file extension for f77 test sources. | 
 | 12958 | ac_ext=f | 
 | 12959 |  | 
 | 12960 | # Object file extension for compiled f77 test sources. | 
 | 12961 | objext=o | 
 | 12962 | objext_F77=$objext | 
 | 12963 |  | 
 | 12964 | # Code to be used in simple compile tests | 
 | 12965 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
 | 12966 |  | 
 | 12967 | # Code to be used in simple link tests | 
 | 12968 | lt_simple_link_test_code="      program t\n      end\n" | 
 | 12969 |  | 
 | 12970 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 12971 |  | 
 | 12972 | # If no C compiler was specified, use CC. | 
 | 12973 | LTCC=${LTCC-"$CC"} | 
 | 12974 |  | 
 | 12975 | # Allow CC to be a program name with arguments. | 
 | 12976 | compiler=$CC | 
 | 12977 |  | 
 | 12978 |  | 
 | 12979 | # Allow CC to be a program name with arguments. | 
 | 12980 | lt_save_CC="$CC" | 
 | 12981 | CC=${F77-"f77"} | 
 | 12982 | compiler=$CC | 
 | 12983 | compiler_F77=$CC | 
 | 12984 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 12985 |  | 
 | 12986 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 12987 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 12988 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 12989 | echo "${ECHO_T}$can_build_shared" >&6 | 
 | 12990 |  | 
 | 12991 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 12992 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 12993 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 12994 |  | 
 | 12995 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 12996 | # are all built from PIC. | 
 | 12997 | case "$host_os" in | 
 | 12998 | aix3*) | 
 | 12999 |   test "$enable_shared" = yes && enable_static=no | 
 | 13000 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13001 |     archive_cmds="$archive_cmds;\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13002 |     postinstall_cmds='$RANLIB $lib' | 
 | 13003 |   fi | 
 | 13004 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13005 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13006 |   test "$enable_shared" = yes && enable_static=no | 
 | 13007 |   ;; | 
 | 13008 | esac | 
 | 13009 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 13010 | echo "${ECHO_T}$enable_shared" >&6 | 
 | 13011 |  | 
 | 13012 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 13013 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 13014 | # Make sure either enable_shared or enable_static is yes. | 
 | 13015 | test "$enable_shared" = yes || enable_static=yes | 
 | 13016 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 13017 | echo "${ECHO_T}$enable_static" >&6 | 
 | 13018 |  | 
 | 13019 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 13020 |  | 
 | 13021 | GCC_F77="$G77" | 
 | 13022 | LD_F77="$LD" | 
 | 13023 |  | 
 | 13024 | lt_prog_compiler_wl_F77= | 
 | 13025 | lt_prog_compiler_pic_F77= | 
 | 13026 | lt_prog_compiler_static_F77= | 
 | 13027 |  | 
 | 13028 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 13029 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 13030 |  | 
 | 13031 |   if test "$GCC" = yes; then | 
 | 13032 |     lt_prog_compiler_wl_F77='-Wl,' | 
 | 13033 |     lt_prog_compiler_static_F77='-static' | 
 | 13034 |  | 
 | 13035 |     case $host_os in | 
 | 13036 |       aix*) | 
 | 13037 |       # All AIX code is PIC. | 
 | 13038 |       if test "$host_cpu" = ia64; then | 
 | 13039 | 	# AIX 5 now supports IA64 processor | 
 | 13040 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 13041 |       fi | 
 | 13042 |       ;; | 
 | 13043 |  | 
 | 13044 |     amigaos*) | 
 | 13045 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 13046 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 13047 |       # like `-m68040'. | 
 | 13048 |       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
 | 13049 |       ;; | 
 | 13050 |  | 
 | 13051 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 13052 |       # PIC is the default for these OSes. | 
 | 13053 |       ;; | 
 | 13054 |  | 
 | 13055 |     mingw* | pw32* | os2*) | 
 | 13056 |       # This hack is so that the source file can tell whether it is being | 
 | 13057 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 13058 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 13059 |       ;; | 
 | 13060 |  | 
 | 13061 |     darwin* | rhapsody*) | 
 | 13062 |       # PIC is the default on this platform | 
 | 13063 |       # Common symbols not allowed in MH_DYLIB files | 
 | 13064 |       lt_prog_compiler_pic_F77='-fno-common' | 
 | 13065 |       ;; | 
 | 13066 |  | 
 | 13067 |     msdosdjgpp*) | 
 | 13068 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 13069 |       # on systems that don't support them. | 
 | 13070 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 13071 |       enable_shared=no | 
 | 13072 |       ;; | 
 | 13073 |  | 
 | 13074 |     sysv4*MP*) | 
 | 13075 |       if test -d /usr/nec; then | 
 | 13076 | 	lt_prog_compiler_pic_F77=-Kconform_pic | 
 | 13077 |       fi | 
 | 13078 |       ;; | 
 | 13079 |  | 
 | 13080 |     hpux*) | 
 | 13081 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 13082 |       # not for PA HP-UX. | 
 | 13083 |       case "$host_cpu" in | 
 | 13084 |       hppa*64*|ia64*) | 
 | 13085 | 	# +Z the default | 
 | 13086 | 	;; | 
 | 13087 |       *) | 
 | 13088 | 	lt_prog_compiler_pic_F77='-fPIC' | 
 | 13089 | 	;; | 
 | 13090 |       esac | 
 | 13091 |       ;; | 
 | 13092 |  | 
 | 13093 |     *) | 
 | 13094 |       lt_prog_compiler_pic_F77='-fPIC' | 
 | 13095 |       ;; | 
 | 13096 |     esac | 
 | 13097 |   else | 
 | 13098 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 13099 |     case $host_os in | 
 | 13100 |     aix*) | 
 | 13101 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13102 |       if test "$host_cpu" = ia64; then | 
 | 13103 | 	# AIX 5 now supports IA64 processor | 
 | 13104 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 13105 |       else | 
 | 13106 | 	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
 | 13107 |       fi | 
 | 13108 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13109 |       darwin*) | 
 | 13110 |         # PIC is the default on this platform | 
 | 13111 |         # Common symbols not allowed in MH_DYLIB files | 
 | 13112 |        case "$cc_basename" in | 
 | 13113 |          xlc*) | 
 | 13114 |          lt_prog_compiler_pic_F77='-qnocommon' | 
 | 13115 |          lt_prog_compiler_wl_F77='-Wl,' | 
 | 13116 |          ;; | 
 | 13117 |        esac | 
 | 13118 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13119 |  | 
 | 13120 |     mingw* | pw32* | os2*) | 
 | 13121 |       # This hack is so that the source file can tell whether it is being | 
 | 13122 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 13123 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 13124 |       ;; | 
 | 13125 |  | 
 | 13126 |     hpux9* | hpux10* | hpux11*) | 
 | 13127 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13128 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 13129 |       # not for PA HP-UX. | 
 | 13130 |       case "$host_cpu" in | 
 | 13131 |       hppa*64*|ia64*) | 
 | 13132 | 	# +Z the default | 
 | 13133 | 	;; | 
 | 13134 |       *) | 
 | 13135 | 	lt_prog_compiler_pic_F77='+Z' | 
 | 13136 | 	;; | 
 | 13137 |       esac | 
 | 13138 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 13139 |       lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
 | 13140 |       ;; | 
 | 13141 |  | 
 | 13142 |     irix5* | irix6* | nonstopux*) | 
 | 13143 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13144 |       # PIC (with -KPIC) is the default. | 
 | 13145 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 13146 |       ;; | 
 | 13147 |  | 
 | 13148 |     newsos6) | 
 | 13149 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 13150 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13151 |       ;; | 
 | 13152 |  | 
 | 13153 |     linux*) | 
 | 13154 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13155 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13156 | 	lt_prog_compiler_wl_F77='-Wl,' | 
 | 13157 | 	lt_prog_compiler_pic_F77='-KPIC' | 
 | 13158 | 	lt_prog_compiler_static_F77='-static' | 
 | 13159 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13160 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13161 |         lt_prog_compiler_wl_F77='-Wl,' | 
 | 13162 |         # All Alpha code is PIC. | 
 | 13163 |         lt_prog_compiler_static_F77='-non_shared' | 
 | 13164 |         ;; | 
 | 13165 |       esac | 
 | 13166 |       ;; | 
 | 13167 |  | 
 | 13168 |     osf3* | osf4* | osf5*) | 
 | 13169 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13170 |       # All OSF/1 code is PIC. | 
 | 13171 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 13172 |       ;; | 
 | 13173 |  | 
 | 13174 |     sco3.2v5*) | 
 | 13175 |       lt_prog_compiler_pic_F77='-Kpic' | 
 | 13176 |       lt_prog_compiler_static_F77='-dn' | 
 | 13177 |       ;; | 
 | 13178 |  | 
 | 13179 |     solaris*) | 
 | 13180 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13181 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 13182 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13183 |       ;; | 
 | 13184 |  | 
 | 13185 |     sunos4*) | 
 | 13186 |       lt_prog_compiler_wl_F77='-Qoption ld ' | 
 | 13187 |       lt_prog_compiler_pic_F77='-PIC' | 
 | 13188 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13189 |       ;; | 
 | 13190 |  | 
 | 13191 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 13192 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13193 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 13194 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13195 |       ;; | 
 | 13196 |  | 
 | 13197 |     sysv4*MP*) | 
 | 13198 |       if test -d /usr/nec ;then | 
 | 13199 | 	lt_prog_compiler_pic_F77='-Kconform_pic' | 
 | 13200 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 13201 |       fi | 
 | 13202 |       ;; | 
 | 13203 |  | 
 | 13204 |     uts4*) | 
 | 13205 |       lt_prog_compiler_pic_F77='-pic' | 
 | 13206 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13207 |       ;; | 
 | 13208 |  | 
 | 13209 |     *) | 
 | 13210 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 13211 |       ;; | 
 | 13212 |     esac | 
 | 13213 |   fi | 
 | 13214 |  | 
 | 13215 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
 | 13216 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 
 | 13217 |  | 
 | 13218 | # | 
 | 13219 | # Check to make sure the PIC flag actually works. | 
 | 13220 | # | 
 | 13221 | if test -n "$lt_prog_compiler_pic_F77"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13222 |  | 
 | 13223 | 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] | 13224 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 
 | 13225 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
 | 13226 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13227 | else | 
 | 13228 |   lt_prog_compiler_pic_works_F77=no | 
 | 13229 |   ac_outfile=conftest.$ac_objext | 
 | 13230 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13231 |    lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
 | 13232 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 13233 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 13234 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 13235 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 13236 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 13237 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 13238 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 13239 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 13240 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13241 |    (eval echo "\"\$as_me:13241: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13242 |    (eval "$lt_compile" 2>conftest.err) | 
 | 13243 |    ac_status=$? | 
 | 13244 |    cat conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13245 |    echo "$as_me:13245: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13246 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 13247 |      # The compiler can only warn and ignore the option if not recognized | 
 | 13248 |      # So say no if there are warnings | 
 | 13249 |      if test ! -s conftest.err; then | 
 | 13250 |        lt_prog_compiler_pic_works_F77=yes | 
 | 13251 |      fi | 
 | 13252 |    fi | 
 | 13253 |    $rm conftest* | 
 | 13254 |  | 
 | 13255 | fi | 
 | 13256 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
 | 13257 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 
 | 13258 |  | 
 | 13259 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
 | 13260 |     case $lt_prog_compiler_pic_F77 in | 
 | 13261 |      "" | " "*) ;; | 
 | 13262 |      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
 | 13263 |      esac | 
 | 13264 | else | 
 | 13265 |     lt_prog_compiler_pic_F77= | 
 | 13266 |      lt_prog_compiler_can_build_shared_F77=no | 
 | 13267 | fi | 
 | 13268 |  | 
 | 13269 | fi | 
 | 13270 | case "$host_os" in | 
 | 13271 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 13272 |   *djgpp*) | 
 | 13273 |     lt_prog_compiler_pic_F77= | 
 | 13274 |     ;; | 
 | 13275 |   *) | 
 | 13276 |     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
 | 13277 |     ;; | 
 | 13278 | esac | 
 | 13279 |  | 
 | 13280 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 13281 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 13282 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
 | 13283 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13284 | else | 
 | 13285 |   lt_cv_prog_compiler_c_o_F77=no | 
 | 13286 |    $rm -r conftest 2>/dev/null | 
 | 13287 |    mkdir conftest | 
 | 13288 |    cd conftest | 
 | 13289 |    mkdir out | 
 | 13290 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13291 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13292 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 13293 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 13294 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 13295 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 13296 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 13297 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 13298 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 13299 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 13300 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13301 |    (eval echo "\"\$as_me:13301: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13302 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 13303 |    ac_status=$? | 
 | 13304 |    cat out/conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13305 |    echo "$as_me:13305: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13306 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 13307 |    then | 
 | 13308 |      # The compiler can only warn and ignore the option if not recognized | 
 | 13309 |      # So say no if there are warnings | 
 | 13310 |      if test ! -s out/conftest.err; then | 
 | 13311 |        lt_cv_prog_compiler_c_o_F77=yes | 
 | 13312 |      fi | 
 | 13313 |    fi | 
 | 13314 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13315 |    $rm conftest* | 
 | 13316 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 13317 |    # template instantiation | 
 | 13318 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 13319 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13320 |    cd .. | 
 | 13321 |    rmdir conftest | 
 | 13322 |    $rm conftest* | 
 | 13323 |  | 
 | 13324 | fi | 
 | 13325 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
 | 13326 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 
 | 13327 |  | 
 | 13328 |  | 
 | 13329 | hard_links="nottested" | 
 | 13330 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
 | 13331 |   # do not overwrite the value of need_locks provided by the user | 
 | 13332 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 13333 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 13334 |   hard_links=yes | 
 | 13335 |   $rm conftest* | 
 | 13336 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 13337 |   touch conftest.a | 
 | 13338 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 13339 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 13340 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 13341 | echo "${ECHO_T}$hard_links" >&6 | 
 | 13342 |   if test "$hard_links" = no; then | 
 | 13343 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 13344 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 13345 |     need_locks=warn | 
 | 13346 |   fi | 
 | 13347 | else | 
 | 13348 |   need_locks=no | 
 | 13349 | fi | 
 | 13350 |  | 
 | 13351 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 13352 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 13353 |  | 
 | 13354 |   runpath_var= | 
 | 13355 |   allow_undefined_flag_F77= | 
 | 13356 |   enable_shared_with_static_runtimes_F77=no | 
 | 13357 |   archive_cmds_F77= | 
 | 13358 |   archive_expsym_cmds_F77= | 
 | 13359 |   old_archive_From_new_cmds_F77= | 
 | 13360 |   old_archive_from_expsyms_cmds_F77= | 
 | 13361 |   export_dynamic_flag_spec_F77= | 
 | 13362 |   whole_archive_flag_spec_F77= | 
 | 13363 |   thread_safe_flag_spec_F77= | 
 | 13364 |   hardcode_libdir_flag_spec_F77= | 
 | 13365 |   hardcode_libdir_flag_spec_ld_F77= | 
 | 13366 |   hardcode_libdir_separator_F77= | 
 | 13367 |   hardcode_direct_F77=no | 
 | 13368 |   hardcode_minus_L_F77=no | 
 | 13369 |   hardcode_shlibpath_var_F77=unsupported | 
 | 13370 |   link_all_deplibs_F77=unknown | 
 | 13371 |   hardcode_automatic_F77=no | 
 | 13372 |   module_cmds_F77= | 
 | 13373 |   module_expsym_cmds_F77= | 
 | 13374 |   always_export_symbols_F77=no | 
 | 13375 |   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 13376 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 13377 |   # included in the symbol list | 
 | 13378 |   include_expsyms_F77= | 
 | 13379 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 13380 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 13381 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 13382 |   # as well as any symbol that contains `d'. | 
 | 13383 |   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
 | 13384 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 13385 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 13386 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 13387 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 13388 |   # preloaded symbol tables. | 
 | 13389 |   extract_expsyms_cmds= | 
 | 13390 |  | 
 | 13391 |   case $host_os in | 
 | 13392 |   cygwin* | mingw* | pw32*) | 
 | 13393 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 13394 |     # When not using gcc, we currently assume that we are using | 
 | 13395 |     # Microsoft Visual C++. | 
 | 13396 |     if test "$GCC" != yes; then | 
 | 13397 |       with_gnu_ld=no | 
 | 13398 |     fi | 
 | 13399 |     ;; | 
 | 13400 |   openbsd*) | 
 | 13401 |     with_gnu_ld=no | 
 | 13402 |     ;; | 
 | 13403 |   esac | 
 | 13404 |  | 
 | 13405 |   ld_shlibs_F77=yes | 
 | 13406 |   if test "$with_gnu_ld" = yes; then | 
 | 13407 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 13408 |     wlarc='${wl}' | 
 | 13409 |  | 
 | 13410 |     # See if GNU ld supports shared libraries. | 
 | 13411 |     case $host_os in | 
 | 13412 |     aix3* | aix4* | aix5*) | 
 | 13413 |       # On AIX/PPC, the GNU linker is very broken | 
 | 13414 |       if test "$host_cpu" != ia64; then | 
 | 13415 | 	ld_shlibs_F77=no | 
 | 13416 | 	cat <<EOF 1>&2 | 
 | 13417 |  | 
 | 13418 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 13419 | *** to be unable to reliably create shared libraries on AIX. | 
 | 13420 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 13421 | *** really care for shared libraries, you may want to modify your PATH | 
 | 13422 | *** so that a non-GNU linker is found, and then restart. | 
 | 13423 |  | 
 | 13424 | EOF | 
 | 13425 |       fi | 
 | 13426 |       ;; | 
 | 13427 |  | 
 | 13428 |     amigaos*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13429 |       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] | 13430 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13431 |       hardcode_minus_L_F77=yes | 
 | 13432 |  | 
 | 13433 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 13434 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 13435 |       # to version 4, is to share data among multiple programs linked | 
 | 13436 |       # with the same dynamic library.  Since this doesn't match the | 
 | 13437 |       # behavior of shared libraries on other platforms, we can't use | 
 | 13438 |       # them. | 
 | 13439 |       ld_shlibs_F77=no | 
 | 13440 |       ;; | 
 | 13441 |  | 
 | 13442 |     beos*) | 
 | 13443 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 13444 | 	allow_undefined_flag_F77=unsupported | 
 | 13445 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 13446 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 13447 | 	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13448 |       else | 
 | 13449 | 	ld_shlibs_F77=no | 
 | 13450 |       fi | 
 | 13451 |       ;; | 
 | 13452 |  | 
 | 13453 |     cygwin* | mingw* | pw32*) | 
 | 13454 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
 | 13455 |       # as there is no search path for DLLs. | 
 | 13456 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13457 |       allow_undefined_flag_F77=unsupported | 
 | 13458 |       always_export_symbols_F77=no | 
 | 13459 |       enable_shared_with_static_runtimes_F77=yes | 
 | 13460 |       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 13461 |  | 
 | 13462 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 13463 |         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 13464 | 	# If the export-symbols file already is a .def file (1st line | 
 | 13465 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 13466 | 	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 13467 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 13468 | 	else | 
 | 13469 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 13470 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13471 | 	fi;$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] | 13472 |       else | 
 | 13473 | 	ld_shlibs=no | 
 | 13474 |       fi | 
 | 13475 |       ;; | 
 | 13476 |  | 
 | 13477 |     netbsd*) | 
 | 13478 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 13479 | 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 13480 | 	wlarc= | 
 | 13481 |       else | 
 | 13482 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13483 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 13484 |       fi | 
 | 13485 |       ;; | 
 | 13486 |  | 
 | 13487 |     solaris* | sysv5*) | 
 | 13488 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 13489 | 	ld_shlibs_F77=no | 
 | 13490 | 	cat <<EOF 1>&2 | 
 | 13491 |  | 
 | 13492 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 13493 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 13494 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 13495 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 13496 | *** your PATH or compiler configuration so that the native linker is | 
 | 13497 | *** used, and then restart. | 
 | 13498 |  | 
 | 13499 | EOF | 
 | 13500 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 13501 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13502 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 13503 |       else | 
 | 13504 | 	ld_shlibs_F77=no | 
 | 13505 |       fi | 
 | 13506 |       ;; | 
 | 13507 |  | 
 | 13508 |     sunos4*) | 
 | 13509 |       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 13510 |       wlarc= | 
 | 13511 |       hardcode_direct_F77=yes | 
 | 13512 |       hardcode_shlibpath_var_F77=no | 
 | 13513 |       ;; | 
 | 13514 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13515 |   linux*) | 
 | 13516 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 13517 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13518 | 	archive_cmds_F77="$tmp_archive_cmds" | 
 | 13519 |       supports_anon_versioning=no | 
 | 13520 |       case `$LD -v 2>/dev/null` in | 
 | 13521 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 13522 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 13523 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 13524 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 13525 |         *) supports_anon_versioning=yes ;; | 
 | 13526 |       esac | 
 | 13527 |       if test $supports_anon_versioning = yes; then | 
 | 13528 |         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; | 
 | 13529 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 13530 |       else | 
 | 13531 |         archive_expsym_cmds_F77="$tmp_archive_cmds" | 
 | 13532 |       fi | 
 | 13533 |     else | 
 | 13534 |       ld_shlibs_F77=no | 
 | 13535 |     fi | 
 | 13536 |     ;; | 
 | 13537 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13538 |     *) | 
 | 13539 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 13540 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13541 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 13542 |       else | 
 | 13543 | 	ld_shlibs_F77=no | 
 | 13544 |       fi | 
 | 13545 |       ;; | 
 | 13546 |     esac | 
 | 13547 |  | 
 | 13548 |     if test "$ld_shlibs_F77" = yes; then | 
 | 13549 |       runpath_var=LD_RUN_PATH | 
 | 13550 |       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
 | 13551 |       export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
 | 13552 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 13553 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 13554 |  	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 13555 |       else | 
 | 13556 |   	whole_archive_flag_spec_F77= | 
 | 13557 |       fi | 
 | 13558 |     fi | 
 | 13559 |   else | 
 | 13560 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 13561 |     case $host_os in | 
 | 13562 |     aix3*) | 
 | 13563 |       allow_undefined_flag_F77=unsupported | 
 | 13564 |       always_export_symbols_F77=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13565 |       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] | 13566 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 13567 |       # are no directories specified by -L. | 
 | 13568 |       hardcode_minus_L_F77=yes | 
 | 13569 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 13570 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 13571 | 	# broken collect2. | 
 | 13572 | 	hardcode_direct_F77=unsupported | 
 | 13573 |       fi | 
 | 13574 |       ;; | 
 | 13575 |  | 
 | 13576 |     aix4* | aix5*) | 
 | 13577 |       if test "$host_cpu" = ia64; then | 
 | 13578 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 13579 | 	# have to do anything special. | 
 | 13580 | 	aix_use_runtimelinking=no | 
 | 13581 | 	exp_sym_flag='-Bexport' | 
 | 13582 | 	no_entry_flag="" | 
 | 13583 |       else | 
 | 13584 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 13585 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 13586 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 13587 | 	  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' | 
 | 13588 | 	else | 
 | 13589 | 	  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' | 
 | 13590 | 	fi | 
 | 13591 | 	aix_use_runtimelinking=no | 
 | 13592 |  | 
 | 13593 | 	# Test if we are trying to use run time linking or normal | 
 | 13594 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 13595 | 	# need to do runtime linking. | 
 | 13596 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 13597 | 	  for ld_flag in $LDFLAGS; do | 
 | 13598 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 13599 |   	    aix_use_runtimelinking=yes | 
 | 13600 |   	    break | 
 | 13601 |   	  fi | 
 | 13602 | 	  done | 
 | 13603 | 	esac | 
 | 13604 |  | 
 | 13605 | 	exp_sym_flag='-bexport' | 
 | 13606 | 	no_entry_flag='-bnoentry' | 
 | 13607 |       fi | 
 | 13608 |  | 
 | 13609 |       # When large executables or shared objects are built, AIX ld can | 
 | 13610 |       # have problems creating the table of contents.  If linking a library | 
 | 13611 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 13612 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 13613 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 13614 |  | 
 | 13615 |       archive_cmds_F77='' | 
 | 13616 |       hardcode_direct_F77=yes | 
 | 13617 |       hardcode_libdir_separator_F77=':' | 
 | 13618 |       link_all_deplibs_F77=yes | 
 | 13619 |  | 
 | 13620 |       if test "$GCC" = yes; then | 
 | 13621 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 13622 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 13623 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 13624 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 13625 | 	  if test -f "$collect2name" && \ | 
 | 13626 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 13627 | 	  then | 
 | 13628 |   	  # We have reworked collect2 | 
 | 13629 |   	  hardcode_direct_F77=yes | 
 | 13630 | 	  else | 
 | 13631 |   	  # We have old collect2 | 
 | 13632 |   	  hardcode_direct_F77=unsupported | 
 | 13633 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 13634 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 13635 |   	  # to unsupported forces relinking | 
 | 13636 |   	  hardcode_minus_L_F77=yes | 
 | 13637 |   	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13638 |   	  hardcode_libdir_separator_F77= | 
 | 13639 | 	  fi | 
 | 13640 | 	esac | 
 | 13641 | 	shared_flag='-shared' | 
 | 13642 |       else | 
 | 13643 | 	# not using gcc | 
 | 13644 | 	if test "$host_cpu" = ia64; then | 
 | 13645 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 13646 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 13647 | 	  shared_flag='-G' | 
 | 13648 | 	else | 
 | 13649 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 13650 | 	    shared_flag='${wl}-G' | 
 | 13651 | 	  else | 
 | 13652 | 	    shared_flag='${wl}-bM:SRE' | 
 | 13653 |   	fi | 
 | 13654 | 	fi | 
 | 13655 |       fi | 
 | 13656 |  | 
 | 13657 |       # It seems that -bexpall does not export symbols beginning with | 
 | 13658 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 13659 |       always_export_symbols_F77=yes | 
 | 13660 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 13661 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 13662 | 	# -berok will link without error, but may produce a broken library. | 
 | 13663 | 	allow_undefined_flag_F77='-berok' | 
 | 13664 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 13665 |        cat >conftest.$ac_ext <<_ACEOF | 
 | 13666 |       program main | 
 | 13667 |  | 
 | 13668 |       end | 
 | 13669 | _ACEOF | 
 | 13670 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13672 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13673 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13674 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13675 |   rm -f conftest.er1 | 
 | 13676 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13677 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13678 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13679 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 13680 | 			 || test ! -s conftest.err' | 
 | 13681 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13682 |   (eval $ac_try) 2>&5 | 
 | 13683 |   ac_status=$? | 
 | 13684 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13685 |   (exit $ac_status); }; } && | 
 | 13686 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13687 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13688 |   (eval $ac_try) 2>&5 | 
 | 13689 |   ac_status=$? | 
 | 13690 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13691 |   (exit $ac_status); }; }; then | 
 | 13692 |  | 
 | 13693 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 13694 | }'` | 
 | 13695 | # Check for a 64-bit object if we didn't find anything. | 
 | 13696 | 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; } | 
 | 13697 | }'`; fi | 
 | 13698 | else | 
 | 13699 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13700 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13701 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13702 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13703 | rm -f conftest.err conftest.$ac_objext \ | 
 | 13704 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13705 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 13706 |  | 
 | 13707 |        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 13708 | 	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" | 
 | 13709 |        else | 
 | 13710 | 	if test "$host_cpu" = ia64; then | 
 | 13711 | 	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
 | 13712 | 	  allow_undefined_flag_F77="-z nodefs" | 
 | 13713 | 	  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" | 
 | 13714 | 	else | 
 | 13715 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 13716 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 13717 |       program main | 
 | 13718 |  | 
 | 13719 |       end | 
 | 13720 | _ACEOF | 
 | 13721 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13723 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13724 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13725 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13726 |   rm -f conftest.er1 | 
 | 13727 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13728 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13729 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13730 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 13731 | 			 || test ! -s conftest.err' | 
 | 13732 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13733 |   (eval $ac_try) 2>&5 | 
 | 13734 |   ac_status=$? | 
 | 13735 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13736 |   (exit $ac_status); }; } && | 
 | 13737 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13738 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13739 |   (eval $ac_try) 2>&5 | 
 | 13740 |   ac_status=$? | 
 | 13741 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13742 |   (exit $ac_status); }; }; then | 
 | 13743 |  | 
 | 13744 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 13745 | }'` | 
 | 13746 | # Check for a 64-bit object if we didn't find anything. | 
 | 13747 | 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; } | 
 | 13748 | }'`; fi | 
 | 13749 | else | 
 | 13750 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13751 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13752 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13753 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13754 | rm -f conftest.err conftest.$ac_objext \ | 
 | 13755 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13756 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 13757 |  | 
 | 13758 | 	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 13759 | 	  # Warning - without using the other run time loading flags, | 
 | 13760 | 	  # -berok will link without error, but may produce a broken library. | 
 | 13761 | 	  no_undefined_flag_F77=' ${wl}-bernotok' | 
 | 13762 | 	  allow_undefined_flag_F77=' ${wl}-berok' | 
 | 13763 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 13764 | 	  always_export_symbols_F77=yes | 
 | 13765 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 13766 | 	  whole_archive_flag_spec_F77=' ' | 
 | 13767 | 	  archive_cmds_need_lc_F77=yes | 
 | 13768 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13769 | 	  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] | 13770 | 	fi | 
 | 13771 |       fi | 
 | 13772 |       ;; | 
 | 13773 |  | 
 | 13774 |     amigaos*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13775 |       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] | 13776 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13777 |       hardcode_minus_L_F77=yes | 
 | 13778 |       # see comment about different semantics on the GNU ld section | 
 | 13779 |       ld_shlibs_F77=no | 
 | 13780 |       ;; | 
 | 13781 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13782 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13783 |       export_dynamic_flag_spec_F77=-rdynamic | 
 | 13784 |       ;; | 
 | 13785 |  | 
 | 13786 |     cygwin* | mingw* | pw32*) | 
 | 13787 |       # When not using gcc, we currently assume that we are using | 
 | 13788 |       # Microsoft Visual C++. | 
 | 13789 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 13790 |       # no search path for DLLs. | 
 | 13791 |       hardcode_libdir_flag_spec_F77=' ' | 
 | 13792 |       allow_undefined_flag_F77=unsupported | 
 | 13793 |       # Tell ltmain to make .lib files, not .a files. | 
 | 13794 |       libext=lib | 
 | 13795 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13796 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13797 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13798 |       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] | 13799 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 13800 |       old_archive_From_new_cmds_F77='true' | 
 | 13801 |       # FIXME: Should let the user specify the lib program. | 
 | 13802 |       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 13803 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 13804 |       enable_shared_with_static_runtimes_F77=yes | 
 | 13805 |       ;; | 
 | 13806 |  | 
 | 13807 |     darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13808 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13809 |         rhapsody* | darwin1.[012]) | 
 | 13810 |          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | 
 | 13811 |          ;; | 
 | 13812 |        *) # Darwin 1.3 on | 
 | 13813 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 13814 |            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 13815 |          else | 
 | 13816 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 13817 |              10.[012]) | 
 | 13818 |                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 13819 |                ;; | 
 | 13820 |              10.*) | 
 | 13821 |                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | 
 | 13822 |                ;; | 
 | 13823 |            esac | 
 | 13824 |          fi | 
 | 13825 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13826 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13827 |       archive_cmds_need_lc_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13828 |       hardcode_direct_F77=no | 
 | 13829 |       hardcode_automatic_F77=yes | 
 | 13830 |       hardcode_shlibpath_var_F77=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13831 |       whole_archive_flag_spec_F77='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13832 |       link_all_deplibs_F77=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13833 |     if test "$GCC" = yes ; then | 
 | 13834 |     	output_verbose_link_cmd='echo' | 
 | 13835 |         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 13836 |       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 13837 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 13838 |       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}' | 
 | 13839 |       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}' | 
 | 13840 |     else | 
 | 13841 |       case "$cc_basename" in | 
 | 13842 |         xlc*) | 
 | 13843 |          output_verbose_link_cmd='echo' | 
 | 13844 |          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 13845 |          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 13846 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 13847 |          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}' | 
 | 13848 |           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}' | 
 | 13849 |           ;; | 
 | 13850 |        *) | 
 | 13851 |          ld_shlibs_F77=no | 
 | 13852 |           ;; | 
 | 13853 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13854 |     fi | 
 | 13855 |       ;; | 
 | 13856 |  | 
 | 13857 |     dgux*) | 
 | 13858 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13859 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13860 |       hardcode_shlibpath_var_F77=no | 
 | 13861 |       ;; | 
 | 13862 |  | 
 | 13863 |     freebsd1*) | 
 | 13864 |       ld_shlibs_F77=no | 
 | 13865 |       ;; | 
 | 13866 |  | 
 | 13867 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 13868 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 13869 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 13870 |     # extra space). | 
 | 13871 |     freebsd2.2*) | 
 | 13872 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 13873 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13874 |       hardcode_direct_F77=yes | 
 | 13875 |       hardcode_shlibpath_var_F77=no | 
 | 13876 |       ;; | 
 | 13877 |  | 
 | 13878 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 13879 |     freebsd2*) | 
 | 13880 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 13881 |       hardcode_direct_F77=yes | 
 | 13882 |       hardcode_minus_L_F77=yes | 
 | 13883 |       hardcode_shlibpath_var_F77=no | 
 | 13884 |       ;; | 
 | 13885 |  | 
 | 13886 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13887 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13888 |       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13889 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13890 |       hardcode_direct_F77=yes | 
 | 13891 |       hardcode_shlibpath_var_F77=no | 
 | 13892 |       ;; | 
 | 13893 |  | 
 | 13894 |     hpux9*) | 
 | 13895 |       if test "$GCC" = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13896 | 	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] | 13897 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13898 | 	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] | 13899 |       fi | 
 | 13900 |       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13901 |       hardcode_libdir_separator_F77=: | 
 | 13902 |       hardcode_direct_F77=yes | 
 | 13903 |  | 
 | 13904 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 13905 |       # but as the default location of the library. | 
 | 13906 |       hardcode_minus_L_F77=yes | 
 | 13907 |       export_dynamic_flag_spec_F77='${wl}-E' | 
 | 13908 |       ;; | 
 | 13909 |  | 
 | 13910 |     hpux10* | hpux11*) | 
 | 13911 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 13912 | 	case "$host_cpu" in | 
 | 13913 | 	hppa*64*|ia64*) | 
 | 13914 | 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13915 | 	  ;; | 
 | 13916 | 	*) | 
 | 13917 | 	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13918 | 	  ;; | 
 | 13919 | 	esac | 
 | 13920 |       else | 
 | 13921 | 	case "$host_cpu" in | 
 | 13922 | 	hppa*64*|ia64*) | 
 | 13923 | 	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13924 | 	  ;; | 
 | 13925 | 	*) | 
 | 13926 | 	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 13927 | 	  ;; | 
 | 13928 | 	esac | 
 | 13929 |       fi | 
 | 13930 |       if test "$with_gnu_ld" = no; then | 
 | 13931 | 	case "$host_cpu" in | 
 | 13932 | 	hppa*64*) | 
 | 13933 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13934 | 	  hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
 | 13935 | 	  hardcode_libdir_separator_F77=: | 
 | 13936 | 	  hardcode_direct_F77=no | 
 | 13937 | 	  hardcode_shlibpath_var_F77=no | 
 | 13938 | 	  ;; | 
 | 13939 | 	ia64*) | 
 | 13940 | 	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13941 | 	  hardcode_direct_F77=no | 
 | 13942 | 	  hardcode_shlibpath_var_F77=no | 
 | 13943 |  | 
 | 13944 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 13945 | 	  # but as the default location of the library. | 
 | 13946 | 	  hardcode_minus_L_F77=yes | 
 | 13947 | 	  ;; | 
 | 13948 | 	*) | 
 | 13949 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13950 | 	  hardcode_libdir_separator_F77=: | 
 | 13951 | 	  hardcode_direct_F77=yes | 
 | 13952 | 	  export_dynamic_flag_spec_F77='${wl}-E' | 
 | 13953 |  | 
 | 13954 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 13955 | 	  # but as the default location of the library. | 
 | 13956 | 	  hardcode_minus_L_F77=yes | 
 | 13957 | 	  ;; | 
 | 13958 | 	esac | 
 | 13959 |       fi | 
 | 13960 |       ;; | 
 | 13961 |  | 
 | 13962 |     irix5* | irix6* | nonstopux*) | 
 | 13963 |       if test "$GCC" = yes; then | 
 | 13964 | 	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' | 
 | 13965 |       else | 
 | 13966 | 	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' | 
 | 13967 | 	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
 | 13968 |       fi | 
 | 13969 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 13970 |       hardcode_libdir_separator_F77=: | 
 | 13971 |       link_all_deplibs_F77=yes | 
 | 13972 |       ;; | 
 | 13973 |  | 
 | 13974 |     netbsd*) | 
 | 13975 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 13976 | 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 13977 |       else | 
 | 13978 | 	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 13979 |       fi | 
 | 13980 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13981 |       hardcode_direct_F77=yes | 
 | 13982 |       hardcode_shlibpath_var_F77=no | 
 | 13983 |       ;; | 
 | 13984 |  | 
 | 13985 |     newsos6) | 
 | 13986 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13987 |       hardcode_direct_F77=yes | 
 | 13988 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 13989 |       hardcode_libdir_separator_F77=: | 
 | 13990 |       hardcode_shlibpath_var_F77=no | 
 | 13991 |       ;; | 
 | 13992 |  | 
 | 13993 |     openbsd*) | 
 | 13994 |       hardcode_direct_F77=yes | 
 | 13995 |       hardcode_shlibpath_var_F77=no | 
 | 13996 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 13997 | 	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] | 13998 | 	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] | 13999 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 14000 | 	export_dynamic_flag_spec_F77='${wl}-E' | 
 | 14001 |       else | 
 | 14002 |        case $host_os in | 
 | 14003 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 14004 | 	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 14005 | 	   hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 14006 | 	   ;; | 
 | 14007 | 	 *) | 
 | 14008 | 	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14009 | 	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 14010 | 	   ;; | 
 | 14011 |        esac | 
 | 14012 |       fi | 
 | 14013 |       ;; | 
 | 14014 |  | 
 | 14015 |     os2*) | 
 | 14016 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 14017 |       hardcode_minus_L_F77=yes | 
 | 14018 |       allow_undefined_flag_F77=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14019 |       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] | 14020 |       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 14021 |       ;; | 
 | 14022 |  | 
 | 14023 |     osf3*) | 
 | 14024 |       if test "$GCC" = yes; then | 
 | 14025 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 14026 | 	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' | 
 | 14027 |       else | 
 | 14028 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 14029 | 	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' | 
 | 14030 |       fi | 
 | 14031 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 14032 |       hardcode_libdir_separator_F77=: | 
 | 14033 |       ;; | 
 | 14034 |  | 
 | 14035 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 14036 |       if test "$GCC" = yes; then | 
 | 14037 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 14038 | 	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' | 
 | 14039 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 14040 |       else | 
 | 14041 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 14042 | 	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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14043 | 	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; $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' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14044 | 	# Both c and cxx compiler support -rpath directly | 
 | 14045 | 	hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
 | 14046 |       fi | 
 | 14047 |       hardcode_libdir_separator_F77=: | 
 | 14048 |       ;; | 
 | 14049 |  | 
 | 14050 |     sco3.2v5*) | 
 | 14051 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14052 |       hardcode_shlibpath_var_F77=no | 
 | 14053 |       export_dynamic_flag_spec_F77='${wl}-Bexport' | 
 | 14054 |       runpath_var=LD_RUN_PATH | 
 | 14055 |       hardcode_runpath_var=yes | 
 | 14056 |       ;; | 
 | 14057 |  | 
 | 14058 |     solaris*) | 
 | 14059 |       no_undefined_flag_F77=' -z text' | 
 | 14060 |       if test "$GCC" = yes; then | 
 | 14061 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14062 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 14063 |       else | 
 | 14064 | 	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14065 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 14066 |       fi | 
 | 14067 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 14068 |       hardcode_shlibpath_var_F77=no | 
 | 14069 |       case $host_os in | 
 | 14070 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 14071 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 14072 | 	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
 | 14073 |       esac | 
 | 14074 |       link_all_deplibs_F77=yes | 
 | 14075 |       ;; | 
 | 14076 |  | 
 | 14077 |     sunos4*) | 
 | 14078 |       if test "x$host_vendor" = xsequent; then | 
 | 14079 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 14080 | 	# files that make .init and .fini sections work. | 
 | 14081 | 	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14082 |       else | 
 | 14083 | 	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 14084 |       fi | 
 | 14085 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 14086 |       hardcode_direct_F77=yes | 
 | 14087 |       hardcode_minus_L_F77=yes | 
 | 14088 |       hardcode_shlibpath_var_F77=no | 
 | 14089 |       ;; | 
 | 14090 |  | 
 | 14091 |     sysv4) | 
 | 14092 |       case $host_vendor in | 
 | 14093 | 	sni) | 
 | 14094 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14095 | 	  hardcode_direct_F77=yes # is this really true??? | 
 | 14096 | 	;; | 
 | 14097 | 	siemens) | 
 | 14098 | 	  ## LD is ld it makes a PLAMLIB | 
 | 14099 | 	  ## CC just makes a GrossModule. | 
 | 14100 | 	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 14101 | 	  reload_cmds_F77='$CC -r -o $output$reload_objs' | 
 | 14102 | 	  hardcode_direct_F77=no | 
 | 14103 |         ;; | 
 | 14104 | 	motorola) | 
 | 14105 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14106 | 	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
 | 14107 | 	;; | 
 | 14108 |       esac | 
 | 14109 |       runpath_var='LD_RUN_PATH' | 
 | 14110 |       hardcode_shlibpath_var_F77=no | 
 | 14111 |       ;; | 
 | 14112 |  | 
 | 14113 |     sysv4.3*) | 
 | 14114 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14115 |       hardcode_shlibpath_var_F77=no | 
 | 14116 |       export_dynamic_flag_spec_F77='-Bexport' | 
 | 14117 |       ;; | 
 | 14118 |  | 
 | 14119 |     sysv4*MP*) | 
 | 14120 |       if test -d /usr/nec; then | 
 | 14121 | 	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14122 | 	hardcode_shlibpath_var_F77=no | 
 | 14123 | 	runpath_var=LD_RUN_PATH | 
 | 14124 | 	hardcode_runpath_var=yes | 
 | 14125 | 	ld_shlibs_F77=yes | 
 | 14126 |       fi | 
 | 14127 |       ;; | 
 | 14128 |  | 
 | 14129 |     sysv4.2uw2*) | 
 | 14130 |       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 14131 |       hardcode_direct_F77=yes | 
 | 14132 |       hardcode_minus_L_F77=no | 
 | 14133 |       hardcode_shlibpath_var_F77=no | 
 | 14134 |       hardcode_runpath_var=yes | 
 | 14135 |       runpath_var=LD_RUN_PATH | 
 | 14136 |       ;; | 
 | 14137 |  | 
 | 14138 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 14139 |       no_undefined_flag_F77='${wl}-z ${wl}text' | 
 | 14140 |       if test "$GCC" = yes; then | 
 | 14141 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14142 |       else | 
 | 14143 | 	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14144 |       fi | 
 | 14145 |       runpath_var='LD_RUN_PATH' | 
 | 14146 |       hardcode_shlibpath_var_F77=no | 
 | 14147 |       ;; | 
 | 14148 |  | 
 | 14149 |     sysv5*) | 
 | 14150 |       no_undefined_flag_F77=' -z text' | 
 | 14151 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 14152 |       # object files and a static libstdc++, better avoid it by now | 
 | 14153 |       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14154 |       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 14155 |       hardcode_libdir_flag_spec_F77= | 
 | 14156 |       hardcode_shlibpath_var_F77=no | 
 | 14157 |       runpath_var='LD_RUN_PATH' | 
 | 14158 |       ;; | 
 | 14159 |  | 
 | 14160 |     uts4*) | 
 | 14161 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14162 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 14163 |       hardcode_shlibpath_var_F77=no | 
 | 14164 |       ;; | 
 | 14165 |  | 
 | 14166 |     *) | 
 | 14167 |       ld_shlibs_F77=no | 
 | 14168 |       ;; | 
 | 14169 |     esac | 
 | 14170 |   fi | 
 | 14171 |  | 
 | 14172 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
 | 14173 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 
 | 14174 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 14175 |  | 
 | 14176 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 14177 | if test "$GCC" = yes; then | 
 | 14178 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 14179 | fi | 
 | 14180 |  | 
 | 14181 | # | 
 | 14182 | # Do we need to explicitly link libc? | 
 | 14183 | # | 
 | 14184 | case "x$archive_cmds_need_lc_F77" in | 
 | 14185 | x|xyes) | 
 | 14186 |   # Assume -lc should be added | 
 | 14187 |   archive_cmds_need_lc_F77=yes | 
 | 14188 |  | 
 | 14189 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 14190 |     case $archive_cmds_F77 in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14191 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14192 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 14193 |       ;; | 
 | 14194 |     '$CC '*) | 
 | 14195 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 14196 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 14197 |       # to ld, don't add -lc before -lgcc. | 
 | 14198 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 14199 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 14200 |       $rm conftest* | 
 | 14201 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 14202 |  | 
 | 14203 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 14204 |   (eval $ac_compile) 2>&5 | 
 | 14205 |   ac_status=$? | 
 | 14206 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14207 |   (exit $ac_status); } 2>conftest.err; then | 
 | 14208 |         soname=conftest | 
 | 14209 |         lib=conftest | 
 | 14210 |         libobjs=conftest.$ac_objext | 
 | 14211 |         deplibs= | 
 | 14212 |         wl=$lt_prog_compiler_wl_F77 | 
 | 14213 |         compiler_flags=-v | 
 | 14214 |         linker_flags=-v | 
 | 14215 |         verstring= | 
 | 14216 |         output_objdir=. | 
 | 14217 |         libname=conftest | 
 | 14218 |         lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
 | 14219 |         allow_undefined_flag_F77= | 
 | 14220 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 14221 |   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 14222 |   ac_status=$? | 
 | 14223 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14224 |   (exit $ac_status); } | 
 | 14225 |         then | 
 | 14226 | 	  archive_cmds_need_lc_F77=no | 
 | 14227 |         else | 
 | 14228 | 	  archive_cmds_need_lc_F77=yes | 
 | 14229 |         fi | 
 | 14230 |         allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
 | 14231 |       else | 
 | 14232 |         cat conftest.err 1>&5 | 
 | 14233 |       fi | 
 | 14234 |       $rm conftest* | 
 | 14235 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
 | 14236 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 
 | 14237 |       ;; | 
 | 14238 |     esac | 
 | 14239 |   fi | 
 | 14240 |   ;; | 
 | 14241 | esac | 
 | 14242 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14243 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 14244 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 14245 | library_names_spec= | 
 | 14246 | libname_spec='lib$name' | 
 | 14247 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14248 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14249 | postinstall_cmds= | 
 | 14250 | postuninstall_cmds= | 
 | 14251 | finish_cmds= | 
 | 14252 | finish_eval= | 
 | 14253 | shlibpath_var= | 
 | 14254 | shlibpath_overrides_runpath=unknown | 
 | 14255 | version_type=none | 
 | 14256 | dynamic_linker="$host_os ld.so" | 
 | 14257 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 14258 | if test "$GCC" = yes; then | 
 | 14259 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 14260 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 14261 |     # if the path contains ";" then we assume it to be the separator | 
 | 14262 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 14263 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 14264 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 14265 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 14266 |   else | 
 | 14267 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 14268 |   fi | 
 | 14269 | else | 
 | 14270 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 14271 | fi | 
 | 14272 | need_lib_prefix=unknown | 
 | 14273 | hardcode_into_libs=no | 
 | 14274 |  | 
 | 14275 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 14276 | # flags to be left without arguments | 
 | 14277 | need_version=unknown | 
 | 14278 |  | 
 | 14279 | case $host_os in | 
 | 14280 | aix3*) | 
 | 14281 |   version_type=linux | 
 | 14282 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 14283 |   shlibpath_var=LIBPATH | 
 | 14284 |  | 
 | 14285 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 14286 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14287 |   ;; | 
 | 14288 |  | 
 | 14289 | aix4* | aix5*) | 
 | 14290 |   version_type=linux | 
 | 14291 |   need_lib_prefix=no | 
 | 14292 |   need_version=no | 
 | 14293 |   hardcode_into_libs=yes | 
 | 14294 |   if test "$host_cpu" = ia64; then | 
 | 14295 |     # AIX 5 supports IA64 | 
 | 14296 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 14297 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 14298 |   else | 
 | 14299 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 14300 |     # for dependence libraries.  The import file would start with | 
 | 14301 |     # the line `#! .'.  This would cause the generated library to | 
 | 14302 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 14303 |     # development snapshots of GCC prior to 3.0. | 
 | 14304 |     case $host_os in | 
 | 14305 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 14306 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 14307 | 	   echo ' yes ' | 
 | 14308 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 14309 | 	: | 
 | 14310 |       else | 
 | 14311 | 	can_build_shared=no | 
 | 14312 |       fi | 
 | 14313 |       ;; | 
 | 14314 |     esac | 
 | 14315 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 14316 |     # soname into executable. Probably we can add versioning support to | 
 | 14317 |     # collect2, so additional links can be useful in future. | 
 | 14318 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 14319 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 14320 |       # instead of lib<name>.a to let people know that these are not | 
 | 14321 |       # typical AIX shared libraries. | 
 | 14322 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14323 |     else | 
 | 14324 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 14325 |       # and later when we are not doing run time linking. | 
 | 14326 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 14327 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14328 |     fi | 
 | 14329 |     shlibpath_var=LIBPATH | 
 | 14330 |   fi | 
 | 14331 |   ;; | 
 | 14332 |  | 
 | 14333 | amigaos*) | 
 | 14334 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 14335 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14336 |   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] | 14337 |   ;; | 
 | 14338 |  | 
 | 14339 | beos*) | 
 | 14340 |   library_names_spec='${libname}${shared_ext}' | 
 | 14341 |   dynamic_linker="$host_os ld.so" | 
 | 14342 |   shlibpath_var=LIBRARY_PATH | 
 | 14343 |   ;; | 
 | 14344 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14345 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14346 |   version_type=linux | 
 | 14347 |   need_version=no | 
 | 14348 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14349 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14350 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 14351 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14352 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 14353 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 14354 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 14355 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 14356 |   # libtool to hard-code these into programs | 
 | 14357 |   ;; | 
 | 14358 |  | 
 | 14359 | cygwin* | mingw* | pw32*) | 
 | 14360 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14361 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14362 |   need_version=no | 
 | 14363 |   need_lib_prefix=no | 
 | 14364 |  | 
 | 14365 |   case $GCC,$host_os in | 
 | 14366 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 14367 |     library_names_spec='$libname.dll.a' | 
 | 14368 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14369 |     postinstall_cmds='base_file=`basename \${file}`; | 
 | 14370 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; | 
 | 14371 |       dldir=$destdir/`dirname \$dlpath`; | 
 | 14372 |       test -d \$dldir || mkdir -p \$dldir; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14373 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14374 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; | 
 | 14375 |       dlpath=$dir/\$dldll; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14376 |        $rm \$dlpath' | 
 | 14377 |     shlibpath_overrides_runpath=yes | 
 | 14378 |  | 
 | 14379 |     case $host_os in | 
 | 14380 |     cygwin*) | 
 | 14381 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 14382 |       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] | 14383 |       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] | 14384 |       ;; | 
 | 14385 |     mingw*) | 
 | 14386 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 14387 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 14388 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 14389 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 14390 |         # It is most probably a Windows format PATH printed by | 
 | 14391 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 14392 |         # path with ; separators, and with drive letters. We can handle the | 
 | 14393 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 14394 |         # especially as we might pass files found there to a mingw objdump, | 
 | 14395 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 14396 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 14397 |       else | 
 | 14398 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 14399 |       fi | 
 | 14400 |       ;; | 
 | 14401 |     pw32*) | 
 | 14402 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 14403 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 14404 |       ;; | 
 | 14405 |     esac | 
 | 14406 |     ;; | 
 | 14407 |  | 
 | 14408 |   *) | 
 | 14409 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 14410 |     ;; | 
 | 14411 |   esac | 
 | 14412 |   dynamic_linker='Win32 ld.exe' | 
 | 14413 |   # FIXME: first we should search . and the directory the executable is in | 
 | 14414 |   shlibpath_var=PATH | 
 | 14415 |   ;; | 
 | 14416 |  | 
 | 14417 | darwin* | rhapsody*) | 
 | 14418 |   dynamic_linker="$host_os dyld" | 
 | 14419 |   version_type=darwin | 
 | 14420 |   need_lib_prefix=no | 
 | 14421 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14422 |   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] | 14423 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 14424 |   shlibpath_overrides_runpath=yes | 
 | 14425 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14426 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14427 |   # 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] | 14428 |   if test "$GCC" = yes; then | 
 | 14429 |     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"` | 
 | 14430 |   else | 
 | 14431 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14432 |   fi | 
 | 14433 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 14434 |   ;; | 
 | 14435 |  | 
 | 14436 | dgux*) | 
 | 14437 |   version_type=linux | 
 | 14438 |   need_lib_prefix=no | 
 | 14439 |   need_version=no | 
 | 14440 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 14441 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14442 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14443 |   ;; | 
 | 14444 |  | 
 | 14445 | freebsd1*) | 
 | 14446 |   dynamic_linker=no | 
 | 14447 |   ;; | 
 | 14448 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14449 | kfreebsd*-gnu) | 
 | 14450 |   version_type=linux | 
 | 14451 |   need_lib_prefix=no | 
 | 14452 |   need_version=no | 
 | 14453 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 14454 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14455 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14456 |   shlibpath_overrides_runpath=no | 
 | 14457 |   hardcode_into_libs=yes | 
 | 14458 |   dynamic_linker='GNU ld.so' | 
 | 14459 |   ;; | 
 | 14460 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14461 | freebsd*) | 
 | 14462 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 14463 |   version_type=freebsd-$objformat | 
 | 14464 |   case $version_type in | 
 | 14465 |     freebsd-elf*) | 
 | 14466 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 14467 |       need_version=no | 
 | 14468 |       need_lib_prefix=no | 
 | 14469 |       ;; | 
 | 14470 |     freebsd-*) | 
 | 14471 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 14472 |       need_version=yes | 
 | 14473 |       ;; | 
 | 14474 |   esac | 
 | 14475 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14476 |   case $host_os in | 
 | 14477 |   freebsd2*) | 
 | 14478 |     shlibpath_overrides_runpath=yes | 
 | 14479 |     ;; | 
 | 14480 |   freebsd3.01* | freebsdelf3.01*) | 
 | 14481 |     shlibpath_overrides_runpath=yes | 
 | 14482 |     hardcode_into_libs=yes | 
 | 14483 |     ;; | 
 | 14484 |   *) # from 3.2 on | 
 | 14485 |     shlibpath_overrides_runpath=no | 
 | 14486 |     hardcode_into_libs=yes | 
 | 14487 |     ;; | 
 | 14488 |   esac | 
 | 14489 |   ;; | 
 | 14490 |  | 
 | 14491 | gnu*) | 
 | 14492 |   version_type=linux | 
 | 14493 |   need_lib_prefix=no | 
 | 14494 |   need_version=no | 
 | 14495 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 14496 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14497 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14498 |   hardcode_into_libs=yes | 
 | 14499 |   ;; | 
 | 14500 |  | 
 | 14501 | hpux9* | hpux10* | hpux11*) | 
 | 14502 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 14503 |   # link against other versions. | 
 | 14504 |   version_type=sunos | 
 | 14505 |   need_lib_prefix=no | 
 | 14506 |   need_version=no | 
 | 14507 |   case "$host_cpu" in | 
 | 14508 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14509 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14510 |     hardcode_into_libs=yes | 
 | 14511 |     dynamic_linker="$host_os dld.so" | 
 | 14512 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 14513 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 14514 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14515 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14516 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 14517 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 14518 |     else | 
 | 14519 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 14520 |     fi | 
 | 14521 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 14522 |     ;; | 
 | 14523 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14524 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14525 |      hardcode_into_libs=yes | 
 | 14526 |      dynamic_linker="$host_os dld.sl" | 
 | 14527 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 14528 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 14529 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14530 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14531 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 14532 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 14533 |      ;; | 
 | 14534 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14535 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14536 |     dynamic_linker="$host_os dld.sl" | 
 | 14537 |     shlibpath_var=SHLIB_PATH | 
 | 14538 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 14539 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14540 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14541 |     ;; | 
 | 14542 |   esac | 
 | 14543 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 14544 |   postinstall_cmds='chmod 555 $lib' | 
 | 14545 |   ;; | 
 | 14546 |  | 
 | 14547 | irix5* | irix6* | nonstopux*) | 
 | 14548 |   case $host_os in | 
 | 14549 |     nonstopux*) version_type=nonstopux ;; | 
 | 14550 |     *) | 
 | 14551 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 14552 | 		version_type=linux | 
 | 14553 | 	else | 
 | 14554 | 		version_type=irix | 
 | 14555 | 	fi ;; | 
 | 14556 |   esac | 
 | 14557 |   need_lib_prefix=no | 
 | 14558 |   need_version=no | 
 | 14559 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14560 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 14561 |   case $host_os in | 
 | 14562 |   irix5* | nonstopux*) | 
 | 14563 |     libsuff= shlibsuff= | 
 | 14564 |     ;; | 
 | 14565 |   *) | 
 | 14566 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 14567 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 14568 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 14569 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 14570 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 14571 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 14572 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 14573 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 14574 |     esac | 
 | 14575 |     ;; | 
 | 14576 |   esac | 
 | 14577 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 14578 |   shlibpath_overrides_runpath=no | 
 | 14579 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 14580 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 14581 |   hardcode_into_libs=yes | 
 | 14582 |   ;; | 
 | 14583 |  | 
 | 14584 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 14585 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 14586 |   dynamic_linker=no | 
 | 14587 |   ;; | 
 | 14588 |  | 
 | 14589 | # This must be Linux ELF. | 
 | 14590 | linux*) | 
 | 14591 |   version_type=linux | 
 | 14592 |   need_lib_prefix=no | 
 | 14593 |   need_version=no | 
 | 14594 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14595 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14596 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 14597 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14598 |   shlibpath_overrides_runpath=no | 
 | 14599 |   # This implies no fast_install, which is unacceptable. | 
 | 14600 |   # Some rework will be needed to allow for fast_install | 
 | 14601 |   # before this can be enabled. | 
 | 14602 |   hardcode_into_libs=yes | 
 | 14603 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14604 |   # Append ld.so.conf contents to the search path | 
 | 14605 |   if test -f /etc/ld.so.conf; then | 
 | 14606 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 14607 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 14608 |   fi | 
 | 14609 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14610 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 14611 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 14612 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 14613 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 14614 |   # people can always --disable-shared, the test was removed, and we | 
 | 14615 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 14616 |   dynamic_linker='GNU/Linux ld.so' | 
 | 14617 |   ;; | 
 | 14618 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14619 | knetbsd*-gnu) | 
 | 14620 |   version_type=linux | 
 | 14621 |   need_lib_prefix=no | 
 | 14622 |   need_version=no | 
 | 14623 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 14624 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14625 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14626 |   shlibpath_overrides_runpath=no | 
 | 14627 |   hardcode_into_libs=yes | 
 | 14628 |   dynamic_linker='GNU ld.so' | 
 | 14629 |   ;; | 
 | 14630 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14631 | netbsd*) | 
 | 14632 |   version_type=sunos | 
 | 14633 |   need_lib_prefix=no | 
 | 14634 |   need_version=no | 
 | 14635 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 14636 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14637 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 14638 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 14639 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14640 |     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] | 14641 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14642 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 14643 |   fi | 
 | 14644 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14645 |   shlibpath_overrides_runpath=yes | 
 | 14646 |   hardcode_into_libs=yes | 
 | 14647 |   ;; | 
 | 14648 |  | 
 | 14649 | newsos6) | 
 | 14650 |   version_type=linux | 
 | 14651 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14652 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14653 |   shlibpath_overrides_runpath=yes | 
 | 14654 |   ;; | 
 | 14655 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14656 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14657 |   version_type=linux | 
 | 14658 |   need_lib_prefix=no | 
 | 14659 |   need_version=no | 
 | 14660 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14661 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14662 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14663 |   shlibpath_overrides_runpath=yes | 
 | 14664 |   ;; | 
 | 14665 |  | 
 | 14666 | openbsd*) | 
 | 14667 |   version_type=sunos | 
 | 14668 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 14669 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14670 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14671 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 14672 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14673 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 14674 |     case $host_os in | 
 | 14675 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 14676 | 	shlibpath_overrides_runpath=no | 
 | 14677 | 	;; | 
 | 14678 |       *) | 
 | 14679 | 	shlibpath_overrides_runpath=yes | 
 | 14680 | 	;; | 
 | 14681 |       esac | 
 | 14682 |   else | 
 | 14683 |     shlibpath_overrides_runpath=yes | 
 | 14684 |   fi | 
 | 14685 |   ;; | 
 | 14686 |  | 
 | 14687 | os2*) | 
 | 14688 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14689 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14690 |   need_lib_prefix=no | 
 | 14691 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 14692 |   dynamic_linker='OS/2 ld.exe' | 
 | 14693 |   shlibpath_var=LIBPATH | 
 | 14694 |   ;; | 
 | 14695 |  | 
 | 14696 | osf3* | osf4* | osf5*) | 
 | 14697 |   version_type=osf | 
 | 14698 |   need_lib_prefix=no | 
 | 14699 |   need_version=no | 
 | 14700 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14701 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14702 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14703 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 14704 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 14705 |   ;; | 
 | 14706 |  | 
 | 14707 | sco3.2v5*) | 
 | 14708 |   version_type=osf | 
 | 14709 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14710 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14711 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14712 |   ;; | 
 | 14713 |  | 
 | 14714 | solaris*) | 
 | 14715 |   version_type=linux | 
 | 14716 |   need_lib_prefix=no | 
 | 14717 |   need_version=no | 
 | 14718 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14719 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14720 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14721 |   shlibpath_overrides_runpath=yes | 
 | 14722 |   hardcode_into_libs=yes | 
 | 14723 |   # ldd complains unless libraries are executable | 
 | 14724 |   postinstall_cmds='chmod +x $lib' | 
 | 14725 |   ;; | 
 | 14726 |  | 
 | 14727 | sunos4*) | 
 | 14728 |   version_type=sunos | 
 | 14729 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14730 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 14731 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14732 |   shlibpath_overrides_runpath=yes | 
 | 14733 |   if test "$with_gnu_ld" = yes; then | 
 | 14734 |     need_lib_prefix=no | 
 | 14735 |   fi | 
 | 14736 |   need_version=yes | 
 | 14737 |   ;; | 
 | 14738 |  | 
 | 14739 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 14740 |   version_type=linux | 
 | 14741 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14742 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14743 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14744 |   case $host_vendor in | 
 | 14745 |     sni) | 
 | 14746 |       shlibpath_overrides_runpath=no | 
 | 14747 |       need_lib_prefix=no | 
 | 14748 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 14749 |       runpath_var=LD_RUN_PATH | 
 | 14750 |       ;; | 
 | 14751 |     siemens) | 
 | 14752 |       need_lib_prefix=no | 
 | 14753 |       ;; | 
 | 14754 |     motorola) | 
 | 14755 |       need_lib_prefix=no | 
 | 14756 |       need_version=no | 
 | 14757 |       shlibpath_overrides_runpath=no | 
 | 14758 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 14759 |       ;; | 
 | 14760 |   esac | 
 | 14761 |   ;; | 
 | 14762 |  | 
 | 14763 | sysv4*MP*) | 
 | 14764 |   if test -d /usr/nec ;then | 
 | 14765 |     version_type=linux | 
 | 14766 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 14767 |     soname_spec='$libname${shared_ext}.$major' | 
 | 14768 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 14769 |   fi | 
 | 14770 |   ;; | 
 | 14771 |  | 
 | 14772 | uts4*) | 
 | 14773 |   version_type=linux | 
 | 14774 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14775 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14776 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14777 |   ;; | 
 | 14778 |  | 
 | 14779 | *) | 
 | 14780 |   dynamic_linker=no | 
 | 14781 |   ;; | 
 | 14782 | esac | 
 | 14783 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 14784 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 14785 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 14786 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14787 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 14788 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 14789 | hardcode_action_F77= | 
 | 14790 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
 | 14791 |    test -n "$runpath_var_F77" || \ | 
 | 14792 |    test "X$hardcode_automatic_F77" = "Xyes" ; then | 
 | 14793 |  | 
 | 14794 |   # We can hardcode non-existant directories. | 
 | 14795 |   if test "$hardcode_direct_F77" != no && | 
 | 14796 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 14797 |      # have to relink, otherwise we might link with an installed library | 
 | 14798 |      # when we should be linking with a yet-to-be-installed one | 
 | 14799 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
 | 14800 |      test "$hardcode_minus_L_F77" != no; then | 
 | 14801 |     # Linking always hardcodes the temporary library directory. | 
 | 14802 |     hardcode_action_F77=relink | 
 | 14803 |   else | 
 | 14804 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 14805 |     hardcode_action_F77=immediate | 
 | 14806 |   fi | 
 | 14807 | else | 
 | 14808 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 14809 |   # directories. | 
 | 14810 |   hardcode_action_F77=unsupported | 
 | 14811 | fi | 
 | 14812 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
 | 14813 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 
 | 14814 |  | 
 | 14815 | if test "$hardcode_action_F77" = relink; then | 
 | 14816 |   # Fast installation is not supported | 
 | 14817 |   enable_fast_install=no | 
 | 14818 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 14819 |      test "$enable_shared" = no; then | 
 | 14820 |   # Fast installation is not necessary | 
 | 14821 |   enable_fast_install=needless | 
 | 14822 | fi | 
 | 14823 |  | 
 | 14824 | striplib= | 
 | 14825 | old_striplib= | 
 | 14826 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 14827 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 14828 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 14829 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 14830 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 14831 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 14832 | echo "${ECHO_T}yes" >&6 | 
 | 14833 | else | 
 | 14834 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 14835 |   case $host_os in | 
 | 14836 |    darwin*) | 
 | 14837 |        if test -n "$STRIP" ; then | 
 | 14838 |          striplib="$STRIP -x" | 
 | 14839 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 14840 | echo "${ECHO_T}yes" >&6 | 
 | 14841 |        else | 
 | 14842 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 14843 | echo "${ECHO_T}no" >&6 | 
 | 14844 | fi | 
 | 14845 |        ;; | 
 | 14846 |    *) | 
 | 14847 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 14848 | echo "${ECHO_T}no" >&6 | 
 | 14849 |     ;; | 
 | 14850 |   esac | 
 | 14851 | fi | 
 | 14852 |  | 
 | 14853 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14854 |  | 
 | 14855 | # The else clause should only fire when bootstrapping the | 
 | 14856 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 14857 | # with your package, and you will get complaints that there are | 
 | 14858 | # no rules to generate ltmain.sh. | 
 | 14859 | if test -f "$ltmain"; then | 
 | 14860 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 14861 |   # without removal of \ escapes. | 
 | 14862 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 14863 |     setopt NO_GLOB_SUBST | 
 | 14864 |   fi | 
 | 14865 |   # Now quote all the things that may contain metacharacters while being | 
 | 14866 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 14867 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14868 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 14869 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14870 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 14871 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 14872 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 14873 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 14874 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 14875 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 14876 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 14877 |     compiler_F77 \ | 
 | 14878 |     CC_F77 \ | 
 | 14879 |     LD_F77 \ | 
 | 14880 |     lt_prog_compiler_wl_F77 \ | 
 | 14881 |     lt_prog_compiler_pic_F77 \ | 
 | 14882 |     lt_prog_compiler_static_F77 \ | 
 | 14883 |     lt_prog_compiler_no_builtin_flag_F77 \ | 
 | 14884 |     export_dynamic_flag_spec_F77 \ | 
 | 14885 |     thread_safe_flag_spec_F77 \ | 
 | 14886 |     whole_archive_flag_spec_F77 \ | 
 | 14887 |     enable_shared_with_static_runtimes_F77 \ | 
 | 14888 |     old_archive_cmds_F77 \ | 
 | 14889 |     old_archive_from_new_cmds_F77 \ | 
 | 14890 |     predep_objects_F77 \ | 
 | 14891 |     postdep_objects_F77 \ | 
 | 14892 |     predeps_F77 \ | 
 | 14893 |     postdeps_F77 \ | 
 | 14894 |     compiler_lib_search_path_F77 \ | 
 | 14895 |     archive_cmds_F77 \ | 
 | 14896 |     archive_expsym_cmds_F77 \ | 
 | 14897 |     postinstall_cmds_F77 \ | 
 | 14898 |     postuninstall_cmds_F77 \ | 
 | 14899 |     old_archive_from_expsyms_cmds_F77 \ | 
 | 14900 |     allow_undefined_flag_F77 \ | 
 | 14901 |     no_undefined_flag_F77 \ | 
 | 14902 |     export_symbols_cmds_F77 \ | 
 | 14903 |     hardcode_libdir_flag_spec_F77 \ | 
 | 14904 |     hardcode_libdir_flag_spec_ld_F77 \ | 
 | 14905 |     hardcode_libdir_separator_F77 \ | 
 | 14906 |     hardcode_automatic_F77 \ | 
 | 14907 |     module_cmds_F77 \ | 
 | 14908 |     module_expsym_cmds_F77 \ | 
 | 14909 |     lt_cv_prog_compiler_c_o_F77 \ | 
 | 14910 |     exclude_expsyms_F77 \ | 
 | 14911 |     include_expsyms_F77; do | 
 | 14912 |  | 
 | 14913 |     case $var in | 
 | 14914 |     old_archive_cmds_F77 | \ | 
 | 14915 |     old_archive_from_new_cmds_F77 | \ | 
 | 14916 |     archive_cmds_F77 | \ | 
 | 14917 |     archive_expsym_cmds_F77 | \ | 
 | 14918 |     module_cmds_F77 | \ | 
 | 14919 |     module_expsym_cmds_F77 | \ | 
 | 14920 |     old_archive_from_expsyms_cmds_F77 | \ | 
 | 14921 |     export_symbols_cmds_F77 | \ | 
 | 14922 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 14923 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 14924 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 14925 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 14926 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14927 |       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] | 14928 |       ;; | 
 | 14929 |     *) | 
 | 14930 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 14931 |       ;; | 
 | 14932 |     esac | 
 | 14933 |   done | 
 | 14934 |  | 
 | 14935 |   case $lt_echo in | 
 | 14936 |   *'\$0 --fallback-echo"') | 
 | 14937 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 14938 |     ;; | 
 | 14939 |   esac | 
 | 14940 |  | 
 | 14941 | cfgfile="$ofile" | 
 | 14942 |  | 
 | 14943 |   cat <<__EOF__ >> "$cfgfile" | 
 | 14944 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 14945 |  | 
 | 14946 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 14947 |  | 
 | 14948 | # Shell to use when invoking shell scripts. | 
 | 14949 | SHELL=$lt_SHELL | 
 | 14950 |  | 
 | 14951 | # Whether or not to build shared libraries. | 
 | 14952 | build_libtool_libs=$enable_shared | 
 | 14953 |  | 
 | 14954 | # Whether or not to build static libraries. | 
 | 14955 | build_old_libs=$enable_static | 
 | 14956 |  | 
 | 14957 | # Whether or not to add -lc for building shared libraries. | 
 | 14958 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
 | 14959 |  | 
 | 14960 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 14961 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
 | 14962 |  | 
 | 14963 | # Whether or not to optimize for fast installation. | 
 | 14964 | fast_install=$enable_fast_install | 
 | 14965 |  | 
 | 14966 | # The host system. | 
 | 14967 | host_alias=$host_alias | 
 | 14968 | host=$host | 
 | 14969 |  | 
 | 14970 | # An echo program that does not interpret backslashes. | 
 | 14971 | echo=$lt_echo | 
 | 14972 |  | 
 | 14973 | # The archiver. | 
 | 14974 | AR=$lt_AR | 
 | 14975 | AR_FLAGS=$lt_AR_FLAGS | 
 | 14976 |  | 
 | 14977 | # A C compiler. | 
 | 14978 | LTCC=$lt_LTCC | 
 | 14979 |  | 
 | 14980 | # A language-specific compiler. | 
 | 14981 | CC=$lt_compiler_F77 | 
 | 14982 |  | 
 | 14983 | # Is the compiler the GNU C compiler? | 
 | 14984 | with_gcc=$GCC_F77 | 
 | 14985 |  | 
 | 14986 | # An ERE matcher. | 
 | 14987 | EGREP=$lt_EGREP | 
 | 14988 |  | 
 | 14989 | # The linker used to build libraries. | 
 | 14990 | LD=$lt_LD_F77 | 
 | 14991 |  | 
 | 14992 | # Whether we need hard or soft links. | 
 | 14993 | LN_S=$lt_LN_S | 
 | 14994 |  | 
 | 14995 | # A BSD-compatible nm program. | 
 | 14996 | NM=$lt_NM | 
 | 14997 |  | 
 | 14998 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14999 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15000 |  | 
 | 15001 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 15002 | MAGIC_CMD=$MAGIC_CMD | 
 | 15003 |  | 
 | 15004 | # Used on cygwin: DLL creation program. | 
 | 15005 | DLLTOOL="$DLLTOOL" | 
 | 15006 |  | 
 | 15007 | # Used on cygwin: object dumper. | 
 | 15008 | OBJDUMP="$OBJDUMP" | 
 | 15009 |  | 
 | 15010 | # Used on cygwin: assembler. | 
 | 15011 | AS="$AS" | 
 | 15012 |  | 
 | 15013 | # The name of the directory that contains temporary libtool files. | 
 | 15014 | objdir=$objdir | 
 | 15015 |  | 
 | 15016 | # How to create reloadable object files. | 
 | 15017 | reload_flag=$lt_reload_flag | 
 | 15018 | reload_cmds=$lt_reload_cmds | 
 | 15019 |  | 
 | 15020 | # How to pass a linker flag through the compiler. | 
 | 15021 | wl=$lt_lt_prog_compiler_wl_F77 | 
 | 15022 |  | 
 | 15023 | # Object file suffix (normally "o"). | 
 | 15024 | objext="$ac_objext" | 
 | 15025 |  | 
 | 15026 | # Old archive suffix (normally "a"). | 
 | 15027 | libext="$libext" | 
 | 15028 |  | 
 | 15029 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15030 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15031 |  | 
 | 15032 | # Executable file suffix (normally ""). | 
 | 15033 | exeext="$exeext" | 
 | 15034 |  | 
 | 15035 | # Additional compiler flags for building library objects. | 
 | 15036 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
 | 15037 | pic_mode=$pic_mode | 
 | 15038 |  | 
 | 15039 | # What is the maximum length of a command? | 
 | 15040 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 15041 |  | 
 | 15042 | # Does compiler simultaneously support -c and -o options? | 
 | 15043 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
 | 15044 |  | 
 | 15045 | # Must we lock files when doing compilation ? | 
 | 15046 | need_locks=$lt_need_locks | 
 | 15047 |  | 
 | 15048 | # Do we need the lib prefix for modules? | 
 | 15049 | need_lib_prefix=$need_lib_prefix | 
 | 15050 |  | 
 | 15051 | # Do we need a version for libraries? | 
 | 15052 | need_version=$need_version | 
 | 15053 |  | 
 | 15054 | # Whether dlopen is supported. | 
 | 15055 | dlopen_support=$enable_dlopen | 
 | 15056 |  | 
 | 15057 | # Whether dlopen of programs is supported. | 
 | 15058 | dlopen_self=$enable_dlopen_self | 
 | 15059 |  | 
 | 15060 | # Whether dlopen of statically linked programs is supported. | 
 | 15061 | dlopen_self_static=$enable_dlopen_self_static | 
 | 15062 |  | 
 | 15063 | # Compiler flag to prevent dynamic linking. | 
 | 15064 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
 | 15065 |  | 
 | 15066 | # Compiler flag to turn off builtin functions. | 
 | 15067 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
 | 15068 |  | 
 | 15069 | # Compiler flag to allow reflexive dlopens. | 
 | 15070 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
 | 15071 |  | 
 | 15072 | # Compiler flag to generate shared objects directly from archives. | 
 | 15073 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
 | 15074 |  | 
 | 15075 | # Compiler flag to generate thread-safe objects. | 
 | 15076 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
 | 15077 |  | 
 | 15078 | # Library versioning type. | 
 | 15079 | version_type=$version_type | 
 | 15080 |  | 
 | 15081 | # Format of library name prefix. | 
 | 15082 | libname_spec=$lt_libname_spec | 
 | 15083 |  | 
 | 15084 | # List of archive names.  First name is the real one, the rest are links. | 
 | 15085 | # The last name is the one that the linker finds with -lNAME. | 
 | 15086 | library_names_spec=$lt_library_names_spec | 
 | 15087 |  | 
 | 15088 | # The coded name of the library, if different from the real name. | 
 | 15089 | soname_spec=$lt_soname_spec | 
 | 15090 |  | 
 | 15091 | # Commands used to build and install an old-style archive. | 
 | 15092 | RANLIB=$lt_RANLIB | 
 | 15093 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
 | 15094 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 15095 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 15096 |  | 
 | 15097 | # Create an old-style archive from a shared archive. | 
 | 15098 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
 | 15099 |  | 
 | 15100 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 15101 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
 | 15102 |  | 
 | 15103 | # Commands used to build and install a shared archive. | 
 | 15104 | archive_cmds=$lt_archive_cmds_F77 | 
 | 15105 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
 | 15106 | postinstall_cmds=$lt_postinstall_cmds | 
 | 15107 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 15108 |  | 
 | 15109 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 15110 | module_cmds=$lt_module_cmds_F77 | 
 | 15111 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
 | 15112 |  | 
 | 15113 | # Commands to strip libraries. | 
 | 15114 | old_striplib=$lt_old_striplib | 
 | 15115 | striplib=$lt_striplib | 
 | 15116 |  | 
 | 15117 | # Dependencies to place before the objects being linked to create a | 
 | 15118 | # shared library. | 
 | 15119 | predep_objects=$lt_predep_objects_F77 | 
 | 15120 |  | 
 | 15121 | # Dependencies to place after the objects being linked to create a | 
 | 15122 | # shared library. | 
 | 15123 | postdep_objects=$lt_postdep_objects_F77 | 
 | 15124 |  | 
 | 15125 | # Dependencies to place before the objects being linked to create a | 
 | 15126 | # shared library. | 
 | 15127 | predeps=$lt_predeps_F77 | 
 | 15128 |  | 
 | 15129 | # Dependencies to place after the objects being linked to create a | 
 | 15130 | # shared library. | 
 | 15131 | postdeps=$lt_postdeps_F77 | 
 | 15132 |  | 
 | 15133 | # The library search path used internally by the compiler when linking | 
 | 15134 | # a shared library. | 
 | 15135 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
 | 15136 |  | 
 | 15137 | # Method to check whether dependent libraries are shared objects. | 
 | 15138 | deplibs_check_method=$lt_deplibs_check_method | 
 | 15139 |  | 
 | 15140 | # Command to use when deplibs_check_method == file_magic. | 
 | 15141 | file_magic_cmd=$lt_file_magic_cmd | 
 | 15142 |  | 
 | 15143 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 15144 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
 | 15145 |  | 
 | 15146 | # Flag that forces no undefined symbols. | 
 | 15147 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
 | 15148 |  | 
 | 15149 | # Commands used to finish a libtool library installation in a directory. | 
 | 15150 | finish_cmds=$lt_finish_cmds | 
 | 15151 |  | 
 | 15152 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 15153 | finish_eval=$lt_finish_eval | 
 | 15154 |  | 
 | 15155 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 15156 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 15157 |  | 
 | 15158 | # Transform the output of nm in a proper C declaration | 
 | 15159 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 15160 |  | 
 | 15161 | # Transform the output of nm in a C name address pair | 
 | 15162 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 15163 |  | 
 | 15164 | # This is the shared library runtime path variable. | 
 | 15165 | runpath_var=$runpath_var | 
 | 15166 |  | 
 | 15167 | # This is the shared library path variable. | 
 | 15168 | shlibpath_var=$shlibpath_var | 
 | 15169 |  | 
 | 15170 | # Is shlibpath searched before the hard-coded library search path? | 
 | 15171 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 15172 |  | 
 | 15173 | # How to hardcode a shared library path into an executable. | 
 | 15174 | hardcode_action=$hardcode_action_F77 | 
 | 15175 |  | 
 | 15176 | # Whether we should hardcode library paths into libraries. | 
 | 15177 | hardcode_into_libs=$hardcode_into_libs | 
 | 15178 |  | 
 | 15179 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 15180 | # This must work even if \$libdir does not exist. | 
 | 15181 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
 | 15182 |  | 
 | 15183 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 15184 | # a binary during linking. This must work even if \$libdir does | 
 | 15185 | # not exist. | 
 | 15186 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
 | 15187 |  | 
 | 15188 | # Whether we need a single -rpath flag with a separated argument. | 
 | 15189 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
 | 15190 |  | 
 | 15191 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 15192 | # resulting binary. | 
 | 15193 | hardcode_direct=$hardcode_direct_F77 | 
 | 15194 |  | 
 | 15195 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 15196 | # resulting binary. | 
 | 15197 | hardcode_minus_L=$hardcode_minus_L_F77 | 
 | 15198 |  | 
 | 15199 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 15200 | # the resulting binary. | 
 | 15201 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
 | 15202 |  | 
 | 15203 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 15204 | # and all subsequent libraries and executables linked against it. | 
 | 15205 | hardcode_automatic=$hardcode_automatic_F77 | 
 | 15206 |  | 
 | 15207 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 15208 | # restored at relink time. | 
 | 15209 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 15210 |  | 
 | 15211 | # Whether libtool must link a program against all its dependency libraries. | 
 | 15212 | link_all_deplibs=$link_all_deplibs_F77 | 
 | 15213 |  | 
 | 15214 | # Compile-time system search path for libraries | 
 | 15215 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 15216 |  | 
 | 15217 | # Run-time system search path for libraries | 
 | 15218 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 15219 |  | 
 | 15220 | # Fix the shell variable \$srcfile for the compiler. | 
 | 15221 | fix_srcfile_path="$fix_srcfile_path_F77" | 
 | 15222 |  | 
 | 15223 | # Set to yes if exported symbols are required. | 
 | 15224 | always_export_symbols=$always_export_symbols_F77 | 
 | 15225 |  | 
 | 15226 | # The commands to list exported symbols. | 
 | 15227 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
 | 15228 |  | 
 | 15229 | # The commands to extract the exported symbol list from a shared archive. | 
 | 15230 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 15231 |  | 
 | 15232 | # Symbols that should not be listed in the preloaded symbols. | 
 | 15233 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
 | 15234 |  | 
 | 15235 | # Symbols that must always be exported. | 
 | 15236 | include_expsyms=$lt_include_expsyms_F77 | 
 | 15237 |  | 
 | 15238 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 15239 |  | 
 | 15240 | __EOF__ | 
 | 15241 |  | 
 | 15242 |  | 
 | 15243 | else | 
 | 15244 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 15245 |   # `config.status --recheck' to rerun these tests and create the | 
 | 15246 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15247 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 15248 |   if test -f "$ltmain_in"; then | 
 | 15249 |     test -f Makefile && make "$ltmain" | 
 | 15250 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15251 | fi | 
 | 15252 |  | 
 | 15253 |  | 
 | 15254 | ac_ext=c | 
 | 15255 | ac_cpp='$CPP $CPPFLAGS' | 
 | 15256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 15257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 15258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 15259 |  | 
 | 15260 | CC="$lt_save_CC" | 
 | 15261 |  | 
 | 15262 | 	else | 
 | 15263 | 	  tagname="" | 
 | 15264 | 	fi | 
 | 15265 | 	;; | 
 | 15266 |  | 
 | 15267 |       GCJ) | 
 | 15268 | 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15269 | 	  ac_ext=c | 
 | 15270 | ac_cpp='$CPP $CPPFLAGS' | 
 | 15271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 15272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 15273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15274 |  | 
 | 15275 |  | 
 | 15276 | # Source file extension for Java test sources. | 
 | 15277 | ac_ext=java | 
 | 15278 |  | 
 | 15279 | # Object file extension for compiled Java test sources. | 
 | 15280 | objext=o | 
 | 15281 | objext_GCJ=$objext | 
 | 15282 |  | 
 | 15283 | # Code to be used in simple compile tests | 
 | 15284 | lt_simple_compile_test_code="class foo {}\n" | 
 | 15285 |  | 
 | 15286 | # Code to be used in simple link tests | 
 | 15287 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 
 | 15288 |  | 
 | 15289 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 15290 |  | 
 | 15291 | # If no C compiler was specified, use CC. | 
 | 15292 | LTCC=${LTCC-"$CC"} | 
 | 15293 |  | 
 | 15294 | # Allow CC to be a program name with arguments. | 
 | 15295 | compiler=$CC | 
 | 15296 |  | 
 | 15297 |  | 
 | 15298 | # Allow CC to be a program name with arguments. | 
 | 15299 | lt_save_CC="$CC" | 
 | 15300 | CC=${GCJ-"gcj"} | 
 | 15301 | compiler=$CC | 
 | 15302 | compiler_GCJ=$CC | 
 | 15303 |  | 
 | 15304 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
 | 15305 | archive_cmds_need_lc_GCJ=no | 
 | 15306 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15307 |  | 
 | 15308 | lt_prog_compiler_no_builtin_flag_GCJ= | 
 | 15309 |  | 
 | 15310 | if test "$GCC" = yes; then | 
 | 15311 |   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
 | 15312 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15313 |  | 
 | 15314 | 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] | 15315 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 15316 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 15317 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15318 | else | 
 | 15319 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 15320 |   ac_outfile=conftest.$ac_objext | 
 | 15321 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 15322 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 15323 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 15324 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 15325 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 15326 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 15327 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 15328 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 15329 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 15330 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 15331 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 15332 |    (eval echo "\"\$as_me:15332: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15333 |    (eval "$lt_compile" 2>conftest.err) | 
 | 15334 |    ac_status=$? | 
 | 15335 |    cat conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 15336 |    echo "$as_me:15336: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15337 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 15338 |      # The compiler can only warn and ignore the option if not recognized | 
 | 15339 |      # So say no if there are warnings | 
 | 15340 |      if test ! -s conftest.err; then | 
 | 15341 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 15342 |      fi | 
 | 15343 |    fi | 
 | 15344 |    $rm conftest* | 
 | 15345 |  | 
 | 15346 | fi | 
 | 15347 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 15348 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 15349 |  | 
 | 15350 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 15351 |     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
 | 15352 | else | 
 | 15353 |     : | 
 | 15354 | fi | 
 | 15355 |  | 
 | 15356 | fi | 
 | 15357 |  | 
 | 15358 | lt_prog_compiler_wl_GCJ= | 
 | 15359 | lt_prog_compiler_pic_GCJ= | 
 | 15360 | lt_prog_compiler_static_GCJ= | 
 | 15361 |  | 
 | 15362 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 15363 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 15364 |  | 
 | 15365 |   if test "$GCC" = yes; then | 
 | 15366 |     lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15367 |     lt_prog_compiler_static_GCJ='-static' | 
 | 15368 |  | 
 | 15369 |     case $host_os in | 
 | 15370 |       aix*) | 
 | 15371 |       # All AIX code is PIC. | 
 | 15372 |       if test "$host_cpu" = ia64; then | 
 | 15373 | 	# AIX 5 now supports IA64 processor | 
 | 15374 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15375 |       fi | 
 | 15376 |       ;; | 
 | 15377 |  | 
 | 15378 |     amigaos*) | 
 | 15379 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 15380 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 15381 |       # like `-m68040'. | 
 | 15382 |       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
 | 15383 |       ;; | 
 | 15384 |  | 
 | 15385 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 15386 |       # PIC is the default for these OSes. | 
 | 15387 |       ;; | 
 | 15388 |  | 
 | 15389 |     mingw* | pw32* | os2*) | 
 | 15390 |       # This hack is so that the source file can tell whether it is being | 
 | 15391 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 15392 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 15393 |       ;; | 
 | 15394 |  | 
 | 15395 |     darwin* | rhapsody*) | 
 | 15396 |       # PIC is the default on this platform | 
 | 15397 |       # Common symbols not allowed in MH_DYLIB files | 
 | 15398 |       lt_prog_compiler_pic_GCJ='-fno-common' | 
 | 15399 |       ;; | 
 | 15400 |  | 
 | 15401 |     msdosdjgpp*) | 
 | 15402 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 15403 |       # on systems that don't support them. | 
 | 15404 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 15405 |       enable_shared=no | 
 | 15406 |       ;; | 
 | 15407 |  | 
 | 15408 |     sysv4*MP*) | 
 | 15409 |       if test -d /usr/nec; then | 
 | 15410 | 	lt_prog_compiler_pic_GCJ=-Kconform_pic | 
 | 15411 |       fi | 
 | 15412 |       ;; | 
 | 15413 |  | 
 | 15414 |     hpux*) | 
 | 15415 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 15416 |       # not for PA HP-UX. | 
 | 15417 |       case "$host_cpu" in | 
 | 15418 |       hppa*64*|ia64*) | 
 | 15419 | 	# +Z the default | 
 | 15420 | 	;; | 
 | 15421 |       *) | 
 | 15422 | 	lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 15423 | 	;; | 
 | 15424 |       esac | 
 | 15425 |       ;; | 
 | 15426 |  | 
 | 15427 |     *) | 
 | 15428 |       lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 15429 |       ;; | 
 | 15430 |     esac | 
 | 15431 |   else | 
 | 15432 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 15433 |     case $host_os in | 
 | 15434 |     aix*) | 
 | 15435 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15436 |       if test "$host_cpu" = ia64; then | 
 | 15437 | 	# AIX 5 now supports IA64 processor | 
 | 15438 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15439 |       else | 
 | 15440 | 	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
 | 15441 |       fi | 
 | 15442 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15443 |       darwin*) | 
 | 15444 |         # PIC is the default on this platform | 
 | 15445 |         # Common symbols not allowed in MH_DYLIB files | 
 | 15446 |        case "$cc_basename" in | 
 | 15447 |          xlc*) | 
 | 15448 |          lt_prog_compiler_pic_GCJ='-qnocommon' | 
 | 15449 |          lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15450 |          ;; | 
 | 15451 |        esac | 
 | 15452 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15453 |  | 
 | 15454 |     mingw* | pw32* | os2*) | 
 | 15455 |       # This hack is so that the source file can tell whether it is being | 
 | 15456 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 15457 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 15458 |       ;; | 
 | 15459 |  | 
 | 15460 |     hpux9* | hpux10* | hpux11*) | 
 | 15461 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15462 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 15463 |       # not for PA HP-UX. | 
 | 15464 |       case "$host_cpu" in | 
 | 15465 |       hppa*64*|ia64*) | 
 | 15466 | 	# +Z the default | 
 | 15467 | 	;; | 
 | 15468 |       *) | 
 | 15469 | 	lt_prog_compiler_pic_GCJ='+Z' | 
 | 15470 | 	;; | 
 | 15471 |       esac | 
 | 15472 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 15473 |       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
 | 15474 |       ;; | 
 | 15475 |  | 
 | 15476 |     irix5* | irix6* | nonstopux*) | 
 | 15477 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15478 |       # PIC (with -KPIC) is the default. | 
 | 15479 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 15480 |       ;; | 
 | 15481 |  | 
 | 15482 |     newsos6) | 
 | 15483 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 15484 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15485 |       ;; | 
 | 15486 |  | 
 | 15487 |     linux*) | 
 | 15488 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15489 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15490 | 	lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15491 | 	lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 15492 | 	lt_prog_compiler_static_GCJ='-static' | 
 | 15493 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15494 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15495 |         lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15496 |         # All Alpha code is PIC. | 
 | 15497 |         lt_prog_compiler_static_GCJ='-non_shared' | 
 | 15498 |         ;; | 
 | 15499 |       esac | 
 | 15500 |       ;; | 
 | 15501 |  | 
 | 15502 |     osf3* | osf4* | osf5*) | 
 | 15503 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15504 |       # All OSF/1 code is PIC. | 
 | 15505 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 15506 |       ;; | 
 | 15507 |  | 
 | 15508 |     sco3.2v5*) | 
 | 15509 |       lt_prog_compiler_pic_GCJ='-Kpic' | 
 | 15510 |       lt_prog_compiler_static_GCJ='-dn' | 
 | 15511 |       ;; | 
 | 15512 |  | 
 | 15513 |     solaris*) | 
 | 15514 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15515 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 15516 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15517 |       ;; | 
 | 15518 |  | 
 | 15519 |     sunos4*) | 
 | 15520 |       lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
 | 15521 |       lt_prog_compiler_pic_GCJ='-PIC' | 
 | 15522 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15523 |       ;; | 
 | 15524 |  | 
 | 15525 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 15526 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15527 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 15528 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15529 |       ;; | 
 | 15530 |  | 
 | 15531 |     sysv4*MP*) | 
 | 15532 |       if test -d /usr/nec ;then | 
 | 15533 | 	lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
 | 15534 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15535 |       fi | 
 | 15536 |       ;; | 
 | 15537 |  | 
 | 15538 |     uts4*) | 
 | 15539 |       lt_prog_compiler_pic_GCJ='-pic' | 
 | 15540 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15541 |       ;; | 
 | 15542 |  | 
 | 15543 |     *) | 
 | 15544 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 15545 |       ;; | 
 | 15546 |     esac | 
 | 15547 |   fi | 
 | 15548 |  | 
 | 15549 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
 | 15550 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 
 | 15551 |  | 
 | 15552 | # | 
 | 15553 | # Check to make sure the PIC flag actually works. | 
 | 15554 | # | 
 | 15555 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15556 |  | 
 | 15557 | 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] | 15558 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 
 | 15559 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
 | 15560 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15561 | else | 
 | 15562 |   lt_prog_compiler_pic_works_GCJ=no | 
 | 15563 |   ac_outfile=conftest.$ac_objext | 
 | 15564 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 15565 |    lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
 | 15566 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 15567 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 15568 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 15569 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 15570 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 15571 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 15572 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 15573 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 15574 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 15575 |    (eval echo "\"\$as_me:15575: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15576 |    (eval "$lt_compile" 2>conftest.err) | 
 | 15577 |    ac_status=$? | 
 | 15578 |    cat conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 15579 |    echo "$as_me:15579: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15580 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 15581 |      # The compiler can only warn and ignore the option if not recognized | 
 | 15582 |      # So say no if there are warnings | 
 | 15583 |      if test ! -s conftest.err; then | 
 | 15584 |        lt_prog_compiler_pic_works_GCJ=yes | 
 | 15585 |      fi | 
 | 15586 |    fi | 
 | 15587 |    $rm conftest* | 
 | 15588 |  | 
 | 15589 | fi | 
 | 15590 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
 | 15591 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 
 | 15592 |  | 
 | 15593 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
 | 15594 |     case $lt_prog_compiler_pic_GCJ in | 
 | 15595 |      "" | " "*) ;; | 
 | 15596 |      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
 | 15597 |      esac | 
 | 15598 | else | 
 | 15599 |     lt_prog_compiler_pic_GCJ= | 
 | 15600 |      lt_prog_compiler_can_build_shared_GCJ=no | 
 | 15601 | fi | 
 | 15602 |  | 
 | 15603 | fi | 
 | 15604 | case "$host_os" in | 
 | 15605 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 15606 |   *djgpp*) | 
 | 15607 |     lt_prog_compiler_pic_GCJ= | 
 | 15608 |     ;; | 
 | 15609 |   *) | 
 | 15610 |     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
 | 15611 |     ;; | 
 | 15612 | esac | 
 | 15613 |  | 
 | 15614 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 15615 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 15616 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
 | 15617 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15618 | else | 
 | 15619 |   lt_cv_prog_compiler_c_o_GCJ=no | 
 | 15620 |    $rm -r conftest 2>/dev/null | 
 | 15621 |    mkdir conftest | 
 | 15622 |    cd conftest | 
 | 15623 |    mkdir out | 
 | 15624 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 15625 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15626 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 15627 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 15628 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 15629 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 15630 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 15631 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 15632 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 15633 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 15634 |    -e 's:$: $lt_compiler_flag:'` | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 15635 |    (eval echo "\"\$as_me:15635: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15636 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 15637 |    ac_status=$? | 
 | 15638 |    cat out/conftest.err >&5 | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 15639 |    echo "$as_me:15639: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15640 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 15641 |    then | 
 | 15642 |      # The compiler can only warn and ignore the option if not recognized | 
 | 15643 |      # So say no if there are warnings | 
 | 15644 |      if test ! -s out/conftest.err; then | 
 | 15645 |        lt_cv_prog_compiler_c_o_GCJ=yes | 
 | 15646 |      fi | 
 | 15647 |    fi | 
 | 15648 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15649 |    $rm conftest* | 
 | 15650 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 15651 |    # template instantiation | 
 | 15652 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 15653 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15654 |    cd .. | 
 | 15655 |    rmdir conftest | 
 | 15656 |    $rm conftest* | 
 | 15657 |  | 
 | 15658 | fi | 
 | 15659 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
 | 15660 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 
 | 15661 |  | 
 | 15662 |  | 
 | 15663 | hard_links="nottested" | 
 | 15664 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
 | 15665 |   # do not overwrite the value of need_locks provided by the user | 
 | 15666 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 15667 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 15668 |   hard_links=yes | 
 | 15669 |   $rm conftest* | 
 | 15670 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 15671 |   touch conftest.a | 
 | 15672 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 15673 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 15674 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 15675 | echo "${ECHO_T}$hard_links" >&6 | 
 | 15676 |   if test "$hard_links" = no; then | 
 | 15677 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 15678 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 15679 |     need_locks=warn | 
 | 15680 |   fi | 
 | 15681 | else | 
 | 15682 |   need_locks=no | 
 | 15683 | fi | 
 | 15684 |  | 
 | 15685 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 15686 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 15687 |  | 
 | 15688 |   runpath_var= | 
 | 15689 |   allow_undefined_flag_GCJ= | 
 | 15690 |   enable_shared_with_static_runtimes_GCJ=no | 
 | 15691 |   archive_cmds_GCJ= | 
 | 15692 |   archive_expsym_cmds_GCJ= | 
 | 15693 |   old_archive_From_new_cmds_GCJ= | 
 | 15694 |   old_archive_from_expsyms_cmds_GCJ= | 
 | 15695 |   export_dynamic_flag_spec_GCJ= | 
 | 15696 |   whole_archive_flag_spec_GCJ= | 
 | 15697 |   thread_safe_flag_spec_GCJ= | 
 | 15698 |   hardcode_libdir_flag_spec_GCJ= | 
 | 15699 |   hardcode_libdir_flag_spec_ld_GCJ= | 
 | 15700 |   hardcode_libdir_separator_GCJ= | 
 | 15701 |   hardcode_direct_GCJ=no | 
 | 15702 |   hardcode_minus_L_GCJ=no | 
 | 15703 |   hardcode_shlibpath_var_GCJ=unsupported | 
 | 15704 |   link_all_deplibs_GCJ=unknown | 
 | 15705 |   hardcode_automatic_GCJ=no | 
 | 15706 |   module_cmds_GCJ= | 
 | 15707 |   module_expsym_cmds_GCJ= | 
 | 15708 |   always_export_symbols_GCJ=no | 
 | 15709 |   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 15710 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 15711 |   # included in the symbol list | 
 | 15712 |   include_expsyms_GCJ= | 
 | 15713 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 15714 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 15715 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 15716 |   # as well as any symbol that contains `d'. | 
 | 15717 |   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
 | 15718 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 15719 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 15720 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 15721 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 15722 |   # preloaded symbol tables. | 
 | 15723 |   extract_expsyms_cmds= | 
 | 15724 |  | 
 | 15725 |   case $host_os in | 
 | 15726 |   cygwin* | mingw* | pw32*) | 
 | 15727 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 15728 |     # When not using gcc, we currently assume that we are using | 
 | 15729 |     # Microsoft Visual C++. | 
 | 15730 |     if test "$GCC" != yes; then | 
 | 15731 |       with_gnu_ld=no | 
 | 15732 |     fi | 
 | 15733 |     ;; | 
 | 15734 |   openbsd*) | 
 | 15735 |     with_gnu_ld=no | 
 | 15736 |     ;; | 
 | 15737 |   esac | 
 | 15738 |  | 
 | 15739 |   ld_shlibs_GCJ=yes | 
 | 15740 |   if test "$with_gnu_ld" = yes; then | 
 | 15741 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 15742 |     wlarc='${wl}' | 
 | 15743 |  | 
 | 15744 |     # See if GNU ld supports shared libraries. | 
 | 15745 |     case $host_os in | 
 | 15746 |     aix3* | aix4* | aix5*) | 
 | 15747 |       # On AIX/PPC, the GNU linker is very broken | 
 | 15748 |       if test "$host_cpu" != ia64; then | 
 | 15749 | 	ld_shlibs_GCJ=no | 
 | 15750 | 	cat <<EOF 1>&2 | 
 | 15751 |  | 
 | 15752 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 15753 | *** to be unable to reliably create shared libraries on AIX. | 
 | 15754 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 15755 | *** really care for shared libraries, you may want to modify your PATH | 
 | 15756 | *** so that a non-GNU linker is found, and then restart. | 
 | 15757 |  | 
 | 15758 | EOF | 
 | 15759 |       fi | 
 | 15760 |       ;; | 
 | 15761 |  | 
 | 15762 |     amigaos*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15763 |       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] | 15764 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15765 |       hardcode_minus_L_GCJ=yes | 
 | 15766 |  | 
 | 15767 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 15768 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 15769 |       # to version 4, is to share data among multiple programs linked | 
 | 15770 |       # with the same dynamic library.  Since this doesn't match the | 
 | 15771 |       # behavior of shared libraries on other platforms, we can't use | 
 | 15772 |       # them. | 
 | 15773 |       ld_shlibs_GCJ=no | 
 | 15774 |       ;; | 
 | 15775 |  | 
 | 15776 |     beos*) | 
 | 15777 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15778 | 	allow_undefined_flag_GCJ=unsupported | 
 | 15779 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 15780 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 15781 | 	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15782 |       else | 
 | 15783 | 	ld_shlibs_GCJ=no | 
 | 15784 |       fi | 
 | 15785 |       ;; | 
 | 15786 |  | 
 | 15787 |     cygwin* | mingw* | pw32*) | 
 | 15788 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
 | 15789 |       # as there is no search path for DLLs. | 
 | 15790 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15791 |       allow_undefined_flag_GCJ=unsupported | 
 | 15792 |       always_export_symbols_GCJ=no | 
 | 15793 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 15794 |       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 15795 |  | 
 | 15796 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 15797 |         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 15798 | 	# If the export-symbols file already is a .def file (1st line | 
 | 15799 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 15800 | 	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 15801 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 15802 | 	else | 
 | 15803 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 15804 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15805 | 	fi;$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] | 15806 |       else | 
 | 15807 | 	ld_shlibs=no | 
 | 15808 |       fi | 
 | 15809 |       ;; | 
 | 15810 |  | 
 | 15811 |     netbsd*) | 
 | 15812 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 15813 | 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 15814 | 	wlarc= | 
 | 15815 |       else | 
 | 15816 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15817 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15818 |       fi | 
 | 15819 |       ;; | 
 | 15820 |  | 
 | 15821 |     solaris* | sysv5*) | 
 | 15822 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 15823 | 	ld_shlibs_GCJ=no | 
 | 15824 | 	cat <<EOF 1>&2 | 
 | 15825 |  | 
 | 15826 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 15827 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 15828 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 15829 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 15830 | *** your PATH or compiler configuration so that the native linker is | 
 | 15831 | *** used, and then restart. | 
 | 15832 |  | 
 | 15833 | EOF | 
 | 15834 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15835 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15836 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15837 |       else | 
 | 15838 | 	ld_shlibs_GCJ=no | 
 | 15839 |       fi | 
 | 15840 |       ;; | 
 | 15841 |  | 
 | 15842 |     sunos4*) | 
 | 15843 |       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 15844 |       wlarc= | 
 | 15845 |       hardcode_direct_GCJ=yes | 
 | 15846 |       hardcode_shlibpath_var_GCJ=no | 
 | 15847 |       ;; | 
 | 15848 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15849 |   linux*) | 
 | 15850 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15851 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15852 | 	archive_cmds_GCJ="$tmp_archive_cmds" | 
 | 15853 |       supports_anon_versioning=no | 
 | 15854 |       case `$LD -v 2>/dev/null` in | 
 | 15855 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 15856 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 15857 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 15858 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 15859 |         *) supports_anon_versioning=yes ;; | 
 | 15860 |       esac | 
 | 15861 |       if test $supports_anon_versioning = yes; then | 
 | 15862 |         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver; | 
 | 15863 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 15864 |       else | 
 | 15865 |         archive_expsym_cmds_GCJ="$tmp_archive_cmds" | 
 | 15866 |       fi | 
 | 15867 |     else | 
 | 15868 |       ld_shlibs_GCJ=no | 
 | 15869 |     fi | 
 | 15870 |     ;; | 
 | 15871 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15872 |     *) | 
 | 15873 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15874 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15875 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15876 |       else | 
 | 15877 | 	ld_shlibs_GCJ=no | 
 | 15878 |       fi | 
 | 15879 |       ;; | 
 | 15880 |     esac | 
 | 15881 |  | 
 | 15882 |     if test "$ld_shlibs_GCJ" = yes; then | 
 | 15883 |       runpath_var=LD_RUN_PATH | 
 | 15884 |       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
 | 15885 |       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
 | 15886 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 15887 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 15888 |  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 15889 |       else | 
 | 15890 |   	whole_archive_flag_spec_GCJ= | 
 | 15891 |       fi | 
 | 15892 |     fi | 
 | 15893 |   else | 
 | 15894 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 15895 |     case $host_os in | 
 | 15896 |     aix3*) | 
 | 15897 |       allow_undefined_flag_GCJ=unsupported | 
 | 15898 |       always_export_symbols_GCJ=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15899 |       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] | 15900 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 15901 |       # are no directories specified by -L. | 
 | 15902 |       hardcode_minus_L_GCJ=yes | 
 | 15903 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 15904 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 15905 | 	# broken collect2. | 
 | 15906 | 	hardcode_direct_GCJ=unsupported | 
 | 15907 |       fi | 
 | 15908 |       ;; | 
 | 15909 |  | 
 | 15910 |     aix4* | aix5*) | 
 | 15911 |       if test "$host_cpu" = ia64; then | 
 | 15912 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 15913 | 	# have to do anything special. | 
 | 15914 | 	aix_use_runtimelinking=no | 
 | 15915 | 	exp_sym_flag='-Bexport' | 
 | 15916 | 	no_entry_flag="" | 
 | 15917 |       else | 
 | 15918 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 15919 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 15920 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 15921 | 	  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' | 
 | 15922 | 	else | 
 | 15923 | 	  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' | 
 | 15924 | 	fi | 
 | 15925 | 	aix_use_runtimelinking=no | 
 | 15926 |  | 
 | 15927 | 	# Test if we are trying to use run time linking or normal | 
 | 15928 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 15929 | 	# need to do runtime linking. | 
 | 15930 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 15931 | 	  for ld_flag in $LDFLAGS; do | 
 | 15932 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 15933 |   	    aix_use_runtimelinking=yes | 
 | 15934 |   	    break | 
 | 15935 |   	  fi | 
 | 15936 | 	  done | 
 | 15937 | 	esac | 
 | 15938 |  | 
 | 15939 | 	exp_sym_flag='-bexport' | 
 | 15940 | 	no_entry_flag='-bnoentry' | 
 | 15941 |       fi | 
 | 15942 |  | 
 | 15943 |       # When large executables or shared objects are built, AIX ld can | 
 | 15944 |       # have problems creating the table of contents.  If linking a library | 
 | 15945 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 15946 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 15947 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 15948 |  | 
 | 15949 |       archive_cmds_GCJ='' | 
 | 15950 |       hardcode_direct_GCJ=yes | 
 | 15951 |       hardcode_libdir_separator_GCJ=':' | 
 | 15952 |       link_all_deplibs_GCJ=yes | 
 | 15953 |  | 
 | 15954 |       if test "$GCC" = yes; then | 
 | 15955 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 15956 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 15957 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 15958 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 15959 | 	  if test -f "$collect2name" && \ | 
 | 15960 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 15961 | 	  then | 
 | 15962 |   	  # We have reworked collect2 | 
 | 15963 |   	  hardcode_direct_GCJ=yes | 
 | 15964 | 	  else | 
 | 15965 |   	  # We have old collect2 | 
 | 15966 |   	  hardcode_direct_GCJ=unsupported | 
 | 15967 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 15968 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 15969 |   	  # to unsupported forces relinking | 
 | 15970 |   	  hardcode_minus_L_GCJ=yes | 
 | 15971 |   	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15972 |   	  hardcode_libdir_separator_GCJ= | 
 | 15973 | 	  fi | 
 | 15974 | 	esac | 
 | 15975 | 	shared_flag='-shared' | 
 | 15976 |       else | 
 | 15977 | 	# not using gcc | 
 | 15978 | 	if test "$host_cpu" = ia64; then | 
 | 15979 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 15980 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 15981 | 	  shared_flag='-G' | 
 | 15982 | 	else | 
 | 15983 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 15984 | 	    shared_flag='${wl}-G' | 
 | 15985 | 	  else | 
 | 15986 | 	    shared_flag='${wl}-bM:SRE' | 
 | 15987 |   	fi | 
 | 15988 | 	fi | 
 | 15989 |       fi | 
 | 15990 |  | 
 | 15991 |       # It seems that -bexpall does not export symbols beginning with | 
 | 15992 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 15993 |       always_export_symbols_GCJ=yes | 
 | 15994 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 15995 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 15996 | 	# -berok will link without error, but may produce a broken library. | 
 | 15997 | 	allow_undefined_flag_GCJ='-berok' | 
 | 15998 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 15999 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16000 | /* confdefs.h.  */ | 
 | 16001 | _ACEOF | 
 | 16002 | cat confdefs.h >>conftest.$ac_ext | 
 | 16003 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16004 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16005 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16006 | int | 
 | 16007 | main () | 
 | 16008 | { | 
 | 16009 |  | 
 | 16010 |   ; | 
 | 16011 |   return 0; | 
 | 16012 | } | 
 | 16013 | _ACEOF | 
 | 16014 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16016 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16017 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16018 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 16019 |   rm -f conftest.er1 | 
 | 16020 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16021 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16022 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16023 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 16024 | 			 || test ! -s conftest.err' | 
 | 16025 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16026 |   (eval $ac_try) 2>&5 | 
 | 16027 |   ac_status=$? | 
 | 16028 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16029 |   (exit $ac_status); }; } && | 
 | 16030 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16031 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16032 |   (eval $ac_try) 2>&5 | 
 | 16033 |   ac_status=$? | 
 | 16034 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16035 |   (exit $ac_status); }; }; then | 
 | 16036 |  | 
 | 16037 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 16038 | }'` | 
 | 16039 | # Check for a 64-bit object if we didn't find anything. | 
 | 16040 | 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; } | 
 | 16041 | }'`; fi | 
 | 16042 | else | 
 | 16043 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16044 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16045 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16046 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16047 | rm -f conftest.err conftest.$ac_objext \ | 
 | 16048 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16049 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 16050 |  | 
 | 16051 |        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 16052 | 	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" | 
 | 16053 |        else | 
 | 16054 | 	if test "$host_cpu" = ia64; then | 
 | 16055 | 	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
 | 16056 | 	  allow_undefined_flag_GCJ="-z nodefs" | 
 | 16057 | 	  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" | 
 | 16058 | 	else | 
 | 16059 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 16060 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16061 | /* confdefs.h.  */ | 
 | 16062 | _ACEOF | 
 | 16063 | cat confdefs.h >>conftest.$ac_ext | 
 | 16064 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16065 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16066 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16067 | int | 
 | 16068 | main () | 
 | 16069 | { | 
 | 16070 |  | 
 | 16071 |   ; | 
 | 16072 |   return 0; | 
 | 16073 | } | 
 | 16074 | _ACEOF | 
 | 16075 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16077 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16078 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16079 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 16080 |   rm -f conftest.er1 | 
 | 16081 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16082 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16083 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16084 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 16085 | 			 || test ! -s conftest.err' | 
 | 16086 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16087 |   (eval $ac_try) 2>&5 | 
 | 16088 |   ac_status=$? | 
 | 16089 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16090 |   (exit $ac_status); }; } && | 
 | 16091 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16092 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16093 |   (eval $ac_try) 2>&5 | 
 | 16094 |   ac_status=$? | 
 | 16095 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16096 |   (exit $ac_status); }; }; then | 
 | 16097 |  | 
 | 16098 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 16099 | }'` | 
 | 16100 | # Check for a 64-bit object if we didn't find anything. | 
 | 16101 | 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; } | 
 | 16102 | }'`; fi | 
 | 16103 | else | 
 | 16104 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16105 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16106 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16107 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16108 | rm -f conftest.err conftest.$ac_objext \ | 
 | 16109 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16110 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 16111 |  | 
 | 16112 | 	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 16113 | 	  # Warning - without using the other run time loading flags, | 
 | 16114 | 	  # -berok will link without error, but may produce a broken library. | 
 | 16115 | 	  no_undefined_flag_GCJ=' ${wl}-bernotok' | 
 | 16116 | 	  allow_undefined_flag_GCJ=' ${wl}-berok' | 
 | 16117 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 16118 | 	  always_export_symbols_GCJ=yes | 
 | 16119 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 16120 | 	  whole_archive_flag_spec_GCJ=' ' | 
 | 16121 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 16122 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16123 | 	  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] | 16124 | 	fi | 
 | 16125 |       fi | 
 | 16126 |       ;; | 
 | 16127 |  | 
 | 16128 |     amigaos*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16129 |       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] | 16130 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16131 |       hardcode_minus_L_GCJ=yes | 
 | 16132 |       # see comment about different semantics on the GNU ld section | 
 | 16133 |       ld_shlibs_GCJ=no | 
 | 16134 |       ;; | 
 | 16135 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16136 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16137 |       export_dynamic_flag_spec_GCJ=-rdynamic | 
 | 16138 |       ;; | 
 | 16139 |  | 
 | 16140 |     cygwin* | mingw* | pw32*) | 
 | 16141 |       # When not using gcc, we currently assume that we are using | 
 | 16142 |       # Microsoft Visual C++. | 
 | 16143 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 16144 |       # no search path for DLLs. | 
 | 16145 |       hardcode_libdir_flag_spec_GCJ=' ' | 
 | 16146 |       allow_undefined_flag_GCJ=unsupported | 
 | 16147 |       # Tell ltmain to make .lib files, not .a files. | 
 | 16148 |       libext=lib | 
 | 16149 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16150 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16151 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16152 |       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] | 16153 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 16154 |       old_archive_From_new_cmds_GCJ='true' | 
 | 16155 |       # FIXME: Should let the user specify the lib program. | 
 | 16156 |       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 16157 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 16158 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 16159 |       ;; | 
 | 16160 |  | 
 | 16161 |     darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16162 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16163 |         rhapsody* | darwin1.[012]) | 
 | 16164 |          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | 
 | 16165 |          ;; | 
 | 16166 |        *) # Darwin 1.3 on | 
 | 16167 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 16168 |            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 16169 |          else | 
 | 16170 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 16171 |              10.[012]) | 
 | 16172 |                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 16173 |                ;; | 
 | 16174 |              10.*) | 
 | 16175 |                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | 
 | 16176 |                ;; | 
 | 16177 |            esac | 
 | 16178 |          fi | 
 | 16179 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16180 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16181 |       archive_cmds_need_lc_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16182 |       hardcode_direct_GCJ=no | 
 | 16183 |       hardcode_automatic_GCJ=yes | 
 | 16184 |       hardcode_shlibpath_var_GCJ=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16185 |       whole_archive_flag_spec_GCJ='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16186 |       link_all_deplibs_GCJ=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16187 |     if test "$GCC" = yes ; then | 
 | 16188 |     	output_verbose_link_cmd='echo' | 
 | 16189 |         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 16190 |       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 16191 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 16192 |       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}' | 
 | 16193 |       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}' | 
 | 16194 |     else | 
 | 16195 |       case "$cc_basename" in | 
 | 16196 |         xlc*) | 
 | 16197 |          output_verbose_link_cmd='echo' | 
 | 16198 |          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 16199 |          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 16200 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 16201 |          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}' | 
 | 16202 |           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}' | 
 | 16203 |           ;; | 
 | 16204 |        *) | 
 | 16205 |          ld_shlibs_GCJ=no | 
 | 16206 |           ;; | 
 | 16207 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16208 |     fi | 
 | 16209 |       ;; | 
 | 16210 |  | 
 | 16211 |     dgux*) | 
 | 16212 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16213 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16214 |       hardcode_shlibpath_var_GCJ=no | 
 | 16215 |       ;; | 
 | 16216 |  | 
 | 16217 |     freebsd1*) | 
 | 16218 |       ld_shlibs_GCJ=no | 
 | 16219 |       ;; | 
 | 16220 |  | 
 | 16221 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 16222 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 16223 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 16224 |     # extra space). | 
 | 16225 |     freebsd2.2*) | 
 | 16226 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 16227 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16228 |       hardcode_direct_GCJ=yes | 
 | 16229 |       hardcode_shlibpath_var_GCJ=no | 
 | 16230 |       ;; | 
 | 16231 |  | 
 | 16232 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 16233 |     freebsd2*) | 
 | 16234 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 16235 |       hardcode_direct_GCJ=yes | 
 | 16236 |       hardcode_minus_L_GCJ=yes | 
 | 16237 |       hardcode_shlibpath_var_GCJ=no | 
 | 16238 |       ;; | 
 | 16239 |  | 
 | 16240 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16241 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16242 |       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16243 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16244 |       hardcode_direct_GCJ=yes | 
 | 16245 |       hardcode_shlibpath_var_GCJ=no | 
 | 16246 |       ;; | 
 | 16247 |  | 
 | 16248 |     hpux9*) | 
 | 16249 |       if test "$GCC" = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16250 | 	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] | 16251 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16252 | 	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] | 16253 |       fi | 
 | 16254 |       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 16255 |       hardcode_libdir_separator_GCJ=: | 
 | 16256 |       hardcode_direct_GCJ=yes | 
 | 16257 |  | 
 | 16258 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 16259 |       # but as the default location of the library. | 
 | 16260 |       hardcode_minus_L_GCJ=yes | 
 | 16261 |       export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 16262 |       ;; | 
 | 16263 |  | 
 | 16264 |     hpux10* | hpux11*) | 
 | 16265 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 16266 | 	case "$host_cpu" in | 
 | 16267 | 	hppa*64*|ia64*) | 
 | 16268 | 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16269 | 	  ;; | 
 | 16270 | 	*) | 
 | 16271 | 	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16272 | 	  ;; | 
 | 16273 | 	esac | 
 | 16274 |       else | 
 | 16275 | 	case "$host_cpu" in | 
 | 16276 | 	hppa*64*|ia64*) | 
 | 16277 | 	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16278 | 	  ;; | 
 | 16279 | 	*) | 
 | 16280 | 	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 16281 | 	  ;; | 
 | 16282 | 	esac | 
 | 16283 |       fi | 
 | 16284 |       if test "$with_gnu_ld" = no; then | 
 | 16285 | 	case "$host_cpu" in | 
 | 16286 | 	hppa*64*) | 
 | 16287 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 16288 | 	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
 | 16289 | 	  hardcode_libdir_separator_GCJ=: | 
 | 16290 | 	  hardcode_direct_GCJ=no | 
 | 16291 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 16292 | 	  ;; | 
 | 16293 | 	ia64*) | 
 | 16294 | 	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16295 | 	  hardcode_direct_GCJ=no | 
 | 16296 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 16297 |  | 
 | 16298 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 16299 | 	  # but as the default location of the library. | 
 | 16300 | 	  hardcode_minus_L_GCJ=yes | 
 | 16301 | 	  ;; | 
 | 16302 | 	*) | 
 | 16303 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 16304 | 	  hardcode_libdir_separator_GCJ=: | 
 | 16305 | 	  hardcode_direct_GCJ=yes | 
 | 16306 | 	  export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 16307 |  | 
 | 16308 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 16309 | 	  # but as the default location of the library. | 
 | 16310 | 	  hardcode_minus_L_GCJ=yes | 
 | 16311 | 	  ;; | 
 | 16312 | 	esac | 
 | 16313 |       fi | 
 | 16314 |       ;; | 
 | 16315 |  | 
 | 16316 |     irix5* | irix6* | nonstopux*) | 
 | 16317 |       if test "$GCC" = yes; then | 
 | 16318 | 	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' | 
 | 16319 |       else | 
 | 16320 | 	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' | 
 | 16321 | 	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
 | 16322 |       fi | 
 | 16323 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 16324 |       hardcode_libdir_separator_GCJ=: | 
 | 16325 |       link_all_deplibs_GCJ=yes | 
 | 16326 |       ;; | 
 | 16327 |  | 
 | 16328 |     netbsd*) | 
 | 16329 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 16330 | 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 16331 |       else | 
 | 16332 | 	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 16333 |       fi | 
 | 16334 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16335 |       hardcode_direct_GCJ=yes | 
 | 16336 |       hardcode_shlibpath_var_GCJ=no | 
 | 16337 |       ;; | 
 | 16338 |  | 
 | 16339 |     newsos6) | 
 | 16340 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16341 |       hardcode_direct_GCJ=yes | 
 | 16342 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 16343 |       hardcode_libdir_separator_GCJ=: | 
 | 16344 |       hardcode_shlibpath_var_GCJ=no | 
 | 16345 |       ;; | 
 | 16346 |  | 
 | 16347 |     openbsd*) | 
 | 16348 |       hardcode_direct_GCJ=yes | 
 | 16349 |       hardcode_shlibpath_var_GCJ=no | 
 | 16350 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 16351 | 	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] | 16352 | 	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] | 16353 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 16354 | 	export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 16355 |       else | 
 | 16356 |        case $host_os in | 
 | 16357 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 16358 | 	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 16359 | 	   hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16360 | 	   ;; | 
 | 16361 | 	 *) | 
 | 16362 | 	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16363 | 	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 16364 | 	   ;; | 
 | 16365 |        esac | 
 | 16366 |       fi | 
 | 16367 |       ;; | 
 | 16368 |  | 
 | 16369 |     os2*) | 
 | 16370 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16371 |       hardcode_minus_L_GCJ=yes | 
 | 16372 |       allow_undefined_flag_GCJ=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16373 |       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] | 16374 |       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 16375 |       ;; | 
 | 16376 |  | 
 | 16377 |     osf3*) | 
 | 16378 |       if test "$GCC" = yes; then | 
 | 16379 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16380 | 	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' | 
 | 16381 |       else | 
 | 16382 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 16383 | 	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' | 
 | 16384 |       fi | 
 | 16385 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 16386 |       hardcode_libdir_separator_GCJ=: | 
 | 16387 |       ;; | 
 | 16388 |  | 
 | 16389 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 16390 |       if test "$GCC" = yes; then | 
 | 16391 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16392 | 	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' | 
 | 16393 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 16394 |       else | 
 | 16395 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 16396 | 	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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16397 | 	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; $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' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16398 | 	# Both c and cxx compiler support -rpath directly | 
 | 16399 | 	hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
 | 16400 |       fi | 
 | 16401 |       hardcode_libdir_separator_GCJ=: | 
 | 16402 |       ;; | 
 | 16403 |  | 
 | 16404 |     sco3.2v5*) | 
 | 16405 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16406 |       hardcode_shlibpath_var_GCJ=no | 
 | 16407 |       export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
 | 16408 |       runpath_var=LD_RUN_PATH | 
 | 16409 |       hardcode_runpath_var=yes | 
 | 16410 |       ;; | 
 | 16411 |  | 
 | 16412 |     solaris*) | 
 | 16413 |       no_undefined_flag_GCJ=' -z text' | 
 | 16414 |       if test "$GCC" = yes; then | 
 | 16415 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16416 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 16417 |       else | 
 | 16418 | 	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16419 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 16420 |       fi | 
 | 16421 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16422 |       hardcode_shlibpath_var_GCJ=no | 
 | 16423 |       case $host_os in | 
 | 16424 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 16425 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 16426 | 	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
 | 16427 |       esac | 
 | 16428 |       link_all_deplibs_GCJ=yes | 
 | 16429 |       ;; | 
 | 16430 |  | 
 | 16431 |     sunos4*) | 
 | 16432 |       if test "x$host_vendor" = xsequent; then | 
 | 16433 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 16434 | 	# files that make .init and .fini sections work. | 
 | 16435 | 	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16436 |       else | 
 | 16437 | 	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 16438 |       fi | 
 | 16439 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16440 |       hardcode_direct_GCJ=yes | 
 | 16441 |       hardcode_minus_L_GCJ=yes | 
 | 16442 |       hardcode_shlibpath_var_GCJ=no | 
 | 16443 |       ;; | 
 | 16444 |  | 
 | 16445 |     sysv4) | 
 | 16446 |       case $host_vendor in | 
 | 16447 | 	sni) | 
 | 16448 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16449 | 	  hardcode_direct_GCJ=yes # is this really true??? | 
 | 16450 | 	;; | 
 | 16451 | 	siemens) | 
 | 16452 | 	  ## LD is ld it makes a PLAMLIB | 
 | 16453 | 	  ## CC just makes a GrossModule. | 
 | 16454 | 	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 16455 | 	  reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
 | 16456 | 	  hardcode_direct_GCJ=no | 
 | 16457 |         ;; | 
 | 16458 | 	motorola) | 
 | 16459 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16460 | 	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
 | 16461 | 	;; | 
 | 16462 |       esac | 
 | 16463 |       runpath_var='LD_RUN_PATH' | 
 | 16464 |       hardcode_shlibpath_var_GCJ=no | 
 | 16465 |       ;; | 
 | 16466 |  | 
 | 16467 |     sysv4.3*) | 
 | 16468 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16469 |       hardcode_shlibpath_var_GCJ=no | 
 | 16470 |       export_dynamic_flag_spec_GCJ='-Bexport' | 
 | 16471 |       ;; | 
 | 16472 |  | 
 | 16473 |     sysv4*MP*) | 
 | 16474 |       if test -d /usr/nec; then | 
 | 16475 | 	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16476 | 	hardcode_shlibpath_var_GCJ=no | 
 | 16477 | 	runpath_var=LD_RUN_PATH | 
 | 16478 | 	hardcode_runpath_var=yes | 
 | 16479 | 	ld_shlibs_GCJ=yes | 
 | 16480 |       fi | 
 | 16481 |       ;; | 
 | 16482 |  | 
 | 16483 |     sysv4.2uw2*) | 
 | 16484 |       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 16485 |       hardcode_direct_GCJ=yes | 
 | 16486 |       hardcode_minus_L_GCJ=no | 
 | 16487 |       hardcode_shlibpath_var_GCJ=no | 
 | 16488 |       hardcode_runpath_var=yes | 
 | 16489 |       runpath_var=LD_RUN_PATH | 
 | 16490 |       ;; | 
 | 16491 |  | 
 | 16492 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 16493 |       no_undefined_flag_GCJ='${wl}-z ${wl}text' | 
 | 16494 |       if test "$GCC" = yes; then | 
 | 16495 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16496 |       else | 
 | 16497 | 	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16498 |       fi | 
 | 16499 |       runpath_var='LD_RUN_PATH' | 
 | 16500 |       hardcode_shlibpath_var_GCJ=no | 
 | 16501 |       ;; | 
 | 16502 |  | 
 | 16503 |     sysv5*) | 
 | 16504 |       no_undefined_flag_GCJ=' -z text' | 
 | 16505 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 16506 |       # object files and a static libstdc++, better avoid it by now | 
 | 16507 |       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16508 |       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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] | 16509 |       hardcode_libdir_flag_spec_GCJ= | 
 | 16510 |       hardcode_shlibpath_var_GCJ=no | 
 | 16511 |       runpath_var='LD_RUN_PATH' | 
 | 16512 |       ;; | 
 | 16513 |  | 
 | 16514 |     uts4*) | 
 | 16515 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16516 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16517 |       hardcode_shlibpath_var_GCJ=no | 
 | 16518 |       ;; | 
 | 16519 |  | 
 | 16520 |     *) | 
 | 16521 |       ld_shlibs_GCJ=no | 
 | 16522 |       ;; | 
 | 16523 |     esac | 
 | 16524 |   fi | 
 | 16525 |  | 
 | 16526 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
 | 16527 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 
 | 16528 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
 | 16529 |  | 
 | 16530 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 16531 | if test "$GCC" = yes; then | 
 | 16532 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 16533 | fi | 
 | 16534 |  | 
 | 16535 | # | 
 | 16536 | # Do we need to explicitly link libc? | 
 | 16537 | # | 
 | 16538 | case "x$archive_cmds_need_lc_GCJ" in | 
 | 16539 | x|xyes) | 
 | 16540 |   # Assume -lc should be added | 
 | 16541 |   archive_cmds_need_lc_GCJ=yes | 
 | 16542 |  | 
 | 16543 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 16544 |     case $archive_cmds_GCJ in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16545 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16546 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 16547 |       ;; | 
 | 16548 |     '$CC '*) | 
 | 16549 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 16550 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 16551 |       # to ld, don't add -lc before -lgcc. | 
 | 16552 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 16553 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 16554 |       $rm conftest* | 
 | 16555 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16556 |  | 
 | 16557 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 16558 |   (eval $ac_compile) 2>&5 | 
 | 16559 |   ac_status=$? | 
 | 16560 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16561 |   (exit $ac_status); } 2>conftest.err; then | 
 | 16562 |         soname=conftest | 
 | 16563 |         lib=conftest | 
 | 16564 |         libobjs=conftest.$ac_objext | 
 | 16565 |         deplibs= | 
 | 16566 |         wl=$lt_prog_compiler_wl_GCJ | 
 | 16567 |         compiler_flags=-v | 
 | 16568 |         linker_flags=-v | 
 | 16569 |         verstring= | 
 | 16570 |         output_objdir=. | 
 | 16571 |         libname=conftest | 
 | 16572 |         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
 | 16573 |         allow_undefined_flag_GCJ= | 
 | 16574 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 16575 |   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 16576 |   ac_status=$? | 
 | 16577 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16578 |   (exit $ac_status); } | 
 | 16579 |         then | 
 | 16580 | 	  archive_cmds_need_lc_GCJ=no | 
 | 16581 |         else | 
 | 16582 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 16583 |         fi | 
 | 16584 |         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
 | 16585 |       else | 
 | 16586 |         cat conftest.err 1>&5 | 
 | 16587 |       fi | 
 | 16588 |       $rm conftest* | 
 | 16589 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
 | 16590 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 
 | 16591 |       ;; | 
 | 16592 |     esac | 
 | 16593 |   fi | 
 | 16594 |   ;; | 
 | 16595 | esac | 
 | 16596 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16597 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 16598 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 16599 | library_names_spec= | 
 | 16600 | libname_spec='lib$name' | 
 | 16601 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16602 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16603 | postinstall_cmds= | 
 | 16604 | postuninstall_cmds= | 
 | 16605 | finish_cmds= | 
 | 16606 | finish_eval= | 
 | 16607 | shlibpath_var= | 
 | 16608 | shlibpath_overrides_runpath=unknown | 
 | 16609 | version_type=none | 
 | 16610 | dynamic_linker="$host_os ld.so" | 
 | 16611 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 16612 | if test "$GCC" = yes; then | 
 | 16613 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16614 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 16615 |     # if the path contains ";" then we assume it to be the separator | 
 | 16616 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 16617 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 16618 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 16619 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16620 |   else | 
 | 16621 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16622 |   fi | 
 | 16623 | else | 
 | 16624 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 16625 | fi | 
 | 16626 | need_lib_prefix=unknown | 
 | 16627 | hardcode_into_libs=no | 
 | 16628 |  | 
 | 16629 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 16630 | # flags to be left without arguments | 
 | 16631 | need_version=unknown | 
 | 16632 |  | 
 | 16633 | case $host_os in | 
 | 16634 | aix3*) | 
 | 16635 |   version_type=linux | 
 | 16636 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 16637 |   shlibpath_var=LIBPATH | 
 | 16638 |  | 
 | 16639 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 16640 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16641 |   ;; | 
 | 16642 |  | 
 | 16643 | aix4* | aix5*) | 
 | 16644 |   version_type=linux | 
 | 16645 |   need_lib_prefix=no | 
 | 16646 |   need_version=no | 
 | 16647 |   hardcode_into_libs=yes | 
 | 16648 |   if test "$host_cpu" = ia64; then | 
 | 16649 |     # AIX 5 supports IA64 | 
 | 16650 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 16651 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16652 |   else | 
 | 16653 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 16654 |     # for dependence libraries.  The import file would start with | 
 | 16655 |     # the line `#! .'.  This would cause the generated library to | 
 | 16656 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 16657 |     # development snapshots of GCC prior to 3.0. | 
 | 16658 |     case $host_os in | 
 | 16659 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 16660 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 16661 | 	   echo ' yes ' | 
 | 16662 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 16663 | 	: | 
 | 16664 |       else | 
 | 16665 | 	can_build_shared=no | 
 | 16666 |       fi | 
 | 16667 |       ;; | 
 | 16668 |     esac | 
 | 16669 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 16670 |     # soname into executable. Probably we can add versioning support to | 
 | 16671 |     # collect2, so additional links can be useful in future. | 
 | 16672 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 16673 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 16674 |       # instead of lib<name>.a to let people know that these are not | 
 | 16675 |       # typical AIX shared libraries. | 
 | 16676 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16677 |     else | 
 | 16678 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 16679 |       # and later when we are not doing run time linking. | 
 | 16680 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 16681 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16682 |     fi | 
 | 16683 |     shlibpath_var=LIBPATH | 
 | 16684 |   fi | 
 | 16685 |   ;; | 
 | 16686 |  | 
 | 16687 | amigaos*) | 
 | 16688 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 16689 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16690 |   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] | 16691 |   ;; | 
 | 16692 |  | 
 | 16693 | beos*) | 
 | 16694 |   library_names_spec='${libname}${shared_ext}' | 
 | 16695 |   dynamic_linker="$host_os ld.so" | 
 | 16696 |   shlibpath_var=LIBRARY_PATH | 
 | 16697 |   ;; | 
 | 16698 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16699 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16700 |   version_type=linux | 
 | 16701 |   need_version=no | 
 | 16702 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16703 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16704 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 16705 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16706 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 16707 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 16708 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 16709 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 16710 |   # libtool to hard-code these into programs | 
 | 16711 |   ;; | 
 | 16712 |  | 
 | 16713 | cygwin* | mingw* | pw32*) | 
 | 16714 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16715 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16716 |   need_version=no | 
 | 16717 |   need_lib_prefix=no | 
 | 16718 |  | 
 | 16719 |   case $GCC,$host_os in | 
 | 16720 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 16721 |     library_names_spec='$libname.dll.a' | 
 | 16722 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16723 |     postinstall_cmds='base_file=`basename \${file}`; | 
 | 16724 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`; | 
 | 16725 |       dldir=$destdir/`dirname \$dlpath`; | 
 | 16726 |       test -d \$dldir || mkdir -p \$dldir; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16727 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16728 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`; | 
 | 16729 |       dlpath=$dir/\$dldll; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16730 |        $rm \$dlpath' | 
 | 16731 |     shlibpath_overrides_runpath=yes | 
 | 16732 |  | 
 | 16733 |     case $host_os in | 
 | 16734 |     cygwin*) | 
 | 16735 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 16736 |       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] | 16737 |       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] | 16738 |       ;; | 
 | 16739 |     mingw*) | 
 | 16740 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 16741 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 16742 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16743 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 16744 |         # It is most probably a Windows format PATH printed by | 
 | 16745 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 16746 |         # path with ; separators, and with drive letters. We can handle the | 
 | 16747 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 16748 |         # especially as we might pass files found there to a mingw objdump, | 
 | 16749 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 16750 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16751 |       else | 
 | 16752 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16753 |       fi | 
 | 16754 |       ;; | 
 | 16755 |     pw32*) | 
 | 16756 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 16757 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 16758 |       ;; | 
 | 16759 |     esac | 
 | 16760 |     ;; | 
 | 16761 |  | 
 | 16762 |   *) | 
 | 16763 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 16764 |     ;; | 
 | 16765 |   esac | 
 | 16766 |   dynamic_linker='Win32 ld.exe' | 
 | 16767 |   # FIXME: first we should search . and the directory the executable is in | 
 | 16768 |   shlibpath_var=PATH | 
 | 16769 |   ;; | 
 | 16770 |  | 
 | 16771 | darwin* | rhapsody*) | 
 | 16772 |   dynamic_linker="$host_os dyld" | 
 | 16773 |   version_type=darwin | 
 | 16774 |   need_lib_prefix=no | 
 | 16775 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16776 |   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] | 16777 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 16778 |   shlibpath_overrides_runpath=yes | 
 | 16779 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16780 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16781 |   # 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] | 16782 |   if test "$GCC" = yes; then | 
 | 16783 |     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"` | 
 | 16784 |   else | 
 | 16785 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16786 |   fi | 
 | 16787 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 16788 |   ;; | 
 | 16789 |  | 
 | 16790 | dgux*) | 
 | 16791 |   version_type=linux | 
 | 16792 |   need_lib_prefix=no | 
 | 16793 |   need_version=no | 
 | 16794 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 16795 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16796 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16797 |   ;; | 
 | 16798 |  | 
 | 16799 | freebsd1*) | 
 | 16800 |   dynamic_linker=no | 
 | 16801 |   ;; | 
 | 16802 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16803 | kfreebsd*-gnu) | 
 | 16804 |   version_type=linux | 
 | 16805 |   need_lib_prefix=no | 
 | 16806 |   need_version=no | 
 | 16807 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 16808 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16809 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16810 |   shlibpath_overrides_runpath=no | 
 | 16811 |   hardcode_into_libs=yes | 
 | 16812 |   dynamic_linker='GNU ld.so' | 
 | 16813 |   ;; | 
 | 16814 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16815 | freebsd*) | 
 | 16816 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 16817 |   version_type=freebsd-$objformat | 
 | 16818 |   case $version_type in | 
 | 16819 |     freebsd-elf*) | 
 | 16820 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 16821 |       need_version=no | 
 | 16822 |       need_lib_prefix=no | 
 | 16823 |       ;; | 
 | 16824 |     freebsd-*) | 
 | 16825 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 16826 |       need_version=yes | 
 | 16827 |       ;; | 
 | 16828 |   esac | 
 | 16829 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16830 |   case $host_os in | 
 | 16831 |   freebsd2*) | 
 | 16832 |     shlibpath_overrides_runpath=yes | 
 | 16833 |     ;; | 
 | 16834 |   freebsd3.01* | freebsdelf3.01*) | 
 | 16835 |     shlibpath_overrides_runpath=yes | 
 | 16836 |     hardcode_into_libs=yes | 
 | 16837 |     ;; | 
 | 16838 |   *) # from 3.2 on | 
 | 16839 |     shlibpath_overrides_runpath=no | 
 | 16840 |     hardcode_into_libs=yes | 
 | 16841 |     ;; | 
 | 16842 |   esac | 
 | 16843 |   ;; | 
 | 16844 |  | 
 | 16845 | gnu*) | 
 | 16846 |   version_type=linux | 
 | 16847 |   need_lib_prefix=no | 
 | 16848 |   need_version=no | 
 | 16849 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 16850 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16851 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16852 |   hardcode_into_libs=yes | 
 | 16853 |   ;; | 
 | 16854 |  | 
 | 16855 | hpux9* | hpux10* | hpux11*) | 
 | 16856 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 16857 |   # link against other versions. | 
 | 16858 |   version_type=sunos | 
 | 16859 |   need_lib_prefix=no | 
 | 16860 |   need_version=no | 
 | 16861 |   case "$host_cpu" in | 
 | 16862 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16863 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16864 |     hardcode_into_libs=yes | 
 | 16865 |     dynamic_linker="$host_os dld.so" | 
 | 16866 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16867 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 16868 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16869 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16870 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 16871 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 16872 |     else | 
 | 16873 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 16874 |     fi | 
 | 16875 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 16876 |     ;; | 
 | 16877 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16878 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16879 |      hardcode_into_libs=yes | 
 | 16880 |      dynamic_linker="$host_os dld.sl" | 
 | 16881 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 16882 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 16883 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16884 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16885 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 16886 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 16887 |      ;; | 
 | 16888 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16889 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16890 |     dynamic_linker="$host_os dld.sl" | 
 | 16891 |     shlibpath_var=SHLIB_PATH | 
 | 16892 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 16893 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16894 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16895 |     ;; | 
 | 16896 |   esac | 
 | 16897 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 16898 |   postinstall_cmds='chmod 555 $lib' | 
 | 16899 |   ;; | 
 | 16900 |  | 
 | 16901 | irix5* | irix6* | nonstopux*) | 
 | 16902 |   case $host_os in | 
 | 16903 |     nonstopux*) version_type=nonstopux ;; | 
 | 16904 |     *) | 
 | 16905 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 16906 | 		version_type=linux | 
 | 16907 | 	else | 
 | 16908 | 		version_type=irix | 
 | 16909 | 	fi ;; | 
 | 16910 |   esac | 
 | 16911 |   need_lib_prefix=no | 
 | 16912 |   need_version=no | 
 | 16913 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16914 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 16915 |   case $host_os in | 
 | 16916 |   irix5* | nonstopux*) | 
 | 16917 |     libsuff= shlibsuff= | 
 | 16918 |     ;; | 
 | 16919 |   *) | 
 | 16920 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 16921 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 16922 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 16923 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 16924 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 16925 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 16926 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 16927 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 16928 |     esac | 
 | 16929 |     ;; | 
 | 16930 |   esac | 
 | 16931 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 16932 |   shlibpath_overrides_runpath=no | 
 | 16933 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 16934 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 16935 |   hardcode_into_libs=yes | 
 | 16936 |   ;; | 
 | 16937 |  | 
 | 16938 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 16939 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 16940 |   dynamic_linker=no | 
 | 16941 |   ;; | 
 | 16942 |  | 
 | 16943 | # This must be Linux ELF. | 
 | 16944 | linux*) | 
 | 16945 |   version_type=linux | 
 | 16946 |   need_lib_prefix=no | 
 | 16947 |   need_version=no | 
 | 16948 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16949 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16950 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 16951 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16952 |   shlibpath_overrides_runpath=no | 
 | 16953 |   # This implies no fast_install, which is unacceptable. | 
 | 16954 |   # Some rework will be needed to allow for fast_install | 
 | 16955 |   # before this can be enabled. | 
 | 16956 |   hardcode_into_libs=yes | 
 | 16957 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16958 |   # Append ld.so.conf contents to the search path | 
 | 16959 |   if test -f /etc/ld.so.conf; then | 
 | 16960 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 16961 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 16962 |   fi | 
 | 16963 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16964 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 16965 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 16966 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 16967 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 16968 |   # people can always --disable-shared, the test was removed, and we | 
 | 16969 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 16970 |   dynamic_linker='GNU/Linux ld.so' | 
 | 16971 |   ;; | 
 | 16972 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16973 | knetbsd*-gnu) | 
 | 16974 |   version_type=linux | 
 | 16975 |   need_lib_prefix=no | 
 | 16976 |   need_version=no | 
 | 16977 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 16978 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16979 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16980 |   shlibpath_overrides_runpath=no | 
 | 16981 |   hardcode_into_libs=yes | 
 | 16982 |   dynamic_linker='GNU ld.so' | 
 | 16983 |   ;; | 
 | 16984 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16985 | netbsd*) | 
 | 16986 |   version_type=sunos | 
 | 16987 |   need_lib_prefix=no | 
 | 16988 |   need_version=no | 
 | 16989 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 16990 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 16991 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 16992 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 16993 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16994 |     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] | 16995 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16996 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 16997 |   fi | 
 | 16998 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16999 |   shlibpath_overrides_runpath=yes | 
 | 17000 |   hardcode_into_libs=yes | 
 | 17001 |   ;; | 
 | 17002 |  | 
 | 17003 | newsos6) | 
 | 17004 |   version_type=linux | 
 | 17005 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17006 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17007 |   shlibpath_overrides_runpath=yes | 
 | 17008 |   ;; | 
 | 17009 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17010 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17011 |   version_type=linux | 
 | 17012 |   need_lib_prefix=no | 
 | 17013 |   need_version=no | 
 | 17014 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17015 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17016 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17017 |   shlibpath_overrides_runpath=yes | 
 | 17018 |   ;; | 
 | 17019 |  | 
 | 17020 | openbsd*) | 
 | 17021 |   version_type=sunos | 
 | 17022 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17023 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17024 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17025 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 17026 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17027 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 17028 |     case $host_os in | 
 | 17029 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 17030 | 	shlibpath_overrides_runpath=no | 
 | 17031 | 	;; | 
 | 17032 |       *) | 
 | 17033 | 	shlibpath_overrides_runpath=yes | 
 | 17034 | 	;; | 
 | 17035 |       esac | 
 | 17036 |   else | 
 | 17037 |     shlibpath_overrides_runpath=yes | 
 | 17038 |   fi | 
 | 17039 |   ;; | 
 | 17040 |  | 
 | 17041 | os2*) | 
 | 17042 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17043 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17044 |   need_lib_prefix=no | 
 | 17045 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 17046 |   dynamic_linker='OS/2 ld.exe' | 
 | 17047 |   shlibpath_var=LIBPATH | 
 | 17048 |   ;; | 
 | 17049 |  | 
 | 17050 | osf3* | osf4* | osf5*) | 
 | 17051 |   version_type=osf | 
 | 17052 |   need_lib_prefix=no | 
 | 17053 |   need_version=no | 
 | 17054 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17055 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17056 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17057 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 17058 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 17059 |   ;; | 
 | 17060 |  | 
 | 17061 | sco3.2v5*) | 
 | 17062 |   version_type=osf | 
 | 17063 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17064 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17065 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17066 |   ;; | 
 | 17067 |  | 
 | 17068 | solaris*) | 
 | 17069 |   version_type=linux | 
 | 17070 |   need_lib_prefix=no | 
 | 17071 |   need_version=no | 
 | 17072 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17073 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17074 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17075 |   shlibpath_overrides_runpath=yes | 
 | 17076 |   hardcode_into_libs=yes | 
 | 17077 |   # ldd complains unless libraries are executable | 
 | 17078 |   postinstall_cmds='chmod +x $lib' | 
 | 17079 |   ;; | 
 | 17080 |  | 
 | 17081 | sunos4*) | 
 | 17082 |   version_type=sunos | 
 | 17083 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17084 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 17085 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17086 |   shlibpath_overrides_runpath=yes | 
 | 17087 |   if test "$with_gnu_ld" = yes; then | 
 | 17088 |     need_lib_prefix=no | 
 | 17089 |   fi | 
 | 17090 |   need_version=yes | 
 | 17091 |   ;; | 
 | 17092 |  | 
 | 17093 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 17094 |   version_type=linux | 
 | 17095 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17096 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17097 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17098 |   case $host_vendor in | 
 | 17099 |     sni) | 
 | 17100 |       shlibpath_overrides_runpath=no | 
 | 17101 |       need_lib_prefix=no | 
 | 17102 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 17103 |       runpath_var=LD_RUN_PATH | 
 | 17104 |       ;; | 
 | 17105 |     siemens) | 
 | 17106 |       need_lib_prefix=no | 
 | 17107 |       ;; | 
 | 17108 |     motorola) | 
 | 17109 |       need_lib_prefix=no | 
 | 17110 |       need_version=no | 
 | 17111 |       shlibpath_overrides_runpath=no | 
 | 17112 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 17113 |       ;; | 
 | 17114 |   esac | 
 | 17115 |   ;; | 
 | 17116 |  | 
 | 17117 | sysv4*MP*) | 
 | 17118 |   if test -d /usr/nec ;then | 
 | 17119 |     version_type=linux | 
 | 17120 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 17121 |     soname_spec='$libname${shared_ext}.$major' | 
 | 17122 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 17123 |   fi | 
 | 17124 |   ;; | 
 | 17125 |  | 
 | 17126 | uts4*) | 
 | 17127 |   version_type=linux | 
 | 17128 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17129 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17130 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17131 |   ;; | 
 | 17132 |  | 
 | 17133 | *) | 
 | 17134 |   dynamic_linker=no | 
 | 17135 |   ;; | 
 | 17136 | esac | 
 | 17137 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 17138 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 17139 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 17140 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17141 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 17142 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 17143 | hardcode_action_GCJ= | 
 | 17144 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
 | 17145 |    test -n "$runpath_var_GCJ" || \ | 
 | 17146 |    test "X$hardcode_automatic_GCJ" = "Xyes" ; then | 
 | 17147 |  | 
 | 17148 |   # We can hardcode non-existant directories. | 
 | 17149 |   if test "$hardcode_direct_GCJ" != no && | 
 | 17150 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 17151 |      # have to relink, otherwise we might link with an installed library | 
 | 17152 |      # when we should be linking with a yet-to-be-installed one | 
 | 17153 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
 | 17154 |      test "$hardcode_minus_L_GCJ" != no; then | 
 | 17155 |     # Linking always hardcodes the temporary library directory. | 
 | 17156 |     hardcode_action_GCJ=relink | 
 | 17157 |   else | 
 | 17158 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 17159 |     hardcode_action_GCJ=immediate | 
 | 17160 |   fi | 
 | 17161 | else | 
 | 17162 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 17163 |   # directories. | 
 | 17164 |   hardcode_action_GCJ=unsupported | 
 | 17165 | fi | 
 | 17166 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
 | 17167 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 
 | 17168 |  | 
 | 17169 | if test "$hardcode_action_GCJ" = relink; then | 
 | 17170 |   # Fast installation is not supported | 
 | 17171 |   enable_fast_install=no | 
 | 17172 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 17173 |      test "$enable_shared" = no; then | 
 | 17174 |   # Fast installation is not necessary | 
 | 17175 |   enable_fast_install=needless | 
 | 17176 | fi | 
 | 17177 |  | 
 | 17178 | striplib= | 
 | 17179 | old_striplib= | 
 | 17180 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 17181 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 17182 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 17183 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 17184 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 17185 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17186 | echo "${ECHO_T}yes" >&6 | 
 | 17187 | else | 
 | 17188 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 17189 |   case $host_os in | 
 | 17190 |    darwin*) | 
 | 17191 |        if test -n "$STRIP" ; then | 
 | 17192 |          striplib="$STRIP -x" | 
 | 17193 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17194 | echo "${ECHO_T}yes" >&6 | 
 | 17195 |        else | 
 | 17196 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 17197 | echo "${ECHO_T}no" >&6 | 
 | 17198 | fi | 
 | 17199 |        ;; | 
 | 17200 |    *) | 
 | 17201 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 17202 | echo "${ECHO_T}no" >&6 | 
 | 17203 |     ;; | 
 | 17204 |   esac | 
 | 17205 | fi | 
 | 17206 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17207 | if test "x$enable_dlopen" != xyes; then | 
 | 17208 |   enable_dlopen=unknown | 
 | 17209 |   enable_dlopen_self=unknown | 
 | 17210 |   enable_dlopen_self_static=unknown | 
 | 17211 | else | 
 | 17212 |   lt_cv_dlopen=no | 
 | 17213 |   lt_cv_dlopen_libs= | 
 | 17214 |  | 
 | 17215 |   case $host_os in | 
 | 17216 |   beos*) | 
 | 17217 |     lt_cv_dlopen="load_add_on" | 
 | 17218 |     lt_cv_dlopen_libs= | 
 | 17219 |     lt_cv_dlopen_self=yes | 
 | 17220 |     ;; | 
 | 17221 |  | 
 | 17222 |   mingw* | pw32*) | 
 | 17223 |     lt_cv_dlopen="LoadLibrary" | 
 | 17224 |     lt_cv_dlopen_libs= | 
 | 17225 |    ;; | 
 | 17226 |  | 
 | 17227 |   cygwin*) | 
 | 17228 |     lt_cv_dlopen="dlopen" | 
 | 17229 |     lt_cv_dlopen_libs= | 
 | 17230 |    ;; | 
 | 17231 |  | 
 | 17232 |   darwin*) | 
 | 17233 |   # if libdl is installed we need to link against it | 
 | 17234 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17235 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 17236 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17237 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17238 | else | 
 | 17239 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17240 | LIBS="-ldl  $LIBS" | 
 | 17241 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17242 | /* confdefs.h.  */ | 
 | 17243 | _ACEOF | 
 | 17244 | cat confdefs.h >>conftest.$ac_ext | 
 | 17245 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17246 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17247 |  | 
 | 17248 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17249 | #ifdef __cplusplus | 
 | 17250 | extern "C" | 
 | 17251 | #endif | 
 | 17252 | /* We use char because int might match the return type of a gcc2 | 
 | 17253 |    builtin and then its argument prototype would still apply.  */ | 
 | 17254 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17255 | int | 
 | 17256 | main () | 
 | 17257 | { | 
 | 17258 | dlopen (); | 
 | 17259 |   ; | 
 | 17260 |   return 0; | 
 | 17261 | } | 
 | 17262 | _ACEOF | 
 | 17263 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17265 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17266 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17267 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17268 |   rm -f conftest.er1 | 
 | 17269 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17270 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17271 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17272 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17273 | 			 || test ! -s conftest.err' | 
 | 17274 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17275 |   (eval $ac_try) 2>&5 | 
 | 17276 |   ac_status=$? | 
 | 17277 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17278 |   (exit $ac_status); }; } && | 
 | 17279 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17280 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17281 |   (eval $ac_try) 2>&5 | 
 | 17282 |   ac_status=$? | 
 | 17283 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17284 |   (exit $ac_status); }; }; then | 
 | 17285 |   ac_cv_lib_dl_dlopen=yes | 
 | 17286 | else | 
 | 17287 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17288 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17289 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17290 | ac_cv_lib_dl_dlopen=no | 
 | 17291 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17292 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17293 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17294 | LIBS=$ac_check_lib_save_LIBS | 
 | 17295 | fi | 
 | 17296 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17297 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 17298 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17299 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17300 | else | 
 | 17301 |  | 
 | 17302 |     lt_cv_dlopen="dyld" | 
 | 17303 |     lt_cv_dlopen_libs= | 
 | 17304 |     lt_cv_dlopen_self=yes | 
 | 17305 |  | 
 | 17306 | fi | 
 | 17307 |  | 
 | 17308 |    ;; | 
 | 17309 |  | 
 | 17310 |   *) | 
 | 17311 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 17312 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 17313 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 17314 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17315 | else | 
 | 17316 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17317 | /* confdefs.h.  */ | 
 | 17318 | _ACEOF | 
 | 17319 | cat confdefs.h >>conftest.$ac_ext | 
 | 17320 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17321 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17322 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 17323 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17324 | #define shl_load innocuous_shl_load | 
 | 17325 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17326 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17327 |     which can conflict with char shl_load (); below. | 
 | 17328 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17329 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17330 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17331 | #ifdef __STDC__ | 
 | 17332 | # include <limits.h> | 
 | 17333 | #else | 
 | 17334 | # include <assert.h> | 
 | 17335 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17336 |  | 
 | 17337 | #undef shl_load | 
 | 17338 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17339 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17340 | #ifdef __cplusplus | 
 | 17341 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17342 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17343 | #endif | 
 | 17344 | /* We use char because int might match the return type of a gcc2 | 
 | 17345 |    builtin and then its argument prototype would still apply.  */ | 
 | 17346 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17347 | /* The GNU C library defines this for functions which it implements | 
 | 17348 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17349 |     something starting with __ and the normal name is an alias.  */ | 
 | 17350 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 17351 | choke me | 
 | 17352 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17353 | char (*f) () = shl_load; | 
 | 17354 | #endif | 
 | 17355 | #ifdef __cplusplus | 
 | 17356 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17357 | #endif | 
 | 17358 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17359 | int | 
 | 17360 | main () | 
 | 17361 | { | 
 | 17362 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17363 |   ; | 
 | 17364 |   return 0; | 
 | 17365 | } | 
 | 17366 | _ACEOF | 
 | 17367 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17369 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17370 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17371 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17372 |   rm -f conftest.er1 | 
 | 17373 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17374 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17375 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17376 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17377 | 			 || test ! -s conftest.err' | 
 | 17378 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17379 |   (eval $ac_try) 2>&5 | 
 | 17380 |   ac_status=$? | 
 | 17381 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17382 |   (exit $ac_status); }; } && | 
 | 17383 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17384 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17385 |   (eval $ac_try) 2>&5 | 
 | 17386 |   ac_status=$? | 
 | 17387 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17388 |   (exit $ac_status); }; }; then | 
 | 17389 |   ac_cv_func_shl_load=yes | 
 | 17390 | else | 
 | 17391 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17392 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17393 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17394 | ac_cv_func_shl_load=no | 
 | 17395 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17396 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17397 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17398 | fi | 
 | 17399 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 17400 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 17401 | if test $ac_cv_func_shl_load = yes; then | 
 | 17402 |   lt_cv_dlopen="shl_load" | 
 | 17403 | else | 
 | 17404 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 17405 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 17406 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 17407 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17408 | else | 
 | 17409 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17410 | LIBS="-ldld  $LIBS" | 
 | 17411 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17412 | /* confdefs.h.  */ | 
 | 17413 | _ACEOF | 
 | 17414 | cat confdefs.h >>conftest.$ac_ext | 
 | 17415 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17416 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17417 |  | 
 | 17418 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17419 | #ifdef __cplusplus | 
 | 17420 | extern "C" | 
 | 17421 | #endif | 
 | 17422 | /* We use char because int might match the return type of a gcc2 | 
 | 17423 |    builtin and then its argument prototype would still apply.  */ | 
 | 17424 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17425 | int | 
 | 17426 | main () | 
 | 17427 | { | 
 | 17428 | shl_load (); | 
 | 17429 |   ; | 
 | 17430 |   return 0; | 
 | 17431 | } | 
 | 17432 | _ACEOF | 
 | 17433 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17435 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17436 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17437 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17438 |   rm -f conftest.er1 | 
 | 17439 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17440 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17441 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17442 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17443 | 			 || test ! -s conftest.err' | 
 | 17444 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17445 |   (eval $ac_try) 2>&5 | 
 | 17446 |   ac_status=$? | 
 | 17447 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17448 |   (exit $ac_status); }; } && | 
 | 17449 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17450 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17451 |   (eval $ac_try) 2>&5 | 
 | 17452 |   ac_status=$? | 
 | 17453 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17454 |   (exit $ac_status); }; }; then | 
 | 17455 |   ac_cv_lib_dld_shl_load=yes | 
 | 17456 | else | 
 | 17457 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17458 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17459 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17460 | ac_cv_lib_dld_shl_load=no | 
 | 17461 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17462 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17463 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17464 | LIBS=$ac_check_lib_save_LIBS | 
 | 17465 | fi | 
 | 17466 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 17467 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 17468 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 17469 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 17470 | else | 
 | 17471 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 17472 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 17473 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 17474 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17475 | else | 
 | 17476 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17477 | /* confdefs.h.  */ | 
 | 17478 | _ACEOF | 
 | 17479 | cat confdefs.h >>conftest.$ac_ext | 
 | 17480 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17481 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17482 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 17483 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17484 | #define dlopen innocuous_dlopen | 
 | 17485 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17486 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17487 |     which can conflict with char dlopen (); below. | 
 | 17488 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17489 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17490 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17491 | #ifdef __STDC__ | 
 | 17492 | # include <limits.h> | 
 | 17493 | #else | 
 | 17494 | # include <assert.h> | 
 | 17495 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17496 |  | 
 | 17497 | #undef dlopen | 
 | 17498 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17499 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17500 | #ifdef __cplusplus | 
 | 17501 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17502 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17503 | #endif | 
 | 17504 | /* We use char because int might match the return type of a gcc2 | 
 | 17505 |    builtin and then its argument prototype would still apply.  */ | 
 | 17506 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17507 | /* The GNU C library defines this for functions which it implements | 
 | 17508 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17509 |     something starting with __ and the normal name is an alias.  */ | 
 | 17510 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 17511 | choke me | 
 | 17512 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17513 | char (*f) () = dlopen; | 
 | 17514 | #endif | 
 | 17515 | #ifdef __cplusplus | 
 | 17516 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17517 | #endif | 
 | 17518 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17519 | int | 
 | 17520 | main () | 
 | 17521 | { | 
 | 17522 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17523 |   ; | 
 | 17524 |   return 0; | 
 | 17525 | } | 
 | 17526 | _ACEOF | 
 | 17527 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17529 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17530 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17531 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17532 |   rm -f conftest.er1 | 
 | 17533 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17534 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17535 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17536 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17537 | 			 || test ! -s conftest.err' | 
 | 17538 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17539 |   (eval $ac_try) 2>&5 | 
 | 17540 |   ac_status=$? | 
 | 17541 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17542 |   (exit $ac_status); }; } && | 
 | 17543 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17544 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17545 |   (eval $ac_try) 2>&5 | 
 | 17546 |   ac_status=$? | 
 | 17547 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17548 |   (exit $ac_status); }; }; then | 
 | 17549 |   ac_cv_func_dlopen=yes | 
 | 17550 | else | 
 | 17551 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17552 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17553 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17554 | ac_cv_func_dlopen=no | 
 | 17555 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17556 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17557 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17558 | fi | 
 | 17559 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 17560 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 17561 | if test $ac_cv_func_dlopen = yes; then | 
 | 17562 |   lt_cv_dlopen="dlopen" | 
 | 17563 | else | 
 | 17564 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17565 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 17566 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17567 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17568 | else | 
 | 17569 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17570 | LIBS="-ldl  $LIBS" | 
 | 17571 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17572 | /* confdefs.h.  */ | 
 | 17573 | _ACEOF | 
 | 17574 | cat confdefs.h >>conftest.$ac_ext | 
 | 17575 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17576 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17577 |  | 
 | 17578 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17579 | #ifdef __cplusplus | 
 | 17580 | extern "C" | 
 | 17581 | #endif | 
 | 17582 | /* We use char because int might match the return type of a gcc2 | 
 | 17583 |    builtin and then its argument prototype would still apply.  */ | 
 | 17584 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17585 | int | 
 | 17586 | main () | 
 | 17587 | { | 
 | 17588 | dlopen (); | 
 | 17589 |   ; | 
 | 17590 |   return 0; | 
 | 17591 | } | 
 | 17592 | _ACEOF | 
 | 17593 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17595 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17596 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17597 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17598 |   rm -f conftest.er1 | 
 | 17599 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17600 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17601 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17602 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17603 | 			 || test ! -s conftest.err' | 
 | 17604 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17605 |   (eval $ac_try) 2>&5 | 
 | 17606 |   ac_status=$? | 
 | 17607 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17608 |   (exit $ac_status); }; } && | 
 | 17609 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17610 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17611 |   (eval $ac_try) 2>&5 | 
 | 17612 |   ac_status=$? | 
 | 17613 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17614 |   (exit $ac_status); }; }; then | 
 | 17615 |   ac_cv_lib_dl_dlopen=yes | 
 | 17616 | else | 
 | 17617 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17618 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17619 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17620 | ac_cv_lib_dl_dlopen=no | 
 | 17621 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17622 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17623 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17624 | LIBS=$ac_check_lib_save_LIBS | 
 | 17625 | fi | 
 | 17626 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17627 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 17628 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17629 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17630 | else | 
 | 17631 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 17632 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 17633 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 17634 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17635 | else | 
 | 17636 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17637 | LIBS="-lsvld  $LIBS" | 
 | 17638 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17639 | /* confdefs.h.  */ | 
 | 17640 | _ACEOF | 
 | 17641 | cat confdefs.h >>conftest.$ac_ext | 
 | 17642 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17643 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17644 |  | 
 | 17645 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17646 | #ifdef __cplusplus | 
 | 17647 | extern "C" | 
 | 17648 | #endif | 
 | 17649 | /* We use char because int might match the return type of a gcc2 | 
 | 17650 |    builtin and then its argument prototype would still apply.  */ | 
 | 17651 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17652 | int | 
 | 17653 | main () | 
 | 17654 | { | 
 | 17655 | dlopen (); | 
 | 17656 |   ; | 
 | 17657 |   return 0; | 
 | 17658 | } | 
 | 17659 | _ACEOF | 
 | 17660 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17662 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17663 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17664 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17665 |   rm -f conftest.er1 | 
 | 17666 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17667 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17668 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17669 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17670 | 			 || test ! -s conftest.err' | 
 | 17671 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17672 |   (eval $ac_try) 2>&5 | 
 | 17673 |   ac_status=$? | 
 | 17674 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17675 |   (exit $ac_status); }; } && | 
 | 17676 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17677 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17678 |   (eval $ac_try) 2>&5 | 
 | 17679 |   ac_status=$? | 
 | 17680 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17681 |   (exit $ac_status); }; }; then | 
 | 17682 |   ac_cv_lib_svld_dlopen=yes | 
 | 17683 | else | 
 | 17684 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17685 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17686 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17687 | ac_cv_lib_svld_dlopen=no | 
 | 17688 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17689 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17690 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17691 | LIBS=$ac_check_lib_save_LIBS | 
 | 17692 | fi | 
 | 17693 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 17694 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 17695 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 17696 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 17697 | else | 
 | 17698 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 17699 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 17700 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 17701 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17702 | else | 
 | 17703 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17704 | LIBS="-ldld  $LIBS" | 
 | 17705 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17706 | /* confdefs.h.  */ | 
 | 17707 | _ACEOF | 
 | 17708 | cat confdefs.h >>conftest.$ac_ext | 
 | 17709 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17710 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17711 |  | 
 | 17712 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17713 | #ifdef __cplusplus | 
 | 17714 | extern "C" | 
 | 17715 | #endif | 
 | 17716 | /* We use char because int might match the return type of a gcc2 | 
 | 17717 |    builtin and then its argument prototype would still apply.  */ | 
 | 17718 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17719 | int | 
 | 17720 | main () | 
 | 17721 | { | 
 | 17722 | dld_link (); | 
 | 17723 |   ; | 
 | 17724 |   return 0; | 
 | 17725 | } | 
 | 17726 | _ACEOF | 
 | 17727 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17729 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17730 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17731 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17732 |   rm -f conftest.er1 | 
 | 17733 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17734 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17735 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17736 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17737 | 			 || test ! -s conftest.err' | 
 | 17738 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17739 |   (eval $ac_try) 2>&5 | 
 | 17740 |   ac_status=$? | 
 | 17741 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17742 |   (exit $ac_status); }; } && | 
 | 17743 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17744 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17745 |   (eval $ac_try) 2>&5 | 
 | 17746 |   ac_status=$? | 
 | 17747 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17748 |   (exit $ac_status); }; }; then | 
 | 17749 |   ac_cv_lib_dld_dld_link=yes | 
 | 17750 | else | 
 | 17751 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17752 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17753 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17754 | ac_cv_lib_dld_dld_link=no | 
 | 17755 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17756 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17757 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17758 | LIBS=$ac_check_lib_save_LIBS | 
 | 17759 | fi | 
 | 17760 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 17761 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 17762 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 17763 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 17764 | fi | 
 | 17765 |  | 
 | 17766 |  | 
 | 17767 | fi | 
 | 17768 |  | 
 | 17769 |  | 
 | 17770 | fi | 
 | 17771 |  | 
 | 17772 |  | 
 | 17773 | fi | 
 | 17774 |  | 
 | 17775 |  | 
 | 17776 | fi | 
 | 17777 |  | 
 | 17778 |  | 
 | 17779 | fi | 
 | 17780 |  | 
 | 17781 |     ;; | 
 | 17782 |   esac | 
 | 17783 |  | 
 | 17784 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 17785 |     enable_dlopen=yes | 
 | 17786 |   else | 
 | 17787 |     enable_dlopen=no | 
 | 17788 |   fi | 
 | 17789 |  | 
 | 17790 |   case $lt_cv_dlopen in | 
 | 17791 |   dlopen) | 
 | 17792 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 17793 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 17794 |  | 
 | 17795 |     save_LDFLAGS="$LDFLAGS" | 
 | 17796 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 17797 |  | 
 | 17798 |     save_LIBS="$LIBS" | 
 | 17799 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 17800 |  | 
 | 17801 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 17802 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 17803 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 17804 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17805 | else | 
 | 17806 |   	  if test "$cross_compiling" = yes; then : | 
 | 17807 |   lt_cv_dlopen_self=cross | 
 | 17808 | else | 
 | 17809 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 17810 |   lt_status=$lt_dlunknown | 
 | 17811 |   cat > conftest.$ac_ext <<EOF | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 17812 | #line 17812 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17813 | #include "confdefs.h" | 
 | 17814 |  | 
 | 17815 | #if HAVE_DLFCN_H | 
 | 17816 | #include <dlfcn.h> | 
 | 17817 | #endif | 
 | 17818 |  | 
 | 17819 | #include <stdio.h> | 
 | 17820 |  | 
 | 17821 | #ifdef RTLD_GLOBAL | 
 | 17822 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 17823 | #else | 
 | 17824 | #  ifdef DL_GLOBAL | 
 | 17825 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 17826 | #  else | 
 | 17827 | #    define LT_DLGLOBAL		0 | 
 | 17828 | #  endif | 
 | 17829 | #endif | 
 | 17830 |  | 
 | 17831 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 17832 |    find out it does not work in some platform. */ | 
 | 17833 | #ifndef LT_DLLAZY_OR_NOW | 
 | 17834 | #  ifdef RTLD_LAZY | 
 | 17835 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 17836 | #  else | 
 | 17837 | #    ifdef DL_LAZY | 
 | 17838 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 17839 | #    else | 
 | 17840 | #      ifdef RTLD_NOW | 
 | 17841 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 17842 | #      else | 
 | 17843 | #        ifdef DL_NOW | 
 | 17844 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 17845 | #        else | 
 | 17846 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 17847 | #        endif | 
 | 17848 | #      endif | 
 | 17849 | #    endif | 
 | 17850 | #  endif | 
 | 17851 | #endif | 
 | 17852 |  | 
 | 17853 | #ifdef __cplusplus | 
 | 17854 | extern "C" void exit (int); | 
 | 17855 | #endif | 
 | 17856 |  | 
 | 17857 | void fnord() { int i=42;} | 
 | 17858 | int main () | 
 | 17859 | { | 
 | 17860 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 17861 |   int status = $lt_dlunknown; | 
 | 17862 |  | 
 | 17863 |   if (self) | 
 | 17864 |     { | 
 | 17865 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 17866 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 17867 |       /* dlclose (self); */ | 
 | 17868 |     } | 
 | 17869 |  | 
 | 17870 |     exit (status); | 
 | 17871 | } | 
 | 17872 | EOF | 
 | 17873 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 17874 |   (eval $ac_link) 2>&5 | 
 | 17875 |   ac_status=$? | 
 | 17876 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17877 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 17878 |     (./conftest; exit; ) 2>/dev/null | 
 | 17879 |     lt_status=$? | 
 | 17880 |     case x$lt_status in | 
 | 17881 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 17882 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 17883 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 17884 |     esac | 
 | 17885 |   else : | 
 | 17886 |     # compilation failed | 
 | 17887 |     lt_cv_dlopen_self=no | 
 | 17888 |   fi | 
 | 17889 | fi | 
 | 17890 | rm -fr conftest* | 
 | 17891 |  | 
 | 17892 |  | 
 | 17893 | fi | 
 | 17894 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 17895 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 17896 |  | 
 | 17897 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 17898 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 17899 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 17900 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 17901 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 17902 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17903 | else | 
 | 17904 |   	  if test "$cross_compiling" = yes; then : | 
 | 17905 |   lt_cv_dlopen_self_static=cross | 
 | 17906 | else | 
 | 17907 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 17908 |   lt_status=$lt_dlunknown | 
 | 17909 |   cat > conftest.$ac_ext <<EOF | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 17910 | #line 17910 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17911 | #include "confdefs.h" | 
 | 17912 |  | 
 | 17913 | #if HAVE_DLFCN_H | 
 | 17914 | #include <dlfcn.h> | 
 | 17915 | #endif | 
 | 17916 |  | 
 | 17917 | #include <stdio.h> | 
 | 17918 |  | 
 | 17919 | #ifdef RTLD_GLOBAL | 
 | 17920 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 17921 | #else | 
 | 17922 | #  ifdef DL_GLOBAL | 
 | 17923 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 17924 | #  else | 
 | 17925 | #    define LT_DLGLOBAL		0 | 
 | 17926 | #  endif | 
 | 17927 | #endif | 
 | 17928 |  | 
 | 17929 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 17930 |    find out it does not work in some platform. */ | 
 | 17931 | #ifndef LT_DLLAZY_OR_NOW | 
 | 17932 | #  ifdef RTLD_LAZY | 
 | 17933 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 17934 | #  else | 
 | 17935 | #    ifdef DL_LAZY | 
 | 17936 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 17937 | #    else | 
 | 17938 | #      ifdef RTLD_NOW | 
 | 17939 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 17940 | #      else | 
 | 17941 | #        ifdef DL_NOW | 
 | 17942 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 17943 | #        else | 
 | 17944 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 17945 | #        endif | 
 | 17946 | #      endif | 
 | 17947 | #    endif | 
 | 17948 | #  endif | 
 | 17949 | #endif | 
 | 17950 |  | 
 | 17951 | #ifdef __cplusplus | 
 | 17952 | extern "C" void exit (int); | 
 | 17953 | #endif | 
 | 17954 |  | 
 | 17955 | void fnord() { int i=42;} | 
 | 17956 | int main () | 
 | 17957 | { | 
 | 17958 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 17959 |   int status = $lt_dlunknown; | 
 | 17960 |  | 
 | 17961 |   if (self) | 
 | 17962 |     { | 
 | 17963 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 17964 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 17965 |       /* dlclose (self); */ | 
 | 17966 |     } | 
 | 17967 |  | 
 | 17968 |     exit (status); | 
 | 17969 | } | 
 | 17970 | EOF | 
 | 17971 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 17972 |   (eval $ac_link) 2>&5 | 
 | 17973 |   ac_status=$? | 
 | 17974 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17975 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 17976 |     (./conftest; exit; ) 2>/dev/null | 
 | 17977 |     lt_status=$? | 
 | 17978 |     case x$lt_status in | 
 | 17979 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 17980 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 17981 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 17982 |     esac | 
 | 17983 |   else : | 
 | 17984 |     # compilation failed | 
 | 17985 |     lt_cv_dlopen_self_static=no | 
 | 17986 |   fi | 
 | 17987 | fi | 
 | 17988 | rm -fr conftest* | 
 | 17989 |  | 
 | 17990 |  | 
 | 17991 | fi | 
 | 17992 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 17993 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 17994 |     fi | 
 | 17995 |  | 
 | 17996 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 17997 |     LDFLAGS="$save_LDFLAGS" | 
 | 17998 |     LIBS="$save_LIBS" | 
 | 17999 |     ;; | 
 | 18000 |   esac | 
 | 18001 |  | 
 | 18002 |   case $lt_cv_dlopen_self in | 
 | 18003 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 18004 |   *) enable_dlopen_self=unknown ;; | 
 | 18005 |   esac | 
 | 18006 |  | 
 | 18007 |   case $lt_cv_dlopen_self_static in | 
 | 18008 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 18009 |   *) enable_dlopen_self_static=unknown ;; | 
 | 18010 |   esac | 
 | 18011 | fi | 
 | 18012 |  | 
 | 18013 |  | 
 | 18014 | # The else clause should only fire when bootstrapping the | 
 | 18015 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 18016 | # with your package, and you will get complaints that there are | 
 | 18017 | # no rules to generate ltmain.sh. | 
 | 18018 | if test -f "$ltmain"; then | 
 | 18019 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 18020 |   # without removal of \ escapes. | 
 | 18021 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 18022 |     setopt NO_GLOB_SUBST | 
 | 18023 |   fi | 
 | 18024 |   # Now quote all the things that may contain metacharacters while being | 
 | 18025 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 18026 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18027 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 18028 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18029 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 18030 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 18031 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 18032 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 18033 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 18034 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 18035 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 18036 |     compiler_GCJ \ | 
 | 18037 |     CC_GCJ \ | 
 | 18038 |     LD_GCJ \ | 
 | 18039 |     lt_prog_compiler_wl_GCJ \ | 
 | 18040 |     lt_prog_compiler_pic_GCJ \ | 
 | 18041 |     lt_prog_compiler_static_GCJ \ | 
 | 18042 |     lt_prog_compiler_no_builtin_flag_GCJ \ | 
 | 18043 |     export_dynamic_flag_spec_GCJ \ | 
 | 18044 |     thread_safe_flag_spec_GCJ \ | 
 | 18045 |     whole_archive_flag_spec_GCJ \ | 
 | 18046 |     enable_shared_with_static_runtimes_GCJ \ | 
 | 18047 |     old_archive_cmds_GCJ \ | 
 | 18048 |     old_archive_from_new_cmds_GCJ \ | 
 | 18049 |     predep_objects_GCJ \ | 
 | 18050 |     postdep_objects_GCJ \ | 
 | 18051 |     predeps_GCJ \ | 
 | 18052 |     postdeps_GCJ \ | 
 | 18053 |     compiler_lib_search_path_GCJ \ | 
 | 18054 |     archive_cmds_GCJ \ | 
 | 18055 |     archive_expsym_cmds_GCJ \ | 
 | 18056 |     postinstall_cmds_GCJ \ | 
 | 18057 |     postuninstall_cmds_GCJ \ | 
 | 18058 |     old_archive_from_expsyms_cmds_GCJ \ | 
 | 18059 |     allow_undefined_flag_GCJ \ | 
 | 18060 |     no_undefined_flag_GCJ \ | 
 | 18061 |     export_symbols_cmds_GCJ \ | 
 | 18062 |     hardcode_libdir_flag_spec_GCJ \ | 
 | 18063 |     hardcode_libdir_flag_spec_ld_GCJ \ | 
 | 18064 |     hardcode_libdir_separator_GCJ \ | 
 | 18065 |     hardcode_automatic_GCJ \ | 
 | 18066 |     module_cmds_GCJ \ | 
 | 18067 |     module_expsym_cmds_GCJ \ | 
 | 18068 |     lt_cv_prog_compiler_c_o_GCJ \ | 
 | 18069 |     exclude_expsyms_GCJ \ | 
 | 18070 |     include_expsyms_GCJ; do | 
 | 18071 |  | 
 | 18072 |     case $var in | 
 | 18073 |     old_archive_cmds_GCJ | \ | 
 | 18074 |     old_archive_from_new_cmds_GCJ | \ | 
 | 18075 |     archive_cmds_GCJ | \ | 
 | 18076 |     archive_expsym_cmds_GCJ | \ | 
 | 18077 |     module_cmds_GCJ | \ | 
 | 18078 |     module_expsym_cmds_GCJ | \ | 
 | 18079 |     old_archive_from_expsyms_cmds_GCJ | \ | 
 | 18080 |     export_symbols_cmds_GCJ | \ | 
 | 18081 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 18082 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 18083 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 18084 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 18085 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18086 |       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] | 18087 |       ;; | 
 | 18088 |     *) | 
 | 18089 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 18090 |       ;; | 
 | 18091 |     esac | 
 | 18092 |   done | 
 | 18093 |  | 
 | 18094 |   case $lt_echo in | 
 | 18095 |   *'\$0 --fallback-echo"') | 
 | 18096 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 18097 |     ;; | 
 | 18098 |   esac | 
 | 18099 |  | 
 | 18100 | cfgfile="$ofile" | 
 | 18101 |  | 
 | 18102 |   cat <<__EOF__ >> "$cfgfile" | 
 | 18103 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 18104 |  | 
 | 18105 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 18106 |  | 
 | 18107 | # Shell to use when invoking shell scripts. | 
 | 18108 | SHELL=$lt_SHELL | 
 | 18109 |  | 
 | 18110 | # Whether or not to build shared libraries. | 
 | 18111 | build_libtool_libs=$enable_shared | 
 | 18112 |  | 
 | 18113 | # Whether or not to build static libraries. | 
 | 18114 | build_old_libs=$enable_static | 
 | 18115 |  | 
 | 18116 | # Whether or not to add -lc for building shared libraries. | 
 | 18117 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
 | 18118 |  | 
 | 18119 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 18120 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
 | 18121 |  | 
 | 18122 | # Whether or not to optimize for fast installation. | 
 | 18123 | fast_install=$enable_fast_install | 
 | 18124 |  | 
 | 18125 | # The host system. | 
 | 18126 | host_alias=$host_alias | 
 | 18127 | host=$host | 
 | 18128 |  | 
 | 18129 | # An echo program that does not interpret backslashes. | 
 | 18130 | echo=$lt_echo | 
 | 18131 |  | 
 | 18132 | # The archiver. | 
 | 18133 | AR=$lt_AR | 
 | 18134 | AR_FLAGS=$lt_AR_FLAGS | 
 | 18135 |  | 
 | 18136 | # A C compiler. | 
 | 18137 | LTCC=$lt_LTCC | 
 | 18138 |  | 
 | 18139 | # A language-specific compiler. | 
 | 18140 | CC=$lt_compiler_GCJ | 
 | 18141 |  | 
 | 18142 | # Is the compiler the GNU C compiler? | 
 | 18143 | with_gcc=$GCC_GCJ | 
 | 18144 |  | 
 | 18145 | # An ERE matcher. | 
 | 18146 | EGREP=$lt_EGREP | 
 | 18147 |  | 
 | 18148 | # The linker used to build libraries. | 
 | 18149 | LD=$lt_LD_GCJ | 
 | 18150 |  | 
 | 18151 | # Whether we need hard or soft links. | 
 | 18152 | LN_S=$lt_LN_S | 
 | 18153 |  | 
 | 18154 | # A BSD-compatible nm program. | 
 | 18155 | NM=$lt_NM | 
 | 18156 |  | 
 | 18157 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18158 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18159 |  | 
 | 18160 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 18161 | MAGIC_CMD=$MAGIC_CMD | 
 | 18162 |  | 
 | 18163 | # Used on cygwin: DLL creation program. | 
 | 18164 | DLLTOOL="$DLLTOOL" | 
 | 18165 |  | 
 | 18166 | # Used on cygwin: object dumper. | 
 | 18167 | OBJDUMP="$OBJDUMP" | 
 | 18168 |  | 
 | 18169 | # Used on cygwin: assembler. | 
 | 18170 | AS="$AS" | 
 | 18171 |  | 
 | 18172 | # The name of the directory that contains temporary libtool files. | 
 | 18173 | objdir=$objdir | 
 | 18174 |  | 
 | 18175 | # How to create reloadable object files. | 
 | 18176 | reload_flag=$lt_reload_flag | 
 | 18177 | reload_cmds=$lt_reload_cmds | 
 | 18178 |  | 
 | 18179 | # How to pass a linker flag through the compiler. | 
 | 18180 | wl=$lt_lt_prog_compiler_wl_GCJ | 
 | 18181 |  | 
 | 18182 | # Object file suffix (normally "o"). | 
 | 18183 | objext="$ac_objext" | 
 | 18184 |  | 
 | 18185 | # Old archive suffix (normally "a"). | 
 | 18186 | libext="$libext" | 
 | 18187 |  | 
 | 18188 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18189 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18190 |  | 
 | 18191 | # Executable file suffix (normally ""). | 
 | 18192 | exeext="$exeext" | 
 | 18193 |  | 
 | 18194 | # Additional compiler flags for building library objects. | 
 | 18195 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
 | 18196 | pic_mode=$pic_mode | 
 | 18197 |  | 
 | 18198 | # What is the maximum length of a command? | 
 | 18199 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 18200 |  | 
 | 18201 | # Does compiler simultaneously support -c and -o options? | 
 | 18202 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
 | 18203 |  | 
 | 18204 | # Must we lock files when doing compilation ? | 
 | 18205 | need_locks=$lt_need_locks | 
 | 18206 |  | 
 | 18207 | # Do we need the lib prefix for modules? | 
 | 18208 | need_lib_prefix=$need_lib_prefix | 
 | 18209 |  | 
 | 18210 | # Do we need a version for libraries? | 
 | 18211 | need_version=$need_version | 
 | 18212 |  | 
 | 18213 | # Whether dlopen is supported. | 
 | 18214 | dlopen_support=$enable_dlopen | 
 | 18215 |  | 
 | 18216 | # Whether dlopen of programs is supported. | 
 | 18217 | dlopen_self=$enable_dlopen_self | 
 | 18218 |  | 
 | 18219 | # Whether dlopen of statically linked programs is supported. | 
 | 18220 | dlopen_self_static=$enable_dlopen_self_static | 
 | 18221 |  | 
 | 18222 | # Compiler flag to prevent dynamic linking. | 
 | 18223 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
 | 18224 |  | 
 | 18225 | # Compiler flag to turn off builtin functions. | 
 | 18226 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
 | 18227 |  | 
 | 18228 | # Compiler flag to allow reflexive dlopens. | 
 | 18229 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
 | 18230 |  | 
 | 18231 | # Compiler flag to generate shared objects directly from archives. | 
 | 18232 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
 | 18233 |  | 
 | 18234 | # Compiler flag to generate thread-safe objects. | 
 | 18235 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
 | 18236 |  | 
 | 18237 | # Library versioning type. | 
 | 18238 | version_type=$version_type | 
 | 18239 |  | 
 | 18240 | # Format of library name prefix. | 
 | 18241 | libname_spec=$lt_libname_spec | 
 | 18242 |  | 
 | 18243 | # List of archive names.  First name is the real one, the rest are links. | 
 | 18244 | # The last name is the one that the linker finds with -lNAME. | 
 | 18245 | library_names_spec=$lt_library_names_spec | 
 | 18246 |  | 
 | 18247 | # The coded name of the library, if different from the real name. | 
 | 18248 | soname_spec=$lt_soname_spec | 
 | 18249 |  | 
 | 18250 | # Commands used to build and install an old-style archive. | 
 | 18251 | RANLIB=$lt_RANLIB | 
 | 18252 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
 | 18253 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 18254 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 18255 |  | 
 | 18256 | # Create an old-style archive from a shared archive. | 
 | 18257 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
 | 18258 |  | 
 | 18259 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 18260 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
 | 18261 |  | 
 | 18262 | # Commands used to build and install a shared archive. | 
 | 18263 | archive_cmds=$lt_archive_cmds_GCJ | 
 | 18264 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
 | 18265 | postinstall_cmds=$lt_postinstall_cmds | 
 | 18266 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 18267 |  | 
 | 18268 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 18269 | module_cmds=$lt_module_cmds_GCJ | 
 | 18270 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
 | 18271 |  | 
 | 18272 | # Commands to strip libraries. | 
 | 18273 | old_striplib=$lt_old_striplib | 
 | 18274 | striplib=$lt_striplib | 
 | 18275 |  | 
 | 18276 | # Dependencies to place before the objects being linked to create a | 
 | 18277 | # shared library. | 
 | 18278 | predep_objects=$lt_predep_objects_GCJ | 
 | 18279 |  | 
 | 18280 | # Dependencies to place after the objects being linked to create a | 
 | 18281 | # shared library. | 
 | 18282 | postdep_objects=$lt_postdep_objects_GCJ | 
 | 18283 |  | 
 | 18284 | # Dependencies to place before the objects being linked to create a | 
 | 18285 | # shared library. | 
 | 18286 | predeps=$lt_predeps_GCJ | 
 | 18287 |  | 
 | 18288 | # Dependencies to place after the objects being linked to create a | 
 | 18289 | # shared library. | 
 | 18290 | postdeps=$lt_postdeps_GCJ | 
 | 18291 |  | 
 | 18292 | # The library search path used internally by the compiler when linking | 
 | 18293 | # a shared library. | 
 | 18294 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
 | 18295 |  | 
 | 18296 | # Method to check whether dependent libraries are shared objects. | 
 | 18297 | deplibs_check_method=$lt_deplibs_check_method | 
 | 18298 |  | 
 | 18299 | # Command to use when deplibs_check_method == file_magic. | 
 | 18300 | file_magic_cmd=$lt_file_magic_cmd | 
 | 18301 |  | 
 | 18302 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 18303 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
 | 18304 |  | 
 | 18305 | # Flag that forces no undefined symbols. | 
 | 18306 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
 | 18307 |  | 
 | 18308 | # Commands used to finish a libtool library installation in a directory. | 
 | 18309 | finish_cmds=$lt_finish_cmds | 
 | 18310 |  | 
 | 18311 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 18312 | finish_eval=$lt_finish_eval | 
 | 18313 |  | 
 | 18314 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 18315 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 18316 |  | 
 | 18317 | # Transform the output of nm in a proper C declaration | 
 | 18318 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 18319 |  | 
 | 18320 | # Transform the output of nm in a C name address pair | 
 | 18321 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 18322 |  | 
 | 18323 | # This is the shared library runtime path variable. | 
 | 18324 | runpath_var=$runpath_var | 
 | 18325 |  | 
 | 18326 | # This is the shared library path variable. | 
 | 18327 | shlibpath_var=$shlibpath_var | 
 | 18328 |  | 
 | 18329 | # Is shlibpath searched before the hard-coded library search path? | 
 | 18330 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 18331 |  | 
 | 18332 | # How to hardcode a shared library path into an executable. | 
 | 18333 | hardcode_action=$hardcode_action_GCJ | 
 | 18334 |  | 
 | 18335 | # Whether we should hardcode library paths into libraries. | 
 | 18336 | hardcode_into_libs=$hardcode_into_libs | 
 | 18337 |  | 
 | 18338 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 18339 | # This must work even if \$libdir does not exist. | 
 | 18340 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
 | 18341 |  | 
 | 18342 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 18343 | # a binary during linking. This must work even if \$libdir does | 
 | 18344 | # not exist. | 
 | 18345 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
 | 18346 |  | 
 | 18347 | # Whether we need a single -rpath flag with a separated argument. | 
 | 18348 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
 | 18349 |  | 
 | 18350 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 18351 | # resulting binary. | 
 | 18352 | hardcode_direct=$hardcode_direct_GCJ | 
 | 18353 |  | 
 | 18354 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 18355 | # resulting binary. | 
 | 18356 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
 | 18357 |  | 
 | 18358 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 18359 | # the resulting binary. | 
 | 18360 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
 | 18361 |  | 
 | 18362 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 18363 | # and all subsequent libraries and executables linked against it. | 
 | 18364 | hardcode_automatic=$hardcode_automatic_GCJ | 
 | 18365 |  | 
 | 18366 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 18367 | # restored at relink time. | 
 | 18368 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 18369 |  | 
 | 18370 | # Whether libtool must link a program against all its dependency libraries. | 
 | 18371 | link_all_deplibs=$link_all_deplibs_GCJ | 
 | 18372 |  | 
 | 18373 | # Compile-time system search path for libraries | 
 | 18374 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 18375 |  | 
 | 18376 | # Run-time system search path for libraries | 
 | 18377 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 18378 |  | 
 | 18379 | # Fix the shell variable \$srcfile for the compiler. | 
 | 18380 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
 | 18381 |  | 
 | 18382 | # Set to yes if exported symbols are required. | 
 | 18383 | always_export_symbols=$always_export_symbols_GCJ | 
 | 18384 |  | 
 | 18385 | # The commands to list exported symbols. | 
 | 18386 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
 | 18387 |  | 
 | 18388 | # The commands to extract the exported symbol list from a shared archive. | 
 | 18389 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 18390 |  | 
 | 18391 | # Symbols that should not be listed in the preloaded symbols. | 
 | 18392 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
 | 18393 |  | 
 | 18394 | # Symbols that must always be exported. | 
 | 18395 | include_expsyms=$lt_include_expsyms_GCJ | 
 | 18396 |  | 
 | 18397 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 18398 |  | 
 | 18399 | __EOF__ | 
 | 18400 |  | 
 | 18401 |  | 
 | 18402 | else | 
 | 18403 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 18404 |   # `config.status --recheck' to rerun these tests and create the | 
 | 18405 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18406 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 18407 |   if test -f "$ltmain_in"; then | 
 | 18408 |     test -f Makefile && make "$ltmain" | 
 | 18409 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18410 | fi | 
 | 18411 |  | 
 | 18412 |  | 
 | 18413 | ac_ext=c | 
 | 18414 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 18418 |  | 
 | 18419 | CC="$lt_save_CC" | 
 | 18420 |  | 
 | 18421 | 	else | 
 | 18422 | 	  tagname="" | 
 | 18423 | 	fi | 
 | 18424 | 	;; | 
 | 18425 |  | 
 | 18426 |       RC) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18427 | 	ac_ext=c | 
 | 18428 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18432 |  | 
 | 18433 |  | 
 | 18434 | # Source file extension for RC test sources. | 
 | 18435 | ac_ext=rc | 
 | 18436 |  | 
 | 18437 | # Object file extension for compiled RC test sources. | 
 | 18438 | objext=o | 
 | 18439 | objext_RC=$objext | 
 | 18440 |  | 
 | 18441 | # Code to be used in simple compile tests | 
 | 18442 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
 | 18443 |  | 
 | 18444 | # Code to be used in simple link tests | 
 | 18445 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
 | 18446 |  | 
 | 18447 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 18448 |  | 
 | 18449 | # If no C compiler was specified, use CC. | 
 | 18450 | LTCC=${LTCC-"$CC"} | 
 | 18451 |  | 
 | 18452 | # Allow CC to be a program name with arguments. | 
 | 18453 | compiler=$CC | 
 | 18454 |  | 
 | 18455 |  | 
 | 18456 | # Allow CC to be a program name with arguments. | 
 | 18457 | lt_save_CC="$CC" | 
 | 18458 | CC=${RC-"windres"} | 
 | 18459 | compiler=$CC | 
 | 18460 | compiler_RC=$CC | 
 | 18461 | lt_cv_prog_compiler_c_o_RC=yes | 
 | 18462 |  | 
 | 18463 | # The else clause should only fire when bootstrapping the | 
 | 18464 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 18465 | # with your package, and you will get complaints that there are | 
 | 18466 | # no rules to generate ltmain.sh. | 
 | 18467 | if test -f "$ltmain"; then | 
 | 18468 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 18469 |   # without removal of \ escapes. | 
 | 18470 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 18471 |     setopt NO_GLOB_SUBST | 
 | 18472 |   fi | 
 | 18473 |   # Now quote all the things that may contain metacharacters while being | 
 | 18474 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 18475 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18476 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 18477 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18478 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 18479 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 18480 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 18481 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 18482 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 18483 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 18484 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 18485 |     compiler_RC \ | 
 | 18486 |     CC_RC \ | 
 | 18487 |     LD_RC \ | 
 | 18488 |     lt_prog_compiler_wl_RC \ | 
 | 18489 |     lt_prog_compiler_pic_RC \ | 
 | 18490 |     lt_prog_compiler_static_RC \ | 
 | 18491 |     lt_prog_compiler_no_builtin_flag_RC \ | 
 | 18492 |     export_dynamic_flag_spec_RC \ | 
 | 18493 |     thread_safe_flag_spec_RC \ | 
 | 18494 |     whole_archive_flag_spec_RC \ | 
 | 18495 |     enable_shared_with_static_runtimes_RC \ | 
 | 18496 |     old_archive_cmds_RC \ | 
 | 18497 |     old_archive_from_new_cmds_RC \ | 
 | 18498 |     predep_objects_RC \ | 
 | 18499 |     postdep_objects_RC \ | 
 | 18500 |     predeps_RC \ | 
 | 18501 |     postdeps_RC \ | 
 | 18502 |     compiler_lib_search_path_RC \ | 
 | 18503 |     archive_cmds_RC \ | 
 | 18504 |     archive_expsym_cmds_RC \ | 
 | 18505 |     postinstall_cmds_RC \ | 
 | 18506 |     postuninstall_cmds_RC \ | 
 | 18507 |     old_archive_from_expsyms_cmds_RC \ | 
 | 18508 |     allow_undefined_flag_RC \ | 
 | 18509 |     no_undefined_flag_RC \ | 
 | 18510 |     export_symbols_cmds_RC \ | 
 | 18511 |     hardcode_libdir_flag_spec_RC \ | 
 | 18512 |     hardcode_libdir_flag_spec_ld_RC \ | 
 | 18513 |     hardcode_libdir_separator_RC \ | 
 | 18514 |     hardcode_automatic_RC \ | 
 | 18515 |     module_cmds_RC \ | 
 | 18516 |     module_expsym_cmds_RC \ | 
 | 18517 |     lt_cv_prog_compiler_c_o_RC \ | 
 | 18518 |     exclude_expsyms_RC \ | 
 | 18519 |     include_expsyms_RC; do | 
 | 18520 |  | 
 | 18521 |     case $var in | 
 | 18522 |     old_archive_cmds_RC | \ | 
 | 18523 |     old_archive_from_new_cmds_RC | \ | 
 | 18524 |     archive_cmds_RC | \ | 
 | 18525 |     archive_expsym_cmds_RC | \ | 
 | 18526 |     module_cmds_RC | \ | 
 | 18527 |     module_expsym_cmds_RC | \ | 
 | 18528 |     old_archive_from_expsyms_cmds_RC | \ | 
 | 18529 |     export_symbols_cmds_RC | \ | 
 | 18530 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 18531 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 18532 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 18533 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 18534 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18535 |       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] | 18536 |       ;; | 
 | 18537 |     *) | 
 | 18538 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 18539 |       ;; | 
 | 18540 |     esac | 
 | 18541 |   done | 
 | 18542 |  | 
 | 18543 |   case $lt_echo in | 
 | 18544 |   *'\$0 --fallback-echo"') | 
 | 18545 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 18546 |     ;; | 
 | 18547 |   esac | 
 | 18548 |  | 
 | 18549 | cfgfile="$ofile" | 
 | 18550 |  | 
 | 18551 |   cat <<__EOF__ >> "$cfgfile" | 
 | 18552 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 18553 |  | 
 | 18554 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 18555 |  | 
 | 18556 | # Shell to use when invoking shell scripts. | 
 | 18557 | SHELL=$lt_SHELL | 
 | 18558 |  | 
 | 18559 | # Whether or not to build shared libraries. | 
 | 18560 | build_libtool_libs=$enable_shared | 
 | 18561 |  | 
 | 18562 | # Whether or not to build static libraries. | 
 | 18563 | build_old_libs=$enable_static | 
 | 18564 |  | 
 | 18565 | # Whether or not to add -lc for building shared libraries. | 
 | 18566 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
 | 18567 |  | 
 | 18568 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 18569 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
 | 18570 |  | 
 | 18571 | # Whether or not to optimize for fast installation. | 
 | 18572 | fast_install=$enable_fast_install | 
 | 18573 |  | 
 | 18574 | # The host system. | 
 | 18575 | host_alias=$host_alias | 
 | 18576 | host=$host | 
 | 18577 |  | 
 | 18578 | # An echo program that does not interpret backslashes. | 
 | 18579 | echo=$lt_echo | 
 | 18580 |  | 
 | 18581 | # The archiver. | 
 | 18582 | AR=$lt_AR | 
 | 18583 | AR_FLAGS=$lt_AR_FLAGS | 
 | 18584 |  | 
 | 18585 | # A C compiler. | 
 | 18586 | LTCC=$lt_LTCC | 
 | 18587 |  | 
 | 18588 | # A language-specific compiler. | 
 | 18589 | CC=$lt_compiler_RC | 
 | 18590 |  | 
 | 18591 | # Is the compiler the GNU C compiler? | 
 | 18592 | with_gcc=$GCC_RC | 
 | 18593 |  | 
 | 18594 | # An ERE matcher. | 
 | 18595 | EGREP=$lt_EGREP | 
 | 18596 |  | 
 | 18597 | # The linker used to build libraries. | 
 | 18598 | LD=$lt_LD_RC | 
 | 18599 |  | 
 | 18600 | # Whether we need hard or soft links. | 
 | 18601 | LN_S=$lt_LN_S | 
 | 18602 |  | 
 | 18603 | # A BSD-compatible nm program. | 
 | 18604 | NM=$lt_NM | 
 | 18605 |  | 
 | 18606 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18607 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18608 |  | 
 | 18609 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 18610 | MAGIC_CMD=$MAGIC_CMD | 
 | 18611 |  | 
 | 18612 | # Used on cygwin: DLL creation program. | 
 | 18613 | DLLTOOL="$DLLTOOL" | 
 | 18614 |  | 
 | 18615 | # Used on cygwin: object dumper. | 
 | 18616 | OBJDUMP="$OBJDUMP" | 
 | 18617 |  | 
 | 18618 | # Used on cygwin: assembler. | 
 | 18619 | AS="$AS" | 
 | 18620 |  | 
 | 18621 | # The name of the directory that contains temporary libtool files. | 
 | 18622 | objdir=$objdir | 
 | 18623 |  | 
 | 18624 | # How to create reloadable object files. | 
 | 18625 | reload_flag=$lt_reload_flag | 
 | 18626 | reload_cmds=$lt_reload_cmds | 
 | 18627 |  | 
 | 18628 | # How to pass a linker flag through the compiler. | 
 | 18629 | wl=$lt_lt_prog_compiler_wl_RC | 
 | 18630 |  | 
 | 18631 | # Object file suffix (normally "o"). | 
 | 18632 | objext="$ac_objext" | 
 | 18633 |  | 
 | 18634 | # Old archive suffix (normally "a"). | 
 | 18635 | libext="$libext" | 
 | 18636 |  | 
 | 18637 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18638 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18639 |  | 
 | 18640 | # Executable file suffix (normally ""). | 
 | 18641 | exeext="$exeext" | 
 | 18642 |  | 
 | 18643 | # Additional compiler flags for building library objects. | 
 | 18644 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
 | 18645 | pic_mode=$pic_mode | 
 | 18646 |  | 
 | 18647 | # What is the maximum length of a command? | 
 | 18648 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 18649 |  | 
 | 18650 | # Does compiler simultaneously support -c and -o options? | 
 | 18651 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
 | 18652 |  | 
 | 18653 | # Must we lock files when doing compilation ? | 
 | 18654 | need_locks=$lt_need_locks | 
 | 18655 |  | 
 | 18656 | # Do we need the lib prefix for modules? | 
 | 18657 | need_lib_prefix=$need_lib_prefix | 
 | 18658 |  | 
 | 18659 | # Do we need a version for libraries? | 
 | 18660 | need_version=$need_version | 
 | 18661 |  | 
 | 18662 | # Whether dlopen is supported. | 
 | 18663 | dlopen_support=$enable_dlopen | 
 | 18664 |  | 
 | 18665 | # Whether dlopen of programs is supported. | 
 | 18666 | dlopen_self=$enable_dlopen_self | 
 | 18667 |  | 
 | 18668 | # Whether dlopen of statically linked programs is supported. | 
 | 18669 | dlopen_self_static=$enable_dlopen_self_static | 
 | 18670 |  | 
 | 18671 | # Compiler flag to prevent dynamic linking. | 
 | 18672 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
 | 18673 |  | 
 | 18674 | # Compiler flag to turn off builtin functions. | 
 | 18675 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
 | 18676 |  | 
 | 18677 | # Compiler flag to allow reflexive dlopens. | 
 | 18678 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
 | 18679 |  | 
 | 18680 | # Compiler flag to generate shared objects directly from archives. | 
 | 18681 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
 | 18682 |  | 
 | 18683 | # Compiler flag to generate thread-safe objects. | 
 | 18684 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
 | 18685 |  | 
 | 18686 | # Library versioning type. | 
 | 18687 | version_type=$version_type | 
 | 18688 |  | 
 | 18689 | # Format of library name prefix. | 
 | 18690 | libname_spec=$lt_libname_spec | 
 | 18691 |  | 
 | 18692 | # List of archive names.  First name is the real one, the rest are links. | 
 | 18693 | # The last name is the one that the linker finds with -lNAME. | 
 | 18694 | library_names_spec=$lt_library_names_spec | 
 | 18695 |  | 
 | 18696 | # The coded name of the library, if different from the real name. | 
 | 18697 | soname_spec=$lt_soname_spec | 
 | 18698 |  | 
 | 18699 | # Commands used to build and install an old-style archive. | 
 | 18700 | RANLIB=$lt_RANLIB | 
 | 18701 | old_archive_cmds=$lt_old_archive_cmds_RC | 
 | 18702 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 18703 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 18704 |  | 
 | 18705 | # Create an old-style archive from a shared archive. | 
 | 18706 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
 | 18707 |  | 
 | 18708 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 18709 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
 | 18710 |  | 
 | 18711 | # Commands used to build and install a shared archive. | 
 | 18712 | archive_cmds=$lt_archive_cmds_RC | 
 | 18713 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
 | 18714 | postinstall_cmds=$lt_postinstall_cmds | 
 | 18715 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 18716 |  | 
 | 18717 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 18718 | module_cmds=$lt_module_cmds_RC | 
 | 18719 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
 | 18720 |  | 
 | 18721 | # Commands to strip libraries. | 
 | 18722 | old_striplib=$lt_old_striplib | 
 | 18723 | striplib=$lt_striplib | 
 | 18724 |  | 
 | 18725 | # Dependencies to place before the objects being linked to create a | 
 | 18726 | # shared library. | 
 | 18727 | predep_objects=$lt_predep_objects_RC | 
 | 18728 |  | 
 | 18729 | # Dependencies to place after the objects being linked to create a | 
 | 18730 | # shared library. | 
 | 18731 | postdep_objects=$lt_postdep_objects_RC | 
 | 18732 |  | 
 | 18733 | # Dependencies to place before the objects being linked to create a | 
 | 18734 | # shared library. | 
 | 18735 | predeps=$lt_predeps_RC | 
 | 18736 |  | 
 | 18737 | # Dependencies to place after the objects being linked to create a | 
 | 18738 | # shared library. | 
 | 18739 | postdeps=$lt_postdeps_RC | 
 | 18740 |  | 
 | 18741 | # The library search path used internally by the compiler when linking | 
 | 18742 | # a shared library. | 
 | 18743 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
 | 18744 |  | 
 | 18745 | # Method to check whether dependent libraries are shared objects. | 
 | 18746 | deplibs_check_method=$lt_deplibs_check_method | 
 | 18747 |  | 
 | 18748 | # Command to use when deplibs_check_method == file_magic. | 
 | 18749 | file_magic_cmd=$lt_file_magic_cmd | 
 | 18750 |  | 
 | 18751 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 18752 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
 | 18753 |  | 
 | 18754 | # Flag that forces no undefined symbols. | 
 | 18755 | no_undefined_flag=$lt_no_undefined_flag_RC | 
 | 18756 |  | 
 | 18757 | # Commands used to finish a libtool library installation in a directory. | 
 | 18758 | finish_cmds=$lt_finish_cmds | 
 | 18759 |  | 
 | 18760 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 18761 | finish_eval=$lt_finish_eval | 
 | 18762 |  | 
 | 18763 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 18764 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 18765 |  | 
 | 18766 | # Transform the output of nm in a proper C declaration | 
 | 18767 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 18768 |  | 
 | 18769 | # Transform the output of nm in a C name address pair | 
 | 18770 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 18771 |  | 
 | 18772 | # This is the shared library runtime path variable. | 
 | 18773 | runpath_var=$runpath_var | 
 | 18774 |  | 
 | 18775 | # This is the shared library path variable. | 
 | 18776 | shlibpath_var=$shlibpath_var | 
 | 18777 |  | 
 | 18778 | # Is shlibpath searched before the hard-coded library search path? | 
 | 18779 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 18780 |  | 
 | 18781 | # How to hardcode a shared library path into an executable. | 
 | 18782 | hardcode_action=$hardcode_action_RC | 
 | 18783 |  | 
 | 18784 | # Whether we should hardcode library paths into libraries. | 
 | 18785 | hardcode_into_libs=$hardcode_into_libs | 
 | 18786 |  | 
 | 18787 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 18788 | # This must work even if \$libdir does not exist. | 
 | 18789 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
 | 18790 |  | 
 | 18791 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 18792 | # a binary during linking. This must work even if \$libdir does | 
 | 18793 | # not exist. | 
 | 18794 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
 | 18795 |  | 
 | 18796 | # Whether we need a single -rpath flag with a separated argument. | 
 | 18797 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
 | 18798 |  | 
 | 18799 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 18800 | # resulting binary. | 
 | 18801 | hardcode_direct=$hardcode_direct_RC | 
 | 18802 |  | 
 | 18803 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 18804 | # resulting binary. | 
 | 18805 | hardcode_minus_L=$hardcode_minus_L_RC | 
 | 18806 |  | 
 | 18807 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 18808 | # the resulting binary. | 
 | 18809 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
 | 18810 |  | 
 | 18811 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 18812 | # and all subsequent libraries and executables linked against it. | 
 | 18813 | hardcode_automatic=$hardcode_automatic_RC | 
 | 18814 |  | 
 | 18815 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 18816 | # restored at relink time. | 
 | 18817 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 18818 |  | 
 | 18819 | # Whether libtool must link a program against all its dependency libraries. | 
 | 18820 | link_all_deplibs=$link_all_deplibs_RC | 
 | 18821 |  | 
 | 18822 | # Compile-time system search path for libraries | 
 | 18823 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 18824 |  | 
 | 18825 | # Run-time system search path for libraries | 
 | 18826 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 18827 |  | 
 | 18828 | # Fix the shell variable \$srcfile for the compiler. | 
 | 18829 | fix_srcfile_path="$fix_srcfile_path_RC" | 
 | 18830 |  | 
 | 18831 | # Set to yes if exported symbols are required. | 
 | 18832 | always_export_symbols=$always_export_symbols_RC | 
 | 18833 |  | 
 | 18834 | # The commands to list exported symbols. | 
 | 18835 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
 | 18836 |  | 
 | 18837 | # The commands to extract the exported symbol list from a shared archive. | 
 | 18838 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 18839 |  | 
 | 18840 | # Symbols that should not be listed in the preloaded symbols. | 
 | 18841 | exclude_expsyms=$lt_exclude_expsyms_RC | 
 | 18842 |  | 
 | 18843 | # Symbols that must always be exported. | 
 | 18844 | include_expsyms=$lt_include_expsyms_RC | 
 | 18845 |  | 
 | 18846 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 18847 |  | 
 | 18848 | __EOF__ | 
 | 18849 |  | 
 | 18850 |  | 
 | 18851 | else | 
 | 18852 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 18853 |   # `config.status --recheck' to rerun these tests and create the | 
 | 18854 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18855 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 18856 |   if test -f "$ltmain_in"; then | 
 | 18857 |     test -f Makefile && make "$ltmain" | 
 | 18858 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18859 | fi | 
 | 18860 |  | 
 | 18861 |  | 
 | 18862 | ac_ext=c | 
 | 18863 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 18867 |  | 
 | 18868 | CC="$lt_save_CC" | 
 | 18869 |  | 
 | 18870 | 	;; | 
 | 18871 |  | 
 | 18872 |       *) | 
 | 18873 | 	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
 | 18874 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
 | 18875 |    { (exit 1); exit 1; }; } | 
 | 18876 | 	;; | 
 | 18877 |       esac | 
 | 18878 |  | 
 | 18879 |       # Append the new tag name to the list of available tags. | 
 | 18880 |       if test -n "$tagname" ; then | 
 | 18881 |       available_tags="$available_tags $tagname" | 
 | 18882 |     fi | 
 | 18883 |     fi | 
 | 18884 |   done | 
 | 18885 |   IFS="$lt_save_ifs" | 
 | 18886 |  | 
 | 18887 |   # Now substitute the updated list of available tags. | 
 | 18888 |   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
 | 18889 |     mv "${ofile}T" "$ofile" | 
 | 18890 |     chmod +x "$ofile" | 
 | 18891 |   else | 
 | 18892 |     rm -f "${ofile}T" | 
 | 18893 |     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
 | 18894 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
 | 18895 |    { (exit 1); exit 1; }; } | 
 | 18896 |   fi | 
 | 18897 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18898 |  | 
 | 18899 |  | 
 | 18900 |  | 
 | 18901 | # This can be used to rebuild libtool when needed | 
 | 18902 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
 | 18903 |  | 
 | 18904 | # Always use our own libtool. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18905 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18906 |  | 
 | 18907 | # Prevent multiple expansion | 
 | 18908 |  | 
 | 18909 |  | 
 | 18910 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18911 |  | 
 | 18912 |  | 
 | 18913 |  | 
 | 18914 |  | 
 | 18915 |  | 
 | 18916 |  | 
 | 18917 |  | 
 | 18918 |  | 
 | 18919 |  | 
 | 18920 |  | 
 | 18921 |  | 
 | 18922 |  | 
 | 18923 |  | 
 | 18924 |  | 
 | 18925 |  | 
 | 18926 |  | 
 | 18927 |  | 
 | 18928 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18929 | # Extract the first word of "dot", so it can be a program name with args. | 
 | 18930 | set dummy dot; ac_word=$2 | 
 | 18931 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 18932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 18933 | if test "${ac_cv_path_DOT+set}" = set; then | 
 | 18934 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18935 | else | 
 | 18936 |   case $DOT in | 
 | 18937 |   [\\/]* | ?:[\\/]*) | 
 | 18938 |   ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
 | 18939 |   ;; | 
 | 18940 |   *) | 
 | 18941 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 18942 | for as_dir in $PATH | 
 | 18943 | do | 
 | 18944 |   IFS=$as_save_IFS | 
 | 18945 |   test -z "$as_dir" && as_dir=. | 
 | 18946 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 18947 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 18948 |     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
 | 18949 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 18950 |     break 2 | 
 | 18951 |   fi | 
 | 18952 | done | 
 | 18953 | done | 
 | 18954 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18955 |   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18956 |   ;; | 
 | 18957 | esac | 
 | 18958 | fi | 
 | 18959 | DOT=$ac_cv_path_DOT | 
 | 18960 |  | 
 | 18961 | if test -n "$DOT"; then | 
 | 18962 |   echo "$as_me:$LINENO: result: $DOT" >&5 | 
 | 18963 | echo "${ECHO_T}$DOT" >&6 | 
 | 18964 | else | 
 | 18965 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 18966 | echo "${ECHO_T}no" >&6 | 
 | 18967 | fi | 
 | 18968 |  | 
 | 18969 | # Extract the first word of "etags", so it can be a program name with args. | 
 | 18970 | set dummy etags; ac_word=$2 | 
 | 18971 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 18972 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 18973 | if test "${ac_cv_path_ETAGS+set}" = set; then | 
 | 18974 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18975 | else | 
 | 18976 |   case $ETAGS in | 
 | 18977 |   [\\/]* | ?:[\\/]*) | 
 | 18978 |   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. | 
 | 18979 |   ;; | 
 | 18980 |   *) | 
 | 18981 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 18982 | for as_dir in $PATH | 
 | 18983 | do | 
 | 18984 |   IFS=$as_save_IFS | 
 | 18985 |   test -z "$as_dir" && as_dir=. | 
 | 18986 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 18987 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 18988 |     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" | 
 | 18989 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 18990 |     break 2 | 
 | 18991 |   fi | 
 | 18992 | done | 
 | 18993 | done | 
 | 18994 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18995 |   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18996 |   ;; | 
 | 18997 | esac | 
 | 18998 | fi | 
 | 18999 | ETAGS=$ac_cv_path_ETAGS | 
 | 19000 |  | 
 | 19001 | if test -n "$ETAGS"; then | 
 | 19002 |   echo "$as_me:$LINENO: result: $ETAGS" >&5 | 
 | 19003 | echo "${ECHO_T}$ETAGS" >&6 | 
 | 19004 | else | 
 | 19005 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 19006 | echo "${ECHO_T}no" >&6 | 
 | 19007 | fi | 
 | 19008 |  | 
| Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 19009 | etags_version=`$ETAGS --version 2>&1` | 
 | 19010 | case "$etags_version" in | 
 | 19011 | 	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; | 
 | 19012 | 	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; | 
 | 19013 | 	*) ETAGSFLAGS="" ;; | 
 | 19014 | esac | 
 | 19015 | ETAGSFLAGS=$ETAGSFLAGS | 
 | 19016 |  | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19017 | # Extract the first word of "python", so it can be a program name with args. | 
 | 19018 | set dummy python; ac_word=$2 | 
 | 19019 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 19020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 19021 | if test "${ac_cv_path_PYTHON+set}" = set; then | 
 | 19022 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19023 | else | 
 | 19024 |   case $PYTHON in | 
 | 19025 |   [\\/]* | ?:[\\/]*) | 
 | 19026 |   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | 
 | 19027 |   ;; | 
 | 19028 |   *) | 
 | 19029 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 19030 | for as_dir in $PATH | 
 | 19031 | do | 
 | 19032 |   IFS=$as_save_IFS | 
 | 19033 |   test -z "$as_dir" && as_dir=. | 
 | 19034 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 19035 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 19036 |     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | 
 | 19037 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 19038 |     break 2 | 
 | 19039 |   fi | 
 | 19040 | done | 
 | 19041 | done | 
 | 19042 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19043 |   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19044 |   ;; | 
 | 19045 | esac | 
 | 19046 | fi | 
 | 19047 | PYTHON=$ac_cv_path_PYTHON | 
 | 19048 |  | 
 | 19049 | if test -n "$PYTHON"; then | 
 | 19050 |   echo "$as_me:$LINENO: result: $PYTHON" >&5 | 
 | 19051 | echo "${ECHO_T}$PYTHON" >&6 | 
 | 19052 | else | 
 | 19053 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 19054 | echo "${ECHO_T}no" >&6 | 
 | 19055 | fi | 
 | 19056 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19057 | if test "$PYTHON" = "false" | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 19058 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19059 | 	{ echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 | 
 | 19060 | echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 19061 | fi | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19062 | # Extract the first word of "qmtest", so it can be a program name with args. | 
 | 19063 | set dummy qmtest; ac_word=$2 | 
 | 19064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 19065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 19066 | if test "${ac_cv_path_QMTEST+set}" = set; then | 
 | 19067 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19068 | else | 
 | 19069 |   case $QMTEST in | 
 | 19070 |   [\\/]* | ?:[\\/]*) | 
 | 19071 |   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. | 
 | 19072 |   ;; | 
 | 19073 |   *) | 
 | 19074 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 19075 | for as_dir in $PATH | 
 | 19076 | do | 
 | 19077 |   IFS=$as_save_IFS | 
 | 19078 |   test -z "$as_dir" && as_dir=. | 
 | 19079 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 19080 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 19081 |     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" | 
 | 19082 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 19083 |     break 2 | 
 | 19084 |   fi | 
 | 19085 | done | 
 | 19086 | done | 
 | 19087 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19088 |   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19089 |   ;; | 
 | 19090 | esac | 
 | 19091 | fi | 
 | 19092 | QMTEST=$ac_cv_path_QMTEST | 
 | 19093 |  | 
 | 19094 | if test -n "$QMTEST"; then | 
 | 19095 |   echo "$as_me:$LINENO: result: $QMTEST" >&5 | 
 | 19096 | echo "${ECHO_T}$QMTEST" >&6 | 
 | 19097 | else | 
 | 19098 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 19099 | echo "${ECHO_T}no" >&6 | 
 | 19100 | fi | 
 | 19101 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19102 | if test "$QMTEST" = "false" | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 19103 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19104 | 	{ echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 | 
 | 19105 | echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 19106 | fi | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19107 |  | 
 | 19108 | pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2` | 
 | 19109 | pymajor=`echo $pyversion | cut -d. -f1` | 
 | 19110 | pyminor=`echo $pyversion | cut -d. -f2` | 
 | 19111 |  | 
 | 19112 | if test "$pymajor" -ge "2" | 
 | 19113 | then | 
 | 19114 | 	if test "$pymajor" -eq "2" | 
 | 19115 | 	then | 
 | 19116 | 		if test "$pyminor" -lt "2" | 
 | 19117 | 		then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19118 | 			{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
 | 19119 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19120 | 		fi | 
 | 19121 | 	fi | 
 | 19122 | else | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19123 | 	{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
 | 19124 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19125 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19126 |  | 
 | 19127 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19128 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 
 | 19129 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | 
 | 19130 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 
 | 19131 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19132 | else | 
 | 19133 |   ac_check_lib_save_LIBS=$LIBS | 
 | 19134 | LIBS="-lelf  $LIBS" | 
 | 19135 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19136 | /* confdefs.h.  */ | 
 | 19137 | _ACEOF | 
 | 19138 | cat confdefs.h >>conftest.$ac_ext | 
 | 19139 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19140 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19141 |  | 
 | 19142 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19143 | #ifdef __cplusplus | 
 | 19144 | extern "C" | 
 | 19145 | #endif | 
 | 19146 | /* We use char because int might match the return type of a gcc2 | 
 | 19147 |    builtin and then its argument prototype would still apply.  */ | 
 | 19148 | char elf_begin (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19149 | int | 
 | 19150 | main () | 
 | 19151 | { | 
 | 19152 | elf_begin (); | 
 | 19153 |   ; | 
 | 19154 |   return 0; | 
 | 19155 | } | 
 | 19156 | _ACEOF | 
 | 19157 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19159 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19160 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19161 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19162 |   rm -f conftest.er1 | 
 | 19163 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19164 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19165 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19166 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19167 | 			 || test ! -s conftest.err' | 
 | 19168 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19169 |   (eval $ac_try) 2>&5 | 
 | 19170 |   ac_status=$? | 
 | 19171 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19172 |   (exit $ac_status); }; } && | 
 | 19173 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19174 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19175 |   (eval $ac_try) 2>&5 | 
 | 19176 |   ac_status=$? | 
 | 19177 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19178 |   (exit $ac_status); }; }; then | 
 | 19179 |   ac_cv_lib_elf_elf_begin=yes | 
 | 19180 | else | 
 | 19181 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19182 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19183 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19184 | ac_cv_lib_elf_elf_begin=no | 
 | 19185 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19186 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19187 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19188 | LIBS=$ac_check_lib_save_LIBS | 
 | 19189 | fi | 
 | 19190 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 
 | 19191 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | 
 | 19192 | if test $ac_cv_lib_elf_elf_begin = yes; then | 
 | 19193 |   cat >>confdefs.h <<_ACEOF | 
 | 19194 | #define HAVE_LIBELF 1 | 
 | 19195 | _ACEOF | 
 | 19196 |  | 
 | 19197 |   LIBS="-lelf $LIBS" | 
 | 19198 |  | 
 | 19199 | fi | 
 | 19200 |  | 
 | 19201 |  | 
 | 19202 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
 | 19203 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 | 
 | 19204 | if test "${ac_cv_search_dlopen+set}" = set; then | 
 | 19205 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19206 | else | 
 | 19207 |   ac_func_search_save_LIBS=$LIBS | 
 | 19208 | ac_cv_search_dlopen=no | 
 | 19209 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19210 | /* confdefs.h.  */ | 
 | 19211 | _ACEOF | 
 | 19212 | cat confdefs.h >>conftest.$ac_ext | 
 | 19213 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19214 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19215 |  | 
 | 19216 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19217 | #ifdef __cplusplus | 
 | 19218 | extern "C" | 
 | 19219 | #endif | 
 | 19220 | /* We use char because int might match the return type of a gcc2 | 
 | 19221 |    builtin and then its argument prototype would still apply.  */ | 
 | 19222 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19223 | int | 
 | 19224 | main () | 
 | 19225 | { | 
 | 19226 | dlopen (); | 
 | 19227 |   ; | 
 | 19228 |   return 0; | 
 | 19229 | } | 
 | 19230 | _ACEOF | 
 | 19231 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19233 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19234 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19235 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19236 |   rm -f conftest.er1 | 
 | 19237 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19238 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19239 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19240 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19241 | 			 || test ! -s conftest.err' | 
 | 19242 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19243 |   (eval $ac_try) 2>&5 | 
 | 19244 |   ac_status=$? | 
 | 19245 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19246 |   (exit $ac_status); }; } && | 
 | 19247 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19248 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19249 |   (eval $ac_try) 2>&5 | 
 | 19250 |   ac_status=$? | 
 | 19251 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19252 |   (exit $ac_status); }; }; then | 
 | 19253 |   ac_cv_search_dlopen="none required" | 
 | 19254 | else | 
 | 19255 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19256 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19257 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19258 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19259 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19260 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19261 | if test "$ac_cv_search_dlopen" = no; then | 
 | 19262 |   for ac_lib in dl; do | 
 | 19263 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 19264 |     cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19265 | /* confdefs.h.  */ | 
 | 19266 | _ACEOF | 
 | 19267 | cat confdefs.h >>conftest.$ac_ext | 
 | 19268 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19269 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19270 |  | 
 | 19271 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19272 | #ifdef __cplusplus | 
 | 19273 | extern "C" | 
 | 19274 | #endif | 
 | 19275 | /* We use char because int might match the return type of a gcc2 | 
 | 19276 |    builtin and then its argument prototype would still apply.  */ | 
 | 19277 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19278 | int | 
 | 19279 | main () | 
 | 19280 | { | 
 | 19281 | dlopen (); | 
 | 19282 |   ; | 
 | 19283 |   return 0; | 
 | 19284 | } | 
 | 19285 | _ACEOF | 
 | 19286 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19288 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19289 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19290 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19291 |   rm -f conftest.er1 | 
 | 19292 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19293 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19294 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19295 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19296 | 			 || test ! -s conftest.err' | 
 | 19297 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19298 |   (eval $ac_try) 2>&5 | 
 | 19299 |   ac_status=$? | 
 | 19300 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19301 |   (exit $ac_status); }; } && | 
 | 19302 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19303 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19304 |   (eval $ac_try) 2>&5 | 
 | 19305 |   ac_status=$? | 
 | 19306 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19307 |   (exit $ac_status); }; }; then | 
 | 19308 |   ac_cv_search_dlopen="-l$ac_lib" | 
 | 19309 | break | 
 | 19310 | else | 
 | 19311 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19312 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19313 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19314 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19315 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19316 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19317 |   done | 
 | 19318 | fi | 
 | 19319 | LIBS=$ac_func_search_save_LIBS | 
 | 19320 | fi | 
 | 19321 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
 | 19322 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 | 
 | 19323 | if test "$ac_cv_search_dlopen" != no; then | 
 | 19324 |   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] | 19325 |  | 
 | 19326 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 19327 | #define HAVE_DLOPEN 1 | 
 | 19328 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19329 |  | 
 | 19330 | else | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 19331 |   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
 | 19332 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19333 | fi | 
 | 19334 |  | 
 | 19335 |  | 
 | 19336 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
 | 19337 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 | 
 | 19338 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
 | 19339 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19340 | else | 
 | 19341 |   ac_func_search_save_LIBS=$LIBS | 
 | 19342 | ac_cv_search_mallinfo=no | 
 | 19343 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19344 | /* confdefs.h.  */ | 
 | 19345 | _ACEOF | 
 | 19346 | cat confdefs.h >>conftest.$ac_ext | 
 | 19347 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19348 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19349 |  | 
 | 19350 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19351 | #ifdef __cplusplus | 
 | 19352 | extern "C" | 
 | 19353 | #endif | 
 | 19354 | /* We use char because int might match the return type of a gcc2 | 
 | 19355 |    builtin and then its argument prototype would still apply.  */ | 
 | 19356 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19357 | int | 
 | 19358 | main () | 
 | 19359 | { | 
 | 19360 | mallinfo (); | 
 | 19361 |   ; | 
 | 19362 |   return 0; | 
 | 19363 | } | 
 | 19364 | _ACEOF | 
 | 19365 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19367 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19368 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19369 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19370 |   rm -f conftest.er1 | 
 | 19371 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19372 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19373 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19374 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19375 | 			 || test ! -s conftest.err' | 
 | 19376 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19377 |   (eval $ac_try) 2>&5 | 
 | 19378 |   ac_status=$? | 
 | 19379 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19380 |   (exit $ac_status); }; } && | 
 | 19381 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19382 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19383 |   (eval $ac_try) 2>&5 | 
 | 19384 |   ac_status=$? | 
 | 19385 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19386 |   (exit $ac_status); }; }; then | 
 | 19387 |   ac_cv_search_mallinfo="none required" | 
 | 19388 | else | 
 | 19389 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19390 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19391 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19392 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19393 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19394 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19395 | if test "$ac_cv_search_mallinfo" = no; then | 
 | 19396 |   for ac_lib in malloc; do | 
 | 19397 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 19398 |     cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19399 | /* confdefs.h.  */ | 
 | 19400 | _ACEOF | 
 | 19401 | cat confdefs.h >>conftest.$ac_ext | 
 | 19402 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19403 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19404 |  | 
 | 19405 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19406 | #ifdef __cplusplus | 
 | 19407 | extern "C" | 
 | 19408 | #endif | 
 | 19409 | /* We use char because int might match the return type of a gcc2 | 
 | 19410 |    builtin and then its argument prototype would still apply.  */ | 
 | 19411 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19412 | int | 
 | 19413 | main () | 
 | 19414 | { | 
 | 19415 | mallinfo (); | 
 | 19416 |   ; | 
 | 19417 |   return 0; | 
 | 19418 | } | 
 | 19419 | _ACEOF | 
 | 19420 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19422 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19423 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19424 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19425 |   rm -f conftest.er1 | 
 | 19426 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19427 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19428 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19429 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19430 | 			 || test ! -s conftest.err' | 
 | 19431 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19432 |   (eval $ac_try) 2>&5 | 
 | 19433 |   ac_status=$? | 
 | 19434 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19435 |   (exit $ac_status); }; } && | 
 | 19436 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19437 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19438 |   (eval $ac_try) 2>&5 | 
 | 19439 |   ac_status=$? | 
 | 19440 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19441 |   (exit $ac_status); }; }; then | 
 | 19442 |   ac_cv_search_mallinfo="-l$ac_lib" | 
 | 19443 | break | 
 | 19444 | else | 
 | 19445 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19446 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19447 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19448 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19449 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19450 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19451 |   done | 
 | 19452 | fi | 
 | 19453 | LIBS=$ac_func_search_save_LIBS | 
 | 19454 | fi | 
 | 19455 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
 | 19456 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 | 
 | 19457 | if test "$ac_cv_search_mallinfo" != no; then | 
 | 19458 |   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] | 19459 |  | 
 | 19460 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19461 | #define HAVE_MALLINFO 1 | 
 | 19462 | _ACEOF | 
 | 19463 |  | 
 | 19464 | fi | 
 | 19465 |  | 
 | 19466 |  | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19467 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
 | 19468 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 | 
 | 19469 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
 | 19470 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19471 | else | 
 | 19472 |   ac_func_search_save_LIBS=$LIBS | 
 | 19473 | ac_cv_search_pthread_mutex_lock=no | 
 | 19474 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19475 | /* confdefs.h.  */ | 
 | 19476 | _ACEOF | 
 | 19477 | cat confdefs.h >>conftest.$ac_ext | 
 | 19478 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19479 | /* end confdefs.h.  */ | 
 | 19480 |  | 
 | 19481 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19482 | #ifdef __cplusplus | 
 | 19483 | extern "C" | 
 | 19484 | #endif | 
 | 19485 | /* We use char because int might match the return type of a gcc2 | 
 | 19486 |    builtin and then its argument prototype would still apply.  */ | 
 | 19487 | char pthread_mutex_lock (); | 
 | 19488 | int | 
 | 19489 | main () | 
 | 19490 | { | 
 | 19491 | pthread_mutex_lock (); | 
 | 19492 |   ; | 
 | 19493 |   return 0; | 
 | 19494 | } | 
 | 19495 | _ACEOF | 
 | 19496 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19498 |   (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19499 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19500 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19501 |   rm -f conftest.er1 | 
 | 19502 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19503 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19504 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19505 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19506 | 			 || test ! -s conftest.err' | 
 | 19507 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19508 |   (eval $ac_try) 2>&5 | 
 | 19509 |   ac_status=$? | 
 | 19510 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19511 |   (exit $ac_status); }; } && | 
 | 19512 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19513 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19514 |   (eval $ac_try) 2>&5 | 
 | 19515 |   ac_status=$? | 
 | 19516 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19517 |   (exit $ac_status); }; }; then | 
 | 19518 |   ac_cv_search_pthread_mutex_lock="none required" | 
 | 19519 | else | 
 | 19520 |   echo "$as_me: failed program was:" >&5 | 
 | 19521 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19522 |  | 
 | 19523 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19524 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19525 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19526 | if test "$ac_cv_search_pthread_mutex_lock" = no; then | 
 | 19527 |   for ac_lib in pthread; do | 
 | 19528 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 19529 |     cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19530 | /* confdefs.h.  */ | 
 | 19531 | _ACEOF | 
 | 19532 | cat confdefs.h >>conftest.$ac_ext | 
 | 19533 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19534 | /* end confdefs.h.  */ | 
 | 19535 |  | 
 | 19536 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19537 | #ifdef __cplusplus | 
 | 19538 | extern "C" | 
 | 19539 | #endif | 
 | 19540 | /* We use char because int might match the return type of a gcc2 | 
 | 19541 |    builtin and then its argument prototype would still apply.  */ | 
 | 19542 | char pthread_mutex_lock (); | 
 | 19543 | int | 
 | 19544 | main () | 
 | 19545 | { | 
 | 19546 | pthread_mutex_lock (); | 
 | 19547 |   ; | 
 | 19548 |   return 0; | 
 | 19549 | } | 
 | 19550 | _ACEOF | 
 | 19551 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19553 |   (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19554 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19555 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19556 |   rm -f conftest.er1 | 
 | 19557 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19558 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19559 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19560 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19561 | 			 || test ! -s conftest.err' | 
 | 19562 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19563 |   (eval $ac_try) 2>&5 | 
 | 19564 |   ac_status=$? | 
 | 19565 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19566 |   (exit $ac_status); }; } && | 
 | 19567 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19568 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19569 |   (eval $ac_try) 2>&5 | 
 | 19570 |   ac_status=$? | 
 | 19571 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19572 |   (exit $ac_status); }; }; then | 
 | 19573 |   ac_cv_search_pthread_mutex_lock="-l$ac_lib" | 
 | 19574 | break | 
 | 19575 | else | 
 | 19576 |   echo "$as_me: failed program was:" >&5 | 
 | 19577 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19578 |  | 
 | 19579 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19580 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19581 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19582 |   done | 
 | 19583 | fi | 
 | 19584 | LIBS=$ac_func_search_save_LIBS | 
 | 19585 | fi | 
 | 19586 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
 | 19587 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 | 
 | 19588 | if test "$ac_cv_search_pthread_mutex_lock" != no; then | 
 | 19589 |   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] | 19590 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 19591 | cat >>confdefs.h <<\_ACEOF | 
 | 19592 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
 | 19593 | _ACEOF | 
 | 19594 |  | 
 | 19595 | fi | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19596 |  | 
| Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 19597 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19598 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 19599 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 19600 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 19601 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19602 | else | 
 | 19603 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19604 | /* confdefs.h.  */ | 
 | 19605 | _ACEOF | 
 | 19606 | cat confdefs.h >>conftest.$ac_ext | 
 | 19607 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19608 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19609 | #include <stdlib.h> | 
 | 19610 | #include <stdarg.h> | 
 | 19611 | #include <string.h> | 
 | 19612 | #include <float.h> | 
 | 19613 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19614 | int | 
 | 19615 | main () | 
 | 19616 | { | 
 | 19617 |  | 
 | 19618 |   ; | 
 | 19619 |   return 0; | 
 | 19620 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19621 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19622 | rm -f conftest.$ac_objext | 
 | 19623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19624 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19625 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19626 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19627 |   rm -f conftest.er1 | 
 | 19628 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19629 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19630 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19631 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19632 | 			 || test ! -s conftest.err' | 
 | 19633 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19634 |   (eval $ac_try) 2>&5 | 
 | 19635 |   ac_status=$? | 
 | 19636 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19637 |   (exit $ac_status); }; } && | 
 | 19638 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19639 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19640 |   (eval $ac_try) 2>&5 | 
 | 19641 |   ac_status=$? | 
 | 19642 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19643 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19644 |   ac_cv_header_stdc=yes | 
 | 19645 | else | 
 | 19646 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19647 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19648 |  | 
 | 19649 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19650 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19652 |  | 
 | 19653 | if test $ac_cv_header_stdc = yes; then | 
 | 19654 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 19655 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19656 | /* confdefs.h.  */ | 
 | 19657 | _ACEOF | 
 | 19658 | cat confdefs.h >>conftest.$ac_ext | 
 | 19659 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19660 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19661 | #include <string.h> | 
 | 19662 |  | 
 | 19663 | _ACEOF | 
 | 19664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19665 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19666 |   : | 
 | 19667 | else | 
 | 19668 |   ac_cv_header_stdc=no | 
 | 19669 | fi | 
 | 19670 | rm -f conftest* | 
 | 19671 |  | 
 | 19672 | fi | 
 | 19673 |  | 
 | 19674 | if test $ac_cv_header_stdc = yes; then | 
 | 19675 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 19676 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19677 | /* confdefs.h.  */ | 
 | 19678 | _ACEOF | 
 | 19679 | cat confdefs.h >>conftest.$ac_ext | 
 | 19680 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19681 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19682 | #include <stdlib.h> | 
 | 19683 |  | 
 | 19684 | _ACEOF | 
 | 19685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19686 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19687 |   : | 
 | 19688 | else | 
 | 19689 |   ac_cv_header_stdc=no | 
 | 19690 | fi | 
 | 19691 | rm -f conftest* | 
 | 19692 |  | 
 | 19693 | fi | 
 | 19694 |  | 
 | 19695 | if test $ac_cv_header_stdc = yes; then | 
 | 19696 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 19697 |   if test "$cross_compiling" = yes; then | 
 | 19698 |   : | 
 | 19699 | else | 
 | 19700 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19701 | /* confdefs.h.  */ | 
 | 19702 | _ACEOF | 
 | 19703 | cat confdefs.h >>conftest.$ac_ext | 
 | 19704 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19705 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19706 | #include <ctype.h> | 
 | 19707 | #if ((' ' & 0x0FF) == 0x020) | 
 | 19708 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 19709 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 19710 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19711 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19712 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 19713 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 19714 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19715 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 19716 | #endif | 
 | 19717 |  | 
 | 19718 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 19719 | int | 
 | 19720 | main () | 
 | 19721 | { | 
 | 19722 |   int i; | 
 | 19723 |   for (i = 0; i < 256; i++) | 
 | 19724 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19725 | 	|| toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19726 |       exit(2); | 
 | 19727 |   exit (0); | 
 | 19728 | } | 
 | 19729 | _ACEOF | 
 | 19730 | rm -f conftest$ac_exeext | 
 | 19731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 19732 |   (eval $ac_link) 2>&5 | 
 | 19733 |   ac_status=$? | 
 | 19734 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19735 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 19736 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19737 |   (eval $ac_try) 2>&5 | 
 | 19738 |   ac_status=$? | 
 | 19739 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19740 |   (exit $ac_status); }; }; then | 
 | 19741 |   : | 
 | 19742 | else | 
 | 19743 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 19744 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19745 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19746 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19747 | ( exit $ac_status ) | 
 | 19748 | ac_cv_header_stdc=no | 
 | 19749 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19750 | 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] | 19751 | fi | 
 | 19752 | fi | 
 | 19753 | fi | 
 | 19754 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 19755 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 19756 | if test $ac_cv_header_stdc = yes; then | 
 | 19757 |  | 
 | 19758 | cat >>confdefs.h <<\_ACEOF | 
 | 19759 | #define STDC_HEADERS 1 | 
 | 19760 | _ACEOF | 
 | 19761 |  | 
 | 19762 | fi | 
 | 19763 |  | 
 | 19764 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
 | 19765 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | 
 | 19766 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
 | 19767 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19768 | else | 
 | 19769 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19770 | /* confdefs.h.  */ | 
 | 19771 | _ACEOF | 
 | 19772 | cat confdefs.h >>conftest.$ac_ext | 
 | 19773 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19774 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19775 | #include <sys/types.h> | 
 | 19776 | #include <sys/wait.h> | 
 | 19777 | #ifndef WEXITSTATUS | 
 | 19778 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
 | 19779 | #endif | 
 | 19780 | #ifndef WIFEXITED | 
 | 19781 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
 | 19782 | #endif | 
 | 19783 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19784 | int | 
 | 19785 | main () | 
 | 19786 | { | 
 | 19787 |   int s; | 
 | 19788 |   wait (&s); | 
 | 19789 |   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
 | 19790 |   ; | 
 | 19791 |   return 0; | 
 | 19792 | } | 
 | 19793 | _ACEOF | 
 | 19794 | rm -f conftest.$ac_objext | 
 | 19795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19796 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19797 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19798 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19799 |   rm -f conftest.er1 | 
 | 19800 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19801 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19802 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19803 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19804 | 			 || test ! -s conftest.err' | 
 | 19805 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19806 |   (eval $ac_try) 2>&5 | 
 | 19807 |   ac_status=$? | 
 | 19808 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19809 |   (exit $ac_status); }; } && | 
 | 19810 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19811 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19812 |   (eval $ac_try) 2>&5 | 
 | 19813 |   ac_status=$? | 
 | 19814 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19815 |   (exit $ac_status); }; }; then | 
 | 19816 |   ac_cv_header_sys_wait_h=yes | 
 | 19817 | else | 
 | 19818 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19819 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19820 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19821 | ac_cv_header_sys_wait_h=no | 
 | 19822 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19824 | fi | 
 | 19825 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
 | 19826 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | 
 | 19827 | if test $ac_cv_header_sys_wait_h = yes; then | 
 | 19828 |  | 
 | 19829 | cat >>confdefs.h <<\_ACEOF | 
 | 19830 | #define HAVE_SYS_WAIT_H 1 | 
 | 19831 | _ACEOF | 
 | 19832 |  | 
 | 19833 | fi | 
 | 19834 |  | 
 | 19835 |  | 
 | 19836 |  | 
 | 19837 |  | 
 | 19838 |  | 
 | 19839 |  | 
 | 19840 |  | 
 | 19841 |  | 
 | 19842 |  | 
 | 19843 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19844 |  | 
| Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame] | 19845 |  | 
| John Criswell | b2815e0 | 2004-05-27 20:40:39 +0000 | [diff] [blame] | 19846 |  | 
 | 19847 | for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19848 | do | 
 | 19849 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 19850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 19851 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 19852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 19853 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 19854 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19855 | fi | 
 | 19856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 19857 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 19858 | else | 
 | 19859 |   # Is the header compilable? | 
 | 19860 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 19861 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 19862 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19863 | /* confdefs.h.  */ | 
 | 19864 | _ACEOF | 
 | 19865 | cat confdefs.h >>conftest.$ac_ext | 
 | 19866 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19867 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19868 | $ac_includes_default | 
 | 19869 | #include <$ac_header> | 
 | 19870 | _ACEOF | 
 | 19871 | rm -f conftest.$ac_objext | 
 | 19872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19873 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19874 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19875 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19876 |   rm -f conftest.er1 | 
 | 19877 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19878 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19879 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19880 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19881 | 			 || test ! -s conftest.err' | 
 | 19882 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19883 |   (eval $ac_try) 2>&5 | 
 | 19884 |   ac_status=$? | 
 | 19885 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19886 |   (exit $ac_status); }; } && | 
 | 19887 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19888 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19889 |   (eval $ac_try) 2>&5 | 
 | 19890 |   ac_status=$? | 
 | 19891 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19892 |   (exit $ac_status); }; }; then | 
 | 19893 |   ac_header_compiler=yes | 
 | 19894 | else | 
 | 19895 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19896 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19897 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19898 | ac_header_compiler=no | 
 | 19899 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19901 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 19902 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 19903 |  | 
 | 19904 | # Is the header present? | 
 | 19905 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 19906 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 19907 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19908 | /* confdefs.h.  */ | 
 | 19909 | _ACEOF | 
 | 19910 | cat confdefs.h >>conftest.$ac_ext | 
 | 19911 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19912 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19913 | #include <$ac_header> | 
 | 19914 | _ACEOF | 
 | 19915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 19916 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 19917 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19918 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19919 |   rm -f conftest.er1 | 
 | 19920 |   cat conftest.err >&5 | 
 | 19921 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19922 |   (exit $ac_status); } >/dev/null; then | 
 | 19923 |   if test -s conftest.err; then | 
 | 19924 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19925 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19926 |   else | 
 | 19927 |     ac_cpp_err= | 
 | 19928 |   fi | 
 | 19929 | else | 
 | 19930 |   ac_cpp_err=yes | 
 | 19931 | fi | 
 | 19932 | if test -z "$ac_cpp_err"; then | 
 | 19933 |   ac_header_preproc=yes | 
 | 19934 | else | 
 | 19935 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19936 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19937 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19938 |   ac_header_preproc=no | 
 | 19939 | fi | 
 | 19940 | rm -f conftest.err conftest.$ac_ext | 
 | 19941 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 19942 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 19943 |  | 
 | 19944 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19945 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 19946 |   yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19947 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 19948 | 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] | 19949 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 19950 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 19951 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19952 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19953 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19954 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 19955 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19956 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 19957 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 19958 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 19959 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 19960 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 19961 | 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] | 19962 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 19963 | 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] | 19964 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 19965 | 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] | 19966 |     ( | 
 | 19967 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19968 | ## ----------------------------------- ## | 
 | 19969 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 19970 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19971 | _ASBOX | 
 | 19972 |     ) | | 
 | 19973 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 19974 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19975 | esac | 
 | 19976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 19977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 19978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 19979 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19980 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19981 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19982 | fi | 
 | 19983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 19984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 19985 |  | 
 | 19986 | fi | 
 | 19987 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 19988 |   cat >>confdefs.h <<_ACEOF | 
 | 19989 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 19990 | _ACEOF | 
 | 19991 |  | 
 | 19992 | fi | 
 | 19993 |  | 
 | 19994 | done | 
 | 19995 |  | 
 | 19996 |  | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 19997 | if test "${ac_cv_header_sys_types_h+set}" = set; then | 
 | 19998 |   echo "$as_me:$LINENO: checking for sys/types.h" >&5 | 
 | 19999 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 | 
 | 20000 | if test "${ac_cv_header_sys_types_h+set}" = set; then | 
 | 20001 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20002 | fi | 
 | 20003 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 | 
 | 20004 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 | 
 | 20005 | else | 
 | 20006 |   # Is the header compilable? | 
 | 20007 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 | 
 | 20008 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 | 
 | 20009 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20010 | /* confdefs.h.  */ | 
 | 20011 | _ACEOF | 
 | 20012 | cat confdefs.h >>conftest.$ac_ext | 
 | 20013 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20014 | /* end confdefs.h.  */ | 
 | 20015 | $ac_includes_default | 
 | 20016 | #include <sys/types.h> | 
 | 20017 | _ACEOF | 
 | 20018 | rm -f conftest.$ac_objext | 
 | 20019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20020 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20021 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20022 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20023 |   rm -f conftest.er1 | 
 | 20024 |   cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20025 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20026 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20027 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20028 | 			 || test ! -s conftest.err' | 
 | 20029 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20030 |   (eval $ac_try) 2>&5 | 
 | 20031 |   ac_status=$? | 
 | 20032 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20033 |   (exit $ac_status); }; } && | 
 | 20034 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20035 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20036 |   (eval $ac_try) 2>&5 | 
 | 20037 |   ac_status=$? | 
 | 20038 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20039 |   (exit $ac_status); }; }; then | 
 | 20040 |   ac_header_compiler=yes | 
 | 20041 | else | 
 | 20042 |   echo "$as_me: failed program was:" >&5 | 
 | 20043 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20044 |  | 
 | 20045 | ac_header_compiler=no | 
 | 20046 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20048 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 20049 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 20050 |  | 
 | 20051 | # Is the header present? | 
 | 20052 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 | 
 | 20053 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 | 
 | 20054 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20055 | /* confdefs.h.  */ | 
 | 20056 | _ACEOF | 
 | 20057 | cat confdefs.h >>conftest.$ac_ext | 
 | 20058 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20059 | /* end confdefs.h.  */ | 
 | 20060 | #include <sys/types.h> | 
 | 20061 | _ACEOF | 
 | 20062 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 20063 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 20064 |   ac_status=$? | 
 | 20065 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20066 |   rm -f conftest.er1 | 
 | 20067 |   cat conftest.err >&5 | 
 | 20068 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20069 |   (exit $ac_status); } >/dev/null; then | 
 | 20070 |   if test -s conftest.err; then | 
 | 20071 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20072 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20073 |   else | 
 | 20074 |     ac_cpp_err= | 
 | 20075 |   fi | 
 | 20076 | else | 
 | 20077 |   ac_cpp_err=yes | 
 | 20078 | fi | 
 | 20079 | if test -z "$ac_cpp_err"; then | 
 | 20080 |   ac_header_preproc=yes | 
 | 20081 | else | 
 | 20082 |   echo "$as_me: failed program was:" >&5 | 
 | 20083 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20084 |  | 
 | 20085 |   ac_header_preproc=no | 
 | 20086 | fi | 
 | 20087 | rm -f conftest.err conftest.$ac_ext | 
 | 20088 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 20089 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 20090 |  | 
 | 20091 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20092 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 20093 |   yes:no: ) | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20094 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 20095 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20096 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 | 
 | 20097 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} | 
 | 20098 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20099 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20100 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20101 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 | 
 | 20102 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20103 |     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5 | 
 | 20104 | echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;} | 
 | 20105 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 | 
 | 20106 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} | 
 | 20107 |     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 20108 | echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20109 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 | 
 | 20110 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20111 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 | 
 | 20112 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20113 |     ( | 
 | 20114 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20115 | ## ----------------------------------- ## | 
 | 20116 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 20117 | ## ----------------------------------- ## | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20118 | _ASBOX | 
 | 20119 |     ) | | 
 | 20120 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20121 |     ;; | 
 | 20122 | esac | 
 | 20123 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 | 
 | 20124 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 | 
 | 20125 | if test "${ac_cv_header_sys_types_h+set}" = set; then | 
 | 20126 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20127 | else | 
 | 20128 |   ac_cv_header_sys_types_h=$ac_header_preproc | 
 | 20129 | fi | 
 | 20130 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 | 
 | 20131 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 | 
 | 20132 |  | 
 | 20133 | fi | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20134 |  | 
 | 20135 |  | 
 | 20136 | if test "${ac_cv_header_inttypes_h+set}" = set; then | 
 | 20137 |   echo "$as_me:$LINENO: checking for inttypes.h" >&5 | 
 | 20138 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 | 
 | 20139 | if test "${ac_cv_header_inttypes_h+set}" = set; then | 
 | 20140 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20141 | fi | 
 | 20142 | echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 | 
 | 20143 | echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 | 
 | 20144 | else | 
 | 20145 |   # Is the header compilable? | 
 | 20146 | echo "$as_me:$LINENO: checking inttypes.h usability" >&5 | 
 | 20147 | echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6 | 
 | 20148 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20149 | /* confdefs.h.  */ | 
 | 20150 | _ACEOF | 
 | 20151 | cat confdefs.h >>conftest.$ac_ext | 
 | 20152 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20153 | /* end confdefs.h.  */ | 
 | 20154 | $ac_includes_default | 
 | 20155 | #include <inttypes.h> | 
 | 20156 | _ACEOF | 
 | 20157 | rm -f conftest.$ac_objext | 
 | 20158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20159 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20160 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20161 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20162 |   rm -f conftest.er1 | 
 | 20163 |   cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20164 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20165 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20166 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20167 | 			 || test ! -s conftest.err' | 
 | 20168 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20169 |   (eval $ac_try) 2>&5 | 
 | 20170 |   ac_status=$? | 
 | 20171 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20172 |   (exit $ac_status); }; } && | 
 | 20173 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20174 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20175 |   (eval $ac_try) 2>&5 | 
 | 20176 |   ac_status=$? | 
 | 20177 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20178 |   (exit $ac_status); }; }; then | 
 | 20179 |   ac_header_compiler=yes | 
 | 20180 | else | 
 | 20181 |   echo "$as_me: failed program was:" >&5 | 
 | 20182 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20183 |  | 
 | 20184 | ac_header_compiler=no | 
 | 20185 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20187 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 20188 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 20189 |  | 
 | 20190 | # Is the header present? | 
 | 20191 | echo "$as_me:$LINENO: checking inttypes.h presence" >&5 | 
 | 20192 | echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6 | 
 | 20193 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20194 | /* confdefs.h.  */ | 
 | 20195 | _ACEOF | 
 | 20196 | cat confdefs.h >>conftest.$ac_ext | 
 | 20197 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20198 | /* end confdefs.h.  */ | 
 | 20199 | #include <inttypes.h> | 
 | 20200 | _ACEOF | 
 | 20201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 20202 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 20203 |   ac_status=$? | 
 | 20204 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20205 |   rm -f conftest.er1 | 
 | 20206 |   cat conftest.err >&5 | 
 | 20207 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20208 |   (exit $ac_status); } >/dev/null; then | 
 | 20209 |   if test -s conftest.err; then | 
 | 20210 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20211 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20212 |   else | 
 | 20213 |     ac_cpp_err= | 
 | 20214 |   fi | 
 | 20215 | else | 
 | 20216 |   ac_cpp_err=yes | 
 | 20217 | fi | 
 | 20218 | if test -z "$ac_cpp_err"; then | 
 | 20219 |   ac_header_preproc=yes | 
 | 20220 | else | 
 | 20221 |   echo "$as_me: failed program was:" >&5 | 
 | 20222 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20223 |  | 
 | 20224 |   ac_header_preproc=no | 
 | 20225 | fi | 
 | 20226 | rm -f conftest.err conftest.$ac_ext | 
 | 20227 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 20228 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 20229 |  | 
 | 20230 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20231 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 20232 |   yes:no: ) | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20233 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 20234 | echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20235 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5 | 
 | 20236 | echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;} | 
 | 20237 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20238 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20239 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20240 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 | 
 | 20241 | echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20242 |     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5 | 
 | 20243 | echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;} | 
 | 20244 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5 | 
 | 20245 | echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;} | 
 | 20246 |     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 20247 | echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20248 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 | 
 | 20249 | echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20250 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5 | 
 | 20251 | echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20252 |     ( | 
 | 20253 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20254 | ## ----------------------------------- ## | 
 | 20255 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 20256 | ## ----------------------------------- ## | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20257 | _ASBOX | 
 | 20258 |     ) | | 
 | 20259 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20260 |     ;; | 
 | 20261 | esac | 
 | 20262 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 | 
 | 20263 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 | 
 | 20264 | if test "${ac_cv_header_inttypes_h+set}" = set; then | 
 | 20265 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20266 | else | 
 | 20267 |   ac_cv_header_inttypes_h=$ac_header_preproc | 
 | 20268 | fi | 
 | 20269 | echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 | 
 | 20270 | echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 | 
 | 20271 |  | 
 | 20272 | fi | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20273 |  | 
 | 20274 |  | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20275 | if test "${ac_cv_header_stdint_h+set}" = set; then | 
 | 20276 |   echo "$as_me:$LINENO: checking for stdint.h" >&5 | 
 | 20277 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 | 
 | 20278 | if test "${ac_cv_header_stdint_h+set}" = set; then | 
 | 20279 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20280 | fi | 
 | 20281 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 | 
 | 20282 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 | 
 | 20283 | else | 
 | 20284 |   # Is the header compilable? | 
 | 20285 | echo "$as_me:$LINENO: checking stdint.h usability" >&5 | 
 | 20286 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 | 
 | 20287 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20288 | /* confdefs.h.  */ | 
 | 20289 | _ACEOF | 
 | 20290 | cat confdefs.h >>conftest.$ac_ext | 
 | 20291 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20292 | /* end confdefs.h.  */ | 
 | 20293 | $ac_includes_default | 
 | 20294 | #include <stdint.h> | 
 | 20295 | _ACEOF | 
 | 20296 | rm -f conftest.$ac_objext | 
 | 20297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20298 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20299 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20300 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20301 |   rm -f conftest.er1 | 
 | 20302 |   cat conftest.err >&5 | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20303 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20304 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20305 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20306 | 			 || test ! -s conftest.err' | 
 | 20307 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20308 |   (eval $ac_try) 2>&5 | 
 | 20309 |   ac_status=$? | 
 | 20310 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20311 |   (exit $ac_status); }; } && | 
 | 20312 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20313 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20314 |   (eval $ac_try) 2>&5 | 
 | 20315 |   ac_status=$? | 
 | 20316 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20317 |   (exit $ac_status); }; }; then | 
 | 20318 |   ac_header_compiler=yes | 
 | 20319 | else | 
 | 20320 |   echo "$as_me: failed program was:" >&5 | 
 | 20321 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20322 |  | 
 | 20323 | ac_header_compiler=no | 
 | 20324 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20326 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 20327 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 20328 |  | 
 | 20329 | # Is the header present? | 
 | 20330 | echo "$as_me:$LINENO: checking stdint.h presence" >&5 | 
 | 20331 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 | 
 | 20332 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20333 | /* confdefs.h.  */ | 
 | 20334 | _ACEOF | 
 | 20335 | cat confdefs.h >>conftest.$ac_ext | 
 | 20336 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20337 | /* end confdefs.h.  */ | 
 | 20338 | #include <stdint.h> | 
 | 20339 | _ACEOF | 
 | 20340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 20341 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 20342 |   ac_status=$? | 
 | 20343 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20344 |   rm -f conftest.er1 | 
 | 20345 |   cat conftest.err >&5 | 
 | 20346 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20347 |   (exit $ac_status); } >/dev/null; then | 
 | 20348 |   if test -s conftest.err; then | 
 | 20349 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20350 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20351 |   else | 
 | 20352 |     ac_cpp_err= | 
 | 20353 |   fi | 
 | 20354 | else | 
 | 20355 |   ac_cpp_err=yes | 
 | 20356 | fi | 
 | 20357 | if test -z "$ac_cpp_err"; then | 
 | 20358 |   ac_header_preproc=yes | 
 | 20359 | else | 
 | 20360 |   echo "$as_me: failed program was:" >&5 | 
 | 20361 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20362 |  | 
 | 20363 |   ac_header_preproc=no | 
 | 20364 | fi | 
 | 20365 | rm -f conftest.err conftest.$ac_ext | 
 | 20366 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 20367 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 20368 |  | 
 | 20369 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20370 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 20371 |   yes:no: ) | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20372 |     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 20373 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20374 |     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 | 
 | 20375 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} | 
 | 20376 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20377 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20378 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20379 |     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 | 
 | 20380 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20381 |     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5 | 
 | 20382 | echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;} | 
 | 20383 |     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 | 
 | 20384 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} | 
 | 20385 |     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 20386 | echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20387 |     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 | 
 | 20388 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20389 |     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 | 
 | 20390 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20391 |     ( | 
 | 20392 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20393 | ## ----------------------------------- ## | 
 | 20394 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 20395 | ## ----------------------------------- ## | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20396 | _ASBOX | 
 | 20397 |     ) | | 
 | 20398 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20399 |     ;; | 
 | 20400 | esac | 
 | 20401 | echo "$as_me:$LINENO: checking for stdint.h" >&5 | 
 | 20402 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 | 
 | 20403 | if test "${ac_cv_header_stdint_h+set}" = set; then | 
 | 20404 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20405 | else | 
 | 20406 |   ac_cv_header_stdint_h=$ac_header_preproc | 
 | 20407 | fi | 
 | 20408 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 | 
 | 20409 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 | 
 | 20410 |  | 
 | 20411 | fi | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20412 |  | 
 | 20413 |  | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20414 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20415 | echo "$as_me:$LINENO: checking for pid_t" >&5 | 
 | 20416 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | 
 | 20417 | if test "${ac_cv_type_pid_t+set}" = set; then | 
 | 20418 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20419 | else | 
 | 20420 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20421 | /* confdefs.h.  */ | 
 | 20422 | _ACEOF | 
 | 20423 | cat confdefs.h >>conftest.$ac_ext | 
 | 20424 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20425 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20426 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20427 | int | 
 | 20428 | main () | 
 | 20429 | { | 
 | 20430 | if ((pid_t *) 0) | 
 | 20431 |   return 0; | 
 | 20432 | if (sizeof (pid_t)) | 
 | 20433 |   return 0; | 
 | 20434 |   ; | 
 | 20435 |   return 0; | 
 | 20436 | } | 
 | 20437 | _ACEOF | 
 | 20438 | rm -f conftest.$ac_objext | 
 | 20439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20440 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20441 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20442 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20443 |   rm -f conftest.er1 | 
 | 20444 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20445 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20446 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20447 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20448 | 			 || test ! -s conftest.err' | 
 | 20449 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20450 |   (eval $ac_try) 2>&5 | 
 | 20451 |   ac_status=$? | 
 | 20452 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20453 |   (exit $ac_status); }; } && | 
 | 20454 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20455 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20456 |   (eval $ac_try) 2>&5 | 
 | 20457 |   ac_status=$? | 
 | 20458 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20459 |   (exit $ac_status); }; }; then | 
 | 20460 |   ac_cv_type_pid_t=yes | 
 | 20461 | else | 
 | 20462 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20463 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20464 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20465 | ac_cv_type_pid_t=no | 
 | 20466 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20468 | fi | 
 | 20469 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
 | 20470 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | 
 | 20471 | if test $ac_cv_type_pid_t = yes; then | 
 | 20472 |   : | 
 | 20473 | else | 
 | 20474 |  | 
 | 20475 | cat >>confdefs.h <<_ACEOF | 
 | 20476 | #define pid_t int | 
 | 20477 | _ACEOF | 
 | 20478 |  | 
 | 20479 | fi | 
 | 20480 |  | 
 | 20481 | echo "$as_me:$LINENO: checking for size_t" >&5 | 
 | 20482 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | 
 | 20483 | if test "${ac_cv_type_size_t+set}" = set; then | 
 | 20484 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20485 | else | 
 | 20486 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20487 | /* confdefs.h.  */ | 
 | 20488 | _ACEOF | 
 | 20489 | cat confdefs.h >>conftest.$ac_ext | 
 | 20490 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20491 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20492 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20493 | int | 
 | 20494 | main () | 
 | 20495 | { | 
 | 20496 | if ((size_t *) 0) | 
 | 20497 |   return 0; | 
 | 20498 | if (sizeof (size_t)) | 
 | 20499 |   return 0; | 
 | 20500 |   ; | 
 | 20501 |   return 0; | 
 | 20502 | } | 
 | 20503 | _ACEOF | 
 | 20504 | rm -f conftest.$ac_objext | 
 | 20505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20506 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20507 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20508 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20509 |   rm -f conftest.er1 | 
 | 20510 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20511 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20512 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20513 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20514 | 			 || test ! -s conftest.err' | 
 | 20515 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20516 |   (eval $ac_try) 2>&5 | 
 | 20517 |   ac_status=$? | 
 | 20518 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20519 |   (exit $ac_status); }; } && | 
 | 20520 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20521 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20522 |   (eval $ac_try) 2>&5 | 
 | 20523 |   ac_status=$? | 
 | 20524 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20525 |   (exit $ac_status); }; }; then | 
 | 20526 |   ac_cv_type_size_t=yes | 
 | 20527 | else | 
 | 20528 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20529 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20530 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20531 | ac_cv_type_size_t=no | 
 | 20532 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20534 | fi | 
 | 20535 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
 | 20536 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | 
 | 20537 | if test $ac_cv_type_size_t = yes; then | 
 | 20538 |   : | 
 | 20539 | else | 
 | 20540 |  | 
 | 20541 | cat >>confdefs.h <<_ACEOF | 
 | 20542 | #define size_t unsigned | 
 | 20543 | _ACEOF | 
 | 20544 |  | 
 | 20545 | fi | 
 | 20546 |  | 
 | 20547 | echo "$as_me:$LINENO: checking for int64_t" >&5 | 
 | 20548 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | 
 | 20549 | if test "${ac_cv_type_int64_t+set}" = set; then | 
 | 20550 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20551 | else | 
 | 20552 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20553 | /* confdefs.h.  */ | 
 | 20554 | _ACEOF | 
 | 20555 | cat confdefs.h >>conftest.$ac_ext | 
 | 20556 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20557 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20558 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20559 | int | 
 | 20560 | main () | 
 | 20561 | { | 
 | 20562 | if ((int64_t *) 0) | 
 | 20563 |   return 0; | 
 | 20564 | if (sizeof (int64_t)) | 
 | 20565 |   return 0; | 
 | 20566 |   ; | 
 | 20567 |   return 0; | 
 | 20568 | } | 
 | 20569 | _ACEOF | 
 | 20570 | rm -f conftest.$ac_objext | 
 | 20571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20572 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20573 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20574 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20575 |   rm -f conftest.er1 | 
 | 20576 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20577 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20578 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20579 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20580 | 			 || test ! -s conftest.err' | 
 | 20581 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20582 |   (eval $ac_try) 2>&5 | 
 | 20583 |   ac_status=$? | 
 | 20584 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20585 |   (exit $ac_status); }; } && | 
 | 20586 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20587 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20588 |   (eval $ac_try) 2>&5 | 
 | 20589 |   ac_status=$? | 
 | 20590 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20591 |   (exit $ac_status); }; }; then | 
 | 20592 |   ac_cv_type_int64_t=yes | 
 | 20593 | else | 
 | 20594 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20595 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20596 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20597 | ac_cv_type_int64_t=no | 
 | 20598 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20600 | fi | 
 | 20601 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
 | 20602 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | 
 | 20603 | if test $ac_cv_type_int64_t = yes; then | 
 | 20604 |  | 
 | 20605 | cat >>confdefs.h <<_ACEOF | 
 | 20606 | #define HAVE_INT64_T 1 | 
 | 20607 | _ACEOF | 
 | 20608 |  | 
 | 20609 |  | 
 | 20610 | else | 
 | 20611 |   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
 | 20612 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
 | 20613 |    { (exit 1); exit 1; }; } | 
 | 20614 | fi | 
 | 20615 |  | 
 | 20616 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
 | 20617 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | 
 | 20618 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
 | 20619 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20620 | else | 
 | 20621 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20622 | /* confdefs.h.  */ | 
 | 20623 | _ACEOF | 
 | 20624 | cat confdefs.h >>conftest.$ac_ext | 
 | 20625 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20626 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20627 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20628 | int | 
 | 20629 | main () | 
 | 20630 | { | 
 | 20631 | if ((uint64_t *) 0) | 
 | 20632 |   return 0; | 
 | 20633 | if (sizeof (uint64_t)) | 
 | 20634 |   return 0; | 
 | 20635 |   ; | 
 | 20636 |   return 0; | 
 | 20637 | } | 
 | 20638 | _ACEOF | 
 | 20639 | rm -f conftest.$ac_objext | 
 | 20640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20641 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20642 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20643 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20644 |   rm -f conftest.er1 | 
 | 20645 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20646 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20647 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20648 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20649 | 			 || test ! -s conftest.err' | 
 | 20650 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20651 |   (eval $ac_try) 2>&5 | 
 | 20652 |   ac_status=$? | 
 | 20653 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20654 |   (exit $ac_status); }; } && | 
 | 20655 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20656 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20657 |   (eval $ac_try) 2>&5 | 
 | 20658 |   ac_status=$? | 
 | 20659 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20660 |   (exit $ac_status); }; }; then | 
 | 20661 |   ac_cv_type_uint64_t=yes | 
 | 20662 | else | 
 | 20663 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20664 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20665 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20666 | ac_cv_type_uint64_t=no | 
 | 20667 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20669 | fi | 
 | 20670 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
 | 20671 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | 
 | 20672 | if test $ac_cv_type_uint64_t = yes; then | 
 | 20673 |  | 
 | 20674 | cat >>confdefs.h <<_ACEOF | 
 | 20675 | #define HAVE_UINT64_T 1 | 
 | 20676 | _ACEOF | 
 | 20677 |  | 
 | 20678 |  | 
 | 20679 | else | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 20680 |   echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20681 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | 
 | 20682 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
 | 20683 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20684 | else | 
 | 20685 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20686 | /* confdefs.h.  */ | 
 | 20687 | _ACEOF | 
 | 20688 | cat confdefs.h >>conftest.$ac_ext | 
 | 20689 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20690 | /* end confdefs.h.  */ | 
 | 20691 | $ac_includes_default | 
 | 20692 | int | 
 | 20693 | main () | 
 | 20694 | { | 
 | 20695 | if ((u_int64_t *) 0) | 
 | 20696 |   return 0; | 
 | 20697 | if (sizeof (u_int64_t)) | 
 | 20698 |   return 0; | 
 | 20699 |   ; | 
 | 20700 |   return 0; | 
 | 20701 | } | 
 | 20702 | _ACEOF | 
 | 20703 | rm -f conftest.$ac_objext | 
 | 20704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20705 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20706 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20707 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20708 |   rm -f conftest.er1 | 
 | 20709 |   cat conftest.err >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20710 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20711 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20712 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20713 | 			 || test ! -s conftest.err' | 
 | 20714 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20715 |   (eval $ac_try) 2>&5 | 
 | 20716 |   ac_status=$? | 
 | 20717 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20718 |   (exit $ac_status); }; } && | 
 | 20719 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20720 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20721 |   (eval $ac_try) 2>&5 | 
 | 20722 |   ac_status=$? | 
 | 20723 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20724 |   (exit $ac_status); }; }; then | 
 | 20725 |   ac_cv_type_u_int64_t=yes | 
 | 20726 | else | 
 | 20727 |   echo "$as_me: failed program was:" >&5 | 
 | 20728 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20729 |  | 
 | 20730 | ac_cv_type_u_int64_t=no | 
 | 20731 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20733 | fi | 
 | 20734 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
 | 20735 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | 
 | 20736 | if test $ac_cv_type_u_int64_t = yes; then | 
 | 20737 |  | 
 | 20738 | cat >>confdefs.h <<_ACEOF | 
 | 20739 | #define HAVE_U_INT64_T 1 | 
 | 20740 | _ACEOF | 
 | 20741 |  | 
 | 20742 |  | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 20743 | else | 
 | 20744 |   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
 | 20745 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
 | 20746 |    { (exit 1); exit 1; }; } | 
 | 20747 | fi | 
 | 20748 |  | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 20749 | fi | 
 | 20750 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20751 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 20752 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | 
 | 20753 | if test "${ac_cv_header_time+set}" = set; then | 
 | 20754 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20755 | else | 
 | 20756 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20757 | /* confdefs.h.  */ | 
 | 20758 | _ACEOF | 
 | 20759 | cat confdefs.h >>conftest.$ac_ext | 
 | 20760 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20761 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20762 | #include <sys/types.h> | 
 | 20763 | #include <sys/time.h> | 
 | 20764 | #include <time.h> | 
 | 20765 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20766 | int | 
 | 20767 | main () | 
 | 20768 | { | 
 | 20769 | if ((struct tm *) 0) | 
 | 20770 | return 0; | 
 | 20771 |   ; | 
 | 20772 |   return 0; | 
 | 20773 | } | 
 | 20774 | _ACEOF | 
 | 20775 | rm -f conftest.$ac_objext | 
 | 20776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20777 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20778 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20779 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20780 |   rm -f conftest.er1 | 
 | 20781 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20782 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20783 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20784 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20785 | 			 || test ! -s conftest.err' | 
 | 20786 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20787 |   (eval $ac_try) 2>&5 | 
 | 20788 |   ac_status=$? | 
 | 20789 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20790 |   (exit $ac_status); }; } && | 
 | 20791 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20792 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20793 |   (eval $ac_try) 2>&5 | 
 | 20794 |   ac_status=$? | 
 | 20795 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20796 |   (exit $ac_status); }; }; then | 
 | 20797 |   ac_cv_header_time=yes | 
 | 20798 | else | 
 | 20799 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20800 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20801 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20802 | ac_cv_header_time=no | 
 | 20803 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20805 | fi | 
 | 20806 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
 | 20807 | echo "${ECHO_T}$ac_cv_header_time" >&6 | 
 | 20808 | if test $ac_cv_header_time = yes; then | 
 | 20809 |  | 
 | 20810 | cat >>confdefs.h <<\_ACEOF | 
 | 20811 | #define TIME_WITH_SYS_TIME 1 | 
 | 20812 | _ACEOF | 
 | 20813 |  | 
 | 20814 | fi | 
 | 20815 |  | 
 | 20816 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 20817 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | 
 | 20818 | if test "${ac_cv_struct_tm+set}" = set; then | 
 | 20819 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20820 | else | 
 | 20821 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20822 | /* confdefs.h.  */ | 
 | 20823 | _ACEOF | 
 | 20824 | cat confdefs.h >>conftest.$ac_ext | 
 | 20825 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20826 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20827 | #include <sys/types.h> | 
 | 20828 | #include <time.h> | 
 | 20829 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20830 | int | 
 | 20831 | main () | 
 | 20832 | { | 
 | 20833 | struct tm *tp; tp->tm_sec; | 
 | 20834 |   ; | 
 | 20835 |   return 0; | 
 | 20836 | } | 
 | 20837 | _ACEOF | 
 | 20838 | rm -f conftest.$ac_objext | 
 | 20839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20840 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20841 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20842 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20843 |   rm -f conftest.er1 | 
 | 20844 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20845 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20846 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20847 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20848 | 			 || test ! -s conftest.err' | 
 | 20849 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20850 |   (eval $ac_try) 2>&5 | 
 | 20851 |   ac_status=$? | 
 | 20852 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20853 |   (exit $ac_status); }; } && | 
 | 20854 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20855 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20856 |   (eval $ac_try) 2>&5 | 
 | 20857 |   ac_status=$? | 
 | 20858 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20859 |   (exit $ac_status); }; }; then | 
 | 20860 |   ac_cv_struct_tm=time.h | 
 | 20861 | else | 
 | 20862 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20863 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20864 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20865 | ac_cv_struct_tm=sys/time.h | 
 | 20866 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20868 | fi | 
 | 20869 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
 | 20870 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | 
 | 20871 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 20872 |  | 
 | 20873 | cat >>confdefs.h <<\_ACEOF | 
 | 20874 | #define TM_IN_SYS_TIME 1 | 
 | 20875 | _ACEOF | 
 | 20876 |  | 
 | 20877 | fi | 
 | 20878 |  | 
 | 20879 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20880 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20881 |   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5 | 
| Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 20882 | echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20883 |   ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20884 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20888 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20889 |   if test "$cross_compiling" = yes; then | 
 | 20890 |   ac_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20891 | else | 
 | 20892 |   cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20893 |  | 
 | 20894 |     /* confdefs.h.  */ | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20895 | _ACEOF | 
 | 20896 | cat confdefs.h >>conftest.$ac_ext | 
 | 20897 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20898 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20899 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20900 | #include <stdio.h> | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20901 | #include <stdlib.h> | 
 | 20902 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20903 | int | 
 | 20904 | main () | 
 | 20905 | { | 
 | 20906 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20907 | volatile double A, B; | 
 | 20908 | char Buffer[100]; | 
 | 20909 | A = 1; | 
 | 20910 | A /= 10.0; | 
 | 20911 | sprintf(Buffer, "%a", A); | 
 | 20912 | B = atof(Buffer); | 
 | 20913 | if (A != B) | 
 | 20914 |   return (1); | 
 | 20915 | if (A != 0x1.999999999999ap-4) | 
 | 20916 |   return (1); | 
 | 20917 | return (0); | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20918 |   ; | 
 | 20919 |   return 0; | 
 | 20920 | } | 
 | 20921 | _ACEOF | 
 | 20922 | rm -f conftest$ac_exeext | 
 | 20923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 20924 |   (eval $ac_link) 2>&5 | 
 | 20925 |   ac_status=$? | 
 | 20926 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20927 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 20928 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20929 |   (eval $ac_try) 2>&5 | 
 | 20930 |   ac_status=$? | 
 | 20931 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20932 |   (exit $ac_status); }; }; then | 
 | 20933 |   ac_c_printf_a=yes | 
 | 20934 | else | 
 | 20935 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 20936 | echo "$as_me: failed program was:" >&5 | 
 | 20937 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20938 |  | 
 | 20939 | ( exit $ac_status ) | 
 | 20940 | ac_c_printf_a=no | 
 | 20941 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20942 | 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] | 20943 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20944 |  ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20945 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20949 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20950 |  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5 | 
| Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 20951 | echo "${ECHO_T}$ac_c_printf_a" >&6 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20952 |  if test "$ac_c_printf_a" = "yes"; then | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20953 |  | 
 | 20954 | cat >>confdefs.h <<\_ACEOF | 
 | 20955 | #define HAVE_PRINTF_A 1 | 
 | 20956 | _ACEOF | 
 | 20957 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20958 |  fi | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 20959 |  | 
 | 20960 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 20961 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
 | 20962 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | 
 | 20963 | if test "${ac_cv_c_bigendian+set}" = set; then | 
 | 20964 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20965 | else | 
 | 20966 |   # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 20967 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 20968 | /* confdefs.h.  */ | 
 | 20969 | _ACEOF | 
 | 20970 | cat confdefs.h >>conftest.$ac_ext | 
 | 20971 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20972 | /* end confdefs.h.  */ | 
 | 20973 | #include <sys/types.h> | 
 | 20974 | #include <sys/param.h> | 
 | 20975 |  | 
 | 20976 | int | 
 | 20977 | main () | 
 | 20978 | { | 
 | 20979 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
 | 20980 |  bogus endian macros | 
 | 20981 | #endif | 
 | 20982 |  | 
 | 20983 |   ; | 
 | 20984 |   return 0; | 
 | 20985 | } | 
 | 20986 | _ACEOF | 
 | 20987 | rm -f conftest.$ac_objext | 
 | 20988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20989 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 20990 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20991 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20992 |   rm -f conftest.er1 | 
 | 20993 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 20994 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20995 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20996 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20997 | 			 || test ! -s conftest.err' | 
 | 20998 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20999 |   (eval $ac_try) 2>&5 | 
 | 21000 |   ac_status=$? | 
 | 21001 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21002 |   (exit $ac_status); }; } && | 
 | 21003 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21004 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21005 |   (eval $ac_try) 2>&5 | 
 | 21006 |   ac_status=$? | 
 | 21007 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21008 |   (exit $ac_status); }; }; then | 
 | 21009 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
 | 21010 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21011 | /* confdefs.h.  */ | 
 | 21012 | _ACEOF | 
 | 21013 | cat confdefs.h >>conftest.$ac_ext | 
 | 21014 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21015 | /* end confdefs.h.  */ | 
 | 21016 | #include <sys/types.h> | 
 | 21017 | #include <sys/param.h> | 
 | 21018 |  | 
 | 21019 | int | 
 | 21020 | main () | 
 | 21021 | { | 
 | 21022 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 21023 |  not big endian | 
 | 21024 | #endif | 
 | 21025 |  | 
 | 21026 |   ; | 
 | 21027 |   return 0; | 
 | 21028 | } | 
 | 21029 | _ACEOF | 
 | 21030 | rm -f conftest.$ac_objext | 
 | 21031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21032 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21033 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21034 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21035 |   rm -f conftest.er1 | 
 | 21036 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21037 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21038 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21039 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21040 | 			 || test ! -s conftest.err' | 
 | 21041 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21042 |   (eval $ac_try) 2>&5 | 
 | 21043 |   ac_status=$? | 
 | 21044 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21045 |   (exit $ac_status); }; } && | 
 | 21046 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21047 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21048 |   (eval $ac_try) 2>&5 | 
 | 21049 |   ac_status=$? | 
 | 21050 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21051 |   (exit $ac_status); }; }; then | 
 | 21052 |   ac_cv_c_bigendian=yes | 
 | 21053 | else | 
 | 21054 |   echo "$as_me: failed program was:" >&5 | 
 | 21055 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21056 |  | 
 | 21057 | ac_cv_c_bigendian=no | 
 | 21058 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21060 | else | 
 | 21061 |   echo "$as_me: failed program was:" >&5 | 
 | 21062 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21063 |  | 
 | 21064 | # It does not; compile a test program. | 
 | 21065 | if test "$cross_compiling" = yes; then | 
 | 21066 |   # try to guess the endianness by grepping values into an object file | 
 | 21067 |   ac_cv_c_bigendian=unknown | 
 | 21068 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21069 | /* confdefs.h.  */ | 
 | 21070 | _ACEOF | 
 | 21071 | cat confdefs.h >>conftest.$ac_ext | 
 | 21072 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21073 | /* end confdefs.h.  */ | 
 | 21074 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 21075 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 21076 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
 | 21077 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 21078 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 21079 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
 | 21080 | int | 
 | 21081 | main () | 
 | 21082 | { | 
 | 21083 |  _ascii (); _ebcdic (); | 
 | 21084 |   ; | 
 | 21085 |   return 0; | 
 | 21086 | } | 
 | 21087 | _ACEOF | 
 | 21088 | rm -f conftest.$ac_objext | 
 | 21089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21090 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21091 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21092 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21093 |   rm -f conftest.er1 | 
 | 21094 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21095 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21096 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21097 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21098 | 			 || test ! -s conftest.err' | 
 | 21099 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21100 |   (eval $ac_try) 2>&5 | 
 | 21101 |   ac_status=$? | 
 | 21102 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21103 |   (exit $ac_status); }; } && | 
 | 21104 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21105 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21106 |   (eval $ac_try) 2>&5 | 
 | 21107 |   ac_status=$? | 
 | 21108 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21109 |   (exit $ac_status); }; }; then | 
 | 21110 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
 | 21111 |   ac_cv_c_bigendian=yes | 
 | 21112 | fi | 
 | 21113 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 21114 |   if test "$ac_cv_c_bigendian" = unknown; then | 
 | 21115 |     ac_cv_c_bigendian=no | 
 | 21116 |   else | 
 | 21117 |     # finding both strings is unlikely to happen, but who knows? | 
 | 21118 |     ac_cv_c_bigendian=unknown | 
 | 21119 |   fi | 
 | 21120 | fi | 
 | 21121 | else | 
 | 21122 |   echo "$as_me: failed program was:" >&5 | 
 | 21123 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21124 |  | 
 | 21125 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21127 | else | 
 | 21128 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21129 | /* confdefs.h.  */ | 
 | 21130 | _ACEOF | 
 | 21131 | cat confdefs.h >>conftest.$ac_ext | 
 | 21132 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21133 | /* end confdefs.h.  */ | 
 | 21134 | int | 
 | 21135 | main () | 
 | 21136 | { | 
 | 21137 |   /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 21138 |   union | 
 | 21139 |   { | 
 | 21140 |     long l; | 
 | 21141 |     char c[sizeof (long)]; | 
 | 21142 |   } u; | 
 | 21143 |   u.l = 1; | 
 | 21144 |   exit (u.c[sizeof (long) - 1] == 1); | 
 | 21145 | } | 
 | 21146 | _ACEOF | 
 | 21147 | rm -f conftest$ac_exeext | 
 | 21148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 21149 |   (eval $ac_link) 2>&5 | 
 | 21150 |   ac_status=$? | 
 | 21151 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21152 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 21153 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21154 |   (eval $ac_try) 2>&5 | 
 | 21155 |   ac_status=$? | 
 | 21156 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21157 |   (exit $ac_status); }; }; then | 
 | 21158 |   ac_cv_c_bigendian=no | 
 | 21159 | else | 
 | 21160 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 21161 | echo "$as_me: failed program was:" >&5 | 
 | 21162 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21163 |  | 
 | 21164 | ( exit $ac_status ) | 
 | 21165 | ac_cv_c_bigendian=yes | 
 | 21166 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21167 | 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] | 21168 | fi | 
 | 21169 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21171 | fi | 
 | 21172 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
 | 21173 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | 
 | 21174 | case $ac_cv_c_bigendian in | 
 | 21175 |   yes) | 
 | 21176 |     ENDIAN=big | 
 | 21177 |  ;; | 
 | 21178 |   no) | 
 | 21179 |     ENDIAN=little | 
 | 21180 |  ;; | 
 | 21181 |   *) | 
 | 21182 |     { { echo "$as_me:$LINENO: error: unknown endianness | 
 | 21183 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
 | 21184 | echo "$as_me: error: unknown endianness | 
 | 21185 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
 | 21186 |    { (exit 1); exit 1; }; } ;; | 
 | 21187 | esac | 
 | 21188 |  | 
 | 21189 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21190 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
 | 21191 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 | 
 | 21192 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
 | 21193 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21194 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21195 |   ac_ext=cc | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21196 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21197 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21198 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21199 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21200 |  | 
 | 21201 |  cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21202 | /* confdefs.h.  */ | 
 | 21203 | _ACEOF | 
 | 21204 | cat confdefs.h >>conftest.$ac_ext | 
 | 21205 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21206 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21207 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21208 | int | 
 | 21209 | main () | 
 | 21210 | { | 
 | 21211 | using namespace Outer::Inner; return i; | 
 | 21212 |   ; | 
 | 21213 |   return 0; | 
 | 21214 | } | 
 | 21215 | _ACEOF | 
 | 21216 | rm -f conftest.$ac_objext | 
 | 21217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21218 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21219 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21220 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21221 |   rm -f conftest.er1 | 
 | 21222 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21223 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21224 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21225 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21226 | 			 || test ! -s conftest.err' | 
 | 21227 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21228 |   (eval $ac_try) 2>&5 | 
 | 21229 |   ac_status=$? | 
 | 21230 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21231 |   (exit $ac_status); }; } && | 
 | 21232 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21233 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21234 |   (eval $ac_try) 2>&5 | 
 | 21235 |   ac_status=$? | 
 | 21236 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21237 |   (exit $ac_status); }; }; then | 
 | 21238 |   ac_cv_cxx_namespaces=yes | 
 | 21239 | else | 
 | 21240 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21241 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21242 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21243 | ac_cv_cxx_namespaces=no | 
 | 21244 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21246 |  ac_ext=c | 
 | 21247 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21251 |  | 
 | 21252 |  | 
 | 21253 | fi | 
 | 21254 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
 | 21255 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 | 
 | 21256 | if test "$ac_cv_cxx_namespaces" = yes; then | 
 | 21257 |  | 
 | 21258 | cat >>confdefs.h <<\_ACEOF | 
 | 21259 | #define HAVE_NAMESPACES | 
 | 21260 | _ACEOF | 
 | 21261 |  | 
 | 21262 | fi | 
 | 21263 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21264 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 | 
 | 21265 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 | 
 | 21266 | 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] | 21267 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21268 | else | 
 | 21269 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21270 |   ac_ext=cc | 
 | 21271 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21272 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21273 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21274 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21275 |  | 
 | 21276 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21277 | /* confdefs.h.  */ | 
 | 21278 | _ACEOF | 
 | 21279 | cat confdefs.h >>conftest.$ac_ext | 
 | 21280 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21281 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21282 | #include <ext/hash_map> | 
 | 21283 | #ifdef HAVE_NAMESPACES | 
 | 21284 | using namespace std; | 
 | 21285 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21286 | int | 
 | 21287 | main () | 
 | 21288 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21289 | hash_map<int, int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21290 |   ; | 
 | 21291 |   return 0; | 
 | 21292 | } | 
 | 21293 | _ACEOF | 
 | 21294 | rm -f conftest.$ac_objext | 
 | 21295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21296 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21297 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21298 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21299 |   rm -f conftest.er1 | 
 | 21300 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21301 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21302 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21303 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21304 | 			 || test ! -s conftest.err' | 
 | 21305 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21306 |   (eval $ac_try) 2>&5 | 
 | 21307 |   ac_status=$? | 
 | 21308 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21309 |   (exit $ac_status); }; } && | 
 | 21310 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21311 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21312 |   (eval $ac_try) 2>&5 | 
 | 21313 |   ac_status=$? | 
 | 21314 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21315 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21316 |   ac_cv_cxx_have_std_ext_hash_map=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21317 | else | 
 | 21318 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21319 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21320 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21321 | ac_cv_cxx_have_std_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21322 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21324 |   ac_ext=c | 
 | 21325 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21329 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21330 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21331 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 | 
 | 21332 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21333 |  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes | 
 | 21334 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21335 |  | 
 | 21336 | cat >>confdefs.h <<\_ACEOF | 
 | 21337 | #define HAVE_STD_EXT_HASH_MAP 1 | 
 | 21338 | _ACEOF | 
 | 21339 |  | 
 | 21340 |  else | 
 | 21341 |  | 
 | 21342 | cat >>confdefs.h <<\_ACEOF | 
 | 21343 | #define HAVE_STD_EXT_HASH_MAP 0 | 
 | 21344 | _ACEOF | 
 | 21345 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21346 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21347 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21348 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 | 
 | 21349 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 | 
 | 21350 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then | 
 | 21351 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21352 | else | 
 | 21353 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21354 |   ac_ext=cc | 
 | 21355 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21356 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21357 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21358 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21359 |  | 
 | 21360 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21361 | /* confdefs.h.  */ | 
 | 21362 | _ACEOF | 
 | 21363 | cat confdefs.h >>conftest.$ac_ext | 
 | 21364 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21365 | /* end confdefs.h.  */ | 
 | 21366 | #include <ext/hash_map> | 
 | 21367 | #ifdef HAVE_NAMESPACES | 
 | 21368 | using namespace __gnu_cxx; | 
 | 21369 | #endif | 
 | 21370 | int | 
 | 21371 | main () | 
 | 21372 | { | 
 | 21373 | hash_map<int,int> t; | 
 | 21374 |   ; | 
 | 21375 |   return 0; | 
 | 21376 | } | 
 | 21377 | _ACEOF | 
 | 21378 | rm -f conftest.$ac_objext | 
 | 21379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21380 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21381 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21382 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21383 |   rm -f conftest.er1 | 
 | 21384 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21385 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21386 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21387 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21388 | 			 || test ! -s conftest.err' | 
 | 21389 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21390 |   (eval $ac_try) 2>&5 | 
 | 21391 |   ac_status=$? | 
 | 21392 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21393 |   (exit $ac_status); }; } && | 
 | 21394 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21395 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21396 |   (eval $ac_try) 2>&5 | 
 | 21397 |   ac_status=$? | 
 | 21398 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21399 |   (exit $ac_status); }; }; then | 
 | 21400 |   ac_cv_cxx_have_gnu_ext_hash_map=yes | 
 | 21401 | else | 
 | 21402 |   echo "$as_me: failed program was:" >&5 | 
 | 21403 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21404 |  | 
 | 21405 | ac_cv_cxx_have_gnu_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21406 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21408 |   ac_ext=c | 
 | 21409 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21413 |  | 
 | 21414 | fi | 
 | 21415 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 | 
 | 21416 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21417 |  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes | 
 | 21418 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21419 |  | 
 | 21420 | cat >>confdefs.h <<\_ACEOF | 
 | 21421 | #define HAVE_GNU_EXT_HASH_MAP 1 | 
 | 21422 | _ACEOF | 
 | 21423 |  | 
 | 21424 |  else | 
 | 21425 |  | 
 | 21426 | cat >>confdefs.h <<\_ACEOF | 
 | 21427 | #define HAVE_GNU_EXT_HASH_MAP 0 | 
 | 21428 | _ACEOF | 
 | 21429 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21430 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21431 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21432 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 | 
 | 21433 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 | 
 | 21434 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then | 
 | 21435 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21436 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21437 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21438 |   ac_ext=cc | 
 | 21439 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21440 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21441 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21442 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21443 |  | 
 | 21444 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21445 | /* confdefs.h.  */ | 
 | 21446 | _ACEOF | 
 | 21447 | cat confdefs.h >>conftest.$ac_ext | 
 | 21448 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21449 | /* end confdefs.h.  */ | 
 | 21450 | #include <hash_map> | 
 | 21451 | int | 
 | 21452 | main () | 
 | 21453 | { | 
 | 21454 | hash_map<int,int> t; | 
 | 21455 |   ; | 
 | 21456 |   return 0; | 
 | 21457 | } | 
 | 21458 | _ACEOF | 
 | 21459 | rm -f conftest.$ac_objext | 
 | 21460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21461 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21462 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21463 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21464 |   rm -f conftest.er1 | 
 | 21465 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21466 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21467 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21468 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21469 | 			 || test ! -s conftest.err' | 
 | 21470 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21471 |   (eval $ac_try) 2>&5 | 
 | 21472 |   ac_status=$? | 
 | 21473 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21474 |   (exit $ac_status); }; } && | 
 | 21475 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21476 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21477 |   (eval $ac_try) 2>&5 | 
 | 21478 |   ac_status=$? | 
 | 21479 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21480 |   (exit $ac_status); }; }; then | 
 | 21481 |   ac_cv_cxx_have_global_hash_map=yes | 
 | 21482 | else | 
 | 21483 |   echo "$as_me: failed program was:" >&5 | 
 | 21484 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21485 |  | 
 | 21486 | ac_cv_cxx_have_global_hash_map=no | 
 | 21487 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21489 |   ac_ext=c | 
 | 21490 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21494 |  | 
 | 21495 | fi | 
 | 21496 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 | 
 | 21497 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21498 |  if test "$ac_cv_cxx_have_global_hash_map" = yes | 
 | 21499 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21500 |  | 
 | 21501 | cat >>confdefs.h <<\_ACEOF | 
 | 21502 | #define HAVE_GLOBAL_HASH_MAP 1 | 
 | 21503 | _ACEOF | 
 | 21504 |  | 
 | 21505 |  else | 
 | 21506 |  | 
 | 21507 | cat >>confdefs.h <<\_ACEOF | 
 | 21508 | #define HAVE_GLOBAL_HASH_MAP 0 | 
 | 21509 | _ACEOF | 
 | 21510 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21511 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21512 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21513 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 | 
 | 21514 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 | 
 | 21515 | 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] | 21516 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21517 | else | 
 | 21518 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21519 |   ac_ext=cc | 
 | 21520 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21521 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21522 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21523 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21524 |  | 
 | 21525 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21526 | /* confdefs.h.  */ | 
 | 21527 | _ACEOF | 
 | 21528 | cat confdefs.h >>conftest.$ac_ext | 
 | 21529 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21530 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21531 | #include <ext/hash_set> | 
 | 21532 | #ifdef HAVE_NAMESPACES | 
 | 21533 | using namespace std; | 
 | 21534 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21535 | int | 
 | 21536 | main () | 
 | 21537 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21538 | hash_set<int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21539 |   ; | 
 | 21540 |   return 0; | 
 | 21541 | } | 
 | 21542 | _ACEOF | 
 | 21543 | rm -f conftest.$ac_objext | 
 | 21544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21545 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21546 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21547 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21548 |   rm -f conftest.er1 | 
 | 21549 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21550 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21551 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21552 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21553 | 			 || test ! -s conftest.err' | 
 | 21554 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21555 |   (eval $ac_try) 2>&5 | 
 | 21556 |   ac_status=$? | 
 | 21557 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21558 |   (exit $ac_status); }; } && | 
 | 21559 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21560 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21561 |   (eval $ac_try) 2>&5 | 
 | 21562 |   ac_status=$? | 
 | 21563 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21564 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21565 |   ac_cv_cxx_have_std_ext_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21566 | else | 
 | 21567 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21568 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21569 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21570 | ac_cv_cxx_have_std_ext_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21571 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21573 |   ac_ext=c | 
 | 21574 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21578 |  | 
 | 21579 | fi | 
 | 21580 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 | 
 | 21581 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21582 |  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes | 
 | 21583 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21584 |  | 
 | 21585 | cat >>confdefs.h <<\_ACEOF | 
 | 21586 | #define HAVE_STD_EXT_HASH_SET 1 | 
 | 21587 | _ACEOF | 
 | 21588 |  | 
 | 21589 |  else | 
 | 21590 |  | 
 | 21591 | cat >>confdefs.h <<\_ACEOF | 
 | 21592 | #define HAVE_STD_EXT_HASH_SET 0 | 
 | 21593 | _ACEOF | 
 | 21594 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21595 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21596 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21597 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 | 
 | 21598 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 | 
 | 21599 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then | 
 | 21600 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21601 | else | 
 | 21602 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21603 |   ac_ext=cc | 
 | 21604 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21605 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21606 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21607 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21608 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21609 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21610 | /* confdefs.h.  */ | 
 | 21611 | _ACEOF | 
 | 21612 | cat confdefs.h >>conftest.$ac_ext | 
 | 21613 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21614 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21615 | #include <ext/hash_set> | 
 | 21616 | #ifdef HAVE_NAMESPACES | 
 | 21617 | using namespace __gnu_cxx; | 
 | 21618 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21619 | int | 
 | 21620 | main () | 
 | 21621 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21622 | hash_set<int> t; | 
 | 21623 |   ; | 
 | 21624 |   return 0; | 
 | 21625 | } | 
 | 21626 | _ACEOF | 
 | 21627 | rm -f conftest.$ac_objext | 
 | 21628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21629 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21630 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21631 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21632 |   rm -f conftest.er1 | 
 | 21633 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21634 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21635 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21636 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21637 | 			 || test ! -s conftest.err' | 
 | 21638 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21639 |   (eval $ac_try) 2>&5 | 
 | 21640 |   ac_status=$? | 
 | 21641 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21642 |   (exit $ac_status); }; } && | 
 | 21643 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21644 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21645 |   (eval $ac_try) 2>&5 | 
 | 21646 |   ac_status=$? | 
 | 21647 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21648 |   (exit $ac_status); }; }; then | 
 | 21649 |   ac_cv_cxx_have_gnu_ext_hash_set=yes | 
 | 21650 | else | 
 | 21651 |   echo "$as_me: failed program was:" >&5 | 
 | 21652 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21653 |  | 
 | 21654 | ac_cv_cxx_have_gnu_ext_hash_set=no | 
 | 21655 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21657 |   ac_ext=c | 
 | 21658 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21662 |  | 
 | 21663 | fi | 
 | 21664 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 | 
 | 21665 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21666 |  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes | 
 | 21667 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21668 |  | 
 | 21669 | cat >>confdefs.h <<\_ACEOF | 
 | 21670 | #define HAVE_GNU_EXT_HASH_SET 1 | 
 | 21671 | _ACEOF | 
 | 21672 |  | 
 | 21673 |  else | 
 | 21674 |  | 
 | 21675 | cat >>confdefs.h <<\_ACEOF | 
 | 21676 | #define HAVE_GNU_EXT_HASH_SET 0 | 
 | 21677 | _ACEOF | 
 | 21678 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21679 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21680 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21681 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 | 
 | 21682 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 | 
 | 21683 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then | 
 | 21684 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21685 | else | 
 | 21686 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21687 |   ac_ext=cc | 
 | 21688 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21689 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21690 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21691 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21692 |  | 
 | 21693 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21694 | /* confdefs.h.  */ | 
 | 21695 | _ACEOF | 
 | 21696 | cat confdefs.h >>conftest.$ac_ext | 
 | 21697 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21698 | /* end confdefs.h.  */ | 
 | 21699 | #include <hash_set> | 
 | 21700 | int | 
 | 21701 | main () | 
 | 21702 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21703 | hash_set<int> t; return 0; | 
 | 21704 |   ; | 
 | 21705 |   return 0; | 
 | 21706 | } | 
 | 21707 | _ACEOF | 
 | 21708 | rm -f conftest.$ac_objext | 
 | 21709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21710 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21711 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21712 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21713 |   rm -f conftest.er1 | 
 | 21714 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21715 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21716 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21717 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21718 | 			 || test ! -s conftest.err' | 
 | 21719 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21720 |   (eval $ac_try) 2>&5 | 
 | 21721 |   ac_status=$? | 
 | 21722 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21723 |   (exit $ac_status); }; } && | 
 | 21724 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21725 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21726 |   (eval $ac_try) 2>&5 | 
 | 21727 |   ac_status=$? | 
 | 21728 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21729 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21730 |   ac_cv_cxx_have_global_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21731 | else | 
 | 21732 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21733 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21734 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21735 | ac_cv_cxx_have_global_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21736 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21738 |   ac_ext=c | 
 | 21739 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21743 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21744 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21745 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 | 
 | 21746 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21747 |  if test "$ac_cv_cxx_have_global_hash_set" = yes | 
 | 21748 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21749 |  | 
 | 21750 | cat >>confdefs.h <<\_ACEOF | 
 | 21751 | #define HAVE_GLOBAL_HASH_SET 1 | 
 | 21752 | _ACEOF | 
 | 21753 |  | 
 | 21754 |  else | 
 | 21755 |  | 
 | 21756 | cat >>confdefs.h <<\_ACEOF | 
 | 21757 | #define HAVE_GLOBAL_HASH_SET 0 | 
 | 21758 | _ACEOF | 
 | 21759 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21760 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21761 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21762 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
 | 21763 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 | 
 | 21764 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
 | 21765 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21766 | else | 
 | 21767 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21768 |   ac_ext=cc | 
 | 21769 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21770 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21771 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21772 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21773 |  | 
 | 21774 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21775 | /* confdefs.h.  */ | 
 | 21776 | _ACEOF | 
 | 21777 | cat confdefs.h >>conftest.$ac_ext | 
 | 21778 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21779 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21780 | #include <iterator> | 
 | 21781 | #ifdef HAVE_NAMESPACES | 
 | 21782 | using namespace std; | 
 | 21783 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21784 | int | 
 | 21785 | main () | 
 | 21786 | { | 
 | 21787 | iterator<int,int,int> t; return 0; | 
 | 21788 |   ; | 
 | 21789 |   return 0; | 
 | 21790 | } | 
 | 21791 | _ACEOF | 
 | 21792 | rm -f conftest.$ac_objext | 
 | 21793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21794 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21795 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21796 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21797 |   rm -f conftest.er1 | 
 | 21798 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21799 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21800 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21801 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21802 | 			 || test ! -s conftest.err' | 
 | 21803 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21804 |   (eval $ac_try) 2>&5 | 
 | 21805 |   ac_status=$? | 
 | 21806 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21807 |   (exit $ac_status); }; } && | 
 | 21808 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21809 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21810 |   (eval $ac_try) 2>&5 | 
 | 21811 |   ac_status=$? | 
 | 21812 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21813 |   (exit $ac_status); }; }; then | 
 | 21814 |   ac_cv_cxx_have_std_iterator=yes | 
 | 21815 | else | 
 | 21816 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21817 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21818 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21819 | ac_cv_cxx_have_std_iterator=no | 
 | 21820 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21822 |   ac_ext=c | 
 | 21823 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21827 |  | 
 | 21828 |  | 
 | 21829 | fi | 
 | 21830 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
 | 21831 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 21832 | if test "$ac_cv_cxx_have_std_iterator" = yes | 
 | 21833 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 21834 |  | 
 | 21835 | cat >>confdefs.h <<\_ACEOF | 
 | 21836 | #define HAVE_STD_ITERATOR 1 | 
 | 21837 | _ACEOF | 
 | 21838 |  | 
 | 21839 | else | 
 | 21840 |  | 
 | 21841 | cat >>confdefs.h <<\_ACEOF | 
 | 21842 | #define HAVE_STD_ITERATOR 0 | 
 | 21843 | _ACEOF | 
 | 21844 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21845 | fi | 
 | 21846 |  | 
 | 21847 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
 | 21848 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 | 
 | 21849 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
 | 21850 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21851 | else | 
 | 21852 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21853 |   ac_ext=cc | 
 | 21854 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21855 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21856 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21857 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21858 |  | 
 | 21859 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21860 | /* confdefs.h.  */ | 
 | 21861 | _ACEOF | 
 | 21862 | cat confdefs.h >>conftest.$ac_ext | 
 | 21863 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21864 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21865 | #include <iterator> | 
 | 21866 | #ifdef HAVE_NAMESPACES | 
 | 21867 | using namespace std; | 
 | 21868 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21869 | int | 
 | 21870 | main () | 
 | 21871 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21872 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21873 |   ; | 
 | 21874 |   return 0; | 
 | 21875 | } | 
 | 21876 | _ACEOF | 
 | 21877 | rm -f conftest.$ac_objext | 
 | 21878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21879 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21880 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21881 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21882 |   rm -f conftest.er1 | 
 | 21883 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21884 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21885 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21886 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21887 | 			 || test ! -s conftest.err' | 
 | 21888 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21889 |   (eval $ac_try) 2>&5 | 
 | 21890 |   ac_status=$? | 
 | 21891 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21892 |   (exit $ac_status); }; } && | 
 | 21893 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21894 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21895 |   (eval $ac_try) 2>&5 | 
 | 21896 |   ac_status=$? | 
 | 21897 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21898 |   (exit $ac_status); }; }; then | 
 | 21899 |   ac_cv_cxx_have_bi_iterator=yes | 
 | 21900 | else | 
 | 21901 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21902 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21903 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21904 | ac_cv_cxx_have_bi_iterator=no | 
 | 21905 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21907 |   ac_ext=c | 
 | 21908 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21912 |  | 
 | 21913 |  | 
 | 21914 | fi | 
 | 21915 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
 | 21916 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 21917 | if test "$ac_cv_cxx_have_bi_iterator" = yes | 
 | 21918 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 21919 |  | 
 | 21920 | cat >>confdefs.h <<\_ACEOF | 
 | 21921 | #define HAVE_BI_ITERATOR 1 | 
 | 21922 | _ACEOF | 
 | 21923 |  | 
 | 21924 | else | 
 | 21925 |  | 
 | 21926 | cat >>confdefs.h <<\_ACEOF | 
 | 21927 | #define HAVE_BI_ITERATOR 0 | 
 | 21928 | _ACEOF | 
 | 21929 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21930 | fi | 
 | 21931 |  | 
 | 21932 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
 | 21933 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 | 
 | 21934 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
 | 21935 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21936 | else | 
 | 21937 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21938 |   ac_ext=cc | 
 | 21939 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21940 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21941 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21942 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21943 |  | 
 | 21944 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21945 | /* confdefs.h.  */ | 
 | 21946 | _ACEOF | 
 | 21947 | cat confdefs.h >>conftest.$ac_ext | 
 | 21948 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21949 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21950 | #include <iterator> | 
 | 21951 | #ifdef HAVE_NAMESPACES | 
 | 21952 | using namespace std; | 
 | 21953 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21954 | int | 
 | 21955 | main () | 
 | 21956 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21957 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21958 |   ; | 
 | 21959 |   return 0; | 
 | 21960 | } | 
 | 21961 | _ACEOF | 
 | 21962 | rm -f conftest.$ac_objext | 
 | 21963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21964 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21965 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21966 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21967 |   rm -f conftest.er1 | 
 | 21968 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21969 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21970 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21971 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21972 | 			 || test ! -s conftest.err' | 
 | 21973 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21974 |   (eval $ac_try) 2>&5 | 
 | 21975 |   ac_status=$? | 
 | 21976 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21977 |   (exit $ac_status); }; } && | 
 | 21978 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21979 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21980 |   (eval $ac_try) 2>&5 | 
 | 21981 |   ac_status=$? | 
 | 21982 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21983 |   (exit $ac_status); }; }; then | 
 | 21984 |   ac_cv_cxx_have_fwd_iterator=yes | 
 | 21985 | else | 
 | 21986 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21987 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21988 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21989 | ac_cv_cxx_have_fwd_iterator=no | 
 | 21990 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21992 |   ac_ext=c | 
 | 21993 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21997 |  | 
 | 21998 |  | 
 | 21999 | fi | 
 | 22000 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
 | 22001 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 22002 | if test "$ac_cv_cxx_have_fwd_iterator" = yes | 
 | 22003 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 22004 |  | 
 | 22005 | cat >>confdefs.h <<\_ACEOF | 
 | 22006 | #define HAVE_FWD_ITERATOR 1 | 
 | 22007 | _ACEOF | 
 | 22008 |  | 
 | 22009 | else | 
 | 22010 |  | 
 | 22011 | cat >>confdefs.h <<\_ACEOF | 
 | 22012 | #define HAVE_FWD_ITERATOR 0 | 
 | 22013 | _ACEOF | 
 | 22014 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22015 | fi | 
 | 22016 |  | 
 | 22017 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22018 |  | 
 | 22019 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
 | 22020 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 | 
 | 22021 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
 | 22022 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22023 | else | 
 | 22024 |   ac_ext=cc | 
 | 22025 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22026 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22027 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22028 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22029 |  | 
 | 22030 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22031 | /* confdefs.h.  */ | 
 | 22032 | _ACEOF | 
 | 22033 | cat confdefs.h >>conftest.$ac_ext | 
 | 22034 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22035 | /* end confdefs.h.  */ | 
 | 22036 | #include <math.h> | 
 | 22037 |                      int foo(float f) {return isnan(f);} | 
 | 22038 | _ACEOF | 
 | 22039 | rm -f conftest.$ac_objext | 
 | 22040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22041 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22042 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22043 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22044 |   rm -f conftest.er1 | 
 | 22045 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22046 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22047 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22048 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22049 | 			 || test ! -s conftest.err' | 
 | 22050 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22051 |   (eval $ac_try) 2>&5 | 
 | 22052 |   ac_status=$? | 
 | 22053 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22054 |   (exit $ac_status); }; } && | 
 | 22055 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22056 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22057 |   (eval $ac_try) 2>&5 | 
 | 22058 |   ac_status=$? | 
 | 22059 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22060 |   (exit $ac_status); }; }; then | 
 | 22061 |   ac_cv_func_isnan_in_math_h=yes | 
 | 22062 | else | 
 | 22063 |   echo "$as_me: failed program was:" >&5 | 
 | 22064 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22065 |  | 
 | 22066 | ac_cv_func_isnan_in_math_h=no | 
 | 22067 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22069 |  ac_ext=c | 
 | 22070 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22074 |  | 
 | 22075 | fi | 
 | 22076 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
 | 22077 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 | 
 | 22078 |  if test "$ac_cv_func_isnan_in_math_h" = "yes" | 
 | 22079 |  then | 
 | 22080 |  | 
 | 22081 | cat >>confdefs.h <<\_ACEOF | 
 | 22082 | #define HAVE_ISNAN_IN_MATH_H 1 | 
 | 22083 | _ACEOF | 
 | 22084 |  | 
 | 22085 |  fi | 
 | 22086 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
 | 22087 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 | 
 | 22088 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
 | 22089 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22090 | else | 
 | 22091 |   ac_ext=cc | 
 | 22092 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22093 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22094 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22095 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22096 |  | 
 | 22097 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22098 | /* confdefs.h.  */ | 
 | 22099 | _ACEOF | 
 | 22100 | cat confdefs.h >>conftest.$ac_ext | 
 | 22101 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22102 | /* end confdefs.h.  */ | 
 | 22103 | #include <cmath> | 
 | 22104 |                      int foo(float f) {return isnan(f);} | 
 | 22105 | _ACEOF | 
 | 22106 | rm -f conftest.$ac_objext | 
 | 22107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22108 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22109 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22110 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22111 |   rm -f conftest.er1 | 
 | 22112 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22113 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22114 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22115 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22116 | 			 || test ! -s conftest.err' | 
 | 22117 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22118 |   (eval $ac_try) 2>&5 | 
 | 22119 |   ac_status=$? | 
 | 22120 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22121 |   (exit $ac_status); }; } && | 
 | 22122 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22123 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22124 |   (eval $ac_try) 2>&5 | 
 | 22125 |   ac_status=$? | 
 | 22126 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22127 |   (exit $ac_status); }; }; then | 
 | 22128 |   ac_cv_func_isnan_in_cmath=yes | 
 | 22129 | else | 
 | 22130 |   echo "$as_me: failed program was:" >&5 | 
 | 22131 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22132 |  | 
 | 22133 | ac_cv_func_isnan_in_cmath=no | 
 | 22134 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22136 |  ac_ext=c | 
 | 22137 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22141 |  | 
 | 22142 | fi | 
 | 22143 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
 | 22144 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 | 
 | 22145 |  if test "$ac_cv_func_isnan_in_cmath" = "yes" | 
 | 22146 |  then | 
 | 22147 |  | 
 | 22148 | cat >>confdefs.h <<\_ACEOF | 
 | 22149 | #define HAVE_ISNAN_IN_CMATH 1 | 
 | 22150 | _ACEOF | 
 | 22151 |  | 
 | 22152 |  fi | 
 | 22153 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
 | 22154 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 | 
 | 22155 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
 | 22156 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22157 | else | 
 | 22158 |   ac_ext=cc | 
 | 22159 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22160 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22161 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22162 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22163 |  | 
 | 22164 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22165 | /* confdefs.h.  */ | 
 | 22166 | _ACEOF | 
 | 22167 | cat confdefs.h >>conftest.$ac_ext | 
 | 22168 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22169 | /* end confdefs.h.  */ | 
 | 22170 | #include <cmath> | 
 | 22171 |                      using std::isnan; int foo(float f) {return isnan(f);} | 
 | 22172 | _ACEOF | 
 | 22173 | rm -f conftest.$ac_objext | 
 | 22174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22175 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22176 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22177 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22178 |   rm -f conftest.er1 | 
 | 22179 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22180 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22181 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22182 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22183 | 			 || test ! -s conftest.err' | 
 | 22184 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22185 |   (eval $ac_try) 2>&5 | 
 | 22186 |   ac_status=$? | 
 | 22187 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22188 |   (exit $ac_status); }; } && | 
 | 22189 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22190 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22191 |   (eval $ac_try) 2>&5 | 
 | 22192 |   ac_status=$? | 
 | 22193 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22194 |   (exit $ac_status); }; }; then | 
 | 22195 |   ac_cv_func_std_isnan_in_cmath=yes | 
 | 22196 | else | 
 | 22197 |   echo "$as_me: failed program was:" >&5 | 
 | 22198 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22199 |  | 
 | 22200 | ac_cv_func_std_isnan_in_cmath=no | 
 | 22201 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22203 |  ac_ext=c | 
 | 22204 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22208 |  | 
 | 22209 | fi | 
 | 22210 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
 | 22211 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 | 
 | 22212 |  if test "$ac_cv_func_std_isnan_in_cmath" = "yes" | 
 | 22213 |  then | 
 | 22214 |  | 
 | 22215 | cat >>confdefs.h <<\_ACEOF | 
 | 22216 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
 | 22217 | _ACEOF | 
 | 22218 |  | 
 | 22219 |  fi | 
 | 22220 |  | 
 | 22221 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22222 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
 | 22223 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 | 
 | 22224 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
 | 22225 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22226 | else | 
 | 22227 |   ac_ext=cc | 
 | 22228 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22229 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22230 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22231 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22232 |  | 
 | 22233 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22234 | /* confdefs.h.  */ | 
 | 22235 | _ACEOF | 
 | 22236 | cat confdefs.h >>conftest.$ac_ext | 
 | 22237 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22238 | /* end confdefs.h.  */ | 
 | 22239 | #include <math.h> | 
 | 22240 |                      int foo(float f) {return isinf(f);} | 
 | 22241 | _ACEOF | 
 | 22242 | rm -f conftest.$ac_objext | 
 | 22243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22244 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22245 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22246 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22247 |   rm -f conftest.er1 | 
 | 22248 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22249 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22250 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22251 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22252 | 			 || test ! -s conftest.err' | 
 | 22253 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22254 |   (eval $ac_try) 2>&5 | 
 | 22255 |   ac_status=$? | 
 | 22256 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22257 |   (exit $ac_status); }; } && | 
 | 22258 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22259 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22260 |   (eval $ac_try) 2>&5 | 
 | 22261 |   ac_status=$? | 
 | 22262 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22263 |   (exit $ac_status); }; }; then | 
 | 22264 |   ac_cv_func_isinf_in_math_h=yes | 
 | 22265 | else | 
 | 22266 |   echo "$as_me: failed program was:" >&5 | 
 | 22267 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22268 |  | 
 | 22269 | ac_cv_func_isinf_in_math_h=no | 
 | 22270 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22272 |  ac_ext=c | 
 | 22273 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22277 |  | 
 | 22278 | fi | 
 | 22279 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
 | 22280 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 | 
 | 22281 |  if test "$ac_cv_func_isinf_in_math_h" = "yes" | 
 | 22282 |  then | 
 | 22283 |  | 
 | 22284 | cat >>confdefs.h <<\_ACEOF | 
 | 22285 | #define HAVE_ISINF_IN_MATH_H 1 | 
 | 22286 | _ACEOF | 
 | 22287 |  | 
 | 22288 |  fi | 
 | 22289 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
 | 22290 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 | 
 | 22291 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
 | 22292 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22293 | else | 
 | 22294 |   ac_ext=cc | 
 | 22295 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22296 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22297 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22298 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22299 |  | 
 | 22300 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22301 | /* confdefs.h.  */ | 
 | 22302 | _ACEOF | 
 | 22303 | cat confdefs.h >>conftest.$ac_ext | 
 | 22304 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22305 | /* end confdefs.h.  */ | 
 | 22306 | #include <cmath> | 
 | 22307 |                      int foo(float f) {return isinf(f);} | 
 | 22308 | _ACEOF | 
 | 22309 | rm -f conftest.$ac_objext | 
 | 22310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22311 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22312 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22313 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22314 |   rm -f conftest.er1 | 
 | 22315 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22316 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22317 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22318 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22319 | 			 || test ! -s conftest.err' | 
 | 22320 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22321 |   (eval $ac_try) 2>&5 | 
 | 22322 |   ac_status=$? | 
 | 22323 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22324 |   (exit $ac_status); }; } && | 
 | 22325 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22326 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22327 |   (eval $ac_try) 2>&5 | 
 | 22328 |   ac_status=$? | 
 | 22329 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22330 |   (exit $ac_status); }; }; then | 
 | 22331 |   ac_cv_func_isinf_in_cmath=yes | 
 | 22332 | else | 
 | 22333 |   echo "$as_me: failed program was:" >&5 | 
 | 22334 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22335 |  | 
 | 22336 | ac_cv_func_isinf_in_cmath=no | 
 | 22337 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22339 |  ac_ext=c | 
 | 22340 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22344 |  | 
 | 22345 | fi | 
 | 22346 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
 | 22347 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 | 
 | 22348 |  if test "$ac_cv_func_isinf_in_cmath" = "yes" | 
 | 22349 |  then | 
 | 22350 |  | 
 | 22351 | cat >>confdefs.h <<\_ACEOF | 
 | 22352 | #define HAVE_ISINF_IN_CMATH 1 | 
 | 22353 | _ACEOF | 
 | 22354 |  | 
 | 22355 |  fi | 
 | 22356 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
 | 22357 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 | 
 | 22358 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
 | 22359 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22360 | else | 
 | 22361 |   ac_ext=cc | 
 | 22362 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22363 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22364 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22365 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22366 |  | 
 | 22367 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22368 | /* confdefs.h.  */ | 
 | 22369 | _ACEOF | 
 | 22370 | cat confdefs.h >>conftest.$ac_ext | 
 | 22371 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22372 | /* end confdefs.h.  */ | 
 | 22373 | #include <cmath> | 
 | 22374 |                      using std::isinf; int foo(float f) {return isinf(f);} | 
 | 22375 | _ACEOF | 
 | 22376 | rm -f conftest.$ac_objext | 
 | 22377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22378 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22379 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22380 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22381 |   rm -f conftest.er1 | 
 | 22382 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22383 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22384 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22385 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22386 | 			 || test ! -s conftest.err' | 
 | 22387 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22388 |   (eval $ac_try) 2>&5 | 
 | 22389 |   ac_status=$? | 
 | 22390 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22391 |   (exit $ac_status); }; } && | 
 | 22392 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22393 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22394 |   (eval $ac_try) 2>&5 | 
 | 22395 |   ac_status=$? | 
 | 22396 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22397 |   (exit $ac_status); }; }; then | 
 | 22398 |   ac_cv_func_std_isinf_in_cmath=yes | 
 | 22399 | else | 
 | 22400 |   echo "$as_me: failed program was:" >&5 | 
 | 22401 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22402 |  | 
 | 22403 | ac_cv_func_std_isinf_in_cmath=no | 
 | 22404 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22406 |  ac_ext=c | 
 | 22407 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22411 |  | 
 | 22412 | fi | 
 | 22413 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
 | 22414 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 | 
 | 22415 |  if test "$ac_cv_func_std_isinf_in_cmath" = "yes" | 
 | 22416 |  then | 
 | 22417 |  | 
 | 22418 | cat >>confdefs.h <<\_ACEOF | 
 | 22419 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
 | 22420 | _ACEOF | 
 | 22421 |  | 
 | 22422 |  fi | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22423 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
 | 22424 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 | 
 | 22425 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
 | 22426 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22427 | else | 
 | 22428 |   ac_ext=cc | 
 | 22429 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22430 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22431 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22432 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22433 |  | 
 | 22434 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22435 | /* confdefs.h.  */ | 
 | 22436 | _ACEOF | 
 | 22437 | cat confdefs.h >>conftest.$ac_ext | 
 | 22438 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22439 | /* end confdefs.h.  */ | 
 | 22440 | #include <ieeefp.h> | 
 | 22441 |                      int foo(float f) {return finite(f);} | 
 | 22442 | _ACEOF | 
 | 22443 | rm -f conftest.$ac_objext | 
 | 22444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22445 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22446 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22447 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22448 |   rm -f conftest.er1 | 
 | 22449 |   cat conftest.err >&5 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22450 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22451 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22452 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22453 | 			 || test ! -s conftest.err' | 
 | 22454 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22455 |   (eval $ac_try) 2>&5 | 
 | 22456 |   ac_status=$? | 
 | 22457 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22458 |   (exit $ac_status); }; } && | 
 | 22459 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22460 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22461 |   (eval $ac_try) 2>&5 | 
 | 22462 |   ac_status=$? | 
 | 22463 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22464 |   (exit $ac_status); }; }; then | 
 | 22465 |   ac_cv_func_finite_in_ieeefp_h=yes | 
 | 22466 | else | 
 | 22467 |   echo "$as_me: failed program was:" >&5 | 
 | 22468 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22469 |  | 
 | 22470 | ac_cv_func_finite_in_ieeefp_h=no | 
 | 22471 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22473 |  ac_ext=c | 
 | 22474 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22478 |  | 
 | 22479 | fi | 
 | 22480 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
 | 22481 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 | 
 | 22482 |  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" | 
 | 22483 |  then | 
 | 22484 |  | 
 | 22485 | cat >>confdefs.h <<\_ACEOF | 
 | 22486 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
 | 22487 | _ACEOF | 
 | 22488 |  | 
 | 22489 |  fi | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22490 |  | 
 | 22491 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22492 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
 | 22493 | # for constant arguments.  Useless! | 
 | 22494 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
 | 22495 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | 
 | 22496 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
 | 22497 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22498 | else | 
 | 22499 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22500 | /* confdefs.h.  */ | 
 | 22501 | _ACEOF | 
 | 22502 | cat confdefs.h >>conftest.$ac_ext | 
 | 22503 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22504 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22505 | #include <alloca.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22506 | int | 
 | 22507 | main () | 
 | 22508 | { | 
 | 22509 | char *p = (char *) alloca (2 * sizeof (int)); | 
 | 22510 |   ; | 
 | 22511 |   return 0; | 
 | 22512 | } | 
 | 22513 | _ACEOF | 
 | 22514 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 22515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22516 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22517 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22518 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22519 |   rm -f conftest.er1 | 
 | 22520 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22521 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22522 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22523 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 22524 | 			 || test ! -s conftest.err' | 
 | 22525 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22526 |   (eval $ac_try) 2>&5 | 
 | 22527 |   ac_status=$? | 
 | 22528 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22529 |   (exit $ac_status); }; } && | 
 | 22530 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22531 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22532 |   (eval $ac_try) 2>&5 | 
 | 22533 |   ac_status=$? | 
 | 22534 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22535 |   (exit $ac_status); }; }; then | 
 | 22536 |   ac_cv_working_alloca_h=yes | 
 | 22537 | else | 
 | 22538 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22539 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22540 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22541 | ac_cv_working_alloca_h=no | 
 | 22542 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22543 | rm -f conftest.err conftest.$ac_objext \ | 
 | 22544 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22545 | fi | 
 | 22546 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
 | 22547 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | 
 | 22548 | if test $ac_cv_working_alloca_h = yes; then | 
 | 22549 |  | 
 | 22550 | cat >>confdefs.h <<\_ACEOF | 
 | 22551 | #define HAVE_ALLOCA_H 1 | 
 | 22552 | _ACEOF | 
 | 22553 |  | 
 | 22554 | fi | 
 | 22555 |  | 
 | 22556 | echo "$as_me:$LINENO: checking for alloca" >&5 | 
 | 22557 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | 
 | 22558 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
 | 22559 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22560 | else | 
 | 22561 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22562 | /* confdefs.h.  */ | 
 | 22563 | _ACEOF | 
 | 22564 | cat confdefs.h >>conftest.$ac_ext | 
 | 22565 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22566 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22567 | #ifdef __GNUC__ | 
 | 22568 | # define alloca __builtin_alloca | 
 | 22569 | #else | 
 | 22570 | # ifdef _MSC_VER | 
 | 22571 | #  include <malloc.h> | 
 | 22572 | #  define alloca _alloca | 
 | 22573 | # else | 
 | 22574 | #  if HAVE_ALLOCA_H | 
 | 22575 | #   include <alloca.h> | 
 | 22576 | #  else | 
 | 22577 | #   ifdef _AIX | 
 | 22578 |  #pragma alloca | 
 | 22579 | #   else | 
 | 22580 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
 | 22581 | char *alloca (); | 
 | 22582 | #    endif | 
 | 22583 | #   endif | 
 | 22584 | #  endif | 
 | 22585 | # endif | 
 | 22586 | #endif | 
 | 22587 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22588 | int | 
 | 22589 | main () | 
 | 22590 | { | 
 | 22591 | char *p = (char *) alloca (1); | 
 | 22592 |   ; | 
 | 22593 |   return 0; | 
 | 22594 | } | 
 | 22595 | _ACEOF | 
 | 22596 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 22597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22598 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22599 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22600 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22601 |   rm -f conftest.er1 | 
 | 22602 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22603 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22604 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22605 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 22606 | 			 || test ! -s conftest.err' | 
 | 22607 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22608 |   (eval $ac_try) 2>&5 | 
 | 22609 |   ac_status=$? | 
 | 22610 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22611 |   (exit $ac_status); }; } && | 
 | 22612 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22613 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22614 |   (eval $ac_try) 2>&5 | 
 | 22615 |   ac_status=$? | 
 | 22616 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22617 |   (exit $ac_status); }; }; then | 
 | 22618 |   ac_cv_func_alloca_works=yes | 
 | 22619 | else | 
 | 22620 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22621 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22622 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22623 | ac_cv_func_alloca_works=no | 
 | 22624 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22625 | rm -f conftest.err conftest.$ac_objext \ | 
 | 22626 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22627 | fi | 
 | 22628 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
 | 22629 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | 
 | 22630 |  | 
 | 22631 | if test $ac_cv_func_alloca_works = yes; then | 
 | 22632 |  | 
 | 22633 | cat >>confdefs.h <<\_ACEOF | 
 | 22634 | #define HAVE_ALLOCA 1 | 
 | 22635 | _ACEOF | 
 | 22636 |  | 
 | 22637 | else | 
 | 22638 |   # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
 | 22639 | # that cause trouble.  Some versions do not even contain alloca or | 
 | 22640 | # contain a buggy version.  If you still want to use their alloca, | 
 | 22641 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
 | 22642 |  | 
 | 22643 | ALLOCA=alloca.$ac_objext | 
 | 22644 |  | 
 | 22645 | cat >>confdefs.h <<\_ACEOF | 
 | 22646 | #define C_ALLOCA 1 | 
 | 22647 | _ACEOF | 
 | 22648 |  | 
 | 22649 |  | 
 | 22650 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
 | 22651 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | 
 | 22652 | if test "${ac_cv_os_cray+set}" = set; then | 
 | 22653 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22654 | else | 
 | 22655 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22656 | /* confdefs.h.  */ | 
 | 22657 | _ACEOF | 
 | 22658 | cat confdefs.h >>conftest.$ac_ext | 
 | 22659 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22660 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22661 | #if defined(CRAY) && ! defined(CRAY2) | 
 | 22662 | webecray | 
 | 22663 | #else | 
 | 22664 | wenotbecray | 
 | 22665 | #endif | 
 | 22666 |  | 
 | 22667 | _ACEOF | 
 | 22668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22669 |   $EGREP "webecray" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22670 |   ac_cv_os_cray=yes | 
 | 22671 | else | 
 | 22672 |   ac_cv_os_cray=no | 
 | 22673 | fi | 
 | 22674 | rm -f conftest* | 
 | 22675 |  | 
 | 22676 | fi | 
 | 22677 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
 | 22678 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | 
 | 22679 | if test $ac_cv_os_cray = yes; then | 
 | 22680 |   for ac_func in _getb67 GETB67 getb67; do | 
 | 22681 |     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 22682 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 22683 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 22684 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 22685 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22686 | else | 
 | 22687 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22688 | /* confdefs.h.  */ | 
 | 22689 | _ACEOF | 
 | 22690 | cat confdefs.h >>conftest.$ac_ext | 
 | 22691 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22692 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22693 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 22694 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 22695 | #define $ac_func innocuous_$ac_func | 
 | 22696 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22697 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22698 |     which can conflict with char $ac_func (); below. | 
 | 22699 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 22700 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22701 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22702 | #ifdef __STDC__ | 
 | 22703 | # include <limits.h> | 
 | 22704 | #else | 
 | 22705 | # include <assert.h> | 
 | 22706 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22707 |  | 
 | 22708 | #undef $ac_func | 
 | 22709 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22710 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 22711 | #ifdef __cplusplus | 
 | 22712 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22713 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22714 | #endif | 
 | 22715 | /* We use char because int might match the return type of a gcc2 | 
 | 22716 |    builtin and then its argument prototype would still apply.  */ | 
 | 22717 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22718 | /* The GNU C library defines this for functions which it implements | 
 | 22719 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 22720 |     something starting with __ and the normal name is an alias.  */ | 
 | 22721 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 22722 | choke me | 
 | 22723 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22724 | char (*f) () = $ac_func; | 
 | 22725 | #endif | 
 | 22726 | #ifdef __cplusplus | 
 | 22727 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22728 | #endif | 
 | 22729 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22730 | int | 
 | 22731 | main () | 
 | 22732 | { | 
 | 22733 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22734 |   ; | 
 | 22735 |   return 0; | 
 | 22736 | } | 
 | 22737 | _ACEOF | 
 | 22738 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 22739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22740 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22741 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22742 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22743 |   rm -f conftest.er1 | 
 | 22744 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22745 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22746 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22747 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 22748 | 			 || test ! -s conftest.err' | 
 | 22749 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22750 |   (eval $ac_try) 2>&5 | 
 | 22751 |   ac_status=$? | 
 | 22752 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22753 |   (exit $ac_status); }; } && | 
 | 22754 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22755 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22756 |   (eval $ac_try) 2>&5 | 
 | 22757 |   ac_status=$? | 
 | 22758 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22759 |   (exit $ac_status); }; }; then | 
 | 22760 |   eval "$as_ac_var=yes" | 
 | 22761 | else | 
 | 22762 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22763 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22764 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22765 | eval "$as_ac_var=no" | 
 | 22766 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22767 | rm -f conftest.err conftest.$ac_objext \ | 
 | 22768 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22769 | fi | 
 | 22770 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 22771 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 22772 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 22773 |  | 
 | 22774 | cat >>confdefs.h <<_ACEOF | 
 | 22775 | #define CRAY_STACKSEG_END $ac_func | 
 | 22776 | _ACEOF | 
 | 22777 |  | 
 | 22778 |     break | 
 | 22779 | fi | 
 | 22780 |  | 
 | 22781 |   done | 
 | 22782 | fi | 
 | 22783 |  | 
 | 22784 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
 | 22785 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | 
 | 22786 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
 | 22787 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22788 | else | 
 | 22789 |   if test "$cross_compiling" = yes; then | 
 | 22790 |   ac_cv_c_stack_direction=0 | 
 | 22791 | else | 
 | 22792 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22793 | /* confdefs.h.  */ | 
 | 22794 | _ACEOF | 
 | 22795 | cat confdefs.h >>conftest.$ac_ext | 
 | 22796 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22797 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22798 | int | 
 | 22799 | find_stack_direction () | 
 | 22800 | { | 
 | 22801 |   static char *addr = 0; | 
 | 22802 |   auto char dummy; | 
 | 22803 |   if (addr == 0) | 
 | 22804 |     { | 
 | 22805 |       addr = &dummy; | 
 | 22806 |       return find_stack_direction (); | 
 | 22807 |     } | 
 | 22808 |   else | 
 | 22809 |     return (&dummy > addr) ? 1 : -1; | 
 | 22810 | } | 
 | 22811 |  | 
 | 22812 | int | 
 | 22813 | main () | 
 | 22814 | { | 
 | 22815 |   exit (find_stack_direction () < 0); | 
 | 22816 | } | 
 | 22817 | _ACEOF | 
 | 22818 | rm -f conftest$ac_exeext | 
 | 22819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 22820 |   (eval $ac_link) 2>&5 | 
 | 22821 |   ac_status=$? | 
 | 22822 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22823 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 22824 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22825 |   (eval $ac_try) 2>&5 | 
 | 22826 |   ac_status=$? | 
 | 22827 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22828 |   (exit $ac_status); }; }; then | 
 | 22829 |   ac_cv_c_stack_direction=1 | 
 | 22830 | else | 
 | 22831 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 22832 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22833 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22834 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22835 | ( exit $ac_status ) | 
 | 22836 | ac_cv_c_stack_direction=-1 | 
 | 22837 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22838 | 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] | 22839 | fi | 
 | 22840 | fi | 
 | 22841 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
 | 22842 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | 
 | 22843 |  | 
 | 22844 | cat >>confdefs.h <<_ACEOF | 
 | 22845 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
 | 22846 | _ACEOF | 
 | 22847 |  | 
 | 22848 |  | 
 | 22849 | fi | 
 | 22850 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22851 |  | 
 | 22852 |  | 
 | 22853 | for ac_header in stdlib.h unistd.h | 
 | 22854 | do | 
 | 22855 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 22856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 22857 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 22858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 22859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 22860 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22861 | fi | 
 | 22862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 22863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 22864 | else | 
 | 22865 |   # Is the header compilable? | 
 | 22866 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 22867 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 22868 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22869 | /* confdefs.h.  */ | 
 | 22870 | _ACEOF | 
 | 22871 | cat confdefs.h >>conftest.$ac_ext | 
 | 22872 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22873 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22874 | $ac_includes_default | 
 | 22875 | #include <$ac_header> | 
 | 22876 | _ACEOF | 
 | 22877 | rm -f conftest.$ac_objext | 
 | 22878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22879 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22880 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22881 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22882 |   rm -f conftest.er1 | 
 | 22883 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22884 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22885 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22886 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 22887 | 			 || test ! -s conftest.err' | 
 | 22888 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22889 |   (eval $ac_try) 2>&5 | 
 | 22890 |   ac_status=$? | 
 | 22891 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22892 |   (exit $ac_status); }; } && | 
 | 22893 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22894 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22895 |   (eval $ac_try) 2>&5 | 
 | 22896 |   ac_status=$? | 
 | 22897 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22898 |   (exit $ac_status); }; }; then | 
 | 22899 |   ac_header_compiler=yes | 
 | 22900 | else | 
 | 22901 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22902 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22903 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22904 | ac_header_compiler=no | 
 | 22905 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22907 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 22908 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 22909 |  | 
 | 22910 | # Is the header present? | 
 | 22911 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 22912 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 22913 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22914 | /* confdefs.h.  */ | 
 | 22915 | _ACEOF | 
 | 22916 | cat confdefs.h >>conftest.$ac_ext | 
 | 22917 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22918 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22919 | #include <$ac_header> | 
 | 22920 | _ACEOF | 
 | 22921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 22922 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 22923 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22924 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22925 |   rm -f conftest.er1 | 
 | 22926 |   cat conftest.err >&5 | 
 | 22927 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22928 |   (exit $ac_status); } >/dev/null; then | 
 | 22929 |   if test -s conftest.err; then | 
 | 22930 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22931 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22932 |   else | 
 | 22933 |     ac_cpp_err= | 
 | 22934 |   fi | 
 | 22935 | else | 
 | 22936 |   ac_cpp_err=yes | 
 | 22937 | fi | 
 | 22938 | if test -z "$ac_cpp_err"; then | 
 | 22939 |   ac_header_preproc=yes | 
 | 22940 | else | 
 | 22941 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22942 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22943 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22944 |   ac_header_preproc=no | 
 | 22945 | fi | 
 | 22946 | rm -f conftest.err conftest.$ac_ext | 
 | 22947 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 22948 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 22949 |  | 
 | 22950 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22951 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 22952 |   yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22953 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 22954 | 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] | 22955 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 22956 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 22957 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22958 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22959 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22960 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 22961 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22962 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 22963 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 22964 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 22965 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 22966 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 22967 | 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] | 22968 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 22969 | 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] | 22970 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 22971 | 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] | 22972 |     ( | 
 | 22973 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22974 | ## ----------------------------------- ## | 
 | 22975 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 22976 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22977 | _ASBOX | 
 | 22978 |     ) | | 
 | 22979 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 22980 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22981 | esac | 
 | 22982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 22983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 22984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 22985 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22986 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22987 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22988 | fi | 
 | 22989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 22990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 22991 |  | 
 | 22992 | fi | 
 | 22993 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 22994 |   cat >>confdefs.h <<_ACEOF | 
 | 22995 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 22996 | _ACEOF | 
 | 22997 |  | 
 | 22998 | fi | 
 | 22999 |  | 
 | 23000 | done | 
 | 23001 |  | 
 | 23002 |  | 
 | 23003 | for ac_func in getpagesize | 
 | 23004 | do | 
 | 23005 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 23006 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 23007 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 23008 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 23009 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23010 | else | 
 | 23011 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23012 | /* confdefs.h.  */ | 
 | 23013 | _ACEOF | 
 | 23014 | cat confdefs.h >>conftest.$ac_ext | 
 | 23015 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23016 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23017 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 23018 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23019 | #define $ac_func innocuous_$ac_func | 
 | 23020 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23021 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23022 |     which can conflict with char $ac_func (); below. | 
 | 23023 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23024 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23025 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23026 | #ifdef __STDC__ | 
 | 23027 | # include <limits.h> | 
 | 23028 | #else | 
 | 23029 | # include <assert.h> | 
 | 23030 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23031 |  | 
 | 23032 | #undef $ac_func | 
 | 23033 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23034 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23035 | #ifdef __cplusplus | 
 | 23036 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23037 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23038 | #endif | 
 | 23039 | /* We use char because int might match the return type of a gcc2 | 
 | 23040 |    builtin and then its argument prototype would still apply.  */ | 
 | 23041 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23042 | /* The GNU C library defines this for functions which it implements | 
 | 23043 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23044 |     something starting with __ and the normal name is an alias.  */ | 
 | 23045 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 23046 | choke me | 
 | 23047 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23048 | char (*f) () = $ac_func; | 
 | 23049 | #endif | 
 | 23050 | #ifdef __cplusplus | 
 | 23051 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23052 | #endif | 
 | 23053 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23054 | int | 
 | 23055 | main () | 
 | 23056 | { | 
 | 23057 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23058 |   ; | 
 | 23059 |   return 0; | 
 | 23060 | } | 
 | 23061 | _ACEOF | 
 | 23062 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23064 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23065 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23066 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23067 |   rm -f conftest.er1 | 
 | 23068 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23069 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23070 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23071 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23072 | 			 || test ! -s conftest.err' | 
 | 23073 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23074 |   (eval $ac_try) 2>&5 | 
 | 23075 |   ac_status=$? | 
 | 23076 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23077 |   (exit $ac_status); }; } && | 
 | 23078 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23079 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23080 |   (eval $ac_try) 2>&5 | 
 | 23081 |   ac_status=$? | 
 | 23082 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23083 |   (exit $ac_status); }; }; then | 
 | 23084 |   eval "$as_ac_var=yes" | 
 | 23085 | else | 
 | 23086 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23087 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23088 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23089 | eval "$as_ac_var=no" | 
 | 23090 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23091 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23092 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23093 | fi | 
 | 23094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 23095 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 23096 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 23097 |   cat >>confdefs.h <<_ACEOF | 
 | 23098 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 23099 | _ACEOF | 
 | 23100 |  | 
 | 23101 | fi | 
 | 23102 | done | 
 | 23103 |  | 
 | 23104 | echo "$as_me:$LINENO: checking for working mmap" >&5 | 
 | 23105 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | 
 | 23106 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
 | 23107 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23108 | else | 
 | 23109 |   if test "$cross_compiling" = yes; then | 
 | 23110 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 23111 | else | 
 | 23112 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23113 | /* confdefs.h.  */ | 
 | 23114 | _ACEOF | 
 | 23115 | cat confdefs.h >>conftest.$ac_ext | 
 | 23116 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23117 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23118 | $ac_includes_default | 
 | 23119 | /* malloc might have been renamed as rpl_malloc. */ | 
 | 23120 | #undef malloc | 
 | 23121 |  | 
 | 23122 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
 | 23123 |    Here is a matrix of mmap possibilities: | 
 | 23124 | 	mmap private not fixed | 
 | 23125 | 	mmap private fixed at somewhere currently unmapped | 
 | 23126 | 	mmap private fixed at somewhere already mapped | 
 | 23127 | 	mmap shared not fixed | 
 | 23128 | 	mmap shared fixed at somewhere currently unmapped | 
 | 23129 | 	mmap shared fixed at somewhere already mapped | 
 | 23130 |    For private mappings, we should verify that changes cannot be read() | 
 | 23131 |    back from the file, nor mmap's back from the file at a different | 
 | 23132 |    address.  (There have been systems where private was not correctly | 
 | 23133 |    implemented like the infamous i386 svr4.0, and systems where the | 
 | 23134 |    VM page cache was not coherent with the file system buffer cache | 
 | 23135 |    like early versions of FreeBSD and possibly contemporary NetBSD.) | 
 | 23136 |    For shared mappings, we should conversely verify that changes get | 
 | 23137 |    propagated back to all the places they're supposed to be. | 
 | 23138 |  | 
 | 23139 |    Grep wants private fixed already mapped. | 
 | 23140 |    The main things grep needs to know about mmap are: | 
 | 23141 |    * does it exist and is it safe to write into the mmap'd area | 
 | 23142 |    * how to use it (BSD variants)  */ | 
 | 23143 |  | 
 | 23144 | #include <fcntl.h> | 
 | 23145 | #include <sys/mman.h> | 
 | 23146 |  | 
 | 23147 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
 | 23148 | char *malloc (); | 
 | 23149 | #endif | 
 | 23150 |  | 
 | 23151 | /* This mess was copied from the GNU getpagesize.h.  */ | 
 | 23152 | #if !HAVE_GETPAGESIZE | 
 | 23153 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
 | 23154 | # if !HAVE_SYS_PARAM_H | 
 | 23155 | #  define HAVE_SYS_PARAM_H 1 | 
 | 23156 | # endif | 
 | 23157 |  | 
 | 23158 | # ifdef _SC_PAGESIZE | 
 | 23159 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 23160 | # else /* no _SC_PAGESIZE */ | 
 | 23161 | #  if HAVE_SYS_PARAM_H | 
 | 23162 | #   include <sys/param.h> | 
 | 23163 | #   ifdef EXEC_PAGESIZE | 
 | 23164 | #    define getpagesize() EXEC_PAGESIZE | 
 | 23165 | #   else /* no EXEC_PAGESIZE */ | 
 | 23166 | #    ifdef NBPG | 
 | 23167 | #     define getpagesize() NBPG * CLSIZE | 
 | 23168 | #     ifndef CLSIZE | 
 | 23169 | #      define CLSIZE 1 | 
 | 23170 | #     endif /* no CLSIZE */ | 
 | 23171 | #    else /* no NBPG */ | 
 | 23172 | #     ifdef NBPC | 
 | 23173 | #      define getpagesize() NBPC | 
 | 23174 | #     else /* no NBPC */ | 
 | 23175 | #      ifdef PAGESIZE | 
 | 23176 | #       define getpagesize() PAGESIZE | 
 | 23177 | #      endif /* PAGESIZE */ | 
 | 23178 | #     endif /* no NBPC */ | 
 | 23179 | #    endif /* no NBPG */ | 
 | 23180 | #   endif /* no EXEC_PAGESIZE */ | 
 | 23181 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 23182 | #   define getpagesize() 8192	/* punt totally */ | 
 | 23183 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 23184 | # endif /* no _SC_PAGESIZE */ | 
 | 23185 |  | 
 | 23186 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 23187 |  | 
 | 23188 | int | 
 | 23189 | main () | 
 | 23190 | { | 
 | 23191 |   char *data, *data2, *data3; | 
 | 23192 |   int i, pagesize; | 
 | 23193 |   int fd; | 
 | 23194 |  | 
 | 23195 |   pagesize = getpagesize (); | 
 | 23196 |  | 
 | 23197 |   /* First, make a file with some known garbage in it. */ | 
 | 23198 |   data = (char *) malloc (pagesize); | 
 | 23199 |   if (!data) | 
 | 23200 |     exit (1); | 
 | 23201 |   for (i = 0; i < pagesize; ++i) | 
 | 23202 |     *(data + i) = rand (); | 
 | 23203 |   umask (0); | 
 | 23204 |   fd = creat ("conftest.mmap", 0600); | 
 | 23205 |   if (fd < 0) | 
 | 23206 |     exit (1); | 
 | 23207 |   if (write (fd, data, pagesize) != pagesize) | 
 | 23208 |     exit (1); | 
 | 23209 |   close (fd); | 
 | 23210 |  | 
 | 23211 |   /* Next, try to mmap the file at a fixed address which already has | 
 | 23212 |      something else allocated at it.  If we can, also make sure that | 
 | 23213 |      we see the same garbage.  */ | 
 | 23214 |   fd = open ("conftest.mmap", O_RDWR); | 
 | 23215 |   if (fd < 0) | 
 | 23216 |     exit (1); | 
 | 23217 |   data2 = (char *) malloc (2 * pagesize); | 
 | 23218 |   if (!data2) | 
 | 23219 |     exit (1); | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23220 |   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23221 |   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23222 | 		     MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23223 |     exit (1); | 
 | 23224 |   for (i = 0; i < pagesize; ++i) | 
 | 23225 |     if (*(data + i) != *(data2 + i)) | 
 | 23226 |       exit (1); | 
 | 23227 |  | 
 | 23228 |   /* Finally, make sure that changes to the mapped area do not | 
 | 23229 |      percolate back to the file as seen by read().  (This is a bug on | 
 | 23230 |      some variants of i386 svr4.0.)  */ | 
 | 23231 |   for (i = 0; i < pagesize; ++i) | 
 | 23232 |     *(data2 + i) = *(data2 + i) + 1; | 
 | 23233 |   data3 = (char *) malloc (pagesize); | 
 | 23234 |   if (!data3) | 
 | 23235 |     exit (1); | 
 | 23236 |   if (read (fd, data3, pagesize) != pagesize) | 
 | 23237 |     exit (1); | 
 | 23238 |   for (i = 0; i < pagesize; ++i) | 
 | 23239 |     if (*(data + i) != *(data3 + i)) | 
 | 23240 |       exit (1); | 
 | 23241 |   close (fd); | 
 | 23242 |   exit (0); | 
 | 23243 | } | 
 | 23244 | _ACEOF | 
 | 23245 | rm -f conftest$ac_exeext | 
 | 23246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23247 |   (eval $ac_link) 2>&5 | 
 | 23248 |   ac_status=$? | 
 | 23249 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23250 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 23251 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23252 |   (eval $ac_try) 2>&5 | 
 | 23253 |   ac_status=$? | 
 | 23254 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23255 |   (exit $ac_status); }; }; then | 
 | 23256 |   ac_cv_func_mmap_fixed_mapped=yes | 
 | 23257 | else | 
 | 23258 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 23259 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23260 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23261 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23262 | ( exit $ac_status ) | 
 | 23263 | ac_cv_func_mmap_fixed_mapped=no | 
 | 23264 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23265 | 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] | 23266 | fi | 
 | 23267 | fi | 
 | 23268 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
 | 23269 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | 
 | 23270 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
 | 23271 |  | 
 | 23272 | cat >>confdefs.h <<\_ACEOF | 
 | 23273 | #define HAVE_MMAP 1 | 
 | 23274 | _ACEOF | 
 | 23275 |  | 
 | 23276 | fi | 
 | 23277 | rm -f conftest.mmap | 
 | 23278 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23279 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
 | 23280 | then | 
| John Criswell | f3ecf3a | 2004-05-27 00:57:50 +0000 | [diff] [blame] | 23281 | 	{ echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 | 
 | 23282 | echo "$as_me: WARNING: mmap() required but not found" >&2;} | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23283 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23284 | echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
 | 23285 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 | 
 | 23286 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
 | 23287 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23288 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23289 |    ac_ext=c | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23290 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23294 |  | 
 | 23295 |   if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 23296 |   ac_cv_func_mmap_file=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23297 | else | 
 | 23298 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23299 |  | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23300 |     /* confdefs.h.  */ | 
 | 23301 | _ACEOF | 
 | 23302 | cat confdefs.h >>conftest.$ac_ext | 
 | 23303 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23304 | /* end confdefs.h.  */ | 
 | 23305 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23306 | #include <sys/types.h> | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23307 | #include <sys/mman.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23308 | #include <fcntl.h> | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23309 |  | 
 | 23310 | int | 
 | 23311 | main () | 
 | 23312 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23313 |  | 
 | 23314 |   int fd; | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23315 |   fd = creat ("foo",0777); | 
 | 23316 |   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
 | 23317 |   unlink ("foo"); | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 23318 |   return (fd != (int) MAP_FAILED); | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23319 |   ; | 
 | 23320 |   return 0; | 
 | 23321 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23322 | _ACEOF | 
 | 23323 | rm -f conftest$ac_exeext | 
 | 23324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23325 |   (eval $ac_link) 2>&5 | 
 | 23326 |   ac_status=$? | 
 | 23327 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23328 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 23329 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23330 |   (eval $ac_try) 2>&5 | 
 | 23331 |   ac_status=$? | 
 | 23332 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23333 |   (exit $ac_status); }; }; then | 
 | 23334 |   ac_cv_func_mmap_file=yes | 
 | 23335 | else | 
 | 23336 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 23337 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23338 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23339 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23340 | ( exit $ac_status ) | 
 | 23341 | ac_cv_func_mmap_file=no | 
 | 23342 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23343 | 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] | 23344 | fi | 
 | 23345 |   ac_ext=c | 
 | 23346 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23350 |  | 
 | 23351 |  | 
 | 23352 | fi | 
 | 23353 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
 | 23354 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 | 
 | 23355 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23356 |  | 
 | 23357 | cat >>confdefs.h <<\_ACEOF | 
 | 23358 | #define HAVE_MMAP_FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23359 | _ACEOF | 
 | 23360 |  | 
 | 23361 |    MMAP_FILE=yes | 
 | 23362 |  | 
 | 23363 | fi | 
 | 23364 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23365 | if test "$ac_cv_func_mmap_file" = "no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23366 | then | 
| John Criswell | f3ecf3a | 2004-05-27 00:57:50 +0000 | [diff] [blame] | 23367 | 	{ echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
 | 23368 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23369 | fi | 
 | 23370 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
 | 23371 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 | 
 | 23372 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
 | 23373 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23374 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23375 |    ac_ext=c | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23376 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23380 |  | 
 | 23381 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23382 | /* confdefs.h.  */ | 
 | 23383 | _ACEOF | 
 | 23384 | cat confdefs.h >>conftest.$ac_ext | 
 | 23385 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23386 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23387 | #include <sys/mman.h> | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23388 | #include <unistd.h> | 
 | 23389 | #include <fcntl.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23390 | int | 
 | 23391 | main () | 
 | 23392 | { | 
 | 23393 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
 | 23394 |   ; | 
 | 23395 |   return 0; | 
 | 23396 | } | 
 | 23397 | _ACEOF | 
 | 23398 | rm -f conftest.$ac_objext | 
 | 23399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23400 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23401 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23402 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23403 |   rm -f conftest.er1 | 
 | 23404 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23405 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23406 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23407 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23408 | 			 || test ! -s conftest.err' | 
 | 23409 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23410 |   (eval $ac_try) 2>&5 | 
 | 23411 |   ac_status=$? | 
 | 23412 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23413 |   (exit $ac_status); }; } && | 
 | 23414 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23415 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23416 |   (eval $ac_try) 2>&5 | 
 | 23417 |   ac_status=$? | 
 | 23418 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23419 |   (exit $ac_status); }; }; then | 
 | 23420 |   ac_cv_header_mmap_anon=yes | 
 | 23421 | else | 
 | 23422 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23423 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23424 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23425 | ac_cv_header_mmap_anon=no | 
 | 23426 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23428 |   ac_ext=c | 
 | 23429 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23433 |  | 
 | 23434 |  | 
 | 23435 | fi | 
 | 23436 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
 | 23437 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 | 
 | 23438 | if test "$ac_cv_header_mmap_anon" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23439 |  | 
 | 23440 | cat >>confdefs.h <<\_ACEOF | 
 | 23441 | #define HAVE_MMAP_ANONYMOUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23442 | _ACEOF | 
 | 23443 |  | 
 | 23444 | fi | 
 | 23445 |  | 
 | 23446 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
 | 23447 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | 
 | 23448 | if test "${ac_cv_type_signal+set}" = set; then | 
 | 23449 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23450 | else | 
 | 23451 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23452 | /* confdefs.h.  */ | 
 | 23453 | _ACEOF | 
 | 23454 | cat confdefs.h >>conftest.$ac_ext | 
 | 23455 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23456 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23457 | #include <sys/types.h> | 
 | 23458 | #include <signal.h> | 
 | 23459 | #ifdef signal | 
 | 23460 | # undef signal | 
 | 23461 | #endif | 
 | 23462 | #ifdef __cplusplus | 
 | 23463 | extern "C" void (*signal (int, void (*)(int)))(int); | 
 | 23464 | #else | 
 | 23465 | void (*signal ()) (); | 
 | 23466 | #endif | 
 | 23467 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23468 | int | 
 | 23469 | main () | 
 | 23470 | { | 
 | 23471 | int i; | 
 | 23472 |   ; | 
 | 23473 |   return 0; | 
 | 23474 | } | 
 | 23475 | _ACEOF | 
 | 23476 | rm -f conftest.$ac_objext | 
 | 23477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23478 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23479 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23480 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23481 |   rm -f conftest.er1 | 
 | 23482 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23483 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23484 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23485 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23486 | 			 || test ! -s conftest.err' | 
 | 23487 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23488 |   (eval $ac_try) 2>&5 | 
 | 23489 |   ac_status=$? | 
 | 23490 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23491 |   (exit $ac_status); }; } && | 
 | 23492 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23493 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23494 |   (eval $ac_try) 2>&5 | 
 | 23495 |   ac_status=$? | 
 | 23496 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23497 |   (exit $ac_status); }; }; then | 
 | 23498 |   ac_cv_type_signal=void | 
 | 23499 | else | 
 | 23500 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23501 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23502 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23503 | ac_cv_type_signal=int | 
 | 23504 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23506 | fi | 
 | 23507 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
 | 23508 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | 
 | 23509 |  | 
 | 23510 | cat >>confdefs.h <<_ACEOF | 
 | 23511 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 23512 | _ACEOF | 
 | 23513 |  | 
 | 23514 |  | 
 | 23515 |  | 
 | 23516 |  | 
 | 23517 |  | 
 | 23518 |  | 
 | 23519 |  | 
| Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame] | 23520 |  | 
| Brian Gaeke | 9a08b5e | 2004-04-02 21:26:02 +0000 | [diff] [blame] | 23521 |  | 
| John Criswell | d662156 | 2004-06-07 14:26:24 +0000 | [diff] [blame] | 23522 |  | 
 | 23523 |  | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 23524 | for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23525 | do | 
 | 23526 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 23527 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 23528 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 23529 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 23530 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23531 | else | 
 | 23532 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23533 | /* confdefs.h.  */ | 
 | 23534 | _ACEOF | 
 | 23535 | cat confdefs.h >>conftest.$ac_ext | 
 | 23536 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23537 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23538 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 23539 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23540 | #define $ac_func innocuous_$ac_func | 
 | 23541 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23542 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23543 |     which can conflict with char $ac_func (); below. | 
 | 23544 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23545 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23546 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23547 | #ifdef __STDC__ | 
 | 23548 | # include <limits.h> | 
 | 23549 | #else | 
 | 23550 | # include <assert.h> | 
 | 23551 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23552 |  | 
 | 23553 | #undef $ac_func | 
 | 23554 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23555 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23556 | #ifdef __cplusplus | 
 | 23557 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23558 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23559 | #endif | 
 | 23560 | /* We use char because int might match the return type of a gcc2 | 
 | 23561 |    builtin and then its argument prototype would still apply.  */ | 
 | 23562 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23563 | /* The GNU C library defines this for functions which it implements | 
 | 23564 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23565 |     something starting with __ and the normal name is an alias.  */ | 
 | 23566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 23567 | choke me | 
 | 23568 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23569 | char (*f) () = $ac_func; | 
 | 23570 | #endif | 
 | 23571 | #ifdef __cplusplus | 
 | 23572 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23573 | #endif | 
 | 23574 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23575 | int | 
 | 23576 | main () | 
 | 23577 | { | 
 | 23578 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23579 |   ; | 
 | 23580 |   return 0; | 
 | 23581 | } | 
 | 23582 | _ACEOF | 
 | 23583 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23585 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23586 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23587 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23588 |   rm -f conftest.er1 | 
 | 23589 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23590 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23591 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23592 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23593 | 			 || test ! -s conftest.err' | 
 | 23594 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23595 |   (eval $ac_try) 2>&5 | 
 | 23596 |   ac_status=$? | 
 | 23597 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23598 |   (exit $ac_status); }; } && | 
 | 23599 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23600 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23601 |   (eval $ac_try) 2>&5 | 
 | 23602 |   ac_status=$? | 
 | 23603 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23604 |   (exit $ac_status); }; }; then | 
 | 23605 |   eval "$as_ac_var=yes" | 
 | 23606 | else | 
 | 23607 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23608 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23609 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23610 | eval "$as_ac_var=no" | 
 | 23611 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23612 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23613 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23614 | fi | 
 | 23615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 23616 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 23617 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 23618 |   cat >>confdefs.h <<_ACEOF | 
 | 23619 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 23620 | _ACEOF | 
 | 23621 |  | 
 | 23622 | fi | 
 | 23623 | done | 
 | 23624 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23625 | echo "$as_me:$LINENO: checking for mprotect" >&5 | 
 | 23626 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 | 
 | 23627 | if test "${ac_cv_func_mprotect+set}" = set; then | 
 | 23628 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23629 | else | 
 | 23630 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23631 | /* confdefs.h.  */ | 
 | 23632 | _ACEOF | 
 | 23633 | cat confdefs.h >>conftest.$ac_ext | 
 | 23634 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23635 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23636 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. | 
 | 23637 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23638 | #define mprotect innocuous_mprotect | 
 | 23639 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23640 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23641 |     which can conflict with char mprotect (); below. | 
 | 23642 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23643 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23644 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23645 | #ifdef __STDC__ | 
 | 23646 | # include <limits.h> | 
 | 23647 | #else | 
 | 23648 | # include <assert.h> | 
 | 23649 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23650 |  | 
 | 23651 | #undef mprotect | 
 | 23652 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23653 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23654 | #ifdef __cplusplus | 
 | 23655 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23656 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23657 | #endif | 
 | 23658 | /* We use char because int might match the return type of a gcc2 | 
 | 23659 |    builtin and then its argument prototype would still apply.  */ | 
 | 23660 | char mprotect (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23661 | /* The GNU C library defines this for functions which it implements | 
 | 23662 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23663 |     something starting with __ and the normal name is an alias.  */ | 
 | 23664 | #if defined (__stub_mprotect) || defined (__stub___mprotect) | 
 | 23665 | choke me | 
 | 23666 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23667 | char (*f) () = mprotect; | 
 | 23668 | #endif | 
 | 23669 | #ifdef __cplusplus | 
 | 23670 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23671 | #endif | 
 | 23672 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23673 | int | 
 | 23674 | main () | 
 | 23675 | { | 
 | 23676 | return f != mprotect; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23677 |   ; | 
 | 23678 |   return 0; | 
 | 23679 | } | 
 | 23680 | _ACEOF | 
 | 23681 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23683 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23684 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23685 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23686 |   rm -f conftest.er1 | 
 | 23687 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23688 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23689 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23690 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23691 | 			 || test ! -s conftest.err' | 
 | 23692 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23693 |   (eval $ac_try) 2>&5 | 
 | 23694 |   ac_status=$? | 
 | 23695 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23696 |   (exit $ac_status); }; } && | 
 | 23697 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23698 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23699 |   (eval $ac_try) 2>&5 | 
 | 23700 |   ac_status=$? | 
 | 23701 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23702 |   (exit $ac_status); }; }; then | 
 | 23703 |   ac_cv_func_mprotect=yes | 
 | 23704 | else | 
 | 23705 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23706 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23707 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23708 | ac_cv_func_mprotect=no | 
 | 23709 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23710 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23711 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23712 | fi | 
 | 23713 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 | 
 | 23714 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 | 
 | 23715 | if test $ac_cv_func_mprotect = yes; then | 
 | 23716 |   : | 
 | 23717 | else | 
 | 23718 |   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 | 
 | 23719 | echo "$as_me: error: Function mprotect() required but not found" >&2;} | 
 | 23720 |    { (exit 1); exit 1; }; } | 
 | 23721 | fi | 
 | 23722 |  | 
 | 23723 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23724 |  | 
| Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 23725 |   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
 | 23726 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23727 |   ac_ext=c | 
 | 23728 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23732 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23733 |   oldcflags="$CFLAGS" | 
 | 23734 |   CFLAGS="$CFLAGS -Wl,-R." | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23735 |   cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23736 | /* confdefs.h.  */ | 
 | 23737 | _ACEOF | 
 | 23738 | cat confdefs.h >>conftest.$ac_ext | 
 | 23739 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23740 | /* end confdefs.h.  */ | 
 | 23741 |  | 
 | 23742 | int | 
 | 23743 | main () | 
 | 23744 | { | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23745 | int main() { return 0; } | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23746 |   ; | 
 | 23747 |   return 0; | 
 | 23748 | } | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23749 | _ACEOF | 
 | 23750 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23752 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23753 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23754 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23755 |   rm -f conftest.er1 | 
 | 23756 |   cat conftest.err >&5 | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23757 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23758 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23759 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23760 | 			 || test ! -s conftest.err' | 
 | 23761 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23762 |   (eval $ac_try) 2>&5 | 
 | 23763 |   ac_status=$? | 
 | 23764 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23765 |   (exit $ac_status); }; } && | 
 | 23766 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23767 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23768 |   (eval $ac_try) 2>&5 | 
 | 23769 |   ac_status=$? | 
 | 23770 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23771 |   (exit $ac_status); }; }; then | 
 | 23772 |   ac_cv_link_use_r=yes | 
 | 23773 | else | 
 | 23774 |   echo "$as_me: failed program was:" >&5 | 
 | 23775 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23776 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23777 | ac_cv_link_use_r=no | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23778 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23779 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23780 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23781 |   CFLAGS="$oldcflags" | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23782 |   ac_ext=c | 
 | 23783 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23787 |  | 
| Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 23788 |   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5 | 
 | 23789 | echo "${ECHO_T}$ac_cv_link_use_r" >&6 | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23790 |   if test "$ac_cv_link_use_r" = yes | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23791 |   then | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 23792 |  | 
 | 23793 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 23794 | #define HAVE_LINK_R 1 | 
 | 23795 | _ACEOF | 
 | 23796 |  | 
 | 23797 |   fi | 
 | 23798 |  | 
 | 23799 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23800 | # Check whether --enable-optimized or --disable-optimized was given. | 
 | 23801 | if test "${enable_optimized+set}" = set; then | 
 | 23802 |   enableval="$enable_optimized" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23803 |  | 
 | 23804 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23805 |   enableval=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23806 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23807 | if test ${enableval} = "no" | 
 | 23808 | then | 
 | 23809 | 	ENABLE_OPTIMIZED= | 
 | 23810 |  | 
 | 23811 | else | 
 | 23812 | 	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
 | 23813 |  | 
 | 23814 | fi | 
 | 23815 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23816 | # Check whether --enable-jit or --disable-jit was given. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23817 | if test "${enable_jit+set}" = set; then | 
 | 23818 |   enableval="$enable_jit" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23819 |  | 
 | 23820 | else | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 23821 |   enableval=default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23822 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23823 | if test ${enableval} = "no" | 
 | 23824 | then | 
 | 23825 | 	JIT= | 
 | 23826 |  | 
 | 23827 | else | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 23828 | 	case $target in | 
 | 23829 | 		*i*86*) | 
 | 23830 | 			JIT=TARGET_HAS_JIT=1 | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23831 |  | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 23832 | 			;; | 
 | 23833 | 		*sparc*) | 
 | 23834 | 			JIT=TARGET_HAS_JIT=1 | 
 | 23835 |  | 
 | 23836 | 			;; | 
 | 23837 | 		*) | 
 | 23838 | 			JIT= | 
 | 23839 |  | 
 | 23840 | 			;; | 
 | 23841 | 	esac | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 23842 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23843 |  | 
 | 23844 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23845 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. | 
 | 23846 | if test "${with_llvmgccdir+set}" = set; then | 
 | 23847 |   withval="$with_llvmgccdir" | 
 | 23848 |   LLVMGCCDIR=$withval | 
 | 23849 |  | 
 | 23850 | fi; | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23851 | echo "$as_me:$LINENO: checking for llvm-gcc" >&5 | 
 | 23852 | echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 | 
 | 23853 | LLVM_GCC_CHECK=no | 
 | 23854 | if test -d "$LLVMGCCDIR" | 
 | 23855 | then | 
 | 23856 | 	if test -x "$LLVMGCCDIR/bin/gcc" | 
 | 23857 | 	then | 
 | 23858 | 		LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" | 
 | 23859 | 	fi | 
 | 23860 | fi | 
 | 23861 | llvmgccwarn=no | 
 | 23862 | echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 | 
 | 23863 | echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 | 
 | 23864 | if test "$LLVM_GCC_CHECK" = "no" | 
 | 23865 | then | 
 | 23866 |     llvmgccwarn=yes | 
 | 23867 | fi | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23868 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
 | 23869 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 | 
 | 23870 | LLVM_GCC_SANE=no | 
 | 23871 | if test -x "$LLVM_GCC_CHECK" | 
 | 23872 | then | 
 | 23873 | 	cp /dev/null conftest.c | 
 | 23874 |     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 | 
 | 23875 | 	if test $? -eq 0 | 
 | 23876 | 	then | 
 | 23877 | 		LLVM_GCC_SANE=yes | 
 | 23878 | 	fi | 
 | 23879 | 	rm conftest.c | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 23880 | 	llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23881 | 	LLVMCC1=$llvmcc1path | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 23882 |  | 
 | 23883 | 	llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23884 | 	LLVMCC1PLUS=$llvmcc1pluspath | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 23885 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23886 | fi | 
 | 23887 | echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 | 
 | 23888 | echo "${ECHO_T}$LLVM_GCC_SANE" >&6 | 
 | 23889 | if test "$LLVM_GCC_SANE" = "no" | 
 | 23890 | then | 
 | 23891 | 	llvmgccwarn=yes | 
 | 23892 | fi | 
 | 23893 |  | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23894 | echo "$as_me:$LINENO: checking for shared library suffix" >&5 | 
 | 23895 | echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 | 
| Reid Spencer | 2e89ae2 | 2004-09-20 03:06:28 +0000 | [diff] [blame] | 23896 | eval "SHLIBEXT=$shrext_cmds" | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 23897 | echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 | 
 | 23898 | echo "${ECHO_T}$SHLIBEXT" >&6 | 
 | 23899 | SHLIBEXT=$SHLIBEXT | 
 | 23900 |  | 
 | 23901 |  | 
 | 23902 | cat >>confdefs.h <<_ACEOF | 
 | 23903 | #define SHLIBEXT "$SHLIBEXT" | 
 | 23904 | _ACEOF | 
 | 23905 |  | 
 | 23906 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 23907 | # Translate the various configuration directories and other basic | 
 | 23908 | # information into substitutions that will end up in config.h.in so | 
 | 23909 | # that these configured values can be hard-wired into a program. | 
 | 23910 | eval LLVM_PREFIX="${prefix}"; | 
 | 23911 | eval LLVM_BINDIR="${prefix}/bin"; | 
 | 23912 | eval LLVM_LIBDIR="${prefix}/lib"; | 
 | 23913 | eval LLVM_DATADIR="${prefix}/data"; | 
 | 23914 | eval LLVM_DOCSDIR="${prefix}/docs"; | 
 | 23915 | eval LLVM_ETCDIR="${prefix}/etc"; | 
 | 23916 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
 | 23917 | eval LLVM_INFODIR="${prefix}/info"; | 
 | 23918 | eval LLVM_MANDIR="${prefix}/man"; | 
 | 23919 | LLVM_CONFIGTIME=`date` | 
 | 23920 |  | 
 | 23921 |  | 
 | 23922 |  | 
 | 23923 |  | 
 | 23924 |  | 
 | 23925 |  | 
 | 23926 |  | 
 | 23927 |  | 
 | 23928 |  | 
 | 23929 |  | 
 | 23930 |  | 
 | 23931 | cat >>confdefs.h <<_ACEOF | 
 | 23932 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
 | 23933 | _ACEOF | 
 | 23934 |  | 
 | 23935 |  | 
 | 23936 | cat >>confdefs.h <<_ACEOF | 
 | 23937 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
 | 23938 | _ACEOF | 
 | 23939 |  | 
 | 23940 |  | 
 | 23941 | cat >>confdefs.h <<_ACEOF | 
 | 23942 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
 | 23943 | _ACEOF | 
 | 23944 |  | 
 | 23945 |  | 
 | 23946 | cat >>confdefs.h <<_ACEOF | 
 | 23947 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
 | 23948 | _ACEOF | 
 | 23949 |  | 
 | 23950 |  | 
 | 23951 | cat >>confdefs.h <<_ACEOF | 
 | 23952 | #define LLVM_DATADIR "$LLVM_DOCSDIR" | 
 | 23953 | _ACEOF | 
 | 23954 |  | 
 | 23955 |  | 
 | 23956 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 23957 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 23958 | _ACEOF | 
 | 23959 |  | 
 | 23960 |  | 
 | 23961 | cat >>confdefs.h <<_ACEOF | 
 | 23962 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
 | 23963 | _ACEOF | 
 | 23964 |  | 
 | 23965 |  | 
 | 23966 | cat >>confdefs.h <<_ACEOF | 
 | 23967 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
 | 23968 | _ACEOF | 
 | 23969 |  | 
 | 23970 |  | 
 | 23971 | cat >>confdefs.h <<_ACEOF | 
 | 23972 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
 | 23973 | _ACEOF | 
 | 23974 |  | 
 | 23975 |  | 
 | 23976 | cat >>confdefs.h <<_ACEOF | 
 | 23977 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
 | 23978 | _ACEOF | 
 | 23979 |  | 
 | 23980 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23981 | cat >confcache <<\_ACEOF | 
 | 23982 | # This file is a shell script that caches the results of configure | 
 | 23983 | # tests run on this system so they can be shared between configure | 
 | 23984 | # scripts and configure runs, see configure's option --config-cache. | 
 | 23985 | # It is not useful on other systems.  If it contains results you don't | 
 | 23986 | # want to keep, you may remove or edit it. | 
 | 23987 | # | 
 | 23988 | # config.status only pays attention to the cache file if you give it | 
 | 23989 | # the --recheck option to rerun configure. | 
 | 23990 | # | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23991 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23992 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 23993 | # following values. | 
 | 23994 |  | 
 | 23995 | _ACEOF | 
 | 23996 |  | 
 | 23997 | # The following way of writing the cache mishandles newlines in values, | 
 | 23998 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 23999 | # So, don't put newlines in cache variables' values. | 
 | 24000 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 24001 | # and sets the high bit in the cache file unless we assign to the vars. | 
 | 24002 | { | 
 | 24003 |   (set) 2>&1 | | 
 | 24004 |     case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
 | 24005 |     *ac_space=\ *) | 
 | 24006 |       # `set' does not quote correctly, so add quotes (double-quote | 
 | 24007 |       # substitution turns \\\\ into \\, and sed turns \\ into \). | 
 | 24008 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24009 | 	"s/'/'\\\\''/g; | 
 | 24010 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24011 |       ;; | 
 | 24012 |     *) | 
 | 24013 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 24014 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24015 | 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24016 |       ;; | 
 | 24017 |     esac; | 
 | 24018 | } | | 
 | 24019 |   sed ' | 
 | 24020 |      t clear | 
 | 24021 |      : clear | 
 | 24022 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 24023 |      t end | 
 | 24024 |      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 24025 |      : end' >>confcache | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24026 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24027 |   if test -w $cache_file; then | 
 | 24028 |     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
 | 24029 |     cat confcache >$cache_file | 
 | 24030 |   else | 
 | 24031 |     echo "not updating unwritable cache $cache_file" | 
 | 24032 |   fi | 
 | 24033 | fi | 
 | 24034 | rm -f confcache | 
 | 24035 |  | 
 | 24036 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 24037 | # Let make expand exec_prefix. | 
 | 24038 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 24039 |  | 
 | 24040 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
 | 24041 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
 | 24042 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 24043 | # (actually we leave an empty line to preserve line numbers). | 
 | 24044 | if test "x$srcdir" = x.; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24045 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24046 | s/:*\$(srcdir):*/:/; | 
 | 24047 | s/:*\${srcdir}:*/:/; | 
 | 24048 | s/:*@srcdir@:*/:/; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24049 | s/^\([^=]*=[	 ]*\):*/\1/; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24050 | s/:*$//; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24051 | s/^[^=]*=[	 ]*$//; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24052 | }' | 
 | 24053 | fi | 
 | 24054 |  | 
 | 24055 | DEFS=-DHAVE_CONFIG_H | 
 | 24056 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24057 | ac_libobjs= | 
 | 24058 | ac_ltlibobjs= | 
 | 24059 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 24060 |   # 1. Remove the extension, and $U if already installed. | 
 | 24061 |   ac_i=`echo "$ac_i" | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24062 | 	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24063 |   # 2. Add them. | 
 | 24064 |   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
 | 24065 |   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
 | 24066 | done | 
 | 24067 | LIBOBJS=$ac_libobjs | 
 | 24068 |  | 
 | 24069 | LTLIBOBJS=$ac_ltlibobjs | 
 | 24070 |  | 
 | 24071 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24072 |  | 
 | 24073 | : ${CONFIG_STATUS=./config.status} | 
 | 24074 | ac_clean_files_save=$ac_clean_files | 
 | 24075 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
 | 24076 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
 | 24077 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 24078 | cat >$CONFIG_STATUS <<_ACEOF | 
 | 24079 | #! $SHELL | 
 | 24080 | # Generated by $as_me. | 
 | 24081 | # Run this file to recreate the current configuration. | 
 | 24082 | # Compiler output produced by configure, useful for debugging | 
 | 24083 | # configure, is in config.log if it exists. | 
 | 24084 |  | 
 | 24085 | debug=false | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24086 | ac_cs_recheck=false | 
 | 24087 | ac_cs_silent=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24088 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 24089 | _ACEOF | 
 | 24090 |  | 
 | 24091 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24092 | ## --------------------- ## | 
 | 24093 | ## M4sh Initialization.  ## | 
 | 24094 | ## --------------------- ## | 
 | 24095 |  | 
 | 24096 | # Be Bourne compatible | 
 | 24097 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 24098 |   emulate sh | 
 | 24099 |   NULLCMD=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24100 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 24101 |   # is contrary to our usage.  Disable this feature. | 
 | 24102 |   alias -g '${1+"$@"}'='"$@"' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24103 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 24104 |   set -o posix | 
 | 24105 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24106 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24107 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24108 | # Support unset when possible. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24109 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24110 |   as_unset=unset | 
 | 24111 | else | 
 | 24112 |   as_unset=false | 
 | 24113 | fi | 
 | 24114 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24115 |  | 
 | 24116 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 24117 | $as_unset ENV MAIL MAILPATH | 
 | 24118 | PS1='$ ' | 
 | 24119 | PS2='> ' | 
 | 24120 | PS4='+ ' | 
 | 24121 |  | 
 | 24122 | # NLS nuisances. | 
 | 24123 | for as_var in \ | 
 | 24124 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 24125 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 24126 |   LC_TELEPHONE LC_TIME | 
 | 24127 | do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24128 |   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] | 24129 |     eval $as_var=C; export $as_var | 
 | 24130 |   else | 
 | 24131 |     $as_unset $as_var | 
 | 24132 |   fi | 
 | 24133 | done | 
 | 24134 |  | 
 | 24135 | # Required to use basename. | 
 | 24136 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 24137 |   as_expr=expr | 
 | 24138 | else | 
 | 24139 |   as_expr=false | 
 | 24140 | fi | 
 | 24141 |  | 
 | 24142 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 24143 |   as_basename=basename | 
 | 24144 | else | 
 | 24145 |   as_basename=false | 
 | 24146 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24147 |  | 
 | 24148 |  | 
 | 24149 | # Name of the executable. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24150 | as_me=`$as_basename "$0" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 24152 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 24153 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 24154 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 24155 | echo X/"$0" | | 
 | 24156 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 24157 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 24158 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 24159 |   	  s/.*/./; q'` | 
 | 24160 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24161 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24162 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 24163 | # Avoid depending upon Character Ranges. | 
 | 24164 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 24165 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 24166 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 24167 | as_cr_digits='0123456789' | 
 | 24168 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 24169 |  | 
 | 24170 | # The user is always right. | 
 | 24171 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24172 |   echo "#! /bin/sh" >conf$$.sh | 
 | 24173 |   echo  "exit 0"   >>conf$$.sh | 
 | 24174 |   chmod +x conf$$.sh | 
 | 24175 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24176 |     PATH_SEPARATOR=';' | 
 | 24177 |   else | 
 | 24178 |     PATH_SEPARATOR=: | 
 | 24179 |   fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24180 |   rm -f conf$$.sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24181 | fi | 
 | 24182 |  | 
 | 24183 |  | 
 | 24184 |   as_lineno_1=$LINENO | 
 | 24185 |   as_lineno_2=$LINENO | 
 | 24186 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 24187 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 24188 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 24189 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 24190 |   # relative or not. | 
 | 24191 |   case $0 in | 
 | 24192 |     *[\\/]* ) as_myself=$0 ;; | 
 | 24193 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 24194 | for as_dir in $PATH | 
 | 24195 | do | 
 | 24196 |   IFS=$as_save_IFS | 
 | 24197 |   test -z "$as_dir" && as_dir=. | 
 | 24198 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 24199 | done | 
 | 24200 |  | 
 | 24201 |        ;; | 
 | 24202 |   esac | 
 | 24203 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 24204 |   # in which case we are not to be found in the path. | 
 | 24205 |   if test "x$as_myself" = x; then | 
 | 24206 |     as_myself=$0 | 
 | 24207 |   fi | 
 | 24208 |   if test ! -f "$as_myself"; then | 
 | 24209 |     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
 | 24210 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
 | 24211 |    { (exit 1); exit 1; }; } | 
 | 24212 |   fi | 
 | 24213 |   case $CONFIG_SHELL in | 
 | 24214 |   '') | 
 | 24215 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 24216 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 24217 | do | 
 | 24218 |   IFS=$as_save_IFS | 
 | 24219 |   test -z "$as_dir" && as_dir=. | 
 | 24220 |   for as_base in sh bash ksh sh5; do | 
 | 24221 | 	 case $as_dir in | 
 | 24222 | 	 /*) | 
 | 24223 | 	   if ("$as_dir/$as_base" -c ' | 
 | 24224 |   as_lineno_1=$LINENO | 
 | 24225 |   as_lineno_2=$LINENO | 
 | 24226 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 24227 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 24228 |   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] | 24229 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 24230 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24231 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 24232 | 	     export CONFIG_SHELL | 
 | 24233 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 24234 | 	   fi;; | 
 | 24235 | 	 esac | 
 | 24236 |        done | 
 | 24237 | done | 
 | 24238 | ;; | 
 | 24239 |   esac | 
 | 24240 |  | 
 | 24241 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 24242 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 24243 |   # line-number line before each line; the second 'sed' does the real | 
 | 24244 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 24245 |   # with the numbered line, and appends trailing '-' during | 
 | 24246 |   # substitution so that $LINENO is not a special case at line end. | 
 | 24247 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 24248 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 24249 |   sed '=' <$as_myself | | 
 | 24250 |     sed ' | 
 | 24251 |       N | 
 | 24252 |       s,$,-, | 
 | 24253 |       : loop | 
 | 24254 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 24255 |       t loop | 
 | 24256 |       s,-$,, | 
 | 24257 |       s,^['$as_cr_digits']*\n,, | 
 | 24258 |     ' >$as_me.lineno && | 
 | 24259 |   chmod +x $as_me.lineno || | 
 | 24260 |     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
 | 24261 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
 | 24262 |    { (exit 1); exit 1; }; } | 
 | 24263 |  | 
 | 24264 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 24265 |   # (the dirname of $[0] is not the place where we might find the | 
 | 24266 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 24267 |   . ./$as_me.lineno | 
 | 24268 |   # Exit status is that of the last command. | 
 | 24269 |   exit | 
 | 24270 | } | 
 | 24271 |  | 
 | 24272 |  | 
 | 24273 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 24274 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 24275 | ' ECHO_T='	' ;; | 
 | 24276 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 24277 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 24278 | esac | 
 | 24279 |  | 
 | 24280 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 24281 |   as_expr=expr | 
 | 24282 | else | 
 | 24283 |   as_expr=false | 
 | 24284 | fi | 
 | 24285 |  | 
 | 24286 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 24287 | echo >conf$$.file | 
 | 24288 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 24289 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 24290 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 24291 |   if test -f conf$$.exe; then | 
 | 24292 |     # Don't use ln at all; we don't have any links | 
 | 24293 |     as_ln_s='cp -p' | 
 | 24294 |   else | 
 | 24295 |     as_ln_s='ln -s' | 
 | 24296 |   fi | 
 | 24297 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 24298 |   as_ln_s=ln | 
 | 24299 | else | 
 | 24300 |   as_ln_s='cp -p' | 
 | 24301 | fi | 
 | 24302 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 24303 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24304 | if mkdir -p . 2>/dev/null; then | 
 | 24305 |   as_mkdir_p=: | 
 | 24306 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24307 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24308 |   as_mkdir_p=false | 
 | 24309 | fi | 
 | 24310 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24311 | as_executable_p="test -f" | 
 | 24312 |  | 
 | 24313 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24314 | 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] | 24315 |  | 
 | 24316 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24317 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24318 |  | 
 | 24319 |  | 
 | 24320 | # IFS | 
 | 24321 | # We need space, tab and new line, in precisely that order. | 
 | 24322 | as_nl=' | 
 | 24323 | ' | 
 | 24324 | IFS=" 	$as_nl" | 
 | 24325 |  | 
 | 24326 | # CDPATH. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24327 | $as_unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24328 |  | 
 | 24329 | exec 6>&1 | 
 | 24330 |  | 
 | 24331 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
 | 24332 | # report actual input values of CONFIG_FILES etc. instead of their | 
 | 24333 | # values after options handling.  Logging --version etc. is OK. | 
 | 24334 | exec 5>>config.log | 
 | 24335 | { | 
 | 24336 |   echo | 
 | 24337 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 24338 | ## Running $as_me. ## | 
 | 24339 | _ASBOX | 
 | 24340 | } >&5 | 
 | 24341 | cat >&5 <<_CSEOF | 
 | 24342 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 24343 | This file was extended by LLVM $as_me 1.4, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24344 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24345 |  | 
 | 24346 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 24347 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 24348 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 24349 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 24350 |   $ $0 $@ | 
 | 24351 |  | 
 | 24352 | _CSEOF | 
 | 24353 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
 | 24354 | echo >&5 | 
 | 24355 | _ACEOF | 
 | 24356 |  | 
 | 24357 | # Files that config.status was made for. | 
 | 24358 | if test -n "$ac_config_files"; then | 
 | 24359 |   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
 | 24360 | fi | 
 | 24361 |  | 
 | 24362 | if test -n "$ac_config_headers"; then | 
 | 24363 |   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
 | 24364 | fi | 
 | 24365 |  | 
 | 24366 | if test -n "$ac_config_links"; then | 
 | 24367 |   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
 | 24368 | fi | 
 | 24369 |  | 
 | 24370 | if test -n "$ac_config_commands"; then | 
 | 24371 |   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
 | 24372 | fi | 
 | 24373 |  | 
 | 24374 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24375 |  | 
 | 24376 | ac_cs_usage="\ | 
 | 24377 | \`$as_me' instantiates files from templates according to the | 
 | 24378 | current configuration. | 
 | 24379 |  | 
 | 24380 | Usage: $0 [OPTIONS] [FILE]... | 
 | 24381 |  | 
 | 24382 |   -h, --help       print this help, then exit | 
 | 24383 |   -V, --version    print version number, then exit | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24384 |   -q, --quiet      do not print progress messages | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24385 |   -d, --debug      don't remove temporary files | 
 | 24386 |       --recheck    update $as_me by reconfiguring in the same conditions | 
 | 24387 |   --file=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24388 | 		   instantiate the configuration file FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24389 |   --header=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24390 | 		   instantiate the configuration header FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24391 |  | 
 | 24392 | Configuration files: | 
 | 24393 | $config_files | 
 | 24394 |  | 
 | 24395 | Configuration headers: | 
 | 24396 | $config_headers | 
 | 24397 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 24398 | Configuration links: | 
 | 24399 | $config_links | 
 | 24400 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24401 | Configuration commands: | 
 | 24402 | $config_commands | 
 | 24403 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24404 | Report bugs to <bug-autoconf@gnu.org>." | 
 | 24405 | _ACEOF | 
 | 24406 |  | 
 | 24407 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 24408 | ac_cs_version="\\ | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 24409 | LLVM config.status 1.4 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24410 | configured by $0, generated by GNU Autoconf 2.59, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24411 |   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
 | 24412 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24413 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24414 | This config.status script is free software; the Free Software Foundation | 
 | 24415 | gives unlimited permission to copy, distribute and modify it." | 
 | 24416 | srcdir=$srcdir | 
 | 24417 | INSTALL="$INSTALL" | 
 | 24418 | _ACEOF | 
 | 24419 |  | 
 | 24420 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24421 | # If no file are specified by the user, then we need to provide default | 
 | 24422 | # value.  By we need to know if files were specified by the user. | 
 | 24423 | ac_need_defaults=: | 
 | 24424 | while test $# != 0 | 
 | 24425 | do | 
 | 24426 |   case $1 in | 
 | 24427 |   --*=*) | 
 | 24428 |     ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
 | 24429 |     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24430 |     ac_shift=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24431 |     ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24432 |   -*) | 
 | 24433 |     ac_option=$1 | 
 | 24434 |     ac_optarg=$2 | 
 | 24435 |     ac_shift=shift | 
 | 24436 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24437 |   *) # This is not an option, so the user has probably given explicit | 
 | 24438 |      # arguments. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24439 |      ac_option=$1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24440 |      ac_need_defaults=false;; | 
 | 24441 |   esac | 
 | 24442 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24443 |   case $ac_option in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24444 |   # Handling of the options. | 
 | 24445 | _ACEOF | 
| John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 24446 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24447 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 24448 |     ac_cs_recheck=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24449 |   --version | --vers* | -V ) | 
 | 24450 |     echo "$ac_cs_version"; exit 0 ;; | 
 | 24451 |   --he | --h) | 
 | 24452 |     # Conflict between --help and --header | 
 | 24453 |     { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
 | 24454 | Try \`$0 --help' for more information." >&5 | 
 | 24455 | echo "$as_me: error: ambiguous option: $1 | 
 | 24456 | Try \`$0 --help' for more information." >&2;} | 
 | 24457 |    { (exit 1); exit 1; }; };; | 
 | 24458 |   --help | --hel | -h ) | 
 | 24459 |     echo "$ac_cs_usage"; exit 0 ;; | 
 | 24460 |   --debug | --d* | -d ) | 
 | 24461 |     debug=: ;; | 
 | 24462 |   --file | --fil | --fi | --f ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24463 |     $ac_shift | 
 | 24464 |     CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24465 |     ac_need_defaults=false;; | 
 | 24466 |   --header | --heade | --head | --hea ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24467 |     $ac_shift | 
 | 24468 |     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24469 |     ac_need_defaults=false;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24470 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 24471 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 24472 |     ac_cs_silent=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24473 |  | 
 | 24474 |   # This is an error. | 
 | 24475 |   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
 | 24476 | Try \`$0 --help' for more information." >&5 | 
 | 24477 | echo "$as_me: error: unrecognized option: $1 | 
 | 24478 | Try \`$0 --help' for more information." >&2;} | 
 | 24479 |    { (exit 1); exit 1; }; } ;; | 
 | 24480 |  | 
 | 24481 |   *) ac_config_targets="$ac_config_targets $1" ;; | 
 | 24482 |  | 
 | 24483 |   esac | 
 | 24484 |   shift | 
 | 24485 | done | 
 | 24486 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24487 | ac_configure_extra_args= | 
 | 24488 |  | 
 | 24489 | if $ac_cs_silent; then | 
 | 24490 |   exec 6>/dev/null | 
 | 24491 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 24492 | fi | 
 | 24493 |  | 
 | 24494 | _ACEOF | 
 | 24495 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 24496 | if \$ac_cs_recheck; then | 
 | 24497 |   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
 | 24498 |   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 24499 | fi | 
 | 24500 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24501 | _ACEOF | 
 | 24502 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24503 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 24504 | # | 
 | 24505 | # INIT-COMMANDS section. | 
 | 24506 | # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24507 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24508 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` | 
 | 24509 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 24510 | ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24511 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24512 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24513 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` | 
 | 24514 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 24515 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` | 
 | 24516 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24517 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 24518 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24519 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24520 |  | 
 | 24521 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24522 |  | 
 | 24523 |  | 
 | 24524 |  | 
 | 24525 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24526 | for ac_config_target in $ac_config_targets | 
 | 24527 | do | 
 | 24528 |   case "$ac_config_target" in | 
 | 24529 |   # Handling of arguments. | 
 | 24530 |   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 24531 |   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24532 |   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
 | 24533 |   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 24534 |   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24535 |   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24536 |   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24537 |   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
 | 24538 |   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 24539 |   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; | 
 | 24540 |   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24541 |   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 24542 |   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24543 |   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 24544 |   "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] | 24545 |   "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] | 24546 |   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; | 
 | 24547 |   "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] | 24548 |   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;; | 
 | 24549 |   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24550 |   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
 | 24551 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
 | 24552 |    { (exit 1); exit 1; }; };; | 
 | 24553 |   esac | 
 | 24554 | done | 
 | 24555 |  | 
 | 24556 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 24557 | # then the envvar interface is used.  Set only those that are not. | 
 | 24558 | # We use the long form for the default assignment because of an extremely | 
 | 24559 | # bizarre bug on SunOS 4.1.3. | 
 | 24560 | if $ac_need_defaults; then | 
 | 24561 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 24562 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 24563 |   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24564 |   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24565 | fi | 
 | 24566 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24567 | # Have a temporary directory for convenience.  Make it in the build tree | 
 | 24568 | # simply because there is no reason to put it here, and in addition, | 
 | 24569 | # creating and moving files from /tmp can sometimes cause problems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24570 | # Create a temporary directory, and hook for its removal unless debugging. | 
 | 24571 | $debug || | 
 | 24572 | { | 
 | 24573 |   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
 | 24574 |   trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
 | 24575 | } | 
 | 24576 |  | 
 | 24577 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24578 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24579 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24580 |   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24581 |   test -n "$tmp" && test -d "$tmp" | 
 | 24582 | }  || | 
 | 24583 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24584 |   tmp=./confstat$$-$RANDOM | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24585 |   (umask 077 && mkdir $tmp) | 
 | 24586 | } || | 
 | 24587 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24588 |    echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24589 |    { (exit 1); exit 1; } | 
 | 24590 | } | 
 | 24591 |  | 
 | 24592 | _ACEOF | 
 | 24593 |  | 
 | 24594 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 24595 |  | 
 | 24596 | # | 
 | 24597 | # CONFIG_FILES section. | 
 | 24598 | # | 
 | 24599 |  | 
 | 24600 | # No need to generate the scripts if there are no CONFIG_FILES. | 
 | 24601 | # This happens for instance when ./config.status config.h | 
 | 24602 | if test -n "\$CONFIG_FILES"; then | 
 | 24603 |   # Protect against being on the right side of a sed subst in config.status. | 
 | 24604 |   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
 | 24605 |    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
 | 24606 | s,@SHELL@,$SHELL,;t t | 
 | 24607 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
 | 24608 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
 | 24609 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
 | 24610 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
 | 24611 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
 | 24612 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
 | 24613 | s,@exec_prefix@,$exec_prefix,;t t | 
 | 24614 | s,@prefix@,$prefix,;t t | 
 | 24615 | s,@program_transform_name@,$program_transform_name,;t t | 
 | 24616 | s,@bindir@,$bindir,;t t | 
 | 24617 | s,@sbindir@,$sbindir,;t t | 
 | 24618 | s,@libexecdir@,$libexecdir,;t t | 
 | 24619 | s,@datadir@,$datadir,;t t | 
 | 24620 | s,@sysconfdir@,$sysconfdir,;t t | 
 | 24621 | s,@sharedstatedir@,$sharedstatedir,;t t | 
 | 24622 | s,@localstatedir@,$localstatedir,;t t | 
 | 24623 | s,@libdir@,$libdir,;t t | 
 | 24624 | s,@includedir@,$includedir,;t t | 
 | 24625 | s,@oldincludedir@,$oldincludedir,;t t | 
 | 24626 | s,@infodir@,$infodir,;t t | 
 | 24627 | s,@mandir@,$mandir,;t t | 
 | 24628 | s,@build_alias@,$build_alias,;t t | 
 | 24629 | s,@host_alias@,$host_alias,;t t | 
 | 24630 | s,@target_alias@,$target_alias,;t t | 
 | 24631 | s,@DEFS@,$DEFS,;t t | 
 | 24632 | s,@ECHO_C@,$ECHO_C,;t t | 
 | 24633 | s,@ECHO_N@,$ECHO_N,;t t | 
 | 24634 | s,@ECHO_T@,$ECHO_T,;t t | 
 | 24635 | s,@LIBS@,$LIBS,;t t | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 24636 | s,@subdirs@,$subdirs,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24637 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
 | 24638 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
 | 24639 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
 | 24640 | s,@build@,$build,;t t | 
 | 24641 | s,@build_cpu@,$build_cpu,;t t | 
 | 24642 | s,@build_vendor@,$build_vendor,;t t | 
 | 24643 | s,@build_os@,$build_os,;t t | 
 | 24644 | s,@host@,$host,;t t | 
 | 24645 | s,@host_cpu@,$host_cpu,;t t | 
 | 24646 | s,@host_vendor@,$host_vendor,;t t | 
 | 24647 | s,@host_os@,$host_os,;t t | 
 | 24648 | s,@target@,$target,;t t | 
 | 24649 | s,@target_cpu@,$target_cpu,;t t | 
 | 24650 | s,@target_vendor@,$target_vendor,;t t | 
 | 24651 | s,@target_os@,$target_os,;t t | 
 | 24652 | s,@OS@,$OS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24653 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 24654 | s,@ARCH@,$ARCH,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24655 | s,@CXX@,$CXX,;t t | 
 | 24656 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
 | 24657 | s,@LDFLAGS@,$LDFLAGS,;t t | 
 | 24658 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
 | 24659 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
 | 24660 | s,@EXEEXT@,$EXEEXT,;t t | 
 | 24661 | s,@OBJEXT@,$OBJEXT,;t t | 
 | 24662 | s,@CC@,$CC,;t t | 
 | 24663 | s,@CFLAGS@,$CFLAGS,;t t | 
 | 24664 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
 | 24665 | s,@CPP@,$CPP,;t t | 
 | 24666 | s,@ifGNUmake@,$ifGNUmake,;t t | 
 | 24667 | s,@LEX@,$LEX,;t t | 
 | 24668 | s,@LEXLIB@,$LEXLIB,;t t | 
 | 24669 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 24670 | s,@FLEX@,$FLEX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24671 | s,@YACC@,$YACC,;t t | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 24672 | s,@BISON@,$BISON,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24673 | s,@EGREP@,$EGREP,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24674 | s,@LN_S@,$LN_S,;t t | 
 | 24675 | s,@ECHO@,$ECHO,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24676 | s,@AR@,$AR,;t t | 
 | 24677 | s,@ac_ct_AR@,$ac_ct_AR,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24678 | s,@RANLIB@,$RANLIB,;t t | 
 | 24679 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
 | 24680 | s,@STRIP@,$STRIP,;t t | 
 | 24681 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24682 | s,@CXXCPP@,$CXXCPP,;t t | 
 | 24683 | s,@F77@,$F77,;t t | 
 | 24684 | s,@FFLAGS@,$FFLAGS,;t t | 
 | 24685 | s,@ac_ct_F77@,$ac_ct_F77,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24686 | s,@LIBTOOL@,$LIBTOOL,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24687 | s,@DOT@,$DOT,;t t | 
 | 24688 | s,@ETAGS@,$ETAGS,;t t | 
| Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 24689 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 24690 | s,@PYTHON@,$PYTHON,;t t | 
 | 24691 | s,@QMTEST@,$QMTEST,;t t | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 24692 | s,@ENDIAN@,$ENDIAN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24693 | s,@ALLOCA@,$ALLOCA,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24694 | s,@MMAP_FILE@,$MMAP_FILE,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24695 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24696 | s,@JIT@,$JIT,;t t | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 24697 | s,@LLVMCC1@,$LLVMCC1,;t t | 
 | 24698 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 24699 | s,@SHLIBEXT@,$SHLIBEXT,;t t | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 24700 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t | 
 | 24701 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t | 
 | 24702 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t | 
 | 24703 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t | 
 | 24704 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t | 
 | 24705 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t | 
 | 24706 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t | 
 | 24707 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t | 
 | 24708 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t | 
 | 24709 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 24710 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24711 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24712 | CEOF | 
 | 24713 |  | 
 | 24714 | _ACEOF | 
 | 24715 |  | 
 | 24716 |   cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24717 |   # Split the substitutions into bite-sized pieces for seds with | 
 | 24718 |   # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 24719 |   ac_max_sed_lines=48 | 
 | 24720 |   ac_sed_frag=1 # Number of current file. | 
 | 24721 |   ac_beg=1 # First line for current file. | 
 | 24722 |   ac_end=$ac_max_sed_lines # Line after last line for current file. | 
 | 24723 |   ac_more_lines=: | 
 | 24724 |   ac_sed_cmds= | 
 | 24725 |   while $ac_more_lines; do | 
 | 24726 |     if test $ac_beg -gt 1; then | 
 | 24727 |       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 24728 |     else | 
 | 24729 |       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 24730 |     fi | 
 | 24731 |     if test ! -s $tmp/subs.frag; then | 
 | 24732 |       ac_more_lines=false | 
 | 24733 |     else | 
 | 24734 |       # The purpose of the label and of the branching condition is to | 
 | 24735 |       # speed up the sed processing (if there are no `@' at all, there | 
 | 24736 |       # is no need to browse any of the substitutions). | 
 | 24737 |       # These are the two extra sed commands mentioned above. | 
 | 24738 |       (echo ':t | 
 | 24739 |   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
 | 24740 |       if test -z "$ac_sed_cmds"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24741 | 	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24742 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24743 | 	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] | 24744 |       fi | 
 | 24745 |       ac_sed_frag=`expr $ac_sed_frag + 1` | 
 | 24746 |       ac_beg=$ac_end | 
 | 24747 |       ac_end=`expr $ac_end + $ac_max_sed_lines` | 
 | 24748 |     fi | 
 | 24749 |   done | 
 | 24750 |   if test -z "$ac_sed_cmds"; then | 
 | 24751 |     ac_sed_cmds=cat | 
 | 24752 |   fi | 
 | 24753 | fi # test -n "$CONFIG_FILES" | 
 | 24754 |  | 
 | 24755 | _ACEOF | 
 | 24756 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24757 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
 | 24758 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 24759 |   case $ac_file in | 
 | 24760 |   - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24761 | 	cat >$tmp/stdin | 
 | 24762 | 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 24763 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24764 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24765 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24766 |   * )   ac_file_in=$ac_file.in ;; | 
 | 24767 |   esac | 
 | 24768 |  | 
 | 24769 |   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
 | 24770 |   ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 24771 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24772 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 24773 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 24774 | 	 X"$ac_file" : 'X\(/\)' \| \ | 
 | 24775 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24776 | echo X"$ac_file" | | 
 | 24777 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 24778 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 24779 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 24780 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 24781 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24782 |   { if $as_mkdir_p; then | 
 | 24783 |     mkdir -p "$ac_dir" | 
 | 24784 |   else | 
 | 24785 |     as_dir="$ac_dir" | 
 | 24786 |     as_dirs= | 
 | 24787 |     while test ! -d "$as_dir"; do | 
 | 24788 |       as_dirs="$as_dir $as_dirs" | 
 | 24789 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 24790 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24791 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 24792 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 24793 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 24794 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24795 | echo X"$as_dir" | | 
 | 24796 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 24797 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 24798 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 24799 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 24800 |   	  s/.*/./; q'` | 
 | 24801 |     done | 
 | 24802 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 24803 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 24804 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 24805 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24806 |  | 
 | 24807 |   ac_builddir=. | 
 | 24808 |  | 
 | 24809 | if test "$ac_dir" != .; then | 
 | 24810 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 24811 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 24812 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 24813 | else | 
 | 24814 |   ac_dir_suffix= ac_top_builddir= | 
 | 24815 | fi | 
 | 24816 |  | 
 | 24817 | case $srcdir in | 
 | 24818 |   .)  # No --srcdir option.  We are building in place. | 
 | 24819 |     ac_srcdir=. | 
 | 24820 |     if test -z "$ac_top_builddir"; then | 
 | 24821 |        ac_top_srcdir=. | 
 | 24822 |     else | 
 | 24823 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 24824 |     fi ;; | 
 | 24825 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 24826 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 24827 |     ac_top_srcdir=$srcdir ;; | 
 | 24828 |   *) # Relative path. | 
 | 24829 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 24830 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 24831 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24832 |  | 
 | 24833 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 24834 | # the directories may not exist. | 
 | 24835 | case `pwd` in | 
 | 24836 | .) ac_abs_builddir="$ac_dir";; | 
 | 24837 | *) | 
 | 24838 |   case "$ac_dir" in | 
 | 24839 |   .) ac_abs_builddir=`pwd`;; | 
 | 24840 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 24841 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 24842 |   esac;; | 
 | 24843 | esac | 
 | 24844 | case $ac_abs_builddir in | 
 | 24845 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 24846 | *) | 
 | 24847 |   case ${ac_top_builddir}. in | 
 | 24848 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 24849 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 24850 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 24851 |   esac;; | 
 | 24852 | esac | 
 | 24853 | case $ac_abs_builddir in | 
 | 24854 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 24855 | *) | 
 | 24856 |   case $ac_srcdir in | 
 | 24857 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 24858 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 24859 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 24860 |   esac;; | 
 | 24861 | esac | 
 | 24862 | case $ac_abs_builddir in | 
 | 24863 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 24864 | *) | 
 | 24865 |   case $ac_top_srcdir in | 
 | 24866 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 24867 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 24868 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 24869 |   esac;; | 
 | 24870 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24871 |  | 
 | 24872 |  | 
 | 24873 |   case $INSTALL in | 
 | 24874 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
 | 24875 |   *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
 | 24876 |   esac | 
 | 24877 |  | 
 | 24878 |   if test x"$ac_file" != x-; then | 
 | 24879 |     { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 24880 | echo "$as_me: creating $ac_file" >&6;} | 
 | 24881 |     rm -f "$ac_file" | 
 | 24882 |   fi | 
 | 24883 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 24884 |   # use $as_me), people would be surprised to read: | 
 | 24885 |   #    /* config.h.  Generated by config.status.  */ | 
 | 24886 |   if test x"$ac_file" = x-; then | 
 | 24887 |     configure_input= | 
 | 24888 |   else | 
 | 24889 |     configure_input="$ac_file.  " | 
 | 24890 |   fi | 
 | 24891 |   configure_input=$configure_input"Generated from `echo $ac_file_in | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24892 | 				     sed 's,.*/,,'` by configure." | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24893 |  | 
 | 24894 |   # First look for the input files in the build tree, otherwise in the | 
 | 24895 |   # src tree. | 
 | 24896 |   ac_file_inputs=`IFS=: | 
 | 24897 |     for f in $ac_file_in; do | 
 | 24898 |       case $f in | 
 | 24899 |       -) echo $tmp/stdin ;; | 
 | 24900 |       [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24901 | 	 # Absolute (can't be DOS-style, as IFS=:) | 
 | 24902 | 	 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] | 24903 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 24904 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24905 | 	 echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24906 |       *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24907 | 	 if test -f "$f"; then | 
 | 24908 | 	   # Build tree | 
 | 24909 | 	   echo "$f" | 
 | 24910 | 	 elif test -f "$srcdir/$f"; then | 
 | 24911 | 	   # Source tree | 
 | 24912 | 	   echo "$srcdir/$f" | 
 | 24913 | 	 else | 
 | 24914 | 	   # /dev/null tree | 
 | 24915 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24916 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 24917 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24918 | 	 fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24919 |       esac | 
 | 24920 |     done` || { (exit 1); exit 1; } | 
 | 24921 | _ACEOF | 
 | 24922 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 24923 |   sed "$ac_vpsub | 
 | 24924 | $extrasub | 
 | 24925 | _ACEOF | 
 | 24926 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24927 | :t | 
 | 24928 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
 | 24929 | s,@configure_input@,$configure_input,;t t | 
 | 24930 | s,@srcdir@,$ac_srcdir,;t t | 
 | 24931 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
 | 24932 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
 | 24933 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
 | 24934 | s,@builddir@,$ac_builddir,;t t | 
 | 24935 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
 | 24936 | s,@top_builddir@,$ac_top_builddir,;t t | 
 | 24937 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
 | 24938 | s,@INSTALL@,$ac_INSTALL,;t t | 
 | 24939 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
 | 24940 |   rm -f $tmp/stdin | 
 | 24941 |   if test x"$ac_file" != x-; then | 
 | 24942 |     mv $tmp/out $ac_file | 
 | 24943 |   else | 
 | 24944 |     cat $tmp/out | 
 | 24945 |     rm -f $tmp/out | 
 | 24946 |   fi | 
 | 24947 |  | 
 | 24948 | done | 
 | 24949 | _ACEOF | 
 | 24950 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24951 |  | 
 | 24952 | # | 
 | 24953 | # CONFIG_HEADER section. | 
 | 24954 | # | 
 | 24955 |  | 
 | 24956 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
 | 24957 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
 | 24958 | # | 
 | 24959 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24960 | ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)' | 
 | 24961 | ac_dB='[	 ].*$,\1#\2' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24962 | ac_dC=' ' | 
 | 24963 | ac_dD=',;t' | 
 | 24964 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24965 | ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24966 | ac_uB='$,\1#\2define\3' | 
 | 24967 | ac_uC=' ' | 
 | 24968 | ac_uD=',;t' | 
 | 24969 |  | 
 | 24970 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
 | 24971 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 24972 |   case $ac_file in | 
 | 24973 |   - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24974 | 	cat >$tmp/stdin | 
 | 24975 | 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 24976 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24977 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24978 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24979 |   * )   ac_file_in=$ac_file.in ;; | 
 | 24980 |   esac | 
 | 24981 |  | 
 | 24982 |   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 24983 | echo "$as_me: creating $ac_file" >&6;} | 
 | 24984 |  | 
 | 24985 |   # First look for the input files in the build tree, otherwise in the | 
 | 24986 |   # src tree. | 
 | 24987 |   ac_file_inputs=`IFS=: | 
 | 24988 |     for f in $ac_file_in; do | 
 | 24989 |       case $f in | 
 | 24990 |       -) echo $tmp/stdin ;; | 
 | 24991 |       [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24992 | 	 # Absolute (can't be DOS-style, as IFS=:) | 
 | 24993 | 	 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] | 24994 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 24995 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24996 | 	 # Do quote $f, to prevent DOS paths from being IFS'd. | 
 | 24997 | 	 echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24998 |       *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24999 | 	 if test -f "$f"; then | 
 | 25000 | 	   # Build tree | 
 | 25001 | 	   echo "$f" | 
 | 25002 | 	 elif test -f "$srcdir/$f"; then | 
 | 25003 | 	   # Source tree | 
 | 25004 | 	   echo "$srcdir/$f" | 
 | 25005 | 	 else | 
 | 25006 | 	   # /dev/null tree | 
 | 25007 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25008 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 25009 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25010 | 	 fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25011 |       esac | 
 | 25012 |     done` || { (exit 1); exit 1; } | 
 | 25013 |   # Remove the trailing spaces. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25014 |   sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25015 |  | 
 | 25016 | _ACEOF | 
 | 25017 |  | 
 | 25018 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
 | 25019 | # `conftest.undefs', that substitutes the proper values into | 
 | 25020 | # config.h.in to produce config.h.  The first handles `#define' | 
 | 25021 | # templates, and the second `#undef' templates. | 
 | 25022 | # And first: Protect against being on the right side of a sed subst in | 
 | 25023 | # config.status.  Protect against being in an unquoted here document | 
 | 25024 | # in config.status. | 
 | 25025 | rm -f conftest.defines conftest.undefs | 
 | 25026 | # Using a here document instead of a string reduces the quoting nightmare. | 
 | 25027 | # Putting comments in sed scripts is not portable. | 
 | 25028 | # | 
 | 25029 | # `end' is used to avoid that the second main sed command (meant for | 
 | 25030 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
 | 25031 | # See the Autoconf documentation for `clear'. | 
 | 25032 | cat >confdef2sed.sed <<\_ACEOF | 
 | 25033 | s/[\\&,]/\\&/g | 
 | 25034 | s,[\\$`],\\&,g | 
 | 25035 | t clear | 
 | 25036 | : clear | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25037 | 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] | 25038 | t end | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25039 | 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] | 25040 | : end | 
 | 25041 | _ACEOF | 
 | 25042 | # If some macros were called several times there might be several times | 
 | 25043 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
 | 25044 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
 | 25045 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
 | 25046 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
 | 25047 | rm -f confdef2sed.sed | 
 | 25048 |  | 
 | 25049 | # This sed command replaces #undef with comments.  This is necessary, for | 
 | 25050 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
 | 25051 | # on some systems where configure will not decide to define it. | 
 | 25052 | cat >>conftest.undefs <<\_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25053 | s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25054 | _ACEOF | 
 | 25055 |  | 
 | 25056 | # Break up conftest.defines because some shells have a limit on the size | 
 | 25057 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 25058 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25059 | echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25060 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
 | 25061 | echo '  :' >>$CONFIG_STATUS | 
 | 25062 | rm -f conftest.tail | 
 | 25063 | while grep . conftest.defines >/dev/null | 
 | 25064 | do | 
 | 25065 |   # Write a limited-size here document to $tmp/defines.sed. | 
 | 25066 |   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
 | 25067 |   # Speed up: don't consider the non `#define' lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25068 |   echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25069 |   # Work around the forget-to-reset-the-flag bug. | 
 | 25070 |   echo 't clr' >>$CONFIG_STATUS | 
 | 25071 |   echo ': clr' >>$CONFIG_STATUS | 
 | 25072 |   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
 | 25073 |   echo 'CEOF | 
 | 25074 |   sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
 | 25075 |   rm -f $tmp/in | 
 | 25076 |   mv $tmp/out $tmp/in | 
 | 25077 | ' >>$CONFIG_STATUS | 
 | 25078 |   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
 | 25079 |   rm -f conftest.defines | 
 | 25080 |   mv conftest.tail conftest.defines | 
 | 25081 | done | 
 | 25082 | rm -f conftest.defines | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25083 | echo '  fi # grep' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25084 | echo >>$CONFIG_STATUS | 
 | 25085 |  | 
 | 25086 | # Break up conftest.undefs because some shells have a limit on the size | 
 | 25087 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 25088 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
 | 25089 | rm -f conftest.tail | 
 | 25090 | while grep . conftest.undefs >/dev/null | 
 | 25091 | do | 
 | 25092 |   # Write a limited-size here document to $tmp/undefs.sed. | 
 | 25093 |   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
 | 25094 |   # Speed up: don't consider the non `#undef' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25095 |   echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25096 |   # Work around the forget-to-reset-the-flag bug. | 
 | 25097 |   echo 't clr' >>$CONFIG_STATUS | 
 | 25098 |   echo ': clr' >>$CONFIG_STATUS | 
 | 25099 |   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
 | 25100 |   echo 'CEOF | 
 | 25101 |   sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
 | 25102 |   rm -f $tmp/in | 
 | 25103 |   mv $tmp/out $tmp/in | 
 | 25104 | ' >>$CONFIG_STATUS | 
 | 25105 |   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
 | 25106 |   rm -f conftest.undefs | 
 | 25107 |   mv conftest.tail conftest.undefs | 
 | 25108 | done | 
 | 25109 | rm -f conftest.undefs | 
 | 25110 |  | 
 | 25111 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25112 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 25113 |   # use $as_me), people would be surprised to read: | 
 | 25114 |   #    /* config.h.  Generated by config.status.  */ | 
 | 25115 |   if test x"$ac_file" = x-; then | 
 | 25116 |     echo "/* Generated by configure.  */" >$tmp/config.h | 
 | 25117 |   else | 
 | 25118 |     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
 | 25119 |   fi | 
 | 25120 |   cat $tmp/in >>$tmp/config.h | 
 | 25121 |   rm -f $tmp/in | 
 | 25122 |   if test x"$ac_file" != x-; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25123 |     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25124 |       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
 | 25125 | echo "$as_me: $ac_file is unchanged" >&6;} | 
 | 25126 |     else | 
 | 25127 |       ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 25128 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25129 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 25130 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 25131 | 	 X"$ac_file" : 'X\(/\)' \| \ | 
 | 25132 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25133 | echo X"$ac_file" | | 
 | 25134 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25135 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25136 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25137 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25138 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25139 |       { if $as_mkdir_p; then | 
 | 25140 |     mkdir -p "$ac_dir" | 
 | 25141 |   else | 
 | 25142 |     as_dir="$ac_dir" | 
 | 25143 |     as_dirs= | 
 | 25144 |     while test ! -d "$as_dir"; do | 
 | 25145 |       as_dirs="$as_dir $as_dirs" | 
 | 25146 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 25147 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25148 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 25149 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 25150 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 25151 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25152 | echo X"$as_dir" | | 
 | 25153 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25154 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25155 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25156 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25157 |   	  s/.*/./; q'` | 
 | 25158 |     done | 
 | 25159 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 25160 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 25161 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 25162 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25163 |  | 
 | 25164 |       rm -f $ac_file | 
 | 25165 |       mv $tmp/config.h $ac_file | 
 | 25166 |     fi | 
 | 25167 |   else | 
 | 25168 |     cat $tmp/config.h | 
 | 25169 |     rm -f $tmp/config.h | 
 | 25170 |   fi | 
 | 25171 | done | 
 | 25172 | _ACEOF | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25173 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25174 |  | 
 | 25175 | # | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25176 | # CONFIG_LINKS section. | 
 | 25177 | # | 
 | 25178 |  | 
 | 25179 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | 
 | 25180 |   ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
 | 25181 |   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 25182 |  | 
 | 25183 |   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 | 
 | 25184 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | 
 | 25185 |  | 
 | 25186 |   if test ! -r $srcdir/$ac_source; then | 
 | 25187 |     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 | 
 | 25188 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | 
 | 25189 |    { (exit 1); exit 1; }; } | 
 | 25190 |   fi | 
 | 25191 |   rm -f $ac_dest | 
 | 25192 |  | 
 | 25193 |   # Make relative symlinks. | 
 | 25194 |   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | 
 | 25195 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25196 | 	 X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
 | 25197 | 	 X"$ac_dest" : 'X\(//\)$' \| \ | 
 | 25198 | 	 X"$ac_dest" : 'X\(/\)' \| \ | 
 | 25199 | 	 .     : '\(.\)' 2>/dev/null || | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25200 | echo X"$ac_dest" | | 
 | 25201 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25202 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25203 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25204 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25205 |   	  s/.*/./; q'` | 
 | 25206 |   { if $as_mkdir_p; then | 
 | 25207 |     mkdir -p "$ac_dest_dir" | 
 | 25208 |   else | 
 | 25209 |     as_dir="$ac_dest_dir" | 
 | 25210 |     as_dirs= | 
 | 25211 |     while test ! -d "$as_dir"; do | 
 | 25212 |       as_dirs="$as_dir $as_dirs" | 
 | 25213 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 25214 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25215 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 25216 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 25217 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 25218 | 	 .     : '\(.\)' 2>/dev/null || | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25219 | echo X"$as_dir" | | 
 | 25220 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25221 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25222 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25223 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25224 |   	  s/.*/./; q'` | 
 | 25225 |     done | 
 | 25226 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 25227 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | 
 | 25228 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | 
 | 25229 |    { (exit 1); exit 1; }; }; } | 
 | 25230 |  | 
 | 25231 |   ac_builddir=. | 
 | 25232 |  | 
 | 25233 | if test "$ac_dest_dir" != .; then | 
 | 25234 |   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | 
 | 25235 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 25236 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 25237 | else | 
 | 25238 |   ac_dir_suffix= ac_top_builddir= | 
 | 25239 | fi | 
 | 25240 |  | 
 | 25241 | case $srcdir in | 
 | 25242 |   .)  # No --srcdir option.  We are building in place. | 
 | 25243 |     ac_srcdir=. | 
 | 25244 |     if test -z "$ac_top_builddir"; then | 
 | 25245 |        ac_top_srcdir=. | 
 | 25246 |     else | 
 | 25247 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 25248 |     fi ;; | 
 | 25249 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 25250 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 25251 |     ac_top_srcdir=$srcdir ;; | 
 | 25252 |   *) # Relative path. | 
 | 25253 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 25254 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 25255 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25256 |  | 
 | 25257 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 25258 | # the directories may not exist. | 
 | 25259 | case `pwd` in | 
 | 25260 | .) ac_abs_builddir="$ac_dest_dir";; | 
 | 25261 | *) | 
 | 25262 |   case "$ac_dest_dir" in | 
 | 25263 |   .) ac_abs_builddir=`pwd`;; | 
 | 25264 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | 
 | 25265 |   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | 
 | 25266 |   esac;; | 
 | 25267 | esac | 
 | 25268 | case $ac_abs_builddir in | 
 | 25269 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25270 | *) | 
 | 25271 |   case ${ac_top_builddir}. in | 
 | 25272 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 25273 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25274 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 25275 |   esac;; | 
 | 25276 | esac | 
 | 25277 | case $ac_abs_builddir in | 
 | 25278 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 25279 | *) | 
 | 25280 |   case $ac_srcdir in | 
 | 25281 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 25282 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 25283 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 25284 |   esac;; | 
 | 25285 | esac | 
 | 25286 | case $ac_abs_builddir in | 
 | 25287 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25288 | *) | 
 | 25289 |   case $ac_top_srcdir in | 
 | 25290 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 25291 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25292 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 25293 |   esac;; | 
 | 25294 | esac | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25295 |  | 
 | 25296 |  | 
 | 25297 |   case $srcdir in | 
 | 25298 |   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | 
 | 25299 |       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | 
 | 25300 |   esac | 
 | 25301 |  | 
 | 25302 |   # Try a symlink, then a hard link, then a copy. | 
 | 25303 |   ln -s $ac_rel_source $ac_dest 2>/dev/null || | 
 | 25304 |     ln $srcdir/$ac_source $ac_dest 2>/dev/null || | 
 | 25305 |     cp -p $srcdir/$ac_source $ac_dest || | 
 | 25306 |     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | 
 | 25307 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | 
 | 25308 |    { (exit 1); exit 1; }; } | 
 | 25309 | done | 
 | 25310 | _ACEOF | 
 | 25311 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25312 |  | 
 | 25313 | # | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25314 | # CONFIG_COMMANDS section. | 
 | 25315 | # | 
 | 25316 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | 
 | 25317 |   ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
 | 25318 |   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 25319 |   ac_dir=`(dirname "$ac_dest") 2>/dev/null || | 
 | 25320 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25321 | 	 X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
 | 25322 | 	 X"$ac_dest" : 'X\(//\)$' \| \ | 
 | 25323 | 	 X"$ac_dest" : 'X\(/\)' \| \ | 
 | 25324 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25325 | echo X"$ac_dest" | | 
 | 25326 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25327 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25328 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25329 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25330 |   	  s/.*/./; q'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25331 |   { if $as_mkdir_p; then | 
 | 25332 |     mkdir -p "$ac_dir" | 
 | 25333 |   else | 
 | 25334 |     as_dir="$ac_dir" | 
 | 25335 |     as_dirs= | 
 | 25336 |     while test ! -d "$as_dir"; do | 
 | 25337 |       as_dirs="$as_dir $as_dirs" | 
 | 25338 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 25339 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 25340 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 25341 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 25342 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 25343 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 25344 | echo X"$as_dir" | | 
 | 25345 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25346 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25347 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25348 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25349 |   	  s/.*/./; q'` | 
 | 25350 |     done | 
 | 25351 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 25352 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 25353 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 25354 |    { (exit 1); exit 1; }; }; } | 
 | 25355 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25356 |   ac_builddir=. | 
 | 25357 |  | 
 | 25358 | if test "$ac_dir" != .; then | 
 | 25359 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 25360 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 25361 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 25362 | else | 
 | 25363 |   ac_dir_suffix= ac_top_builddir= | 
 | 25364 | fi | 
 | 25365 |  | 
 | 25366 | case $srcdir in | 
 | 25367 |   .)  # No --srcdir option.  We are building in place. | 
 | 25368 |     ac_srcdir=. | 
 | 25369 |     if test -z "$ac_top_builddir"; then | 
 | 25370 |        ac_top_srcdir=. | 
 | 25371 |     else | 
 | 25372 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 25373 |     fi ;; | 
 | 25374 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 25375 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 25376 |     ac_top_srcdir=$srcdir ;; | 
 | 25377 |   *) # Relative path. | 
 | 25378 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 25379 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 25380 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25381 |  | 
 | 25382 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 25383 | # the directories may not exist. | 
 | 25384 | case `pwd` in | 
 | 25385 | .) ac_abs_builddir="$ac_dir";; | 
 | 25386 | *) | 
 | 25387 |   case "$ac_dir" in | 
 | 25388 |   .) ac_abs_builddir=`pwd`;; | 
 | 25389 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 25390 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 25391 |   esac;; | 
 | 25392 | esac | 
 | 25393 | case $ac_abs_builddir in | 
 | 25394 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25395 | *) | 
 | 25396 |   case ${ac_top_builddir}. in | 
 | 25397 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 25398 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25399 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 25400 |   esac;; | 
 | 25401 | esac | 
 | 25402 | case $ac_abs_builddir in | 
 | 25403 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 25404 | *) | 
 | 25405 |   case $ac_srcdir in | 
 | 25406 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 25407 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 25408 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 25409 |   esac;; | 
 | 25410 | esac | 
 | 25411 | case $ac_abs_builddir in | 
 | 25412 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25413 | *) | 
 | 25414 |   case $ac_top_srcdir in | 
 | 25415 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 25416 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25417 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 25418 |   esac;; | 
 | 25419 | esac | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25420 |  | 
 | 25421 |  | 
 | 25422 |   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 
 | 25423 | echo "$as_me: executing $ac_dest commands" >&6;} | 
 | 25424 |   case $ac_dest in | 
 | 25425 |     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; | 
 | 25426 |     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 25427 |     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25428 |     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25429 |     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25430 |     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; | 
 | 25431 |     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 25432 |     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; | 
 | 25433 |     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25434 |     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25435 |     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25436 |     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25437 |   esac | 
 | 25438 | done | 
 | 25439 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25440 |  | 
 | 25441 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25442 |  | 
 | 25443 | { (exit 0); exit 0; } | 
 | 25444 | _ACEOF | 
 | 25445 | chmod +x $CONFIG_STATUS | 
 | 25446 | ac_clean_files=$ac_clean_files_save | 
 | 25447 |  | 
 | 25448 |  | 
 | 25449 | # configure is writing to config.log, and then calls config.status. | 
 | 25450 | # config.status does its own redirection, appending to config.log. | 
 | 25451 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 25452 | # by configure, so config.status won't be able to write to it; its | 
 | 25453 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 25454 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 25455 | # appended to by config.status.  When coming back to configure, we | 
 | 25456 | # need to make the FD available again. | 
 | 25457 | if test "$no_create" != yes; then | 
 | 25458 |   ac_cs_success=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25459 |   ac_config_status_args= | 
 | 25460 |   test "$silent" = yes && | 
 | 25461 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25462 |   exec 5>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25463 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25464 |   exec 5>>config.log | 
 | 25465 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 25466 |   # would make configure fail if this is the last instruction. | 
 | 25467 |   $ac_cs_success || { (exit 1); exit 1; } | 
 | 25468 | fi | 
 | 25469 |  | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25470 | # | 
 | 25471 | # CONFIG_SUBDIRS section. | 
 | 25472 | # | 
 | 25473 | if test "$no_recursion" != yes; then | 
 | 25474 |  | 
 | 25475 |   # Remove --cache-file and --srcdir arguments so they do not pile up. | 
 | 25476 |   ac_sub_configure_args= | 
 | 25477 |   ac_prev= | 
 | 25478 |   for ac_arg in $ac_configure_args; do | 
 | 25479 |     if test -n "$ac_prev"; then | 
 | 25480 |       ac_prev= | 
 | 25481 |       continue | 
 | 25482 |     fi | 
 | 25483 |     case $ac_arg in | 
 | 25484 |     -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 25485 |     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 25486 |       ac_prev=cache_file ;; | 
 | 25487 |     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 25488 |     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
 | 25489 |     | --c=*) | 
 | 25490 |       ;; | 
 | 25491 |     --config-cache | -C) | 
 | 25492 |       ;; | 
 | 25493 |     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 25494 |       ac_prev=srcdir ;; | 
 | 25495 |     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 25496 |       ;; | 
 | 25497 |     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 25498 |       ac_prev=prefix ;; | 
 | 25499 |     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 25500 |       ;; | 
 | 25501 |     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
 | 25502 |     esac | 
 | 25503 |   done | 
 | 25504 |  | 
 | 25505 |   # Always prepend --prefix to ensure using the same prefix | 
 | 25506 |   # in subdir configurations. | 
 | 25507 |   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | 
 | 25508 |  | 
 | 25509 |   ac_popdir=`pwd` | 
 | 25510 |   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
 | 25511 |  | 
 | 25512 |     # Do not complain, so a configure script can configure whichever | 
 | 25513 |     # parts of a large source tree are present. | 
 | 25514 |     test -d $srcdir/$ac_dir || continue | 
 | 25515 |  | 
 | 25516 |     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | 
 | 25517 | echo "$as_me: configuring in $ac_dir" >&6;} | 
 | 25518 |     { if $as_mkdir_p; then | 
 | 25519 |     mkdir -p "$ac_dir" | 
 | 25520 |   else | 
 | 25521 |     as_dir="$ac_dir" | 
 | 25522 |     as_dirs= | 
 | 25523 |     while test ! -d "$as_dir"; do | 
 | 25524 |       as_dirs="$as_dir $as_dirs" | 
 | 25525 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 25526 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25527 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 25528 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 25529 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 25530 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25531 | echo X"$as_dir" | | 
 | 25532 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25533 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25534 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25535 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25536 |   	  s/.*/./; q'` | 
 | 25537 |     done | 
 | 25538 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 25539 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 25540 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 25541 |    { (exit 1); exit 1; }; }; } | 
 | 25542 |  | 
 | 25543 |     ac_builddir=. | 
 | 25544 |  | 
 | 25545 | if test "$ac_dir" != .; then | 
 | 25546 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 25547 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 25548 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 25549 | else | 
 | 25550 |   ac_dir_suffix= ac_top_builddir= | 
 | 25551 | fi | 
 | 25552 |  | 
 | 25553 | case $srcdir in | 
 | 25554 |   .)  # No --srcdir option.  We are building in place. | 
 | 25555 |     ac_srcdir=. | 
 | 25556 |     if test -z "$ac_top_builddir"; then | 
 | 25557 |        ac_top_srcdir=. | 
 | 25558 |     else | 
 | 25559 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 25560 |     fi ;; | 
 | 25561 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 25562 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 25563 |     ac_top_srcdir=$srcdir ;; | 
 | 25564 |   *) # Relative path. | 
 | 25565 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 25566 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 25567 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25568 |  | 
 | 25569 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 25570 | # the directories may not exist. | 
 | 25571 | case `pwd` in | 
 | 25572 | .) ac_abs_builddir="$ac_dir";; | 
 | 25573 | *) | 
 | 25574 |   case "$ac_dir" in | 
 | 25575 |   .) ac_abs_builddir=`pwd`;; | 
 | 25576 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 25577 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 25578 |   esac;; | 
 | 25579 | esac | 
 | 25580 | case $ac_abs_builddir in | 
 | 25581 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25582 | *) | 
 | 25583 |   case ${ac_top_builddir}. in | 
 | 25584 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 25585 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25586 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 25587 |   esac;; | 
 | 25588 | esac | 
 | 25589 | case $ac_abs_builddir in | 
 | 25590 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 25591 | *) | 
 | 25592 |   case $ac_srcdir in | 
 | 25593 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 25594 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 25595 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 25596 |   esac;; | 
 | 25597 | esac | 
 | 25598 | case $ac_abs_builddir in | 
 | 25599 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25600 | *) | 
 | 25601 |   case $ac_top_srcdir in | 
 | 25602 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 25603 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25604 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 25605 |   esac;; | 
 | 25606 | esac | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25607 |  | 
 | 25608 |  | 
 | 25609 |     cd $ac_dir | 
 | 25610 |  | 
 | 25611 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 25612 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 25613 |       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | 
 | 25614 |     elif test -f $ac_srcdir/configure; then | 
 | 25615 |       ac_sub_configure="$SHELL '$ac_srcdir/configure'" | 
 | 25616 |     elif test -f $ac_srcdir/configure.in; then | 
 | 25617 |       ac_sub_configure=$ac_configure | 
 | 25618 |     else | 
 | 25619 |       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
 | 25620 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
 | 25621 |       ac_sub_configure= | 
 | 25622 |     fi | 
 | 25623 |  | 
 | 25624 |     # The recursion is here. | 
 | 25625 |     if test -n "$ac_sub_configure"; then | 
 | 25626 |       # Make the cache file name correct relative to the subdirectory. | 
 | 25627 |       case $cache_file in | 
 | 25628 |       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
 | 25629 |       *) # Relative path. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25630 | 	ac_sub_cache_file=$ac_top_builddir$cache_file ;; | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25631 |       esac | 
 | 25632 |  | 
 | 25633 |       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
 | 25634 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
 | 25635 |       # The eval makes quoting arguments work. | 
 | 25636 |       eval $ac_sub_configure $ac_sub_configure_args \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25637 | 	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | 
 | 25638 | 	{ { 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] | 25639 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
 | 25640 |    { (exit 1); exit 1; }; } | 
 | 25641 |     fi | 
 | 25642 |  | 
 | 25643 |     cd $ac_popdir | 
 | 25644 |   done | 
 | 25645 | fi | 
 | 25646 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 25647 |  | 
 | 25648 | if test $llvmgccwarn = yes | 
 | 25649 | then | 
 | 25650 | 	{ echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 | 
 | 25651 | echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} | 
 | 25652 | 	{ echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 | 
 | 25653 | echo "$as_me: WARNING: ***** appear to be working." >&2;} | 
 | 25654 | 	{ echo "$as_me:$LINENO: WARNING: ***** " >&5 | 
 | 25655 | echo "$as_me: WARNING: ***** " >&2;} | 
 | 25656 | 	{ echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 | 
 | 25657 | echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} | 
 | 25658 | 	{ echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 | 
 | 25659 | echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} | 
 | 25660 | 	{ echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 | 
 | 25661 | echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} | 
 | 25662 | fi | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 25663 |  |