| 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 | abec8f9 | 2004-10-27 23:03:44 +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 | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 424 | PACKAGE_NAME='llvm' | 
| Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 425 | PACKAGE_TARNAME='-llvm-' | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 426 | PACKAGE_VERSION='1.4' | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 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 | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 439 | ac_subdirs_all="$ac_subdirs_all projects/poolalloc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 440 | # Factoring default headers for most tests. | 
 | 441 | ac_includes_default="\ | 
 | 442 | #include <stdio.h> | 
 | 443 | #if HAVE_SYS_TYPES_H | 
 | 444 | # include <sys/types.h> | 
 | 445 | #endif | 
 | 446 | #if HAVE_SYS_STAT_H | 
 | 447 | # include <sys/stat.h> | 
 | 448 | #endif | 
 | 449 | #if STDC_HEADERS | 
 | 450 | # include <stdlib.h> | 
 | 451 | # include <stddef.h> | 
 | 452 | #else | 
 | 453 | # if HAVE_STDLIB_H | 
 | 454 | #  include <stdlib.h> | 
 | 455 | # endif | 
 | 456 | #endif | 
 | 457 | #if HAVE_STRING_H | 
 | 458 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
 | 459 | #  include <memory.h> | 
 | 460 | # endif | 
 | 461 | # include <string.h> | 
 | 462 | #endif | 
 | 463 | #if HAVE_STRINGS_H | 
 | 464 | # include <strings.h> | 
 | 465 | #endif | 
 | 466 | #if HAVE_INTTYPES_H | 
 | 467 | # include <inttypes.h> | 
 | 468 | #else | 
 | 469 | # if HAVE_STDINT_H | 
 | 470 | #  include <stdint.h> | 
 | 471 | # endif | 
 | 472 | #endif | 
 | 473 | #if HAVE_UNISTD_H | 
 | 474 | # include <unistd.h> | 
 | 475 | #endif" | 
 | 476 |  | 
| Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 477 | 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 TAR DOT ETAGS ETAGSFLAGS PYTHON QMTEST RUNTEST HAVE_ZLIB HAVE_BZIP2 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] | 478 | ac_subst_files='' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 479 |  | 
 | 480 | # Initialize some variables set by options. | 
 | 481 | ac_init_help= | 
 | 482 | ac_init_version=false | 
 | 483 | # The variables have the same names as the options, with | 
 | 484 | # dashes changed to underlines. | 
 | 485 | cache_file=/dev/null | 
 | 486 | exec_prefix=NONE | 
 | 487 | no_create= | 
 | 488 | no_recursion= | 
 | 489 | prefix=NONE | 
 | 490 | program_prefix=NONE | 
 | 491 | program_suffix=NONE | 
 | 492 | program_transform_name=s,x,x, | 
 | 493 | silent= | 
 | 494 | site= | 
 | 495 | srcdir= | 
 | 496 | verbose= | 
 | 497 | x_includes=NONE | 
 | 498 | x_libraries=NONE | 
 | 499 |  | 
 | 500 | # Installation directory options. | 
 | 501 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 502 | # and all the variables that are supposed to be based on exec_prefix | 
 | 503 | # by default will actually change. | 
 | 504 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
 | 505 | bindir='${exec_prefix}/bin' | 
 | 506 | sbindir='${exec_prefix}/sbin' | 
 | 507 | libexecdir='${exec_prefix}/libexec' | 
 | 508 | datadir='${prefix}/share' | 
 | 509 | sysconfdir='${prefix}/etc' | 
 | 510 | sharedstatedir='${prefix}/com' | 
 | 511 | localstatedir='${prefix}/var' | 
 | 512 | libdir='${exec_prefix}/lib' | 
 | 513 | includedir='${prefix}/include' | 
 | 514 | oldincludedir='/usr/include' | 
 | 515 | infodir='${prefix}/info' | 
 | 516 | mandir='${prefix}/man' | 
 | 517 |  | 
 | 518 | ac_prev= | 
 | 519 | for ac_option | 
 | 520 | do | 
 | 521 |   # If the previous option needs an argument, assign it. | 
 | 522 |   if test -n "$ac_prev"; then | 
 | 523 |     eval "$ac_prev=\$ac_option" | 
 | 524 |     ac_prev= | 
 | 525 |     continue | 
 | 526 |   fi | 
 | 527 |  | 
 | 528 |   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
 | 529 |  | 
 | 530 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 531 |  | 
 | 532 |   case $ac_option in | 
 | 533 |  | 
 | 534 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 535 |     ac_prev=bindir ;; | 
 | 536 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 537 |     bindir=$ac_optarg ;; | 
 | 538 |  | 
 | 539 |   -build | --build | --buil | --bui | --bu) | 
 | 540 |     ac_prev=build_alias ;; | 
 | 541 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
 | 542 |     build_alias=$ac_optarg ;; | 
 | 543 |  | 
 | 544 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 545 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 546 |     ac_prev=cache_file ;; | 
 | 547 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 548 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 549 |     cache_file=$ac_optarg ;; | 
 | 550 |  | 
 | 551 |   --config-cache | -C) | 
 | 552 |     cache_file=config.cache ;; | 
 | 553 |  | 
 | 554 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 555 |     ac_prev=datadir ;; | 
 | 556 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 557 |   | --da=*) | 
 | 558 |     datadir=$ac_optarg ;; | 
 | 559 |  | 
 | 560 |   -disable-* | --disable-*) | 
 | 561 |     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
 | 562 |     # Reject names that are not valid shell variable names. | 
 | 563 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 564 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 565 |    { (exit 1); exit 1; }; } | 
 | 566 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 567 |     eval "enable_$ac_feature=no" ;; | 
 | 568 |  | 
 | 569 |   -enable-* | --enable-*) | 
 | 570 |     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
 | 571 |     # Reject names that are not valid shell variable names. | 
 | 572 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 573 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 574 |    { (exit 1); exit 1; }; } | 
 | 575 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 576 |     case $ac_option in | 
 | 577 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 578 |       *) ac_optarg=yes ;; | 
 | 579 |     esac | 
 | 580 |     eval "enable_$ac_feature='$ac_optarg'" ;; | 
 | 581 |  | 
 | 582 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 583 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 584 |   | --exec | --exe | --ex) | 
 | 585 |     ac_prev=exec_prefix ;; | 
 | 586 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 587 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 588 |   | --exec=* | --exe=* | --ex=*) | 
 | 589 |     exec_prefix=$ac_optarg ;; | 
 | 590 |  | 
 | 591 |   -gas | --gas | --ga | --g) | 
 | 592 |     # Obsolete; use --with-gas. | 
 | 593 |     with_gas=yes ;; | 
 | 594 |  | 
 | 595 |   -help | --help | --hel | --he | -h) | 
 | 596 |     ac_init_help=long ;; | 
 | 597 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 598 |     ac_init_help=recursive ;; | 
 | 599 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 600 |     ac_init_help=short ;; | 
 | 601 |  | 
 | 602 |   -host | --host | --hos | --ho) | 
 | 603 |     ac_prev=host_alias ;; | 
 | 604 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 605 |     host_alias=$ac_optarg ;; | 
 | 606 |  | 
 | 607 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 608 |   | --includ | --inclu | --incl | --inc) | 
 | 609 |     ac_prev=includedir ;; | 
 | 610 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 611 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 612 |     includedir=$ac_optarg ;; | 
 | 613 |  | 
 | 614 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 615 |     ac_prev=infodir ;; | 
 | 616 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 617 |     infodir=$ac_optarg ;; | 
 | 618 |  | 
 | 619 |   -libdir | --libdir | --libdi | --libd) | 
 | 620 |     ac_prev=libdir ;; | 
 | 621 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 622 |     libdir=$ac_optarg ;; | 
 | 623 |  | 
 | 624 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 625 |   | --libexe | --libex | --libe) | 
 | 626 |     ac_prev=libexecdir ;; | 
 | 627 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 628 |   | --libexe=* | --libex=* | --libe=*) | 
 | 629 |     libexecdir=$ac_optarg ;; | 
 | 630 |  | 
 | 631 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 632 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 633 |   | --locals | --local | --loca | --loc | --lo) | 
 | 634 |     ac_prev=localstatedir ;; | 
 | 635 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 636 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 637 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
 | 638 |     localstatedir=$ac_optarg ;; | 
 | 639 |  | 
 | 640 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 641 |     ac_prev=mandir ;; | 
 | 642 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 643 |     mandir=$ac_optarg ;; | 
 | 644 |  | 
 | 645 |   -nfp | --nfp | --nf) | 
 | 646 |     # Obsolete; use --without-fp. | 
 | 647 |     with_fp=no ;; | 
 | 648 |  | 
 | 649 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 650 |   | --no-cr | --no-c | -n) | 
 | 651 |     no_create=yes ;; | 
 | 652 |  | 
 | 653 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 654 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 655 |     no_recursion=yes ;; | 
 | 656 |  | 
 | 657 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 658 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 659 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 660 |     ac_prev=oldincludedir ;; | 
 | 661 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 662 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 663 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 664 |     oldincludedir=$ac_optarg ;; | 
 | 665 |  | 
 | 666 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 667 |     ac_prev=prefix ;; | 
 | 668 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 669 |     prefix=$ac_optarg ;; | 
 | 670 |  | 
 | 671 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 672 |   | --program-pre | --program-pr | --program-p) | 
 | 673 |     ac_prev=program_prefix ;; | 
 | 674 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 675 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 676 |     program_prefix=$ac_optarg ;; | 
 | 677 |  | 
 | 678 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 679 |   | --program-suf | --program-su | --program-s) | 
 | 680 |     ac_prev=program_suffix ;; | 
 | 681 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 682 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 683 |     program_suffix=$ac_optarg ;; | 
 | 684 |  | 
 | 685 |   -program-transform-name | --program-transform-name \ | 
 | 686 |   | --program-transform-nam | --program-transform-na \ | 
 | 687 |   | --program-transform-n | --program-transform- \ | 
 | 688 |   | --program-transform | --program-transfor \ | 
 | 689 |   | --program-transfo | --program-transf \ | 
 | 690 |   | --program-trans | --program-tran \ | 
 | 691 |   | --progr-tra | --program-tr | --program-t) | 
 | 692 |     ac_prev=program_transform_name ;; | 
 | 693 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 694 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 695 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 696 |   | --program-transform=* | --program-transfor=* \ | 
 | 697 |   | --program-transfo=* | --program-transf=* \ | 
 | 698 |   | --program-trans=* | --program-tran=* \ | 
 | 699 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 700 |     program_transform_name=$ac_optarg ;; | 
 | 701 |  | 
 | 702 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 703 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 704 |     silent=yes ;; | 
 | 705 |  | 
 | 706 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 707 |     ac_prev=sbindir ;; | 
 | 708 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 709 |   | --sbi=* | --sb=*) | 
 | 710 |     sbindir=$ac_optarg ;; | 
 | 711 |  | 
 | 712 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 713 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 714 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 715 |   | --sha | --sh) | 
 | 716 |     ac_prev=sharedstatedir ;; | 
 | 717 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 718 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 719 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 720 |   | --sha=* | --sh=*) | 
 | 721 |     sharedstatedir=$ac_optarg ;; | 
 | 722 |  | 
 | 723 |   -site | --site | --sit) | 
 | 724 |     ac_prev=site ;; | 
 | 725 |   -site=* | --site=* | --sit=*) | 
 | 726 |     site=$ac_optarg ;; | 
 | 727 |  | 
 | 728 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 729 |     ac_prev=srcdir ;; | 
 | 730 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 731 |     srcdir=$ac_optarg ;; | 
 | 732 |  | 
 | 733 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 734 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 735 |     ac_prev=sysconfdir ;; | 
 | 736 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 737 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 738 |     sysconfdir=$ac_optarg ;; | 
 | 739 |  | 
 | 740 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 741 |     ac_prev=target_alias ;; | 
 | 742 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 743 |     target_alias=$ac_optarg ;; | 
 | 744 |  | 
 | 745 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 746 |     verbose=yes ;; | 
 | 747 |  | 
 | 748 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 749 |     ac_init_version=: ;; | 
 | 750 |  | 
 | 751 |   -with-* | --with-*) | 
 | 752 |     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
 | 753 |     # Reject names that are not valid shell variable names. | 
 | 754 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 755 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 756 |    { (exit 1); exit 1; }; } | 
 | 757 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 758 |     case $ac_option in | 
 | 759 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 760 |       *) ac_optarg=yes ;; | 
 | 761 |     esac | 
 | 762 |     eval "with_$ac_package='$ac_optarg'" ;; | 
 | 763 |  | 
 | 764 |   -without-* | --without-*) | 
 | 765 |     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
 | 766 |     # Reject names that are not valid shell variable names. | 
 | 767 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 768 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 769 |    { (exit 1); exit 1; }; } | 
 | 770 |     ac_package=`echo $ac_package | sed 's/-/_/g'` | 
 | 771 |     eval "with_$ac_package=no" ;; | 
 | 772 |  | 
 | 773 |   --x) | 
 | 774 |     # Obsolete; use --with-x. | 
 | 775 |     with_x=yes ;; | 
 | 776 |  | 
 | 777 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 778 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 779 |     ac_prev=x_includes ;; | 
 | 780 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 781 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 782 |     x_includes=$ac_optarg ;; | 
 | 783 |  | 
 | 784 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 785 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 786 |     ac_prev=x_libraries ;; | 
 | 787 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 788 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 789 |     x_libraries=$ac_optarg ;; | 
 | 790 |  | 
 | 791 |   -*) { echo "$as_me: error: unrecognized option: $ac_option | 
 | 792 | Try \`$0 --help' for more information." >&2 | 
 | 793 |    { (exit 1); exit 1; }; } | 
 | 794 |     ;; | 
 | 795 |  | 
 | 796 |   *=*) | 
 | 797 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 798 |     # Reject names that are not valid shell variable names. | 
 | 799 |     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
 | 800 |       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
 | 801 |    { (exit 1); exit 1; }; } | 
 | 802 |     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
 | 803 |     eval "$ac_envvar='$ac_optarg'" | 
 | 804 |     export $ac_envvar ;; | 
 | 805 |  | 
 | 806 |   *) | 
 | 807 |     # FIXME: should be removed in autoconf 3.0. | 
 | 808 |     echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
 | 809 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
 | 810 |       echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
 | 811 |     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
 | 812 |     ;; | 
 | 813 |  | 
 | 814 |   esac | 
 | 815 | done | 
 | 816 |  | 
 | 817 | if test -n "$ac_prev"; then | 
 | 818 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
 | 819 |   { echo "$as_me: error: missing argument to $ac_option" >&2 | 
 | 820 |    { (exit 1); exit 1; }; } | 
 | 821 | fi | 
 | 822 |  | 
 | 823 | # Be sure to have absolute paths. | 
 | 824 | for ac_var in exec_prefix prefix | 
 | 825 | do | 
 | 826 |   eval ac_val=$`echo $ac_var` | 
 | 827 |   case $ac_val in | 
 | 828 |     [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
 | 829 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 830 |    { (exit 1); exit 1; }; };; | 
 | 831 |   esac | 
 | 832 | done | 
 | 833 |  | 
 | 834 | # Be sure to have absolute paths. | 
 | 835 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 836 | 	      localstatedir libdir includedir oldincludedir infodir mandir | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 837 | do | 
 | 838 |   eval ac_val=$`echo $ac_var` | 
 | 839 |   case $ac_val in | 
 | 840 |     [\\/$]* | ?:[\\/]* ) ;; | 
 | 841 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 842 |    { (exit 1); exit 1; }; };; | 
 | 843 |   esac | 
 | 844 | done | 
 | 845 |  | 
 | 846 | # There might be people who depend on the old broken behavior: `$host' | 
 | 847 | # used to hold the argument of --host etc. | 
 | 848 | # FIXME: To remove some day. | 
 | 849 | build=$build_alias | 
 | 850 | host=$host_alias | 
 | 851 | target=$target_alias | 
 | 852 |  | 
 | 853 | # FIXME: To remove some day. | 
 | 854 | if test "x$host_alias" != x; then | 
 | 855 |   if test "x$build_alias" = x; then | 
 | 856 |     cross_compiling=maybe | 
 | 857 |     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
 | 858 |     If a cross compiler is detected then cross compile mode will be used." >&2 | 
 | 859 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 860 |     cross_compiling=yes | 
 | 861 |   fi | 
 | 862 | fi | 
 | 863 |  | 
 | 864 | ac_tool_prefix= | 
 | 865 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 866 |  | 
 | 867 | test "$silent" = yes && exec 6>/dev/null | 
 | 868 |  | 
 | 869 |  | 
 | 870 | # Find the source files, if location was not specified. | 
 | 871 | if test -z "$srcdir"; then | 
 | 872 |   ac_srcdir_defaulted=yes | 
 | 873 |   # Try the directory containing this script, then its parent. | 
 | 874 |   ac_confdir=`(dirname "$0") 2>/dev/null || | 
 | 875 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 876 | 	 X"$0" : 'X\(//\)[^/]' \| \ | 
 | 877 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 878 | 	 X"$0" : 'X\(/\)' \| \ | 
 | 879 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 880 | echo X"$0" | | 
 | 881 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 882 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 883 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 884 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 885 |   	  s/.*/./; q'` | 
 | 886 |   srcdir=$ac_confdir | 
 | 887 |   if test ! -r $srcdir/$ac_unique_file; then | 
 | 888 |     srcdir=.. | 
 | 889 |   fi | 
 | 890 | else | 
 | 891 |   ac_srcdir_defaulted=no | 
 | 892 | fi | 
 | 893 | if test ! -r $srcdir/$ac_unique_file; then | 
 | 894 |   if test "$ac_srcdir_defaulted" = yes; then | 
 | 895 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
 | 896 |    { (exit 1); exit 1; }; } | 
 | 897 |   else | 
 | 898 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
 | 899 |    { (exit 1); exit 1; }; } | 
 | 900 |   fi | 
 | 901 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 902 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
 | 903 |   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
 | 904 |    { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 905 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
 | 906 | ac_env_build_alias_set=${build_alias+set} | 
 | 907 | ac_env_build_alias_value=$build_alias | 
 | 908 | ac_cv_env_build_alias_set=${build_alias+set} | 
 | 909 | ac_cv_env_build_alias_value=$build_alias | 
 | 910 | ac_env_host_alias_set=${host_alias+set} | 
 | 911 | ac_env_host_alias_value=$host_alias | 
 | 912 | ac_cv_env_host_alias_set=${host_alias+set} | 
 | 913 | ac_cv_env_host_alias_value=$host_alias | 
 | 914 | ac_env_target_alias_set=${target_alias+set} | 
 | 915 | ac_env_target_alias_value=$target_alias | 
 | 916 | ac_cv_env_target_alias_set=${target_alias+set} | 
 | 917 | ac_cv_env_target_alias_value=$target_alias | 
 | 918 | ac_env_CXX_set=${CXX+set} | 
 | 919 | ac_env_CXX_value=$CXX | 
 | 920 | ac_cv_env_CXX_set=${CXX+set} | 
 | 921 | ac_cv_env_CXX_value=$CXX | 
 | 922 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 923 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
 | 924 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 925 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
 | 926 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 927 | ac_env_LDFLAGS_value=$LDFLAGS | 
 | 928 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 929 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
 | 930 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 931 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
 | 932 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 933 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
 | 934 | ac_env_CC_set=${CC+set} | 
 | 935 | ac_env_CC_value=$CC | 
 | 936 | ac_cv_env_CC_set=${CC+set} | 
 | 937 | ac_cv_env_CC_value=$CC | 
 | 938 | ac_env_CFLAGS_set=${CFLAGS+set} | 
 | 939 | ac_env_CFLAGS_value=$CFLAGS | 
 | 940 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
 | 941 | ac_cv_env_CFLAGS_value=$CFLAGS | 
 | 942 | ac_env_CPP_set=${CPP+set} | 
 | 943 | ac_env_CPP_value=$CPP | 
 | 944 | ac_cv_env_CPP_set=${CPP+set} | 
 | 945 | ac_cv_env_CPP_value=$CPP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 946 | ac_env_CXXCPP_set=${CXXCPP+set} | 
 | 947 | ac_env_CXXCPP_value=$CXXCPP | 
 | 948 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | 
 | 949 | ac_cv_env_CXXCPP_value=$CXXCPP | 
 | 950 | ac_env_F77_set=${F77+set} | 
 | 951 | ac_env_F77_value=$F77 | 
 | 952 | ac_cv_env_F77_set=${F77+set} | 
 | 953 | ac_cv_env_F77_value=$F77 | 
 | 954 | ac_env_FFLAGS_set=${FFLAGS+set} | 
 | 955 | ac_env_FFLAGS_value=$FFLAGS | 
 | 956 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | 
 | 957 | ac_cv_env_FFLAGS_value=$FFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 958 |  | 
 | 959 | # | 
 | 960 | # Report the --help message. | 
 | 961 | # | 
 | 962 | if test "$ac_init_help" = "long"; then | 
 | 963 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 964 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 965 |   cat <<_ACEOF | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 966 | \`configure' configures llvm 1.4 to adapt to many kinds of systems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 967 |  | 
 | 968 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 969 |  | 
 | 970 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 971 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 972 |  | 
 | 973 | Defaults for the options are specified in brackets. | 
 | 974 |  | 
 | 975 | Configuration: | 
 | 976 |   -h, --help              display this help and exit | 
 | 977 |       --help=short        display options specific to this package | 
 | 978 |       --help=recursive    display the short help of all the included packages | 
 | 979 |   -V, --version           display version information and exit | 
 | 980 |   -q, --quiet, --silent   do not print \`checking...' messages | 
 | 981 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 982 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 983 |   -n, --no-create         do not create output files | 
 | 984 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 985 |  | 
 | 986 | _ACEOF | 
 | 987 |  | 
 | 988 |   cat <<_ACEOF | 
 | 989 | Installation directories: | 
 | 990 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 991 | 			  [$ac_default_prefix] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 992 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 993 | 			  [PREFIX] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 |  | 
 | 995 | By default, \`make install' will install all the files in | 
 | 996 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 997 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 998 | for instance \`--prefix=\$HOME'. | 
 | 999 |  | 
 | 1000 | For better control, use the options below. | 
 | 1001 |  | 
 | 1002 | Fine tuning of the installation directories: | 
 | 1003 |   --bindir=DIR           user executables [EPREFIX/bin] | 
 | 1004 |   --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
 | 1005 |   --libexecdir=DIR       program executables [EPREFIX/libexec] | 
 | 1006 |   --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
 | 1007 |   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
 | 1008 |   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
 | 1009 |   --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
 | 1010 |   --libdir=DIR           object code libraries [EPREFIX/lib] | 
 | 1011 |   --includedir=DIR       C header files [PREFIX/include] | 
 | 1012 |   --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
 | 1013 |   --infodir=DIR          info documentation [PREFIX/info] | 
 | 1014 |   --mandir=DIR           man documentation [PREFIX/man] | 
 | 1015 | _ACEOF | 
 | 1016 |  | 
 | 1017 |   cat <<\_ACEOF | 
 | 1018 |  | 
 | 1019 | System types: | 
 | 1020 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1021 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
 | 1022 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
 | 1023 | _ACEOF | 
 | 1024 | fi | 
 | 1025 |  | 
 | 1026 | if test -n "$ac_init_help"; then | 
 | 1027 |   case $ac_init_help in | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1028 |      short | recursive ) echo "Configuration of llvm 1.4:";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1029 |    esac | 
 | 1030 |   cat <<\_ACEOF | 
 | 1031 |  | 
 | 1032 | Optional Features: | 
 | 1033 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1034 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1035 |   --enable-shared[=PKGS] | 
 | 1036 |                           build shared libraries [default=yes] | 
 | 1037 |   --enable-static[=PKGS] | 
 | 1038 |                           build static libraries [default=yes] | 
 | 1039 |   --enable-fast-install[=PKGS] | 
 | 1040 |                           optimize for fast installation [default=yes] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1041 |   --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1042 |   --enable-optimized      Compile with optimizations enabled (default is NO) | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1043 |   --enable-jit            Enable Just In Time Compiling (default is YES) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1044 |  | 
 | 1045 | Optional Packages: | 
 | 1046 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1047 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1048 |   --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
 | 1049 |   --with-pic              try to use only PIC/non-PIC objects [default=use | 
 | 1050 |                           both] | 
 | 1051 |   --with-tags[=TAGS] | 
 | 1052 |                           include additional configurations [automatic] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1053 |   --with-llvmgccdir       Location of LLVM GCC front-end | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1054 |  | 
 | 1055 | Some influential environment variables: | 
 | 1056 |   CXX         C++ compiler command | 
 | 1057 |   CXXFLAGS    C++ compiler flags | 
 | 1058 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1059 |               nonstandard directory <lib dir> | 
 | 1060 |   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
 | 1061 |               headers in a nonstandard directory <include dir> | 
 | 1062 |   CC          C compiler command | 
 | 1063 |   CFLAGS      C compiler flags | 
 | 1064 |   CPP         C preprocessor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1065 |   CXXCPP      C++ preprocessor | 
 | 1066 |   F77         Fortran 77 compiler command | 
 | 1067 |   FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1068 |  | 
 | 1069 | Use these variables to override the choices made by `configure' or to help | 
 | 1070 | it to find libraries and programs with nonstandard names/locations. | 
 | 1071 |  | 
 | 1072 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 1073 | _ACEOF | 
 | 1074 | fi | 
 | 1075 |  | 
 | 1076 | if test "$ac_init_help" = "recursive"; then | 
 | 1077 |   # If there are subdirs, report their specific --help. | 
 | 1078 |   ac_popdir=`pwd` | 
 | 1079 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
 | 1080 |     test -d $ac_dir || continue | 
 | 1081 |     ac_builddir=. | 
 | 1082 |  | 
 | 1083 | if test "$ac_dir" != .; then | 
 | 1084 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 1085 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 1086 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 1087 | else | 
 | 1088 |   ac_dir_suffix= ac_top_builddir= | 
 | 1089 | fi | 
 | 1090 |  | 
 | 1091 | case $srcdir in | 
 | 1092 |   .)  # No --srcdir option.  We are building in place. | 
 | 1093 |     ac_srcdir=. | 
 | 1094 |     if test -z "$ac_top_builddir"; then | 
 | 1095 |        ac_top_srcdir=. | 
 | 1096 |     else | 
 | 1097 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 1098 |     fi ;; | 
 | 1099 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 1100 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 1101 |     ac_top_srcdir=$srcdir ;; | 
 | 1102 |   *) # Relative path. | 
 | 1103 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 1104 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 1105 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1106 |  | 
 | 1107 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 1108 | # the directories may not exist. | 
 | 1109 | case `pwd` in | 
 | 1110 | .) ac_abs_builddir="$ac_dir";; | 
 | 1111 | *) | 
 | 1112 |   case "$ac_dir" in | 
 | 1113 |   .) ac_abs_builddir=`pwd`;; | 
 | 1114 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 1115 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 1116 |   esac;; | 
 | 1117 | esac | 
 | 1118 | case $ac_abs_builddir in | 
 | 1119 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 1120 | *) | 
 | 1121 |   case ${ac_top_builddir}. in | 
 | 1122 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 1123 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 1124 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 1125 |   esac;; | 
 | 1126 | esac | 
 | 1127 | case $ac_abs_builddir in | 
 | 1128 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 1129 | *) | 
 | 1130 |   case $ac_srcdir in | 
 | 1131 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 1132 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 1133 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 1134 |   esac;; | 
 | 1135 | esac | 
 | 1136 | case $ac_abs_builddir in | 
 | 1137 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 1138 | *) | 
 | 1139 |   case $ac_top_srcdir in | 
 | 1140 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 1141 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 1142 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 1143 |   esac;; | 
 | 1144 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1145 |  | 
 | 1146 |     cd $ac_dir | 
 | 1147 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 1148 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 1149 |       echo | 
 | 1150 |       $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
 | 1151 |     elif test -f $ac_srcdir/configure; then | 
 | 1152 |       echo | 
 | 1153 |       $SHELL $ac_srcdir/configure  --help=recursive | 
 | 1154 |     elif test -f $ac_srcdir/configure.ac || | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1155 | 	   test -f $ac_srcdir/configure.in; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 |       echo | 
 | 1157 |       $ac_configure --help | 
 | 1158 |     else | 
 | 1159 |       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
 | 1160 |     fi | 
 | 1161 |     cd $ac_popdir | 
 | 1162 |   done | 
 | 1163 | fi | 
 | 1164 |  | 
 | 1165 | test -n "$ac_init_help" && exit 0 | 
 | 1166 | if $ac_init_version; then | 
 | 1167 |   cat <<\_ACEOF | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1168 | llvm configure 1.4 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1169 | generated by GNU Autoconf 2.59 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1170 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1171 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1172 | This configure script is free software; the Free Software Foundation | 
 | 1173 | gives unlimited permission to copy, distribute and modify it. | 
 | 1174 | _ACEOF | 
 | 1175 |   exit 0 | 
 | 1176 | fi | 
 | 1177 | exec 5>config.log | 
 | 1178 | cat >&5 <<_ACEOF | 
 | 1179 | This file contains any messages produced by compilers while | 
 | 1180 | running configure, to aid debugging if configure makes a mistake. | 
 | 1181 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1182 | It was created by llvm $as_me 1.4, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1183 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1184 |  | 
 | 1185 |   $ $0 $@ | 
 | 1186 |  | 
 | 1187 | _ACEOF | 
 | 1188 | { | 
 | 1189 | cat <<_ASUNAME | 
 | 1190 | ## --------- ## | 
 | 1191 | ## Platform. ## | 
 | 1192 | ## --------- ## | 
 | 1193 |  | 
 | 1194 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 1195 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 1196 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 1197 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 1198 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 1199 |  | 
 | 1200 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 1201 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 1202 |  | 
 | 1203 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 1204 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 1205 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
 | 1206 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
 | 1207 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 1208 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 1209 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 1210 |  | 
 | 1211 | _ASUNAME | 
 | 1212 |  | 
 | 1213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1214 | for as_dir in $PATH | 
 | 1215 | do | 
 | 1216 |   IFS=$as_save_IFS | 
 | 1217 |   test -z "$as_dir" && as_dir=. | 
 | 1218 |   echo "PATH: $as_dir" | 
 | 1219 | done | 
 | 1220 |  | 
 | 1221 | } >&5 | 
 | 1222 |  | 
 | 1223 | cat >&5 <<_ACEOF | 
 | 1224 |  | 
 | 1225 |  | 
 | 1226 | ## ----------- ## | 
 | 1227 | ## Core tests. ## | 
 | 1228 | ## ----------- ## | 
 | 1229 |  | 
 | 1230 | _ACEOF | 
 | 1231 |  | 
 | 1232 |  | 
 | 1233 | # Keep a trace of the command line. | 
 | 1234 | # 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] | 1235 | # 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] | 1236 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1237 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1238 | ac_configure_args= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1239 | ac_configure_args0= | 
 | 1240 | ac_configure_args1= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1241 | ac_sep= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1242 | ac_must_keep_next=false | 
 | 1243 | for ac_pass in 1 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1244 | do | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1245 |   for ac_arg | 
 | 1246 |   do | 
 | 1247 |     case $ac_arg in | 
 | 1248 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 1249 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1250 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 1251 |       continue ;; | 
 | 1252 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1253 |       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1254 |     esac | 
 | 1255 |     case $ac_pass in | 
 | 1256 |     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
 | 1257 |     2) | 
 | 1258 |       ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
 | 1259 |       if test $ac_must_keep_next = true; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1260 | 	ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1261 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1262 | 	case $ac_arg in | 
 | 1263 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 1264 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 1265 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 1266 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 1267 | 	    case "$ac_configure_args0 " in | 
 | 1268 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 1269 | 	    esac | 
 | 1270 | 	    ;; | 
 | 1271 | 	  -* ) ac_must_keep_next=true ;; | 
 | 1272 | 	esac | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1273 |       fi | 
 | 1274 |       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
 | 1275 |       # Get rid of the leading space. | 
 | 1276 |       ac_sep=" " | 
 | 1277 |       ;; | 
 | 1278 |     esac | 
 | 1279 |   done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | done | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1281 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
 | 1282 | $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] | 1283 |  | 
 | 1284 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 1285 | # config.log.  We remove comments because anyway the quotes in there | 
 | 1286 | # would cause problems or look ugly. | 
 | 1287 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
 | 1288 | # such as our DU 5.0 friend, will then `close' the trap. | 
 | 1289 | trap 'exit_status=$? | 
 | 1290 |   # Save into config.log some information that might help in debugging. | 
 | 1291 |   { | 
 | 1292 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1293 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1294 |     cat <<\_ASBOX | 
 | 1295 | ## ---------------- ## | 
 | 1296 | ## Cache variables. ## | 
 | 1297 | ## ---------------- ## | 
 | 1298 | _ASBOX | 
 | 1299 |     echo | 
 | 1300 |     # The following way of writing the cache mishandles newlines in values, | 
 | 1301 | { | 
 | 1302 |   (set) 2>&1 | | 
 | 1303 |     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
 | 1304 |     *ac_space=\ *) | 
 | 1305 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1306 | 	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
 | 1307 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1308 |       ;; | 
 | 1309 |     *) | 
 | 1310 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1311 | 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1312 |       ;; | 
 | 1313 |     esac; | 
 | 1314 | } | 
 | 1315 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1316 |  | 
 | 1317 |     cat <<\_ASBOX | 
 | 1318 | ## ----------------- ## | 
 | 1319 | ## Output variables. ## | 
 | 1320 | ## ----------------- ## | 
 | 1321 | _ASBOX | 
 | 1322 |     echo | 
 | 1323 |     for ac_var in $ac_subst_vars | 
 | 1324 |     do | 
 | 1325 |       eval ac_val=$`echo $ac_var` | 
 | 1326 |       echo "$ac_var='"'"'$ac_val'"'"'" | 
 | 1327 |     done | sort | 
 | 1328 |     echo | 
 | 1329 |  | 
 | 1330 |     if test -n "$ac_subst_files"; then | 
 | 1331 |       cat <<\_ASBOX | 
 | 1332 | ## ------------- ## | 
 | 1333 | ## Output files. ## | 
 | 1334 | ## ------------- ## | 
 | 1335 | _ASBOX | 
 | 1336 |       echo | 
 | 1337 |       for ac_var in $ac_subst_files | 
 | 1338 |       do | 
 | 1339 | 	eval ac_val=$`echo $ac_var` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1340 | 	echo "$ac_var='"'"'$ac_val'"'"'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1341 |       done | sort | 
 | 1342 |       echo | 
 | 1343 |     fi | 
 | 1344 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1345 |     if test -s confdefs.h; then | 
 | 1346 |       cat <<\_ASBOX | 
 | 1347 | ## ----------- ## | 
 | 1348 | ## confdefs.h. ## | 
 | 1349 | ## ----------- ## | 
 | 1350 | _ASBOX | 
 | 1351 |       echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1352 |       sed "/^$/d" confdefs.h | sort | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1353 |       echo | 
 | 1354 |     fi | 
 | 1355 |     test "$ac_signal" != 0 && | 
 | 1356 |       echo "$as_me: caught signal $ac_signal" | 
 | 1357 |     echo "$as_me: exit $exit_status" | 
 | 1358 |   } >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1359 |   rm -f core *.core && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1360 |   rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
 | 1361 |     exit $exit_status | 
 | 1362 |      ' 0 | 
 | 1363 | for ac_signal in 1 2 13 15; do | 
 | 1364 |   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
 | 1365 | done | 
 | 1366 | ac_signal=0 | 
 | 1367 |  | 
 | 1368 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 1369 | rm -rf conftest* confdefs.h | 
 | 1370 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 1371 | echo >confdefs.h | 
 | 1372 |  | 
 | 1373 | # Predefined preprocessor variables. | 
 | 1374 |  | 
 | 1375 | cat >>confdefs.h <<_ACEOF | 
 | 1376 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 1377 | _ACEOF | 
 | 1378 |  | 
 | 1379 |  | 
 | 1380 | cat >>confdefs.h <<_ACEOF | 
 | 1381 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 1382 | _ACEOF | 
 | 1383 |  | 
 | 1384 |  | 
 | 1385 | cat >>confdefs.h <<_ACEOF | 
 | 1386 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 1387 | _ACEOF | 
 | 1388 |  | 
 | 1389 |  | 
 | 1390 | cat >>confdefs.h <<_ACEOF | 
 | 1391 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 1392 | _ACEOF | 
 | 1393 |  | 
 | 1394 |  | 
 | 1395 | cat >>confdefs.h <<_ACEOF | 
 | 1396 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 1397 | _ACEOF | 
 | 1398 |  | 
 | 1399 |  | 
 | 1400 | # Let the site file select an alternate cache file if it wants to. | 
 | 1401 | # Prefer explicitly selected file to automatically selected ones. | 
 | 1402 | if test -z "$CONFIG_SITE"; then | 
 | 1403 |   if test "x$prefix" != xNONE; then | 
 | 1404 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 1405 |   else | 
 | 1406 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 1407 |   fi | 
 | 1408 | fi | 
 | 1409 | for ac_site_file in $CONFIG_SITE; do | 
 | 1410 |   if test -r "$ac_site_file"; then | 
 | 1411 |     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
 | 1412 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
 | 1413 |     sed 's/^/| /' "$ac_site_file" >&5 | 
 | 1414 |     . "$ac_site_file" | 
 | 1415 |   fi | 
 | 1416 | done | 
 | 1417 |  | 
 | 1418 | if test -r "$cache_file"; then | 
 | 1419 |   # Some versions of bash will fail to source /dev/null (special | 
 | 1420 |   # files actually), so we avoid doing that. | 
 | 1421 |   if test -f "$cache_file"; then | 
 | 1422 |     { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
 | 1423 | echo "$as_me: loading cache $cache_file" >&6;} | 
 | 1424 |     case $cache_file in | 
 | 1425 |       [\\/]* | ?:[\\/]* ) . $cache_file;; | 
 | 1426 |       *)                      . ./$cache_file;; | 
 | 1427 |     esac | 
 | 1428 |   fi | 
 | 1429 | else | 
 | 1430 |   { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
 | 1431 | echo "$as_me: creating cache $cache_file" >&6;} | 
 | 1432 |   >$cache_file | 
 | 1433 | fi | 
 | 1434 |  | 
 | 1435 | # Check that the precious variables saved in the cache have kept the same | 
 | 1436 | # value. | 
 | 1437 | ac_cache_corrupted=false | 
 | 1438 | for ac_var in `(set) 2>&1 | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1439 | 	       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] | 1440 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 1441 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
 | 1442 |   eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
 | 1443 |   eval ac_new_val="\$ac_env_${ac_var}_value" | 
 | 1444 |   case $ac_old_set,$ac_new_set in | 
 | 1445 |     set,) | 
 | 1446 |       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 1447 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
 | 1448 |       ac_cache_corrupted=: ;; | 
 | 1449 |     ,set) | 
 | 1450 |       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 1451 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
 | 1452 |       ac_cache_corrupted=: ;; | 
 | 1453 |     ,);; | 
 | 1454 |     *) | 
 | 1455 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1456 | 	{ 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] | 1457 | 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] | 1458 | 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1459 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1460 | 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1461 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1462 | 	ac_cache_corrupted=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1463 |       fi;; | 
 | 1464 |   esac | 
 | 1465 |   # Pass precious variables to config.status. | 
 | 1466 |   if test "$ac_new_set" = set; then | 
 | 1467 |     case $ac_new_val in | 
 | 1468 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1469 |       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1470 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 1471 |     esac | 
 | 1472 |     case " $ac_configure_args " in | 
 | 1473 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
 | 1474 |       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 1475 |     esac | 
 | 1476 |   fi | 
 | 1477 | done | 
 | 1478 | if $ac_cache_corrupted; then | 
 | 1479 |   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
 | 1480 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
 | 1481 |   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
 | 1482 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
 | 1483 |    { (exit 1); exit 1; }; } | 
 | 1484 | fi | 
 | 1485 |  | 
 | 1486 | ac_ext=c | 
 | 1487 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 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 |  | 
 | 1517 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1518 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1519 | ac_aux_dir= | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1520 | for ac_dir in autoconf $srcdir/autoconf; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 |   if test -f $ac_dir/install-sh; then | 
 | 1522 |     ac_aux_dir=$ac_dir | 
 | 1523 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 1524 |     break | 
 | 1525 |   elif test -f $ac_dir/install.sh; then | 
 | 1526 |     ac_aux_dir=$ac_dir | 
 | 1527 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 1528 |     break | 
 | 1529 |   elif test -f $ac_dir/shtool; then | 
 | 1530 |     ac_aux_dir=$ac_dir | 
 | 1531 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 1532 |     break | 
 | 1533 |   fi | 
 | 1534 | done | 
 | 1535 | if test -z "$ac_aux_dir"; then | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1536 |   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 | 
 | 1537 | 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] | 1538 |    { (exit 1); exit 1; }; } | 
 | 1539 | fi | 
 | 1540 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
 | 1541 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
 | 1542 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
 | 1543 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1544 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1545 |  | 
 | 1546 | if test ${srcdir} != "." ; then | 
 | 1547 | 	if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1548 | 		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1549 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
 | 1550 |    { (exit 1); exit 1; }; } | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1551 | 	fi | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1552 | fi | 
 | 1553 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1554 | for i in `ls ${srcdir}/projects` | 
 | 1555 | do | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1556 |   if test -d ${srcdir}/projects/${i} ; then | 
 | 1557 |     case ${i} in | 
 | 1558 |       "CVS") ;; | 
 | 1559 |       "sample") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1560 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1561 | subdirs="$subdirs projects/sample" | 
 | 1562 |     ;; | 
 | 1563 |       "Stacker") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1564 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1565 | subdirs="$subdirs projects/Stacker" | 
 | 1566 |    ;; | 
 | 1567 |       "llvm-test") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1568 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1569 | subdirs="$subdirs projects/llvm-test" | 
 | 1570 |  ;; | 
 | 1571 |       "llvm-reopt") | 
 | 1572 |  | 
 | 1573 | subdirs="$subdirs projects/llvm-reopt" | 
 | 1574 | ;; | 
 | 1575 |       "llvm-gcc") | 
 | 1576 |  | 
 | 1577 | subdirs="$subdirs projects/llvm-gcc" | 
 | 1578 |   ;; | 
| Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1579 |       "Java") | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1580 |  | 
| Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1581 | subdirs="$subdirs projects/Java" | 
 | 1582 |       ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1583 |       "llvm-tv") | 
 | 1584 |  | 
 | 1585 | subdirs="$subdirs projects/llvm-tv" | 
 | 1586 |    ;; | 
 | 1587 |       "llvm-fefw") | 
 | 1588 |  | 
 | 1589 | subdirs="$subdirs projects/llvm-fefw" | 
 | 1590 |  ;; | 
| John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1591 |       "poolalloc") | 
 | 1592 |  | 
 | 1593 | subdirs="$subdirs projects/poolalloc" | 
 | 1594 |  ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1595 |       *) | 
| Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1596 |         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
 | 1597 | 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] | 1598 |         ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1599 |     esac | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1600 |   fi | 
 | 1601 | done | 
| John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1602 |  | 
| Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 1603 |           ac_config_headers="$ac_config_headers include/llvm/Config/config.h" | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1604 |  | 
| John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 1605 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 1606 |           ac_config_files="$ac_config_files Makefile.config" | 
| John Criswell | 5fbb1f8 | 2004-09-24 13:28:51 +0000 | [diff] [blame] | 1607 |  | 
 | 1608 |           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
| John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 1609 |  | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 1610 |           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" | 
 | 1611 |  | 
 | 1612 |           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" | 
 | 1613 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 1614 |           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h" | 
 | 1615 |  | 
 | 1616 |           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" | 
 | 1617 |  | 
| John Criswell | dc76e32 | 2004-07-23 15:40:57 +0000 | [diff] [blame] | 1618 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1619 |           ac_config_commands="$ac_config_commands Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1620 |  | 
 | 1621 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1622 |           ac_config_commands="$ac_config_commands Makefile.common" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1623 |  | 
 | 1624 |  | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 1625 |           ac_config_commands="$ac_config_commands examples/Makefile" | 
 | 1626 |  | 
 | 1627 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 |           ac_config_commands="$ac_config_commands lib/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1629 |  | 
 | 1630 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1631 |           ac_config_commands="$ac_config_commands runtime/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1632 |  | 
 | 1633 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1634 |           ac_config_commands="$ac_config_commands test/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1635 |  | 
 | 1636 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1637 |           ac_config_commands="$ac_config_commands test/Makefile.tests" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1638 |  | 
 | 1639 |  | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 1640 |           ac_config_commands="$ac_config_commands test/QMTest/llvm.py" | 
 | 1641 |  | 
 | 1642 |  | 
 | 1643 |           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" | 
| John Criswell | 08acb9b | 2003-09-16 02:12:45 +0000 | [diff] [blame] | 1644 |  | 
 | 1645 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1646 |           ac_config_commands="$ac_config_commands tools/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1647 |  | 
 | 1648 |  | 
| Misha Brukman | 591edc6 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 1649 |           ac_config_commands="$ac_config_commands tools/Makefile.JIT" | 
 | 1650 |  | 
 | 1651 |  | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 1652 |           ac_config_commands="$ac_config_commands utils/Makefile" | 
 | 1653 |  | 
 | 1654 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1655 |           ac_config_commands="$ac_config_commands projects/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1656 |  | 
 | 1657 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1658 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1659 | # Find a good install program.  We prefer a C program (faster), | 
 | 1660 | # so one script is as good as another.  But avoid the broken or | 
 | 1661 | # incompatible versions: | 
 | 1662 | # SysV /etc/install, /usr/sbin/install | 
 | 1663 | # SunOS /usr/etc/install | 
 | 1664 | # IRIX /sbin/install | 
 | 1665 | # AIX /bin/install | 
 | 1666 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 1667 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 1668 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 1669 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1670 | # OS/2's system install, which has a completely different semantic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1671 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 1672 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
 | 1673 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
 | 1674 | if test -z "$INSTALL"; then | 
 | 1675 | if test "${ac_cv_path_install+set}" = set; then | 
 | 1676 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1677 | else | 
 | 1678 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1679 | for as_dir in $PATH | 
 | 1680 | do | 
 | 1681 |   IFS=$as_save_IFS | 
 | 1682 |   test -z "$as_dir" && as_dir=. | 
 | 1683 |   # Account for people who put trailing slashes in PATH elements. | 
 | 1684 | case $as_dir/ in | 
 | 1685 |   ./ | .// | /cC/* | \ | 
 | 1686 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1687 |   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 |   /usr/ucb/* ) ;; | 
 | 1689 |   *) | 
 | 1690 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 1691 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 1692 |     # by default. | 
 | 1693 |     for ac_prog in ginstall scoinst install; do | 
 | 1694 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1695 | 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
 | 1696 | 	  if test $ac_prog = install && | 
 | 1697 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 1698 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 1699 | 	    : | 
 | 1700 | 	  elif test $ac_prog = install && | 
 | 1701 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 1702 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 1703 | 	    : | 
 | 1704 | 	  else | 
 | 1705 | 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 1706 | 	    break 3 | 
 | 1707 | 	  fi | 
 | 1708 | 	fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1709 |       done | 
 | 1710 |     done | 
 | 1711 |     ;; | 
 | 1712 | esac | 
 | 1713 | done | 
 | 1714 |  | 
 | 1715 |  | 
 | 1716 | fi | 
 | 1717 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 1718 |     INSTALL=$ac_cv_path_install | 
 | 1719 |   else | 
 | 1720 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 1721 |     # path for INSTALL within a source directory, because that will | 
 | 1722 |     # break other packages using the cache if that directory is | 
 | 1723 |     # removed, or if the path is relative. | 
 | 1724 |     INSTALL=$ac_install_sh | 
 | 1725 |   fi | 
 | 1726 | fi | 
 | 1727 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
 | 1728 | echo "${ECHO_T}$INSTALL" >&6 | 
 | 1729 |  | 
 | 1730 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 1731 | # It thinks the first close brace ends the variable substitution. | 
 | 1732 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 1733 |  | 
 | 1734 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 1735 |  | 
 | 1736 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 1737 |  | 
 | 1738 |  | 
 | 1739 | # Make sure we can run config.sub. | 
 | 1740 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
 | 1741 |   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
 | 1742 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
 | 1743 |    { (exit 1); exit 1; }; } | 
 | 1744 |  | 
 | 1745 | echo "$as_me:$LINENO: checking build system type" >&5 | 
 | 1746 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
 | 1747 | if test "${ac_cv_build+set}" = set; then | 
 | 1748 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1749 | else | 
 | 1750 |   ac_cv_build_alias=$build_alias | 
 | 1751 | test -z "$ac_cv_build_alias" && | 
 | 1752 |   ac_cv_build_alias=`$ac_config_guess` | 
 | 1753 | test -z "$ac_cv_build_alias" && | 
 | 1754 |   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
 | 1755 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
 | 1756 |    { (exit 1); exit 1; }; } | 
 | 1757 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
 | 1758 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
 | 1759 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
 | 1760 |    { (exit 1); exit 1; }; } | 
 | 1761 |  | 
 | 1762 | fi | 
 | 1763 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
 | 1764 | echo "${ECHO_T}$ac_cv_build" >&6 | 
 | 1765 | build=$ac_cv_build | 
 | 1766 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1767 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1768 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1769 |  | 
 | 1770 |  | 
 | 1771 | echo "$as_me:$LINENO: checking host system type" >&5 | 
 | 1772 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
 | 1773 | if test "${ac_cv_host+set}" = set; then | 
 | 1774 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1775 | else | 
 | 1776 |   ac_cv_host_alias=$host_alias | 
 | 1777 | test -z "$ac_cv_host_alias" && | 
 | 1778 |   ac_cv_host_alias=$ac_cv_build_alias | 
 | 1779 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
 | 1780 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
 | 1781 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
 | 1782 |    { (exit 1); exit 1; }; } | 
 | 1783 |  | 
 | 1784 | fi | 
 | 1785 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
 | 1786 | echo "${ECHO_T}$ac_cv_host" >&6 | 
 | 1787 | host=$ac_cv_host | 
 | 1788 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1789 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1790 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1791 |  | 
 | 1792 |  | 
 | 1793 | echo "$as_me:$LINENO: checking target system type" >&5 | 
 | 1794 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | 
 | 1795 | if test "${ac_cv_target+set}" = set; then | 
 | 1796 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1797 | else | 
 | 1798 |   ac_cv_target_alias=$target_alias | 
 | 1799 | test "x$ac_cv_target_alias" = "x" && | 
 | 1800 |   ac_cv_target_alias=$ac_cv_host_alias | 
 | 1801 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | 
 | 1802 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | 
 | 1803 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | 
 | 1804 |    { (exit 1); exit 1; }; } | 
 | 1805 |  | 
 | 1806 | fi | 
 | 1807 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
 | 1808 | echo "${ECHO_T}$ac_cv_target" >&6 | 
 | 1809 | target=$ac_cv_target | 
 | 1810 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1811 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1812 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1813 |  | 
 | 1814 |  | 
 | 1815 | # The aliases save the names the user supplied, while $host etc. | 
 | 1816 | # will get canonicalized. | 
 | 1817 | test -n "$target_alias" && | 
 | 1818 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 1819 |     NONENONEs,x,x, && | 
 | 1820 |   program_prefix=${target_alias}- | 
 | 1821 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1822 |  | 
 | 1823 | echo "$as_me:$LINENO: checking support for generic build operating system" >&5 | 
 | 1824 | 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] | 1825 | case $build in | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1826 | 	*-*-aix*) | 
 | 1827 |              OS=AIX | 
 | 1828 |  | 
 | 1829 |              platform_type="AIX" | 
 | 1830 |              ;; | 
 | 1831 | 	*-*-cygwin*) | 
 | 1832 |              OS=Cygwin | 
 | 1833 |  | 
 | 1834 |              platform_type="Cygwin" | 
 | 1835 |              ;; | 
 | 1836 | 	*-*-darwin*) | 
 | 1837 |              OS=Darwin | 
 | 1838 |  | 
 | 1839 |              platform_type="Darwin" | 
 | 1840 |              ;; | 
 | 1841 |         *-*-freebsd*) | 
 | 1842 |              OS=Linux | 
 | 1843 |  | 
| Reid Spencer | a11e4db | 2004-08-31 18:03:23 +0000 | [diff] [blame] | 1844 |              platform_type="FreeBSD" | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1845 |              ;; | 
 | 1846 |         *-*-interix*) | 
 | 1847 |              OS=SunOS | 
 | 1848 |  | 
| Reid Spencer | a11e4db | 2004-08-31 18:03:23 +0000 | [diff] [blame] | 1849 |              platform_type="Interix" | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1850 |              ;; | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1851 | 	*-*-linux*) | 
 | 1852 |              OS=Linux | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1853 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1854 |              platform_type="Linux" | 
 | 1855 |              if test -d /home/vadve/lattner/local/x86/llvm-gcc | 
 | 1856 | 	     then | 
 | 1857 | 	       LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1859 |              fi | 
 | 1860 |              ;; | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1861 | 	*-*-solaris*) | 
 | 1862 |              OS=SunOS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1863 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1864 |              platform_type="SunOS" | 
 | 1865 |              if test -d /home/vadve/lattner/local/sparc/llvm-gcc | 
 | 1866 |              then | 
 | 1867 |                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1868 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1869 |              fi | 
 | 1870 |              ;; | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1871 |         *-*-win32*) | 
 | 1872 |              OS=Win32 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1873 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1874 |              platform_type="Win32" | 
 | 1875 | 	     ;; | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 1876 |         *-*-mingw*) | 
 | 1877 |              OS=Win32 | 
 | 1878 |  | 
 | 1879 |              platform_type="Win32" | 
 | 1880 | 	     ;; | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1881 | 	*) | 
 | 1882 |              OS=Unknown | 
 | 1883 |  | 
 | 1884 |              platform_type="Unknown" | 
 | 1885 | 	     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1886 | esac | 
 | 1887 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1888 | if test "$platform_type" = "Unknown" ; then | 
| Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1889 |   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5 | 
 | 1890 | echo "$as_me: error: Platform is unknown, configure can't continue" >&2;} | 
 | 1891 |    { (exit 1); exit 1; }; } | 
 | 1892 | fi | 
 | 1893 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1894 |           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type" | 
 | 1895 |  | 
 | 1896 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1897 |  | 
 | 1898 | echo "$as_me:$LINENO: checking target architecture" >&5 | 
 | 1899 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1900 | case $target in | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1901 | 	sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1902 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1903 | 	                    ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1904 | esac | 
 | 1905 |  | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1906 | case $target in | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1907 | 	i*86-*) | 
 | 1908 |           ARCH="x86" | 
 | 1909 |           ARCH=x86 | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1910 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1911 | 	  ;; | 
 | 1912 | 	sparc*-*) | 
 | 1913 |           ARCH="Sparc" | 
 | 1914 |           ARCH=Sparc | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1915 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1916 | 	  ;; | 
 | 1917 | 	powerpc*-*) | 
 | 1918 |           ARCH="PowerPC" | 
 | 1919 |           ARCH=PowerPC | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1920 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1921 | 	  ;; | 
 | 1922 | 	*) | 
 | 1923 |           ARCH="Unknown" | 
 | 1924 |           ARCH=Unknown | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1925 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1926 | 	  ;; | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1927 | esac | 
 | 1928 |  | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1929 | echo "$as_me:$LINENO: result: $ARCH" >&5 | 
 | 1930 | echo "${ECHO_T}$ARCH" >&6 | 
 | 1931 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1932 | ac_ext=cc | 
 | 1933 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 1934 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1935 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1936 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 1937 | if test -n "$ac_tool_prefix"; then | 
 | 1938 |   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | 
 | 1939 |   do | 
 | 1940 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 1941 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 1942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1944 | if test "${ac_cv_prog_CXX+set}" = set; then | 
 | 1945 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1946 | else | 
 | 1947 |   if test -n "$CXX"; then | 
 | 1948 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 1949 | else | 
 | 1950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1951 | for as_dir in $PATH | 
 | 1952 | do | 
 | 1953 |   IFS=$as_save_IFS | 
 | 1954 |   test -z "$as_dir" && as_dir=. | 
 | 1955 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1956 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1957 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
 | 1958 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1959 |     break 2 | 
 | 1960 |   fi | 
 | 1961 | done | 
 | 1962 | done | 
 | 1963 |  | 
 | 1964 | fi | 
 | 1965 | fi | 
 | 1966 | CXX=$ac_cv_prog_CXX | 
 | 1967 | if test -n "$CXX"; then | 
 | 1968 |   echo "$as_me:$LINENO: result: $CXX" >&5 | 
 | 1969 | echo "${ECHO_T}$CXX" >&6 | 
 | 1970 | else | 
 | 1971 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1972 | echo "${ECHO_T}no" >&6 | 
 | 1973 | fi | 
 | 1974 |  | 
 | 1975 |     test -n "$CXX" && break | 
 | 1976 |   done | 
 | 1977 | fi | 
 | 1978 | if test -z "$CXX"; then | 
 | 1979 |   ac_ct_CXX=$CXX | 
 | 1980 |   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | 
 | 1981 | do | 
 | 1982 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 1983 | set dummy $ac_prog; ac_word=$2 | 
 | 1984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1986 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
 | 1987 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1988 | else | 
 | 1989 |   if test -n "$ac_ct_CXX"; then | 
 | 1990 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 1991 | else | 
 | 1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1993 | for as_dir in $PATH | 
 | 1994 | do | 
 | 1995 |   IFS=$as_save_IFS | 
 | 1996 |   test -z "$as_dir" && as_dir=. | 
 | 1997 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1998 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1999 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 2000 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2001 |     break 2 | 
 | 2002 |   fi | 
 | 2003 | done | 
 | 2004 | done | 
 | 2005 |  | 
 | 2006 | fi | 
 | 2007 | fi | 
 | 2008 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 2009 | if test -n "$ac_ct_CXX"; then | 
 | 2010 |   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
 | 2011 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
 | 2012 | else | 
 | 2013 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2014 | echo "${ECHO_T}no" >&6 | 
 | 2015 | fi | 
 | 2016 |  | 
 | 2017 |   test -n "$ac_ct_CXX" && break | 
 | 2018 | done | 
 | 2019 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
 | 2020 |  | 
 | 2021 |   CXX=$ac_ct_CXX | 
 | 2022 | fi | 
 | 2023 |  | 
 | 2024 |  | 
 | 2025 | # Provide some information about the compiler. | 
 | 2026 | echo "$as_me:$LINENO:" \ | 
 | 2027 |      "checking for C++ compiler version" >&5 | 
 | 2028 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 2029 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 2030 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 2031 |   ac_status=$? | 
 | 2032 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2033 |   (exit $ac_status); } | 
 | 2034 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 2035 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 2036 |   ac_status=$? | 
 | 2037 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2038 |   (exit $ac_status); } | 
 | 2039 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 2040 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 2041 |   ac_status=$? | 
 | 2042 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2043 |   (exit $ac_status); } | 
 | 2044 |  | 
 | 2045 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2046 | /* confdefs.h.  */ | 
 | 2047 | _ACEOF | 
 | 2048 | cat confdefs.h >>conftest.$ac_ext | 
 | 2049 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2050 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2051 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2052 | int | 
 | 2053 | main () | 
 | 2054 | { | 
 | 2055 |  | 
 | 2056 |   ; | 
 | 2057 |   return 0; | 
 | 2058 | } | 
 | 2059 | _ACEOF | 
 | 2060 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2061 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2062 | # Try to create an executable without -o first, disregard a.out. | 
 | 2063 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 2064 | # of exeext. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2065 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 | 
 | 2066 | 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] | 2067 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 2068 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
 | 2069 |   (eval $ac_link_default) 2>&5 | 
 | 2070 |   ac_status=$? | 
 | 2071 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2072 |   (exit $ac_status); }; then | 
 | 2073 |   # Find the output, starting from the most likely.  This scheme is | 
 | 2074 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
 | 2075 | # resort. | 
 | 2076 |  | 
 | 2077 | # Be careful to initialize this variable, since it used to be cached. | 
 | 2078 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
 | 2079 | ac_cv_exeext= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2080 | # b.out is created by i960 compilers. | 
 | 2081 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
 | 2082 | do | 
 | 2083 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2085 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2086 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2087 |     conftest.$ac_ext ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2088 | 	# This is the source file. | 
 | 2089 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2090 |     [ab].out ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2091 | 	# We found the default executable, but exeext='' is most | 
 | 2092 | 	# certainly right. | 
 | 2093 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2094 |     *.* ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2095 | 	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 2096 | 	# FIXME: I believe we export ac_cv_exeext for Libtool, | 
 | 2097 | 	# but it would be cool to find out if it's true.  Does anybody | 
 | 2098 | 	# maintain Libtool? --akim. | 
 | 2099 | 	export ac_cv_exeext | 
 | 2100 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2101 |     * ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2102 | 	break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2103 |   esac | 
 | 2104 | done | 
 | 2105 | else | 
 | 2106 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2107 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2108 |  | 
 | 2109 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables | 
 | 2110 | See \`config.log' for more details." >&5 | 
 | 2111 | echo "$as_me: error: C++ compiler cannot create executables | 
 | 2112 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2113 |    { (exit 77); exit 77; }; } | 
 | 2114 | fi | 
 | 2115 |  | 
 | 2116 | ac_exeext=$ac_cv_exeext | 
 | 2117 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
 | 2118 | echo "${ECHO_T}$ac_file" >&6 | 
 | 2119 |  | 
 | 2120 | # Check the compiler produces executables we can run.  If not, either | 
 | 2121 | # the compiler is broken, or we cross compile. | 
 | 2122 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 | 
 | 2123 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 | 
 | 2124 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
 | 2125 | # If not cross compiling, check that we can run a simple program. | 
 | 2126 | if test "$cross_compiling" != yes; then | 
 | 2127 |   if { ac_try='./$ac_file' | 
 | 2128 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2129 |   (eval $ac_try) 2>&5 | 
 | 2130 |   ac_status=$? | 
 | 2131 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2132 |   (exit $ac_status); }; }; then | 
 | 2133 |     cross_compiling=no | 
 | 2134 |   else | 
 | 2135 |     if test "$cross_compiling" = maybe; then | 
 | 2136 | 	cross_compiling=yes | 
 | 2137 |     else | 
 | 2138 | 	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2139 | If you meant to cross compile, use \`--host'. | 
 | 2140 | See \`config.log' for more details." >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2141 | echo "$as_me: error: cannot run C++ compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2142 | If you meant to cross compile, use \`--host'. | 
 | 2143 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2144 |    { (exit 1); exit 1; }; } | 
 | 2145 |     fi | 
 | 2146 |   fi | 
 | 2147 | fi | 
 | 2148 | echo "$as_me:$LINENO: result: yes" >&5 | 
 | 2149 | echo "${ECHO_T}yes" >&6 | 
 | 2150 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2151 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2152 | ac_clean_files=$ac_clean_files_save | 
 | 2153 | # Check the compiler produces executables we can run.  If not, either | 
 | 2154 | # the compiler is broken, or we cross compile. | 
 | 2155 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
 | 2156 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
 | 2157 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
 | 2158 | echo "${ECHO_T}$cross_compiling" >&6 | 
 | 2159 |  | 
 | 2160 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
 | 2161 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
 | 2162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 2163 |   (eval $ac_link) 2>&5 | 
 | 2164 |   ac_status=$? | 
 | 2165 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2166 |   (exit $ac_status); }; then | 
 | 2167 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 2168 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 2169 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 2170 | # `rm'. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2171 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 2172 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2173 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2174 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2175 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2176 | 	  export ac_cv_exeext | 
 | 2177 | 	  break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2178 |     * ) break;; | 
 | 2179 |   esac | 
 | 2180 | done | 
 | 2181 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2182 |   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
 | 2183 | See \`config.log' for more details." >&5 | 
 | 2184 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
 | 2185 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2186 |    { (exit 1); exit 1; }; } | 
 | 2187 | fi | 
 | 2188 |  | 
 | 2189 | rm -f conftest$ac_cv_exeext | 
 | 2190 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
 | 2191 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
 | 2192 |  | 
 | 2193 | rm -f conftest.$ac_ext | 
 | 2194 | EXEEXT=$ac_cv_exeext | 
 | 2195 | ac_exeext=$EXEEXT | 
 | 2196 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
 | 2197 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
 | 2198 | if test "${ac_cv_objext+set}" = set; then | 
 | 2199 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2200 | else | 
 | 2201 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2202 | /* confdefs.h.  */ | 
 | 2203 | _ACEOF | 
 | 2204 | cat confdefs.h >>conftest.$ac_ext | 
 | 2205 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2206 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2207 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2208 | int | 
 | 2209 | main () | 
 | 2210 | { | 
 | 2211 |  | 
 | 2212 |   ; | 
 | 2213 |   return 0; | 
 | 2214 | } | 
 | 2215 | _ACEOF | 
 | 2216 | rm -f conftest.o conftest.obj | 
 | 2217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2218 |   (eval $ac_compile) 2>&5 | 
 | 2219 |   ac_status=$? | 
 | 2220 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2221 |   (exit $ac_status); }; then | 
 | 2222 |   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
 | 2223 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2224 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2225 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 2226 |        break;; | 
 | 2227 |   esac | 
 | 2228 | done | 
 | 2229 | else | 
 | 2230 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2231 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2232 |  | 
 | 2233 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
 | 2234 | See \`config.log' for more details." >&5 | 
 | 2235 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
 | 2236 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2237 |    { (exit 1); exit 1; }; } | 
 | 2238 | fi | 
 | 2239 |  | 
 | 2240 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 2241 | fi | 
 | 2242 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
 | 2243 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
 | 2244 | OBJEXT=$ac_cv_objext | 
 | 2245 | ac_objext=$OBJEXT | 
 | 2246 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
 | 2247 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
 | 2248 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
 | 2249 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2250 | else | 
 | 2251 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2252 | /* confdefs.h.  */ | 
 | 2253 | _ACEOF | 
 | 2254 | cat confdefs.h >>conftest.$ac_ext | 
 | 2255 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2256 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2257 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2258 | int | 
 | 2259 | main () | 
 | 2260 | { | 
 | 2261 | #ifndef __GNUC__ | 
 | 2262 |        choke me | 
 | 2263 | #endif | 
 | 2264 |  | 
 | 2265 |   ; | 
 | 2266 |   return 0; | 
 | 2267 | } | 
 | 2268 | _ACEOF | 
 | 2269 | rm -f conftest.$ac_objext | 
 | 2270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2271 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2272 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2273 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2274 |   rm -f conftest.er1 | 
 | 2275 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2276 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2277 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2278 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 2279 | 			 || test ! -s conftest.err' | 
 | 2280 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2281 |   (eval $ac_try) 2>&5 | 
 | 2282 |   ac_status=$? | 
 | 2283 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2284 |   (exit $ac_status); }; } && | 
 | 2285 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2286 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2287 |   (eval $ac_try) 2>&5 | 
 | 2288 |   ac_status=$? | 
 | 2289 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2290 |   (exit $ac_status); }; }; then | 
 | 2291 |   ac_compiler_gnu=yes | 
 | 2292 | else | 
 | 2293 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2294 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2295 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2296 | ac_compiler_gnu=no | 
 | 2297 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2299 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
 | 2300 |  | 
 | 2301 | fi | 
 | 2302 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
 | 2303 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
 | 2304 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
 | 2305 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
 | 2306 | ac_save_CXXFLAGS=$CXXFLAGS | 
 | 2307 | CXXFLAGS="-g" | 
 | 2308 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
 | 2309 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
 | 2310 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
 | 2311 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2312 | else | 
 | 2313 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2314 | /* confdefs.h.  */ | 
 | 2315 | _ACEOF | 
 | 2316 | cat confdefs.h >>conftest.$ac_ext | 
 | 2317 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2318 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2319 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2320 | int | 
 | 2321 | main () | 
 | 2322 | { | 
 | 2323 |  | 
 | 2324 |   ; | 
 | 2325 |   return 0; | 
 | 2326 | } | 
 | 2327 | _ACEOF | 
 | 2328 | rm -f conftest.$ac_objext | 
 | 2329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2330 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2331 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2332 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2333 |   rm -f conftest.er1 | 
 | 2334 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2335 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2336 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2337 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 2338 | 			 || test ! -s conftest.err' | 
 | 2339 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2340 |   (eval $ac_try) 2>&5 | 
 | 2341 |   ac_status=$? | 
 | 2342 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2343 |   (exit $ac_status); }; } && | 
 | 2344 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2345 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2346 |   (eval $ac_try) 2>&5 | 
 | 2347 |   ac_status=$? | 
 | 2348 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2349 |   (exit $ac_status); }; }; then | 
 | 2350 |   ac_cv_prog_cxx_g=yes | 
 | 2351 | else | 
 | 2352 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2353 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2354 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2355 | ac_cv_prog_cxx_g=no | 
 | 2356 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2358 | fi | 
 | 2359 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
 | 2360 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
 | 2361 | if test "$ac_test_CXXFLAGS" = set; then | 
 | 2362 |   CXXFLAGS=$ac_save_CXXFLAGS | 
 | 2363 | elif test $ac_cv_prog_cxx_g = yes; then | 
 | 2364 |   if test "$GXX" = yes; then | 
 | 2365 |     CXXFLAGS="-g -O2" | 
 | 2366 |   else | 
 | 2367 |     CXXFLAGS="-g" | 
 | 2368 |   fi | 
 | 2369 | else | 
 | 2370 |   if test "$GXX" = yes; then | 
 | 2371 |     CXXFLAGS="-O2" | 
 | 2372 |   else | 
 | 2373 |     CXXFLAGS= | 
 | 2374 |   fi | 
 | 2375 | fi | 
 | 2376 | for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2377 |    '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2378 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 2379 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 2380 |    'extern "C" void exit (int) throw ();' \ | 
 | 2381 |    'extern "C" void exit (int);' \ | 
 | 2382 |    'void exit (int);' | 
 | 2383 | do | 
 | 2384 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2385 | /* confdefs.h.  */ | 
 | 2386 | _ACEOF | 
 | 2387 | cat confdefs.h >>conftest.$ac_ext | 
 | 2388 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2389 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2390 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2391 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2392 | int | 
 | 2393 | main () | 
 | 2394 | { | 
 | 2395 | exit (42); | 
 | 2396 |   ; | 
 | 2397 |   return 0; | 
 | 2398 | } | 
 | 2399 | _ACEOF | 
 | 2400 | rm -f conftest.$ac_objext | 
 | 2401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2402 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2403 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2404 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2405 |   rm -f conftest.er1 | 
 | 2406 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2407 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2408 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2409 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 2410 | 			 || test ! -s conftest.err' | 
 | 2411 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2412 |   (eval $ac_try) 2>&5 | 
 | 2413 |   ac_status=$? | 
 | 2414 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2415 |   (exit $ac_status); }; } && | 
 | 2416 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2417 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2418 |   (eval $ac_try) 2>&5 | 
 | 2419 |   ac_status=$? | 
 | 2420 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2421 |   (exit $ac_status); }; }; then | 
 | 2422 |   : | 
 | 2423 | else | 
 | 2424 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2425 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2426 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2427 | continue | 
 | 2428 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2430 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2431 | /* confdefs.h.  */ | 
 | 2432 | _ACEOF | 
 | 2433 | cat confdefs.h >>conftest.$ac_ext | 
 | 2434 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2435 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2436 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2437 | int | 
 | 2438 | main () | 
 | 2439 | { | 
 | 2440 | exit (42); | 
 | 2441 |   ; | 
 | 2442 |   return 0; | 
 | 2443 | } | 
 | 2444 | _ACEOF | 
 | 2445 | rm -f conftest.$ac_objext | 
 | 2446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2447 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2448 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2449 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2450 |   rm -f conftest.er1 | 
 | 2451 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2452 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2453 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2454 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 2455 | 			 || test ! -s conftest.err' | 
 | 2456 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2457 |   (eval $ac_try) 2>&5 | 
 | 2458 |   ac_status=$? | 
 | 2459 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2460 |   (exit $ac_status); }; } && | 
 | 2461 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2462 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2463 |   (eval $ac_try) 2>&5 | 
 | 2464 |   ac_status=$? | 
 | 2465 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2466 |   (exit $ac_status); }; }; then | 
 | 2467 |   break | 
 | 2468 | else | 
 | 2469 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2470 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2471 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2472 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2474 | done | 
 | 2475 | rm -f conftest* | 
 | 2476 | if test -n "$ac_declaration"; then | 
 | 2477 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 2478 |   echo $ac_declaration      >>confdefs.h | 
 | 2479 |   echo '#endif'             >>confdefs.h | 
 | 2480 | fi | 
 | 2481 |  | 
 | 2482 | ac_ext=c | 
 | 2483 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2487 |  | 
 | 2488 | ac_ext=c | 
 | 2489 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2493 | if test -n "$ac_tool_prefix"; then | 
 | 2494 |   for ac_prog in gcc | 
 | 2495 |   do | 
 | 2496 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 2497 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 2498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 2500 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 2501 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2502 | else | 
 | 2503 |   if test -n "$CC"; then | 
 | 2504 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 2505 | else | 
 | 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2507 | for as_dir in $PATH | 
 | 2508 | do | 
 | 2509 |   IFS=$as_save_IFS | 
 | 2510 |   test -z "$as_dir" && as_dir=. | 
 | 2511 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2512 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 2513 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
 | 2514 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2515 |     break 2 | 
 | 2516 |   fi | 
 | 2517 | done | 
 | 2518 | done | 
 | 2519 |  | 
 | 2520 | fi | 
 | 2521 | fi | 
 | 2522 | CC=$ac_cv_prog_CC | 
 | 2523 | if test -n "$CC"; then | 
 | 2524 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2525 | echo "${ECHO_T}$CC" >&6 | 
 | 2526 | else | 
 | 2527 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2528 | echo "${ECHO_T}no" >&6 | 
 | 2529 | fi | 
 | 2530 |  | 
 | 2531 |     test -n "$CC" && break | 
 | 2532 |   done | 
 | 2533 | fi | 
 | 2534 | if test -z "$CC"; then | 
 | 2535 |   ac_ct_CC=$CC | 
 | 2536 |   for ac_prog in gcc | 
 | 2537 | do | 
 | 2538 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 2539 | set dummy $ac_prog; ac_word=$2 | 
 | 2540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 2542 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 2543 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2544 | else | 
 | 2545 |   if test -n "$ac_ct_CC"; then | 
 | 2546 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 2547 | else | 
 | 2548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2549 | for as_dir in $PATH | 
 | 2550 | do | 
 | 2551 |   IFS=$as_save_IFS | 
 | 2552 |   test -z "$as_dir" && as_dir=. | 
 | 2553 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2554 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 2555 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
 | 2556 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2557 |     break 2 | 
 | 2558 |   fi | 
 | 2559 | done | 
 | 2560 | done | 
 | 2561 |  | 
 | 2562 | fi | 
 | 2563 | fi | 
 | 2564 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 2565 | if test -n "$ac_ct_CC"; then | 
 | 2566 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 2567 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 2568 | else | 
 | 2569 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2570 | echo "${ECHO_T}no" >&6 | 
 | 2571 | fi | 
 | 2572 |  | 
 | 2573 |   test -n "$ac_ct_CC" && break | 
 | 2574 | done | 
 | 2575 |  | 
 | 2576 |   CC=$ac_ct_CC | 
 | 2577 | fi | 
 | 2578 |  | 
 | 2579 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2580 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 2581 | See \`config.log' for more details." >&5 | 
 | 2582 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 2583 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2584 |    { (exit 1); exit 1; }; } | 
 | 2585 |  | 
 | 2586 | # Provide some information about the compiler. | 
 | 2587 | echo "$as_me:$LINENO:" \ | 
 | 2588 |      "checking for C compiler version" >&5 | 
 | 2589 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 2590 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 2591 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 2592 |   ac_status=$? | 
 | 2593 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2594 |   (exit $ac_status); } | 
 | 2595 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 2596 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 2597 |   ac_status=$? | 
 | 2598 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2599 |   (exit $ac_status); } | 
 | 2600 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 2601 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 2602 |   ac_status=$? | 
 | 2603 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2604 |   (exit $ac_status); } | 
 | 2605 |  | 
 | 2606 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 2607 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
 | 2608 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
 | 2609 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2610 | else | 
 | 2611 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2612 | /* confdefs.h.  */ | 
 | 2613 | _ACEOF | 
 | 2614 | cat confdefs.h >>conftest.$ac_ext | 
 | 2615 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2616 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2617 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | int | 
 | 2619 | main () | 
 | 2620 | { | 
 | 2621 | #ifndef __GNUC__ | 
 | 2622 |        choke me | 
 | 2623 | #endif | 
 | 2624 |  | 
 | 2625 |   ; | 
 | 2626 |   return 0; | 
 | 2627 | } | 
 | 2628 | _ACEOF | 
 | 2629 | rm -f conftest.$ac_objext | 
 | 2630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2631 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2633 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2634 |   rm -f conftest.er1 | 
 | 2635 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2637 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2638 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2639 | 			 || test ! -s conftest.err' | 
 | 2640 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2641 |   (eval $ac_try) 2>&5 | 
 | 2642 |   ac_status=$? | 
 | 2643 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2644 |   (exit $ac_status); }; } && | 
 | 2645 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2646 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2647 |   (eval $ac_try) 2>&5 | 
 | 2648 |   ac_status=$? | 
 | 2649 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2650 |   (exit $ac_status); }; }; then | 
 | 2651 |   ac_compiler_gnu=yes | 
 | 2652 | else | 
 | 2653 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2654 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2655 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2656 | ac_compiler_gnu=no | 
 | 2657 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2659 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 2660 |  | 
 | 2661 | fi | 
 | 2662 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 2663 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
 | 2664 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 2665 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 2666 | ac_save_CFLAGS=$CFLAGS | 
 | 2667 | CFLAGS="-g" | 
 | 2668 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 2669 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
 | 2670 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
 | 2671 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2672 | else | 
 | 2673 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2674 | /* confdefs.h.  */ | 
 | 2675 | _ACEOF | 
 | 2676 | cat confdefs.h >>conftest.$ac_ext | 
 | 2677 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2678 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2679 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2680 | int | 
 | 2681 | main () | 
 | 2682 | { | 
 | 2683 |  | 
 | 2684 |   ; | 
 | 2685 |   return 0; | 
 | 2686 | } | 
 | 2687 | _ACEOF | 
 | 2688 | rm -f conftest.$ac_objext | 
 | 2689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2690 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2691 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2692 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2693 |   rm -f conftest.er1 | 
 | 2694 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2696 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2697 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2698 | 			 || test ! -s conftest.err' | 
 | 2699 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2700 |   (eval $ac_try) 2>&5 | 
 | 2701 |   ac_status=$? | 
 | 2702 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2703 |   (exit $ac_status); }; } && | 
 | 2704 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2706 |   (eval $ac_try) 2>&5 | 
 | 2707 |   ac_status=$? | 
 | 2708 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2709 |   (exit $ac_status); }; }; then | 
 | 2710 |   ac_cv_prog_cc_g=yes | 
 | 2711 | else | 
 | 2712 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2713 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2714 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | ac_cv_prog_cc_g=no | 
 | 2716 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2718 | fi | 
 | 2719 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 2720 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
 | 2721 | if test "$ac_test_CFLAGS" = set; then | 
 | 2722 |   CFLAGS=$ac_save_CFLAGS | 
 | 2723 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 2724 |   if test "$GCC" = yes; then | 
 | 2725 |     CFLAGS="-g -O2" | 
 | 2726 |   else | 
 | 2727 |     CFLAGS="-g" | 
 | 2728 |   fi | 
 | 2729 | else | 
 | 2730 |   if test "$GCC" = yes; then | 
 | 2731 |     CFLAGS="-O2" | 
 | 2732 |   else | 
 | 2733 |     CFLAGS= | 
 | 2734 |   fi | 
 | 2735 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2736 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
 | 2737 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
 | 2738 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
 | 2739 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2740 | else | 
 | 2741 |   ac_cv_prog_cc_stdc=no | 
 | 2742 | ac_save_CC=$CC | 
 | 2743 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2744 | /* confdefs.h.  */ | 
 | 2745 | _ACEOF | 
 | 2746 | cat confdefs.h >>conftest.$ac_ext | 
 | 2747 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2748 | /* end confdefs.h.  */ | 
 | 2749 | #include <stdarg.h> | 
 | 2750 | #include <stdio.h> | 
 | 2751 | #include <sys/types.h> | 
 | 2752 | #include <sys/stat.h> | 
 | 2753 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 2754 | struct buf { int x; }; | 
 | 2755 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 2756 | static char *e (p, i) | 
 | 2757 |      char **p; | 
 | 2758 |      int i; | 
 | 2759 | { | 
 | 2760 |   return p[i]; | 
 | 2761 | } | 
 | 2762 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 2763 | { | 
 | 2764 |   char *s; | 
 | 2765 |   va_list v; | 
 | 2766 |   va_start (v,p); | 
 | 2767 |   s = g (p, va_arg (v,int)); | 
 | 2768 |   va_end (v); | 
 | 2769 |   return s; | 
 | 2770 | } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2771 |  | 
 | 2772 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 2773 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 2774 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 2775 |    as 'x'.  The following induces an error, until -std1 is added to get | 
 | 2776 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 2777 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 2778 |    that's true only with -std1.  */ | 
 | 2779 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 2780 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2781 | int test (int i, double x); | 
 | 2782 | struct s1 {int (*f) (int a);}; | 
 | 2783 | struct s2 {int (*f) (double a);}; | 
 | 2784 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 2785 | int argc; | 
 | 2786 | char **argv; | 
 | 2787 | int | 
 | 2788 | main () | 
 | 2789 | { | 
 | 2790 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 2791 |   ; | 
 | 2792 |   return 0; | 
 | 2793 | } | 
 | 2794 | _ACEOF | 
 | 2795 | # Don't try gcc -ansi; that turns off useful extensions and | 
 | 2796 | # breaks some systems' header files. | 
 | 2797 | # AIX			-qlanglvl=ansi | 
 | 2798 | # Ultrix and OSF/1	-std1 | 
 | 2799 | # HP-UX 10.20 and later	-Ae | 
 | 2800 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
 | 2801 | # SVR4			-Xc -D__EXTENSIONS__ | 
 | 2802 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 2803 | do | 
 | 2804 |   CC="$ac_save_CC $ac_arg" | 
 | 2805 |   rm -f conftest.$ac_objext | 
 | 2806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2807 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2808 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2809 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2810 |   rm -f conftest.er1 | 
 | 2811 |   cat conftest.err >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2812 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2813 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2814 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2815 | 			 || test ! -s conftest.err' | 
 | 2816 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2817 |   (eval $ac_try) 2>&5 | 
 | 2818 |   ac_status=$? | 
 | 2819 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2820 |   (exit $ac_status); }; } && | 
 | 2821 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2822 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2823 |   (eval $ac_try) 2>&5 | 
 | 2824 |   ac_status=$? | 
 | 2825 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2826 |   (exit $ac_status); }; }; then | 
 | 2827 |   ac_cv_prog_cc_stdc=$ac_arg | 
 | 2828 | break | 
 | 2829 | else | 
 | 2830 |   echo "$as_me: failed program was:" >&5 | 
 | 2831 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2832 |  | 
 | 2833 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2834 | rm -f conftest.err conftest.$ac_objext | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2835 | done | 
 | 2836 | rm -f conftest.$ac_ext conftest.$ac_objext | 
 | 2837 | CC=$ac_save_CC | 
 | 2838 |  | 
 | 2839 | fi | 
 | 2840 |  | 
 | 2841 | case "x$ac_cv_prog_cc_stdc" in | 
 | 2842 |   x|xno) | 
 | 2843 |     echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 2844 | echo "${ECHO_T}none needed" >&6 ;; | 
 | 2845 |   *) | 
 | 2846 |     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
 | 2847 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
 | 2848 |     CC="$CC $ac_cv_prog_cc_stdc" ;; | 
 | 2849 | esac | 
 | 2850 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2851 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
 | 2852 | # in C++ we need to declare it.  In case someone uses the same compiler | 
 | 2853 | # for both compiling C and C++ we need to have the C++ compiler decide | 
 | 2854 | # the declaration of exit, since it's the most demanding environment. | 
 | 2855 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2856 | #ifndef __cplusplus | 
 | 2857 |   choke me | 
 | 2858 | #endif | 
 | 2859 | _ACEOF | 
 | 2860 | rm -f conftest.$ac_objext | 
 | 2861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2862 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2863 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2864 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2865 |   rm -f conftest.er1 | 
 | 2866 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2867 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2868 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2869 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2870 | 			 || test ! -s conftest.err' | 
 | 2871 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2872 |   (eval $ac_try) 2>&5 | 
 | 2873 |   ac_status=$? | 
 | 2874 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2875 |   (exit $ac_status); }; } && | 
 | 2876 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2877 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2878 |   (eval $ac_try) 2>&5 | 
 | 2879 |   ac_status=$? | 
 | 2880 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2881 |   (exit $ac_status); }; }; then | 
 | 2882 |   for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2883 |    '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2884 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 2885 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 2886 |    'extern "C" void exit (int) throw ();' \ | 
 | 2887 |    'extern "C" void exit (int);' \ | 
 | 2888 |    'void exit (int);' | 
 | 2889 | do | 
 | 2890 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2891 | /* confdefs.h.  */ | 
 | 2892 | _ACEOF | 
 | 2893 | cat confdefs.h >>conftest.$ac_ext | 
 | 2894 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2895 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2896 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2897 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2898 | int | 
 | 2899 | main () | 
 | 2900 | { | 
 | 2901 | exit (42); | 
 | 2902 |   ; | 
 | 2903 |   return 0; | 
 | 2904 | } | 
 | 2905 | _ACEOF | 
 | 2906 | rm -f conftest.$ac_objext | 
 | 2907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2908 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2910 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2911 |   rm -f conftest.er1 | 
 | 2912 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2913 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2914 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2915 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2916 | 			 || test ! -s conftest.err' | 
 | 2917 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2918 |   (eval $ac_try) 2>&5 | 
 | 2919 |   ac_status=$? | 
 | 2920 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2921 |   (exit $ac_status); }; } && | 
 | 2922 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2923 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2924 |   (eval $ac_try) 2>&5 | 
 | 2925 |   ac_status=$? | 
 | 2926 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2927 |   (exit $ac_status); }; }; then | 
 | 2928 |   : | 
 | 2929 | else | 
 | 2930 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2931 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2932 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2933 | continue | 
 | 2934 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2936 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2937 | /* confdefs.h.  */ | 
 | 2938 | _ACEOF | 
 | 2939 | cat confdefs.h >>conftest.$ac_ext | 
 | 2940 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2941 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2942 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2943 | int | 
 | 2944 | main () | 
 | 2945 | { | 
 | 2946 | exit (42); | 
 | 2947 |   ; | 
 | 2948 |   return 0; | 
 | 2949 | } | 
 | 2950 | _ACEOF | 
 | 2951 | rm -f conftest.$ac_objext | 
 | 2952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2953 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2954 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2955 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2956 |   rm -f conftest.er1 | 
 | 2957 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2958 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2959 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2960 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2961 | 			 || test ! -s conftest.err' | 
 | 2962 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2963 |   (eval $ac_try) 2>&5 | 
 | 2964 |   ac_status=$? | 
 | 2965 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2966 |   (exit $ac_status); }; } && | 
 | 2967 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2968 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2969 |   (eval $ac_try) 2>&5 | 
 | 2970 |   ac_status=$? | 
 | 2971 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2972 |   (exit $ac_status); }; }; then | 
 | 2973 |   break | 
 | 2974 | else | 
 | 2975 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2976 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2977 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2978 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2980 | done | 
 | 2981 | rm -f conftest* | 
 | 2982 | if test -n "$ac_declaration"; then | 
 | 2983 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 2984 |   echo $ac_declaration      >>confdefs.h | 
 | 2985 |   echo '#endif'             >>confdefs.h | 
 | 2986 | fi | 
 | 2987 |  | 
 | 2988 | else | 
 | 2989 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2990 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2991 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2992 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2994 | ac_ext=c | 
 | 2995 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2999 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3000 | if test "$GCC" != "yes" | 
 | 3001 | then | 
 | 3002 | 	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5 | 
 | 3003 | echo "$as_me: error: gcc required but not found" >&2;} | 
 | 3004 |    { (exit 1); exit 1; }; } | 
 | 3005 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3006 | ac_ext=c | 
 | 3007 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3011 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
 | 3012 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
 | 3013 | # On Suns, sometimes $CPP names a directory. | 
 | 3014 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 3015 |   CPP= | 
 | 3016 | fi | 
 | 3017 | if test -z "$CPP"; then | 
 | 3018 |   if test "${ac_cv_prog_CPP+set}" = set; then | 
 | 3019 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3020 | else | 
 | 3021 |       # Double quotes because CPP needs to be expanded | 
 | 3022 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 3023 |     do | 
 | 3024 |       ac_preproc_ok=false | 
 | 3025 | for ac_c_preproc_warn_flag in '' yes | 
 | 3026 | do | 
 | 3027 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3028 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3029 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3030 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3031 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3032 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3033 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3034 | /* confdefs.h.  */ | 
 | 3035 | _ACEOF | 
 | 3036 | cat confdefs.h >>conftest.$ac_ext | 
 | 3037 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3038 | /* end confdefs.h.  */ | 
 | 3039 | #ifdef __STDC__ | 
 | 3040 | # include <limits.h> | 
 | 3041 | #else | 
 | 3042 | # include <assert.h> | 
 | 3043 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3044 | 		     Syntax error | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3045 | _ACEOF | 
 | 3046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3047 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3048 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3049 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3050 |   rm -f conftest.er1 | 
 | 3051 |   cat conftest.err >&5 | 
 | 3052 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3053 |   (exit $ac_status); } >/dev/null; then | 
 | 3054 |   if test -s conftest.err; then | 
 | 3055 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3056 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3057 |   else | 
 | 3058 |     ac_cpp_err= | 
 | 3059 |   fi | 
 | 3060 | else | 
 | 3061 |   ac_cpp_err=yes | 
 | 3062 | fi | 
 | 3063 | if test -z "$ac_cpp_err"; then | 
 | 3064 |   : | 
 | 3065 | else | 
 | 3066 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3067 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3068 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3069 |   # Broken: fails on valid input. | 
 | 3070 | continue | 
 | 3071 | fi | 
 | 3072 | rm -f conftest.err conftest.$ac_ext | 
 | 3073 |  | 
 | 3074 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3075 |   # can be detected and how. | 
 | 3076 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3077 | /* confdefs.h.  */ | 
 | 3078 | _ACEOF | 
 | 3079 | cat confdefs.h >>conftest.$ac_ext | 
 | 3080 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3081 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3082 | #include <ac_nonexistent.h> | 
 | 3083 | _ACEOF | 
 | 3084 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3085 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3086 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3087 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3088 |   rm -f conftest.er1 | 
 | 3089 |   cat conftest.err >&5 | 
 | 3090 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3091 |   (exit $ac_status); } >/dev/null; then | 
 | 3092 |   if test -s conftest.err; then | 
 | 3093 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3094 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3095 |   else | 
 | 3096 |     ac_cpp_err= | 
 | 3097 |   fi | 
 | 3098 | else | 
 | 3099 |   ac_cpp_err=yes | 
 | 3100 | fi | 
 | 3101 | if test -z "$ac_cpp_err"; then | 
 | 3102 |   # Broken: success on invalid input. | 
 | 3103 | continue | 
 | 3104 | else | 
 | 3105 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3106 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3107 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3108 |   # Passes both tests. | 
 | 3109 | ac_preproc_ok=: | 
 | 3110 | break | 
 | 3111 | fi | 
 | 3112 | rm -f conftest.err conftest.$ac_ext | 
 | 3113 |  | 
 | 3114 | done | 
 | 3115 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3116 | rm -f conftest.err conftest.$ac_ext | 
 | 3117 | if $ac_preproc_ok; then | 
 | 3118 |   break | 
 | 3119 | fi | 
 | 3120 |  | 
 | 3121 |     done | 
 | 3122 |     ac_cv_prog_CPP=$CPP | 
 | 3123 |  | 
 | 3124 | fi | 
 | 3125 |   CPP=$ac_cv_prog_CPP | 
 | 3126 | else | 
 | 3127 |   ac_cv_prog_CPP=$CPP | 
 | 3128 | fi | 
 | 3129 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
 | 3130 | echo "${ECHO_T}$CPP" >&6 | 
 | 3131 | ac_preproc_ok=false | 
 | 3132 | for ac_c_preproc_warn_flag in '' yes | 
 | 3133 | do | 
 | 3134 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3135 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3136 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3137 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3138 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3139 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3140 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3141 | /* confdefs.h.  */ | 
 | 3142 | _ACEOF | 
 | 3143 | cat confdefs.h >>conftest.$ac_ext | 
 | 3144 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3145 | /* end confdefs.h.  */ | 
 | 3146 | #ifdef __STDC__ | 
 | 3147 | # include <limits.h> | 
 | 3148 | #else | 
 | 3149 | # include <assert.h> | 
 | 3150 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3151 | 		     Syntax error | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3152 | _ACEOF | 
 | 3153 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3154 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3155 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3156 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3157 |   rm -f conftest.er1 | 
 | 3158 |   cat conftest.err >&5 | 
 | 3159 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3160 |   (exit $ac_status); } >/dev/null; then | 
 | 3161 |   if test -s conftest.err; then | 
 | 3162 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3163 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3164 |   else | 
 | 3165 |     ac_cpp_err= | 
 | 3166 |   fi | 
 | 3167 | else | 
 | 3168 |   ac_cpp_err=yes | 
 | 3169 | fi | 
 | 3170 | if test -z "$ac_cpp_err"; then | 
 | 3171 |   : | 
 | 3172 | else | 
 | 3173 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3174 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3175 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3176 |   # Broken: fails on valid input. | 
 | 3177 | continue | 
 | 3178 | fi | 
 | 3179 | rm -f conftest.err conftest.$ac_ext | 
 | 3180 |  | 
 | 3181 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3182 |   # can be detected and how. | 
 | 3183 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3184 | /* confdefs.h.  */ | 
 | 3185 | _ACEOF | 
 | 3186 | cat confdefs.h >>conftest.$ac_ext | 
 | 3187 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3188 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3189 | #include <ac_nonexistent.h> | 
 | 3190 | _ACEOF | 
 | 3191 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3192 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3193 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3194 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3195 |   rm -f conftest.er1 | 
 | 3196 |   cat conftest.err >&5 | 
 | 3197 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3198 |   (exit $ac_status); } >/dev/null; then | 
 | 3199 |   if test -s conftest.err; then | 
 | 3200 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3201 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3202 |   else | 
 | 3203 |     ac_cpp_err= | 
 | 3204 |   fi | 
 | 3205 | else | 
 | 3206 |   ac_cpp_err=yes | 
 | 3207 | fi | 
 | 3208 | if test -z "$ac_cpp_err"; then | 
 | 3209 |   # Broken: success on invalid input. | 
 | 3210 | continue | 
 | 3211 | else | 
 | 3212 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3213 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3214 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3215 |   # Passes both tests. | 
 | 3216 | ac_preproc_ok=: | 
 | 3217 | break | 
 | 3218 | fi | 
 | 3219 | rm -f conftest.err conftest.$ac_ext | 
 | 3220 |  | 
 | 3221 | done | 
 | 3222 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3223 | rm -f conftest.err conftest.$ac_ext | 
 | 3224 | if $ac_preproc_ok; then | 
 | 3225 |   : | 
 | 3226 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3227 |   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3228 | See \`config.log' for more details." >&5 | 
 | 3229 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3230 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3231 |    { (exit 1); exit 1; }; } | 
 | 3232 | fi | 
 | 3233 |  | 
 | 3234 | ac_ext=c | 
 | 3235 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3239 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3240 | if test "$GXX" != "yes" | 
 | 3241 | then | 
 | 3242 | 	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5 | 
 | 3243 | echo "$as_me: error: g++ required but not found" >&2;} | 
 | 3244 |    { (exit 1); exit 1; }; } | 
 | 3245 | fi | 
 | 3246 |  | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3247 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` | 
 | 3248 | if test "$gccmajor" -lt "3" | 
 | 3249 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 3250 | 	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
 | 3251 | 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] | 3252 |    { (exit 1); exit 1; }; } | 
 | 3253 | fi | 
 | 3254 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3255 |  echo "$as_me:$LINENO: checking for GNU make" >&5 | 
 | 3256 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 | 
 | 3257 | if test "${_cv_gnu_make_command+set}" = set; then | 
 | 3258 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3259 | else | 
 | 3260 |   _cv_gnu_make_command='' ; | 
 | 3261 |                 for a in "$MAKE" make gmake gnumake ; do | 
 | 3262 |                         if test -z "$a" ; then continue ; fi ; | 
 | 3263 |                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then | 
 | 3264 |                                 _cv_gnu_make_command=$a ; | 
 | 3265 |                                 break; | 
 | 3266 |                         fi | 
 | 3267 |                 done ; | 
 | 3268 |  | 
 | 3269 | fi | 
 | 3270 | echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 | 
 | 3271 | echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; | 
 | 3272 |         if test  "x$_cv_gnu_make_command" != "x"  ; then | 
 | 3273 |                 ifGNUmake='' ; | 
 | 3274 |         else | 
 | 3275 |                 ifGNUmake='#' ; | 
 | 3276 |                 echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
 | 3277 | echo "${ECHO_T}\"Not found\"" >&6; | 
 | 3278 |         fi | 
 | 3279 |  | 
 | 3280 |  | 
 | 3281 | if test -z "$_cv_gnu_make_command" | 
 | 3282 | then | 
 | 3283 | 	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
 | 3284 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
 | 3285 |    { (exit 1); exit 1; }; } | 
 | 3286 | fi | 
 | 3287 |  | 
 | 3288 |  | 
 | 3289 | echo "$as_me:$LINENO: checking " >&5 | 
 | 3290 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
 | 3291 | if test "${ac_cv_has_flex+set}" = set; then | 
 | 3292 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3293 | else | 
 | 3294 |   for ac_prog in flex lex | 
 | 3295 | do | 
 | 3296 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3297 | set dummy $ac_prog; ac_word=$2 | 
 | 3298 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3300 | if test "${ac_cv_prog_LEX+set}" = set; then | 
 | 3301 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3302 | else | 
 | 3303 |   if test -n "$LEX"; then | 
 | 3304 |   ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
 | 3305 | else | 
 | 3306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3307 | for as_dir in $PATH | 
 | 3308 | do | 
 | 3309 |   IFS=$as_save_IFS | 
 | 3310 |   test -z "$as_dir" && as_dir=. | 
 | 3311 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3312 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3313 |     ac_cv_prog_LEX="$ac_prog" | 
 | 3314 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3315 |     break 2 | 
 | 3316 |   fi | 
 | 3317 | done | 
 | 3318 | done | 
 | 3319 |  | 
 | 3320 | fi | 
 | 3321 | fi | 
 | 3322 | LEX=$ac_cv_prog_LEX | 
 | 3323 | if test -n "$LEX"; then | 
 | 3324 |   echo "$as_me:$LINENO: result: $LEX" >&5 | 
 | 3325 | echo "${ECHO_T}$LEX" >&6 | 
 | 3326 | else | 
 | 3327 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3328 | echo "${ECHO_T}no" >&6 | 
 | 3329 | fi | 
 | 3330 |  | 
 | 3331 |   test -n "$LEX" && break | 
 | 3332 | done | 
 | 3333 | test -n "$LEX" || LEX=":" | 
 | 3334 |  | 
 | 3335 | if test -z "$LEXLIB" | 
 | 3336 | then | 
 | 3337 |   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
 | 3338 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
 | 3339 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
 | 3340 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3341 | else | 
 | 3342 |   ac_check_lib_save_LIBS=$LIBS | 
 | 3343 | LIBS="-lfl  $LIBS" | 
 | 3344 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3345 | /* confdefs.h.  */ | 
 | 3346 | _ACEOF | 
 | 3347 | cat confdefs.h >>conftest.$ac_ext | 
 | 3348 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3349 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3350 |  | 
 | 3351 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3352 | #ifdef __cplusplus | 
 | 3353 | extern "C" | 
 | 3354 | #endif | 
 | 3355 | /* We use char because int might match the return type of a gcc2 | 
 | 3356 |    builtin and then its argument prototype would still apply.  */ | 
 | 3357 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3358 | int | 
 | 3359 | main () | 
 | 3360 | { | 
 | 3361 | yywrap (); | 
 | 3362 |   ; | 
 | 3363 |   return 0; | 
 | 3364 | } | 
 | 3365 | _ACEOF | 
 | 3366 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3368 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3369 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3370 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3371 |   rm -f conftest.er1 | 
 | 3372 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3373 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3374 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3375 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3376 | 			 || test ! -s conftest.err' | 
 | 3377 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3378 |   (eval $ac_try) 2>&5 | 
 | 3379 |   ac_status=$? | 
 | 3380 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3381 |   (exit $ac_status); }; } && | 
 | 3382 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3383 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3384 |   (eval $ac_try) 2>&5 | 
 | 3385 |   ac_status=$? | 
 | 3386 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3387 |   (exit $ac_status); }; }; then | 
 | 3388 |   ac_cv_lib_fl_yywrap=yes | 
 | 3389 | else | 
 | 3390 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3391 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3392 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3393 | ac_cv_lib_fl_yywrap=no | 
 | 3394 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3395 | rm -f conftest.err conftest.$ac_objext \ | 
 | 3396 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3397 | LIBS=$ac_check_lib_save_LIBS | 
 | 3398 | fi | 
 | 3399 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
 | 3400 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
 | 3401 | if test $ac_cv_lib_fl_yywrap = yes; then | 
 | 3402 |   LEXLIB="-lfl" | 
 | 3403 | else | 
 | 3404 |   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
 | 3405 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
 | 3406 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
 | 3407 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3408 | else | 
 | 3409 |   ac_check_lib_save_LIBS=$LIBS | 
 | 3410 | LIBS="-ll  $LIBS" | 
 | 3411 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3412 | /* confdefs.h.  */ | 
 | 3413 | _ACEOF | 
 | 3414 | cat confdefs.h >>conftest.$ac_ext | 
 | 3415 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3416 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3417 |  | 
 | 3418 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3419 | #ifdef __cplusplus | 
 | 3420 | extern "C" | 
 | 3421 | #endif | 
 | 3422 | /* We use char because int might match the return type of a gcc2 | 
 | 3423 |    builtin and then its argument prototype would still apply.  */ | 
 | 3424 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3425 | int | 
 | 3426 | main () | 
 | 3427 | { | 
 | 3428 | yywrap (); | 
 | 3429 |   ; | 
 | 3430 |   return 0; | 
 | 3431 | } | 
 | 3432 | _ACEOF | 
 | 3433 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3435 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3436 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3437 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3438 |   rm -f conftest.er1 | 
 | 3439 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3440 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3441 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3442 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3443 | 			 || test ! -s conftest.err' | 
 | 3444 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3445 |   (eval $ac_try) 2>&5 | 
 | 3446 |   ac_status=$? | 
 | 3447 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3448 |   (exit $ac_status); }; } && | 
 | 3449 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3450 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3451 |   (eval $ac_try) 2>&5 | 
 | 3452 |   ac_status=$? | 
 | 3453 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3454 |   (exit $ac_status); }; }; then | 
 | 3455 |   ac_cv_lib_l_yywrap=yes | 
 | 3456 | else | 
 | 3457 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3458 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3459 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3460 | ac_cv_lib_l_yywrap=no | 
 | 3461 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3462 | rm -f conftest.err conftest.$ac_objext \ | 
 | 3463 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3464 | LIBS=$ac_check_lib_save_LIBS | 
 | 3465 | fi | 
 | 3466 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
 | 3467 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
 | 3468 | if test $ac_cv_lib_l_yywrap = yes; then | 
 | 3469 |   LEXLIB="-ll" | 
 | 3470 | fi | 
 | 3471 |  | 
 | 3472 | fi | 
 | 3473 |  | 
 | 3474 | fi | 
 | 3475 |  | 
 | 3476 | if test "x$LEX" != "x:"; then | 
 | 3477 |   echo "$as_me:$LINENO: checking lex output file root" >&5 | 
 | 3478 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
 | 3479 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
 | 3480 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3481 | else | 
 | 3482 |   # The minimal lex program is just a single line: %%.  But some broken lexes | 
 | 3483 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
 | 3484 | cat >conftest.l <<_ACEOF | 
 | 3485 | %% | 
 | 3486 | %% | 
 | 3487 | _ACEOF | 
 | 3488 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
 | 3489 |   (eval $LEX conftest.l) 2>&5 | 
 | 3490 |   ac_status=$? | 
 | 3491 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3492 |   (exit $ac_status); } | 
 | 3493 | if test -f lex.yy.c; then | 
 | 3494 |   ac_cv_prog_lex_root=lex.yy | 
 | 3495 | elif test -f lexyy.c; then | 
 | 3496 |   ac_cv_prog_lex_root=lexyy | 
 | 3497 | else | 
 | 3498 |   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
 | 3499 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
 | 3500 |    { (exit 1); exit 1; }; } | 
 | 3501 | fi | 
 | 3502 | fi | 
 | 3503 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
 | 3504 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
 | 3505 | rm -f conftest.l | 
 | 3506 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
 | 3507 |  | 
 | 3508 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
 | 3509 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
 | 3510 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
 | 3511 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3512 | else | 
 | 3513 |   # POSIX says lex can declare yytext either as a pointer or an array; the | 
 | 3514 | # default is implementation-dependent. Figure out which it is, since | 
 | 3515 | # not all implementations provide the %pointer and %array declarations. | 
 | 3516 | ac_cv_prog_lex_yytext_pointer=no | 
 | 3517 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
 | 3518 | ac_save_LIBS=$LIBS | 
 | 3519 | LIBS="$LIBS $LEXLIB" | 
 | 3520 | cat >conftest.$ac_ext <<_ACEOF | 
 | 3521 | `cat $LEX_OUTPUT_ROOT.c` | 
 | 3522 | _ACEOF | 
 | 3523 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3525 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3526 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3527 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3528 |   rm -f conftest.er1 | 
 | 3529 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3530 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3531 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3532 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3533 | 			 || test ! -s conftest.err' | 
 | 3534 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3535 |   (eval $ac_try) 2>&5 | 
 | 3536 |   ac_status=$? | 
 | 3537 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3538 |   (exit $ac_status); }; } && | 
 | 3539 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3540 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3541 |   (eval $ac_try) 2>&5 | 
 | 3542 |   ac_status=$? | 
 | 3543 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3544 |   (exit $ac_status); }; }; then | 
 | 3545 |   ac_cv_prog_lex_yytext_pointer=yes | 
 | 3546 | else | 
 | 3547 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3548 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3549 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3550 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3551 | rm -f conftest.err conftest.$ac_objext \ | 
 | 3552 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3553 | LIBS=$ac_save_LIBS | 
 | 3554 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
 | 3555 |  | 
 | 3556 | fi | 
 | 3557 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
 | 3558 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
 | 3559 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
 | 3560 |  | 
 | 3561 | cat >>confdefs.h <<\_ACEOF | 
 | 3562 | #define YYTEXT_POINTER 1 | 
 | 3563 | _ACEOF | 
 | 3564 |  | 
 | 3565 | fi | 
 | 3566 |  | 
 | 3567 | fi | 
 | 3568 |  | 
 | 3569 | fi | 
 | 3570 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 | 
 | 3571 | echo "${ECHO_T}$ac_cv_has_flex" >&6 | 
 | 3572 | if test "$LEX" != "flex"; then | 
 | 3573 |   { { echo "$as_me:$LINENO: error: flex not found but required" >&5 | 
 | 3574 | echo "$as_me: error: flex not found but required" >&2;} | 
 | 3575 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 3576 | else | 
 | 3577 |   FLEX=flex | 
 | 3578 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3579 | fi | 
 | 3580 |  | 
 | 3581 | echo "$as_me:$LINENO: checking " >&5 | 
 | 3582 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
 | 3583 | if test "${ac_cv_has_bison+set}" = set; then | 
 | 3584 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3585 | else | 
 | 3586 |   for ac_prog in 'bison -y' byacc | 
 | 3587 | do | 
 | 3588 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3589 | set dummy $ac_prog; ac_word=$2 | 
 | 3590 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3592 | if test "${ac_cv_prog_YACC+set}" = set; then | 
 | 3593 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3594 | else | 
 | 3595 |   if test -n "$YACC"; then | 
 | 3596 |   ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
 | 3597 | else | 
 | 3598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3599 | for as_dir in $PATH | 
 | 3600 | do | 
 | 3601 |   IFS=$as_save_IFS | 
 | 3602 |   test -z "$as_dir" && as_dir=. | 
 | 3603 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3604 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3605 |     ac_cv_prog_YACC="$ac_prog" | 
 | 3606 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3607 |     break 2 | 
 | 3608 |   fi | 
 | 3609 | done | 
 | 3610 | done | 
 | 3611 |  | 
 | 3612 | fi | 
 | 3613 | fi | 
 | 3614 | YACC=$ac_cv_prog_YACC | 
 | 3615 | if test -n "$YACC"; then | 
 | 3616 |   echo "$as_me:$LINENO: result: $YACC" >&5 | 
 | 3617 | echo "${ECHO_T}$YACC" >&6 | 
 | 3618 | else | 
 | 3619 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3620 | echo "${ECHO_T}no" >&6 | 
 | 3621 | fi | 
 | 3622 |  | 
 | 3623 |   test -n "$YACC" && break | 
 | 3624 | done | 
 | 3625 | test -n "$YACC" || YACC="yacc" | 
 | 3626 |  | 
 | 3627 |  | 
 | 3628 | fi | 
 | 3629 | echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 | 
 | 3630 | echo "${ECHO_T}$ac_cv_has_bison" >&6 | 
 | 3631 | if test "$YACC" != "bison -y"; then | 
 | 3632 |   { { echo "$as_me:$LINENO: error: bison not found but required" >&5 | 
 | 3633 | echo "$as_me: error: bison not found but required" >&2;} | 
 | 3634 |    { (exit 1); exit 1; }; } | 
 | 3635 | else | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 3636 |   BISON=bison | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3637 |  | 
 | 3638 | fi | 
 | 3639 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 3640 |  | 
 | 3641 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3642 | # Check whether --enable-shared or --disable-shared was given. | 
 | 3643 | if test "${enable_shared+set}" = set; then | 
 | 3644 |   enableval="$enable_shared" | 
 | 3645 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3646 |     case $enableval in | 
 | 3647 |     yes) enable_shared=yes ;; | 
 | 3648 |     no) enable_shared=no ;; | 
 | 3649 |     *) | 
 | 3650 |       enable_shared=no | 
 | 3651 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3652 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3653 |       for pkg in $enableval; do | 
 | 3654 | 	IFS="$lt_save_ifs" | 
 | 3655 | 	if test "X$pkg" = "X$p"; then | 
 | 3656 | 	  enable_shared=yes | 
 | 3657 | 	fi | 
 | 3658 |       done | 
 | 3659 |       IFS="$lt_save_ifs" | 
 | 3660 |       ;; | 
 | 3661 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3662 | else | 
 | 3663 |   enable_shared=yes | 
 | 3664 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3665 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3666 | # Check whether --enable-static or --disable-static was given. | 
 | 3667 | if test "${enable_static+set}" = set; then | 
 | 3668 |   enableval="$enable_static" | 
 | 3669 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3670 |     case $enableval in | 
 | 3671 |     yes) enable_static=yes ;; | 
 | 3672 |     no) enable_static=no ;; | 
 | 3673 |     *) | 
 | 3674 |      enable_static=no | 
 | 3675 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3676 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3677 |       for pkg in $enableval; do | 
 | 3678 | 	IFS="$lt_save_ifs" | 
 | 3679 | 	if test "X$pkg" = "X$p"; then | 
 | 3680 | 	  enable_static=yes | 
 | 3681 | 	fi | 
 | 3682 |       done | 
 | 3683 |       IFS="$lt_save_ifs" | 
 | 3684 |       ;; | 
 | 3685 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3686 | else | 
 | 3687 |   enable_static=yes | 
 | 3688 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3689 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3690 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
 | 3691 | if test "${enable_fast_install+set}" = set; then | 
 | 3692 |   enableval="$enable_fast_install" | 
 | 3693 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3694 |     case $enableval in | 
 | 3695 |     yes) enable_fast_install=yes ;; | 
 | 3696 |     no) enable_fast_install=no ;; | 
 | 3697 |     *) | 
 | 3698 |       enable_fast_install=no | 
 | 3699 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3700 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3701 |       for pkg in $enableval; do | 
 | 3702 | 	IFS="$lt_save_ifs" | 
 | 3703 | 	if test "X$pkg" = "X$p"; then | 
 | 3704 | 	  enable_fast_install=yes | 
 | 3705 | 	fi | 
 | 3706 |       done | 
 | 3707 |       IFS="$lt_save_ifs" | 
 | 3708 |       ;; | 
 | 3709 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3710 | else | 
 | 3711 |   enable_fast_install=yes | 
 | 3712 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3713 |  | 
 | 3714 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
 | 3715 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | 
 | 3716 | if test "${lt_cv_path_SED+set}" = set; then | 
 | 3717 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3718 | else | 
 | 3719 |   # Loop through the user's path and test for sed and gsed. | 
 | 3720 | # Then use that list of sed's as ones to test for truncation. | 
 | 3721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3722 | for as_dir in $PATH | 
 | 3723 | do | 
 | 3724 |   IFS=$as_save_IFS | 
 | 3725 |   test -z "$as_dir" && as_dir=. | 
 | 3726 |   for lt_ac_prog in sed gsed; do | 
 | 3727 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3728 |       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
 | 3729 |         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
 | 3730 |       fi | 
 | 3731 |     done | 
 | 3732 |   done | 
 | 3733 | done | 
 | 3734 | lt_ac_max=0 | 
 | 3735 | lt_ac_count=0 | 
 | 3736 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
 | 3737 | # along with /bin/sed that truncates output. | 
 | 3738 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
 | 3739 |   test ! -f $lt_ac_sed && break | 
 | 3740 |   cat /dev/null > conftest.in | 
 | 3741 |   lt_ac_count=0 | 
 | 3742 |   echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
 | 3743 |   # Check for GNU sed and select it if it is found. | 
 | 3744 |   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
 | 3745 |     lt_cv_path_SED=$lt_ac_sed | 
 | 3746 |     break | 
 | 3747 |   fi | 
 | 3748 |   while true; do | 
 | 3749 |     cat conftest.in conftest.in >conftest.tmp | 
 | 3750 |     mv conftest.tmp conftest.in | 
 | 3751 |     cp conftest.in conftest.nl | 
 | 3752 |     echo >>conftest.nl | 
 | 3753 |     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
 | 3754 |     cmp -s conftest.out conftest.nl || break | 
 | 3755 |     # 10000 chars as input seems more than enough | 
 | 3756 |     test $lt_ac_count -gt 10 && break | 
 | 3757 |     lt_ac_count=`expr $lt_ac_count + 1` | 
 | 3758 |     if test $lt_ac_count -gt $lt_ac_max; then | 
 | 3759 |       lt_ac_max=$lt_ac_count | 
 | 3760 |       lt_cv_path_SED=$lt_ac_sed | 
 | 3761 |     fi | 
 | 3762 |   done | 
 | 3763 | done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3764 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3765 | fi | 
 | 3766 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3767 | SED=$lt_cv_path_SED | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3768 | echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 3769 | echo "${ECHO_T}$SED" >&6 | 
 | 3770 |  | 
 | 3771 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
 | 3772 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
 | 3773 | if test "${ac_cv_prog_egrep+set}" = set; then | 
 | 3774 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3775 | else | 
 | 3776 |   if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
 | 3777 |     then ac_cv_prog_egrep='grep -E' | 
 | 3778 |     else ac_cv_prog_egrep='egrep' | 
 | 3779 |     fi | 
 | 3780 | fi | 
 | 3781 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
 | 3782 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
 | 3783 |  EGREP=$ac_cv_prog_egrep | 
 | 3784 |  | 
 | 3785 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3786 |  | 
 | 3787 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 3788 | if test "${with_gnu_ld+set}" = set; then | 
 | 3789 |   withval="$with_gnu_ld" | 
 | 3790 |   test "$withval" = no || with_gnu_ld=yes | 
 | 3791 | else | 
 | 3792 |   with_gnu_ld=no | 
 | 3793 | fi; | 
 | 3794 | ac_prog=ld | 
 | 3795 | if test "$GCC" = yes; then | 
 | 3796 |   # Check if gcc -print-prog-name=ld gives a path. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3797 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 3798 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3799 |   case $host in | 
 | 3800 |   *-*-mingw*) | 
 | 3801 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 3802 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 3803 |   *) | 
 | 3804 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 3805 |   esac | 
 | 3806 |   case $ac_prog in | 
 | 3807 |     # Accept absolute paths. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3808 |     [\\/]* | ?:[\\/]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3809 |       re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3810 |       # Canonicalize the pathname of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3811 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3812 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3813 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3814 |       done | 
 | 3815 |       test -z "$LD" && LD="$ac_prog" | 
 | 3816 |       ;; | 
 | 3817 |   "") | 
 | 3818 |     # If it fails, then pretend we aren't using GCC. | 
 | 3819 |     ac_prog=ld | 
 | 3820 |     ;; | 
 | 3821 |   *) | 
 | 3822 |     # If it is relative, then search for the first ld in PATH. | 
 | 3823 |     with_gnu_ld=unknown | 
 | 3824 |     ;; | 
 | 3825 |   esac | 
 | 3826 | elif test "$with_gnu_ld" = yes; then | 
 | 3827 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 3828 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 3829 | else | 
 | 3830 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 3831 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 3832 | fi | 
 | 3833 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 3834 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3835 | else | 
 | 3836 |   if test -z "$LD"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3837 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3838 |   for ac_dir in $PATH; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3839 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3840 |     test -z "$ac_dir" && ac_dir=. | 
 | 3841 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 3842 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 3843 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 3844 |       # but apparently some GNU ld's only accept -v. | 
 | 3845 |       # 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] | 3846 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 3847 |       *GNU* | *'with BFD'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3848 | 	test "$with_gnu_ld" != no && break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3849 | 	;; | 
 | 3850 |       *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | 	test "$with_gnu_ld" != yes && break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3852 | 	;; | 
 | 3853 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3854 |     fi | 
 | 3855 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3856 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3857 | else | 
 | 3858 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 3859 | fi | 
 | 3860 | fi | 
 | 3861 |  | 
 | 3862 | LD="$lt_cv_path_LD" | 
 | 3863 | if test -n "$LD"; then | 
 | 3864 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 3865 | echo "${ECHO_T}$LD" >&6 | 
 | 3866 | else | 
 | 3867 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3868 | echo "${ECHO_T}no" >&6 | 
 | 3869 | fi | 
 | 3870 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 3871 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 3872 |    { (exit 1); exit 1; }; } | 
 | 3873 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 3874 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 3875 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 3876 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3877 | else | 
 | 3878 |   # 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] | 3879 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3880 | *GNU* | *'with BFD'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3881 |   lt_cv_prog_gnu_ld=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3882 |   ;; | 
 | 3883 | *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3884 |   lt_cv_prog_gnu_ld=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3885 |   ;; | 
 | 3886 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3887 | fi | 
 | 3888 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 3889 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 3890 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 3891 |  | 
 | 3892 |  | 
 | 3893 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
 | 3894 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 
 | 3895 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
 | 3896 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3897 | else | 
 | 3898 |   lt_cv_ld_reload_flag='-r' | 
 | 3899 | fi | 
 | 3900 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
 | 3901 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 
 | 3902 | reload_flag=$lt_cv_ld_reload_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3903 | case $reload_flag in | 
 | 3904 | "" | " "*) ;; | 
 | 3905 | *) reload_flag=" $reload_flag" ;; | 
 | 3906 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3907 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 3908 | case $host_os in | 
 | 3909 |   darwin*) | 
 | 3910 |     if test "$GCC" = yes; then | 
 | 3911 |       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | 
 | 3912 |     else | 
 | 3913 |       reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 3914 |     fi | 
 | 3915 |     ;; | 
 | 3916 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3917 |  | 
 | 3918 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
 | 3919 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 
 | 3920 | if test "${lt_cv_path_NM+set}" = set; then | 
 | 3921 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3922 | else | 
 | 3923 |   if test -n "$NM"; then | 
 | 3924 |   # Let the user override the test. | 
 | 3925 |   lt_cv_path_NM="$NM" | 
 | 3926 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3927 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3928 |   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3929 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3930 |     test -z "$ac_dir" && ac_dir=. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3931 |     tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 
 | 3932 |     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3933 |       # Check to see if the nm accepts a BSD-compat flag. | 
 | 3934 |       # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
 | 3935 |       #   nm: unknown option "B" ignored | 
 | 3936 |       # Tru64's nm complains that /dev/null is an invalid object file | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3937 |       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
 | 3938 |       */dev/null* | *'Invalid file or object type'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3939 | 	lt_cv_path_NM="$tmp_nm -B" | 
 | 3940 | 	break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3941 |         ;; | 
 | 3942 |       *) | 
 | 3943 | 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
 | 3944 | 	*/dev/null*) | 
 | 3945 | 	  lt_cv_path_NM="$tmp_nm -p" | 
 | 3946 | 	  break | 
 | 3947 | 	  ;; | 
 | 3948 | 	*) | 
 | 3949 | 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
 | 3950 | 	  continue # so that we can try to find one that supports BSD flags | 
 | 3951 | 	  ;; | 
 | 3952 | 	esac | 
 | 3953 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3954 |     fi | 
 | 3955 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3956 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 |   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
 | 3958 | fi | 
 | 3959 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3960 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
 | 3961 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3962 | NM="$lt_cv_path_NM" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3963 |  | 
 | 3964 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
 | 3965 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
 | 3966 | LN_S=$as_ln_s | 
 | 3967 | if test "$LN_S" = "ln -s"; then | 
 | 3968 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 3969 | echo "${ECHO_T}yes" >&6 | 
 | 3970 | else | 
 | 3971 |   echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
 | 3972 | echo "${ECHO_T}no, using $LN_S" >&6 | 
 | 3973 | fi | 
 | 3974 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3975 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
 | 3976 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3977 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
 | 3978 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3979 | else | 
 | 3980 |   lt_cv_file_magic_cmd='$MAGIC_CMD' | 
 | 3981 | lt_cv_file_magic_test_file= | 
 | 3982 | lt_cv_deplibs_check_method='unknown' | 
 | 3983 | # Need to set the preceding variable on all platforms that support | 
 | 3984 | # interlibrary dependencies. | 
 | 3985 | # 'none' -- dependencies not supported. | 
 | 3986 | # `unknown' -- same as none, but documents that we really don't know. | 
 | 3987 | # 'pass_all' -- all dependencies passed with no checks. | 
 | 3988 | # 'test_compile' -- check by making test program. | 
 | 3989 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3990 | # which responds to the $file_magic_cmd with a given extended regex. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3991 | # If you have `file' or equivalent on your system and you're not sure | 
 | 3992 | # whether `pass_all' will *always* work, you probably want this one. | 
 | 3993 |  | 
 | 3994 | case $host_os in | 
 | 3995 | aix4* | aix5*) | 
 | 3996 |   lt_cv_deplibs_check_method=pass_all | 
 | 3997 |   ;; | 
 | 3998 |  | 
 | 3999 | beos*) | 
 | 4000 |   lt_cv_deplibs_check_method=pass_all | 
 | 4001 |   ;; | 
 | 4002 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4003 | bsdi[45]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4004 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
 | 4005 |   lt_cv_file_magic_cmd='/usr/bin/file -L' | 
 | 4006 |   lt_cv_file_magic_test_file=/shlib/libc.so | 
 | 4007 |   ;; | 
 | 4008 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4009 | cygwin*) | 
 | 4010 |   # func_win32_libid is a shell function defined in ltmain.sh | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4011 |   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4012 |   lt_cv_file_magic_cmd='func_win32_libid' | 
 | 4013 |   ;; | 
 | 4014 |  | 
 | 4015 | mingw* | pw32*) | 
 | 4016 |   # Base MSYS/MinGW do not provide the 'file' command needed by | 
 | 4017 |   # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 
 | 4018 |   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
 | 4019 |   lt_cv_file_magic_cmd='$OBJDUMP -f' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4020 |   ;; | 
 | 4021 |  | 
 | 4022 | darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4023 |   lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4024 |   ;; | 
 | 4025 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4026 | freebsd* | kfreebsd*-gnu) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4027 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 4028 |     case $host_cpu in | 
 | 4029 |     i*86 ) | 
 | 4030 |       # Not sure whether the presence of OpenBSD here was a mistake. | 
 | 4031 |       # Let's accept both of them until this is cleared up. | 
 | 4032 |       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
 | 4033 |       lt_cv_file_magic_cmd=/usr/bin/file | 
 | 4034 |       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
 | 4035 |       ;; | 
 | 4036 |     esac | 
 | 4037 |   else | 
 | 4038 |     lt_cv_deplibs_check_method=pass_all | 
 | 4039 |   fi | 
 | 4040 |   ;; | 
 | 4041 |  | 
 | 4042 | gnu*) | 
 | 4043 |   lt_cv_deplibs_check_method=pass_all | 
 | 4044 |   ;; | 
 | 4045 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4046 | hpux10.20* | hpux11*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4047 |   lt_cv_file_magic_cmd=/usr/bin/file | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4048 |   case "$host_cpu" in | 
 | 4049 |   ia64*) | 
 | 4050 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
 | 4051 |     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
 | 4052 |     ;; | 
 | 4053 |   hppa*64*) | 
 | 4054 |     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]' | 
 | 4055 |     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
 | 4056 |     ;; | 
 | 4057 |   *) | 
 | 4058 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
 | 4059 |     lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
 | 4060 |     ;; | 
 | 4061 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4062 |   ;; | 
 | 4063 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4064 | irix5* | irix6* | nonstopux*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4065 |   case $LD in | 
 | 4066 |   *-32|*"-32 ") libmagic=32-bit;; | 
 | 4067 |   *-n32|*"-n32 ") libmagic=N32;; | 
 | 4068 |   *-64|*"-64 ") libmagic=64-bit;; | 
 | 4069 |   *) libmagic=never-match;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4070 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4071 |   lt_cv_deplibs_check_method=pass_all | 
 | 4072 |   ;; | 
 | 4073 |  | 
 | 4074 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4075 | linux*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4076 |   lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4077 |   ;; | 
 | 4078 |  | 
 | 4079 | netbsd*) | 
 | 4080 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4081 |     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] | 4082 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4083 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4084 |   fi | 
 | 4085 |   ;; | 
 | 4086 |  | 
 | 4087 | newos6*) | 
 | 4088 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
 | 4089 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 4090 |   lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
 | 4091 |   ;; | 
 | 4092 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4093 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4094 |   lt_cv_deplibs_check_method=unknown | 
 | 4095 |   ;; | 
 | 4096 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4097 | openbsd*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4098 |   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] | 4099 |     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] | 4100 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4101 |     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] | 4102 |   fi | 
 | 4103 |   ;; | 
 | 4104 |  | 
 | 4105 | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4106 |   lt_cv_deplibs_check_method=pass_all | 
 | 4107 |   ;; | 
 | 4108 |  | 
 | 4109 | sco3.2v5*) | 
 | 4110 |   lt_cv_deplibs_check_method=pass_all | 
 | 4111 |   ;; | 
 | 4112 |  | 
 | 4113 | solaris*) | 
 | 4114 |   lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4115 |   ;; | 
 | 4116 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4117 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 4118 |   case $host_vendor in | 
 | 4119 |   motorola) | 
 | 4120 |     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]' | 
 | 4121 |     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
 | 4122 |     ;; | 
 | 4123 |   ncr) | 
 | 4124 |     lt_cv_deplibs_check_method=pass_all | 
 | 4125 |     ;; | 
 | 4126 |   sequent) | 
 | 4127 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 4128 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
 | 4129 |     ;; | 
 | 4130 |   sni) | 
 | 4131 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 4132 |     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
 | 4133 |     lt_cv_file_magic_test_file=/lib/libc.so | 
 | 4134 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4135 |   siemens) | 
 | 4136 |     lt_cv_deplibs_check_method=pass_all | 
 | 4137 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4138 |   esac | 
 | 4139 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4140 |  | 
 | 4141 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 
 | 4142 |   lt_cv_deplibs_check_method=pass_all | 
 | 4143 |   ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4144 | esac | 
 | 4145 |  | 
 | 4146 | fi | 
 | 4147 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
 | 4148 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 
 | 4149 | file_magic_cmd=$lt_cv_file_magic_cmd | 
 | 4150 | deplibs_check_method=$lt_cv_deplibs_check_method | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4151 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4152 |  | 
 | 4153 |  | 
 | 4154 |  | 
 | 4155 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4156 | # If no C compiler was specified, use CC. | 
 | 4157 | LTCC=${LTCC-"$CC"} | 
| 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 | # Allow CC to be a program name with arguments. | 
 | 4160 | compiler=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4161 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4162 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 4163 | if test "${enable_libtool_lock+set}" = set; then | 
 | 4164 |   enableval="$enable_libtool_lock" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4165 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4166 | fi; | 
 | 4167 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4168 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4169 | # Some flags need to be propagated to the compiler or linker for good | 
 | 4170 | # libtool support. | 
 | 4171 | case $host in | 
 | 4172 | ia64-*-hpux*) | 
 | 4173 |   # Find out which ABI we are using. | 
 | 4174 |   echo 'int i;' > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4175 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4176 |   (eval $ac_compile) 2>&5 | 
 | 4177 |   ac_status=$? | 
 | 4178 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4179 |   (exit $ac_status); }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4180 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4181 |     *ELF-32*) | 
 | 4182 |       HPUX_IA64_MODE="32" | 
 | 4183 |       ;; | 
 | 4184 |     *ELF-64*) | 
 | 4185 |       HPUX_IA64_MODE="64" | 
 | 4186 |       ;; | 
 | 4187 |     esac | 
 | 4188 |   fi | 
 | 4189 |   rm -rf conftest* | 
 | 4190 |   ;; | 
 | 4191 | *-*-irix6*) | 
 | 4192 |   # Find out which ABI we are using. | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 4193 |   echo '#line 4193 "configure"' > conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4194 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4195 |   (eval $ac_compile) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4196 |   ac_status=$? | 
 | 4197 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4198 |   (exit $ac_status); }; then | 
 | 4199 |    if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 4200 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4201 |     *32-bit*) | 
 | 4202 |       LD="${LD-ld} -melf32bsmip" | 
 | 4203 |       ;; | 
 | 4204 |     *N32*) | 
 | 4205 |       LD="${LD-ld} -melf32bmipn32" | 
 | 4206 |       ;; | 
 | 4207 |     *64-bit*) | 
 | 4208 |       LD="${LD-ld} -melf64bmip" | 
 | 4209 |       ;; | 
 | 4210 |     esac | 
 | 4211 |    else | 
 | 4212 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4213 |     *32-bit*) | 
 | 4214 |       LD="${LD-ld} -32" | 
 | 4215 |       ;; | 
 | 4216 |     *N32*) | 
 | 4217 |       LD="${LD-ld} -n32" | 
 | 4218 |       ;; | 
 | 4219 |     *64-bit*) | 
 | 4220 |       LD="${LD-ld} -64" | 
 | 4221 |       ;; | 
 | 4222 |     esac | 
 | 4223 |    fi | 
 | 4224 |   fi | 
 | 4225 |   rm -rf conftest* | 
 | 4226 |   ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4227 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4228 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
 | 4229 |   # Find out which ABI we are using. | 
 | 4230 |   echo 'int i;' > conftest.$ac_ext | 
 | 4231 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4232 |   (eval $ac_compile) 2>&5 | 
 | 4233 |   ac_status=$? | 
 | 4234 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4235 |   (exit $ac_status); }; then | 
 | 4236 |     case "`/usr/bin/file conftest.o`" in | 
 | 4237 |     *32-bit*) | 
 | 4238 |       case $host in | 
 | 4239 |         x86_64-*linux*) | 
 | 4240 |           LD="${LD-ld} -m elf_i386" | 
 | 4241 |           ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4242 |         ppc64-*linux*|powerpc64-*linux*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4243 |           LD="${LD-ld} -m elf32ppclinux" | 
 | 4244 |           ;; | 
 | 4245 |         s390x-*linux*) | 
 | 4246 |           LD="${LD-ld} -m elf_s390" | 
 | 4247 |           ;; | 
 | 4248 |         sparc64-*linux*) | 
 | 4249 |           LD="${LD-ld} -m elf32_sparc" | 
 | 4250 |           ;; | 
 | 4251 |       esac | 
 | 4252 |       ;; | 
 | 4253 |     *64-bit*) | 
 | 4254 |       case $host in | 
 | 4255 |         x86_64-*linux*) | 
 | 4256 |           LD="${LD-ld} -m elf_x86_64" | 
 | 4257 |           ;; | 
 | 4258 |         ppc*-*linux*|powerpc*-*linux*) | 
 | 4259 |           LD="${LD-ld} -m elf64ppc" | 
 | 4260 |           ;; | 
 | 4261 |         s390*-*linux*) | 
 | 4262 |           LD="${LD-ld} -m elf64_s390" | 
 | 4263 |           ;; | 
 | 4264 |         sparc*-*linux*) | 
 | 4265 |           LD="${LD-ld} -m elf64_sparc" | 
 | 4266 |           ;; | 
 | 4267 |       esac | 
 | 4268 |       ;; | 
 | 4269 |     esac | 
 | 4270 |   fi | 
 | 4271 |   rm -rf conftest* | 
 | 4272 |   ;; | 
 | 4273 |  | 
 | 4274 | *-*-sco3.2v5*) | 
 | 4275 |   # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
 | 4276 |   SAVE_CFLAGS="$CFLAGS" | 
 | 4277 |   CFLAGS="$CFLAGS -belf" | 
 | 4278 |   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
 | 4279 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 
 | 4280 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
 | 4281 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4282 | else | 
 | 4283 |   ac_ext=c | 
 | 4284 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4288 |  | 
 | 4289 |      cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4290 | /* confdefs.h.  */ | 
 | 4291 | _ACEOF | 
 | 4292 | cat confdefs.h >>conftest.$ac_ext | 
 | 4293 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4294 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4295 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4296 | _ACEOF | 
 | 4297 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4299 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4300 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4301 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4302 |   rm -f conftest.er1 | 
 | 4303 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4304 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4305 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4306 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4307 | 			 || test ! -s conftest.err' | 
 | 4308 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4309 |   (eval $ac_try) 2>&5 | 
 | 4310 |   ac_status=$? | 
 | 4311 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4312 |   (exit $ac_status); }; } && | 
 | 4313 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4314 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4315 |   (eval $ac_try) 2>&5 | 
 | 4316 |   ac_status=$? | 
 | 4317 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4318 |   (exit $ac_status); }; }; then | 
 | 4319 |   lt_cv_cc_needs_belf=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4320 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4321 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4322 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4323 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4324 | lt_cv_cc_needs_belf=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4325 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4326 | rm -f conftest.err conftest.$ac_objext \ | 
 | 4327 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4328 |      ac_ext=c | 
 | 4329 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4333 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4334 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4335 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
 | 4336 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 
 | 4337 |   if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
 | 4338 |     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
 | 4339 |     CFLAGS="$SAVE_CFLAGS" | 
 | 4340 |   fi | 
 | 4341 |   ;; | 
 | 4342 |  | 
 | 4343 | esac | 
 | 4344 |  | 
 | 4345 | need_locks="$enable_libtool_lock" | 
 | 4346 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4347 |  | 
 | 4348 |  | 
 | 4349 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 4350 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 4351 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 4352 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4353 | else | 
 | 4354 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4355 | /* confdefs.h.  */ | 
 | 4356 | _ACEOF | 
 | 4357 | cat confdefs.h >>conftest.$ac_ext | 
 | 4358 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4359 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4360 | #include <stdlib.h> | 
 | 4361 | #include <stdarg.h> | 
 | 4362 | #include <string.h> | 
 | 4363 | #include <float.h> | 
 | 4364 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4365 | int | 
 | 4366 | main () | 
 | 4367 | { | 
 | 4368 |  | 
 | 4369 |   ; | 
 | 4370 |   return 0; | 
 | 4371 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4372 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4373 | rm -f conftest.$ac_objext | 
 | 4374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4375 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4376 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4377 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4378 |   rm -f conftest.er1 | 
 | 4379 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4380 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4381 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4382 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4383 | 			 || test ! -s conftest.err' | 
 | 4384 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4385 |   (eval $ac_try) 2>&5 | 
 | 4386 |   ac_status=$? | 
 | 4387 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4388 |   (exit $ac_status); }; } && | 
 | 4389 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4390 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4391 |   (eval $ac_try) 2>&5 | 
 | 4392 |   ac_status=$? | 
 | 4393 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4394 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4395 |   ac_cv_header_stdc=yes | 
 | 4396 | else | 
 | 4397 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4398 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4399 |  | 
 | 4400 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4401 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4403 |  | 
 | 4404 | if test $ac_cv_header_stdc = yes; then | 
 | 4405 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4406 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4407 | /* confdefs.h.  */ | 
 | 4408 | _ACEOF | 
 | 4409 | cat confdefs.h >>conftest.$ac_ext | 
 | 4410 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4411 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4412 | #include <string.h> | 
 | 4413 |  | 
 | 4414 | _ACEOF | 
 | 4415 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4416 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4417 |   : | 
 | 4418 | else | 
 | 4419 |   ac_cv_header_stdc=no | 
 | 4420 | fi | 
 | 4421 | rm -f conftest* | 
 | 4422 |  | 
 | 4423 | fi | 
 | 4424 |  | 
 | 4425 | if test $ac_cv_header_stdc = yes; then | 
 | 4426 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4427 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4428 | /* confdefs.h.  */ | 
 | 4429 | _ACEOF | 
 | 4430 | cat confdefs.h >>conftest.$ac_ext | 
 | 4431 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4432 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4433 | #include <stdlib.h> | 
 | 4434 |  | 
 | 4435 | _ACEOF | 
 | 4436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4437 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4438 |   : | 
 | 4439 | else | 
 | 4440 |   ac_cv_header_stdc=no | 
 | 4441 | fi | 
 | 4442 | rm -f conftest* | 
 | 4443 |  | 
 | 4444 | fi | 
 | 4445 |  | 
 | 4446 | if test $ac_cv_header_stdc = yes; then | 
 | 4447 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4448 |   if test "$cross_compiling" = yes; then | 
 | 4449 |   : | 
 | 4450 | else | 
 | 4451 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4452 | /* confdefs.h.  */ | 
 | 4453 | _ACEOF | 
 | 4454 | cat confdefs.h >>conftest.$ac_ext | 
 | 4455 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4456 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4457 | #include <ctype.h> | 
 | 4458 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4459 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4460 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4461 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4462 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4463 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 4464 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 4465 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4466 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 4467 | #endif | 
 | 4468 |  | 
 | 4469 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 4470 | int | 
 | 4471 | main () | 
 | 4472 | { | 
 | 4473 |   int i; | 
 | 4474 |   for (i = 0; i < 256; i++) | 
 | 4475 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4476 | 	|| toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4477 |       exit(2); | 
 | 4478 |   exit (0); | 
 | 4479 | } | 
 | 4480 | _ACEOF | 
 | 4481 | rm -f conftest$ac_exeext | 
 | 4482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 4483 |   (eval $ac_link) 2>&5 | 
 | 4484 |   ac_status=$? | 
 | 4485 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4486 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 4487 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4488 |   (eval $ac_try) 2>&5 | 
 | 4489 |   ac_status=$? | 
 | 4490 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4491 |   (exit $ac_status); }; }; then | 
 | 4492 |   : | 
 | 4493 | else | 
 | 4494 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 4495 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4496 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4497 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4498 | ( exit $ac_status ) | 
 | 4499 | ac_cv_header_stdc=no | 
 | 4500 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4501 | 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] | 4502 | fi | 
 | 4503 | fi | 
 | 4504 | fi | 
 | 4505 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 4506 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 4507 | if test $ac_cv_header_stdc = yes; then | 
 | 4508 |  | 
 | 4509 | cat >>confdefs.h <<\_ACEOF | 
 | 4510 | #define STDC_HEADERS 1 | 
 | 4511 | _ACEOF | 
 | 4512 |  | 
 | 4513 | fi | 
 | 4514 |  | 
 | 4515 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 4516 |  | 
 | 4517 |  | 
 | 4518 |  | 
 | 4519 |  | 
 | 4520 |  | 
 | 4521 |  | 
 | 4522 |  | 
 | 4523 |  | 
 | 4524 |  | 
 | 4525 | 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] | 4526 | 		  inttypes.h stdint.h unistd.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4527 | do | 
 | 4528 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 4529 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 4530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4532 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4533 | else | 
 | 4534 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4535 | /* confdefs.h.  */ | 
 | 4536 | _ACEOF | 
 | 4537 | cat confdefs.h >>conftest.$ac_ext | 
 | 4538 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4539 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4540 | $ac_includes_default | 
 | 4541 |  | 
 | 4542 | #include <$ac_header> | 
 | 4543 | _ACEOF | 
 | 4544 | rm -f conftest.$ac_objext | 
 | 4545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4546 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4547 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4548 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4549 |   rm -f conftest.er1 | 
 | 4550 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4551 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4552 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4553 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4554 | 			 || test ! -s conftest.err' | 
 | 4555 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4556 |   (eval $ac_try) 2>&5 | 
 | 4557 |   ac_status=$? | 
 | 4558 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4559 |   (exit $ac_status); }; } && | 
 | 4560 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4561 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4562 |   (eval $ac_try) 2>&5 | 
 | 4563 |   ac_status=$? | 
 | 4564 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4565 |   (exit $ac_status); }; }; then | 
 | 4566 |   eval "$as_ac_Header=yes" | 
 | 4567 | else | 
 | 4568 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4569 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4570 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4571 | eval "$as_ac_Header=no" | 
 | 4572 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4574 | fi | 
 | 4575 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4576 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 4577 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 4578 |   cat >>confdefs.h <<_ACEOF | 
 | 4579 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4580 | _ACEOF | 
 | 4581 |  | 
 | 4582 | fi | 
 | 4583 |  | 
 | 4584 | done | 
 | 4585 |  | 
 | 4586 |  | 
 | 4587 |  | 
 | 4588 | for ac_header in dlfcn.h | 
 | 4589 | do | 
 | 4590 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4592 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4593 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4595 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4596 | fi | 
 | 4597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4598 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4599 | else | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4600 |   # Is the header compilable? | 
 | 4601 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 4602 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 4603 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4604 | /* confdefs.h.  */ | 
 | 4605 | _ACEOF | 
 | 4606 | cat confdefs.h >>conftest.$ac_ext | 
 | 4607 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4608 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4609 | $ac_includes_default | 
 | 4610 | #include <$ac_header> | 
 | 4611 | _ACEOF | 
 | 4612 | rm -f conftest.$ac_objext | 
 | 4613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4614 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4615 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4616 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4617 |   rm -f conftest.er1 | 
 | 4618 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4619 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4620 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4621 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4622 | 			 || test ! -s conftest.err' | 
 | 4623 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4624 |   (eval $ac_try) 2>&5 | 
 | 4625 |   ac_status=$? | 
 | 4626 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4627 |   (exit $ac_status); }; } && | 
 | 4628 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4629 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4630 |   (eval $ac_try) 2>&5 | 
 | 4631 |   ac_status=$? | 
 | 4632 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4633 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4634 |   ac_header_compiler=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4635 | else | 
 | 4636 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4637 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4638 |  | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4639 | ac_header_compiler=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4640 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4642 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 4643 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 4644 |  | 
 | 4645 | # Is the header present? | 
 | 4646 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 4647 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 4648 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4649 | /* confdefs.h.  */ | 
 | 4650 | _ACEOF | 
 | 4651 | cat confdefs.h >>conftest.$ac_ext | 
 | 4652 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4653 | /* end confdefs.h.  */ | 
 | 4654 | #include <$ac_header> | 
 | 4655 | _ACEOF | 
 | 4656 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4657 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4658 |   ac_status=$? | 
 | 4659 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4660 |   rm -f conftest.er1 | 
 | 4661 |   cat conftest.err >&5 | 
 | 4662 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4663 |   (exit $ac_status); } >/dev/null; then | 
 | 4664 |   if test -s conftest.err; then | 
 | 4665 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4666 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4667 |   else | 
 | 4668 |     ac_cpp_err= | 
 | 4669 |   fi | 
 | 4670 | else | 
 | 4671 |   ac_cpp_err=yes | 
 | 4672 | fi | 
 | 4673 | if test -z "$ac_cpp_err"; then | 
 | 4674 |   ac_header_preproc=yes | 
 | 4675 | else | 
 | 4676 |   echo "$as_me: failed program was:" >&5 | 
 | 4677 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4678 |  | 
 | 4679 |   ac_header_preproc=no | 
 | 4680 | fi | 
 | 4681 | rm -f conftest.err conftest.$ac_ext | 
 | 4682 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 4683 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 4684 |  | 
 | 4685 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4686 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 4687 |   yes:no: ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4688 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 4689 | 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] | 4690 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 4691 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 4692 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4693 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4694 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4695 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 4696 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4697 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 4698 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 4699 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 4700 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 4701 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 4702 | 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] | 4703 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 4704 | 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] | 4705 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 4706 | 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] | 4707 |     ( | 
 | 4708 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4709 | ## ----------------------------------- ## | 
 | 4710 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 4711 | ## ----------------------------------- ## | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4712 | _ASBOX | 
 | 4713 |     ) | | 
 | 4714 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 4715 |     ;; | 
 | 4716 | esac | 
 | 4717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 4718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4720 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4721 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4722 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4723 | fi | 
 | 4724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4725 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 4726 |  | 
 | 4727 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4728 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 4729 |   cat >>confdefs.h <<_ACEOF | 
 | 4730 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4731 | _ACEOF | 
 | 4732 |  | 
 | 4733 | fi | 
 | 4734 |  | 
 | 4735 | done | 
 | 4736 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4737 |  | 
 | 4738 |  | 
 | 4739 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 4740 |     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 4741 |     (test "X$CXX" != "Xg++"))) ; then | 
 | 4742 |   ac_ext=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4743 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 4744 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4745 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4746 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 4747 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
 | 4748 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 
 | 4749 | if test -z "$CXXCPP"; then | 
 | 4750 |   if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4751 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4752 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4753 |       # Double quotes because CXXCPP needs to be expanded | 
 | 4754 |     for CXXCPP in "$CXX -E" "/lib/cpp" | 
 | 4755 |     do | 
 | 4756 |       ac_preproc_ok=false | 
 | 4757 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 4758 | do | 
 | 4759 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4760 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4761 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4762 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4763 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4764 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4765 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4766 | /* confdefs.h.  */ | 
 | 4767 | _ACEOF | 
 | 4768 | cat confdefs.h >>conftest.$ac_ext | 
 | 4769 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4770 | /* end confdefs.h.  */ | 
 | 4771 | #ifdef __STDC__ | 
 | 4772 | # include <limits.h> | 
 | 4773 | #else | 
 | 4774 | # include <assert.h> | 
 | 4775 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4776 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4777 | _ACEOF | 
 | 4778 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4779 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4780 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4781 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4782 |   rm -f conftest.er1 | 
 | 4783 |   cat conftest.err >&5 | 
 | 4784 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4785 |   (exit $ac_status); } >/dev/null; then | 
 | 4786 |   if test -s conftest.err; then | 
 | 4787 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4788 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4789 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4790 |     ac_cpp_err= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4791 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4792 | else | 
 | 4793 |   ac_cpp_err=yes | 
 | 4794 | fi | 
 | 4795 | if test -z "$ac_cpp_err"; then | 
 | 4796 |   : | 
 | 4797 | else | 
 | 4798 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4799 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4800 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4801 |   # Broken: fails on valid input. | 
 | 4802 | continue | 
 | 4803 | fi | 
 | 4804 | rm -f conftest.err conftest.$ac_ext | 
 | 4805 |  | 
 | 4806 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 4807 |   # can be detected and how. | 
 | 4808 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4809 | /* confdefs.h.  */ | 
 | 4810 | _ACEOF | 
 | 4811 | cat confdefs.h >>conftest.$ac_ext | 
 | 4812 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4813 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4814 | #include <ac_nonexistent.h> | 
 | 4815 | _ACEOF | 
 | 4816 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4817 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4818 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4819 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4820 |   rm -f conftest.er1 | 
 | 4821 |   cat conftest.err >&5 | 
 | 4822 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4823 |   (exit $ac_status); } >/dev/null; then | 
 | 4824 |   if test -s conftest.err; then | 
 | 4825 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4826 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4827 |   else | 
 | 4828 |     ac_cpp_err= | 
 | 4829 |   fi | 
 | 4830 | else | 
 | 4831 |   ac_cpp_err=yes | 
 | 4832 | fi | 
 | 4833 | if test -z "$ac_cpp_err"; then | 
 | 4834 |   # Broken: success on invalid input. | 
 | 4835 | continue | 
 | 4836 | else | 
 | 4837 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4838 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4839 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4840 |   # Passes both tests. | 
 | 4841 | ac_preproc_ok=: | 
 | 4842 | break | 
 | 4843 | fi | 
 | 4844 | rm -f conftest.err conftest.$ac_ext | 
 | 4845 |  | 
 | 4846 | done | 
 | 4847 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4848 | rm -f conftest.err conftest.$ac_ext | 
 | 4849 | if $ac_preproc_ok; then | 
 | 4850 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4851 | fi | 
 | 4852 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4853 |     done | 
 | 4854 |     ac_cv_prog_CXXCPP=$CXXCPP | 
 | 4855 |  | 
 | 4856 | fi | 
 | 4857 |   CXXCPP=$ac_cv_prog_CXXCPP | 
 | 4858 | else | 
 | 4859 |   ac_cv_prog_CXXCPP=$CXXCPP | 
 | 4860 | fi | 
 | 4861 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
 | 4862 | echo "${ECHO_T}$CXXCPP" >&6 | 
 | 4863 | ac_preproc_ok=false | 
 | 4864 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 4865 | do | 
 | 4866 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4867 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4868 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4869 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4870 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4871 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4872 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4873 | /* confdefs.h.  */ | 
 | 4874 | _ACEOF | 
 | 4875 | cat confdefs.h >>conftest.$ac_ext | 
 | 4876 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4877 | /* end confdefs.h.  */ | 
 | 4878 | #ifdef __STDC__ | 
 | 4879 | # include <limits.h> | 
 | 4880 | #else | 
 | 4881 | # include <assert.h> | 
 | 4882 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4883 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4884 | _ACEOF | 
 | 4885 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4886 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4887 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4888 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4889 |   rm -f conftest.er1 | 
 | 4890 |   cat conftest.err >&5 | 
 | 4891 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4892 |   (exit $ac_status); } >/dev/null; then | 
 | 4893 |   if test -s conftest.err; then | 
 | 4894 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4895 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4896 |   else | 
 | 4897 |     ac_cpp_err= | 
 | 4898 |   fi | 
 | 4899 | else | 
 | 4900 |   ac_cpp_err=yes | 
 | 4901 | fi | 
 | 4902 | if test -z "$ac_cpp_err"; then | 
 | 4903 |   : | 
 | 4904 | else | 
 | 4905 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4906 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4907 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4908 |   # Broken: fails on valid input. | 
 | 4909 | continue | 
 | 4910 | fi | 
 | 4911 | rm -f conftest.err conftest.$ac_ext | 
 | 4912 |  | 
 | 4913 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 4914 |   # can be detected and how. | 
 | 4915 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4916 | /* confdefs.h.  */ | 
 | 4917 | _ACEOF | 
 | 4918 | cat confdefs.h >>conftest.$ac_ext | 
 | 4919 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4920 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4921 | #include <ac_nonexistent.h> | 
 | 4922 | _ACEOF | 
 | 4923 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4924 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4925 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4926 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4927 |   rm -f conftest.er1 | 
 | 4928 |   cat conftest.err >&5 | 
 | 4929 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4930 |   (exit $ac_status); } >/dev/null; then | 
 | 4931 |   if test -s conftest.err; then | 
 | 4932 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4933 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4934 |   else | 
 | 4935 |     ac_cpp_err= | 
 | 4936 |   fi | 
 | 4937 | else | 
 | 4938 |   ac_cpp_err=yes | 
 | 4939 | fi | 
 | 4940 | if test -z "$ac_cpp_err"; then | 
 | 4941 |   # Broken: success on invalid input. | 
 | 4942 | continue | 
 | 4943 | else | 
 | 4944 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4945 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4946 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4947 |   # Passes both tests. | 
 | 4948 | ac_preproc_ok=: | 
 | 4949 | break | 
 | 4950 | fi | 
 | 4951 | rm -f conftest.err conftest.$ac_ext | 
 | 4952 |  | 
 | 4953 | done | 
 | 4954 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4955 | rm -f conftest.err conftest.$ac_ext | 
 | 4956 | if $ac_preproc_ok; then | 
 | 4957 |   : | 
 | 4958 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4959 |   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 4960 | See \`config.log' for more details." >&5 | 
 | 4961 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 4962 | See \`config.log' for more details." >&2;} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4963 |    { (exit 1); exit 1; }; } | 
 | 4964 | fi | 
 | 4965 |  | 
 | 4966 | ac_ext=cc | 
 | 4967 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 4968 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4969 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4970 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 4971 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4972 | fi | 
 | 4973 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4974 |  | 
 | 4975 | ac_ext=f | 
 | 4976 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 4977 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4978 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 4979 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4980 |   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] | 4981 |   do | 
 | 4982 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 4983 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 4984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4986 | if test "${ac_cv_prog_F77+set}" = set; then | 
 | 4987 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4988 | else | 
 | 4989 |   if test -n "$F77"; then | 
 | 4990 |   ac_cv_prog_F77="$F77" # Let the user override the test. | 
 | 4991 | else | 
 | 4992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4993 | for as_dir in $PATH | 
 | 4994 | do | 
 | 4995 |   IFS=$as_save_IFS | 
 | 4996 |   test -z "$as_dir" && as_dir=. | 
 | 4997 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4998 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4999 |     ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
 | 5000 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5001 |     break 2 | 
 | 5002 |   fi | 
 | 5003 | done | 
 | 5004 | done | 
 | 5005 |  | 
 | 5006 | fi | 
 | 5007 | fi | 
 | 5008 | F77=$ac_cv_prog_F77 | 
 | 5009 | if test -n "$F77"; then | 
 | 5010 |   echo "$as_me:$LINENO: result: $F77" >&5 | 
 | 5011 | echo "${ECHO_T}$F77" >&6 | 
 | 5012 | else | 
 | 5013 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5014 | echo "${ECHO_T}no" >&6 | 
 | 5015 | fi | 
 | 5016 |  | 
 | 5017 |     test -n "$F77" && break | 
 | 5018 |   done | 
 | 5019 | fi | 
 | 5020 | if test -z "$F77"; then | 
 | 5021 |   ac_ct_F77=$F77 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5022 |   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] | 5023 | do | 
 | 5024 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5025 | set dummy $ac_prog; ac_word=$2 | 
 | 5026 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5028 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
 | 5029 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5030 | else | 
 | 5031 |   if test -n "$ac_ct_F77"; then | 
 | 5032 |   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
 | 5033 | else | 
 | 5034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5035 | for as_dir in $PATH | 
 | 5036 | do | 
 | 5037 |   IFS=$as_save_IFS | 
 | 5038 |   test -z "$as_dir" && as_dir=. | 
 | 5039 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5040 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5041 |     ac_cv_prog_ac_ct_F77="$ac_prog" | 
 | 5042 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5043 |     break 2 | 
 | 5044 |   fi | 
 | 5045 | done | 
 | 5046 | done | 
 | 5047 |  | 
 | 5048 | fi | 
 | 5049 | fi | 
 | 5050 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
 | 5051 | if test -n "$ac_ct_F77"; then | 
 | 5052 |   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
 | 5053 | echo "${ECHO_T}$ac_ct_F77" >&6 | 
 | 5054 | else | 
 | 5055 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5056 | echo "${ECHO_T}no" >&6 | 
 | 5057 | fi | 
 | 5058 |  | 
 | 5059 |   test -n "$ac_ct_F77" && break | 
 | 5060 | done | 
 | 5061 |  | 
 | 5062 |   F77=$ac_ct_F77 | 
 | 5063 | fi | 
 | 5064 |  | 
 | 5065 |  | 
 | 5066 | # Provide some information about the compiler. | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 5067 | echo "$as_me:5067:" \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5068 |      "checking for Fortran 77 compiler version" >&5 | 
 | 5069 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 5070 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 5071 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 5072 |   ac_status=$? | 
 | 5073 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5074 |   (exit $ac_status); } | 
 | 5075 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 5076 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 5077 |   ac_status=$? | 
 | 5078 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5079 |   (exit $ac_status); } | 
 | 5080 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 5081 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 5082 |   ac_status=$? | 
 | 5083 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5084 |   (exit $ac_status); } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5085 | rm -f a.out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5086 |  | 
 | 5087 | # 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] | 5088 | # input file.  (Note that this only needs to work for GNU compilers.) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5089 | ac_save_ext=$ac_ext | 
 | 5090 | ac_ext=F | 
 | 5091 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
 | 5092 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 
 | 5093 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
 | 5094 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5095 | else | 
 | 5096 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5097 |       program main | 
 | 5098 | #ifndef __GNUC__ | 
 | 5099 |        choke me | 
 | 5100 | #endif | 
 | 5101 |  | 
 | 5102 |       end | 
 | 5103 | _ACEOF | 
 | 5104 | rm -f conftest.$ac_objext | 
 | 5105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5106 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5107 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5108 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5109 |   rm -f conftest.er1 | 
 | 5110 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5111 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5112 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5113 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 5114 | 			 || test ! -s conftest.err' | 
 | 5115 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5116 |   (eval $ac_try) 2>&5 | 
 | 5117 |   ac_status=$? | 
 | 5118 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5119 |   (exit $ac_status); }; } && | 
 | 5120 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5121 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5122 |   (eval $ac_try) 2>&5 | 
 | 5123 |   ac_status=$? | 
 | 5124 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5125 |   (exit $ac_status); }; }; then | 
 | 5126 |   ac_compiler_gnu=yes | 
 | 5127 | else | 
 | 5128 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5129 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5130 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5131 | ac_compiler_gnu=no | 
 | 5132 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5134 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
 | 5135 |  | 
 | 5136 | fi | 
 | 5137 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
 | 5138 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 
 | 5139 | ac_ext=$ac_save_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5140 | ac_test_FFLAGS=${FFLAGS+set} | 
 | 5141 | ac_save_FFLAGS=$FFLAGS | 
 | 5142 | FFLAGS= | 
 | 5143 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
 | 5144 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 
 | 5145 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
 | 5146 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5147 | else | 
 | 5148 |   FFLAGS=-g | 
 | 5149 | cat >conftest.$ac_ext <<_ACEOF | 
 | 5150 |       program main | 
 | 5151 |  | 
 | 5152 |       end | 
 | 5153 | _ACEOF | 
 | 5154 | rm -f conftest.$ac_objext | 
 | 5155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5156 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5157 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5158 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5159 |   rm -f conftest.er1 | 
 | 5160 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5161 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5162 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5163 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 5164 | 			 || test ! -s conftest.err' | 
 | 5165 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5166 |   (eval $ac_try) 2>&5 | 
 | 5167 |   ac_status=$? | 
 | 5168 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5169 |   (exit $ac_status); }; } && | 
 | 5170 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5171 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5172 |   (eval $ac_try) 2>&5 | 
 | 5173 |   ac_status=$? | 
 | 5174 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5175 |   (exit $ac_status); }; }; then | 
 | 5176 |   ac_cv_prog_f77_g=yes | 
 | 5177 | else | 
 | 5178 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5179 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5180 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5181 | ac_cv_prog_f77_g=no | 
 | 5182 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5184 |  | 
 | 5185 | fi | 
 | 5186 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
 | 5187 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 
 | 5188 | if test "$ac_test_FFLAGS" = set; then | 
 | 5189 |   FFLAGS=$ac_save_FFLAGS | 
 | 5190 | elif test $ac_cv_prog_f77_g = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5191 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5192 |     FFLAGS="-g -O2" | 
 | 5193 |   else | 
 | 5194 |     FFLAGS="-g" | 
 | 5195 |   fi | 
 | 5196 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5197 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5198 |     FFLAGS="-O2" | 
 | 5199 |   else | 
 | 5200 |     FFLAGS= | 
 | 5201 |   fi | 
 | 5202 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5203 |  | 
 | 5204 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5205 | ac_ext=c | 
 | 5206 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5210 |  | 
 | 5211 |  | 
 | 5212 |  | 
 | 5213 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
 | 5214 |  | 
 | 5215 | # find the maximum length of command line arguments | 
 | 5216 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
 | 5217 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 
 | 5218 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
 | 5219 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5220 | else | 
 | 5221 |     i=0 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5222 |   teststring="ABCD" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5223 |  | 
 | 5224 |   case $build_os in | 
 | 5225 |   msdosdjgpp*) | 
 | 5226 |     # On DJGPP, this test can blow up pretty badly due to problems in libc | 
 | 5227 |     # (any single argument exceeding 2000 bytes causes a buffer overrun | 
 | 5228 |     # during glob expansion).  Even if it were fixed, the result of this | 
 | 5229 |     # check would be larger than it should be. | 
 | 5230 |     lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
 | 5231 |     ;; | 
 | 5232 |  | 
 | 5233 |   gnu*) | 
 | 5234 |     # Under GNU Hurd, this test is not required because there is | 
 | 5235 |     # no limit to the length of command line arguments. | 
 | 5236 |     # Libtool will interpret -1 as no limit whatsoever | 
 | 5237 |     lt_cv_sys_max_cmd_len=-1; | 
 | 5238 |     ;; | 
 | 5239 |  | 
 | 5240 |   cygwin* | mingw*) | 
 | 5241 |     # On Win9x/ME, this test blows up -- it succeeds, but takes | 
 | 5242 |     # about 5 minutes as the teststring grows exponentially. | 
 | 5243 |     # Worse, since 9x/ME are not pre-emptively multitasking, | 
 | 5244 |     # you end up with a "frozen" computer, even though with patience | 
 | 5245 |     # the test eventually succeeds (with a max line length of 256k). | 
 | 5246 |     # Instead, let's just punt: use the minimum linelength reported by | 
 | 5247 |     # all of the supported platforms: 8192 (on NT/2K/XP). | 
 | 5248 |     lt_cv_sys_max_cmd_len=8192; | 
 | 5249 |     ;; | 
 | 5250 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5251 |   amigaos*) | 
 | 5252 |     # On AmigaOS with pdksh, this test takes hours, literally. | 
 | 5253 |     # So we just punt and use a minimum line length of 8192. | 
 | 5254 |     lt_cv_sys_max_cmd_len=8192; | 
 | 5255 |     ;; | 
 | 5256 |  | 
 | 5257 |   netbsd* | freebsd* | openbsd* | darwin* ) | 
 | 5258 |     # This has been around since 386BSD, at least.  Likely further. | 
 | 5259 |     if test -x /sbin/sysctl; then | 
 | 5260 |       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
 | 5261 |     elif test -x /usr/sbin/sysctl; then | 
 | 5262 |       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
 | 5263 |     else | 
 | 5264 |       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | 
 | 5265 |     fi | 
 | 5266 |     # And add a safety zone | 
 | 5267 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
 | 5268 |     ;; | 
 | 5269 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5270 |  *) | 
 | 5271 |     # If test is not a shell built-in, we'll probably end up computing a | 
 | 5272 |     # maximum length that is only half of the actual maximum length, but | 
 | 5273 |     # we can't tell. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5274 |     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
 | 5275 |     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | 
 | 5276 | 	       = "XX$teststring") >/dev/null 2>&1 && | 
 | 5277 | 	    new_result=`expr "X$teststring" : ".*" 2>&1` && | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5278 | 	    lt_cv_sys_max_cmd_len=$new_result && | 
 | 5279 | 	    test $i != 17 # 1/2 MB should be enough | 
 | 5280 |     do | 
 | 5281 |       i=`expr $i + 1` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5282 |       teststring=$teststring$teststring | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5283 |     done | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5284 |     teststring= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5285 |     # Add a significant safety factor because C++ compilers can tack on massive | 
 | 5286 |     # amounts of additional arguments before passing them to the linker. | 
 | 5287 |     # It appears as though 1/2 is a usable value. | 
 | 5288 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
 | 5289 |     ;; | 
 | 5290 |   esac | 
 | 5291 |  | 
 | 5292 | fi | 
 | 5293 |  | 
 | 5294 | if test -n $lt_cv_sys_max_cmd_len ; then | 
 | 5295 |   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
 | 5296 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 
 | 5297 | else | 
 | 5298 |   echo "$as_me:$LINENO: result: none" >&5 | 
 | 5299 | echo "${ECHO_T}none" >&6 | 
 | 5300 | fi | 
 | 5301 |  | 
 | 5302 |  | 
 | 5303 |  | 
 | 5304 |  | 
 | 5305 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
 | 5306 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 5307 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
 | 5308 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 5309 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5310 | else | 
 | 5311 |  | 
 | 5312 | # These are sane defaults that work on at least a few old systems. | 
 | 5313 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 5314 |  | 
 | 5315 | # Character class describing NM global symbol codes. | 
 | 5316 | symcode='[BCDEGRST]' | 
 | 5317 |  | 
 | 5318 | # Regexp to match symbols that can be accessed directly from C. | 
 | 5319 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 5320 |  | 
 | 5321 | # Transform the above into a raw symbol and a C symbol. | 
 | 5322 | symxfrm='\1 \2\3 \3' | 
 | 5323 |  | 
 | 5324 | # Transform an extracted symbol line into a proper C declaration | 
 | 5325 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 5326 |  | 
 | 5327 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 5328 | 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'" | 
 | 5329 |  | 
 | 5330 | # Define system-specific variables. | 
 | 5331 | case $host_os in | 
 | 5332 | aix*) | 
 | 5333 |   symcode='[BCDT]' | 
 | 5334 |   ;; | 
 | 5335 | cygwin* | mingw* | pw32*) | 
 | 5336 |   symcode='[ABCDGISTW]' | 
 | 5337 |   ;; | 
 | 5338 | hpux*) # Its linker distinguishes data from code symbols | 
 | 5339 |   if test "$host_cpu" = ia64; then | 
 | 5340 |     symcode='[ABCDEGRST]' | 
 | 5341 |   fi | 
 | 5342 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 5343 |   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'" | 
 | 5344 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5345 | linux*) | 
 | 5346 |   if test "$host_cpu" = ia64; then | 
 | 5347 |     symcode='[ABCDGIRSTW]' | 
 | 5348 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 5349 |     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'" | 
 | 5350 |   fi | 
 | 5351 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5352 | irix* | nonstopux*) | 
 | 5353 |   symcode='[BCDEGRST]' | 
 | 5354 |   ;; | 
 | 5355 | osf*) | 
 | 5356 |   symcode='[BCDEGQRST]' | 
 | 5357 |   ;; | 
 | 5358 | solaris* | sysv5*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5359 |   symcode='[BDRT]' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5360 |   ;; | 
 | 5361 | sysv4) | 
 | 5362 |   symcode='[DFNSTU]' | 
 | 5363 |   ;; | 
 | 5364 | esac | 
 | 5365 |  | 
 | 5366 | # Handle CRLF in mingw tool chain | 
 | 5367 | opt_cr= | 
 | 5368 | case $build_os in | 
 | 5369 | mingw*) | 
 | 5370 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 5371 |   ;; | 
 | 5372 | esac | 
 | 5373 |  | 
 | 5374 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 5375 | case `$NM -V 2>&1` in | 
 | 5376 | *GNU* | *'with BFD'*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5377 |   symcode='[ABCDGIRSTW]' ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5378 | esac | 
 | 5379 |  | 
 | 5380 | # Try without a prefix undercore, then with it. | 
 | 5381 | for ac_symprfx in "" "_"; do | 
 | 5382 |  | 
 | 5383 |   # Write the raw and C identifiers. | 
 | 5384 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
 | 5385 |  | 
 | 5386 |   # Check to see that the pipe works correctly. | 
 | 5387 |   pipe_works=no | 
 | 5388 |  | 
 | 5389 |   rm -f conftest* | 
 | 5390 |   cat > conftest.$ac_ext <<EOF | 
 | 5391 | #ifdef __cplusplus | 
 | 5392 | extern "C" { | 
 | 5393 | #endif | 
 | 5394 | char nm_test_var; | 
 | 5395 | void nm_test_func(){} | 
 | 5396 | #ifdef __cplusplus | 
 | 5397 | } | 
 | 5398 | #endif | 
 | 5399 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 5400 | EOF | 
 | 5401 |  | 
 | 5402 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 5403 |   (eval $ac_compile) 2>&5 | 
 | 5404 |   ac_status=$? | 
 | 5405 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5406 |   (exit $ac_status); }; then | 
 | 5407 |     # Now try to grab the symbols. | 
 | 5408 |     nlist=conftest.nm | 
 | 5409 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 5410 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 5411 |   ac_status=$? | 
 | 5412 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5413 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 5414 |       # Try sorting and uniquifying the output. | 
 | 5415 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 5416 | 	mv -f "$nlist"T "$nlist" | 
 | 5417 |       else | 
 | 5418 | 	rm -f "$nlist"T | 
 | 5419 |       fi | 
 | 5420 |  | 
 | 5421 |       # Make sure that we snagged all the symbols we need. | 
 | 5422 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 5423 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 5424 | 	  cat <<EOF > conftest.$ac_ext | 
 | 5425 | #ifdef __cplusplus | 
 | 5426 | extern "C" { | 
 | 5427 | #endif | 
 | 5428 |  | 
 | 5429 | EOF | 
 | 5430 | 	  # Now generate the symbol file. | 
 | 5431 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 5432 |  | 
 | 5433 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 5434 | #if defined (__STDC__) && __STDC__ | 
 | 5435 | # define lt_ptr_t void * | 
 | 5436 | #else | 
 | 5437 | # define lt_ptr_t char * | 
 | 5438 | # define const | 
 | 5439 | #endif | 
 | 5440 |  | 
 | 5441 | /* The mapping between symbol names and symbols. */ | 
 | 5442 | const struct { | 
 | 5443 |   const char *name; | 
 | 5444 |   lt_ptr_t address; | 
 | 5445 | } | 
 | 5446 | lt_preloaded_symbols[] = | 
 | 5447 | { | 
 | 5448 | EOF | 
 | 5449 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 5450 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 5451 |   {0, (lt_ptr_t) 0} | 
 | 5452 | }; | 
 | 5453 |  | 
 | 5454 | #ifdef __cplusplus | 
 | 5455 | } | 
 | 5456 | #endif | 
 | 5457 | EOF | 
 | 5458 | 	  # Now try linking the two files. | 
 | 5459 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 5460 | 	  lt_save_LIBS="$LIBS" | 
 | 5461 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 5462 | 	  LIBS="conftstm.$ac_objext" | 
 | 5463 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 5464 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 5465 |   (eval $ac_link) 2>&5 | 
 | 5466 |   ac_status=$? | 
 | 5467 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5468 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 5469 | 	    pipe_works=yes | 
 | 5470 | 	  fi | 
 | 5471 | 	  LIBS="$lt_save_LIBS" | 
 | 5472 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 5473 | 	else | 
 | 5474 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 5475 | 	fi | 
 | 5476 |       else | 
 | 5477 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 5478 |       fi | 
 | 5479 |     else | 
 | 5480 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 5481 |     fi | 
 | 5482 |   else | 
 | 5483 |     echo "$progname: failed program was:" >&5 | 
 | 5484 |     cat conftest.$ac_ext >&5 | 
 | 5485 |   fi | 
 | 5486 |   rm -f conftest* conftst* | 
 | 5487 |  | 
 | 5488 |   # Do not use the global_symbol_pipe unless it works. | 
 | 5489 |   if test "$pipe_works" = yes; then | 
 | 5490 |     break | 
 | 5491 |   else | 
 | 5492 |     lt_cv_sys_global_symbol_pipe= | 
 | 5493 |   fi | 
 | 5494 | done | 
 | 5495 |  | 
 | 5496 | fi | 
 | 5497 |  | 
 | 5498 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 5499 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 5500 | fi | 
 | 5501 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
 | 5502 |   echo "$as_me:$LINENO: result: failed" >&5 | 
 | 5503 | echo "${ECHO_T}failed" >&6 | 
 | 5504 | else | 
 | 5505 |   echo "$as_me:$LINENO: result: ok" >&5 | 
 | 5506 | echo "${ECHO_T}ok" >&6 | 
 | 5507 | fi | 
 | 5508 |  | 
 | 5509 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 5510 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
 | 5511 | if test "${lt_cv_objdir+set}" = set; then | 
 | 5512 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5513 | else | 
 | 5514 |   rm -f .libs 2>/dev/null | 
 | 5515 | mkdir .libs 2>/dev/null | 
 | 5516 | if test -d .libs; then | 
 | 5517 |   lt_cv_objdir=.libs | 
 | 5518 | else | 
 | 5519 |   # MS-DOS does not allow filenames that begin with a dot. | 
 | 5520 |   lt_cv_objdir=_libs | 
 | 5521 | fi | 
 | 5522 | rmdir .libs 2>/dev/null | 
 | 5523 | fi | 
 | 5524 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
 | 5525 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 
 | 5526 | objdir=$lt_cv_objdir | 
 | 5527 |  | 
 | 5528 |  | 
 | 5529 |  | 
 | 5530 |  | 
 | 5531 |  | 
 | 5532 | case $host_os in | 
 | 5533 | aix3*) | 
 | 5534 |   # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 5535 |   # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 5536 |   # vanish in a puff of smoke. | 
 | 5537 |   if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 5538 |     COLLECT_NAMES= | 
 | 5539 |     export COLLECT_NAMES | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5540 |   fi | 
 | 5541 |   ;; | 
 | 5542 | esac | 
 | 5543 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5544 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
 | 5545 | # metacharacters that are still active within double-quoted strings. | 
 | 5546 | Xsed='sed -e s/^X//' | 
 | 5547 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
 | 5548 |  | 
 | 5549 | # Same as above, but do not quote variable references. | 
 | 5550 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
 | 5551 |  | 
 | 5552 | # Sed substitution to delay expansion of an escaped shell variable in a | 
 | 5553 | # double_quote_subst'ed string. | 
 | 5554 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
 | 5555 |  | 
 | 5556 | # Sed substitution to avoid accidental globbing in evaled expressions | 
 | 5557 | no_glob_subst='s/\*/\\\*/g' | 
 | 5558 |  | 
 | 5559 | # Constants: | 
 | 5560 | rm="rm -f" | 
 | 5561 |  | 
 | 5562 | # Global variables: | 
| Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 5563 | default_ofile=mklib | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5564 | can_build_shared=yes | 
 | 5565 |  | 
 | 5566 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
 | 5567 | # which needs '.lib'). | 
 | 5568 | libext=a | 
 | 5569 | ltmain="$ac_aux_dir/ltmain.sh" | 
 | 5570 | ofile="$default_ofile" | 
 | 5571 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
 | 5572 |  | 
 | 5573 | if test -n "$ac_tool_prefix"; then | 
 | 5574 |   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
 | 5575 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
 | 5576 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5578 | if test "${ac_cv_prog_AR+set}" = set; then | 
 | 5579 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5580 | else | 
 | 5581 |   if test -n "$AR"; then | 
 | 5582 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5583 | else | 
 | 5584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5585 | for as_dir in $PATH | 
 | 5586 | do | 
 | 5587 |   IFS=$as_save_IFS | 
 | 5588 |   test -z "$as_dir" && as_dir=. | 
 | 5589 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5590 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5591 |     ac_cv_prog_AR="${ac_tool_prefix}ar" | 
 | 5592 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5593 |     break 2 | 
 | 5594 |   fi | 
 | 5595 | done | 
 | 5596 | done | 
 | 5597 |  | 
 | 5598 | fi | 
 | 5599 | fi | 
 | 5600 | AR=$ac_cv_prog_AR | 
 | 5601 | if test -n "$AR"; then | 
 | 5602 |   echo "$as_me:$LINENO: result: $AR" >&5 | 
 | 5603 | echo "${ECHO_T}$AR" >&6 | 
 | 5604 | else | 
 | 5605 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5606 | echo "${ECHO_T}no" >&6 | 
 | 5607 | fi | 
 | 5608 |  | 
 | 5609 | fi | 
 | 5610 | if test -z "$ac_cv_prog_AR"; then | 
 | 5611 |   ac_ct_AR=$AR | 
 | 5612 |   # Extract the first word of "ar", so it can be a program name with args. | 
 | 5613 | set dummy ar; ac_word=$2 | 
 | 5614 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5616 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
 | 5617 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5618 | else | 
 | 5619 |   if test -n "$ac_ct_AR"; then | 
 | 5620 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 5621 | else | 
 | 5622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5623 | for as_dir in $PATH | 
 | 5624 | do | 
 | 5625 |   IFS=$as_save_IFS | 
 | 5626 |   test -z "$as_dir" && as_dir=. | 
 | 5627 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5628 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5629 |     ac_cv_prog_ac_ct_AR="ar" | 
 | 5630 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5631 |     break 2 | 
 | 5632 |   fi | 
 | 5633 | done | 
 | 5634 | done | 
 | 5635 |  | 
 | 5636 |   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | 
 | 5637 | fi | 
 | 5638 | fi | 
 | 5639 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 5640 | if test -n "$ac_ct_AR"; then | 
 | 5641 |   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
 | 5642 | echo "${ECHO_T}$ac_ct_AR" >&6 | 
 | 5643 | else | 
 | 5644 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5645 | echo "${ECHO_T}no" >&6 | 
 | 5646 | fi | 
 | 5647 |  | 
 | 5648 |   AR=$ac_ct_AR | 
 | 5649 | else | 
 | 5650 |   AR="$ac_cv_prog_AR" | 
 | 5651 | fi | 
 | 5652 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5653 | if test -n "$ac_tool_prefix"; then | 
 | 5654 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5655 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 5656 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5658 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 5659 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5660 | else | 
 | 5661 |   if test -n "$RANLIB"; then | 
 | 5662 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5663 | else | 
 | 5664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5665 | for as_dir in $PATH | 
 | 5666 | do | 
 | 5667 |   IFS=$as_save_IFS | 
 | 5668 |   test -z "$as_dir" && as_dir=. | 
 | 5669 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5670 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5671 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 5672 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5673 |     break 2 | 
 | 5674 |   fi | 
 | 5675 | done | 
 | 5676 | done | 
 | 5677 |  | 
 | 5678 | fi | 
 | 5679 | fi | 
 | 5680 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5681 | if test -n "$RANLIB"; then | 
 | 5682 |   echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 5683 | echo "${ECHO_T}$RANLIB" >&6 | 
 | 5684 | else | 
 | 5685 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5686 | echo "${ECHO_T}no" >&6 | 
 | 5687 | fi | 
 | 5688 |  | 
 | 5689 | fi | 
 | 5690 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5691 |   ac_ct_RANLIB=$RANLIB | 
 | 5692 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5693 | set dummy ranlib; ac_word=$2 | 
 | 5694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5696 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 5697 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5698 | else | 
 | 5699 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5700 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5701 | else | 
 | 5702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5703 | for as_dir in $PATH | 
 | 5704 | do | 
 | 5705 |   IFS=$as_save_IFS | 
 | 5706 |   test -z "$as_dir" && as_dir=. | 
 | 5707 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5708 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5709 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 5710 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5711 |     break 2 | 
 | 5712 |   fi | 
 | 5713 | done | 
 | 5714 | done | 
 | 5715 |  | 
 | 5716 |   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
 | 5717 | fi | 
 | 5718 | fi | 
 | 5719 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5720 | if test -n "$ac_ct_RANLIB"; then | 
 | 5721 |   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 5722 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
 | 5723 | else | 
 | 5724 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5725 | echo "${ECHO_T}no" >&6 | 
 | 5726 | fi | 
 | 5727 |  | 
 | 5728 |   RANLIB=$ac_ct_RANLIB | 
 | 5729 | else | 
 | 5730 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5731 | fi | 
 | 5732 |  | 
 | 5733 | if test -n "$ac_tool_prefix"; then | 
 | 5734 |   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 5735 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 5736 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5738 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
 | 5739 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5740 | else | 
 | 5741 |   if test -n "$STRIP"; then | 
 | 5742 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 5743 | else | 
 | 5744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5745 | for as_dir in $PATH | 
 | 5746 | do | 
 | 5747 |   IFS=$as_save_IFS | 
 | 5748 |   test -z "$as_dir" && as_dir=. | 
 | 5749 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5750 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5751 |     ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 5752 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5753 |     break 2 | 
 | 5754 |   fi | 
 | 5755 | done | 
 | 5756 | done | 
 | 5757 |  | 
 | 5758 | fi | 
 | 5759 | fi | 
 | 5760 | STRIP=$ac_cv_prog_STRIP | 
 | 5761 | if test -n "$STRIP"; then | 
 | 5762 |   echo "$as_me:$LINENO: result: $STRIP" >&5 | 
 | 5763 | echo "${ECHO_T}$STRIP" >&6 | 
 | 5764 | else | 
 | 5765 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5766 | echo "${ECHO_T}no" >&6 | 
 | 5767 | fi | 
 | 5768 |  | 
 | 5769 | fi | 
 | 5770 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 5771 |   ac_ct_STRIP=$STRIP | 
 | 5772 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 5773 | set dummy strip; ac_word=$2 | 
 | 5774 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5776 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
 | 5777 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5778 | else | 
 | 5779 |   if test -n "$ac_ct_STRIP"; then | 
 | 5780 |   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
 | 5781 | else | 
 | 5782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5783 | for as_dir in $PATH | 
 | 5784 | do | 
 | 5785 |   IFS=$as_save_IFS | 
 | 5786 |   test -z "$as_dir" && as_dir=. | 
 | 5787 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5788 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5789 |     ac_cv_prog_ac_ct_STRIP="strip" | 
 | 5790 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5791 |     break 2 | 
 | 5792 |   fi | 
 | 5793 | done | 
 | 5794 | done | 
 | 5795 |  | 
 | 5796 |   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | 
 | 5797 | fi | 
 | 5798 | fi | 
 | 5799 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
 | 5800 | if test -n "$ac_ct_STRIP"; then | 
 | 5801 |   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
 | 5802 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 
 | 5803 | else | 
 | 5804 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5805 | echo "${ECHO_T}no" >&6 | 
 | 5806 | fi | 
 | 5807 |  | 
 | 5808 |   STRIP=$ac_ct_STRIP | 
 | 5809 | else | 
 | 5810 |   STRIP="$ac_cv_prog_STRIP" | 
 | 5811 | fi | 
 | 5812 |  | 
 | 5813 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5814 | old_CC="$CC" | 
 | 5815 | old_CFLAGS="$CFLAGS" | 
 | 5816 |  | 
 | 5817 | # Set sane defaults for various variables | 
 | 5818 | test -z "$AR" && AR=ar | 
 | 5819 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
 | 5820 | test -z "$AS" && AS=as | 
 | 5821 | test -z "$CC" && CC=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5822 | test -z "$LTCC" && LTCC=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5823 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
 | 5824 | test -z "$LD" && LD=ld | 
 | 5825 | test -z "$LN_S" && LN_S="ln -s" | 
 | 5826 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
 | 5827 | test -z "$NM" && NM=nm | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5828 | test -z "$SED" && SED=sed | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5829 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
 | 5830 | test -z "$RANLIB" && RANLIB=: | 
 | 5831 | test -z "$STRIP" && STRIP=: | 
 | 5832 | test -z "$ac_objext" && ac_objext=o | 
 | 5833 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5834 | # Determine commands to create old-style static archives. | 
 | 5835 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
 | 5836 | old_postinstall_cmds='chmod 644 $oldlib' | 
 | 5837 | old_postuninstall_cmds= | 
 | 5838 |  | 
 | 5839 | if test -n "$RANLIB"; then | 
 | 5840 |   case $host_os in | 
 | 5841 |   openbsd*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 5842 |     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5843 |     ;; | 
 | 5844 |   *) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 5845 |     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5846 |     ;; | 
 | 5847 |   esac | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 5848 |   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5849 | fi | 
 | 5850 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5851 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 5852 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5853 | # Only perform the check for file, if the check method requires it | 
 | 5854 | case $deplibs_check_method in | 
 | 5855 | file_magic*) | 
 | 5856 |   if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
 | 5857 |     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
 | 5858 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 
 | 5859 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 5860 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5861 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5862 |   case $MAGIC_CMD in | 
 | 5863 | [\\/*] |  ?:[\\/]*) | 
 | 5864 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 5865 |   ;; | 
 | 5866 | *) | 
 | 5867 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 5868 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 5869 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 5870 |   for ac_dir in $ac_dummy; do | 
 | 5871 |     IFS="$lt_save_ifs" | 
 | 5872 |     test -z "$ac_dir" && ac_dir=. | 
 | 5873 |     if test -f $ac_dir/${ac_tool_prefix}file; then | 
 | 5874 |       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
 | 5875 |       if test -n "$file_magic_test_file"; then | 
 | 5876 | 	case $deplibs_check_method in | 
 | 5877 | 	"file_magic "*) | 
 | 5878 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 5879 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5880 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 5881 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 5882 | 	    : | 
 | 5883 | 	  else | 
 | 5884 | 	    cat <<EOF 1>&2 | 
 | 5885 |  | 
 | 5886 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 5887 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 5888 | *** The result is that libtool may fail to recognize shared libraries | 
 | 5889 | *** as such.  This will affect the creation of libtool libraries that | 
 | 5890 | *** depend on shared libraries, but programs linked with such libtool | 
 | 5891 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 5892 | *** may want to report the problem to your system manager and/or to | 
 | 5893 | *** bug-libtool@gnu.org | 
 | 5894 |  | 
 | 5895 | EOF | 
 | 5896 | 	  fi ;; | 
 | 5897 | 	esac | 
 | 5898 |       fi | 
 | 5899 |       break | 
 | 5900 |     fi | 
 | 5901 |   done | 
 | 5902 |   IFS="$lt_save_ifs" | 
 | 5903 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 5904 |   ;; | 
 | 5905 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5906 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5907 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5908 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5909 | if test -n "$MAGIC_CMD"; then | 
 | 5910 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 5911 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 5912 | else | 
 | 5913 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5914 | echo "${ECHO_T}no" >&6 | 
 | 5915 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5916 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5917 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
 | 5918 |   if test -n "$ac_tool_prefix"; then | 
 | 5919 |     echo "$as_me:$LINENO: checking for file" >&5 | 
 | 5920 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 
 | 5921 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 5922 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5923 | else | 
 | 5924 |   case $MAGIC_CMD in | 
 | 5925 | [\\/*] |  ?:[\\/]*) | 
 | 5926 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 5927 |   ;; | 
 | 5928 | *) | 
 | 5929 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 5930 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 5931 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 5932 |   for ac_dir in $ac_dummy; do | 
 | 5933 |     IFS="$lt_save_ifs" | 
 | 5934 |     test -z "$ac_dir" && ac_dir=. | 
 | 5935 |     if test -f $ac_dir/file; then | 
 | 5936 |       lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
 | 5937 |       if test -n "$file_magic_test_file"; then | 
 | 5938 | 	case $deplibs_check_method in | 
 | 5939 | 	"file_magic "*) | 
 | 5940 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 5941 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5942 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 5943 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 5944 | 	    : | 
 | 5945 | 	  else | 
 | 5946 | 	    cat <<EOF 1>&2 | 
 | 5947 |  | 
 | 5948 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 5949 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 5950 | *** The result is that libtool may fail to recognize shared libraries | 
 | 5951 | *** as such.  This will affect the creation of libtool libraries that | 
 | 5952 | *** depend on shared libraries, but programs linked with such libtool | 
 | 5953 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 5954 | *** may want to report the problem to your system manager and/or to | 
 | 5955 | *** bug-libtool@gnu.org | 
 | 5956 |  | 
 | 5957 | EOF | 
 | 5958 | 	  fi ;; | 
 | 5959 | 	esac | 
 | 5960 |       fi | 
 | 5961 |       break | 
 | 5962 |     fi | 
 | 5963 |   done | 
 | 5964 |   IFS="$lt_save_ifs" | 
 | 5965 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 5966 |   ;; | 
 | 5967 | esac | 
 | 5968 | fi | 
 | 5969 |  | 
 | 5970 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5971 | if test -n "$MAGIC_CMD"; then | 
 | 5972 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 5973 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 5974 | else | 
 | 5975 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5976 | echo "${ECHO_T}no" >&6 | 
 | 5977 | fi | 
 | 5978 |  | 
 | 5979 |   else | 
 | 5980 |     MAGIC_CMD=: | 
 | 5981 |   fi | 
 | 5982 | fi | 
 | 5983 |  | 
 | 5984 |   fi | 
 | 5985 |   ;; | 
 | 5986 | esac | 
 | 5987 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 5988 | enable_dlopen=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5989 | enable_win32_dll=no | 
 | 5990 |  | 
 | 5991 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 5992 | if test "${enable_libtool_lock+set}" = set; then | 
 | 5993 |   enableval="$enable_libtool_lock" | 
 | 5994 |  | 
 | 5995 | fi; | 
 | 5996 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 5997 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5998 |  | 
 | 5999 | # Check whether --with-pic or --without-pic was given. | 
 | 6000 | if test "${with_pic+set}" = set; then | 
 | 6001 |   withval="$with_pic" | 
 | 6002 |   pic_mode="$withval" | 
 | 6003 | else | 
 | 6004 |   pic_mode=default | 
 | 6005 | fi; | 
 | 6006 | test -z "$pic_mode" && pic_mode=default | 
 | 6007 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6008 | # Use C for the default configuration in the libtool script | 
 | 6009 | tagname= | 
 | 6010 | lt_save_CC="$CC" | 
 | 6011 | ac_ext=c | 
 | 6012 | ac_cpp='$CPP $CPPFLAGS' | 
 | 6013 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 6014 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 6015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 6016 |  | 
 | 6017 |  | 
 | 6018 | # Source file extension for C test sources. | 
 | 6019 | ac_ext=c | 
 | 6020 |  | 
 | 6021 | # Object file extension for compiled C test sources. | 
 | 6022 | objext=o | 
 | 6023 | objext=$objext | 
 | 6024 |  | 
 | 6025 | # Code to be used in simple compile tests | 
 | 6026 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 6027 |  | 
 | 6028 | # Code to be used in simple link tests | 
 | 6029 | lt_simple_link_test_code='int main(){return(0);}\n' | 
 | 6030 |  | 
 | 6031 |  | 
 | 6032 | # If no C compiler was specified, use CC. | 
 | 6033 | LTCC=${LTCC-"$CC"} | 
 | 6034 |  | 
 | 6035 | # Allow CC to be a program name with arguments. | 
 | 6036 | compiler=$CC | 
 | 6037 |  | 
 | 6038 |  | 
 | 6039 | # | 
 | 6040 | # Check for any special shared library compilation flags. | 
 | 6041 | # | 
 | 6042 | lt_prog_cc_shlib= | 
 | 6043 | if test "$GCC" = no; then | 
 | 6044 |   case $host_os in | 
 | 6045 |   sco3.2v5*) | 
 | 6046 |     lt_prog_cc_shlib='-belf' | 
 | 6047 |     ;; | 
 | 6048 |   esac | 
 | 6049 | fi | 
 | 6050 | if test -n "$lt_prog_cc_shlib"; then | 
 | 6051 |   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | 
 | 6052 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | 
 | 6053 |   if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then : | 
 | 6054 |   else | 
 | 6055 |     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | 
 | 6056 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | 
 | 6057 |     lt_cv_prog_cc_can_build_shared=no | 
 | 6058 |   fi | 
 | 6059 | fi | 
 | 6060 |  | 
 | 6061 |  | 
 | 6062 | # | 
 | 6063 | # Check to make sure the static flag actually works. | 
 | 6064 | # | 
 | 6065 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | 
 | 6066 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | 
 | 6067 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6068 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6069 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6070 |   lt_prog_compiler_static_works=no | 
 | 6071 |    save_LDFLAGS="$LDFLAGS" | 
 | 6072 |    LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | 
 | 6073 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 6074 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 6075 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6076 |      # So say no if there are warnings | 
 | 6077 |      if test -s conftest.err; then | 
 | 6078 |        # Append any errors to the config.log. | 
 | 6079 |        cat conftest.err 1>&5 | 
 | 6080 |      else | 
 | 6081 |        lt_prog_compiler_static_works=yes | 
 | 6082 |      fi | 
 | 6083 |    fi | 
 | 6084 |    $rm conftest* | 
 | 6085 |    LDFLAGS="$save_LDFLAGS" | 
 | 6086 |  | 
 | 6087 | fi | 
 | 6088 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
 | 6089 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | 
 | 6090 |  | 
 | 6091 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
 | 6092 |     : | 
 | 6093 | else | 
 | 6094 |     lt_prog_compiler_static= | 
 | 6095 | fi | 
 | 6096 |  | 
 | 6097 |  | 
 | 6098 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6099 |  | 
 | 6100 | lt_prog_compiler_no_builtin_flag= | 
 | 6101 |  | 
 | 6102 | if test "$GCC" = yes; then | 
 | 6103 |   lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
 | 6104 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6105 |  | 
 | 6106 | 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] | 6107 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 6108 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 6109 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6110 | else | 
 | 6111 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 6112 |   ac_outfile=conftest.$ac_objext | 
 | 6113 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 6114 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 6115 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 6116 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 6117 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 6118 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 6119 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 6120 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 6121 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 6122 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 6123 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 6124 |    (eval echo "\"\$as_me:6124: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6125 |    (eval "$lt_compile" 2>conftest.err) | 
 | 6126 |    ac_status=$? | 
 | 6127 |    cat conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 6128 |    echo "$as_me:6128: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6129 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 6130 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6131 |      # So say no if there are warnings | 
 | 6132 |      if test ! -s conftest.err; then | 
 | 6133 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 6134 |      fi | 
 | 6135 |    fi | 
 | 6136 |    $rm conftest* | 
 | 6137 |  | 
 | 6138 | fi | 
 | 6139 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 6140 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 6141 |  | 
 | 6142 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 6143 |     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
 | 6144 | else | 
 | 6145 |     : | 
 | 6146 | fi | 
 | 6147 |  | 
 | 6148 | fi | 
 | 6149 |  | 
 | 6150 | lt_prog_compiler_wl= | 
 | 6151 | lt_prog_compiler_pic= | 
 | 6152 | lt_prog_compiler_static= | 
 | 6153 |  | 
 | 6154 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 6155 | 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] | 6156 |  | 
 | 6157 |   if test "$GCC" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6158 |     lt_prog_compiler_wl='-Wl,' | 
 | 6159 |     lt_prog_compiler_static='-static' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6160 |  | 
 | 6161 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6162 |       aix*) | 
 | 6163 |       # All AIX code is PIC. | 
 | 6164 |       if test "$host_cpu" = ia64; then | 
 | 6165 | 	# AIX 5 now supports IA64 processor | 
 | 6166 | 	lt_prog_compiler_static='-Bstatic' | 
 | 6167 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6168 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6169 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6170 |     amigaos*) | 
 | 6171 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 6172 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 6173 |       # like `-m68040'. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6174 |       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6175 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6176 |  | 
 | 6177 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6178 |       # PIC is the default for these OSes. | 
 | 6179 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6180 |  | 
 | 6181 |     mingw* | pw32* | os2*) | 
 | 6182 |       # This hack is so that the source file can tell whether it is being | 
 | 6183 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 6184 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 6185 |       ;; | 
 | 6186 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6187 |     darwin* | rhapsody*) | 
 | 6188 |       # PIC is the default on this platform | 
 | 6189 |       # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6190 |       lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6191 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6192 |  | 
 | 6193 |     msdosdjgpp*) | 
 | 6194 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 6195 |       # on systems that don't support them. | 
 | 6196 |       lt_prog_compiler_can_build_shared=no | 
 | 6197 |       enable_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6198 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6199 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6200 |     sysv4*MP*) | 
 | 6201 |       if test -d /usr/nec; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6202 | 	lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6203 |       fi | 
 | 6204 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6205 |  | 
 | 6206 |     hpux*) | 
 | 6207 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 6208 |       # not for PA HP-UX. | 
 | 6209 |       case "$host_cpu" in | 
 | 6210 |       hppa*64*|ia64*) | 
 | 6211 | 	# +Z the default | 
 | 6212 | 	;; | 
 | 6213 |       *) | 
 | 6214 | 	lt_prog_compiler_pic='-fPIC' | 
 | 6215 | 	;; | 
 | 6216 |       esac | 
 | 6217 |       ;; | 
 | 6218 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6219 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6220 |       lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6221 |       ;; | 
 | 6222 |     esac | 
 | 6223 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6224 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6225 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6226 |     aix*) | 
 | 6227 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6228 |       if test "$host_cpu" = ia64; then | 
 | 6229 | 	# AIX 5 now supports IA64 processor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6230 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6231 |       else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6232 | 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6233 |       fi | 
 | 6234 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6235 |       darwin*) | 
 | 6236 |         # PIC is the default on this platform | 
 | 6237 |         # Common symbols not allowed in MH_DYLIB files | 
 | 6238 |        case "$cc_basename" in | 
 | 6239 |          xlc*) | 
 | 6240 |          lt_prog_compiler_pic='-qnocommon' | 
 | 6241 |          lt_prog_compiler_wl='-Wl,' | 
 | 6242 |          ;; | 
 | 6243 |        esac | 
 | 6244 |        ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6245 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6246 |     mingw* | pw32* | os2*) | 
 | 6247 |       # This hack is so that the source file can tell whether it is being | 
 | 6248 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 6249 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 6250 |       ;; | 
 | 6251 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6252 |     hpux9* | hpux10* | hpux11*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6253 |       lt_prog_compiler_wl='-Wl,' | 
 | 6254 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 6255 |       # not for PA HP-UX. | 
 | 6256 |       case "$host_cpu" in | 
 | 6257 |       hppa*64*|ia64*) | 
 | 6258 | 	# +Z the default | 
 | 6259 | 	;; | 
 | 6260 |       *) | 
 | 6261 | 	lt_prog_compiler_pic='+Z' | 
 | 6262 | 	;; | 
 | 6263 |       esac | 
 | 6264 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 6265 |       lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6266 |       ;; | 
 | 6267 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6268 |     irix5* | irix6* | nonstopux*) | 
 | 6269 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6270 |       # PIC (with -KPIC) is the default. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6271 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6272 |       ;; | 
 | 6273 |  | 
 | 6274 |     newsos6) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6275 |       lt_prog_compiler_pic='-KPIC' | 
 | 6276 |       lt_prog_compiler_static='-Bstatic' | 
 | 6277 |       ;; | 
 | 6278 |  | 
 | 6279 |     linux*) | 
 | 6280 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6281 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6282 | 	lt_prog_compiler_wl='-Wl,' | 
 | 6283 | 	lt_prog_compiler_pic='-KPIC' | 
 | 6284 | 	lt_prog_compiler_static='-static' | 
 | 6285 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6286 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6287 |         lt_prog_compiler_wl='-Wl,' | 
 | 6288 |         # All Alpha code is PIC. | 
 | 6289 |         lt_prog_compiler_static='-non_shared' | 
 | 6290 |         ;; | 
 | 6291 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6292 |       ;; | 
 | 6293 |  | 
 | 6294 |     osf3* | osf4* | osf5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6295 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6296 |       # All OSF/1 code is PIC. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6297 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6298 |       ;; | 
 | 6299 |  | 
 | 6300 |     sco3.2v5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6301 |       lt_prog_compiler_pic='-Kpic' | 
 | 6302 |       lt_prog_compiler_static='-dn' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6303 |       ;; | 
 | 6304 |  | 
 | 6305 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6306 |       lt_prog_compiler_wl='-Wl,' | 
 | 6307 |       lt_prog_compiler_pic='-KPIC' | 
 | 6308 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6309 |       ;; | 
 | 6310 |  | 
 | 6311 |     sunos4*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6312 |       lt_prog_compiler_wl='-Qoption ld ' | 
 | 6313 |       lt_prog_compiler_pic='-PIC' | 
 | 6314 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6315 |       ;; | 
 | 6316 |  | 
 | 6317 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6318 |       lt_prog_compiler_wl='-Wl,' | 
 | 6319 |       lt_prog_compiler_pic='-KPIC' | 
 | 6320 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6321 |       ;; | 
 | 6322 |  | 
 | 6323 |     sysv4*MP*) | 
 | 6324 |       if test -d /usr/nec ;then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6325 | 	lt_prog_compiler_pic='-Kconform_pic' | 
 | 6326 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6327 |       fi | 
 | 6328 |       ;; | 
 | 6329 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6330 |     uts4*) | 
 | 6331 |       lt_prog_compiler_pic='-pic' | 
 | 6332 |       lt_prog_compiler_static='-Bstatic' | 
 | 6333 |       ;; | 
 | 6334 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6335 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6336 |       lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6337 |       ;; | 
 | 6338 |     esac | 
 | 6339 |   fi | 
 | 6340 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6341 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
 | 6342 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6343 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6344 | # | 
 | 6345 | # Check to make sure the PIC flag actually works. | 
 | 6346 | # | 
 | 6347 | if test -n "$lt_prog_compiler_pic"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6348 |  | 
 | 6349 | 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] | 6350 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 
 | 6351 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6352 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6353 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6354 |   lt_prog_compiler_pic_works=no | 
 | 6355 |   ac_outfile=conftest.$ac_objext | 
 | 6356 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 6357 |    lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
 | 6358 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 6359 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 6360 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 6361 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 6362 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 6363 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 6364 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 6365 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 6366 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 6367 |    (eval echo "\"\$as_me:6367: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6368 |    (eval "$lt_compile" 2>conftest.err) | 
 | 6369 |    ac_status=$? | 
 | 6370 |    cat conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 6371 |    echo "$as_me:6371: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6372 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 6373 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6374 |      # So say no if there are warnings | 
 | 6375 |      if test ! -s conftest.err; then | 
 | 6376 |        lt_prog_compiler_pic_works=yes | 
 | 6377 |      fi | 
 | 6378 |    fi | 
 | 6379 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6380 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6381 | fi | 
 | 6382 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
 | 6383 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6384 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6385 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
 | 6386 |     case $lt_prog_compiler_pic in | 
 | 6387 |      "" | " "*) ;; | 
 | 6388 |      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
 | 6389 |      esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6390 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6391 |     lt_prog_compiler_pic= | 
 | 6392 |      lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6393 | fi | 
 | 6394 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6395 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6396 | case "$host_os" in | 
 | 6397 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 6398 |   *djgpp*) | 
 | 6399 |     lt_prog_compiler_pic= | 
 | 6400 |     ;; | 
 | 6401 |   *) | 
 | 6402 |     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
 | 6403 |     ;; | 
 | 6404 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6405 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6406 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 6407 | 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] | 6408 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6409 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6410 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6411 |   lt_cv_prog_compiler_c_o=no | 
 | 6412 |    $rm -r conftest 2>/dev/null | 
 | 6413 |    mkdir conftest | 
 | 6414 |    cd conftest | 
 | 6415 |    mkdir out | 
 | 6416 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6417 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6418 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 6419 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 6420 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 6421 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 6422 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 6423 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 6424 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 6425 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 6426 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 6427 |    (eval echo "\"\$as_me:6427: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6428 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 6429 |    ac_status=$? | 
 | 6430 |    cat out/conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 6431 |    echo "$as_me:6431: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6432 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 6433 |    then | 
 | 6434 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6435 |      # So say no if there are warnings | 
 | 6436 |      if test ! -s out/conftest.err; then | 
 | 6437 |        lt_cv_prog_compiler_c_o=yes | 
 | 6438 |      fi | 
 | 6439 |    fi | 
 | 6440 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6441 |    $rm conftest* | 
 | 6442 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 6443 |    # template instantiation | 
 | 6444 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 6445 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6446 |    cd .. | 
 | 6447 |    rmdir conftest | 
 | 6448 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6449 |  | 
 | 6450 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6451 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
 | 6452 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6453 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6454 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6455 | hard_links="nottested" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6456 | 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] | 6457 |   # do not overwrite the value of need_locks provided by the user | 
 | 6458 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 6459 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 6460 |   hard_links=yes | 
 | 6461 |   $rm conftest* | 
 | 6462 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 6463 |   touch conftest.a | 
 | 6464 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 6465 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 6466 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 6467 | echo "${ECHO_T}$hard_links" >&6 | 
 | 6468 |   if test "$hard_links" = no; then | 
 | 6469 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 6470 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 6471 |     need_locks=warn | 
 | 6472 |   fi | 
 | 6473 | else | 
 | 6474 |   need_locks=no | 
 | 6475 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6476 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6477 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 6478 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 6479 |  | 
 | 6480 |   runpath_var= | 
 | 6481 |   allow_undefined_flag= | 
 | 6482 |   enable_shared_with_static_runtimes=no | 
 | 6483 |   archive_cmds= | 
 | 6484 |   archive_expsym_cmds= | 
 | 6485 |   old_archive_From_new_cmds= | 
 | 6486 |   old_archive_from_expsyms_cmds= | 
 | 6487 |   export_dynamic_flag_spec= | 
 | 6488 |   whole_archive_flag_spec= | 
 | 6489 |   thread_safe_flag_spec= | 
 | 6490 |   hardcode_libdir_flag_spec= | 
 | 6491 |   hardcode_libdir_flag_spec_ld= | 
 | 6492 |   hardcode_libdir_separator= | 
 | 6493 |   hardcode_direct=no | 
 | 6494 |   hardcode_minus_L=no | 
 | 6495 |   hardcode_shlibpath_var=unsupported | 
 | 6496 |   link_all_deplibs=unknown | 
 | 6497 |   hardcode_automatic=no | 
 | 6498 |   module_cmds= | 
 | 6499 |   module_expsym_cmds= | 
 | 6500 |   always_export_symbols=no | 
 | 6501 |   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 6502 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 6503 |   # included in the symbol list | 
 | 6504 |   include_expsyms= | 
 | 6505 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 6506 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 6507 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 6508 |   # as well as any symbol that contains `d'. | 
 | 6509 |   exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
 | 6510 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 6511 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 6512 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 6513 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 6514 |   # preloaded symbol tables. | 
 | 6515 |   extract_expsyms_cmds= | 
 | 6516 |  | 
 | 6517 |   case $host_os in | 
 | 6518 |   cygwin* | mingw* | pw32*) | 
 | 6519 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 6520 |     # When not using gcc, we currently assume that we are using | 
 | 6521 |     # Microsoft Visual C++. | 
 | 6522 |     if test "$GCC" != yes; then | 
 | 6523 |       with_gnu_ld=no | 
 | 6524 |     fi | 
 | 6525 |     ;; | 
 | 6526 |   openbsd*) | 
 | 6527 |     with_gnu_ld=no | 
 | 6528 |     ;; | 
 | 6529 |   esac | 
 | 6530 |  | 
 | 6531 |   ld_shlibs=yes | 
 | 6532 |   if test "$with_gnu_ld" = yes; then | 
 | 6533 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 6534 |     wlarc='${wl}' | 
 | 6535 |  | 
 | 6536 |     # See if GNU ld supports shared libraries. | 
 | 6537 |     case $host_os in | 
 | 6538 |     aix3* | aix4* | aix5*) | 
 | 6539 |       # On AIX/PPC, the GNU linker is very broken | 
 | 6540 |       if test "$host_cpu" != ia64; then | 
 | 6541 | 	ld_shlibs=no | 
 | 6542 | 	cat <<EOF 1>&2 | 
 | 6543 |  | 
 | 6544 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 6545 | *** to be unable to reliably create shared libraries on AIX. | 
 | 6546 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 6547 | *** really care for shared libraries, you may want to modify your PATH | 
 | 6548 | *** so that a non-GNU linker is found, and then restart. | 
 | 6549 |  | 
 | 6550 | EOF | 
 | 6551 |       fi | 
 | 6552 |       ;; | 
 | 6553 |  | 
 | 6554 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6555 |       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] | 6556 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6557 |       hardcode_minus_L=yes | 
 | 6558 |  | 
 | 6559 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 6560 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 6561 |       # to version 4, is to share data among multiple programs linked | 
 | 6562 |       # with the same dynamic library.  Since this doesn't match the | 
 | 6563 |       # behavior of shared libraries on other platforms, we can't use | 
 | 6564 |       # them. | 
 | 6565 |       ld_shlibs=no | 
 | 6566 |       ;; | 
 | 6567 |  | 
 | 6568 |     beos*) | 
 | 6569 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6570 | 	allow_undefined_flag=unsupported | 
 | 6571 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 6572 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 6573 | 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6574 |       else | 
 | 6575 | 	ld_shlibs=no | 
 | 6576 |       fi | 
 | 6577 |       ;; | 
 | 6578 |  | 
 | 6579 |     cygwin* | mingw* | pw32*) | 
 | 6580 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
 | 6581 |       # as there is no search path for DLLs. | 
 | 6582 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6583 |       allow_undefined_flag=unsupported | 
 | 6584 |       always_export_symbols=no | 
 | 6585 |       enable_shared_with_static_runtimes=yes | 
 | 6586 |       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 6587 |  | 
 | 6588 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 6589 |         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 6590 | 	# If the export-symbols file already is a .def file (1st line | 
 | 6591 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 6592 | 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 6593 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 6594 | 	else | 
 | 6595 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 6596 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6597 | 	fi~ | 
 | 6598 | 	$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] | 6599 |       else | 
 | 6600 | 	ld_shlibs=no | 
 | 6601 |       fi | 
 | 6602 |       ;; | 
 | 6603 |  | 
 | 6604 |     netbsd*) | 
 | 6605 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 6606 | 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 6607 | 	wlarc= | 
 | 6608 |       else | 
 | 6609 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6610 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6611 |       fi | 
 | 6612 |       ;; | 
 | 6613 |  | 
 | 6614 |     solaris* | sysv5*) | 
 | 6615 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 6616 | 	ld_shlibs=no | 
 | 6617 | 	cat <<EOF 1>&2 | 
 | 6618 |  | 
 | 6619 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 6620 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 6621 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 6622 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 6623 | *** your PATH or compiler configuration so that the native linker is | 
 | 6624 | *** used, and then restart. | 
 | 6625 |  | 
 | 6626 | EOF | 
 | 6627 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6628 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6629 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6630 |       else | 
 | 6631 | 	ld_shlibs=no | 
 | 6632 |       fi | 
 | 6633 |       ;; | 
 | 6634 |  | 
 | 6635 |     sunos4*) | 
 | 6636 |       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 6637 |       wlarc= | 
 | 6638 |       hardcode_direct=yes | 
 | 6639 |       hardcode_shlibpath_var=no | 
 | 6640 |       ;; | 
 | 6641 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6642 |   linux*) | 
 | 6643 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6644 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6645 | 	archive_cmds="$tmp_archive_cmds" | 
 | 6646 |       supports_anon_versioning=no | 
 | 6647 |       case `$LD -v 2>/dev/null` in | 
 | 6648 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 6649 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 6650 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 6651 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 6652 |         *) supports_anon_versioning=yes ;; | 
 | 6653 |       esac | 
 | 6654 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6655 |         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 6656 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 6657 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6658 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 6659 |       else | 
 | 6660 |         archive_expsym_cmds="$tmp_archive_cmds" | 
 | 6661 |       fi | 
 | 6662 |     else | 
 | 6663 |       ld_shlibs=no | 
 | 6664 |     fi | 
 | 6665 |     ;; | 
 | 6666 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6667 |     *) | 
 | 6668 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6669 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6670 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6671 |       else | 
 | 6672 | 	ld_shlibs=no | 
 | 6673 |       fi | 
 | 6674 |       ;; | 
 | 6675 |     esac | 
 | 6676 |  | 
 | 6677 |     if test "$ld_shlibs" = yes; then | 
 | 6678 |       runpath_var=LD_RUN_PATH | 
 | 6679 |       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
 | 6680 |       export_dynamic_flag_spec='${wl}--export-dynamic' | 
 | 6681 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 6682 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 6683 |  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 6684 |       else | 
 | 6685 |   	whole_archive_flag_spec= | 
 | 6686 |       fi | 
 | 6687 |     fi | 
 | 6688 |   else | 
 | 6689 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 6690 |     case $host_os in | 
 | 6691 |     aix3*) | 
 | 6692 |       allow_undefined_flag=unsupported | 
 | 6693 |       always_export_symbols=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6694 |       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] | 6695 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 6696 |       # are no directories specified by -L. | 
 | 6697 |       hardcode_minus_L=yes | 
 | 6698 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 6699 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 6700 | 	# broken collect2. | 
 | 6701 | 	hardcode_direct=unsupported | 
 | 6702 |       fi | 
 | 6703 |       ;; | 
 | 6704 |  | 
 | 6705 |     aix4* | aix5*) | 
 | 6706 |       if test "$host_cpu" = ia64; then | 
 | 6707 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 6708 | 	# have to do anything special. | 
 | 6709 | 	aix_use_runtimelinking=no | 
 | 6710 | 	exp_sym_flag='-Bexport' | 
 | 6711 | 	no_entry_flag="" | 
 | 6712 |       else | 
 | 6713 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 6714 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 6715 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 6716 | 	  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' | 
 | 6717 | 	else | 
 | 6718 | 	  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' | 
 | 6719 | 	fi | 
 | 6720 | 	aix_use_runtimelinking=no | 
 | 6721 |  | 
 | 6722 | 	# Test if we are trying to use run time linking or normal | 
 | 6723 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 6724 | 	# need to do runtime linking. | 
 | 6725 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 6726 | 	  for ld_flag in $LDFLAGS; do | 
 | 6727 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 6728 |   	    aix_use_runtimelinking=yes | 
 | 6729 |   	    break | 
 | 6730 |   	  fi | 
 | 6731 | 	  done | 
 | 6732 | 	esac | 
 | 6733 |  | 
 | 6734 | 	exp_sym_flag='-bexport' | 
 | 6735 | 	no_entry_flag='-bnoentry' | 
 | 6736 |       fi | 
 | 6737 |  | 
 | 6738 |       # When large executables or shared objects are built, AIX ld can | 
 | 6739 |       # have problems creating the table of contents.  If linking a library | 
 | 6740 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 6741 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 6742 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 6743 |  | 
 | 6744 |       archive_cmds='' | 
 | 6745 |       hardcode_direct=yes | 
 | 6746 |       hardcode_libdir_separator=':' | 
 | 6747 |       link_all_deplibs=yes | 
 | 6748 |  | 
 | 6749 |       if test "$GCC" = yes; then | 
 | 6750 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 6751 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 6752 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 6753 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 6754 | 	  if test -f "$collect2name" && \ | 
 | 6755 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 6756 | 	  then | 
 | 6757 |   	  # We have reworked collect2 | 
 | 6758 |   	  hardcode_direct=yes | 
 | 6759 | 	  else | 
 | 6760 |   	  # We have old collect2 | 
 | 6761 |   	  hardcode_direct=unsupported | 
 | 6762 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 6763 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 6764 |   	  # to unsupported forces relinking | 
 | 6765 |   	  hardcode_minus_L=yes | 
 | 6766 |   	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 6767 |   	  hardcode_libdir_separator= | 
 | 6768 | 	  fi | 
 | 6769 | 	esac | 
 | 6770 | 	shared_flag='-shared' | 
 | 6771 |       else | 
 | 6772 | 	# not using gcc | 
 | 6773 | 	if test "$host_cpu" = ia64; then | 
 | 6774 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 6775 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 6776 | 	  shared_flag='-G' | 
 | 6777 | 	else | 
 | 6778 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 6779 | 	    shared_flag='${wl}-G' | 
 | 6780 | 	  else | 
 | 6781 | 	    shared_flag='${wl}-bM:SRE' | 
 | 6782 |   	fi | 
 | 6783 | 	fi | 
 | 6784 |       fi | 
 | 6785 |  | 
 | 6786 |       # It seems that -bexpall does not export symbols beginning with | 
 | 6787 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 6788 |       always_export_symbols=yes | 
 | 6789 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 6790 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 6791 | 	# -berok will link without error, but may produce a broken library. | 
 | 6792 | 	allow_undefined_flag='-berok' | 
 | 6793 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 6794 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6795 | /* confdefs.h.  */ | 
 | 6796 | _ACEOF | 
 | 6797 | cat confdefs.h >>conftest.$ac_ext | 
 | 6798 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6799 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6800 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6801 | int | 
 | 6802 | main () | 
 | 6803 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6804 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6805 |   ; | 
 | 6806 |   return 0; | 
 | 6807 | } | 
 | 6808 | _ACEOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6809 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6811 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6812 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6813 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6814 |   rm -f conftest.er1 | 
 | 6815 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6816 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6817 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6818 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6819 | 			 || test ! -s conftest.err' | 
 | 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); }; } && | 
 | 6825 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6826 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6827 |   (eval $ac_try) 2>&5 | 
 | 6828 |   ac_status=$? | 
 | 6829 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6830 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6831 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6832 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 6833 | }'` | 
 | 6834 | # Check for a 64-bit object if we didn't find anything. | 
 | 6835 | 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; } | 
 | 6836 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6837 | else | 
 | 6838 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6839 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6840 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6841 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6842 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6843 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6844 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6845 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6846 |        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 6847 | 	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" | 
 | 6848 |        else | 
 | 6849 | 	if test "$host_cpu" = ia64; then | 
 | 6850 | 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
 | 6851 | 	  allow_undefined_flag="-z nodefs" | 
 | 6852 | 	  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" | 
 | 6853 | 	else | 
 | 6854 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 6855 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6856 | /* confdefs.h.  */ | 
 | 6857 | _ACEOF | 
 | 6858 | cat confdefs.h >>conftest.$ac_ext | 
 | 6859 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6860 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6861 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6862 | int | 
 | 6863 | main () | 
 | 6864 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6865 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6866 |   ; | 
 | 6867 |   return 0; | 
 | 6868 | } | 
 | 6869 | _ACEOF | 
 | 6870 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6872 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6873 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6874 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6875 |   rm -f conftest.er1 | 
 | 6876 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6877 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6878 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6879 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6880 | 			 || test ! -s conftest.err' | 
 | 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); }; } && | 
 | 6886 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6887 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6888 |   (eval $ac_try) 2>&5 | 
 | 6889 |   ac_status=$? | 
 | 6890 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6891 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6892 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6893 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 6894 | }'` | 
 | 6895 | # Check for a 64-bit object if we didn't find anything. | 
 | 6896 | 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; } | 
 | 6897 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6898 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6899 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6900 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6901 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6902 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6903 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6904 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6905 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6906 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6907 | 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 6908 | 	  # Warning - without using the other run time loading flags, | 
 | 6909 | 	  # -berok will link without error, but may produce a broken library. | 
 | 6910 | 	  no_undefined_flag=' ${wl}-bernotok' | 
 | 6911 | 	  allow_undefined_flag=' ${wl}-berok' | 
 | 6912 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 6913 | 	  always_export_symbols=yes | 
 | 6914 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 6915 | 	  whole_archive_flag_spec=' ' | 
 | 6916 | 	  archive_cmds_need_lc=yes | 
 | 6917 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6918 | 	  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] | 6919 | 	fi | 
 | 6920 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6921 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6922 |  | 
 | 6923 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6924 |       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] | 6925 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6926 |       hardcode_minus_L=yes | 
 | 6927 |       # see comment about different semantics on the GNU ld section | 
 | 6928 |       ld_shlibs=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6929 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6930 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6931 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6932 |       export_dynamic_flag_spec=-rdynamic | 
 | 6933 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6934 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6935 |     cygwin* | mingw* | pw32*) | 
 | 6936 |       # When not using gcc, we currently assume that we are using | 
 | 6937 |       # Microsoft Visual C++. | 
 | 6938 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 6939 |       # no search path for DLLs. | 
 | 6940 |       hardcode_libdir_flag_spec=' ' | 
 | 6941 |       allow_undefined_flag=unsupported | 
 | 6942 |       # Tell ltmain to make .lib files, not .a files. | 
 | 6943 |       libext=lib | 
 | 6944 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6945 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6946 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6947 |       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] | 6948 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 6949 |       old_archive_From_new_cmds='true' | 
 | 6950 |       # FIXME: Should let the user specify the lib program. | 
 | 6951 |       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 6952 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 6953 |       enable_shared_with_static_runtimes=yes | 
 | 6954 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6955 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6956 |     darwin* | rhapsody*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6957 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6958 |         rhapsody* | darwin1.[012]) | 
 | 6959 |          allow_undefined_flag='${wl}-undefined ${wl}suppress' | 
 | 6960 |          ;; | 
 | 6961 |        *) # Darwin 1.3 on | 
 | 6962 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 6963 |            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 6964 |          else | 
 | 6965 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 6966 |              10.[012]) | 
 | 6967 |                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 6968 |                ;; | 
 | 6969 |              10.*) | 
 | 6970 |                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | 
 | 6971 |                ;; | 
 | 6972 |            esac | 
 | 6973 |          fi | 
 | 6974 |          ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6975 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6976 |       archive_cmds_need_lc=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6977 |       hardcode_direct=no | 
 | 6978 |       hardcode_automatic=yes | 
 | 6979 |       hardcode_shlibpath_var=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6980 |       whole_archive_flag_spec='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6981 |       link_all_deplibs=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6982 |     if test "$GCC" = yes ; then | 
 | 6983 |     	output_verbose_link_cmd='echo' | 
 | 6984 |         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 6985 |       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 6986 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6987 |       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}' | 
 | 6988 |       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6989 |     else | 
 | 6990 |       case "$cc_basename" in | 
 | 6991 |         xlc*) | 
 | 6992 |          output_verbose_link_cmd='echo' | 
 | 6993 |          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 6994 |          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 6995 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 6996 |          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}' | 
 | 6997 |           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6998 |           ;; | 
 | 6999 |        *) | 
 | 7000 |          ld_shlibs=no | 
 | 7001 |           ;; | 
 | 7002 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7003 |     fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 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 |     dgux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7007 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7008 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7009 |       hardcode_shlibpath_var=no | 
 | 7010 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7011 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7012 |     freebsd1*) | 
 | 7013 |       ld_shlibs=no | 
 | 7014 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7015 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7016 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 7017 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 7018 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 7019 |     # extra space). | 
 | 7020 |     freebsd2.2*) | 
 | 7021 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 7022 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 7023 |       hardcode_direct=yes | 
 | 7024 |       hardcode_shlibpath_var=no | 
 | 7025 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7026 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7027 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 7028 |     freebsd2*) | 
 | 7029 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 7030 |       hardcode_direct=yes | 
 | 7031 |       hardcode_minus_L=yes | 
 | 7032 |       hardcode_shlibpath_var=no | 
 | 7033 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7034 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7035 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7036 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7037 |       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7038 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 7039 |       hardcode_direct=yes | 
 | 7040 |       hardcode_shlibpath_var=no | 
 | 7041 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7042 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7043 |     hpux9*) | 
 | 7044 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7045 | 	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] | 7046 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7047 | 	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] | 7048 |       fi | 
 | 7049 |       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 7050 |       hardcode_libdir_separator=: | 
 | 7051 |       hardcode_direct=yes | 
 | 7052 |  | 
 | 7053 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 7054 |       # but as the default location of the library. | 
 | 7055 |       hardcode_minus_L=yes | 
 | 7056 |       export_dynamic_flag_spec='${wl}-E' | 
 | 7057 |       ;; | 
 | 7058 |  | 
 | 7059 |     hpux10* | hpux11*) | 
 | 7060 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 7061 | 	case "$host_cpu" in | 
 | 7062 | 	hppa*64*|ia64*) | 
 | 7063 | 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7064 | 	  ;; | 
 | 7065 | 	*) | 
 | 7066 | 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7067 | 	  ;; | 
 | 7068 | 	esac | 
 | 7069 |       else | 
 | 7070 | 	case "$host_cpu" in | 
 | 7071 | 	hppa*64*|ia64*) | 
 | 7072 | 	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7073 | 	  ;; | 
 | 7074 | 	*) | 
 | 7075 | 	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 7076 | 	  ;; | 
 | 7077 | 	esac | 
 | 7078 |       fi | 
 | 7079 |       if test "$with_gnu_ld" = no; then | 
 | 7080 | 	case "$host_cpu" in | 
 | 7081 | 	hppa*64*) | 
 | 7082 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 7083 | 	  hardcode_libdir_flag_spec_ld='+b $libdir' | 
 | 7084 | 	  hardcode_libdir_separator=: | 
 | 7085 | 	  hardcode_direct=no | 
 | 7086 | 	  hardcode_shlibpath_var=no | 
 | 7087 | 	  ;; | 
 | 7088 | 	ia64*) | 
 | 7089 | 	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 7090 | 	  hardcode_direct=no | 
 | 7091 | 	  hardcode_shlibpath_var=no | 
 | 7092 |  | 
 | 7093 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 7094 | 	  # but as the default location of the library. | 
 | 7095 | 	  hardcode_minus_L=yes | 
 | 7096 | 	  ;; | 
 | 7097 | 	*) | 
 | 7098 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 7099 | 	  hardcode_libdir_separator=: | 
 | 7100 | 	  hardcode_direct=yes | 
 | 7101 | 	  export_dynamic_flag_spec='${wl}-E' | 
 | 7102 |  | 
 | 7103 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 7104 | 	  # but as the default location of the library. | 
 | 7105 | 	  hardcode_minus_L=yes | 
 | 7106 | 	  ;; | 
 | 7107 | 	esac | 
 | 7108 |       fi | 
 | 7109 |       ;; | 
 | 7110 |  | 
 | 7111 |     irix5* | irix6* | nonstopux*) | 
 | 7112 |       if test "$GCC" = yes; then | 
 | 7113 | 	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' | 
 | 7114 |       else | 
 | 7115 | 	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' | 
 | 7116 | 	hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
 | 7117 |       fi | 
 | 7118 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 7119 |       hardcode_libdir_separator=: | 
 | 7120 |       link_all_deplibs=yes | 
 | 7121 |       ;; | 
 | 7122 |  | 
 | 7123 |     netbsd*) | 
 | 7124 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 7125 | 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 7126 |       else | 
 | 7127 | 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 7128 |       fi | 
 | 7129 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 7130 |       hardcode_direct=yes | 
 | 7131 |       hardcode_shlibpath_var=no | 
 | 7132 |       ;; | 
 | 7133 |  | 
 | 7134 |     newsos6) | 
 | 7135 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7136 |       hardcode_direct=yes | 
 | 7137 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 7138 |       hardcode_libdir_separator=: | 
 | 7139 |       hardcode_shlibpath_var=no | 
 | 7140 |       ;; | 
 | 7141 |  | 
 | 7142 |     openbsd*) | 
 | 7143 |       hardcode_direct=yes | 
 | 7144 |       hardcode_shlibpath_var=no | 
 | 7145 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 7146 | 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7147 | 	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] | 7148 | 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 7149 | 	export_dynamic_flag_spec='${wl}-E' | 
 | 7150 |       else | 
 | 7151 |        case $host_os in | 
 | 7152 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 7153 | 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 7154 | 	   hardcode_libdir_flag_spec='-R$libdir' | 
 | 7155 | 	   ;; | 
 | 7156 | 	 *) | 
 | 7157 | 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7158 | 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 7159 | 	   ;; | 
 | 7160 |        esac | 
 | 7161 |       fi | 
 | 7162 |       ;; | 
 | 7163 |  | 
 | 7164 |     os2*) | 
 | 7165 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7166 |       hardcode_minus_L=yes | 
 | 7167 |       allow_undefined_flag=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7168 |       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] | 7169 |       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 7170 |       ;; | 
 | 7171 |  | 
 | 7172 |     osf3*) | 
 | 7173 |       if test "$GCC" = yes; then | 
 | 7174 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 7175 | 	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' | 
 | 7176 |       else | 
 | 7177 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 7178 | 	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' | 
 | 7179 |       fi | 
 | 7180 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 7181 |       hardcode_libdir_separator=: | 
 | 7182 |       ;; | 
 | 7183 |  | 
 | 7184 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 7185 |       if test "$GCC" = yes; then | 
 | 7186 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 7187 | 	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' | 
 | 7188 | 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 7189 |       else | 
 | 7190 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 7191 | 	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7192 | 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
 | 7193 | 	$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' | 
 | 7194 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7195 | 	# Both c and cxx compiler support -rpath directly | 
 | 7196 | 	hardcode_libdir_flag_spec='-rpath $libdir' | 
 | 7197 |       fi | 
 | 7198 |       hardcode_libdir_separator=: | 
 | 7199 |       ;; | 
 | 7200 |  | 
 | 7201 |     sco3.2v5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7202 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7203 |       hardcode_shlibpath_var=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7204 |       export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7205 |       runpath_var=LD_RUN_PATH | 
 | 7206 |       hardcode_runpath_var=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7207 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7208 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7209 |     solaris*) | 
 | 7210 |       no_undefined_flag=' -z text' | 
 | 7211 |       if test "$GCC" = yes; then | 
 | 7212 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7213 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 7214 | 	  $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] | 7215 |       else | 
 | 7216 | 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7217 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 7218 |   	$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] | 7219 |       fi | 
 | 7220 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 7221 |       hardcode_shlibpath_var=no | 
 | 7222 |       case $host_os in | 
 | 7223 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 7224 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 7225 | 	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
 | 7226 |       esac | 
 | 7227 |       link_all_deplibs=yes | 
 | 7228 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7229 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7230 |     sunos4*) | 
 | 7231 |       if test "x$host_vendor" = xsequent; then | 
 | 7232 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 7233 | 	# files that make .init and .fini sections work. | 
 | 7234 | 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7235 |       else | 
 | 7236 | 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 7237 |       fi | 
 | 7238 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7239 |       hardcode_direct=yes | 
 | 7240 |       hardcode_minus_L=yes | 
 | 7241 |       hardcode_shlibpath_var=no | 
 | 7242 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7243 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7244 |     sysv4) | 
 | 7245 |       case $host_vendor in | 
 | 7246 | 	sni) | 
 | 7247 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7248 | 	  hardcode_direct=yes # is this really true??? | 
 | 7249 | 	;; | 
 | 7250 | 	siemens) | 
 | 7251 | 	  ## LD is ld it makes a PLAMLIB | 
 | 7252 | 	  ## CC just makes a GrossModule. | 
 | 7253 | 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 7254 | 	  reload_cmds='$CC -r -o $output$reload_objs' | 
 | 7255 | 	  hardcode_direct=no | 
 | 7256 |         ;; | 
 | 7257 | 	motorola) | 
 | 7258 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7259 | 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
 | 7260 | 	;; | 
 | 7261 |       esac | 
 | 7262 |       runpath_var='LD_RUN_PATH' | 
 | 7263 |       hardcode_shlibpath_var=no | 
 | 7264 |       ;; | 
 | 7265 |  | 
 | 7266 |     sysv4.3*) | 
 | 7267 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7268 |       hardcode_shlibpath_var=no | 
 | 7269 |       export_dynamic_flag_spec='-Bexport' | 
 | 7270 |       ;; | 
 | 7271 |  | 
 | 7272 |     sysv4*MP*) | 
 | 7273 |       if test -d /usr/nec; then | 
 | 7274 | 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7275 | 	hardcode_shlibpath_var=no | 
 | 7276 | 	runpath_var=LD_RUN_PATH | 
 | 7277 | 	hardcode_runpath_var=yes | 
 | 7278 | 	ld_shlibs=yes | 
 | 7279 |       fi | 
 | 7280 |       ;; | 
 | 7281 |  | 
 | 7282 |     sysv4.2uw2*) | 
 | 7283 |       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 7284 |       hardcode_direct=yes | 
 | 7285 |       hardcode_minus_L=no | 
 | 7286 |       hardcode_shlibpath_var=no | 
 | 7287 |       hardcode_runpath_var=yes | 
 | 7288 |       runpath_var=LD_RUN_PATH | 
 | 7289 |       ;; | 
 | 7290 |  | 
 | 7291 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 7292 |       no_undefined_flag='${wl}-z ${wl}text' | 
 | 7293 |       if test "$GCC" = yes; then | 
 | 7294 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7295 |       else | 
 | 7296 | 	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 7297 |       fi | 
 | 7298 |       runpath_var='LD_RUN_PATH' | 
 | 7299 |       hardcode_shlibpath_var=no | 
 | 7300 |       ;; | 
 | 7301 |  | 
 | 7302 |     sysv5*) | 
 | 7303 |       no_undefined_flag=' -z text' | 
 | 7304 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 7305 |       # object files and a static libstdc++, better avoid it by now | 
 | 7306 |       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7307 |       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 7308 |   		$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] | 7309 |       hardcode_libdir_flag_spec= | 
 | 7310 |       hardcode_shlibpath_var=no | 
 | 7311 |       runpath_var='LD_RUN_PATH' | 
 | 7312 |       ;; | 
 | 7313 |  | 
 | 7314 |     uts4*) | 
 | 7315 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7316 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7317 |       hardcode_shlibpath_var=no | 
 | 7318 |       ;; | 
 | 7319 |  | 
 | 7320 |     *) | 
 | 7321 |       ld_shlibs=no | 
 | 7322 |       ;; | 
 | 7323 |     esac | 
 | 7324 |   fi | 
 | 7325 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7326 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
 | 7327 | echo "${ECHO_T}$ld_shlibs" >&6 | 
 | 7328 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7329 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7330 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 7331 | if test "$GCC" = yes; then | 
 | 7332 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 7333 | fi | 
 | 7334 |  | 
 | 7335 | # | 
 | 7336 | # Do we need to explicitly link libc? | 
 | 7337 | # | 
 | 7338 | case "x$archive_cmds_need_lc" in | 
 | 7339 | x|xyes) | 
 | 7340 |   # Assume -lc should be added | 
 | 7341 |   archive_cmds_need_lc=yes | 
 | 7342 |  | 
 | 7343 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 7344 |     case $archive_cmds in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7345 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7346 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 7347 |       ;; | 
 | 7348 |     '$CC '*) | 
 | 7349 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 7350 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 7351 |       # to ld, don't add -lc before -lgcc. | 
 | 7352 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 7353 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 7354 |       $rm conftest* | 
 | 7355 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 7356 |  | 
 | 7357 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 7358 |   (eval $ac_compile) 2>&5 | 
 | 7359 |   ac_status=$? | 
 | 7360 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7361 |   (exit $ac_status); } 2>conftest.err; then | 
 | 7362 |         soname=conftest | 
 | 7363 |         lib=conftest | 
 | 7364 |         libobjs=conftest.$ac_objext | 
 | 7365 |         deplibs= | 
 | 7366 |         wl=$lt_prog_compiler_wl | 
 | 7367 |         compiler_flags=-v | 
 | 7368 |         linker_flags=-v | 
 | 7369 |         verstring= | 
 | 7370 |         output_objdir=. | 
 | 7371 |         libname=conftest | 
 | 7372 |         lt_save_allow_undefined_flag=$allow_undefined_flag | 
 | 7373 |         allow_undefined_flag= | 
 | 7374 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 7375 |   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 7376 |   ac_status=$? | 
 | 7377 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7378 |   (exit $ac_status); } | 
 | 7379 |         then | 
 | 7380 | 	  archive_cmds_need_lc=no | 
 | 7381 |         else | 
 | 7382 | 	  archive_cmds_need_lc=yes | 
 | 7383 |         fi | 
 | 7384 |         allow_undefined_flag=$lt_save_allow_undefined_flag | 
 | 7385 |       else | 
 | 7386 |         cat conftest.err 1>&5 | 
 | 7387 |       fi | 
 | 7388 |       $rm conftest* | 
 | 7389 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
 | 7390 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 
 | 7391 |       ;; | 
 | 7392 |     esac | 
 | 7393 |   fi | 
 | 7394 |   ;; | 
 | 7395 | esac | 
 | 7396 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7397 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 7398 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 7399 | library_names_spec= | 
 | 7400 | libname_spec='lib$name' | 
 | 7401 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7402 | shrext_cmds=".so" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7403 | postinstall_cmds= | 
 | 7404 | postuninstall_cmds= | 
 | 7405 | finish_cmds= | 
 | 7406 | finish_eval= | 
 | 7407 | shlibpath_var= | 
 | 7408 | shlibpath_overrides_runpath=unknown | 
 | 7409 | version_type=none | 
 | 7410 | dynamic_linker="$host_os ld.so" | 
 | 7411 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7412 | if test "$GCC" = yes; then | 
 | 7413 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 7414 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 7415 |     # if the path contains ";" then we assume it to be the separator | 
 | 7416 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 7417 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 7418 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 7419 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 7420 |   else | 
 | 7421 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 7422 |   fi | 
 | 7423 | else | 
 | 7424 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 7425 | fi | 
 | 7426 | need_lib_prefix=unknown | 
 | 7427 | hardcode_into_libs=no | 
 | 7428 |  | 
 | 7429 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 7430 | # flags to be left without arguments | 
 | 7431 | need_version=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7432 |  | 
 | 7433 | case $host_os in | 
 | 7434 | aix3*) | 
 | 7435 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7436 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7437 |   shlibpath_var=LIBPATH | 
 | 7438 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7439 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 7440 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7441 |   ;; | 
 | 7442 |  | 
 | 7443 | aix4* | aix5*) | 
 | 7444 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7445 |   need_lib_prefix=no | 
 | 7446 |   need_version=no | 
 | 7447 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7448 |   if test "$host_cpu" = ia64; then | 
 | 7449 |     # AIX 5 supports IA64 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7450 |     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] | 7451 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7452 |   else | 
 | 7453 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 7454 |     # for dependence libraries.  The import file would start with | 
 | 7455 |     # the line `#! .'.  This would cause the generated library to | 
 | 7456 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 7457 |     # development snapshots of GCC prior to 3.0. | 
 | 7458 |     case $host_os in | 
 | 7459 |       aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7460 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 7461 | 	   echo ' yes ' | 
 | 7462 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 7463 | 	: | 
 | 7464 |       else | 
 | 7465 | 	can_build_shared=no | 
 | 7466 |       fi | 
 | 7467 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7468 |     esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7469 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 7470 |     # soname into executable. Probably we can add versioning support to | 
 | 7471 |     # collect2, so additional links can be useful in future. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7472 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 7473 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 7474 |       # instead of lib<name>.a to let people know that these are not | 
 | 7475 |       # typical AIX shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7476 |       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] | 7477 |     else | 
 | 7478 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 7479 |       # and later when we are not doing run time linking. | 
 | 7480 |       library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7481 |       soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7482 |     fi | 
 | 7483 |     shlibpath_var=LIBPATH | 
 | 7484 |   fi | 
 | 7485 |   ;; | 
 | 7486 |  | 
 | 7487 | amigaos*) | 
 | 7488 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 7489 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7490 |   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] | 7491 |   ;; | 
 | 7492 |  | 
 | 7493 | beos*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7494 |   library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7495 |   dynamic_linker="$host_os ld.so" | 
 | 7496 |   shlibpath_var=LIBRARY_PATH | 
 | 7497 |   ;; | 
 | 7498 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7499 | bsdi[45]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7500 |   version_type=linux | 
 | 7501 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7502 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7503 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7504 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 7505 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7506 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 7507 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7508 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 7509 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 7510 |   # libtool to hard-code these into programs | 
 | 7511 |   ;; | 
 | 7512 |  | 
 | 7513 | cygwin* | mingw* | pw32*) | 
 | 7514 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7515 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7516 |   need_version=no | 
 | 7517 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7518 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7519 |   case $GCC,$host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7520 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7521 |     library_names_spec='$libname.dll.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7522 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7523 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 7524 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 7525 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 7526 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7527 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 7528 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 7529 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7530 |        $rm \$dlpath' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7531 |     shlibpath_overrides_runpath=yes | 
 | 7532 |  | 
 | 7533 |     case $host_os in | 
 | 7534 |     cygwin*) | 
 | 7535 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 7536 |       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] | 7537 |       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] | 7538 |       ;; | 
 | 7539 |     mingw*) | 
 | 7540 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 7541 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 7542 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 7543 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 7544 |         # It is most probably a Windows format PATH printed by | 
 | 7545 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 7546 |         # path with ; separators, and with drive letters. We can handle the | 
 | 7547 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 7548 |         # especially as we might pass files found there to a mingw objdump, | 
 | 7549 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 7550 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 7551 |       else | 
 | 7552 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 7553 |       fi | 
 | 7554 |       ;; | 
 | 7555 |     pw32*) | 
 | 7556 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 7557 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 7558 |       ;; | 
 | 7559 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7560 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7561 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7562 |   *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7563 |     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] | 7564 |     ;; | 
 | 7565 |   esac | 
 | 7566 |   dynamic_linker='Win32 ld.exe' | 
 | 7567 |   # FIXME: first we should search . and the directory the executable is in | 
 | 7568 |   shlibpath_var=PATH | 
 | 7569 |   ;; | 
 | 7570 |  | 
 | 7571 | darwin* | rhapsody*) | 
 | 7572 |   dynamic_linker="$host_os dyld" | 
 | 7573 |   version_type=darwin | 
 | 7574 |   need_lib_prefix=no | 
 | 7575 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7576 |   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] | 7577 |   soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7578 |   shlibpath_overrides_runpath=yes | 
 | 7579 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7580 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7581 |   # 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] | 7582 |   if test "$GCC" = yes; then | 
 | 7583 |     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"` | 
 | 7584 |   else | 
 | 7585 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7586 |   fi | 
 | 7587 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 7588 |   ;; | 
 | 7589 |  | 
 | 7590 | dgux*) | 
 | 7591 |   version_type=linux | 
 | 7592 |   need_lib_prefix=no | 
 | 7593 |   need_version=no | 
 | 7594 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 7595 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7596 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7597 |   ;; | 
 | 7598 |  | 
 | 7599 | freebsd1*) | 
 | 7600 |   dynamic_linker=no | 
 | 7601 |   ;; | 
 | 7602 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7603 | kfreebsd*-gnu) | 
 | 7604 |   version_type=linux | 
 | 7605 |   need_lib_prefix=no | 
 | 7606 |   need_version=no | 
 | 7607 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7608 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7609 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7610 |   shlibpath_overrides_runpath=no | 
 | 7611 |   hardcode_into_libs=yes | 
 | 7612 |   dynamic_linker='GNU ld.so' | 
 | 7613 |   ;; | 
 | 7614 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7615 | freebsd*) | 
 | 7616 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 7617 |   version_type=freebsd-$objformat | 
 | 7618 |   case $version_type in | 
 | 7619 |     freebsd-elf*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7620 |       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] | 7621 |       need_version=no | 
 | 7622 |       need_lib_prefix=no | 
 | 7623 |       ;; | 
 | 7624 |     freebsd-*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7625 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7626 |       need_version=yes | 
 | 7627 |       ;; | 
 | 7628 |   esac | 
 | 7629 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7630 |   case $host_os in | 
 | 7631 |   freebsd2*) | 
 | 7632 |     shlibpath_overrides_runpath=yes | 
 | 7633 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7634 |   freebsd3.01* | freebsdelf3.01*) | 
 | 7635 |     shlibpath_overrides_runpath=yes | 
 | 7636 |     hardcode_into_libs=yes | 
 | 7637 |     ;; | 
 | 7638 |   *) # from 3.2 on | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7639 |     shlibpath_overrides_runpath=no | 
 | 7640 |     hardcode_into_libs=yes | 
 | 7641 |     ;; | 
 | 7642 |   esac | 
 | 7643 |   ;; | 
 | 7644 |  | 
 | 7645 | gnu*) | 
 | 7646 |   version_type=linux | 
 | 7647 |   need_lib_prefix=no | 
 | 7648 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7649 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 7650 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7651 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7652 |   hardcode_into_libs=yes | 
 | 7653 |   ;; | 
 | 7654 |  | 
 | 7655 | hpux9* | hpux10* | hpux11*) | 
 | 7656 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 7657 |   # link against other versions. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7658 |   version_type=sunos | 
 | 7659 |   need_lib_prefix=no | 
 | 7660 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7661 |   case "$host_cpu" in | 
 | 7662 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7663 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7664 |     hardcode_into_libs=yes | 
 | 7665 |     dynamic_linker="$host_os dld.so" | 
 | 7666 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7667 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 7668 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7669 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7670 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 7671 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 7672 |     else | 
 | 7673 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 7674 |     fi | 
 | 7675 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 7676 |     ;; | 
 | 7677 |    hppa*64*) | 
| 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 |      hardcode_into_libs=yes | 
 | 7680 |      dynamic_linker="$host_os dld.sl" | 
 | 7681 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 7682 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 7683 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7684 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7685 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 7686 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 7687 |      ;; | 
 | 7688 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7689 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7690 |     dynamic_linker="$host_os dld.sl" | 
 | 7691 |     shlibpath_var=SHLIB_PATH | 
 | 7692 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 7693 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7694 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7695 |     ;; | 
 | 7696 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7697 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 7698 |   postinstall_cmds='chmod 555 $lib' | 
 | 7699 |   ;; | 
 | 7700 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7701 | irix5* | irix6* | nonstopux*) | 
 | 7702 |   case $host_os in | 
 | 7703 |     nonstopux*) version_type=nonstopux ;; | 
 | 7704 |     *) | 
 | 7705 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 7706 | 		version_type=linux | 
 | 7707 | 	else | 
 | 7708 | 		version_type=irix | 
 | 7709 | 	fi ;; | 
 | 7710 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7711 |   need_lib_prefix=no | 
 | 7712 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7713 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7714 |   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] | 7715 |   case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7716 |   irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7717 |     libsuff= shlibsuff= | 
 | 7718 |     ;; | 
 | 7719 |   *) | 
 | 7720 |     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] | 7721 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 7722 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 7723 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 7724 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 7725 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 7726 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7727 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 7728 |     esac | 
 | 7729 |     ;; | 
 | 7730 |   esac | 
 | 7731 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 7732 |   shlibpath_overrides_runpath=no | 
 | 7733 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 7734 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7735 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7736 |   ;; | 
 | 7737 |  | 
 | 7738 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7739 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7740 |   dynamic_linker=no | 
 | 7741 |   ;; | 
 | 7742 |  | 
 | 7743 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7744 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7745 |   version_type=linux | 
 | 7746 |   need_lib_prefix=no | 
 | 7747 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7748 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7749 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7750 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 7751 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7752 |   shlibpath_overrides_runpath=no | 
 | 7753 |   # This implies no fast_install, which is unacceptable. | 
 | 7754 |   # Some rework will be needed to allow for fast_install | 
 | 7755 |   # before this can be enabled. | 
 | 7756 |   hardcode_into_libs=yes | 
 | 7757 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7758 |   # Append ld.so.conf contents to the search path | 
 | 7759 |   if test -f /etc/ld.so.conf; then | 
 | 7760 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 7761 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 7762 |   fi | 
 | 7763 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7764 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 7765 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 7766 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 7767 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 7768 |   # people can always --disable-shared, the test was removed, and we | 
 | 7769 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 7770 |   dynamic_linker='GNU/Linux ld.so' | 
 | 7771 |   ;; | 
 | 7772 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7773 | knetbsd*-gnu) | 
 | 7774 |   version_type=linux | 
 | 7775 |   need_lib_prefix=no | 
 | 7776 |   need_version=no | 
 | 7777 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7778 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7779 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7780 |   shlibpath_overrides_runpath=no | 
 | 7781 |   hardcode_into_libs=yes | 
 | 7782 |   dynamic_linker='GNU ld.so' | 
 | 7783 |   ;; | 
 | 7784 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7785 | netbsd*) | 
 | 7786 |   version_type=sunos | 
 | 7787 |   need_lib_prefix=no | 
 | 7788 |   need_version=no | 
 | 7789 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7790 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7791 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7792 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 7793 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7794 |     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] | 7795 |     soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7796 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 7797 |   fi | 
 | 7798 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7799 |   shlibpath_overrides_runpath=yes | 
 | 7800 |   hardcode_into_libs=yes | 
 | 7801 |   ;; | 
 | 7802 |  | 
 | 7803 | newsos6) | 
 | 7804 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7805 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7806 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7807 |   shlibpath_overrides_runpath=yes | 
 | 7808 |   ;; | 
 | 7809 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7810 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7811 |   version_type=linux | 
 | 7812 |   need_lib_prefix=no | 
 | 7813 |   need_version=no | 
 | 7814 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7815 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7816 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7817 |   shlibpath_overrides_runpath=yes | 
 | 7818 |   ;; | 
 | 7819 |  | 
 | 7820 | openbsd*) | 
 | 7821 |   version_type=sunos | 
 | 7822 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 7823 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7824 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7825 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7826 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7827 |   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] | 7828 |     case $host_os in | 
 | 7829 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 7830 | 	shlibpath_overrides_runpath=no | 
 | 7831 | 	;; | 
 | 7832 |       *) | 
 | 7833 | 	shlibpath_overrides_runpath=yes | 
 | 7834 | 	;; | 
 | 7835 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7836 |   else | 
 | 7837 |     shlibpath_overrides_runpath=yes | 
 | 7838 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7839 |   ;; | 
 | 7840 |  | 
 | 7841 | os2*) | 
 | 7842 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7843 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7844 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7845 |   library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7846 |   dynamic_linker='OS/2 ld.exe' | 
 | 7847 |   shlibpath_var=LIBPATH | 
 | 7848 |   ;; | 
 | 7849 |  | 
 | 7850 | osf3* | osf4* | osf5*) | 
 | 7851 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7852 |   need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7853 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7854 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7855 |   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] | 7856 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7857 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 7858 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 7859 |   ;; | 
 | 7860 |  | 
 | 7861 | sco3.2v5*) | 
 | 7862 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7863 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7864 |   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] | 7865 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7866 |   ;; | 
 | 7867 |  | 
 | 7868 | solaris*) | 
 | 7869 |   version_type=linux | 
 | 7870 |   need_lib_prefix=no | 
 | 7871 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7872 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7873 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7874 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7875 |   shlibpath_overrides_runpath=yes | 
 | 7876 |   hardcode_into_libs=yes | 
 | 7877 |   # ldd complains unless libraries are executable | 
 | 7878 |   postinstall_cmds='chmod +x $lib' | 
 | 7879 |   ;; | 
 | 7880 |  | 
 | 7881 | sunos4*) | 
 | 7882 |   version_type=sunos | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7883 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7884 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 7885 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7886 |   shlibpath_overrides_runpath=yes | 
 | 7887 |   if test "$with_gnu_ld" = yes; then | 
 | 7888 |     need_lib_prefix=no | 
 | 7889 |   fi | 
 | 7890 |   need_version=yes | 
 | 7891 |   ;; | 
 | 7892 |  | 
 | 7893 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 7894 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7895 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7896 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7897 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7898 |   case $host_vendor in | 
 | 7899 |     sni) | 
 | 7900 |       shlibpath_overrides_runpath=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7901 |       need_lib_prefix=no | 
 | 7902 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 7903 |       runpath_var=LD_RUN_PATH | 
 | 7904 |       ;; | 
 | 7905 |     siemens) | 
 | 7906 |       need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7907 |       ;; | 
 | 7908 |     motorola) | 
 | 7909 |       need_lib_prefix=no | 
 | 7910 |       need_version=no | 
 | 7911 |       shlibpath_overrides_runpath=no | 
 | 7912 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 7913 |       ;; | 
 | 7914 |   esac | 
 | 7915 |   ;; | 
 | 7916 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7917 | sysv4*MP*) | 
 | 7918 |   if test -d /usr/nec ;then | 
 | 7919 |     version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7920 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 7921 |     soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7922 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7923 |   fi | 
 | 7924 |   ;; | 
 | 7925 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7926 | uts4*) | 
 | 7927 |   version_type=linux | 
 | 7928 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7929 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7930 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7931 |   ;; | 
 | 7932 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7933 | *) | 
 | 7934 |   dynamic_linker=no | 
 | 7935 |   ;; | 
 | 7936 | esac | 
 | 7937 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 7938 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 7939 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7940 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 7941 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 7942 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 7943 | hardcode_action= | 
 | 7944 | if test -n "$hardcode_libdir_flag_spec" || \ | 
 | 7945 |    test -n "$runpath_var" || \ | 
 | 7946 |    test "X$hardcode_automatic" = "Xyes" ; then | 
 | 7947 |  | 
 | 7948 |   # We can hardcode non-existant directories. | 
 | 7949 |   if test "$hardcode_direct" != no && | 
 | 7950 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 7951 |      # have to relink, otherwise we might link with an installed library | 
 | 7952 |      # when we should be linking with a yet-to-be-installed one | 
 | 7953 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
 | 7954 |      test "$hardcode_minus_L" != no; then | 
 | 7955 |     # Linking always hardcodes the temporary library directory. | 
 | 7956 |     hardcode_action=relink | 
 | 7957 |   else | 
 | 7958 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 7959 |     hardcode_action=immediate | 
 | 7960 |   fi | 
 | 7961 | else | 
 | 7962 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 7963 |   # directories. | 
 | 7964 |   hardcode_action=unsupported | 
 | 7965 | fi | 
 | 7966 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
 | 7967 | echo "${ECHO_T}$hardcode_action" >&6 | 
 | 7968 |  | 
 | 7969 | if test "$hardcode_action" = relink; then | 
 | 7970 |   # Fast installation is not supported | 
 | 7971 |   enable_fast_install=no | 
 | 7972 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 7973 |      test "$enable_shared" = no; then | 
 | 7974 |   # Fast installation is not necessary | 
 | 7975 |   enable_fast_install=needless | 
 | 7976 | fi | 
 | 7977 |  | 
 | 7978 | striplib= | 
 | 7979 | old_striplib= | 
 | 7980 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 7981 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 7982 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 7983 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 7984 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 7985 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 7986 | echo "${ECHO_T}yes" >&6 | 
 | 7987 | else | 
 | 7988 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 7989 |   case $host_os in | 
 | 7990 |    darwin*) | 
 | 7991 |        if test -n "$STRIP" ; then | 
 | 7992 |          striplib="$STRIP -x" | 
 | 7993 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 7994 | echo "${ECHO_T}yes" >&6 | 
 | 7995 |        else | 
 | 7996 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 7997 | echo "${ECHO_T}no" >&6 | 
 | 7998 | fi | 
 | 7999 |        ;; | 
 | 8000 |    *) | 
 | 8001 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 8002 | echo "${ECHO_T}no" >&6 | 
 | 8003 |     ;; | 
 | 8004 |   esac | 
 | 8005 | fi | 
 | 8006 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8007 | if test "x$enable_dlopen" != xyes; then | 
 | 8008 |   enable_dlopen=unknown | 
 | 8009 |   enable_dlopen_self=unknown | 
 | 8010 |   enable_dlopen_self_static=unknown | 
 | 8011 | else | 
 | 8012 |   lt_cv_dlopen=no | 
 | 8013 |   lt_cv_dlopen_libs= | 
 | 8014 |  | 
 | 8015 |   case $host_os in | 
 | 8016 |   beos*) | 
 | 8017 |     lt_cv_dlopen="load_add_on" | 
 | 8018 |     lt_cv_dlopen_libs= | 
 | 8019 |     lt_cv_dlopen_self=yes | 
 | 8020 |     ;; | 
 | 8021 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8022 |   mingw* | pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8023 |     lt_cv_dlopen="LoadLibrary" | 
 | 8024 |     lt_cv_dlopen_libs= | 
 | 8025 |    ;; | 
 | 8026 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8027 |   cygwin*) | 
 | 8028 |     lt_cv_dlopen="dlopen" | 
 | 8029 |     lt_cv_dlopen_libs= | 
 | 8030 |    ;; | 
 | 8031 |  | 
 | 8032 |   darwin*) | 
 | 8033 |   # if libdl is installed we need to link against it | 
 | 8034 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 8035 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 8036 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 8037 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8038 | else | 
 | 8039 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8040 | LIBS="-ldl  $LIBS" | 
 | 8041 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8042 | /* confdefs.h.  */ | 
 | 8043 | _ACEOF | 
 | 8044 | cat confdefs.h >>conftest.$ac_ext | 
 | 8045 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8046 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8047 |  | 
 | 8048 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8049 | #ifdef __cplusplus | 
 | 8050 | extern "C" | 
 | 8051 | #endif | 
 | 8052 | /* We use char because int might match the return type of a gcc2 | 
 | 8053 |    builtin and then its argument prototype would still apply.  */ | 
 | 8054 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8055 | int | 
 | 8056 | main () | 
 | 8057 | { | 
 | 8058 | dlopen (); | 
 | 8059 |   ; | 
 | 8060 |   return 0; | 
 | 8061 | } | 
 | 8062 | _ACEOF | 
 | 8063 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8065 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8066 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8067 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8068 |   rm -f conftest.er1 | 
 | 8069 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8070 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8071 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8072 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8073 | 			 || test ! -s conftest.err' | 
 | 8074 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8075 |   (eval $ac_try) 2>&5 | 
 | 8076 |   ac_status=$? | 
 | 8077 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8078 |   (exit $ac_status); }; } && | 
 | 8079 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8080 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8081 |   (eval $ac_try) 2>&5 | 
 | 8082 |   ac_status=$? | 
 | 8083 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8084 |   (exit $ac_status); }; }; then | 
 | 8085 |   ac_cv_lib_dl_dlopen=yes | 
 | 8086 | else | 
 | 8087 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8088 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8089 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8090 | ac_cv_lib_dl_dlopen=no | 
 | 8091 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8092 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8093 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8094 | LIBS=$ac_check_lib_save_LIBS | 
 | 8095 | fi | 
 | 8096 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8097 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 8098 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 8099 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 8100 | else | 
 | 8101 |  | 
 | 8102 |     lt_cv_dlopen="dyld" | 
 | 8103 |     lt_cv_dlopen_libs= | 
 | 8104 |     lt_cv_dlopen_self=yes | 
 | 8105 |  | 
 | 8106 | fi | 
 | 8107 |  | 
 | 8108 |    ;; | 
 | 8109 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8110 |   *) | 
 | 8111 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 8112 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 8113 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 8114 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8115 | else | 
 | 8116 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8117 | /* confdefs.h.  */ | 
 | 8118 | _ACEOF | 
 | 8119 | cat confdefs.h >>conftest.$ac_ext | 
 | 8120 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8121 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8122 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 8123 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8124 | #define shl_load innocuous_shl_load | 
 | 8125 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8126 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8127 |     which can conflict with char shl_load (); below. | 
 | 8128 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8129 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8130 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8131 | #ifdef __STDC__ | 
 | 8132 | # include <limits.h> | 
 | 8133 | #else | 
 | 8134 | # include <assert.h> | 
 | 8135 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8136 |  | 
 | 8137 | #undef shl_load | 
 | 8138 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8139 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8140 | #ifdef __cplusplus | 
 | 8141 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8142 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8143 | #endif | 
 | 8144 | /* We use char because int might match the return type of a gcc2 | 
 | 8145 |    builtin and then its argument prototype would still apply.  */ | 
 | 8146 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8147 | /* The GNU C library defines this for functions which it implements | 
 | 8148 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8149 |     something starting with __ and the normal name is an alias.  */ | 
 | 8150 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 8151 | choke me | 
 | 8152 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8153 | char (*f) () = shl_load; | 
 | 8154 | #endif | 
 | 8155 | #ifdef __cplusplus | 
 | 8156 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8157 | #endif | 
 | 8158 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8159 | int | 
 | 8160 | main () | 
 | 8161 | { | 
 | 8162 | return f != shl_load; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8163 |   ; | 
 | 8164 |   return 0; | 
 | 8165 | } | 
 | 8166 | _ACEOF | 
 | 8167 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8169 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8170 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8171 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8172 |   rm -f conftest.er1 | 
 | 8173 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8174 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8175 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8176 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8177 | 			 || test ! -s conftest.err' | 
 | 8178 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8179 |   (eval $ac_try) 2>&5 | 
 | 8180 |   ac_status=$? | 
 | 8181 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8182 |   (exit $ac_status); }; } && | 
 | 8183 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8184 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8185 |   (eval $ac_try) 2>&5 | 
 | 8186 |   ac_status=$? | 
 | 8187 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8188 |   (exit $ac_status); }; }; then | 
 | 8189 |   ac_cv_func_shl_load=yes | 
 | 8190 | else | 
 | 8191 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8192 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8193 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8194 | ac_cv_func_shl_load=no | 
 | 8195 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8196 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8197 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8198 | fi | 
 | 8199 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 8200 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 8201 | if test $ac_cv_func_shl_load = yes; then | 
 | 8202 |   lt_cv_dlopen="shl_load" | 
 | 8203 | else | 
 | 8204 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 8205 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 8206 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 8207 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8208 | else | 
 | 8209 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8210 | LIBS="-ldld  $LIBS" | 
 | 8211 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8212 | /* confdefs.h.  */ | 
 | 8213 | _ACEOF | 
 | 8214 | cat confdefs.h >>conftest.$ac_ext | 
 | 8215 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8216 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8217 |  | 
 | 8218 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8219 | #ifdef __cplusplus | 
 | 8220 | extern "C" | 
 | 8221 | #endif | 
 | 8222 | /* We use char because int might match the return type of a gcc2 | 
 | 8223 |    builtin and then its argument prototype would still apply.  */ | 
 | 8224 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8225 | int | 
 | 8226 | main () | 
 | 8227 | { | 
 | 8228 | shl_load (); | 
 | 8229 |   ; | 
 | 8230 |   return 0; | 
 | 8231 | } | 
 | 8232 | _ACEOF | 
 | 8233 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8235 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8236 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8237 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8238 |   rm -f conftest.er1 | 
 | 8239 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8240 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8241 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8242 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8243 | 			 || test ! -s conftest.err' | 
 | 8244 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8245 |   (eval $ac_try) 2>&5 | 
 | 8246 |   ac_status=$? | 
 | 8247 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8248 |   (exit $ac_status); }; } && | 
 | 8249 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8250 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8251 |   (eval $ac_try) 2>&5 | 
 | 8252 |   ac_status=$? | 
 | 8253 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8254 |   (exit $ac_status); }; }; then | 
 | 8255 |   ac_cv_lib_dld_shl_load=yes | 
 | 8256 | else | 
 | 8257 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8258 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8259 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8260 | ac_cv_lib_dld_shl_load=no | 
 | 8261 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8262 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8263 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8264 | LIBS=$ac_check_lib_save_LIBS | 
 | 8265 | fi | 
 | 8266 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 8267 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 8268 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 8269 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 8270 | else | 
 | 8271 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 8272 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 8273 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 8274 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8275 | else | 
 | 8276 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8277 | /* confdefs.h.  */ | 
 | 8278 | _ACEOF | 
 | 8279 | cat confdefs.h >>conftest.$ac_ext | 
 | 8280 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8281 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8282 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 8283 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8284 | #define dlopen innocuous_dlopen | 
 | 8285 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8286 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8287 |     which can conflict with char dlopen (); below. | 
 | 8288 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8289 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8290 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8291 | #ifdef __STDC__ | 
 | 8292 | # include <limits.h> | 
 | 8293 | #else | 
 | 8294 | # include <assert.h> | 
 | 8295 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8296 |  | 
 | 8297 | #undef dlopen | 
 | 8298 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8299 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8300 | #ifdef __cplusplus | 
 | 8301 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8302 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8303 | #endif | 
 | 8304 | /* We use char because int might match the return type of a gcc2 | 
 | 8305 |    builtin and then its argument prototype would still apply.  */ | 
 | 8306 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8307 | /* The GNU C library defines this for functions which it implements | 
 | 8308 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8309 |     something starting with __ and the normal name is an alias.  */ | 
 | 8310 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 8311 | choke me | 
 | 8312 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8313 | char (*f) () = dlopen; | 
 | 8314 | #endif | 
 | 8315 | #ifdef __cplusplus | 
 | 8316 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8317 | #endif | 
 | 8318 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8319 | int | 
 | 8320 | main () | 
 | 8321 | { | 
 | 8322 | return f != dlopen; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8323 |   ; | 
 | 8324 |   return 0; | 
 | 8325 | } | 
 | 8326 | _ACEOF | 
 | 8327 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8329 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8330 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8331 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8332 |   rm -f conftest.er1 | 
 | 8333 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8334 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8335 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8336 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8337 | 			 || test ! -s conftest.err' | 
 | 8338 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8339 |   (eval $ac_try) 2>&5 | 
 | 8340 |   ac_status=$? | 
 | 8341 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8342 |   (exit $ac_status); }; } && | 
 | 8343 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8344 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8345 |   (eval $ac_try) 2>&5 | 
 | 8346 |   ac_status=$? | 
 | 8347 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8348 |   (exit $ac_status); }; }; then | 
 | 8349 |   ac_cv_func_dlopen=yes | 
 | 8350 | else | 
 | 8351 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8352 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8353 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8354 | ac_cv_func_dlopen=no | 
 | 8355 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8356 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8357 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8358 | fi | 
 | 8359 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 8360 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 8361 | if test $ac_cv_func_dlopen = yes; then | 
 | 8362 |   lt_cv_dlopen="dlopen" | 
 | 8363 | else | 
 | 8364 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 8365 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 8366 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 8367 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8368 | else | 
 | 8369 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8370 | LIBS="-ldl  $LIBS" | 
 | 8371 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8372 | /* confdefs.h.  */ | 
 | 8373 | _ACEOF | 
 | 8374 | cat confdefs.h >>conftest.$ac_ext | 
 | 8375 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8376 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8377 |  | 
 | 8378 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8379 | #ifdef __cplusplus | 
 | 8380 | extern "C" | 
 | 8381 | #endif | 
 | 8382 | /* We use char because int might match the return type of a gcc2 | 
 | 8383 |    builtin and then its argument prototype would still apply.  */ | 
 | 8384 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8385 | int | 
 | 8386 | main () | 
 | 8387 | { | 
 | 8388 | dlopen (); | 
 | 8389 |   ; | 
 | 8390 |   return 0; | 
 | 8391 | } | 
 | 8392 | _ACEOF | 
 | 8393 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8395 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8396 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8397 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8398 |   rm -f conftest.er1 | 
 | 8399 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8400 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8401 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8402 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8403 | 			 || test ! -s conftest.err' | 
 | 8404 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8405 |   (eval $ac_try) 2>&5 | 
 | 8406 |   ac_status=$? | 
 | 8407 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8408 |   (exit $ac_status); }; } && | 
 | 8409 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8410 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8411 |   (eval $ac_try) 2>&5 | 
 | 8412 |   ac_status=$? | 
 | 8413 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8414 |   (exit $ac_status); }; }; then | 
 | 8415 |   ac_cv_lib_dl_dlopen=yes | 
 | 8416 | else | 
 | 8417 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8418 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8419 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8420 | ac_cv_lib_dl_dlopen=no | 
 | 8421 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8422 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8423 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8424 | LIBS=$ac_check_lib_save_LIBS | 
 | 8425 | fi | 
 | 8426 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8427 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 8428 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 8429 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 8430 | else | 
 | 8431 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 8432 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 8433 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 8434 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8435 | else | 
 | 8436 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8437 | LIBS="-lsvld  $LIBS" | 
 | 8438 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8439 | /* confdefs.h.  */ | 
 | 8440 | _ACEOF | 
 | 8441 | cat confdefs.h >>conftest.$ac_ext | 
 | 8442 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8443 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8444 |  | 
 | 8445 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8446 | #ifdef __cplusplus | 
 | 8447 | extern "C" | 
 | 8448 | #endif | 
 | 8449 | /* We use char because int might match the return type of a gcc2 | 
 | 8450 |    builtin and then its argument prototype would still apply.  */ | 
 | 8451 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8452 | int | 
 | 8453 | main () | 
 | 8454 | { | 
 | 8455 | dlopen (); | 
 | 8456 |   ; | 
 | 8457 |   return 0; | 
 | 8458 | } | 
 | 8459 | _ACEOF | 
 | 8460 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8462 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8463 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8464 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8465 |   rm -f conftest.er1 | 
 | 8466 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8467 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8468 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8469 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8470 | 			 || test ! -s conftest.err' | 
 | 8471 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8472 |   (eval $ac_try) 2>&5 | 
 | 8473 |   ac_status=$? | 
 | 8474 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8475 |   (exit $ac_status); }; } && | 
 | 8476 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8477 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8478 |   (eval $ac_try) 2>&5 | 
 | 8479 |   ac_status=$? | 
 | 8480 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8481 |   (exit $ac_status); }; }; then | 
 | 8482 |   ac_cv_lib_svld_dlopen=yes | 
 | 8483 | else | 
 | 8484 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8485 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8486 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8487 | ac_cv_lib_svld_dlopen=no | 
 | 8488 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8489 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8490 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8491 | LIBS=$ac_check_lib_save_LIBS | 
 | 8492 | fi | 
 | 8493 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 8494 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 8495 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 8496 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 8497 | else | 
 | 8498 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 8499 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 8500 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 8501 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8502 | else | 
 | 8503 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8504 | LIBS="-ldld  $LIBS" | 
 | 8505 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8506 | /* confdefs.h.  */ | 
 | 8507 | _ACEOF | 
 | 8508 | cat confdefs.h >>conftest.$ac_ext | 
 | 8509 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8510 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8511 |  | 
 | 8512 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8513 | #ifdef __cplusplus | 
 | 8514 | extern "C" | 
 | 8515 | #endif | 
 | 8516 | /* We use char because int might match the return type of a gcc2 | 
 | 8517 |    builtin and then its argument prototype would still apply.  */ | 
 | 8518 | char dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8519 | int | 
 | 8520 | main () | 
 | 8521 | { | 
 | 8522 | dld_link (); | 
 | 8523 |   ; | 
 | 8524 |   return 0; | 
 | 8525 | } | 
 | 8526 | _ACEOF | 
 | 8527 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8529 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8530 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8531 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8532 |   rm -f conftest.er1 | 
 | 8533 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8534 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8535 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8536 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8537 | 			 || test ! -s conftest.err' | 
 | 8538 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8539 |   (eval $ac_try) 2>&5 | 
 | 8540 |   ac_status=$? | 
 | 8541 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8542 |   (exit $ac_status); }; } && | 
 | 8543 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8544 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8545 |   (eval $ac_try) 2>&5 | 
 | 8546 |   ac_status=$? | 
 | 8547 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8548 |   (exit $ac_status); }; }; then | 
 | 8549 |   ac_cv_lib_dld_dld_link=yes | 
 | 8550 | else | 
 | 8551 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8552 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8553 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8554 | ac_cv_lib_dld_dld_link=no | 
 | 8555 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8556 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8557 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8558 | LIBS=$ac_check_lib_save_LIBS | 
 | 8559 | fi | 
 | 8560 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 8561 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 8562 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 8563 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 8564 | fi | 
 | 8565 |  | 
 | 8566 |  | 
 | 8567 | fi | 
 | 8568 |  | 
 | 8569 |  | 
 | 8570 | fi | 
 | 8571 |  | 
 | 8572 |  | 
 | 8573 | fi | 
 | 8574 |  | 
 | 8575 |  | 
 | 8576 | fi | 
 | 8577 |  | 
 | 8578 |  | 
 | 8579 | fi | 
 | 8580 |  | 
 | 8581 |     ;; | 
 | 8582 |   esac | 
 | 8583 |  | 
 | 8584 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 8585 |     enable_dlopen=yes | 
 | 8586 |   else | 
 | 8587 |     enable_dlopen=no | 
 | 8588 |   fi | 
 | 8589 |  | 
 | 8590 |   case $lt_cv_dlopen in | 
 | 8591 |   dlopen) | 
 | 8592 |     save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8593 |     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] | 8594 |  | 
 | 8595 |     save_LDFLAGS="$LDFLAGS" | 
 | 8596 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 8597 |  | 
 | 8598 |     save_LIBS="$LIBS" | 
 | 8599 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 8600 |  | 
 | 8601 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 8602 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 8603 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 8604 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8605 | else | 
 | 8606 |   	  if test "$cross_compiling" = yes; then : | 
 | 8607 |   lt_cv_dlopen_self=cross | 
 | 8608 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8609 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8610 |   lt_status=$lt_dlunknown | 
 | 8611 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 8612 | #line 8612 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8613 | #include "confdefs.h" | 
 | 8614 |  | 
 | 8615 | #if HAVE_DLFCN_H | 
 | 8616 | #include <dlfcn.h> | 
 | 8617 | #endif | 
 | 8618 |  | 
 | 8619 | #include <stdio.h> | 
 | 8620 |  | 
 | 8621 | #ifdef RTLD_GLOBAL | 
 | 8622 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 8623 | #else | 
 | 8624 | #  ifdef DL_GLOBAL | 
 | 8625 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 8626 | #  else | 
 | 8627 | #    define LT_DLGLOBAL		0 | 
 | 8628 | #  endif | 
 | 8629 | #endif | 
 | 8630 |  | 
 | 8631 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 8632 |    find out it does not work in some platform. */ | 
 | 8633 | #ifndef LT_DLLAZY_OR_NOW | 
 | 8634 | #  ifdef RTLD_LAZY | 
 | 8635 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 8636 | #  else | 
 | 8637 | #    ifdef DL_LAZY | 
 | 8638 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 8639 | #    else | 
 | 8640 | #      ifdef RTLD_NOW | 
 | 8641 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 8642 | #      else | 
 | 8643 | #        ifdef DL_NOW | 
 | 8644 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 8645 | #        else | 
 | 8646 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 8647 | #        endif | 
 | 8648 | #      endif | 
 | 8649 | #    endif | 
 | 8650 | #  endif | 
 | 8651 | #endif | 
 | 8652 |  | 
 | 8653 | #ifdef __cplusplus | 
 | 8654 | extern "C" void exit (int); | 
 | 8655 | #endif | 
 | 8656 |  | 
 | 8657 | void fnord() { int i=42;} | 
 | 8658 | int main () | 
 | 8659 | { | 
 | 8660 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 8661 |   int status = $lt_dlunknown; | 
 | 8662 |  | 
 | 8663 |   if (self) | 
 | 8664 |     { | 
 | 8665 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 8666 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 8667 |       /* dlclose (self); */ | 
 | 8668 |     } | 
 | 8669 |  | 
 | 8670 |     exit (status); | 
 | 8671 | } | 
 | 8672 | EOF | 
 | 8673 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8674 |   (eval $ac_link) 2>&5 | 
 | 8675 |   ac_status=$? | 
 | 8676 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8677 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 8678 |     (./conftest; exit; ) 2>/dev/null | 
 | 8679 |     lt_status=$? | 
 | 8680 |     case x$lt_status in | 
 | 8681 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 8682 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 8683 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 8684 |     esac | 
 | 8685 |   else : | 
 | 8686 |     # compilation failed | 
 | 8687 |     lt_cv_dlopen_self=no | 
 | 8688 |   fi | 
 | 8689 | fi | 
 | 8690 | rm -fr conftest* | 
 | 8691 |  | 
 | 8692 |  | 
 | 8693 | fi | 
 | 8694 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 8695 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 8696 |  | 
 | 8697 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 8698 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 8699 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 8700 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 8701 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 8702 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8703 | else | 
 | 8704 |   	  if test "$cross_compiling" = yes; then : | 
 | 8705 |   lt_cv_dlopen_self_static=cross | 
 | 8706 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8707 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8708 |   lt_status=$lt_dlunknown | 
 | 8709 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 8710 | #line 8710 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8711 | #include "confdefs.h" | 
 | 8712 |  | 
 | 8713 | #if HAVE_DLFCN_H | 
 | 8714 | #include <dlfcn.h> | 
 | 8715 | #endif | 
 | 8716 |  | 
 | 8717 | #include <stdio.h> | 
 | 8718 |  | 
 | 8719 | #ifdef RTLD_GLOBAL | 
 | 8720 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 8721 | #else | 
 | 8722 | #  ifdef DL_GLOBAL | 
 | 8723 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 8724 | #  else | 
 | 8725 | #    define LT_DLGLOBAL		0 | 
 | 8726 | #  endif | 
 | 8727 | #endif | 
 | 8728 |  | 
 | 8729 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 8730 |    find out it does not work in some platform. */ | 
 | 8731 | #ifndef LT_DLLAZY_OR_NOW | 
 | 8732 | #  ifdef RTLD_LAZY | 
 | 8733 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 8734 | #  else | 
 | 8735 | #    ifdef DL_LAZY | 
 | 8736 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 8737 | #    else | 
 | 8738 | #      ifdef RTLD_NOW | 
 | 8739 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 8740 | #      else | 
 | 8741 | #        ifdef DL_NOW | 
 | 8742 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 8743 | #        else | 
 | 8744 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 8745 | #        endif | 
 | 8746 | #      endif | 
 | 8747 | #    endif | 
 | 8748 | #  endif | 
 | 8749 | #endif | 
 | 8750 |  | 
 | 8751 | #ifdef __cplusplus | 
 | 8752 | extern "C" void exit (int); | 
 | 8753 | #endif | 
 | 8754 |  | 
 | 8755 | void fnord() { int i=42;} | 
 | 8756 | int main () | 
 | 8757 | { | 
 | 8758 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 8759 |   int status = $lt_dlunknown; | 
 | 8760 |  | 
 | 8761 |   if (self) | 
 | 8762 |     { | 
 | 8763 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 8764 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 8765 |       /* dlclose (self); */ | 
 | 8766 |     } | 
 | 8767 |  | 
 | 8768 |     exit (status); | 
 | 8769 | } | 
 | 8770 | EOF | 
 | 8771 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8772 |   (eval $ac_link) 2>&5 | 
 | 8773 |   ac_status=$? | 
 | 8774 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8775 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 8776 |     (./conftest; exit; ) 2>/dev/null | 
 | 8777 |     lt_status=$? | 
 | 8778 |     case x$lt_status in | 
 | 8779 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 8780 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 8781 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 8782 |     esac | 
 | 8783 |   else : | 
 | 8784 |     # compilation failed | 
 | 8785 |     lt_cv_dlopen_self_static=no | 
 | 8786 |   fi | 
 | 8787 | fi | 
 | 8788 | rm -fr conftest* | 
 | 8789 |  | 
 | 8790 |  | 
 | 8791 | fi | 
 | 8792 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 8793 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 8794 |     fi | 
 | 8795 |  | 
 | 8796 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 8797 |     LDFLAGS="$save_LDFLAGS" | 
 | 8798 |     LIBS="$save_LIBS" | 
 | 8799 |     ;; | 
 | 8800 |   esac | 
 | 8801 |  | 
 | 8802 |   case $lt_cv_dlopen_self in | 
 | 8803 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 8804 |   *) enable_dlopen_self=unknown ;; | 
 | 8805 |   esac | 
 | 8806 |  | 
 | 8807 |   case $lt_cv_dlopen_self_static in | 
 | 8808 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 8809 |   *) enable_dlopen_self_static=unknown ;; | 
 | 8810 |   esac | 
 | 8811 | fi | 
 | 8812 |  | 
 | 8813 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8814 | # Report which librarie types wil actually be built | 
 | 8815 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 8816 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 8817 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 8818 | echo "${ECHO_T}$can_build_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8819 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8820 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 8821 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 8822 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 8823 |  | 
 | 8824 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 8825 | # are all built from PIC. | 
 | 8826 | case "$host_os" in | 
 | 8827 | aix3*) | 
 | 8828 |   test "$enable_shared" = yes && enable_static=no | 
 | 8829 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 8830 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8831 |     postinstall_cmds='$RANLIB $lib' | 
 | 8832 |   fi | 
 | 8833 |   ;; | 
 | 8834 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8835 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8836 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
 | 8837 |     test "$enable_shared" = yes && enable_static=no | 
 | 8838 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8839 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8840 | esac | 
 | 8841 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 8842 | echo "${ECHO_T}$enable_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8843 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8844 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 8845 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 8846 | # Make sure either enable_shared or enable_static is yes. | 
 | 8847 | test "$enable_shared" = yes || enable_static=yes | 
 | 8848 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 8849 | echo "${ECHO_T}$enable_static" >&6 | 
 | 8850 |  | 
 | 8851 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8852 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 8853 | # with your package, and you will get complaints that there are | 
 | 8854 | # no rules to generate ltmain.sh. | 
 | 8855 | if test -f "$ltmain"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8856 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 8857 |   # without removal of \ escapes. | 
 | 8858 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 8859 |     setopt NO_GLOB_SUBST | 
 | 8860 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8861 |   # Now quote all the things that may contain metacharacters while being | 
 | 8862 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 8863 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8864 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 8865 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8866 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 8867 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 8868 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 8869 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 8870 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8871 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8872 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 8873 |     compiler \ | 
 | 8874 |     CC \ | 
 | 8875 |     LD \ | 
 | 8876 |     lt_prog_compiler_wl \ | 
 | 8877 |     lt_prog_compiler_pic \ | 
 | 8878 |     lt_prog_compiler_static \ | 
 | 8879 |     lt_prog_compiler_no_builtin_flag \ | 
 | 8880 |     export_dynamic_flag_spec \ | 
 | 8881 |     thread_safe_flag_spec \ | 
 | 8882 |     whole_archive_flag_spec \ | 
 | 8883 |     enable_shared_with_static_runtimes \ | 
 | 8884 |     old_archive_cmds \ | 
 | 8885 |     old_archive_from_new_cmds \ | 
 | 8886 |     predep_objects \ | 
 | 8887 |     postdep_objects \ | 
 | 8888 |     predeps \ | 
 | 8889 |     postdeps \ | 
 | 8890 |     compiler_lib_search_path \ | 
 | 8891 |     archive_cmds \ | 
 | 8892 |     archive_expsym_cmds \ | 
 | 8893 |     postinstall_cmds \ | 
 | 8894 |     postuninstall_cmds \ | 
 | 8895 |     old_archive_from_expsyms_cmds \ | 
 | 8896 |     allow_undefined_flag \ | 
 | 8897 |     no_undefined_flag \ | 
 | 8898 |     export_symbols_cmds \ | 
 | 8899 |     hardcode_libdir_flag_spec \ | 
 | 8900 |     hardcode_libdir_flag_spec_ld \ | 
 | 8901 |     hardcode_libdir_separator \ | 
 | 8902 |     hardcode_automatic \ | 
 | 8903 |     module_cmds \ | 
 | 8904 |     module_expsym_cmds \ | 
 | 8905 |     lt_cv_prog_compiler_c_o \ | 
 | 8906 |     exclude_expsyms \ | 
 | 8907 |     include_expsyms; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8908 |  | 
 | 8909 |     case $var in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8910 |     old_archive_cmds | \ | 
 | 8911 |     old_archive_from_new_cmds | \ | 
 | 8912 |     archive_cmds | \ | 
 | 8913 |     archive_expsym_cmds | \ | 
 | 8914 |     module_cmds | \ | 
 | 8915 |     module_expsym_cmds | \ | 
 | 8916 |     old_archive_from_expsyms_cmds | \ | 
 | 8917 |     export_symbols_cmds | \ | 
 | 8918 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8919 |     postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8920 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 8921 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8922 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8923 |       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] | 8924 |       ;; | 
 | 8925 |     *) | 
 | 8926 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 8927 |       ;; | 
 | 8928 |     esac | 
 | 8929 |   done | 
 | 8930 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8931 |   case $lt_echo in | 
 | 8932 |   *'\$0 --fallback-echo"') | 
 | 8933 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 8934 |     ;; | 
 | 8935 |   esac | 
 | 8936 |  | 
 | 8937 | cfgfile="${ofile}T" | 
 | 8938 |   trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
 | 8939 |   $rm -f "$cfgfile" | 
 | 8940 |   { echo "$as_me:$LINENO: creating $ofile" >&5 | 
 | 8941 | echo "$as_me: creating $ofile" >&6;} | 
 | 8942 |  | 
 | 8943 |   cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8944 | #! $SHELL | 
 | 8945 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8946 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8947 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
 | 8948 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
 | 8949 | # | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8950 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
 | 8951 | # Free Software Foundation, Inc. | 
 | 8952 | # | 
 | 8953 | # This file is part of GNU Libtool: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8954 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
 | 8955 | # | 
 | 8956 | # This program is free software; you can redistribute it and/or modify | 
 | 8957 | # it under the terms of the GNU General Public License as published by | 
 | 8958 | # the Free Software Foundation; either version 2 of the License, or | 
 | 8959 | # (at your option) any later version. | 
 | 8960 | # | 
 | 8961 | # This program is distributed in the hope that it will be useful, but | 
 | 8962 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 8963 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
 | 8964 | # General Public License for more details. | 
 | 8965 | # | 
 | 8966 | # You should have received a copy of the GNU General Public License | 
 | 8967 | # along with this program; if not, write to the Free Software | 
 | 8968 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
 | 8969 | # | 
 | 8970 | # As a special exception to the GNU General Public License, if you | 
 | 8971 | # distribute this file as part of a program that contains a | 
 | 8972 | # configuration script generated by Autoconf, you may include it under | 
 | 8973 | # the same distribution terms that you use for the rest of that program. | 
 | 8974 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8975 | # A sed program that does not truncate output. | 
 | 8976 | SED=$lt_SED | 
 | 8977 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8978 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8979 | Xsed="$SED -e s/^X//" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8980 |  | 
 | 8981 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 8982 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8983 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8984 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8985 | # The names of the tagged configurations supported by this script. | 
 | 8986 | available_tags= | 
 | 8987 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8988 | # ### BEGIN LIBTOOL CONFIG | 
 | 8989 |  | 
 | 8990 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 8991 |  | 
 | 8992 | # Shell to use when invoking shell scripts. | 
 | 8993 | SHELL=$lt_SHELL | 
 | 8994 |  | 
 | 8995 | # Whether or not to build shared libraries. | 
 | 8996 | build_libtool_libs=$enable_shared | 
 | 8997 |  | 
 | 8998 | # Whether or not to build static libraries. | 
 | 8999 | build_old_libs=$enable_static | 
 | 9000 |  | 
 | 9001 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9002 | build_libtool_need_lc=$archive_cmds_need_lc | 
 | 9003 |  | 
 | 9004 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 9005 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9006 |  | 
 | 9007 | # Whether or not to optimize for fast installation. | 
 | 9008 | fast_install=$enable_fast_install | 
 | 9009 |  | 
 | 9010 | # The host system. | 
 | 9011 | host_alias=$host_alias | 
 | 9012 | host=$host | 
 | 9013 |  | 
 | 9014 | # An echo program that does not interpret backslashes. | 
 | 9015 | echo=$lt_echo | 
 | 9016 |  | 
 | 9017 | # The archiver. | 
 | 9018 | AR=$lt_AR | 
 | 9019 | AR_FLAGS=$lt_AR_FLAGS | 
 | 9020 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9021 | # A C compiler. | 
 | 9022 | LTCC=$lt_LTCC | 
 | 9023 |  | 
 | 9024 | # A language-specific compiler. | 
 | 9025 | CC=$lt_compiler | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9026 |  | 
 | 9027 | # Is the compiler the GNU C compiler? | 
 | 9028 | with_gcc=$GCC | 
 | 9029 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9030 | # An ERE matcher. | 
 | 9031 | EGREP=$lt_EGREP | 
 | 9032 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9033 | # The linker used to build libraries. | 
 | 9034 | LD=$lt_LD | 
 | 9035 |  | 
 | 9036 | # Whether we need hard or soft links. | 
 | 9037 | LN_S=$lt_LN_S | 
 | 9038 |  | 
 | 9039 | # A BSD-compatible nm program. | 
 | 9040 | NM=$lt_NM | 
 | 9041 |  | 
 | 9042 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9043 | STRIP=$lt_STRIP | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9044 |  | 
 | 9045 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 9046 | MAGIC_CMD=$MAGIC_CMD | 
 | 9047 |  | 
 | 9048 | # Used on cygwin: DLL creation program. | 
 | 9049 | DLLTOOL="$DLLTOOL" | 
 | 9050 |  | 
 | 9051 | # Used on cygwin: object dumper. | 
 | 9052 | OBJDUMP="$OBJDUMP" | 
 | 9053 |  | 
 | 9054 | # Used on cygwin: assembler. | 
 | 9055 | AS="$AS" | 
 | 9056 |  | 
 | 9057 | # The name of the directory that contains temporary libtool files. | 
 | 9058 | objdir=$objdir | 
 | 9059 |  | 
 | 9060 | # How to create reloadable object files. | 
 | 9061 | reload_flag=$lt_reload_flag | 
 | 9062 | reload_cmds=$lt_reload_cmds | 
 | 9063 |  | 
 | 9064 | # How to pass a linker flag through the compiler. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9065 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9066 |  | 
 | 9067 | # Object file suffix (normally "o"). | 
 | 9068 | objext="$ac_objext" | 
 | 9069 |  | 
 | 9070 | # Old archive suffix (normally "a"). | 
 | 9071 | libext="$libext" | 
 | 9072 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9073 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9074 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9075 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9076 | # Executable file suffix (normally ""). | 
 | 9077 | exeext="$exeext" | 
 | 9078 |  | 
 | 9079 | # Additional compiler flags for building library objects. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9080 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9081 | pic_mode=$pic_mode | 
 | 9082 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9083 | # What is the maximum length of a command? | 
 | 9084 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9085 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9086 | # Does compiler simultaneously support -c and -o options? | 
 | 9087 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9088 |  | 
 | 9089 | # Must we lock files when doing compilation ? | 
 | 9090 | need_locks=$lt_need_locks | 
 | 9091 |  | 
 | 9092 | # Do we need the lib prefix for modules? | 
 | 9093 | need_lib_prefix=$need_lib_prefix | 
 | 9094 |  | 
 | 9095 | # Do we need a version for libraries? | 
 | 9096 | need_version=$need_version | 
 | 9097 |  | 
 | 9098 | # Whether dlopen is supported. | 
 | 9099 | dlopen_support=$enable_dlopen | 
 | 9100 |  | 
 | 9101 | # Whether dlopen of programs is supported. | 
 | 9102 | dlopen_self=$enable_dlopen_self | 
 | 9103 |  | 
 | 9104 | # Whether dlopen of statically linked programs is supported. | 
 | 9105 | dlopen_self_static=$enable_dlopen_self_static | 
 | 9106 |  | 
 | 9107 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9108 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9109 |  | 
 | 9110 | # Compiler flag to turn off builtin functions. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9111 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9112 |  | 
 | 9113 | # Compiler flag to allow reflexive dlopens. | 
 | 9114 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
 | 9115 |  | 
 | 9116 | # Compiler flag to generate shared objects directly from archives. | 
 | 9117 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
 | 9118 |  | 
 | 9119 | # Compiler flag to generate thread-safe objects. | 
 | 9120 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
 | 9121 |  | 
 | 9122 | # Library versioning type. | 
 | 9123 | version_type=$version_type | 
 | 9124 |  | 
 | 9125 | # Format of library name prefix. | 
 | 9126 | libname_spec=$lt_libname_spec | 
 | 9127 |  | 
 | 9128 | # List of archive names.  First name is the real one, the rest are links. | 
 | 9129 | # The last name is the one that the linker finds with -lNAME. | 
 | 9130 | library_names_spec=$lt_library_names_spec | 
 | 9131 |  | 
 | 9132 | # The coded name of the library, if different from the real name. | 
 | 9133 | soname_spec=$lt_soname_spec | 
 | 9134 |  | 
 | 9135 | # Commands used to build and install an old-style archive. | 
 | 9136 | RANLIB=$lt_RANLIB | 
 | 9137 | old_archive_cmds=$lt_old_archive_cmds | 
 | 9138 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 9139 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 9140 |  | 
 | 9141 | # Create an old-style archive from a shared archive. | 
 | 9142 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
 | 9143 |  | 
 | 9144 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 9145 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
 | 9146 |  | 
 | 9147 | # Commands used to build and install a shared archive. | 
 | 9148 | archive_cmds=$lt_archive_cmds | 
 | 9149 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
 | 9150 | postinstall_cmds=$lt_postinstall_cmds | 
 | 9151 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 9152 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9153 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 9154 | module_cmds=$lt_module_cmds | 
 | 9155 | module_expsym_cmds=$lt_module_expsym_cmds | 
 | 9156 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9157 | # Commands to strip libraries. | 
 | 9158 | old_striplib=$lt_old_striplib | 
 | 9159 | striplib=$lt_striplib | 
 | 9160 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9161 | # Dependencies to place before the objects being linked to create a | 
 | 9162 | # shared library. | 
 | 9163 | predep_objects=$lt_predep_objects | 
 | 9164 |  | 
 | 9165 | # Dependencies to place after the objects being linked to create a | 
 | 9166 | # shared library. | 
 | 9167 | postdep_objects=$lt_postdep_objects | 
 | 9168 |  | 
 | 9169 | # Dependencies to place before the objects being linked to create a | 
 | 9170 | # shared library. | 
 | 9171 | predeps=$lt_predeps | 
 | 9172 |  | 
 | 9173 | # Dependencies to place after the objects being linked to create a | 
 | 9174 | # shared library. | 
 | 9175 | postdeps=$lt_postdeps | 
 | 9176 |  | 
 | 9177 | # The library search path used internally by the compiler when linking | 
 | 9178 | # a shared library. | 
 | 9179 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
 | 9180 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9181 | # Method to check whether dependent libraries are shared objects. | 
 | 9182 | deplibs_check_method=$lt_deplibs_check_method | 
 | 9183 |  | 
 | 9184 | # Command to use when deplibs_check_method == file_magic. | 
 | 9185 | file_magic_cmd=$lt_file_magic_cmd | 
 | 9186 |  | 
 | 9187 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 9188 | allow_undefined_flag=$lt_allow_undefined_flag | 
 | 9189 |  | 
 | 9190 | # Flag that forces no undefined symbols. | 
 | 9191 | no_undefined_flag=$lt_no_undefined_flag | 
 | 9192 |  | 
 | 9193 | # Commands used to finish a libtool library installation in a directory. | 
 | 9194 | finish_cmds=$lt_finish_cmds | 
 | 9195 |  | 
 | 9196 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 9197 | finish_eval=$lt_finish_eval | 
 | 9198 |  | 
 | 9199 | # 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] | 9200 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9201 |  | 
 | 9202 | # Transform the output of nm in a proper C declaration | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9203 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9204 |  | 
 | 9205 | # Transform the output of nm in a C name address pair | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9206 | 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] | 9207 |  | 
 | 9208 | # This is the shared library runtime path variable. | 
 | 9209 | runpath_var=$runpath_var | 
 | 9210 |  | 
 | 9211 | # This is the shared library path variable. | 
 | 9212 | shlibpath_var=$shlibpath_var | 
 | 9213 |  | 
 | 9214 | # Is shlibpath searched before the hard-coded library search path? | 
 | 9215 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 9216 |  | 
 | 9217 | # How to hardcode a shared library path into an executable. | 
 | 9218 | hardcode_action=$hardcode_action | 
 | 9219 |  | 
 | 9220 | # Whether we should hardcode library paths into libraries. | 
 | 9221 | hardcode_into_libs=$hardcode_into_libs | 
 | 9222 |  | 
 | 9223 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 9224 | # This must work even if \$libdir does not exist. | 
 | 9225 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
 | 9226 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9227 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 9228 | # a binary during linking. This must work even if \$libdir does | 
 | 9229 | # not exist. | 
 | 9230 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
 | 9231 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9232 | # Whether we need a single -rpath flag with a separated argument. | 
 | 9233 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
 | 9234 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9235 | # 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] | 9236 | # resulting binary. | 
 | 9237 | hardcode_direct=$hardcode_direct | 
 | 9238 |  | 
 | 9239 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 9240 | # resulting binary. | 
 | 9241 | hardcode_minus_L=$hardcode_minus_L | 
 | 9242 |  | 
 | 9243 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 9244 | # the resulting binary. | 
 | 9245 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
 | 9246 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9247 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 9248 | # and all subsequent libraries and executables linked against it. | 
 | 9249 | hardcode_automatic=$hardcode_automatic | 
 | 9250 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9251 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 9252 | # restored at relink time. | 
 | 9253 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 9254 |  | 
 | 9255 | # Whether libtool must link a program against all its dependency libraries. | 
 | 9256 | link_all_deplibs=$link_all_deplibs | 
 | 9257 |  | 
 | 9258 | # Compile-time system search path for libraries | 
 | 9259 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 9260 |  | 
 | 9261 | # Run-time system search path for libraries | 
 | 9262 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 9263 |  | 
 | 9264 | # Fix the shell variable \$srcfile for the compiler. | 
 | 9265 | fix_srcfile_path="$fix_srcfile_path" | 
 | 9266 |  | 
 | 9267 | # Set to yes if exported symbols are required. | 
 | 9268 | always_export_symbols=$always_export_symbols | 
 | 9269 |  | 
 | 9270 | # The commands to list exported symbols. | 
 | 9271 | export_symbols_cmds=$lt_export_symbols_cmds | 
 | 9272 |  | 
 | 9273 | # The commands to extract the exported symbol list from a shared archive. | 
 | 9274 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 9275 |  | 
 | 9276 | # Symbols that should not be listed in the preloaded symbols. | 
 | 9277 | exclude_expsyms=$lt_exclude_expsyms | 
 | 9278 |  | 
 | 9279 | # Symbols that must always be exported. | 
 | 9280 | include_expsyms=$lt_include_expsyms | 
 | 9281 |  | 
 | 9282 | # ### END LIBTOOL CONFIG | 
 | 9283 |  | 
 | 9284 | __EOF__ | 
 | 9285 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9286 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9287 |   case $host_os in | 
 | 9288 |   aix3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9289 |     cat <<\EOF >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9290 |  | 
 | 9291 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 9292 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 9293 | # vanish in a puff of smoke. | 
 | 9294 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 9295 |   COLLECT_NAMES= | 
 | 9296 |   export COLLECT_NAMES | 
 | 9297 | fi | 
 | 9298 | EOF | 
 | 9299 |     ;; | 
 | 9300 |   esac | 
 | 9301 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9302 |   # We use sed instead of cat because bash on DJGPP gets confused if | 
 | 9303 |   # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
 | 9304 |   # text mode, it properly converts lines to CR/LF.  This bash problem | 
 | 9305 |   # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9306 |   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9307 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9308 |   mv -f "$cfgfile" "$ofile" || \ | 
 | 9309 |     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9310 |   chmod +x "$ofile" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9311 |  | 
 | 9312 | else | 
 | 9313 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 9314 |   # `config.status --recheck' to rerun these tests and create the | 
 | 9315 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9316 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 9317 |   if test -f "$ltmain_in"; then | 
 | 9318 |     test -f Makefile && make "$ltmain" | 
 | 9319 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9320 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9321 |  | 
 | 9322 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9323 | ac_ext=c | 
 | 9324 | ac_cpp='$CPP $CPPFLAGS' | 
 | 9325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 9326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 9327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 9328 |  | 
 | 9329 | CC="$lt_save_CC" | 
 | 9330 |  | 
 | 9331 |  | 
 | 9332 | # Check whether --with-tags or --without-tags was given. | 
 | 9333 | if test "${with_tags+set}" = set; then | 
 | 9334 |   withval="$with_tags" | 
 | 9335 |   tagnames="$withval" | 
 | 9336 | fi; | 
 | 9337 |  | 
 | 9338 | if test -f "$ltmain" && test -n "$tagnames"; then | 
 | 9339 |   if test ! -f "${ofile}"; then | 
 | 9340 |     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
 | 9341 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
 | 9342 |   fi | 
 | 9343 |  | 
 | 9344 |   if test -z "$LTCC"; then | 
 | 9345 |     eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
 | 9346 |     if test -z "$LTCC"; then | 
 | 9347 |       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
 | 9348 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
 | 9349 |     else | 
 | 9350 |       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
 | 9351 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
 | 9352 |     fi | 
 | 9353 |   fi | 
 | 9354 |  | 
 | 9355 |   # Extract list of available tagged configurations in $ofile. | 
 | 9356 |   # Note that this assumes the entire list is on one line. | 
 | 9357 |   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
 | 9358 |  | 
 | 9359 |   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 9360 |   for tagname in $tagnames; do | 
 | 9361 |     IFS="$lt_save_ifs" | 
 | 9362 |     # Check whether tagname contains only valid characters | 
 | 9363 |     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
 | 9364 |     "") ;; | 
 | 9365 |     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
 | 9366 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
 | 9367 |    { (exit 1); exit 1; }; } | 
 | 9368 | 	;; | 
 | 9369 |     esac | 
 | 9370 |  | 
 | 9371 |     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
 | 9372 |     then | 
 | 9373 |       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
 | 9374 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
 | 9375 |    { (exit 1); exit 1; }; } | 
 | 9376 |     fi | 
 | 9377 |  | 
 | 9378 |     # Update the list of available tags. | 
 | 9379 |     if test -n "$tagname"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9380 |       echo appending configuration tag "$tagname" to $ofile | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9381 |  | 
 | 9382 |       case $tagname in | 
 | 9383 |       CXX) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9384 | 	if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 9385 | 	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 9386 | 	    (test "X$CXX" != "Xg++"))) ; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9387 | 	  ac_ext=cc | 
 | 9388 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 9389 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 9390 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 9391 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 9392 |  | 
 | 9393 |  | 
 | 9394 |  | 
 | 9395 |  | 
 | 9396 | archive_cmds_need_lc_CXX=no | 
 | 9397 | allow_undefined_flag_CXX= | 
 | 9398 | always_export_symbols_CXX=no | 
 | 9399 | archive_expsym_cmds_CXX= | 
 | 9400 | export_dynamic_flag_spec_CXX= | 
 | 9401 | hardcode_direct_CXX=no | 
 | 9402 | hardcode_libdir_flag_spec_CXX= | 
 | 9403 | hardcode_libdir_flag_spec_ld_CXX= | 
 | 9404 | hardcode_libdir_separator_CXX= | 
 | 9405 | hardcode_minus_L_CXX=no | 
 | 9406 | hardcode_automatic_CXX=no | 
 | 9407 | module_cmds_CXX= | 
 | 9408 | module_expsym_cmds_CXX= | 
 | 9409 | link_all_deplibs_CXX=unknown | 
 | 9410 | old_archive_cmds_CXX=$old_archive_cmds | 
 | 9411 | no_undefined_flag_CXX= | 
 | 9412 | whole_archive_flag_spec_CXX= | 
 | 9413 | enable_shared_with_static_runtimes_CXX=no | 
 | 9414 |  | 
 | 9415 | # Dependencies to place before and after the object being linked: | 
 | 9416 | predep_objects_CXX= | 
 | 9417 | postdep_objects_CXX= | 
 | 9418 | predeps_CXX= | 
 | 9419 | postdeps_CXX= | 
 | 9420 | compiler_lib_search_path_CXX= | 
 | 9421 |  | 
 | 9422 | # Source file extension for C++ test sources. | 
 | 9423 | ac_ext=cc | 
 | 9424 |  | 
 | 9425 | # Object file extension for compiled C++ test sources. | 
 | 9426 | objext=o | 
 | 9427 | objext_CXX=$objext | 
 | 9428 |  | 
 | 9429 | # Code to be used in simple compile tests | 
 | 9430 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 9431 |  | 
 | 9432 | # Code to be used in simple link tests | 
 | 9433 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 
 | 9434 |  | 
 | 9435 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 9436 |  | 
 | 9437 | # If no C compiler was specified, use CC. | 
 | 9438 | LTCC=${LTCC-"$CC"} | 
 | 9439 |  | 
 | 9440 | # Allow CC to be a program name with arguments. | 
 | 9441 | compiler=$CC | 
 | 9442 |  | 
 | 9443 |  | 
 | 9444 | # Allow CC to be a program name with arguments. | 
 | 9445 | lt_save_CC=$CC | 
 | 9446 | lt_save_LD=$LD | 
 | 9447 | lt_save_GCC=$GCC | 
 | 9448 | GCC=$GXX | 
 | 9449 | lt_save_with_gnu_ld=$with_gnu_ld | 
 | 9450 | lt_save_path_LD=$lt_cv_path_LD | 
 | 9451 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
 | 9452 |   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
 | 9453 | else | 
 | 9454 |   unset lt_cv_prog_gnu_ld | 
 | 9455 | fi | 
 | 9456 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
 | 9457 |   lt_cv_path_LD=$lt_cv_path_LDCXX | 
 | 9458 | else | 
 | 9459 |   unset lt_cv_path_LD | 
 | 9460 | fi | 
 | 9461 | test -z "${LDCXX+set}" || LD=$LDCXX | 
 | 9462 | CC=${CXX-"c++"} | 
 | 9463 | compiler=$CC | 
 | 9464 | compiler_CXX=$CC | 
 | 9465 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 9466 |  | 
 | 9467 | # We don't want -fno-exception wen compiling C++ code, so set the | 
 | 9468 | # no_builtin_flag separately | 
 | 9469 | if test "$GXX" = yes; then | 
 | 9470 |   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
 | 9471 | else | 
 | 9472 |   lt_prog_compiler_no_builtin_flag_CXX= | 
 | 9473 | fi | 
 | 9474 |  | 
 | 9475 | if test "$GXX" = yes; then | 
 | 9476 |   # Set up default GNU C++ configuration | 
 | 9477 |  | 
 | 9478 |  | 
 | 9479 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 9480 | if test "${with_gnu_ld+set}" = set; then | 
 | 9481 |   withval="$with_gnu_ld" | 
 | 9482 |   test "$withval" = no || with_gnu_ld=yes | 
 | 9483 | else | 
 | 9484 |   with_gnu_ld=no | 
 | 9485 | fi; | 
 | 9486 | ac_prog=ld | 
 | 9487 | if test "$GCC" = yes; then | 
 | 9488 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 9489 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 9490 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
 | 9491 |   case $host in | 
 | 9492 |   *-*-mingw*) | 
 | 9493 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 9494 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 9495 |   *) | 
 | 9496 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 9497 |   esac | 
 | 9498 |   case $ac_prog in | 
 | 9499 |     # Accept absolute paths. | 
 | 9500 |     [\\/]* | ?:[\\/]*) | 
 | 9501 |       re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9502 |       # Canonicalize the pathname of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9503 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 9504 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 9505 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 9506 |       done | 
 | 9507 |       test -z "$LD" && LD="$ac_prog" | 
 | 9508 |       ;; | 
 | 9509 |   "") | 
 | 9510 |     # If it fails, then pretend we aren't using GCC. | 
 | 9511 |     ac_prog=ld | 
 | 9512 |     ;; | 
 | 9513 |   *) | 
 | 9514 |     # If it is relative, then search for the first ld in PATH. | 
 | 9515 |     with_gnu_ld=unknown | 
 | 9516 |     ;; | 
 | 9517 |   esac | 
 | 9518 | elif test "$with_gnu_ld" = yes; then | 
 | 9519 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 9520 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 9521 | else | 
 | 9522 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 9523 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 9524 | fi | 
 | 9525 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 9526 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9527 | else | 
 | 9528 |   if test -z "$LD"; then | 
 | 9529 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 9530 |   for ac_dir in $PATH; do | 
 | 9531 |     IFS="$lt_save_ifs" | 
 | 9532 |     test -z "$ac_dir" && ac_dir=. | 
 | 9533 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 9534 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 9535 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 9536 |       # but apparently some GNU ld's only accept -v. | 
 | 9537 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 9538 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 9539 |       *GNU* | *'with BFD'*) | 
 | 9540 | 	test "$with_gnu_ld" != no && break | 
 | 9541 | 	;; | 
 | 9542 |       *) | 
 | 9543 | 	test "$with_gnu_ld" != yes && break | 
 | 9544 | 	;; | 
 | 9545 |       esac | 
 | 9546 |     fi | 
 | 9547 |   done | 
 | 9548 |   IFS="$lt_save_ifs" | 
 | 9549 | else | 
 | 9550 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 9551 | fi | 
 | 9552 | fi | 
 | 9553 |  | 
 | 9554 | LD="$lt_cv_path_LD" | 
 | 9555 | if test -n "$LD"; then | 
 | 9556 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 9557 | echo "${ECHO_T}$LD" >&6 | 
 | 9558 | else | 
 | 9559 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 9560 | echo "${ECHO_T}no" >&6 | 
 | 9561 | fi | 
 | 9562 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 9563 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 9564 |    { (exit 1); exit 1; }; } | 
 | 9565 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 9566 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 9567 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 9568 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9569 | else | 
 | 9570 |   # 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] | 9571 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9572 | *GNU* | *'with BFD'*) | 
 | 9573 |   lt_cv_prog_gnu_ld=yes | 
 | 9574 |   ;; | 
 | 9575 | *) | 
 | 9576 |   lt_cv_prog_gnu_ld=no | 
 | 9577 |   ;; | 
 | 9578 | esac | 
 | 9579 | fi | 
 | 9580 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 9581 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 9582 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 9583 |  | 
 | 9584 |  | 
 | 9585 |  | 
 | 9586 |   # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
 | 9587 |   # archiving commands below assume that GNU ld is being used. | 
 | 9588 |   if test "$with_gnu_ld" = yes; then | 
 | 9589 |     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 9590 |     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' | 
 | 9591 |  | 
 | 9592 |     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
 | 9593 |     export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 9594 |  | 
 | 9595 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 9596 |     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
 | 9597 |     #     investigate it a little bit more. (MM) | 
 | 9598 |     wlarc='${wl}' | 
 | 9599 |  | 
 | 9600 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 9601 |     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
 | 9602 | 	grep 'no-whole-archive' > /dev/null; then | 
 | 9603 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 9604 |     else | 
 | 9605 |       whole_archive_flag_spec_CXX= | 
 | 9606 |     fi | 
 | 9607 |   else | 
 | 9608 |     with_gnu_ld=no | 
 | 9609 |     wlarc= | 
 | 9610 |  | 
 | 9611 |     # A generic and very simple default shared library creation | 
 | 9612 |     # command for GNU C++ for the case where it uses the native | 
 | 9613 |     # linker, instead of GNU ld.  If possible, this setting should | 
 | 9614 |     # overridden to take advantage of the native linker features on | 
 | 9615 |     # the platform it is being used on. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9616 |     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] | 9617 |   fi | 
 | 9618 |  | 
 | 9619 |   # Commands to make compiler produce verbose output that lists | 
 | 9620 |   # what "hidden" libraries, object files and flags are used when | 
 | 9621 |   # linking a shared library. | 
 | 9622 |   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 9623 |  | 
 | 9624 | else | 
 | 9625 |   GXX=no | 
 | 9626 |   with_gnu_ld=no | 
 | 9627 |   wlarc= | 
 | 9628 | fi | 
 | 9629 |  | 
 | 9630 | # PORTME: fill in a description of your system's C++ link characteristics | 
 | 9631 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 9632 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 9633 | ld_shlibs_CXX=yes | 
 | 9634 | case $host_os in | 
 | 9635 |   aix3*) | 
 | 9636 |     # FIXME: insert proper C++ library support | 
 | 9637 |     ld_shlibs_CXX=no | 
 | 9638 |     ;; | 
 | 9639 |   aix4* | aix5*) | 
 | 9640 |     if test "$host_cpu" = ia64; then | 
 | 9641 |       # On IA64, the linker does run time linking by default, so we don't | 
 | 9642 |       # have to do anything special. | 
 | 9643 |       aix_use_runtimelinking=no | 
 | 9644 |       exp_sym_flag='-Bexport' | 
 | 9645 |       no_entry_flag="" | 
 | 9646 |     else | 
 | 9647 |       aix_use_runtimelinking=no | 
 | 9648 |  | 
 | 9649 |       # Test if we are trying to use run time linking or normal | 
 | 9650 |       # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 9651 |       # need to do runtime linking. | 
 | 9652 |       case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 9653 | 	for ld_flag in $LDFLAGS; do | 
 | 9654 | 	  case $ld_flag in | 
 | 9655 | 	  *-brtl*) | 
 | 9656 | 	    aix_use_runtimelinking=yes | 
 | 9657 | 	    break | 
 | 9658 | 	    ;; | 
 | 9659 | 	  esac | 
 | 9660 | 	done | 
 | 9661 |       esac | 
 | 9662 |  | 
 | 9663 |       exp_sym_flag='-bexport' | 
 | 9664 |       no_entry_flag='-bnoentry' | 
 | 9665 |     fi | 
 | 9666 |  | 
 | 9667 |     # When large executables or shared objects are built, AIX ld can | 
 | 9668 |     # have problems creating the table of contents.  If linking a library | 
 | 9669 |     # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 9670 |     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 9671 |     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 9672 |  | 
 | 9673 |     archive_cmds_CXX='' | 
 | 9674 |     hardcode_direct_CXX=yes | 
 | 9675 |     hardcode_libdir_separator_CXX=':' | 
 | 9676 |     link_all_deplibs_CXX=yes | 
 | 9677 |  | 
 | 9678 |     if test "$GXX" = yes; then | 
 | 9679 |       case $host_os in aix4.012|aix4.012.*) | 
 | 9680 |       # We only want to do this on AIX 4.2 and lower, the check | 
 | 9681 |       # below for broken collect2 doesn't work under 4.3+ | 
 | 9682 | 	collect2name=`${CC} -print-prog-name=collect2` | 
 | 9683 | 	if test -f "$collect2name" && \ | 
 | 9684 | 	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 9685 | 	then | 
 | 9686 | 	  # We have reworked collect2 | 
 | 9687 | 	  hardcode_direct_CXX=yes | 
 | 9688 | 	else | 
 | 9689 | 	  # We have old collect2 | 
 | 9690 | 	  hardcode_direct_CXX=unsupported | 
 | 9691 | 	  # It fails to find uninstalled libraries when the uninstalled | 
 | 9692 | 	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 9693 | 	  # to unsupported forces relinking | 
 | 9694 | 	  hardcode_minus_L_CXX=yes | 
 | 9695 | 	  hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 9696 | 	  hardcode_libdir_separator_CXX= | 
 | 9697 | 	fi | 
 | 9698 |       esac | 
 | 9699 |       shared_flag='-shared' | 
 | 9700 |     else | 
 | 9701 |       # not using gcc | 
 | 9702 |       if test "$host_cpu" = ia64; then | 
 | 9703 | 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 9704 | 	# chokes on -Wl,-G. The following line is correct: | 
 | 9705 | 	shared_flag='-G' | 
 | 9706 |       else | 
 | 9707 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 9708 | 	  shared_flag='${wl}-G' | 
 | 9709 | 	else | 
 | 9710 | 	  shared_flag='${wl}-bM:SRE' | 
 | 9711 | 	fi | 
 | 9712 |       fi | 
 | 9713 |     fi | 
 | 9714 |  | 
 | 9715 |     # It seems that -bexpall does not export symbols beginning with | 
 | 9716 |     # underscore (_), so it is better to generate a list of symbols to export. | 
 | 9717 |     always_export_symbols_CXX=yes | 
 | 9718 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 9719 |       # Warning - without using the other runtime loading flags (-brtl), | 
 | 9720 |       # -berok will link without error, but may produce a broken library. | 
 | 9721 |       allow_undefined_flag_CXX='-berok' | 
 | 9722 |       # Determine the default libpath from the value encoded in an empty executable. | 
 | 9723 |       cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9724 | /* confdefs.h.  */ | 
 | 9725 | _ACEOF | 
 | 9726 | cat confdefs.h >>conftest.$ac_ext | 
 | 9727 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9728 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9729 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9730 | int | 
 | 9731 | main () | 
 | 9732 | { | 
 | 9733 |  | 
 | 9734 |   ; | 
 | 9735 |   return 0; | 
 | 9736 | } | 
 | 9737 | _ACEOF | 
 | 9738 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9740 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9741 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9742 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9743 |   rm -f conftest.er1 | 
 | 9744 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9745 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9746 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9747 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 9748 | 			 || test ! -s conftest.err' | 
 | 9749 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9750 |   (eval $ac_try) 2>&5 | 
 | 9751 |   ac_status=$? | 
 | 9752 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9753 |   (exit $ac_status); }; } && | 
 | 9754 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9755 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9756 |   (eval $ac_try) 2>&5 | 
 | 9757 |   ac_status=$? | 
 | 9758 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9759 |   (exit $ac_status); }; }; then | 
 | 9760 |  | 
 | 9761 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 9762 | }'` | 
 | 9763 | # Check for a 64-bit object if we didn't find anything. | 
 | 9764 | 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; } | 
 | 9765 | }'`; fi | 
 | 9766 | else | 
 | 9767 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9768 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9769 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9770 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9771 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9772 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9773 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 9774 |  | 
 | 9775 |       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 9776 |  | 
 | 9777 |       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" | 
 | 9778 |      else | 
 | 9779 |       if test "$host_cpu" = ia64; then | 
 | 9780 | 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
 | 9781 | 	allow_undefined_flag_CXX="-z nodefs" | 
 | 9782 | 	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" | 
 | 9783 |       else | 
 | 9784 | 	# Determine the default libpath from the value encoded in an empty executable. | 
 | 9785 | 	cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9786 | /* confdefs.h.  */ | 
 | 9787 | _ACEOF | 
 | 9788 | cat confdefs.h >>conftest.$ac_ext | 
 | 9789 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9790 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9791 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9792 | int | 
 | 9793 | main () | 
 | 9794 | { | 
 | 9795 |  | 
 | 9796 |   ; | 
 | 9797 |   return 0; | 
 | 9798 | } | 
 | 9799 | _ACEOF | 
 | 9800 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9802 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9803 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9804 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9805 |   rm -f conftest.er1 | 
 | 9806 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9807 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9808 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9809 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 9810 | 			 || test ! -s conftest.err' | 
 | 9811 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9812 |   (eval $ac_try) 2>&5 | 
 | 9813 |   ac_status=$? | 
 | 9814 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9815 |   (exit $ac_status); }; } && | 
 | 9816 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9817 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9818 |   (eval $ac_try) 2>&5 | 
 | 9819 |   ac_status=$? | 
 | 9820 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9821 |   (exit $ac_status); }; }; then | 
 | 9822 |  | 
 | 9823 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 9824 | }'` | 
 | 9825 | # Check for a 64-bit object if we didn't find anything. | 
 | 9826 | 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; } | 
 | 9827 | }'`; fi | 
 | 9828 | else | 
 | 9829 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9830 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9831 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9832 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9833 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9834 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9835 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 9836 |  | 
 | 9837 | 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 9838 | 	# Warning - without using the other run time loading flags, | 
 | 9839 | 	# -berok will link without error, but may produce a broken library. | 
 | 9840 | 	no_undefined_flag_CXX=' ${wl}-bernotok' | 
 | 9841 | 	allow_undefined_flag_CXX=' ${wl}-berok' | 
 | 9842 | 	# -bexpall does not export symbols beginning with underscore (_) | 
 | 9843 | 	always_export_symbols_CXX=yes | 
 | 9844 | 	# Exported symbols can be pulled into shared objects from archives | 
 | 9845 | 	whole_archive_flag_spec_CXX=' ' | 
 | 9846 | 	archive_cmds_need_lc_CXX=yes | 
 | 9847 | 	# This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9848 | 	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] | 9849 |       fi | 
 | 9850 |     fi | 
 | 9851 |     ;; | 
 | 9852 |   chorus*) | 
 | 9853 |     case $cc_basename in | 
 | 9854 |       *) | 
 | 9855 | 	# FIXME: insert proper C++ library support | 
 | 9856 | 	ld_shlibs_CXX=no | 
 | 9857 | 	;; | 
 | 9858 |     esac | 
 | 9859 |     ;; | 
 | 9860 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9861 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9862 |   cygwin* | mingw* | pw32*) | 
 | 9863 |     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
 | 9864 |     # as there is no search path for DLLs. | 
 | 9865 |     hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 9866 |     allow_undefined_flag_CXX=unsupported | 
 | 9867 |     always_export_symbols_CXX=no | 
 | 9868 |     enable_shared_with_static_runtimes_CXX=yes | 
 | 9869 |  | 
 | 9870 |     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 9871 |       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' | 
 | 9872 |       # If the export-symbols file already is a .def file (1st line | 
 | 9873 |       # is EXPORTS), use it as is; otherwise, prepend... | 
 | 9874 |       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 9875 | 	cp $export_symbols $output_objdir/$soname.def; | 
 | 9876 |       else | 
 | 9877 | 	echo EXPORTS > $output_objdir/$soname.def; | 
 | 9878 | 	cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9879 |       fi~ | 
 | 9880 |       $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] | 9881 |     else | 
 | 9882 |       ld_shlibs_CXX=no | 
 | 9883 |     fi | 
 | 9884 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9885 |       darwin* | rhapsody*) | 
 | 9886 |         case "$host_os" in | 
 | 9887 |         rhapsody* | darwin1.[012]) | 
 | 9888 |          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | 
 | 9889 |          ;; | 
 | 9890 |        *) # Darwin 1.3 on | 
 | 9891 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 9892 |            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 9893 |          else | 
 | 9894 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 9895 |              10.[012]) | 
 | 9896 |                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 9897 |                ;; | 
 | 9898 |              10.*) | 
 | 9899 |                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | 
 | 9900 |                ;; | 
 | 9901 |            esac | 
 | 9902 |          fi | 
 | 9903 |          ;; | 
 | 9904 |         esac | 
 | 9905 |       archive_cmds_need_lc_CXX=no | 
 | 9906 |       hardcode_direct_CXX=no | 
 | 9907 |       hardcode_automatic_CXX=yes | 
 | 9908 |       hardcode_shlibpath_var_CXX=unsupported | 
 | 9909 |       whole_archive_flag_spec_CXX='' | 
 | 9910 |       link_all_deplibs_CXX=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9911 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9912 |     if test "$GXX" = yes ; then | 
 | 9913 |       lt_int_apple_cc_single_mod=no | 
 | 9914 |       output_verbose_link_cmd='echo' | 
 | 9915 |       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | 
 | 9916 |        lt_int_apple_cc_single_mod=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9917 |       fi | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9918 |       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9919 |        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] | 9920 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9921 |           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9922 |         fi | 
 | 9923 |         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 9924 |         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 9925 |           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9926 |             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9927 |           else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9928 |             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9929 |           fi | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9930 |             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9931 |       else | 
 | 9932 |       case "$cc_basename" in | 
 | 9933 |         xlc*) | 
 | 9934 |          output_verbose_link_cmd='echo' | 
 | 9935 |           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' | 
 | 9936 |           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 9937 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9938 |           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}' | 
 | 9939 |           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9940 |           ;; | 
 | 9941 |        *) | 
 | 9942 |          ld_shlibs_CXX=no | 
 | 9943 |           ;; | 
 | 9944 |       esac | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9945 |       fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9946 |         ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9947 |  | 
 | 9948 |   dgux*) | 
 | 9949 |     case $cc_basename in | 
 | 9950 |       ec++) | 
 | 9951 | 	# FIXME: insert proper C++ library support | 
 | 9952 | 	ld_shlibs_CXX=no | 
 | 9953 | 	;; | 
 | 9954 |       ghcx) | 
 | 9955 | 	# Green Hills C++ Compiler | 
 | 9956 | 	# FIXME: insert proper C++ library support | 
 | 9957 | 	ld_shlibs_CXX=no | 
 | 9958 | 	;; | 
 | 9959 |       *) | 
 | 9960 | 	# FIXME: insert proper C++ library support | 
 | 9961 | 	ld_shlibs_CXX=no | 
 | 9962 | 	;; | 
 | 9963 |     esac | 
 | 9964 |     ;; | 
 | 9965 |   freebsd12*) | 
 | 9966 |     # C++ shared libraries reported to be fairly broken before switch to ELF | 
 | 9967 |     ld_shlibs_CXX=no | 
 | 9968 |     ;; | 
 | 9969 |   freebsd-elf*) | 
 | 9970 |     archive_cmds_need_lc_CXX=no | 
 | 9971 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9972 |   freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9973 |     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
 | 9974 |     # conventions | 
 | 9975 |     ld_shlibs_CXX=yes | 
 | 9976 |     ;; | 
 | 9977 |   gnu*) | 
 | 9978 |     ;; | 
 | 9979 |   hpux9*) | 
 | 9980 |     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 9981 |     hardcode_libdir_separator_CXX=: | 
 | 9982 |     export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 9983 |     hardcode_direct_CXX=yes | 
 | 9984 |     hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 9985 | 				# but as the default | 
 | 9986 | 				# location of the library. | 
 | 9987 |  | 
 | 9988 |     case $cc_basename in | 
 | 9989 |     CC) | 
 | 9990 |       # FIXME: insert proper C++ library support | 
 | 9991 |       ld_shlibs_CXX=no | 
 | 9992 |       ;; | 
 | 9993 |     aCC) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 9994 |       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] | 9995 |       # Commands to make compiler produce verbose output that lists | 
 | 9996 |       # what "hidden" libraries, object files and flags are used when | 
 | 9997 |       # linking a shared library. | 
 | 9998 |       # | 
 | 9999 |       # There doesn't appear to be a way to prevent this compiler from | 
 | 10000 |       # explicitly linking system object files so we need to strip them | 
 | 10001 |       # from the output so that they don't get included in the library | 
 | 10002 |       # dependencies. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10003 |       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] | 10004 |       ;; | 
 | 10005 |     *) | 
 | 10006 |       if test "$GXX" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10007 |         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] | 10008 |       else | 
 | 10009 |         # FIXME: insert proper C++ library support | 
 | 10010 |         ld_shlibs_CXX=no | 
 | 10011 |       fi | 
 | 10012 |       ;; | 
 | 10013 |     esac | 
 | 10014 |     ;; | 
 | 10015 |   hpux10*|hpux11*) | 
 | 10016 |     if test $with_gnu_ld = no; then | 
 | 10017 |       case "$host_cpu" in | 
 | 10018 |       hppa*64*) | 
 | 10019 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 10020 | 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
 | 10021 | 	hardcode_libdir_separator_CXX=: | 
 | 10022 |         ;; | 
 | 10023 |       ia64*) | 
 | 10024 | 	hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 10025 |         ;; | 
 | 10026 |       *) | 
 | 10027 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 10028 | 	hardcode_libdir_separator_CXX=: | 
 | 10029 | 	export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 10030 |         ;; | 
 | 10031 |       esac | 
 | 10032 |     fi | 
 | 10033 |     case "$host_cpu" in | 
 | 10034 |     hppa*64*) | 
 | 10035 |       hardcode_direct_CXX=no | 
 | 10036 |       hardcode_shlibpath_var_CXX=no | 
 | 10037 |       ;; | 
 | 10038 |     ia64*) | 
 | 10039 |       hardcode_direct_CXX=no | 
 | 10040 |       hardcode_shlibpath_var_CXX=no | 
 | 10041 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 10042 | 					      # but as the default | 
 | 10043 | 					      # location of the library. | 
 | 10044 |       ;; | 
 | 10045 |     *) | 
 | 10046 |       hardcode_direct_CXX=yes | 
 | 10047 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 10048 | 					      # but as the default | 
 | 10049 | 					      # location of the library. | 
 | 10050 |       ;; | 
 | 10051 |     esac | 
 | 10052 |  | 
 | 10053 |     case $cc_basename in | 
 | 10054 |       CC) | 
 | 10055 | 	# FIXME: insert proper C++ library support | 
 | 10056 | 	ld_shlibs_CXX=no | 
 | 10057 | 	;; | 
 | 10058 |       aCC) | 
 | 10059 | 	case "$host_cpu" in | 
 | 10060 | 	hppa*64*|ia64*) | 
 | 10061 | 	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 10062 | 	  ;; | 
 | 10063 | 	*) | 
 | 10064 | 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 10065 | 	  ;; | 
 | 10066 | 	esac | 
 | 10067 | 	# Commands to make compiler produce verbose output that lists | 
 | 10068 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10069 | 	# linking a shared library. | 
 | 10070 | 	# | 
 | 10071 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10072 | 	# explicitly linking system object files so we need to strip them | 
 | 10073 | 	# from the output so that they don't get included in the library | 
 | 10074 | 	# dependencies. | 
 | 10075 | 	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' | 
 | 10076 | 	;; | 
 | 10077 |       *) | 
 | 10078 | 	if test "$GXX" = yes; then | 
 | 10079 | 	  if test $with_gnu_ld = no; then | 
 | 10080 | 	    case "$host_cpu" in | 
 | 10081 | 	    ia64*|hppa*64*) | 
 | 10082 | 	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 10083 | 	      ;; | 
 | 10084 | 	    *) | 
 | 10085 | 	      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' | 
 | 10086 | 	      ;; | 
 | 10087 | 	    esac | 
 | 10088 | 	  fi | 
 | 10089 | 	else | 
 | 10090 | 	  # FIXME: insert proper C++ library support | 
 | 10091 | 	  ld_shlibs_CXX=no | 
 | 10092 | 	fi | 
 | 10093 | 	;; | 
 | 10094 |     esac | 
 | 10095 |     ;; | 
 | 10096 |   irix5* | irix6*) | 
 | 10097 |     case $cc_basename in | 
 | 10098 |       CC) | 
 | 10099 | 	# SGI C++ | 
 | 10100 | 	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' | 
 | 10101 |  | 
 | 10102 | 	# Archives containing C++ object files must be created using | 
 | 10103 | 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
 | 10104 | 	# necessary to make sure instantiated templates are included | 
 | 10105 | 	# in the archive. | 
 | 10106 | 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
 | 10107 | 	;; | 
 | 10108 |       *) | 
 | 10109 | 	if test "$GXX" = yes; then | 
 | 10110 | 	  if test "$with_gnu_ld" = no; then | 
 | 10111 | 	    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' | 
 | 10112 | 	  else | 
 | 10113 | 	    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' | 
 | 10114 | 	  fi | 
 | 10115 | 	fi | 
 | 10116 | 	link_all_deplibs_CXX=yes | 
 | 10117 | 	;; | 
 | 10118 |     esac | 
 | 10119 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 10120 |     hardcode_libdir_separator_CXX=: | 
 | 10121 |     ;; | 
 | 10122 |   linux*) | 
 | 10123 |     case $cc_basename in | 
 | 10124 |       KCC) | 
 | 10125 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 10126 |  | 
 | 10127 | 	# KCC will only create a shared library if the output file | 
 | 10128 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 10129 | 	# to its proper name (with version) after linking. | 
 | 10130 | 	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' | 
 | 10131 | 	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' | 
 | 10132 | 	# Commands to make compiler produce verbose output that lists | 
 | 10133 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10134 | 	# linking a shared library. | 
 | 10135 | 	# | 
 | 10136 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10137 | 	# explicitly linking system object files so we need to strip them | 
 | 10138 | 	# from the output so that they don't get included in the library | 
 | 10139 | 	# dependencies. | 
 | 10140 | 	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' | 
 | 10141 |  | 
 | 10142 | 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
 | 10143 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 10144 |  | 
 | 10145 | 	# Archives containing C++ object files must be created using | 
 | 10146 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 10147 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 10148 | 	;; | 
 | 10149 |       icpc) | 
 | 10150 | 	# Intel C++ | 
 | 10151 | 	with_gnu_ld=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10152 | 	# version 8.0 and above of icpc choke on multiply defined symbols | 
 | 10153 | 	# if we add $predep_objects and $postdep_objects, however 7.1 and | 
 | 10154 | 	# earlier do not add the objects themselves. | 
 | 10155 | 	case `$CC -V 2>&1` in | 
 | 10156 | 	*"Version 7."*) | 
 | 10157 |   	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 10158 |   	  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' | 
 | 10159 | 	  ;; | 
 | 10160 | 	*)  # Version 8.0 or newer | 
 | 10161 |   	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 10162 |   	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 10163 | 	  ;; | 
 | 10164 | 	esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10165 | 	archive_cmds_need_lc_CXX=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10166 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 10167 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 10168 | 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 10169 | 	;; | 
 | 10170 |       cxx) | 
 | 10171 | 	# Compaq C++ | 
 | 10172 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 10173 | 	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' | 
 | 10174 |  | 
 | 10175 | 	runpath_var=LD_RUN_PATH | 
 | 10176 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 10177 | 	hardcode_libdir_separator_CXX=: | 
 | 10178 |  | 
 | 10179 | 	# Commands to make compiler produce verbose output that lists | 
 | 10180 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10181 | 	# linking a shared library. | 
 | 10182 | 	# | 
 | 10183 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10184 | 	# explicitly linking system object files so we need to strip them | 
 | 10185 | 	# from the output so that they don't get included in the library | 
 | 10186 | 	# dependencies. | 
 | 10187 | 	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' | 
 | 10188 | 	;; | 
 | 10189 |     esac | 
 | 10190 |     ;; | 
 | 10191 |   lynxos*) | 
 | 10192 |     # FIXME: insert proper C++ library support | 
 | 10193 |     ld_shlibs_CXX=no | 
 | 10194 |     ;; | 
 | 10195 |   m88k*) | 
 | 10196 |     # FIXME: insert proper C++ library support | 
 | 10197 |     ld_shlibs_CXX=no | 
 | 10198 |     ;; | 
 | 10199 |   mvs*) | 
 | 10200 |     case $cc_basename in | 
 | 10201 |       cxx) | 
 | 10202 | 	# FIXME: insert proper C++ library support | 
 | 10203 | 	ld_shlibs_CXX=no | 
 | 10204 | 	;; | 
 | 10205 |       *) | 
 | 10206 | 	# FIXME: insert proper C++ library support | 
 | 10207 | 	ld_shlibs_CXX=no | 
 | 10208 | 	;; | 
 | 10209 |     esac | 
 | 10210 |     ;; | 
 | 10211 |   netbsd*) | 
 | 10212 |     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 10213 |       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
 | 10214 |       wlarc= | 
 | 10215 |       hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 10216 |       hardcode_direct_CXX=yes | 
 | 10217 |       hardcode_shlibpath_var_CXX=no | 
 | 10218 |     fi | 
 | 10219 |     # Workaround some broken pre-1.5 toolchains | 
 | 10220 |     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
 | 10221 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10222 |   openbsd2*) | 
 | 10223 |     # C++ shared libraries are fairly broken | 
 | 10224 |     ld_shlibs_CXX=no | 
 | 10225 |     ;; | 
 | 10226 |   openbsd*) | 
 | 10227 |     hardcode_direct_CXX=yes | 
 | 10228 |     hardcode_shlibpath_var_CXX=no | 
 | 10229 |     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
 | 10230 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 10231 |     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 10232 |       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
 | 10233 |       export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 10234 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 10235 |     fi | 
 | 10236 |     output_verbose_link_cmd='echo' | 
 | 10237 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10238 |   osf3*) | 
 | 10239 |     case $cc_basename in | 
 | 10240 |       KCC) | 
 | 10241 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 10242 |  | 
 | 10243 | 	# KCC will only create a shared library if the output file | 
 | 10244 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 10245 | 	# to its proper name (with version) after linking. | 
 | 10246 | 	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' | 
 | 10247 |  | 
 | 10248 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 10249 | 	hardcode_libdir_separator_CXX=: | 
 | 10250 |  | 
 | 10251 | 	# Archives containing C++ object files must be created using | 
 | 10252 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 10253 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 10254 |  | 
 | 10255 | 	;; | 
 | 10256 |       RCC) | 
 | 10257 | 	# Rational C++ 2.4.1 | 
 | 10258 | 	# FIXME: insert proper C++ library support | 
 | 10259 | 	ld_shlibs_CXX=no | 
 | 10260 | 	;; | 
 | 10261 |       cxx) | 
 | 10262 | 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 10263 | 	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' | 
 | 10264 |  | 
 | 10265 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 10266 | 	hardcode_libdir_separator_CXX=: | 
 | 10267 |  | 
 | 10268 | 	# Commands to make compiler produce verbose output that lists | 
 | 10269 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10270 | 	# linking a shared library. | 
 | 10271 | 	# | 
 | 10272 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10273 | 	# explicitly linking system object files so we need to strip them | 
 | 10274 | 	# from the output so that they don't get included in the library | 
 | 10275 | 	# dependencies. | 
 | 10276 | 	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' | 
 | 10277 | 	;; | 
 | 10278 |       *) | 
 | 10279 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 10280 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 10281 | 	  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' | 
 | 10282 |  | 
 | 10283 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 10284 | 	  hardcode_libdir_separator_CXX=: | 
 | 10285 |  | 
 | 10286 | 	  # Commands to make compiler produce verbose output that lists | 
 | 10287 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 10288 | 	  # linking a shared library. | 
 | 10289 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 10290 |  | 
 | 10291 | 	else | 
 | 10292 | 	  # FIXME: insert proper C++ library support | 
 | 10293 | 	  ld_shlibs_CXX=no | 
 | 10294 | 	fi | 
 | 10295 | 	;; | 
 | 10296 |     esac | 
 | 10297 |     ;; | 
 | 10298 |   osf4* | osf5*) | 
 | 10299 |     case $cc_basename in | 
 | 10300 |       KCC) | 
 | 10301 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 10302 |  | 
 | 10303 | 	# KCC will only create a shared library if the output file | 
 | 10304 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 10305 | 	# to its proper name (with version) after linking. | 
 | 10306 | 	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' | 
 | 10307 |  | 
 | 10308 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 10309 | 	hardcode_libdir_separator_CXX=: | 
 | 10310 |  | 
 | 10311 | 	# Archives containing C++ object files must be created using | 
 | 10312 | 	# the KAI C++ compiler. | 
 | 10313 | 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
 | 10314 | 	;; | 
 | 10315 |       RCC) | 
 | 10316 | 	# Rational C++ 2.4.1 | 
 | 10317 | 	# FIXME: insert proper C++ library support | 
 | 10318 | 	ld_shlibs_CXX=no | 
 | 10319 | 	;; | 
 | 10320 |       cxx) | 
 | 10321 | 	allow_undefined_flag_CXX=' -expect_unresolved \*' | 
 | 10322 | 	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10323 | 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
 | 10324 | 	  echo "-hidden">> $lib.exp~ | 
 | 10325 | 	  $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~ | 
 | 10326 | 	  $rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10327 |  | 
 | 10328 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 10329 | 	hardcode_libdir_separator_CXX=: | 
 | 10330 |  | 
 | 10331 | 	# Commands to make compiler produce verbose output that lists | 
 | 10332 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10333 | 	# linking a shared library. | 
 | 10334 | 	# | 
 | 10335 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10336 | 	# explicitly linking system object files so we need to strip them | 
 | 10337 | 	# from the output so that they don't get included in the library | 
 | 10338 | 	# dependencies. | 
 | 10339 | 	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' | 
 | 10340 | 	;; | 
 | 10341 |       *) | 
 | 10342 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 10343 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 10344 | 	 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' | 
 | 10345 |  | 
 | 10346 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 10347 | 	  hardcode_libdir_separator_CXX=: | 
 | 10348 |  | 
 | 10349 | 	  # Commands to make compiler produce verbose output that lists | 
 | 10350 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 10351 | 	  # linking a shared library. | 
 | 10352 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 10353 |  | 
 | 10354 | 	else | 
 | 10355 | 	  # FIXME: insert proper C++ library support | 
 | 10356 | 	  ld_shlibs_CXX=no | 
 | 10357 | 	fi | 
 | 10358 | 	;; | 
 | 10359 |     esac | 
 | 10360 |     ;; | 
 | 10361 |   psos*) | 
 | 10362 |     # FIXME: insert proper C++ library support | 
 | 10363 |     ld_shlibs_CXX=no | 
 | 10364 |     ;; | 
 | 10365 |   sco*) | 
 | 10366 |     archive_cmds_need_lc_CXX=no | 
 | 10367 |     case $cc_basename in | 
 | 10368 |       CC) | 
 | 10369 | 	# FIXME: insert proper C++ library support | 
 | 10370 | 	ld_shlibs_CXX=no | 
 | 10371 | 	;; | 
 | 10372 |       *) | 
 | 10373 | 	# FIXME: insert proper C++ library support | 
 | 10374 | 	ld_shlibs_CXX=no | 
 | 10375 | 	;; | 
 | 10376 |     esac | 
 | 10377 |     ;; | 
 | 10378 |   sunos4*) | 
 | 10379 |     case $cc_basename in | 
 | 10380 |       CC) | 
 | 10381 | 	# Sun C++ 4.x | 
 | 10382 | 	# FIXME: insert proper C++ library support | 
 | 10383 | 	ld_shlibs_CXX=no | 
 | 10384 | 	;; | 
 | 10385 |       lcc) | 
 | 10386 | 	# Lucid | 
 | 10387 | 	# FIXME: insert proper C++ library support | 
 | 10388 | 	ld_shlibs_CXX=no | 
 | 10389 | 	;; | 
 | 10390 |       *) | 
 | 10391 | 	# FIXME: insert proper C++ library support | 
 | 10392 | 	ld_shlibs_CXX=no | 
 | 10393 | 	;; | 
 | 10394 |     esac | 
 | 10395 |     ;; | 
 | 10396 |   solaris*) | 
 | 10397 |     case $cc_basename in | 
 | 10398 |       CC) | 
 | 10399 | 	# Sun C++ 4.2, 5.x and Centerline C++ | 
 | 10400 | 	no_undefined_flag_CXX=' -zdefs' | 
 | 10401 | 	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10402 | 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 10403 | 	$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] | 10404 |  | 
 | 10405 | 	hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 10406 | 	hardcode_shlibpath_var_CXX=no | 
 | 10407 | 	case $host_os in | 
 | 10408 | 	  solaris2.0-5 | solaris2.0-5.*) ;; | 
 | 10409 | 	  *) | 
 | 10410 | 	    # The C++ compiler is used as linker so we must use $wl | 
 | 10411 | 	    # flag to pass the commands to the underlying system | 
 | 10412 | 	    # linker. | 
 | 10413 | 	    # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 10414 | 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
 | 10415 | 	    ;; | 
 | 10416 | 	esac | 
 | 10417 | 	link_all_deplibs_CXX=yes | 
 | 10418 |  | 
 | 10419 | 	# Commands to make compiler produce verbose output that lists | 
 | 10420 | 	# what "hidden" libraries, object files and flags are used when | 
 | 10421 | 	# linking a shared library. | 
 | 10422 | 	# | 
 | 10423 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 10424 | 	# explicitly linking system object files so we need to strip them | 
 | 10425 | 	# from the output so that they don't get included in the library | 
 | 10426 | 	# dependencies. | 
 | 10427 | 	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' | 
 | 10428 |  | 
 | 10429 | 	# Archives containing C++ object files must be created using | 
 | 10430 | 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
 | 10431 | 	# necessary to make sure instantiated templates are included | 
 | 10432 | 	# in the archive. | 
 | 10433 | 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
 | 10434 | 	;; | 
 | 10435 |       gcx) | 
 | 10436 | 	# Green Hills C++ Compiler | 
 | 10437 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 10438 |  | 
 | 10439 | 	# The C++ compiler must be used to create the archive. | 
 | 10440 | 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
 | 10441 | 	;; | 
 | 10442 |       *) | 
 | 10443 | 	# GNU C++ compiler with Solaris linker | 
 | 10444 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 10445 | 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
 | 10446 | 	  if $CC --version | grep -v '^2\.7' > /dev/null; then | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 10447 | 	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10448 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 10449 | 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
 | 10450 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10451 | 	    # Commands to make compiler produce verbose output that lists | 
 | 10452 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 10453 | 	    # linking a shared library. | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 10454 | 	    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] | 10455 | 	  else | 
 | 10456 | 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
 | 10457 | 	    # platform. | 
 | 10458 | 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 10459 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 10460 | 		$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] | 10461 |  | 
 | 10462 | 	    # Commands to make compiler produce verbose output that lists | 
 | 10463 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 10464 | 	    # linking a shared library. | 
 | 10465 | 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
 | 10466 | 	  fi | 
 | 10467 |  | 
 | 10468 | 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
 | 10469 | 	fi | 
 | 10470 | 	;; | 
 | 10471 |     esac | 
 | 10472 |     ;; | 
 | 10473 |   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 
 | 10474 |     archive_cmds_need_lc_CXX=no | 
 | 10475 |     ;; | 
 | 10476 |   tandem*) | 
 | 10477 |     case $cc_basename in | 
 | 10478 |       NCC) | 
 | 10479 | 	# NonStop-UX NCC 3.20 | 
 | 10480 | 	# FIXME: insert proper C++ library support | 
 | 10481 | 	ld_shlibs_CXX=no | 
 | 10482 | 	;; | 
 | 10483 |       *) | 
 | 10484 | 	# FIXME: insert proper C++ library support | 
 | 10485 | 	ld_shlibs_CXX=no | 
 | 10486 | 	;; | 
 | 10487 |     esac | 
 | 10488 |     ;; | 
 | 10489 |   vxworks*) | 
 | 10490 |     # FIXME: insert proper C++ library support | 
 | 10491 |     ld_shlibs_CXX=no | 
 | 10492 |     ;; | 
 | 10493 |   *) | 
 | 10494 |     # FIXME: insert proper C++ library support | 
 | 10495 |     ld_shlibs_CXX=no | 
 | 10496 |     ;; | 
 | 10497 | esac | 
 | 10498 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 10499 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 10500 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 10501 |  | 
 | 10502 | GCC_CXX="$GXX" | 
 | 10503 | LD_CXX="$LD" | 
 | 10504 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10505 |  | 
 | 10506 | cat > conftest.$ac_ext <<EOF | 
 | 10507 | class Foo | 
 | 10508 | { | 
 | 10509 | public: | 
 | 10510 |   Foo (void) { a = 0; } | 
 | 10511 | private: | 
 | 10512 |   int a; | 
 | 10513 | }; | 
 | 10514 | EOF | 
 | 10515 |  | 
 | 10516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10517 |   (eval $ac_compile) 2>&5 | 
 | 10518 |   ac_status=$? | 
 | 10519 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10520 |   (exit $ac_status); }; then | 
 | 10521 |   # Parse the compiler output and extract the necessary | 
 | 10522 |   # objects, libraries and library flags. | 
 | 10523 |  | 
 | 10524 |   # Sentinel used to keep track of whether or not we are before | 
 | 10525 |   # the conftest object file. | 
 | 10526 |   pre_test_object_deps_done=no | 
 | 10527 |  | 
 | 10528 |   # The `*' in the case matches for architectures that use `case' in | 
 | 10529 |   # $output_verbose_cmd can trigger glob expansion during the loop | 
 | 10530 |   # eval without this substitution. | 
 | 10531 |   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 
 | 10532 |  | 
 | 10533 |   for p in `eval $output_verbose_link_cmd`; do | 
 | 10534 |     case $p in | 
 | 10535 |  | 
 | 10536 |     -L* | -R* | -l*) | 
 | 10537 |        # Some compilers place space between "-{L,R}" and the path. | 
 | 10538 |        # Remove the space. | 
 | 10539 |        if test $p = "-L" \ | 
 | 10540 | 	  || test $p = "-R"; then | 
 | 10541 | 	 prev=$p | 
 | 10542 | 	 continue | 
 | 10543 |        else | 
 | 10544 | 	 prev= | 
 | 10545 |        fi | 
 | 10546 |  | 
 | 10547 |        if test "$pre_test_object_deps_done" = no; then | 
 | 10548 | 	 case $p in | 
 | 10549 | 	 -L* | -R*) | 
 | 10550 | 	   # Internal compiler library paths should come after those | 
 | 10551 | 	   # provided the user.  The postdeps already come after the | 
 | 10552 | 	   # user supplied libs so there is no need to process them. | 
 | 10553 | 	   if test -z "$compiler_lib_search_path_CXX"; then | 
 | 10554 | 	     compiler_lib_search_path_CXX="${prev}${p}" | 
 | 10555 | 	   else | 
 | 10556 | 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
 | 10557 | 	   fi | 
 | 10558 | 	   ;; | 
 | 10559 | 	 # The "-l" case would never come before the object being | 
 | 10560 | 	 # linked, so don't bother handling this case. | 
 | 10561 | 	 esac | 
 | 10562 |        else | 
 | 10563 | 	 if test -z "$postdeps_CXX"; then | 
 | 10564 | 	   postdeps_CXX="${prev}${p}" | 
 | 10565 | 	 else | 
 | 10566 | 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
 | 10567 | 	 fi | 
 | 10568 |        fi | 
 | 10569 |        ;; | 
 | 10570 |  | 
 | 10571 |     *.$objext) | 
 | 10572 |        # This assumes that the test object file only shows up | 
 | 10573 |        # once in the compiler output. | 
 | 10574 |        if test "$p" = "conftest.$objext"; then | 
 | 10575 | 	 pre_test_object_deps_done=yes | 
 | 10576 | 	 continue | 
 | 10577 |        fi | 
 | 10578 |  | 
 | 10579 |        if test "$pre_test_object_deps_done" = no; then | 
 | 10580 | 	 if test -z "$predep_objects_CXX"; then | 
 | 10581 | 	   predep_objects_CXX="$p" | 
 | 10582 | 	 else | 
 | 10583 | 	   predep_objects_CXX="$predep_objects_CXX $p" | 
 | 10584 | 	 fi | 
 | 10585 |        else | 
 | 10586 | 	 if test -z "$postdep_objects_CXX"; then | 
 | 10587 | 	   postdep_objects_CXX="$p" | 
 | 10588 | 	 else | 
 | 10589 | 	   postdep_objects_CXX="$postdep_objects_CXX $p" | 
 | 10590 | 	 fi | 
 | 10591 |        fi | 
 | 10592 |        ;; | 
 | 10593 |  | 
 | 10594 |     *) ;; # Ignore the rest. | 
 | 10595 |  | 
 | 10596 |     esac | 
 | 10597 |   done | 
 | 10598 |  | 
 | 10599 |   # Clean up. | 
 | 10600 |   rm -f a.out a.exe | 
 | 10601 | else | 
 | 10602 |   echo "libtool.m4: error: problem compiling CXX test program" | 
 | 10603 | fi | 
 | 10604 |  | 
 | 10605 | $rm -f confest.$objext | 
 | 10606 |  | 
 | 10607 | case " $postdeps_CXX " in | 
 | 10608 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
 | 10609 | esac | 
 | 10610 |  | 
 | 10611 | lt_prog_compiler_wl_CXX= | 
 | 10612 | lt_prog_compiler_pic_CXX= | 
 | 10613 | lt_prog_compiler_static_CXX= | 
 | 10614 |  | 
 | 10615 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 10616 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 10617 |  | 
 | 10618 |   # C++ specific cases for pic, static, wl, etc. | 
 | 10619 |   if test "$GXX" = yes; then | 
 | 10620 |     lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10621 |     lt_prog_compiler_static_CXX='-static' | 
 | 10622 |  | 
 | 10623 |     case $host_os in | 
 | 10624 |     aix*) | 
 | 10625 |       # All AIX code is PIC. | 
 | 10626 |       if test "$host_cpu" = ia64; then | 
 | 10627 | 	# AIX 5 now supports IA64 processor | 
 | 10628 | 	lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10629 |       fi | 
 | 10630 |       ;; | 
 | 10631 |     amigaos*) | 
 | 10632 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 10633 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 10634 |       # like `-m68040'. | 
 | 10635 |       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
 | 10636 |       ;; | 
 | 10637 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 10638 |       # PIC is the default for these OSes. | 
 | 10639 |       ;; | 
 | 10640 |     mingw* | os2* | pw32*) | 
 | 10641 |       # This hack is so that the source file can tell whether it is being | 
 | 10642 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 10643 |       lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
 | 10644 |       ;; | 
 | 10645 |     darwin* | rhapsody*) | 
 | 10646 |       # PIC is the default on this platform | 
 | 10647 |       # Common symbols not allowed in MH_DYLIB files | 
 | 10648 |       lt_prog_compiler_pic_CXX='-fno-common' | 
 | 10649 |       ;; | 
 | 10650 |     *djgpp*) | 
 | 10651 |       # DJGPP does not support shared libraries at all | 
 | 10652 |       lt_prog_compiler_pic_CXX= | 
 | 10653 |       ;; | 
 | 10654 |     sysv4*MP*) | 
 | 10655 |       if test -d /usr/nec; then | 
 | 10656 | 	lt_prog_compiler_pic_CXX=-Kconform_pic | 
 | 10657 |       fi | 
 | 10658 |       ;; | 
 | 10659 |     hpux*) | 
 | 10660 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 10661 |       # not for PA HP-UX. | 
 | 10662 |       case "$host_cpu" in | 
 | 10663 |       hppa*64*|ia64*) | 
 | 10664 | 	;; | 
 | 10665 |       *) | 
 | 10666 | 	lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10667 | 	;; | 
 | 10668 |       esac | 
 | 10669 |       ;; | 
 | 10670 |     *) | 
 | 10671 |       lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10672 |       ;; | 
 | 10673 |     esac | 
 | 10674 |   else | 
 | 10675 |     case $host_os in | 
 | 10676 |       aix4* | aix5*) | 
 | 10677 | 	# All AIX code is PIC. | 
 | 10678 | 	if test "$host_cpu" = ia64; then | 
 | 10679 | 	  # AIX 5 now supports IA64 processor | 
 | 10680 | 	  lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10681 | 	else | 
 | 10682 | 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
 | 10683 | 	fi | 
 | 10684 | 	;; | 
 | 10685 |       chorus*) | 
 | 10686 | 	case $cc_basename in | 
 | 10687 | 	cxch68) | 
 | 10688 | 	  # Green Hills C++ Compiler | 
 | 10689 | 	  # _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" | 
 | 10690 | 	  ;; | 
 | 10691 | 	esac | 
 | 10692 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10693 |        darwin*) | 
 | 10694 |          # PIC is the default on this platform | 
 | 10695 |          # Common symbols not allowed in MH_DYLIB files | 
 | 10696 |          case "$cc_basename" in | 
 | 10697 |            xlc*) | 
 | 10698 |            lt_prog_compiler_pic_CXX='-qnocommon' | 
 | 10699 |            lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10700 |            ;; | 
 | 10701 |          esac | 
 | 10702 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10703 |       dgux*) | 
 | 10704 | 	case $cc_basename in | 
 | 10705 | 	  ec++) | 
 | 10706 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10707 | 	    ;; | 
 | 10708 | 	  ghcx) | 
 | 10709 | 	    # Green Hills C++ Compiler | 
 | 10710 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10711 | 	    ;; | 
 | 10712 | 	  *) | 
 | 10713 | 	    ;; | 
 | 10714 | 	esac | 
 | 10715 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10716 |       freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10717 | 	# FreeBSD uses GNU C++ | 
 | 10718 | 	;; | 
 | 10719 |       hpux9* | hpux10* | hpux11*) | 
 | 10720 | 	case $cc_basename in | 
 | 10721 | 	  CC) | 
 | 10722 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10723 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 10724 | 	    if test "$host_cpu" != ia64; then | 
 | 10725 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 10726 | 	    fi | 
 | 10727 | 	    ;; | 
 | 10728 | 	  aCC) | 
 | 10729 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10730 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 10731 | 	    case "$host_cpu" in | 
 | 10732 | 	    hppa*64*|ia64*) | 
 | 10733 | 	      # +Z the default | 
 | 10734 | 	      ;; | 
 | 10735 | 	    *) | 
 | 10736 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 10737 | 	      ;; | 
 | 10738 | 	    esac | 
 | 10739 | 	    ;; | 
 | 10740 | 	  *) | 
 | 10741 | 	    ;; | 
 | 10742 | 	esac | 
 | 10743 | 	;; | 
 | 10744 |       irix5* | irix6* | nonstopux*) | 
 | 10745 | 	case $cc_basename in | 
 | 10746 | 	  CC) | 
 | 10747 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10748 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10749 | 	    # CC pic flag -KPIC is the default. | 
 | 10750 | 	    ;; | 
 | 10751 | 	  *) | 
 | 10752 | 	    ;; | 
 | 10753 | 	esac | 
 | 10754 | 	;; | 
 | 10755 |       linux*) | 
 | 10756 | 	case $cc_basename in | 
 | 10757 | 	  KCC) | 
 | 10758 | 	    # KAI C++ Compiler | 
 | 10759 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 10760 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10761 | 	    ;; | 
 | 10762 | 	  icpc) | 
 | 10763 | 	    # Intel C++ | 
 | 10764 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10765 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10766 | 	    lt_prog_compiler_static_CXX='-static' | 
 | 10767 | 	    ;; | 
 | 10768 | 	  cxx) | 
 | 10769 | 	    # Compaq C++ | 
 | 10770 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 10771 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 10772 | 	    lt_prog_compiler_pic_CXX= | 
 | 10773 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10774 | 	    ;; | 
 | 10775 | 	  *) | 
 | 10776 | 	    ;; | 
 | 10777 | 	esac | 
 | 10778 | 	;; | 
 | 10779 |       lynxos*) | 
 | 10780 | 	;; | 
 | 10781 |       m88k*) | 
 | 10782 | 	;; | 
 | 10783 |       mvs*) | 
 | 10784 | 	case $cc_basename in | 
 | 10785 | 	  cxx) | 
 | 10786 | 	    lt_prog_compiler_pic_CXX='-W c,exportall' | 
 | 10787 | 	    ;; | 
 | 10788 | 	  *) | 
 | 10789 | 	    ;; | 
 | 10790 | 	esac | 
 | 10791 | 	;; | 
 | 10792 |       netbsd*) | 
 | 10793 | 	;; | 
 | 10794 |       osf3* | osf4* | osf5*) | 
 | 10795 | 	case $cc_basename in | 
 | 10796 | 	  KCC) | 
 | 10797 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 10798 | 	    ;; | 
 | 10799 | 	  RCC) | 
 | 10800 | 	    # Rational C++ 2.4.1 | 
 | 10801 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10802 | 	    ;; | 
 | 10803 | 	  cxx) | 
 | 10804 | 	    # Digital/Compaq C++ | 
 | 10805 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10806 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 10807 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 10808 | 	    lt_prog_compiler_pic_CXX= | 
 | 10809 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10810 | 	    ;; | 
 | 10811 | 	  *) | 
 | 10812 | 	    ;; | 
 | 10813 | 	esac | 
 | 10814 | 	;; | 
 | 10815 |       psos*) | 
 | 10816 | 	;; | 
 | 10817 |       sco*) | 
 | 10818 | 	case $cc_basename in | 
 | 10819 | 	  CC) | 
 | 10820 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10821 | 	    ;; | 
 | 10822 | 	  *) | 
 | 10823 | 	    ;; | 
 | 10824 | 	esac | 
 | 10825 | 	;; | 
 | 10826 |       solaris*) | 
 | 10827 | 	case $cc_basename in | 
 | 10828 | 	  CC) | 
 | 10829 | 	    # Sun C++ 4.2, 5.x and Centerline C++ | 
 | 10830 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10831 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10832 | 	    lt_prog_compiler_wl_CXX='-Qoption ld ' | 
 | 10833 | 	    ;; | 
 | 10834 | 	  gcx) | 
 | 10835 | 	    # Green Hills C++ Compiler | 
 | 10836 | 	    lt_prog_compiler_pic_CXX='-PIC' | 
 | 10837 | 	    ;; | 
 | 10838 | 	  *) | 
 | 10839 | 	    ;; | 
 | 10840 | 	esac | 
 | 10841 | 	;; | 
 | 10842 |       sunos4*) | 
 | 10843 | 	case $cc_basename in | 
 | 10844 | 	  CC) | 
 | 10845 | 	    # Sun C++ 4.x | 
 | 10846 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10847 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10848 | 	    ;; | 
 | 10849 | 	  lcc) | 
 | 10850 | 	    # Lucid | 
 | 10851 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10852 | 	    ;; | 
 | 10853 | 	  *) | 
 | 10854 | 	    ;; | 
 | 10855 | 	esac | 
 | 10856 | 	;; | 
 | 10857 |       tandem*) | 
 | 10858 | 	case $cc_basename in | 
 | 10859 | 	  NCC) | 
 | 10860 | 	    # NonStop-UX NCC 3.20 | 
 | 10861 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10862 | 	    ;; | 
 | 10863 | 	  *) | 
 | 10864 | 	    ;; | 
 | 10865 | 	esac | 
 | 10866 | 	;; | 
 | 10867 |       unixware*) | 
 | 10868 | 	;; | 
 | 10869 |       vxworks*) | 
 | 10870 | 	;; | 
 | 10871 |       *) | 
 | 10872 | 	lt_prog_compiler_can_build_shared_CXX=no | 
 | 10873 | 	;; | 
 | 10874 |     esac | 
 | 10875 |   fi | 
 | 10876 |  | 
 | 10877 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
 | 10878 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 
 | 10879 |  | 
 | 10880 | # | 
 | 10881 | # Check to make sure the PIC flag actually works. | 
 | 10882 | # | 
 | 10883 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10884 |  | 
 | 10885 | 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] | 10886 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 
 | 10887 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
 | 10888 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10889 | else | 
 | 10890 |   lt_prog_compiler_pic_works_CXX=no | 
 | 10891 |   ac_outfile=conftest.$ac_objext | 
 | 10892 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 10893 |    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 10894 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 10895 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 10896 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 10897 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 10898 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 10899 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 10900 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 10901 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 10902 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 10903 |    (eval echo "\"\$as_me:10903: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10904 |    (eval "$lt_compile" 2>conftest.err) | 
 | 10905 |    ac_status=$? | 
 | 10906 |    cat conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 10907 |    echo "$as_me:10907: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10908 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 10909 |      # The compiler can only warn and ignore the option if not recognized | 
 | 10910 |      # So say no if there are warnings | 
 | 10911 |      if test ! -s conftest.err; then | 
 | 10912 |        lt_prog_compiler_pic_works_CXX=yes | 
 | 10913 |      fi | 
 | 10914 |    fi | 
 | 10915 |    $rm conftest* | 
 | 10916 |  | 
 | 10917 | fi | 
 | 10918 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
 | 10919 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 
 | 10920 |  | 
 | 10921 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
 | 10922 |     case $lt_prog_compiler_pic_CXX in | 
 | 10923 |      "" | " "*) ;; | 
 | 10924 |      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
 | 10925 |      esac | 
 | 10926 | else | 
 | 10927 |     lt_prog_compiler_pic_CXX= | 
 | 10928 |      lt_prog_compiler_can_build_shared_CXX=no | 
 | 10929 | fi | 
 | 10930 |  | 
 | 10931 | fi | 
 | 10932 | case "$host_os" in | 
 | 10933 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 10934 |   *djgpp*) | 
 | 10935 |     lt_prog_compiler_pic_CXX= | 
 | 10936 |     ;; | 
 | 10937 |   *) | 
 | 10938 |     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 10939 |     ;; | 
 | 10940 | esac | 
 | 10941 |  | 
 | 10942 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 10943 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 10944 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
 | 10945 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10946 | else | 
 | 10947 |   lt_cv_prog_compiler_c_o_CXX=no | 
 | 10948 |    $rm -r conftest 2>/dev/null | 
 | 10949 |    mkdir conftest | 
 | 10950 |    cd conftest | 
 | 10951 |    mkdir out | 
 | 10952 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 10953 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10954 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 10955 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 10956 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 10957 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 10958 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 10959 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 10960 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 10961 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 10962 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 10963 |    (eval echo "\"\$as_me:10963: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10964 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 10965 |    ac_status=$? | 
 | 10966 |    cat out/conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 10967 |    echo "$as_me:10967: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10968 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 10969 |    then | 
 | 10970 |      # The compiler can only warn and ignore the option if not recognized | 
 | 10971 |      # So say no if there are warnings | 
 | 10972 |      if test ! -s out/conftest.err; then | 
 | 10973 |        lt_cv_prog_compiler_c_o_CXX=yes | 
 | 10974 |      fi | 
 | 10975 |    fi | 
 | 10976 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10977 |    $rm conftest* | 
 | 10978 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 10979 |    # template instantiation | 
 | 10980 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 10981 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10982 |    cd .. | 
 | 10983 |    rmdir conftest | 
 | 10984 |    $rm conftest* | 
 | 10985 |  | 
 | 10986 | fi | 
 | 10987 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
 | 10988 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 
 | 10989 |  | 
 | 10990 |  | 
 | 10991 | hard_links="nottested" | 
 | 10992 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
 | 10993 |   # do not overwrite the value of need_locks provided by the user | 
 | 10994 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 10995 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 10996 |   hard_links=yes | 
 | 10997 |   $rm conftest* | 
 | 10998 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 10999 |   touch conftest.a | 
 | 11000 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 11001 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 11002 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 11003 | echo "${ECHO_T}$hard_links" >&6 | 
 | 11004 |   if test "$hard_links" = no; then | 
 | 11005 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 11006 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 11007 |     need_locks=warn | 
 | 11008 |   fi | 
 | 11009 | else | 
 | 11010 |   need_locks=no | 
 | 11011 | fi | 
 | 11012 |  | 
 | 11013 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 11014 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 11015 |  | 
 | 11016 |   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 11017 |   case $host_os in | 
 | 11018 |   aix4* | aix5*) | 
 | 11019 |     # If we're using GNU nm, then we don't want the "-C" option. | 
 | 11020 |     # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 11021 |     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 11022 |       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' | 
 | 11023 |     else | 
 | 11024 |       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' | 
 | 11025 |     fi | 
 | 11026 |     ;; | 
 | 11027 |   pw32*) | 
 | 11028 |     export_symbols_cmds_CXX="$ltdll_cmds" | 
 | 11029 |   ;; | 
 | 11030 |   cygwin* | mingw*) | 
 | 11031 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 11032 |   ;; | 
 | 11033 |   *) | 
 | 11034 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 11035 |   ;; | 
 | 11036 |   esac | 
 | 11037 |  | 
 | 11038 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 11039 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 11040 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 11041 |  | 
 | 11042 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 11043 | if test "$GCC" = yes; then | 
 | 11044 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 11045 | fi | 
 | 11046 |  | 
 | 11047 | # | 
 | 11048 | # Do we need to explicitly link libc? | 
 | 11049 | # | 
 | 11050 | case "x$archive_cmds_need_lc_CXX" in | 
 | 11051 | x|xyes) | 
 | 11052 |   # Assume -lc should be added | 
 | 11053 |   archive_cmds_need_lc_CXX=yes | 
 | 11054 |  | 
 | 11055 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 11056 |     case $archive_cmds_CXX in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11057 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11058 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 11059 |       ;; | 
 | 11060 |     '$CC '*) | 
 | 11061 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 11062 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 11063 |       # to ld, don't add -lc before -lgcc. | 
 | 11064 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 11065 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 11066 |       $rm conftest* | 
 | 11067 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 11068 |  | 
 | 11069 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 11070 |   (eval $ac_compile) 2>&5 | 
 | 11071 |   ac_status=$? | 
 | 11072 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11073 |   (exit $ac_status); } 2>conftest.err; then | 
 | 11074 |         soname=conftest | 
 | 11075 |         lib=conftest | 
 | 11076 |         libobjs=conftest.$ac_objext | 
 | 11077 |         deplibs= | 
 | 11078 |         wl=$lt_prog_compiler_wl_CXX | 
 | 11079 |         compiler_flags=-v | 
 | 11080 |         linker_flags=-v | 
 | 11081 |         verstring= | 
 | 11082 |         output_objdir=. | 
 | 11083 |         libname=conftest | 
 | 11084 |         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
 | 11085 |         allow_undefined_flag_CXX= | 
 | 11086 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 11087 |   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 11088 |   ac_status=$? | 
 | 11089 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11090 |   (exit $ac_status); } | 
 | 11091 |         then | 
 | 11092 | 	  archive_cmds_need_lc_CXX=no | 
 | 11093 |         else | 
 | 11094 | 	  archive_cmds_need_lc_CXX=yes | 
 | 11095 |         fi | 
 | 11096 |         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
 | 11097 |       else | 
 | 11098 |         cat conftest.err 1>&5 | 
 | 11099 |       fi | 
 | 11100 |       $rm conftest* | 
 | 11101 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
 | 11102 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 
 | 11103 |       ;; | 
 | 11104 |     esac | 
 | 11105 |   fi | 
 | 11106 |   ;; | 
 | 11107 | esac | 
 | 11108 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11109 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 11110 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 11111 | library_names_spec= | 
 | 11112 | libname_spec='lib$name' | 
 | 11113 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11114 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11115 | postinstall_cmds= | 
 | 11116 | postuninstall_cmds= | 
 | 11117 | finish_cmds= | 
 | 11118 | finish_eval= | 
 | 11119 | shlibpath_var= | 
 | 11120 | shlibpath_overrides_runpath=unknown | 
 | 11121 | version_type=none | 
 | 11122 | dynamic_linker="$host_os ld.so" | 
 | 11123 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 11124 | if test "$GCC" = yes; then | 
 | 11125 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 11126 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 11127 |     # if the path contains ";" then we assume it to be the separator | 
 | 11128 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 11129 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 11130 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 11131 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 11132 |   else | 
 | 11133 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 11134 |   fi | 
 | 11135 | else | 
 | 11136 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 11137 | fi | 
 | 11138 | need_lib_prefix=unknown | 
 | 11139 | hardcode_into_libs=no | 
 | 11140 |  | 
 | 11141 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 11142 | # flags to be left without arguments | 
 | 11143 | need_version=unknown | 
 | 11144 |  | 
 | 11145 | case $host_os in | 
 | 11146 | aix3*) | 
 | 11147 |   version_type=linux | 
 | 11148 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 11149 |   shlibpath_var=LIBPATH | 
 | 11150 |  | 
 | 11151 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 11152 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11153 |   ;; | 
 | 11154 |  | 
 | 11155 | aix4* | aix5*) | 
 | 11156 |   version_type=linux | 
 | 11157 |   need_lib_prefix=no | 
 | 11158 |   need_version=no | 
 | 11159 |   hardcode_into_libs=yes | 
 | 11160 |   if test "$host_cpu" = ia64; then | 
 | 11161 |     # AIX 5 supports IA64 | 
 | 11162 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 11163 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 11164 |   else | 
 | 11165 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 11166 |     # for dependence libraries.  The import file would start with | 
 | 11167 |     # the line `#! .'.  This would cause the generated library to | 
 | 11168 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 11169 |     # development snapshots of GCC prior to 3.0. | 
 | 11170 |     case $host_os in | 
 | 11171 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 11172 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 11173 | 	   echo ' yes ' | 
 | 11174 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 11175 | 	: | 
 | 11176 |       else | 
 | 11177 | 	can_build_shared=no | 
 | 11178 |       fi | 
 | 11179 |       ;; | 
 | 11180 |     esac | 
 | 11181 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 11182 |     # soname into executable. Probably we can add versioning support to | 
 | 11183 |     # collect2, so additional links can be useful in future. | 
 | 11184 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 11185 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 11186 |       # instead of lib<name>.a to let people know that these are not | 
 | 11187 |       # typical AIX shared libraries. | 
 | 11188 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11189 |     else | 
 | 11190 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 11191 |       # and later when we are not doing run time linking. | 
 | 11192 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 11193 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11194 |     fi | 
 | 11195 |     shlibpath_var=LIBPATH | 
 | 11196 |   fi | 
 | 11197 |   ;; | 
 | 11198 |  | 
 | 11199 | amigaos*) | 
 | 11200 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 11201 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11202 |   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] | 11203 |   ;; | 
 | 11204 |  | 
 | 11205 | beos*) | 
 | 11206 |   library_names_spec='${libname}${shared_ext}' | 
 | 11207 |   dynamic_linker="$host_os ld.so" | 
 | 11208 |   shlibpath_var=LIBRARY_PATH | 
 | 11209 |   ;; | 
 | 11210 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11211 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11212 |   version_type=linux | 
 | 11213 |   need_version=no | 
 | 11214 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11215 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11216 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 11217 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11218 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 11219 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 11220 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 11221 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 11222 |   # libtool to hard-code these into programs | 
 | 11223 |   ;; | 
 | 11224 |  | 
 | 11225 | cygwin* | mingw* | pw32*) | 
 | 11226 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11227 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11228 |   need_version=no | 
 | 11229 |   need_lib_prefix=no | 
 | 11230 |  | 
 | 11231 |   case $GCC,$host_os in | 
 | 11232 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 11233 |     library_names_spec='$libname.dll.a' | 
 | 11234 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11235 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 11236 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 11237 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 11238 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11239 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11240 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 11241 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11242 |        $rm \$dlpath' | 
 | 11243 |     shlibpath_overrides_runpath=yes | 
 | 11244 |  | 
 | 11245 |     case $host_os in | 
 | 11246 |     cygwin*) | 
 | 11247 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 11248 |       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] | 11249 |       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] | 11250 |       ;; | 
 | 11251 |     mingw*) | 
 | 11252 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 11253 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 11254 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 11255 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 11256 |         # It is most probably a Windows format PATH printed by | 
 | 11257 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 11258 |         # path with ; separators, and with drive letters. We can handle the | 
 | 11259 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 11260 |         # especially as we might pass files found there to a mingw objdump, | 
 | 11261 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 11262 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 11263 |       else | 
 | 11264 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 11265 |       fi | 
 | 11266 |       ;; | 
 | 11267 |     pw32*) | 
 | 11268 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 11269 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 11270 |       ;; | 
 | 11271 |     esac | 
 | 11272 |     ;; | 
 | 11273 |  | 
 | 11274 |   *) | 
 | 11275 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 11276 |     ;; | 
 | 11277 |   esac | 
 | 11278 |   dynamic_linker='Win32 ld.exe' | 
 | 11279 |   # FIXME: first we should search . and the directory the executable is in | 
 | 11280 |   shlibpath_var=PATH | 
 | 11281 |   ;; | 
 | 11282 |  | 
 | 11283 | darwin* | rhapsody*) | 
 | 11284 |   dynamic_linker="$host_os dyld" | 
 | 11285 |   version_type=darwin | 
 | 11286 |   need_lib_prefix=no | 
 | 11287 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11288 |   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] | 11289 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 11290 |   shlibpath_overrides_runpath=yes | 
 | 11291 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11292 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11293 |   # 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] | 11294 |   if test "$GCC" = yes; then | 
 | 11295 |     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"` | 
 | 11296 |   else | 
 | 11297 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11298 |   fi | 
 | 11299 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 11300 |   ;; | 
 | 11301 |  | 
 | 11302 | dgux*) | 
 | 11303 |   version_type=linux | 
 | 11304 |   need_lib_prefix=no | 
 | 11305 |   need_version=no | 
 | 11306 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 11307 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11308 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11309 |   ;; | 
 | 11310 |  | 
 | 11311 | freebsd1*) | 
 | 11312 |   dynamic_linker=no | 
 | 11313 |   ;; | 
 | 11314 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11315 | kfreebsd*-gnu) | 
 | 11316 |   version_type=linux | 
 | 11317 |   need_lib_prefix=no | 
 | 11318 |   need_version=no | 
 | 11319 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 11320 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11321 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11322 |   shlibpath_overrides_runpath=no | 
 | 11323 |   hardcode_into_libs=yes | 
 | 11324 |   dynamic_linker='GNU ld.so' | 
 | 11325 |   ;; | 
 | 11326 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11327 | freebsd*) | 
 | 11328 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 11329 |   version_type=freebsd-$objformat | 
 | 11330 |   case $version_type in | 
 | 11331 |     freebsd-elf*) | 
 | 11332 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 11333 |       need_version=no | 
 | 11334 |       need_lib_prefix=no | 
 | 11335 |       ;; | 
 | 11336 |     freebsd-*) | 
 | 11337 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 11338 |       need_version=yes | 
 | 11339 |       ;; | 
 | 11340 |   esac | 
 | 11341 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11342 |   case $host_os in | 
 | 11343 |   freebsd2*) | 
 | 11344 |     shlibpath_overrides_runpath=yes | 
 | 11345 |     ;; | 
 | 11346 |   freebsd3.01* | freebsdelf3.01*) | 
 | 11347 |     shlibpath_overrides_runpath=yes | 
 | 11348 |     hardcode_into_libs=yes | 
 | 11349 |     ;; | 
 | 11350 |   *) # from 3.2 on | 
 | 11351 |     shlibpath_overrides_runpath=no | 
 | 11352 |     hardcode_into_libs=yes | 
 | 11353 |     ;; | 
 | 11354 |   esac | 
 | 11355 |   ;; | 
 | 11356 |  | 
 | 11357 | gnu*) | 
 | 11358 |   version_type=linux | 
 | 11359 |   need_lib_prefix=no | 
 | 11360 |   need_version=no | 
 | 11361 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 11362 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11363 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11364 |   hardcode_into_libs=yes | 
 | 11365 |   ;; | 
 | 11366 |  | 
 | 11367 | hpux9* | hpux10* | hpux11*) | 
 | 11368 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 11369 |   # link against other versions. | 
 | 11370 |   version_type=sunos | 
 | 11371 |   need_lib_prefix=no | 
 | 11372 |   need_version=no | 
 | 11373 |   case "$host_cpu" in | 
 | 11374 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11375 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11376 |     hardcode_into_libs=yes | 
 | 11377 |     dynamic_linker="$host_os dld.so" | 
 | 11378 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 11379 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 11380 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11381 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11382 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 11383 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 11384 |     else | 
 | 11385 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 11386 |     fi | 
 | 11387 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 11388 |     ;; | 
 | 11389 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11390 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11391 |      hardcode_into_libs=yes | 
 | 11392 |      dynamic_linker="$host_os dld.sl" | 
 | 11393 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 11394 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 11395 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11396 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11397 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 11398 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 11399 |      ;; | 
 | 11400 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11401 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11402 |     dynamic_linker="$host_os dld.sl" | 
 | 11403 |     shlibpath_var=SHLIB_PATH | 
 | 11404 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 11405 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11406 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11407 |     ;; | 
 | 11408 |   esac | 
 | 11409 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 11410 |   postinstall_cmds='chmod 555 $lib' | 
 | 11411 |   ;; | 
 | 11412 |  | 
 | 11413 | irix5* | irix6* | nonstopux*) | 
 | 11414 |   case $host_os in | 
 | 11415 |     nonstopux*) version_type=nonstopux ;; | 
 | 11416 |     *) | 
 | 11417 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 11418 | 		version_type=linux | 
 | 11419 | 	else | 
 | 11420 | 		version_type=irix | 
 | 11421 | 	fi ;; | 
 | 11422 |   esac | 
 | 11423 |   need_lib_prefix=no | 
 | 11424 |   need_version=no | 
 | 11425 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11426 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 11427 |   case $host_os in | 
 | 11428 |   irix5* | nonstopux*) | 
 | 11429 |     libsuff= shlibsuff= | 
 | 11430 |     ;; | 
 | 11431 |   *) | 
 | 11432 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 11433 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 11434 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 11435 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 11436 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 11437 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 11438 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 11439 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 11440 |     esac | 
 | 11441 |     ;; | 
 | 11442 |   esac | 
 | 11443 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 11444 |   shlibpath_overrides_runpath=no | 
 | 11445 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 11446 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 11447 |   hardcode_into_libs=yes | 
 | 11448 |   ;; | 
 | 11449 |  | 
 | 11450 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 11451 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 11452 |   dynamic_linker=no | 
 | 11453 |   ;; | 
 | 11454 |  | 
 | 11455 | # This must be Linux ELF. | 
 | 11456 | linux*) | 
 | 11457 |   version_type=linux | 
 | 11458 |   need_lib_prefix=no | 
 | 11459 |   need_version=no | 
 | 11460 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11461 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11462 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 11463 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11464 |   shlibpath_overrides_runpath=no | 
 | 11465 |   # This implies no fast_install, which is unacceptable. | 
 | 11466 |   # Some rework will be needed to allow for fast_install | 
 | 11467 |   # before this can be enabled. | 
 | 11468 |   hardcode_into_libs=yes | 
 | 11469 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11470 |   # Append ld.so.conf contents to the search path | 
 | 11471 |   if test -f /etc/ld.so.conf; then | 
 | 11472 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 11473 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 11474 |   fi | 
 | 11475 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11476 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 11477 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 11478 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 11479 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 11480 |   # people can always --disable-shared, the test was removed, and we | 
 | 11481 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 11482 |   dynamic_linker='GNU/Linux ld.so' | 
 | 11483 |   ;; | 
 | 11484 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11485 | knetbsd*-gnu) | 
 | 11486 |   version_type=linux | 
 | 11487 |   need_lib_prefix=no | 
 | 11488 |   need_version=no | 
 | 11489 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 11490 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11491 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11492 |   shlibpath_overrides_runpath=no | 
 | 11493 |   hardcode_into_libs=yes | 
 | 11494 |   dynamic_linker='GNU ld.so' | 
 | 11495 |   ;; | 
 | 11496 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11497 | netbsd*) | 
 | 11498 |   version_type=sunos | 
 | 11499 |   need_lib_prefix=no | 
 | 11500 |   need_version=no | 
 | 11501 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 11502 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11503 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 11504 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 11505 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11506 |     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] | 11507 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11508 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 11509 |   fi | 
 | 11510 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11511 |   shlibpath_overrides_runpath=yes | 
 | 11512 |   hardcode_into_libs=yes | 
 | 11513 |   ;; | 
 | 11514 |  | 
 | 11515 | newsos6) | 
 | 11516 |   version_type=linux | 
 | 11517 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11518 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11519 |   shlibpath_overrides_runpath=yes | 
 | 11520 |   ;; | 
 | 11521 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11522 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11523 |   version_type=linux | 
 | 11524 |   need_lib_prefix=no | 
 | 11525 |   need_version=no | 
 | 11526 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11527 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11528 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11529 |   shlibpath_overrides_runpath=yes | 
 | 11530 |   ;; | 
 | 11531 |  | 
 | 11532 | openbsd*) | 
 | 11533 |   version_type=sunos | 
 | 11534 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 11535 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11536 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11537 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 11538 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11539 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 11540 |     case $host_os in | 
 | 11541 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 11542 | 	shlibpath_overrides_runpath=no | 
 | 11543 | 	;; | 
 | 11544 |       *) | 
 | 11545 | 	shlibpath_overrides_runpath=yes | 
 | 11546 | 	;; | 
 | 11547 |       esac | 
 | 11548 |   else | 
 | 11549 |     shlibpath_overrides_runpath=yes | 
 | 11550 |   fi | 
 | 11551 |   ;; | 
 | 11552 |  | 
 | 11553 | os2*) | 
 | 11554 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11555 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11556 |   need_lib_prefix=no | 
 | 11557 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 11558 |   dynamic_linker='OS/2 ld.exe' | 
 | 11559 |   shlibpath_var=LIBPATH | 
 | 11560 |   ;; | 
 | 11561 |  | 
 | 11562 | osf3* | osf4* | osf5*) | 
 | 11563 |   version_type=osf | 
 | 11564 |   need_lib_prefix=no | 
 | 11565 |   need_version=no | 
 | 11566 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11567 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11568 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11569 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 11570 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 11571 |   ;; | 
 | 11572 |  | 
 | 11573 | sco3.2v5*) | 
 | 11574 |   version_type=osf | 
 | 11575 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11576 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11577 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11578 |   ;; | 
 | 11579 |  | 
 | 11580 | solaris*) | 
 | 11581 |   version_type=linux | 
 | 11582 |   need_lib_prefix=no | 
 | 11583 |   need_version=no | 
 | 11584 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11585 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11586 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11587 |   shlibpath_overrides_runpath=yes | 
 | 11588 |   hardcode_into_libs=yes | 
 | 11589 |   # ldd complains unless libraries are executable | 
 | 11590 |   postinstall_cmds='chmod +x $lib' | 
 | 11591 |   ;; | 
 | 11592 |  | 
 | 11593 | sunos4*) | 
 | 11594 |   version_type=sunos | 
 | 11595 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11596 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 11597 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11598 |   shlibpath_overrides_runpath=yes | 
 | 11599 |   if test "$with_gnu_ld" = yes; then | 
 | 11600 |     need_lib_prefix=no | 
 | 11601 |   fi | 
 | 11602 |   need_version=yes | 
 | 11603 |   ;; | 
 | 11604 |  | 
 | 11605 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 11606 |   version_type=linux | 
 | 11607 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11608 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11609 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11610 |   case $host_vendor in | 
 | 11611 |     sni) | 
 | 11612 |       shlibpath_overrides_runpath=no | 
 | 11613 |       need_lib_prefix=no | 
 | 11614 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 11615 |       runpath_var=LD_RUN_PATH | 
 | 11616 |       ;; | 
 | 11617 |     siemens) | 
 | 11618 |       need_lib_prefix=no | 
 | 11619 |       ;; | 
 | 11620 |     motorola) | 
 | 11621 |       need_lib_prefix=no | 
 | 11622 |       need_version=no | 
 | 11623 |       shlibpath_overrides_runpath=no | 
 | 11624 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 11625 |       ;; | 
 | 11626 |   esac | 
 | 11627 |   ;; | 
 | 11628 |  | 
 | 11629 | sysv4*MP*) | 
 | 11630 |   if test -d /usr/nec ;then | 
 | 11631 |     version_type=linux | 
 | 11632 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 11633 |     soname_spec='$libname${shared_ext}.$major' | 
 | 11634 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 11635 |   fi | 
 | 11636 |   ;; | 
 | 11637 |  | 
 | 11638 | uts4*) | 
 | 11639 |   version_type=linux | 
 | 11640 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11641 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11642 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11643 |   ;; | 
 | 11644 |  | 
 | 11645 | *) | 
 | 11646 |   dynamic_linker=no | 
 | 11647 |   ;; | 
 | 11648 | esac | 
 | 11649 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 11650 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 11651 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 11652 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11653 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 11654 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 11655 | hardcode_action_CXX= | 
 | 11656 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
 | 11657 |    test -n "$runpath_var_CXX" || \ | 
 | 11658 |    test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
 | 11659 |  | 
 | 11660 |   # We can hardcode non-existant directories. | 
 | 11661 |   if test "$hardcode_direct_CXX" != no && | 
 | 11662 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 11663 |      # have to relink, otherwise we might link with an installed library | 
 | 11664 |      # when we should be linking with a yet-to-be-installed one | 
 | 11665 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
 | 11666 |      test "$hardcode_minus_L_CXX" != no; then | 
 | 11667 |     # Linking always hardcodes the temporary library directory. | 
 | 11668 |     hardcode_action_CXX=relink | 
 | 11669 |   else | 
 | 11670 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 11671 |     hardcode_action_CXX=immediate | 
 | 11672 |   fi | 
 | 11673 | else | 
 | 11674 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 11675 |   # directories. | 
 | 11676 |   hardcode_action_CXX=unsupported | 
 | 11677 | fi | 
 | 11678 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
 | 11679 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 
 | 11680 |  | 
 | 11681 | if test "$hardcode_action_CXX" = relink; then | 
 | 11682 |   # Fast installation is not supported | 
 | 11683 |   enable_fast_install=no | 
 | 11684 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 11685 |      test "$enable_shared" = no; then | 
 | 11686 |   # Fast installation is not necessary | 
 | 11687 |   enable_fast_install=needless | 
 | 11688 | fi | 
 | 11689 |  | 
 | 11690 | striplib= | 
 | 11691 | old_striplib= | 
 | 11692 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 11693 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 11694 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 11695 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 11696 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 11697 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 11698 | echo "${ECHO_T}yes" >&6 | 
 | 11699 | else | 
 | 11700 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 11701 |   case $host_os in | 
 | 11702 |    darwin*) | 
 | 11703 |        if test -n "$STRIP" ; then | 
 | 11704 |          striplib="$STRIP -x" | 
 | 11705 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 11706 | echo "${ECHO_T}yes" >&6 | 
 | 11707 |        else | 
 | 11708 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11709 | echo "${ECHO_T}no" >&6 | 
 | 11710 | fi | 
 | 11711 |        ;; | 
 | 11712 |    *) | 
 | 11713 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11714 | echo "${ECHO_T}no" >&6 | 
 | 11715 |     ;; | 
 | 11716 |   esac | 
 | 11717 | fi | 
 | 11718 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11719 | if test "x$enable_dlopen" != xyes; then | 
 | 11720 |   enable_dlopen=unknown | 
 | 11721 |   enable_dlopen_self=unknown | 
 | 11722 |   enable_dlopen_self_static=unknown | 
 | 11723 | else | 
 | 11724 |   lt_cv_dlopen=no | 
 | 11725 |   lt_cv_dlopen_libs= | 
 | 11726 |  | 
 | 11727 |   case $host_os in | 
 | 11728 |   beos*) | 
 | 11729 |     lt_cv_dlopen="load_add_on" | 
 | 11730 |     lt_cv_dlopen_libs= | 
 | 11731 |     lt_cv_dlopen_self=yes | 
 | 11732 |     ;; | 
 | 11733 |  | 
 | 11734 |   mingw* | pw32*) | 
 | 11735 |     lt_cv_dlopen="LoadLibrary" | 
 | 11736 |     lt_cv_dlopen_libs= | 
 | 11737 |    ;; | 
 | 11738 |  | 
 | 11739 |   cygwin*) | 
 | 11740 |     lt_cv_dlopen="dlopen" | 
 | 11741 |     lt_cv_dlopen_libs= | 
 | 11742 |    ;; | 
 | 11743 |  | 
 | 11744 |   darwin*) | 
 | 11745 |   # if libdl is installed we need to link against it | 
 | 11746 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 11747 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 11748 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 11749 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11750 | else | 
 | 11751 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11752 | LIBS="-ldl  $LIBS" | 
 | 11753 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11754 | /* confdefs.h.  */ | 
 | 11755 | _ACEOF | 
 | 11756 | cat confdefs.h >>conftest.$ac_ext | 
 | 11757 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11758 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11759 |  | 
 | 11760 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11761 | #ifdef __cplusplus | 
 | 11762 | extern "C" | 
 | 11763 | #endif | 
 | 11764 | /* We use char because int might match the return type of a gcc2 | 
 | 11765 |    builtin and then its argument prototype would still apply.  */ | 
 | 11766 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11767 | int | 
 | 11768 | main () | 
 | 11769 | { | 
 | 11770 | dlopen (); | 
 | 11771 |   ; | 
 | 11772 |   return 0; | 
 | 11773 | } | 
 | 11774 | _ACEOF | 
 | 11775 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11777 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11778 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11779 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11780 |   rm -f conftest.er1 | 
 | 11781 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11782 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11783 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11784 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 11785 | 			 || test ! -s conftest.err' | 
 | 11786 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11787 |   (eval $ac_try) 2>&5 | 
 | 11788 |   ac_status=$? | 
 | 11789 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11790 |   (exit $ac_status); }; } && | 
 | 11791 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11792 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11793 |   (eval $ac_try) 2>&5 | 
 | 11794 |   ac_status=$? | 
 | 11795 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11796 |   (exit $ac_status); }; }; then | 
 | 11797 |   ac_cv_lib_dl_dlopen=yes | 
 | 11798 | else | 
 | 11799 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11800 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11801 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11802 | ac_cv_lib_dl_dlopen=no | 
 | 11803 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11804 | rm -f conftest.err conftest.$ac_objext \ | 
 | 11805 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11806 | LIBS=$ac_check_lib_save_LIBS | 
 | 11807 | fi | 
 | 11808 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 11809 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 11810 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 11811 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 11812 | else | 
 | 11813 |  | 
 | 11814 |     lt_cv_dlopen="dyld" | 
 | 11815 |     lt_cv_dlopen_libs= | 
 | 11816 |     lt_cv_dlopen_self=yes | 
 | 11817 |  | 
 | 11818 | fi | 
 | 11819 |  | 
 | 11820 |    ;; | 
 | 11821 |  | 
 | 11822 |   *) | 
 | 11823 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 11824 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 11825 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 11826 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11827 | else | 
 | 11828 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11829 | /* confdefs.h.  */ | 
 | 11830 | _ACEOF | 
 | 11831 | cat confdefs.h >>conftest.$ac_ext | 
 | 11832 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11833 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11834 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 11835 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 11836 | #define shl_load innocuous_shl_load | 
 | 11837 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11838 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11839 |     which can conflict with char shl_load (); below. | 
 | 11840 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 11841 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11842 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11843 | #ifdef __STDC__ | 
 | 11844 | # include <limits.h> | 
 | 11845 | #else | 
 | 11846 | # include <assert.h> | 
 | 11847 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11848 |  | 
 | 11849 | #undef shl_load | 
 | 11850 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11851 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11852 | #ifdef __cplusplus | 
 | 11853 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11854 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11855 | #endif | 
 | 11856 | /* We use char because int might match the return type of a gcc2 | 
 | 11857 |    builtin and then its argument prototype would still apply.  */ | 
 | 11858 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11859 | /* The GNU C library defines this for functions which it implements | 
 | 11860 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 11861 |     something starting with __ and the normal name is an alias.  */ | 
 | 11862 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 11863 | choke me | 
 | 11864 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11865 | char (*f) () = shl_load; | 
 | 11866 | #endif | 
 | 11867 | #ifdef __cplusplus | 
 | 11868 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11869 | #endif | 
 | 11870 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11871 | int | 
 | 11872 | main () | 
 | 11873 | { | 
 | 11874 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11875 |   ; | 
 | 11876 |   return 0; | 
 | 11877 | } | 
 | 11878 | _ACEOF | 
 | 11879 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11881 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11882 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11883 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11884 |   rm -f conftest.er1 | 
 | 11885 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11886 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11887 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11888 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 11889 | 			 || test ! -s conftest.err' | 
 | 11890 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11891 |   (eval $ac_try) 2>&5 | 
 | 11892 |   ac_status=$? | 
 | 11893 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11894 |   (exit $ac_status); }; } && | 
 | 11895 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11896 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11897 |   (eval $ac_try) 2>&5 | 
 | 11898 |   ac_status=$? | 
 | 11899 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11900 |   (exit $ac_status); }; }; then | 
 | 11901 |   ac_cv_func_shl_load=yes | 
 | 11902 | else | 
 | 11903 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11904 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11905 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11906 | ac_cv_func_shl_load=no | 
 | 11907 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11908 | rm -f conftest.err conftest.$ac_objext \ | 
 | 11909 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11910 | fi | 
 | 11911 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 11912 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 11913 | if test $ac_cv_func_shl_load = yes; then | 
 | 11914 |   lt_cv_dlopen="shl_load" | 
 | 11915 | else | 
 | 11916 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 11917 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 11918 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 11919 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11920 | else | 
 | 11921 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11922 | LIBS="-ldld  $LIBS" | 
 | 11923 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11924 | /* confdefs.h.  */ | 
 | 11925 | _ACEOF | 
 | 11926 | cat confdefs.h >>conftest.$ac_ext | 
 | 11927 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11928 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11929 |  | 
 | 11930 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11931 | #ifdef __cplusplus | 
 | 11932 | extern "C" | 
 | 11933 | #endif | 
 | 11934 | /* We use char because int might match the return type of a gcc2 | 
 | 11935 |    builtin and then its argument prototype would still apply.  */ | 
 | 11936 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11937 | int | 
 | 11938 | main () | 
 | 11939 | { | 
 | 11940 | shl_load (); | 
 | 11941 |   ; | 
 | 11942 |   return 0; | 
 | 11943 | } | 
 | 11944 | _ACEOF | 
 | 11945 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11947 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11948 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11949 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11950 |   rm -f conftest.er1 | 
 | 11951 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11952 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11953 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11954 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 11955 | 			 || test ! -s conftest.err' | 
 | 11956 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11957 |   (eval $ac_try) 2>&5 | 
 | 11958 |   ac_status=$? | 
 | 11959 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11960 |   (exit $ac_status); }; } && | 
 | 11961 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11962 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11963 |   (eval $ac_try) 2>&5 | 
 | 11964 |   ac_status=$? | 
 | 11965 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11966 |   (exit $ac_status); }; }; then | 
 | 11967 |   ac_cv_lib_dld_shl_load=yes | 
 | 11968 | else | 
 | 11969 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11970 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11971 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11972 | ac_cv_lib_dld_shl_load=no | 
 | 11973 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11974 | rm -f conftest.err conftest.$ac_objext \ | 
 | 11975 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11976 | LIBS=$ac_check_lib_save_LIBS | 
 | 11977 | fi | 
 | 11978 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 11979 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 11980 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 11981 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 11982 | else | 
 | 11983 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 11984 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 11985 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 11986 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11987 | else | 
 | 11988 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11989 | /* confdefs.h.  */ | 
 | 11990 | _ACEOF | 
 | 11991 | cat confdefs.h >>conftest.$ac_ext | 
 | 11992 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11993 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11994 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 11995 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 11996 | #define dlopen innocuous_dlopen | 
 | 11997 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11998 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11999 |     which can conflict with char dlopen (); below. | 
 | 12000 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 12001 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12002 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12003 | #ifdef __STDC__ | 
 | 12004 | # include <limits.h> | 
 | 12005 | #else | 
 | 12006 | # include <assert.h> | 
 | 12007 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12008 |  | 
 | 12009 | #undef dlopen | 
 | 12010 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12011 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 12012 | #ifdef __cplusplus | 
 | 12013 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12014 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12015 | #endif | 
 | 12016 | /* We use char because int might match the return type of a gcc2 | 
 | 12017 |    builtin and then its argument prototype would still apply.  */ | 
 | 12018 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12019 | /* The GNU C library defines this for functions which it implements | 
 | 12020 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 12021 |     something starting with __ and the normal name is an alias.  */ | 
 | 12022 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 12023 | choke me | 
 | 12024 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12025 | char (*f) () = dlopen; | 
 | 12026 | #endif | 
 | 12027 | #ifdef __cplusplus | 
 | 12028 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12029 | #endif | 
 | 12030 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12031 | int | 
 | 12032 | main () | 
 | 12033 | { | 
 | 12034 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12035 |   ; | 
 | 12036 |   return 0; | 
 | 12037 | } | 
 | 12038 | _ACEOF | 
 | 12039 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12041 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12042 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12043 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12044 |   rm -f conftest.er1 | 
 | 12045 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12046 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12047 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12048 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 12049 | 			 || test ! -s conftest.err' | 
 | 12050 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12051 |   (eval $ac_try) 2>&5 | 
 | 12052 |   ac_status=$? | 
 | 12053 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12054 |   (exit $ac_status); }; } && | 
 | 12055 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12056 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12057 |   (eval $ac_try) 2>&5 | 
 | 12058 |   ac_status=$? | 
 | 12059 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12060 |   (exit $ac_status); }; }; then | 
 | 12061 |   ac_cv_func_dlopen=yes | 
 | 12062 | else | 
 | 12063 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12064 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12065 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12066 | ac_cv_func_dlopen=no | 
 | 12067 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12068 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12069 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12070 | fi | 
 | 12071 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 12072 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 12073 | if test $ac_cv_func_dlopen = yes; then | 
 | 12074 |   lt_cv_dlopen="dlopen" | 
 | 12075 | else | 
 | 12076 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 12077 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 12078 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 12079 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12080 | else | 
 | 12081 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12082 | LIBS="-ldl  $LIBS" | 
 | 12083 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12084 | /* confdefs.h.  */ | 
 | 12085 | _ACEOF | 
 | 12086 | cat confdefs.h >>conftest.$ac_ext | 
 | 12087 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12088 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12089 |  | 
 | 12090 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 12091 | #ifdef __cplusplus | 
 | 12092 | extern "C" | 
 | 12093 | #endif | 
 | 12094 | /* We use char because int might match the return type of a gcc2 | 
 | 12095 |    builtin and then its argument prototype would still apply.  */ | 
 | 12096 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12097 | int | 
 | 12098 | main () | 
 | 12099 | { | 
 | 12100 | dlopen (); | 
 | 12101 |   ; | 
 | 12102 |   return 0; | 
 | 12103 | } | 
 | 12104 | _ACEOF | 
 | 12105 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12107 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12108 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12109 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12110 |   rm -f conftest.er1 | 
 | 12111 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12112 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12113 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12114 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 12115 | 			 || test ! -s conftest.err' | 
 | 12116 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12117 |   (eval $ac_try) 2>&5 | 
 | 12118 |   ac_status=$? | 
 | 12119 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12120 |   (exit $ac_status); }; } && | 
 | 12121 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12122 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12123 |   (eval $ac_try) 2>&5 | 
 | 12124 |   ac_status=$? | 
 | 12125 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12126 |   (exit $ac_status); }; }; then | 
 | 12127 |   ac_cv_lib_dl_dlopen=yes | 
 | 12128 | else | 
 | 12129 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12130 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12131 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12132 | ac_cv_lib_dl_dlopen=no | 
 | 12133 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12134 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12135 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12136 | LIBS=$ac_check_lib_save_LIBS | 
 | 12137 | fi | 
 | 12138 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 12139 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 12140 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 12141 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 12142 | else | 
 | 12143 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 12144 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 12145 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 12146 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12147 | else | 
 | 12148 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12149 | LIBS="-lsvld  $LIBS" | 
 | 12150 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12151 | /* confdefs.h.  */ | 
 | 12152 | _ACEOF | 
 | 12153 | cat confdefs.h >>conftest.$ac_ext | 
 | 12154 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12155 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12156 |  | 
 | 12157 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 12158 | #ifdef __cplusplus | 
 | 12159 | extern "C" | 
 | 12160 | #endif | 
 | 12161 | /* We use char because int might match the return type of a gcc2 | 
 | 12162 |    builtin and then its argument prototype would still apply.  */ | 
 | 12163 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12164 | int | 
 | 12165 | main () | 
 | 12166 | { | 
 | 12167 | dlopen (); | 
 | 12168 |   ; | 
 | 12169 |   return 0; | 
 | 12170 | } | 
 | 12171 | _ACEOF | 
 | 12172 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12174 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12175 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12176 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12177 |   rm -f conftest.er1 | 
 | 12178 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12179 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12180 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12181 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 12182 | 			 || test ! -s conftest.err' | 
 | 12183 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12184 |   (eval $ac_try) 2>&5 | 
 | 12185 |   ac_status=$? | 
 | 12186 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12187 |   (exit $ac_status); }; } && | 
 | 12188 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12189 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12190 |   (eval $ac_try) 2>&5 | 
 | 12191 |   ac_status=$? | 
 | 12192 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12193 |   (exit $ac_status); }; }; then | 
 | 12194 |   ac_cv_lib_svld_dlopen=yes | 
 | 12195 | else | 
 | 12196 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12197 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12198 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12199 | ac_cv_lib_svld_dlopen=no | 
 | 12200 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12201 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12202 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12203 | LIBS=$ac_check_lib_save_LIBS | 
 | 12204 | fi | 
 | 12205 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 12206 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 12207 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 12208 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 12209 | else | 
 | 12210 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 12211 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 12212 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 12213 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12214 | else | 
 | 12215 |   ac_check_lib_save_LIBS=$LIBS | 
 | 12216 | LIBS="-ldld  $LIBS" | 
 | 12217 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12218 | /* confdefs.h.  */ | 
 | 12219 | _ACEOF | 
 | 12220 | cat confdefs.h >>conftest.$ac_ext | 
 | 12221 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12222 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12223 |  | 
 | 12224 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 12225 | #ifdef __cplusplus | 
 | 12226 | extern "C" | 
 | 12227 | #endif | 
 | 12228 | /* We use char because int might match the return type of a gcc2 | 
 | 12229 |    builtin and then its argument prototype would still apply.  */ | 
 | 12230 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12231 | int | 
 | 12232 | main () | 
 | 12233 | { | 
 | 12234 | dld_link (); | 
 | 12235 |   ; | 
 | 12236 |   return 0; | 
 | 12237 | } | 
 | 12238 | _ACEOF | 
 | 12239 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12241 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12242 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12243 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12244 |   rm -f conftest.er1 | 
 | 12245 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12246 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12247 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12248 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 12249 | 			 || test ! -s conftest.err' | 
 | 12250 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12251 |   (eval $ac_try) 2>&5 | 
 | 12252 |   ac_status=$? | 
 | 12253 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12254 |   (exit $ac_status); }; } && | 
 | 12255 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12256 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12257 |   (eval $ac_try) 2>&5 | 
 | 12258 |   ac_status=$? | 
 | 12259 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12260 |   (exit $ac_status); }; }; then | 
 | 12261 |   ac_cv_lib_dld_dld_link=yes | 
 | 12262 | else | 
 | 12263 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12264 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12265 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12266 | ac_cv_lib_dld_dld_link=no | 
 | 12267 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12268 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12269 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12270 | LIBS=$ac_check_lib_save_LIBS | 
 | 12271 | fi | 
 | 12272 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 12273 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 12274 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 12275 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 12276 | fi | 
 | 12277 |  | 
 | 12278 |  | 
 | 12279 | fi | 
 | 12280 |  | 
 | 12281 |  | 
 | 12282 | fi | 
 | 12283 |  | 
 | 12284 |  | 
 | 12285 | fi | 
 | 12286 |  | 
 | 12287 |  | 
 | 12288 | fi | 
 | 12289 |  | 
 | 12290 |  | 
 | 12291 | fi | 
 | 12292 |  | 
 | 12293 |     ;; | 
 | 12294 |   esac | 
 | 12295 |  | 
 | 12296 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 12297 |     enable_dlopen=yes | 
 | 12298 |   else | 
 | 12299 |     enable_dlopen=no | 
 | 12300 |   fi | 
 | 12301 |  | 
 | 12302 |   case $lt_cv_dlopen in | 
 | 12303 |   dlopen) | 
 | 12304 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 12305 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 12306 |  | 
 | 12307 |     save_LDFLAGS="$LDFLAGS" | 
 | 12308 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 12309 |  | 
 | 12310 |     save_LIBS="$LIBS" | 
 | 12311 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 12312 |  | 
 | 12313 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 12314 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 12315 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 12316 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12317 | else | 
 | 12318 |   	  if test "$cross_compiling" = yes; then : | 
 | 12319 |   lt_cv_dlopen_self=cross | 
 | 12320 | else | 
 | 12321 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 12322 |   lt_status=$lt_dlunknown | 
 | 12323 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 12324 | #line 12324 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12325 | #include "confdefs.h" | 
 | 12326 |  | 
 | 12327 | #if HAVE_DLFCN_H | 
 | 12328 | #include <dlfcn.h> | 
 | 12329 | #endif | 
 | 12330 |  | 
 | 12331 | #include <stdio.h> | 
 | 12332 |  | 
 | 12333 | #ifdef RTLD_GLOBAL | 
 | 12334 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 12335 | #else | 
 | 12336 | #  ifdef DL_GLOBAL | 
 | 12337 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 12338 | #  else | 
 | 12339 | #    define LT_DLGLOBAL		0 | 
 | 12340 | #  endif | 
 | 12341 | #endif | 
 | 12342 |  | 
 | 12343 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 12344 |    find out it does not work in some platform. */ | 
 | 12345 | #ifndef LT_DLLAZY_OR_NOW | 
 | 12346 | #  ifdef RTLD_LAZY | 
 | 12347 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 12348 | #  else | 
 | 12349 | #    ifdef DL_LAZY | 
 | 12350 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 12351 | #    else | 
 | 12352 | #      ifdef RTLD_NOW | 
 | 12353 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 12354 | #      else | 
 | 12355 | #        ifdef DL_NOW | 
 | 12356 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 12357 | #        else | 
 | 12358 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 12359 | #        endif | 
 | 12360 | #      endif | 
 | 12361 | #    endif | 
 | 12362 | #  endif | 
 | 12363 | #endif | 
 | 12364 |  | 
 | 12365 | #ifdef __cplusplus | 
 | 12366 | extern "C" void exit (int); | 
 | 12367 | #endif | 
 | 12368 |  | 
 | 12369 | void fnord() { int i=42;} | 
 | 12370 | int main () | 
 | 12371 | { | 
 | 12372 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 12373 |   int status = $lt_dlunknown; | 
 | 12374 |  | 
 | 12375 |   if (self) | 
 | 12376 |     { | 
 | 12377 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 12378 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 12379 |       /* dlclose (self); */ | 
 | 12380 |     } | 
 | 12381 |  | 
 | 12382 |     exit (status); | 
 | 12383 | } | 
 | 12384 | EOF | 
 | 12385 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 12386 |   (eval $ac_link) 2>&5 | 
 | 12387 |   ac_status=$? | 
 | 12388 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12389 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 12390 |     (./conftest; exit; ) 2>/dev/null | 
 | 12391 |     lt_status=$? | 
 | 12392 |     case x$lt_status in | 
 | 12393 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 12394 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 12395 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 12396 |     esac | 
 | 12397 |   else : | 
 | 12398 |     # compilation failed | 
 | 12399 |     lt_cv_dlopen_self=no | 
 | 12400 |   fi | 
 | 12401 | fi | 
 | 12402 | rm -fr conftest* | 
 | 12403 |  | 
 | 12404 |  | 
 | 12405 | fi | 
 | 12406 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 12407 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 12408 |  | 
 | 12409 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 12410 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 12411 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 12412 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 12413 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 12414 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12415 | else | 
 | 12416 |   	  if test "$cross_compiling" = yes; then : | 
 | 12417 |   lt_cv_dlopen_self_static=cross | 
 | 12418 | else | 
 | 12419 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 12420 |   lt_status=$lt_dlunknown | 
 | 12421 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 12422 | #line 12422 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12423 | #include "confdefs.h" | 
 | 12424 |  | 
 | 12425 | #if HAVE_DLFCN_H | 
 | 12426 | #include <dlfcn.h> | 
 | 12427 | #endif | 
 | 12428 |  | 
 | 12429 | #include <stdio.h> | 
 | 12430 |  | 
 | 12431 | #ifdef RTLD_GLOBAL | 
 | 12432 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 12433 | #else | 
 | 12434 | #  ifdef DL_GLOBAL | 
 | 12435 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 12436 | #  else | 
 | 12437 | #    define LT_DLGLOBAL		0 | 
 | 12438 | #  endif | 
 | 12439 | #endif | 
 | 12440 |  | 
 | 12441 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 12442 |    find out it does not work in some platform. */ | 
 | 12443 | #ifndef LT_DLLAZY_OR_NOW | 
 | 12444 | #  ifdef RTLD_LAZY | 
 | 12445 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 12446 | #  else | 
 | 12447 | #    ifdef DL_LAZY | 
 | 12448 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 12449 | #    else | 
 | 12450 | #      ifdef RTLD_NOW | 
 | 12451 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 12452 | #      else | 
 | 12453 | #        ifdef DL_NOW | 
 | 12454 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 12455 | #        else | 
 | 12456 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 12457 | #        endif | 
 | 12458 | #      endif | 
 | 12459 | #    endif | 
 | 12460 | #  endif | 
 | 12461 | #endif | 
 | 12462 |  | 
 | 12463 | #ifdef __cplusplus | 
 | 12464 | extern "C" void exit (int); | 
 | 12465 | #endif | 
 | 12466 |  | 
 | 12467 | void fnord() { int i=42;} | 
 | 12468 | int main () | 
 | 12469 | { | 
 | 12470 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 12471 |   int status = $lt_dlunknown; | 
 | 12472 |  | 
 | 12473 |   if (self) | 
 | 12474 |     { | 
 | 12475 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 12476 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 12477 |       /* dlclose (self); */ | 
 | 12478 |     } | 
 | 12479 |  | 
 | 12480 |     exit (status); | 
 | 12481 | } | 
 | 12482 | EOF | 
 | 12483 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 12484 |   (eval $ac_link) 2>&5 | 
 | 12485 |   ac_status=$? | 
 | 12486 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12487 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 12488 |     (./conftest; exit; ) 2>/dev/null | 
 | 12489 |     lt_status=$? | 
 | 12490 |     case x$lt_status in | 
 | 12491 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 12492 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 12493 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 12494 |     esac | 
 | 12495 |   else : | 
 | 12496 |     # compilation failed | 
 | 12497 |     lt_cv_dlopen_self_static=no | 
 | 12498 |   fi | 
 | 12499 | fi | 
 | 12500 | rm -fr conftest* | 
 | 12501 |  | 
 | 12502 |  | 
 | 12503 | fi | 
 | 12504 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 12505 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 12506 |     fi | 
 | 12507 |  | 
 | 12508 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 12509 |     LDFLAGS="$save_LDFLAGS" | 
 | 12510 |     LIBS="$save_LIBS" | 
 | 12511 |     ;; | 
 | 12512 |   esac | 
 | 12513 |  | 
 | 12514 |   case $lt_cv_dlopen_self in | 
 | 12515 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 12516 |   *) enable_dlopen_self=unknown ;; | 
 | 12517 |   esac | 
 | 12518 |  | 
 | 12519 |   case $lt_cv_dlopen_self_static in | 
 | 12520 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 12521 |   *) enable_dlopen_self_static=unknown ;; | 
 | 12522 |   esac | 
 | 12523 | fi | 
 | 12524 |  | 
 | 12525 |  | 
 | 12526 | # The else clause should only fire when bootstrapping the | 
 | 12527 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 12528 | # with your package, and you will get complaints that there are | 
 | 12529 | # no rules to generate ltmain.sh. | 
 | 12530 | if test -f "$ltmain"; then | 
 | 12531 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 12532 |   # without removal of \ escapes. | 
 | 12533 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 12534 |     setopt NO_GLOB_SUBST | 
 | 12535 |   fi | 
 | 12536 |   # Now quote all the things that may contain metacharacters while being | 
 | 12537 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 12538 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12539 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 12540 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12541 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 12542 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 12543 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 12544 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 12545 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 12546 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 12547 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 12548 |     compiler_CXX \ | 
 | 12549 |     CC_CXX \ | 
 | 12550 |     LD_CXX \ | 
 | 12551 |     lt_prog_compiler_wl_CXX \ | 
 | 12552 |     lt_prog_compiler_pic_CXX \ | 
 | 12553 |     lt_prog_compiler_static_CXX \ | 
 | 12554 |     lt_prog_compiler_no_builtin_flag_CXX \ | 
 | 12555 |     export_dynamic_flag_spec_CXX \ | 
 | 12556 |     thread_safe_flag_spec_CXX \ | 
 | 12557 |     whole_archive_flag_spec_CXX \ | 
 | 12558 |     enable_shared_with_static_runtimes_CXX \ | 
 | 12559 |     old_archive_cmds_CXX \ | 
 | 12560 |     old_archive_from_new_cmds_CXX \ | 
 | 12561 |     predep_objects_CXX \ | 
 | 12562 |     postdep_objects_CXX \ | 
 | 12563 |     predeps_CXX \ | 
 | 12564 |     postdeps_CXX \ | 
 | 12565 |     compiler_lib_search_path_CXX \ | 
 | 12566 |     archive_cmds_CXX \ | 
 | 12567 |     archive_expsym_cmds_CXX \ | 
 | 12568 |     postinstall_cmds_CXX \ | 
 | 12569 |     postuninstall_cmds_CXX \ | 
 | 12570 |     old_archive_from_expsyms_cmds_CXX \ | 
 | 12571 |     allow_undefined_flag_CXX \ | 
 | 12572 |     no_undefined_flag_CXX \ | 
 | 12573 |     export_symbols_cmds_CXX \ | 
 | 12574 |     hardcode_libdir_flag_spec_CXX \ | 
 | 12575 |     hardcode_libdir_flag_spec_ld_CXX \ | 
 | 12576 |     hardcode_libdir_separator_CXX \ | 
 | 12577 |     hardcode_automatic_CXX \ | 
 | 12578 |     module_cmds_CXX \ | 
 | 12579 |     module_expsym_cmds_CXX \ | 
 | 12580 |     lt_cv_prog_compiler_c_o_CXX \ | 
 | 12581 |     exclude_expsyms_CXX \ | 
 | 12582 |     include_expsyms_CXX; do | 
 | 12583 |  | 
 | 12584 |     case $var in | 
 | 12585 |     old_archive_cmds_CXX | \ | 
 | 12586 |     old_archive_from_new_cmds_CXX | \ | 
 | 12587 |     archive_cmds_CXX | \ | 
 | 12588 |     archive_expsym_cmds_CXX | \ | 
 | 12589 |     module_cmds_CXX | \ | 
 | 12590 |     module_expsym_cmds_CXX | \ | 
 | 12591 |     old_archive_from_expsyms_cmds_CXX | \ | 
 | 12592 |     export_symbols_cmds_CXX | \ | 
 | 12593 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 12594 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 12595 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 12596 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 12597 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12598 |       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] | 12599 |       ;; | 
 | 12600 |     *) | 
 | 12601 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 12602 |       ;; | 
 | 12603 |     esac | 
 | 12604 |   done | 
 | 12605 |  | 
 | 12606 |   case $lt_echo in | 
 | 12607 |   *'\$0 --fallback-echo"') | 
 | 12608 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 12609 |     ;; | 
 | 12610 |   esac | 
 | 12611 |  | 
 | 12612 | cfgfile="$ofile" | 
 | 12613 |  | 
 | 12614 |   cat <<__EOF__ >> "$cfgfile" | 
 | 12615 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 12616 |  | 
 | 12617 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 12618 |  | 
 | 12619 | # Shell to use when invoking shell scripts. | 
 | 12620 | SHELL=$lt_SHELL | 
 | 12621 |  | 
 | 12622 | # Whether or not to build shared libraries. | 
 | 12623 | build_libtool_libs=$enable_shared | 
 | 12624 |  | 
 | 12625 | # Whether or not to build static libraries. | 
 | 12626 | build_old_libs=$enable_static | 
 | 12627 |  | 
 | 12628 | # Whether or not to add -lc for building shared libraries. | 
 | 12629 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
 | 12630 |  | 
 | 12631 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 12632 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
 | 12633 |  | 
 | 12634 | # Whether or not to optimize for fast installation. | 
 | 12635 | fast_install=$enable_fast_install | 
 | 12636 |  | 
 | 12637 | # The host system. | 
 | 12638 | host_alias=$host_alias | 
 | 12639 | host=$host | 
 | 12640 |  | 
 | 12641 | # An echo program that does not interpret backslashes. | 
 | 12642 | echo=$lt_echo | 
 | 12643 |  | 
 | 12644 | # The archiver. | 
 | 12645 | AR=$lt_AR | 
 | 12646 | AR_FLAGS=$lt_AR_FLAGS | 
 | 12647 |  | 
 | 12648 | # A C compiler. | 
 | 12649 | LTCC=$lt_LTCC | 
 | 12650 |  | 
 | 12651 | # A language-specific compiler. | 
 | 12652 | CC=$lt_compiler_CXX | 
 | 12653 |  | 
 | 12654 | # Is the compiler the GNU C compiler? | 
 | 12655 | with_gcc=$GCC_CXX | 
 | 12656 |  | 
 | 12657 | # An ERE matcher. | 
 | 12658 | EGREP=$lt_EGREP | 
 | 12659 |  | 
 | 12660 | # The linker used to build libraries. | 
 | 12661 | LD=$lt_LD_CXX | 
 | 12662 |  | 
 | 12663 | # Whether we need hard or soft links. | 
 | 12664 | LN_S=$lt_LN_S | 
 | 12665 |  | 
 | 12666 | # A BSD-compatible nm program. | 
 | 12667 | NM=$lt_NM | 
 | 12668 |  | 
 | 12669 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12670 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12671 |  | 
 | 12672 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 12673 | MAGIC_CMD=$MAGIC_CMD | 
 | 12674 |  | 
 | 12675 | # Used on cygwin: DLL creation program. | 
 | 12676 | DLLTOOL="$DLLTOOL" | 
 | 12677 |  | 
 | 12678 | # Used on cygwin: object dumper. | 
 | 12679 | OBJDUMP="$OBJDUMP" | 
 | 12680 |  | 
 | 12681 | # Used on cygwin: assembler. | 
 | 12682 | AS="$AS" | 
 | 12683 |  | 
 | 12684 | # The name of the directory that contains temporary libtool files. | 
 | 12685 | objdir=$objdir | 
 | 12686 |  | 
 | 12687 | # How to create reloadable object files. | 
 | 12688 | reload_flag=$lt_reload_flag | 
 | 12689 | reload_cmds=$lt_reload_cmds | 
 | 12690 |  | 
 | 12691 | # How to pass a linker flag through the compiler. | 
 | 12692 | wl=$lt_lt_prog_compiler_wl_CXX | 
 | 12693 |  | 
 | 12694 | # Object file suffix (normally "o"). | 
 | 12695 | objext="$ac_objext" | 
 | 12696 |  | 
 | 12697 | # Old archive suffix (normally "a"). | 
 | 12698 | libext="$libext" | 
 | 12699 |  | 
 | 12700 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12701 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12702 |  | 
 | 12703 | # Executable file suffix (normally ""). | 
 | 12704 | exeext="$exeext" | 
 | 12705 |  | 
 | 12706 | # Additional compiler flags for building library objects. | 
 | 12707 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
 | 12708 | pic_mode=$pic_mode | 
 | 12709 |  | 
 | 12710 | # What is the maximum length of a command? | 
 | 12711 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 12712 |  | 
 | 12713 | # Does compiler simultaneously support -c and -o options? | 
 | 12714 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
 | 12715 |  | 
 | 12716 | # Must we lock files when doing compilation ? | 
 | 12717 | need_locks=$lt_need_locks | 
 | 12718 |  | 
 | 12719 | # Do we need the lib prefix for modules? | 
 | 12720 | need_lib_prefix=$need_lib_prefix | 
 | 12721 |  | 
 | 12722 | # Do we need a version for libraries? | 
 | 12723 | need_version=$need_version | 
 | 12724 |  | 
 | 12725 | # Whether dlopen is supported. | 
 | 12726 | dlopen_support=$enable_dlopen | 
 | 12727 |  | 
 | 12728 | # Whether dlopen of programs is supported. | 
 | 12729 | dlopen_self=$enable_dlopen_self | 
 | 12730 |  | 
 | 12731 | # Whether dlopen of statically linked programs is supported. | 
 | 12732 | dlopen_self_static=$enable_dlopen_self_static | 
 | 12733 |  | 
 | 12734 | # Compiler flag to prevent dynamic linking. | 
 | 12735 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
 | 12736 |  | 
 | 12737 | # Compiler flag to turn off builtin functions. | 
 | 12738 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
 | 12739 |  | 
 | 12740 | # Compiler flag to allow reflexive dlopens. | 
 | 12741 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
 | 12742 |  | 
 | 12743 | # Compiler flag to generate shared objects directly from archives. | 
 | 12744 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
 | 12745 |  | 
 | 12746 | # Compiler flag to generate thread-safe objects. | 
 | 12747 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
 | 12748 |  | 
 | 12749 | # Library versioning type. | 
 | 12750 | version_type=$version_type | 
 | 12751 |  | 
 | 12752 | # Format of library name prefix. | 
 | 12753 | libname_spec=$lt_libname_spec | 
 | 12754 |  | 
 | 12755 | # List of archive names.  First name is the real one, the rest are links. | 
 | 12756 | # The last name is the one that the linker finds with -lNAME. | 
 | 12757 | library_names_spec=$lt_library_names_spec | 
 | 12758 |  | 
 | 12759 | # The coded name of the library, if different from the real name. | 
 | 12760 | soname_spec=$lt_soname_spec | 
 | 12761 |  | 
 | 12762 | # Commands used to build and install an old-style archive. | 
 | 12763 | RANLIB=$lt_RANLIB | 
 | 12764 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
 | 12765 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 12766 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 12767 |  | 
 | 12768 | # Create an old-style archive from a shared archive. | 
 | 12769 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
 | 12770 |  | 
 | 12771 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 12772 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
 | 12773 |  | 
 | 12774 | # Commands used to build and install a shared archive. | 
 | 12775 | archive_cmds=$lt_archive_cmds_CXX | 
 | 12776 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
 | 12777 | postinstall_cmds=$lt_postinstall_cmds | 
 | 12778 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 12779 |  | 
 | 12780 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 12781 | module_cmds=$lt_module_cmds_CXX | 
 | 12782 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
 | 12783 |  | 
 | 12784 | # Commands to strip libraries. | 
 | 12785 | old_striplib=$lt_old_striplib | 
 | 12786 | striplib=$lt_striplib | 
 | 12787 |  | 
 | 12788 | # Dependencies to place before the objects being linked to create a | 
 | 12789 | # shared library. | 
 | 12790 | predep_objects=$lt_predep_objects_CXX | 
 | 12791 |  | 
 | 12792 | # Dependencies to place after the objects being linked to create a | 
 | 12793 | # shared library. | 
 | 12794 | postdep_objects=$lt_postdep_objects_CXX | 
 | 12795 |  | 
 | 12796 | # Dependencies to place before the objects being linked to create a | 
 | 12797 | # shared library. | 
 | 12798 | predeps=$lt_predeps_CXX | 
 | 12799 |  | 
 | 12800 | # Dependencies to place after the objects being linked to create a | 
 | 12801 | # shared library. | 
 | 12802 | postdeps=$lt_postdeps_CXX | 
 | 12803 |  | 
 | 12804 | # The library search path used internally by the compiler when linking | 
 | 12805 | # a shared library. | 
 | 12806 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
 | 12807 |  | 
 | 12808 | # Method to check whether dependent libraries are shared objects. | 
 | 12809 | deplibs_check_method=$lt_deplibs_check_method | 
 | 12810 |  | 
 | 12811 | # Command to use when deplibs_check_method == file_magic. | 
 | 12812 | file_magic_cmd=$lt_file_magic_cmd | 
 | 12813 |  | 
 | 12814 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 12815 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
 | 12816 |  | 
 | 12817 | # Flag that forces no undefined symbols. | 
 | 12818 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
 | 12819 |  | 
 | 12820 | # Commands used to finish a libtool library installation in a directory. | 
 | 12821 | finish_cmds=$lt_finish_cmds | 
 | 12822 |  | 
 | 12823 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 12824 | finish_eval=$lt_finish_eval | 
 | 12825 |  | 
 | 12826 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 12827 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 12828 |  | 
 | 12829 | # Transform the output of nm in a proper C declaration | 
 | 12830 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 12831 |  | 
 | 12832 | # Transform the output of nm in a C name address pair | 
 | 12833 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 12834 |  | 
 | 12835 | # This is the shared library runtime path variable. | 
 | 12836 | runpath_var=$runpath_var | 
 | 12837 |  | 
 | 12838 | # This is the shared library path variable. | 
 | 12839 | shlibpath_var=$shlibpath_var | 
 | 12840 |  | 
 | 12841 | # Is shlibpath searched before the hard-coded library search path? | 
 | 12842 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 12843 |  | 
 | 12844 | # How to hardcode a shared library path into an executable. | 
 | 12845 | hardcode_action=$hardcode_action_CXX | 
 | 12846 |  | 
 | 12847 | # Whether we should hardcode library paths into libraries. | 
 | 12848 | hardcode_into_libs=$hardcode_into_libs | 
 | 12849 |  | 
 | 12850 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 12851 | # This must work even if \$libdir does not exist. | 
 | 12852 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
 | 12853 |  | 
 | 12854 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 12855 | # a binary during linking. This must work even if \$libdir does | 
 | 12856 | # not exist. | 
 | 12857 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
 | 12858 |  | 
 | 12859 | # Whether we need a single -rpath flag with a separated argument. | 
 | 12860 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
 | 12861 |  | 
 | 12862 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 12863 | # resulting binary. | 
 | 12864 | hardcode_direct=$hardcode_direct_CXX | 
 | 12865 |  | 
 | 12866 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 12867 | # resulting binary. | 
 | 12868 | hardcode_minus_L=$hardcode_minus_L_CXX | 
 | 12869 |  | 
 | 12870 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 12871 | # the resulting binary. | 
 | 12872 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
 | 12873 |  | 
 | 12874 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 12875 | # and all subsequent libraries and executables linked against it. | 
 | 12876 | hardcode_automatic=$hardcode_automatic_CXX | 
 | 12877 |  | 
 | 12878 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 12879 | # restored at relink time. | 
 | 12880 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 12881 |  | 
 | 12882 | # Whether libtool must link a program against all its dependency libraries. | 
 | 12883 | link_all_deplibs=$link_all_deplibs_CXX | 
 | 12884 |  | 
 | 12885 | # Compile-time system search path for libraries | 
 | 12886 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 12887 |  | 
 | 12888 | # Run-time system search path for libraries | 
 | 12889 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 12890 |  | 
 | 12891 | # Fix the shell variable \$srcfile for the compiler. | 
 | 12892 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
 | 12893 |  | 
 | 12894 | # Set to yes if exported symbols are required. | 
 | 12895 | always_export_symbols=$always_export_symbols_CXX | 
 | 12896 |  | 
 | 12897 | # The commands to list exported symbols. | 
 | 12898 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
 | 12899 |  | 
 | 12900 | # The commands to extract the exported symbol list from a shared archive. | 
 | 12901 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 12902 |  | 
 | 12903 | # Symbols that should not be listed in the preloaded symbols. | 
 | 12904 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
 | 12905 |  | 
 | 12906 | # Symbols that must always be exported. | 
 | 12907 | include_expsyms=$lt_include_expsyms_CXX | 
 | 12908 |  | 
 | 12909 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 12910 |  | 
 | 12911 | __EOF__ | 
 | 12912 |  | 
 | 12913 |  | 
 | 12914 | else | 
 | 12915 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 12916 |   # `config.status --recheck' to rerun these tests and create the | 
 | 12917 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12918 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 12919 |   if test -f "$ltmain_in"; then | 
 | 12920 |     test -f Makefile && make "$ltmain" | 
 | 12921 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12922 | fi | 
 | 12923 |  | 
 | 12924 |  | 
 | 12925 | ac_ext=c | 
 | 12926 | ac_cpp='$CPP $CPPFLAGS' | 
 | 12927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 12928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 12929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 12930 |  | 
 | 12931 | CC=$lt_save_CC | 
 | 12932 | LDCXX=$LD | 
 | 12933 | LD=$lt_save_LD | 
 | 12934 | GCC=$lt_save_GCC | 
 | 12935 | with_gnu_ldcxx=$with_gnu_ld | 
 | 12936 | with_gnu_ld=$lt_save_with_gnu_ld | 
 | 12937 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
 | 12938 | lt_cv_path_LD=$lt_save_path_LD | 
 | 12939 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
 | 12940 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
 | 12941 |  | 
 | 12942 | 	else | 
 | 12943 | 	  tagname="" | 
 | 12944 | 	fi | 
 | 12945 | 	;; | 
 | 12946 |  | 
 | 12947 |       F77) | 
 | 12948 | 	if test -n "$F77" && test "X$F77" != "Xno"; then | 
 | 12949 |  | 
 | 12950 | ac_ext=f | 
 | 12951 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 12952 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 12953 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 12954 |  | 
 | 12955 |  | 
 | 12956 | archive_cmds_need_lc_F77=no | 
 | 12957 | allow_undefined_flag_F77= | 
 | 12958 | always_export_symbols_F77=no | 
 | 12959 | archive_expsym_cmds_F77= | 
 | 12960 | export_dynamic_flag_spec_F77= | 
 | 12961 | hardcode_direct_F77=no | 
 | 12962 | hardcode_libdir_flag_spec_F77= | 
 | 12963 | hardcode_libdir_flag_spec_ld_F77= | 
 | 12964 | hardcode_libdir_separator_F77= | 
 | 12965 | hardcode_minus_L_F77=no | 
 | 12966 | hardcode_automatic_F77=no | 
 | 12967 | module_cmds_F77= | 
 | 12968 | module_expsym_cmds_F77= | 
 | 12969 | link_all_deplibs_F77=unknown | 
 | 12970 | old_archive_cmds_F77=$old_archive_cmds | 
 | 12971 | no_undefined_flag_F77= | 
 | 12972 | whole_archive_flag_spec_F77= | 
 | 12973 | enable_shared_with_static_runtimes_F77=no | 
 | 12974 |  | 
 | 12975 | # Source file extension for f77 test sources. | 
 | 12976 | ac_ext=f | 
 | 12977 |  | 
 | 12978 | # Object file extension for compiled f77 test sources. | 
 | 12979 | objext=o | 
 | 12980 | objext_F77=$objext | 
 | 12981 |  | 
 | 12982 | # Code to be used in simple compile tests | 
 | 12983 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
 | 12984 |  | 
 | 12985 | # Code to be used in simple link tests | 
 | 12986 | lt_simple_link_test_code="      program t\n      end\n" | 
 | 12987 |  | 
 | 12988 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 12989 |  | 
 | 12990 | # If no C compiler was specified, use CC. | 
 | 12991 | LTCC=${LTCC-"$CC"} | 
 | 12992 |  | 
 | 12993 | # Allow CC to be a program name with arguments. | 
 | 12994 | compiler=$CC | 
 | 12995 |  | 
 | 12996 |  | 
 | 12997 | # Allow CC to be a program name with arguments. | 
 | 12998 | lt_save_CC="$CC" | 
 | 12999 | CC=${F77-"f77"} | 
 | 13000 | compiler=$CC | 
 | 13001 | compiler_F77=$CC | 
 | 13002 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 13003 |  | 
 | 13004 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 13005 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 13006 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 13007 | echo "${ECHO_T}$can_build_shared" >&6 | 
 | 13008 |  | 
 | 13009 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 13010 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 13011 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 13012 |  | 
 | 13013 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 13014 | # are all built from PIC. | 
 | 13015 | case "$host_os" in | 
 | 13016 | aix3*) | 
 | 13017 |   test "$enable_shared" = yes && enable_static=no | 
 | 13018 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13019 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13020 |     postinstall_cmds='$RANLIB $lib' | 
 | 13021 |   fi | 
 | 13022 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13023 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13024 |   test "$enable_shared" = yes && enable_static=no | 
 | 13025 |   ;; | 
 | 13026 | esac | 
 | 13027 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 13028 | echo "${ECHO_T}$enable_shared" >&6 | 
 | 13029 |  | 
 | 13030 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 13031 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 13032 | # Make sure either enable_shared or enable_static is yes. | 
 | 13033 | test "$enable_shared" = yes || enable_static=yes | 
 | 13034 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 13035 | echo "${ECHO_T}$enable_static" >&6 | 
 | 13036 |  | 
 | 13037 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 13038 |  | 
 | 13039 | GCC_F77="$G77" | 
 | 13040 | LD_F77="$LD" | 
 | 13041 |  | 
 | 13042 | lt_prog_compiler_wl_F77= | 
 | 13043 | lt_prog_compiler_pic_F77= | 
 | 13044 | lt_prog_compiler_static_F77= | 
 | 13045 |  | 
 | 13046 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 13047 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 13048 |  | 
 | 13049 |   if test "$GCC" = yes; then | 
 | 13050 |     lt_prog_compiler_wl_F77='-Wl,' | 
 | 13051 |     lt_prog_compiler_static_F77='-static' | 
 | 13052 |  | 
 | 13053 |     case $host_os in | 
 | 13054 |       aix*) | 
 | 13055 |       # All AIX code is PIC. | 
 | 13056 |       if test "$host_cpu" = ia64; then | 
 | 13057 | 	# AIX 5 now supports IA64 processor | 
 | 13058 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 13059 |       fi | 
 | 13060 |       ;; | 
 | 13061 |  | 
 | 13062 |     amigaos*) | 
 | 13063 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 13064 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 13065 |       # like `-m68040'. | 
 | 13066 |       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
 | 13067 |       ;; | 
 | 13068 |  | 
 | 13069 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 13070 |       # PIC is the default for these OSes. | 
 | 13071 |       ;; | 
 | 13072 |  | 
 | 13073 |     mingw* | pw32* | os2*) | 
 | 13074 |       # This hack is so that the source file can tell whether it is being | 
 | 13075 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 13076 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 13077 |       ;; | 
 | 13078 |  | 
 | 13079 |     darwin* | rhapsody*) | 
 | 13080 |       # PIC is the default on this platform | 
 | 13081 |       # Common symbols not allowed in MH_DYLIB files | 
 | 13082 |       lt_prog_compiler_pic_F77='-fno-common' | 
 | 13083 |       ;; | 
 | 13084 |  | 
 | 13085 |     msdosdjgpp*) | 
 | 13086 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 13087 |       # on systems that don't support them. | 
 | 13088 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 13089 |       enable_shared=no | 
 | 13090 |       ;; | 
 | 13091 |  | 
 | 13092 |     sysv4*MP*) | 
 | 13093 |       if test -d /usr/nec; then | 
 | 13094 | 	lt_prog_compiler_pic_F77=-Kconform_pic | 
 | 13095 |       fi | 
 | 13096 |       ;; | 
 | 13097 |  | 
 | 13098 |     hpux*) | 
 | 13099 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 13100 |       # not for PA HP-UX. | 
 | 13101 |       case "$host_cpu" in | 
 | 13102 |       hppa*64*|ia64*) | 
 | 13103 | 	# +Z the default | 
 | 13104 | 	;; | 
 | 13105 |       *) | 
 | 13106 | 	lt_prog_compiler_pic_F77='-fPIC' | 
 | 13107 | 	;; | 
 | 13108 |       esac | 
 | 13109 |       ;; | 
 | 13110 |  | 
 | 13111 |     *) | 
 | 13112 |       lt_prog_compiler_pic_F77='-fPIC' | 
 | 13113 |       ;; | 
 | 13114 |     esac | 
 | 13115 |   else | 
 | 13116 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 13117 |     case $host_os in | 
 | 13118 |     aix*) | 
 | 13119 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13120 |       if test "$host_cpu" = ia64; then | 
 | 13121 | 	# AIX 5 now supports IA64 processor | 
 | 13122 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 13123 |       else | 
 | 13124 | 	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
 | 13125 |       fi | 
 | 13126 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13127 |       darwin*) | 
 | 13128 |         # PIC is the default on this platform | 
 | 13129 |         # Common symbols not allowed in MH_DYLIB files | 
 | 13130 |        case "$cc_basename" in | 
 | 13131 |          xlc*) | 
 | 13132 |          lt_prog_compiler_pic_F77='-qnocommon' | 
 | 13133 |          lt_prog_compiler_wl_F77='-Wl,' | 
 | 13134 |          ;; | 
 | 13135 |        esac | 
 | 13136 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13137 |  | 
 | 13138 |     mingw* | pw32* | os2*) | 
 | 13139 |       # This hack is so that the source file can tell whether it is being | 
 | 13140 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 13141 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 13142 |       ;; | 
 | 13143 |  | 
 | 13144 |     hpux9* | hpux10* | hpux11*) | 
 | 13145 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13146 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 13147 |       # not for PA HP-UX. | 
 | 13148 |       case "$host_cpu" in | 
 | 13149 |       hppa*64*|ia64*) | 
 | 13150 | 	# +Z the default | 
 | 13151 | 	;; | 
 | 13152 |       *) | 
 | 13153 | 	lt_prog_compiler_pic_F77='+Z' | 
 | 13154 | 	;; | 
 | 13155 |       esac | 
 | 13156 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 13157 |       lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
 | 13158 |       ;; | 
 | 13159 |  | 
 | 13160 |     irix5* | irix6* | nonstopux*) | 
 | 13161 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13162 |       # PIC (with -KPIC) is the default. | 
 | 13163 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 13164 |       ;; | 
 | 13165 |  | 
 | 13166 |     newsos6) | 
 | 13167 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 13168 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13169 |       ;; | 
 | 13170 |  | 
 | 13171 |     linux*) | 
 | 13172 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13173 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13174 | 	lt_prog_compiler_wl_F77='-Wl,' | 
 | 13175 | 	lt_prog_compiler_pic_F77='-KPIC' | 
 | 13176 | 	lt_prog_compiler_static_F77='-static' | 
 | 13177 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13178 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13179 |         lt_prog_compiler_wl_F77='-Wl,' | 
 | 13180 |         # All Alpha code is PIC. | 
 | 13181 |         lt_prog_compiler_static_F77='-non_shared' | 
 | 13182 |         ;; | 
 | 13183 |       esac | 
 | 13184 |       ;; | 
 | 13185 |  | 
 | 13186 |     osf3* | osf4* | osf5*) | 
 | 13187 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13188 |       # All OSF/1 code is PIC. | 
 | 13189 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 13190 |       ;; | 
 | 13191 |  | 
 | 13192 |     sco3.2v5*) | 
 | 13193 |       lt_prog_compiler_pic_F77='-Kpic' | 
 | 13194 |       lt_prog_compiler_static_F77='-dn' | 
 | 13195 |       ;; | 
 | 13196 |  | 
 | 13197 |     solaris*) | 
 | 13198 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13199 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 13200 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13201 |       ;; | 
 | 13202 |  | 
 | 13203 |     sunos4*) | 
 | 13204 |       lt_prog_compiler_wl_F77='-Qoption ld ' | 
 | 13205 |       lt_prog_compiler_pic_F77='-PIC' | 
 | 13206 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13207 |       ;; | 
 | 13208 |  | 
 | 13209 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 13210 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 13211 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 13212 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13213 |       ;; | 
 | 13214 |  | 
 | 13215 |     sysv4*MP*) | 
 | 13216 |       if test -d /usr/nec ;then | 
 | 13217 | 	lt_prog_compiler_pic_F77='-Kconform_pic' | 
 | 13218 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 13219 |       fi | 
 | 13220 |       ;; | 
 | 13221 |  | 
 | 13222 |     uts4*) | 
 | 13223 |       lt_prog_compiler_pic_F77='-pic' | 
 | 13224 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 13225 |       ;; | 
 | 13226 |  | 
 | 13227 |     *) | 
 | 13228 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 13229 |       ;; | 
 | 13230 |     esac | 
 | 13231 |   fi | 
 | 13232 |  | 
 | 13233 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
 | 13234 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 
 | 13235 |  | 
 | 13236 | # | 
 | 13237 | # Check to make sure the PIC flag actually works. | 
 | 13238 | # | 
 | 13239 | if test -n "$lt_prog_compiler_pic_F77"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13240 |  | 
 | 13241 | 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] | 13242 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 
 | 13243 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
 | 13244 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13245 | else | 
 | 13246 |   lt_prog_compiler_pic_works_F77=no | 
 | 13247 |   ac_outfile=conftest.$ac_objext | 
 | 13248 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13249 |    lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
 | 13250 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 13251 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 13252 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 13253 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 13254 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 13255 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 13256 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 13257 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 13258 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 13259 |    (eval echo "\"\$as_me:13259: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13260 |    (eval "$lt_compile" 2>conftest.err) | 
 | 13261 |    ac_status=$? | 
 | 13262 |    cat conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 13263 |    echo "$as_me:13263: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13264 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 13265 |      # The compiler can only warn and ignore the option if not recognized | 
 | 13266 |      # So say no if there are warnings | 
 | 13267 |      if test ! -s conftest.err; then | 
 | 13268 |        lt_prog_compiler_pic_works_F77=yes | 
 | 13269 |      fi | 
 | 13270 |    fi | 
 | 13271 |    $rm conftest* | 
 | 13272 |  | 
 | 13273 | fi | 
 | 13274 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
 | 13275 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 
 | 13276 |  | 
 | 13277 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
 | 13278 |     case $lt_prog_compiler_pic_F77 in | 
 | 13279 |      "" | " "*) ;; | 
 | 13280 |      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
 | 13281 |      esac | 
 | 13282 | else | 
 | 13283 |     lt_prog_compiler_pic_F77= | 
 | 13284 |      lt_prog_compiler_can_build_shared_F77=no | 
 | 13285 | fi | 
 | 13286 |  | 
 | 13287 | fi | 
 | 13288 | case "$host_os" in | 
 | 13289 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 13290 |   *djgpp*) | 
 | 13291 |     lt_prog_compiler_pic_F77= | 
 | 13292 |     ;; | 
 | 13293 |   *) | 
 | 13294 |     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
 | 13295 |     ;; | 
 | 13296 | esac | 
 | 13297 |  | 
 | 13298 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 13299 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 13300 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
 | 13301 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13302 | else | 
 | 13303 |   lt_cv_prog_compiler_c_o_F77=no | 
 | 13304 |    $rm -r conftest 2>/dev/null | 
 | 13305 |    mkdir conftest | 
 | 13306 |    cd conftest | 
 | 13307 |    mkdir out | 
 | 13308 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13309 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13310 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 13311 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 13312 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 13313 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 13314 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 13315 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 13316 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 13317 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 13318 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 13319 |    (eval echo "\"\$as_me:13319: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13320 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 13321 |    ac_status=$? | 
 | 13322 |    cat out/conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 13323 |    echo "$as_me:13323: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13324 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 13325 |    then | 
 | 13326 |      # The compiler can only warn and ignore the option if not recognized | 
 | 13327 |      # So say no if there are warnings | 
 | 13328 |      if test ! -s out/conftest.err; then | 
 | 13329 |        lt_cv_prog_compiler_c_o_F77=yes | 
 | 13330 |      fi | 
 | 13331 |    fi | 
 | 13332 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13333 |    $rm conftest* | 
 | 13334 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 13335 |    # template instantiation | 
 | 13336 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 13337 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13338 |    cd .. | 
 | 13339 |    rmdir conftest | 
 | 13340 |    $rm conftest* | 
 | 13341 |  | 
 | 13342 | fi | 
 | 13343 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
 | 13344 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 
 | 13345 |  | 
 | 13346 |  | 
 | 13347 | hard_links="nottested" | 
 | 13348 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
 | 13349 |   # do not overwrite the value of need_locks provided by the user | 
 | 13350 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 13351 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 13352 |   hard_links=yes | 
 | 13353 |   $rm conftest* | 
 | 13354 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 13355 |   touch conftest.a | 
 | 13356 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 13357 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 13358 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 13359 | echo "${ECHO_T}$hard_links" >&6 | 
 | 13360 |   if test "$hard_links" = no; then | 
 | 13361 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 13362 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 13363 |     need_locks=warn | 
 | 13364 |   fi | 
 | 13365 | else | 
 | 13366 |   need_locks=no | 
 | 13367 | fi | 
 | 13368 |  | 
 | 13369 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 13370 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 13371 |  | 
 | 13372 |   runpath_var= | 
 | 13373 |   allow_undefined_flag_F77= | 
 | 13374 |   enable_shared_with_static_runtimes_F77=no | 
 | 13375 |   archive_cmds_F77= | 
 | 13376 |   archive_expsym_cmds_F77= | 
 | 13377 |   old_archive_From_new_cmds_F77= | 
 | 13378 |   old_archive_from_expsyms_cmds_F77= | 
 | 13379 |   export_dynamic_flag_spec_F77= | 
 | 13380 |   whole_archive_flag_spec_F77= | 
 | 13381 |   thread_safe_flag_spec_F77= | 
 | 13382 |   hardcode_libdir_flag_spec_F77= | 
 | 13383 |   hardcode_libdir_flag_spec_ld_F77= | 
 | 13384 |   hardcode_libdir_separator_F77= | 
 | 13385 |   hardcode_direct_F77=no | 
 | 13386 |   hardcode_minus_L_F77=no | 
 | 13387 |   hardcode_shlibpath_var_F77=unsupported | 
 | 13388 |   link_all_deplibs_F77=unknown | 
 | 13389 |   hardcode_automatic_F77=no | 
 | 13390 |   module_cmds_F77= | 
 | 13391 |   module_expsym_cmds_F77= | 
 | 13392 |   always_export_symbols_F77=no | 
 | 13393 |   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 13394 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 13395 |   # included in the symbol list | 
 | 13396 |   include_expsyms_F77= | 
 | 13397 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 13398 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 13399 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 13400 |   # as well as any symbol that contains `d'. | 
 | 13401 |   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
 | 13402 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 13403 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 13404 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 13405 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 13406 |   # preloaded symbol tables. | 
 | 13407 |   extract_expsyms_cmds= | 
 | 13408 |  | 
 | 13409 |   case $host_os in | 
 | 13410 |   cygwin* | mingw* | pw32*) | 
 | 13411 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 13412 |     # When not using gcc, we currently assume that we are using | 
 | 13413 |     # Microsoft Visual C++. | 
 | 13414 |     if test "$GCC" != yes; then | 
 | 13415 |       with_gnu_ld=no | 
 | 13416 |     fi | 
 | 13417 |     ;; | 
 | 13418 |   openbsd*) | 
 | 13419 |     with_gnu_ld=no | 
 | 13420 |     ;; | 
 | 13421 |   esac | 
 | 13422 |  | 
 | 13423 |   ld_shlibs_F77=yes | 
 | 13424 |   if test "$with_gnu_ld" = yes; then | 
 | 13425 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 13426 |     wlarc='${wl}' | 
 | 13427 |  | 
 | 13428 |     # See if GNU ld supports shared libraries. | 
 | 13429 |     case $host_os in | 
 | 13430 |     aix3* | aix4* | aix5*) | 
 | 13431 |       # On AIX/PPC, the GNU linker is very broken | 
 | 13432 |       if test "$host_cpu" != ia64; then | 
 | 13433 | 	ld_shlibs_F77=no | 
 | 13434 | 	cat <<EOF 1>&2 | 
 | 13435 |  | 
 | 13436 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 13437 | *** to be unable to reliably create shared libraries on AIX. | 
 | 13438 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 13439 | *** really care for shared libraries, you may want to modify your PATH | 
 | 13440 | *** so that a non-GNU linker is found, and then restart. | 
 | 13441 |  | 
 | 13442 | EOF | 
 | 13443 |       fi | 
 | 13444 |       ;; | 
 | 13445 |  | 
 | 13446 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13447 |       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] | 13448 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13449 |       hardcode_minus_L_F77=yes | 
 | 13450 |  | 
 | 13451 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 13452 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 13453 |       # to version 4, is to share data among multiple programs linked | 
 | 13454 |       # with the same dynamic library.  Since this doesn't match the | 
 | 13455 |       # behavior of shared libraries on other platforms, we can't use | 
 | 13456 |       # them. | 
 | 13457 |       ld_shlibs_F77=no | 
 | 13458 |       ;; | 
 | 13459 |  | 
 | 13460 |     beos*) | 
 | 13461 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 13462 | 	allow_undefined_flag_F77=unsupported | 
 | 13463 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 13464 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 13465 | 	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13466 |       else | 
 | 13467 | 	ld_shlibs_F77=no | 
 | 13468 |       fi | 
 | 13469 |       ;; | 
 | 13470 |  | 
 | 13471 |     cygwin* | mingw* | pw32*) | 
 | 13472 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
 | 13473 |       # as there is no search path for DLLs. | 
 | 13474 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13475 |       allow_undefined_flag_F77=unsupported | 
 | 13476 |       always_export_symbols_F77=no | 
 | 13477 |       enable_shared_with_static_runtimes_F77=yes | 
 | 13478 |       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 13479 |  | 
 | 13480 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 13481 |         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 13482 | 	# If the export-symbols file already is a .def file (1st line | 
 | 13483 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 13484 | 	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 13485 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 13486 | 	else | 
 | 13487 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 13488 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13489 | 	fi~ | 
 | 13490 | 	$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] | 13491 |       else | 
 | 13492 | 	ld_shlibs=no | 
 | 13493 |       fi | 
 | 13494 |       ;; | 
 | 13495 |  | 
 | 13496 |     netbsd*) | 
 | 13497 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 13498 | 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 13499 | 	wlarc= | 
 | 13500 |       else | 
 | 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 |       fi | 
 | 13504 |       ;; | 
 | 13505 |  | 
 | 13506 |     solaris* | sysv5*) | 
 | 13507 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 13508 | 	ld_shlibs_F77=no | 
 | 13509 | 	cat <<EOF 1>&2 | 
 | 13510 |  | 
 | 13511 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 13512 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 13513 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 13514 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 13515 | *** your PATH or compiler configuration so that the native linker is | 
 | 13516 | *** used, and then restart. | 
 | 13517 |  | 
 | 13518 | EOF | 
 | 13519 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 13520 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13521 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 13522 |       else | 
 | 13523 | 	ld_shlibs_F77=no | 
 | 13524 |       fi | 
 | 13525 |       ;; | 
 | 13526 |  | 
 | 13527 |     sunos4*) | 
 | 13528 |       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 13529 |       wlarc= | 
 | 13530 |       hardcode_direct_F77=yes | 
 | 13531 |       hardcode_shlibpath_var_F77=no | 
 | 13532 |       ;; | 
 | 13533 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13534 |   linux*) | 
 | 13535 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 13536 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13537 | 	archive_cmds_F77="$tmp_archive_cmds" | 
 | 13538 |       supports_anon_versioning=no | 
 | 13539 |       case `$LD -v 2>/dev/null` in | 
 | 13540 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 13541 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 13542 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 13543 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 13544 |         *) supports_anon_versioning=yes ;; | 
 | 13545 |       esac | 
 | 13546 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13547 |         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 13548 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 13549 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13550 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 13551 |       else | 
 | 13552 |         archive_expsym_cmds_F77="$tmp_archive_cmds" | 
 | 13553 |       fi | 
 | 13554 |     else | 
 | 13555 |       ld_shlibs_F77=no | 
 | 13556 |     fi | 
 | 13557 |     ;; | 
 | 13558 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13559 |     *) | 
 | 13560 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 13561 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 13562 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 13563 |       else | 
 | 13564 | 	ld_shlibs_F77=no | 
 | 13565 |       fi | 
 | 13566 |       ;; | 
 | 13567 |     esac | 
 | 13568 |  | 
 | 13569 |     if test "$ld_shlibs_F77" = yes; then | 
 | 13570 |       runpath_var=LD_RUN_PATH | 
 | 13571 |       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
 | 13572 |       export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
 | 13573 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 13574 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 13575 |  	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 13576 |       else | 
 | 13577 |   	whole_archive_flag_spec_F77= | 
 | 13578 |       fi | 
 | 13579 |     fi | 
 | 13580 |   else | 
 | 13581 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 13582 |     case $host_os in | 
 | 13583 |     aix3*) | 
 | 13584 |       allow_undefined_flag_F77=unsupported | 
 | 13585 |       always_export_symbols_F77=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13586 |       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] | 13587 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 13588 |       # are no directories specified by -L. | 
 | 13589 |       hardcode_minus_L_F77=yes | 
 | 13590 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 13591 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 13592 | 	# broken collect2. | 
 | 13593 | 	hardcode_direct_F77=unsupported | 
 | 13594 |       fi | 
 | 13595 |       ;; | 
 | 13596 |  | 
 | 13597 |     aix4* | aix5*) | 
 | 13598 |       if test "$host_cpu" = ia64; then | 
 | 13599 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 13600 | 	# have to do anything special. | 
 | 13601 | 	aix_use_runtimelinking=no | 
 | 13602 | 	exp_sym_flag='-Bexport' | 
 | 13603 | 	no_entry_flag="" | 
 | 13604 |       else | 
 | 13605 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 13606 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 13607 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 13608 | 	  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' | 
 | 13609 | 	else | 
 | 13610 | 	  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' | 
 | 13611 | 	fi | 
 | 13612 | 	aix_use_runtimelinking=no | 
 | 13613 |  | 
 | 13614 | 	# Test if we are trying to use run time linking or normal | 
 | 13615 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 13616 | 	# need to do runtime linking. | 
 | 13617 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 13618 | 	  for ld_flag in $LDFLAGS; do | 
 | 13619 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 13620 |   	    aix_use_runtimelinking=yes | 
 | 13621 |   	    break | 
 | 13622 |   	  fi | 
 | 13623 | 	  done | 
 | 13624 | 	esac | 
 | 13625 |  | 
 | 13626 | 	exp_sym_flag='-bexport' | 
 | 13627 | 	no_entry_flag='-bnoentry' | 
 | 13628 |       fi | 
 | 13629 |  | 
 | 13630 |       # When large executables or shared objects are built, AIX ld can | 
 | 13631 |       # have problems creating the table of contents.  If linking a library | 
 | 13632 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 13633 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 13634 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 13635 |  | 
 | 13636 |       archive_cmds_F77='' | 
 | 13637 |       hardcode_direct_F77=yes | 
 | 13638 |       hardcode_libdir_separator_F77=':' | 
 | 13639 |       link_all_deplibs_F77=yes | 
 | 13640 |  | 
 | 13641 |       if test "$GCC" = yes; then | 
 | 13642 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 13643 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 13644 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 13645 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 13646 | 	  if test -f "$collect2name" && \ | 
 | 13647 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 13648 | 	  then | 
 | 13649 |   	  # We have reworked collect2 | 
 | 13650 |   	  hardcode_direct_F77=yes | 
 | 13651 | 	  else | 
 | 13652 |   	  # We have old collect2 | 
 | 13653 |   	  hardcode_direct_F77=unsupported | 
 | 13654 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 13655 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 13656 |   	  # to unsupported forces relinking | 
 | 13657 |   	  hardcode_minus_L_F77=yes | 
 | 13658 |   	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13659 |   	  hardcode_libdir_separator_F77= | 
 | 13660 | 	  fi | 
 | 13661 | 	esac | 
 | 13662 | 	shared_flag='-shared' | 
 | 13663 |       else | 
 | 13664 | 	# not using gcc | 
 | 13665 | 	if test "$host_cpu" = ia64; then | 
 | 13666 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 13667 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 13668 | 	  shared_flag='-G' | 
 | 13669 | 	else | 
 | 13670 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 13671 | 	    shared_flag='${wl}-G' | 
 | 13672 | 	  else | 
 | 13673 | 	    shared_flag='${wl}-bM:SRE' | 
 | 13674 |   	fi | 
 | 13675 | 	fi | 
 | 13676 |       fi | 
 | 13677 |  | 
 | 13678 |       # It seems that -bexpall does not export symbols beginning with | 
 | 13679 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 13680 |       always_export_symbols_F77=yes | 
 | 13681 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 13682 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 13683 | 	# -berok will link without error, but may produce a broken library. | 
 | 13684 | 	allow_undefined_flag_F77='-berok' | 
 | 13685 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 13686 |        cat >conftest.$ac_ext <<_ACEOF | 
 | 13687 |       program main | 
 | 13688 |  | 
 | 13689 |       end | 
 | 13690 | _ACEOF | 
 | 13691 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13693 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13694 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13695 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13696 |   rm -f conftest.er1 | 
 | 13697 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13698 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13699 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13700 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 13701 | 			 || test ! -s conftest.err' | 
 | 13702 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13703 |   (eval $ac_try) 2>&5 | 
 | 13704 |   ac_status=$? | 
 | 13705 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13706 |   (exit $ac_status); }; } && | 
 | 13707 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13708 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13709 |   (eval $ac_try) 2>&5 | 
 | 13710 |   ac_status=$? | 
 | 13711 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13712 |   (exit $ac_status); }; }; then | 
 | 13713 |  | 
 | 13714 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 13715 | }'` | 
 | 13716 | # Check for a 64-bit object if we didn't find anything. | 
 | 13717 | 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; } | 
 | 13718 | }'`; fi | 
 | 13719 | else | 
 | 13720 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13721 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13722 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13723 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13724 | rm -f conftest.err conftest.$ac_objext \ | 
 | 13725 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13726 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 13727 |  | 
 | 13728 |        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 13729 | 	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" | 
 | 13730 |        else | 
 | 13731 | 	if test "$host_cpu" = ia64; then | 
 | 13732 | 	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
 | 13733 | 	  allow_undefined_flag_F77="-z nodefs" | 
 | 13734 | 	  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" | 
 | 13735 | 	else | 
 | 13736 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 13737 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 13738 |       program main | 
 | 13739 |  | 
 | 13740 |       end | 
 | 13741 | _ACEOF | 
 | 13742 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13744 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13745 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13746 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13747 |   rm -f conftest.er1 | 
 | 13748 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13749 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13750 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13751 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 13752 | 			 || test ! -s conftest.err' | 
 | 13753 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13754 |   (eval $ac_try) 2>&5 | 
 | 13755 |   ac_status=$? | 
 | 13756 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13757 |   (exit $ac_status); }; } && | 
 | 13758 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13759 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13760 |   (eval $ac_try) 2>&5 | 
 | 13761 |   ac_status=$? | 
 | 13762 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13763 |   (exit $ac_status); }; }; then | 
 | 13764 |  | 
 | 13765 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 13766 | }'` | 
 | 13767 | # Check for a 64-bit object if we didn't find anything. | 
 | 13768 | 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; } | 
 | 13769 | }'`; fi | 
 | 13770 | else | 
 | 13771 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13772 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13773 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13774 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13775 | rm -f conftest.err conftest.$ac_objext \ | 
 | 13776 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13777 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 13778 |  | 
 | 13779 | 	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 13780 | 	  # Warning - without using the other run time loading flags, | 
 | 13781 | 	  # -berok will link without error, but may produce a broken library. | 
 | 13782 | 	  no_undefined_flag_F77=' ${wl}-bernotok' | 
 | 13783 | 	  allow_undefined_flag_F77=' ${wl}-berok' | 
 | 13784 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 13785 | 	  always_export_symbols_F77=yes | 
 | 13786 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 13787 | 	  whole_archive_flag_spec_F77=' ' | 
 | 13788 | 	  archive_cmds_need_lc_F77=yes | 
 | 13789 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13790 | 	  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] | 13791 | 	fi | 
 | 13792 |       fi | 
 | 13793 |       ;; | 
 | 13794 |  | 
 | 13795 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13796 |       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] | 13797 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13798 |       hardcode_minus_L_F77=yes | 
 | 13799 |       # see comment about different semantics on the GNU ld section | 
 | 13800 |       ld_shlibs_F77=no | 
 | 13801 |       ;; | 
 | 13802 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13803 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13804 |       export_dynamic_flag_spec_F77=-rdynamic | 
 | 13805 |       ;; | 
 | 13806 |  | 
 | 13807 |     cygwin* | mingw* | pw32*) | 
 | 13808 |       # When not using gcc, we currently assume that we are using | 
 | 13809 |       # Microsoft Visual C++. | 
 | 13810 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 13811 |       # no search path for DLLs. | 
 | 13812 |       hardcode_libdir_flag_spec_F77=' ' | 
 | 13813 |       allow_undefined_flag_F77=unsupported | 
 | 13814 |       # Tell ltmain to make .lib files, not .a files. | 
 | 13815 |       libext=lib | 
 | 13816 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13817 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13818 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13819 |       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] | 13820 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 13821 |       old_archive_From_new_cmds_F77='true' | 
 | 13822 |       # FIXME: Should let the user specify the lib program. | 
 | 13823 |       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 13824 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 13825 |       enable_shared_with_static_runtimes_F77=yes | 
 | 13826 |       ;; | 
 | 13827 |  | 
 | 13828 |     darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13829 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13830 |         rhapsody* | darwin1.[012]) | 
 | 13831 |          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | 
 | 13832 |          ;; | 
 | 13833 |        *) # Darwin 1.3 on | 
 | 13834 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 13835 |            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 13836 |          else | 
 | 13837 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 13838 |              10.[012]) | 
 | 13839 |                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 13840 |                ;; | 
 | 13841 |              10.*) | 
 | 13842 |                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | 
 | 13843 |                ;; | 
 | 13844 |            esac | 
 | 13845 |          fi | 
 | 13846 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13847 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13848 |       archive_cmds_need_lc_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13849 |       hardcode_direct_F77=no | 
 | 13850 |       hardcode_automatic_F77=yes | 
 | 13851 |       hardcode_shlibpath_var_F77=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13852 |       whole_archive_flag_spec_F77='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13853 |       link_all_deplibs_F77=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13854 |     if test "$GCC" = yes ; then | 
 | 13855 |     	output_verbose_link_cmd='echo' | 
 | 13856 |         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 13857 |       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 13858 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13859 |       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}' | 
 | 13860 |       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13861 |     else | 
 | 13862 |       case "$cc_basename" in | 
 | 13863 |         xlc*) | 
 | 13864 |          output_verbose_link_cmd='echo' | 
 | 13865 |          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 13866 |          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 13867 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13868 |          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}' | 
 | 13869 |           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13870 |           ;; | 
 | 13871 |        *) | 
 | 13872 |          ld_shlibs_F77=no | 
 | 13873 |           ;; | 
 | 13874 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13875 |     fi | 
 | 13876 |       ;; | 
 | 13877 |  | 
 | 13878 |     dgux*) | 
 | 13879 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13880 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13881 |       hardcode_shlibpath_var_F77=no | 
 | 13882 |       ;; | 
 | 13883 |  | 
 | 13884 |     freebsd1*) | 
 | 13885 |       ld_shlibs_F77=no | 
 | 13886 |       ;; | 
 | 13887 |  | 
 | 13888 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 13889 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 13890 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 13891 |     # extra space). | 
 | 13892 |     freebsd2.2*) | 
 | 13893 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 13894 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13895 |       hardcode_direct_F77=yes | 
 | 13896 |       hardcode_shlibpath_var_F77=no | 
 | 13897 |       ;; | 
 | 13898 |  | 
 | 13899 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 13900 |     freebsd2*) | 
 | 13901 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 13902 |       hardcode_direct_F77=yes | 
 | 13903 |       hardcode_minus_L_F77=yes | 
 | 13904 |       hardcode_shlibpath_var_F77=no | 
 | 13905 |       ;; | 
 | 13906 |  | 
 | 13907 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13908 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13909 |       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13910 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13911 |       hardcode_direct_F77=yes | 
 | 13912 |       hardcode_shlibpath_var_F77=no | 
 | 13913 |       ;; | 
 | 13914 |  | 
 | 13915 |     hpux9*) | 
 | 13916 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13917 | 	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] | 13918 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13919 | 	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] | 13920 |       fi | 
 | 13921 |       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13922 |       hardcode_libdir_separator_F77=: | 
 | 13923 |       hardcode_direct_F77=yes | 
 | 13924 |  | 
 | 13925 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 13926 |       # but as the default location of the library. | 
 | 13927 |       hardcode_minus_L_F77=yes | 
 | 13928 |       export_dynamic_flag_spec_F77='${wl}-E' | 
 | 13929 |       ;; | 
 | 13930 |  | 
 | 13931 |     hpux10* | hpux11*) | 
 | 13932 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 13933 | 	case "$host_cpu" in | 
 | 13934 | 	hppa*64*|ia64*) | 
 | 13935 | 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13936 | 	  ;; | 
 | 13937 | 	*) | 
 | 13938 | 	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13939 | 	  ;; | 
 | 13940 | 	esac | 
 | 13941 |       else | 
 | 13942 | 	case "$host_cpu" in | 
 | 13943 | 	hppa*64*|ia64*) | 
 | 13944 | 	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13945 | 	  ;; | 
 | 13946 | 	*) | 
 | 13947 | 	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 13948 | 	  ;; | 
 | 13949 | 	esac | 
 | 13950 |       fi | 
 | 13951 |       if test "$with_gnu_ld" = no; then | 
 | 13952 | 	case "$host_cpu" in | 
 | 13953 | 	hppa*64*) | 
 | 13954 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13955 | 	  hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
 | 13956 | 	  hardcode_libdir_separator_F77=: | 
 | 13957 | 	  hardcode_direct_F77=no | 
 | 13958 | 	  hardcode_shlibpath_var_F77=no | 
 | 13959 | 	  ;; | 
 | 13960 | 	ia64*) | 
 | 13961 | 	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13962 | 	  hardcode_direct_F77=no | 
 | 13963 | 	  hardcode_shlibpath_var_F77=no | 
 | 13964 |  | 
 | 13965 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 13966 | 	  # but as the default location of the library. | 
 | 13967 | 	  hardcode_minus_L_F77=yes | 
 | 13968 | 	  ;; | 
 | 13969 | 	*) | 
 | 13970 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13971 | 	  hardcode_libdir_separator_F77=: | 
 | 13972 | 	  hardcode_direct_F77=yes | 
 | 13973 | 	  export_dynamic_flag_spec_F77='${wl}-E' | 
 | 13974 |  | 
 | 13975 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 13976 | 	  # but as the default location of the library. | 
 | 13977 | 	  hardcode_minus_L_F77=yes | 
 | 13978 | 	  ;; | 
 | 13979 | 	esac | 
 | 13980 |       fi | 
 | 13981 |       ;; | 
 | 13982 |  | 
 | 13983 |     irix5* | irix6* | nonstopux*) | 
 | 13984 |       if test "$GCC" = yes; then | 
 | 13985 | 	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' | 
 | 13986 |       else | 
 | 13987 | 	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' | 
 | 13988 | 	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
 | 13989 |       fi | 
 | 13990 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 13991 |       hardcode_libdir_separator_F77=: | 
 | 13992 |       link_all_deplibs_F77=yes | 
 | 13993 |       ;; | 
 | 13994 |  | 
 | 13995 |     netbsd*) | 
 | 13996 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 13997 | 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 13998 |       else | 
 | 13999 | 	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 14000 |       fi | 
 | 14001 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 14002 |       hardcode_direct_F77=yes | 
 | 14003 |       hardcode_shlibpath_var_F77=no | 
 | 14004 |       ;; | 
 | 14005 |  | 
 | 14006 |     newsos6) | 
 | 14007 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14008 |       hardcode_direct_F77=yes | 
 | 14009 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 14010 |       hardcode_libdir_separator_F77=: | 
 | 14011 |       hardcode_shlibpath_var_F77=no | 
 | 14012 |       ;; | 
 | 14013 |  | 
 | 14014 |     openbsd*) | 
 | 14015 |       hardcode_direct_F77=yes | 
 | 14016 |       hardcode_shlibpath_var_F77=no | 
 | 14017 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 14018 | 	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] | 14019 | 	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] | 14020 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 14021 | 	export_dynamic_flag_spec_F77='${wl}-E' | 
 | 14022 |       else | 
 | 14023 |        case $host_os in | 
 | 14024 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 14025 | 	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 14026 | 	   hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 14027 | 	   ;; | 
 | 14028 | 	 *) | 
 | 14029 | 	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14030 | 	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 14031 | 	   ;; | 
 | 14032 |        esac | 
 | 14033 |       fi | 
 | 14034 |       ;; | 
 | 14035 |  | 
 | 14036 |     os2*) | 
 | 14037 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 14038 |       hardcode_minus_L_F77=yes | 
 | 14039 |       allow_undefined_flag_F77=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14040 |       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] | 14041 |       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 14042 |       ;; | 
 | 14043 |  | 
 | 14044 |     osf3*) | 
 | 14045 |       if test "$GCC" = yes; then | 
 | 14046 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 14047 | 	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' | 
 | 14048 |       else | 
 | 14049 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 14050 | 	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' | 
 | 14051 |       fi | 
 | 14052 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 14053 |       hardcode_libdir_separator_F77=: | 
 | 14054 |       ;; | 
 | 14055 |  | 
 | 14056 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 14057 |       if test "$GCC" = yes; then | 
 | 14058 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 14059 | 	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' | 
 | 14060 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 14061 |       else | 
 | 14062 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 14063 | 	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14064 | 	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~ | 
 | 14065 | 	$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' | 
 | 14066 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14067 | 	# Both c and cxx compiler support -rpath directly | 
 | 14068 | 	hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
 | 14069 |       fi | 
 | 14070 |       hardcode_libdir_separator_F77=: | 
 | 14071 |       ;; | 
 | 14072 |  | 
 | 14073 |     sco3.2v5*) | 
 | 14074 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14075 |       hardcode_shlibpath_var_F77=no | 
 | 14076 |       export_dynamic_flag_spec_F77='${wl}-Bexport' | 
 | 14077 |       runpath_var=LD_RUN_PATH | 
 | 14078 |       hardcode_runpath_var=yes | 
 | 14079 |       ;; | 
 | 14080 |  | 
 | 14081 |     solaris*) | 
 | 14082 |       no_undefined_flag_F77=' -z text' | 
 | 14083 |       if test "$GCC" = yes; then | 
 | 14084 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14085 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 14086 | 	  $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] | 14087 |       else | 
 | 14088 | 	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14089 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 14090 |   	$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] | 14091 |       fi | 
 | 14092 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 14093 |       hardcode_shlibpath_var_F77=no | 
 | 14094 |       case $host_os in | 
 | 14095 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 14096 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 14097 | 	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
 | 14098 |       esac | 
 | 14099 |       link_all_deplibs_F77=yes | 
 | 14100 |       ;; | 
 | 14101 |  | 
 | 14102 |     sunos4*) | 
 | 14103 |       if test "x$host_vendor" = xsequent; then | 
 | 14104 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 14105 | 	# files that make .init and .fini sections work. | 
 | 14106 | 	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14107 |       else | 
 | 14108 | 	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 14109 |       fi | 
 | 14110 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 14111 |       hardcode_direct_F77=yes | 
 | 14112 |       hardcode_minus_L_F77=yes | 
 | 14113 |       hardcode_shlibpath_var_F77=no | 
 | 14114 |       ;; | 
 | 14115 |  | 
 | 14116 |     sysv4) | 
 | 14117 |       case $host_vendor in | 
 | 14118 | 	sni) | 
 | 14119 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14120 | 	  hardcode_direct_F77=yes # is this really true??? | 
 | 14121 | 	;; | 
 | 14122 | 	siemens) | 
 | 14123 | 	  ## LD is ld it makes a PLAMLIB | 
 | 14124 | 	  ## CC just makes a GrossModule. | 
 | 14125 | 	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 14126 | 	  reload_cmds_F77='$CC -r -o $output$reload_objs' | 
 | 14127 | 	  hardcode_direct_F77=no | 
 | 14128 |         ;; | 
 | 14129 | 	motorola) | 
 | 14130 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14131 | 	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
 | 14132 | 	;; | 
 | 14133 |       esac | 
 | 14134 |       runpath_var='LD_RUN_PATH' | 
 | 14135 |       hardcode_shlibpath_var_F77=no | 
 | 14136 |       ;; | 
 | 14137 |  | 
 | 14138 |     sysv4.3*) | 
 | 14139 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14140 |       hardcode_shlibpath_var_F77=no | 
 | 14141 |       export_dynamic_flag_spec_F77='-Bexport' | 
 | 14142 |       ;; | 
 | 14143 |  | 
 | 14144 |     sysv4*MP*) | 
 | 14145 |       if test -d /usr/nec; then | 
 | 14146 | 	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14147 | 	hardcode_shlibpath_var_F77=no | 
 | 14148 | 	runpath_var=LD_RUN_PATH | 
 | 14149 | 	hardcode_runpath_var=yes | 
 | 14150 | 	ld_shlibs_F77=yes | 
 | 14151 |       fi | 
 | 14152 |       ;; | 
 | 14153 |  | 
 | 14154 |     sysv4.2uw2*) | 
 | 14155 |       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 14156 |       hardcode_direct_F77=yes | 
 | 14157 |       hardcode_minus_L_F77=no | 
 | 14158 |       hardcode_shlibpath_var_F77=no | 
 | 14159 |       hardcode_runpath_var=yes | 
 | 14160 |       runpath_var=LD_RUN_PATH | 
 | 14161 |       ;; | 
 | 14162 |  | 
 | 14163 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 14164 |       no_undefined_flag_F77='${wl}-z ${wl}text' | 
 | 14165 |       if test "$GCC" = yes; then | 
 | 14166 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14167 |       else | 
 | 14168 | 	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14169 |       fi | 
 | 14170 |       runpath_var='LD_RUN_PATH' | 
 | 14171 |       hardcode_shlibpath_var_F77=no | 
 | 14172 |       ;; | 
 | 14173 |  | 
 | 14174 |     sysv5*) | 
 | 14175 |       no_undefined_flag_F77=' -z text' | 
 | 14176 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 14177 |       # object files and a static libstdc++, better avoid it by now | 
 | 14178 |       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14179 |       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 14180 |   		$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] | 14181 |       hardcode_libdir_flag_spec_F77= | 
 | 14182 |       hardcode_shlibpath_var_F77=no | 
 | 14183 |       runpath_var='LD_RUN_PATH' | 
 | 14184 |       ;; | 
 | 14185 |  | 
 | 14186 |     uts4*) | 
 | 14187 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14188 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 14189 |       hardcode_shlibpath_var_F77=no | 
 | 14190 |       ;; | 
 | 14191 |  | 
 | 14192 |     *) | 
 | 14193 |       ld_shlibs_F77=no | 
 | 14194 |       ;; | 
 | 14195 |     esac | 
 | 14196 |   fi | 
 | 14197 |  | 
 | 14198 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
 | 14199 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 
 | 14200 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 14201 |  | 
 | 14202 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 14203 | if test "$GCC" = yes; then | 
 | 14204 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 14205 | fi | 
 | 14206 |  | 
 | 14207 | # | 
 | 14208 | # Do we need to explicitly link libc? | 
 | 14209 | # | 
 | 14210 | case "x$archive_cmds_need_lc_F77" in | 
 | 14211 | x|xyes) | 
 | 14212 |   # Assume -lc should be added | 
 | 14213 |   archive_cmds_need_lc_F77=yes | 
 | 14214 |  | 
 | 14215 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 14216 |     case $archive_cmds_F77 in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14217 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14218 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 14219 |       ;; | 
 | 14220 |     '$CC '*) | 
 | 14221 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 14222 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 14223 |       # to ld, don't add -lc before -lgcc. | 
 | 14224 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 14225 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 14226 |       $rm conftest* | 
 | 14227 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 14228 |  | 
 | 14229 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 14230 |   (eval $ac_compile) 2>&5 | 
 | 14231 |   ac_status=$? | 
 | 14232 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14233 |   (exit $ac_status); } 2>conftest.err; then | 
 | 14234 |         soname=conftest | 
 | 14235 |         lib=conftest | 
 | 14236 |         libobjs=conftest.$ac_objext | 
 | 14237 |         deplibs= | 
 | 14238 |         wl=$lt_prog_compiler_wl_F77 | 
 | 14239 |         compiler_flags=-v | 
 | 14240 |         linker_flags=-v | 
 | 14241 |         verstring= | 
 | 14242 |         output_objdir=. | 
 | 14243 |         libname=conftest | 
 | 14244 |         lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
 | 14245 |         allow_undefined_flag_F77= | 
 | 14246 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 14247 |   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 14248 |   ac_status=$? | 
 | 14249 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14250 |   (exit $ac_status); } | 
 | 14251 |         then | 
 | 14252 | 	  archive_cmds_need_lc_F77=no | 
 | 14253 |         else | 
 | 14254 | 	  archive_cmds_need_lc_F77=yes | 
 | 14255 |         fi | 
 | 14256 |         allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
 | 14257 |       else | 
 | 14258 |         cat conftest.err 1>&5 | 
 | 14259 |       fi | 
 | 14260 |       $rm conftest* | 
 | 14261 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
 | 14262 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 
 | 14263 |       ;; | 
 | 14264 |     esac | 
 | 14265 |   fi | 
 | 14266 |   ;; | 
 | 14267 | esac | 
 | 14268 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14269 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 14270 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 14271 | library_names_spec= | 
 | 14272 | libname_spec='lib$name' | 
 | 14273 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14274 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14275 | postinstall_cmds= | 
 | 14276 | postuninstall_cmds= | 
 | 14277 | finish_cmds= | 
 | 14278 | finish_eval= | 
 | 14279 | shlibpath_var= | 
 | 14280 | shlibpath_overrides_runpath=unknown | 
 | 14281 | version_type=none | 
 | 14282 | dynamic_linker="$host_os ld.so" | 
 | 14283 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 14284 | if test "$GCC" = yes; then | 
 | 14285 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 14286 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 14287 |     # if the path contains ";" then we assume it to be the separator | 
 | 14288 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 14289 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 14290 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 14291 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 14292 |   else | 
 | 14293 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 14294 |   fi | 
 | 14295 | else | 
 | 14296 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 14297 | fi | 
 | 14298 | need_lib_prefix=unknown | 
 | 14299 | hardcode_into_libs=no | 
 | 14300 |  | 
 | 14301 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 14302 | # flags to be left without arguments | 
 | 14303 | need_version=unknown | 
 | 14304 |  | 
 | 14305 | case $host_os in | 
 | 14306 | aix3*) | 
 | 14307 |   version_type=linux | 
 | 14308 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 14309 |   shlibpath_var=LIBPATH | 
 | 14310 |  | 
 | 14311 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 14312 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14313 |   ;; | 
 | 14314 |  | 
 | 14315 | aix4* | aix5*) | 
 | 14316 |   version_type=linux | 
 | 14317 |   need_lib_prefix=no | 
 | 14318 |   need_version=no | 
 | 14319 |   hardcode_into_libs=yes | 
 | 14320 |   if test "$host_cpu" = ia64; then | 
 | 14321 |     # AIX 5 supports IA64 | 
 | 14322 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 14323 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 14324 |   else | 
 | 14325 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 14326 |     # for dependence libraries.  The import file would start with | 
 | 14327 |     # the line `#! .'.  This would cause the generated library to | 
 | 14328 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 14329 |     # development snapshots of GCC prior to 3.0. | 
 | 14330 |     case $host_os in | 
 | 14331 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 14332 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 14333 | 	   echo ' yes ' | 
 | 14334 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 14335 | 	: | 
 | 14336 |       else | 
 | 14337 | 	can_build_shared=no | 
 | 14338 |       fi | 
 | 14339 |       ;; | 
 | 14340 |     esac | 
 | 14341 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 14342 |     # soname into executable. Probably we can add versioning support to | 
 | 14343 |     # collect2, so additional links can be useful in future. | 
 | 14344 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 14345 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 14346 |       # instead of lib<name>.a to let people know that these are not | 
 | 14347 |       # typical AIX shared libraries. | 
 | 14348 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14349 |     else | 
 | 14350 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 14351 |       # and later when we are not doing run time linking. | 
 | 14352 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 14353 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14354 |     fi | 
 | 14355 |     shlibpath_var=LIBPATH | 
 | 14356 |   fi | 
 | 14357 |   ;; | 
 | 14358 |  | 
 | 14359 | amigaos*) | 
 | 14360 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 14361 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14362 |   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] | 14363 |   ;; | 
 | 14364 |  | 
 | 14365 | beos*) | 
 | 14366 |   library_names_spec='${libname}${shared_ext}' | 
 | 14367 |   dynamic_linker="$host_os ld.so" | 
 | 14368 |   shlibpath_var=LIBRARY_PATH | 
 | 14369 |   ;; | 
 | 14370 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14371 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14372 |   version_type=linux | 
 | 14373 |   need_version=no | 
 | 14374 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14375 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14376 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 14377 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14378 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 14379 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 14380 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 14381 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 14382 |   # libtool to hard-code these into programs | 
 | 14383 |   ;; | 
 | 14384 |  | 
 | 14385 | cygwin* | mingw* | pw32*) | 
 | 14386 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14387 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14388 |   need_version=no | 
 | 14389 |   need_lib_prefix=no | 
 | 14390 |  | 
 | 14391 |   case $GCC,$host_os in | 
 | 14392 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 14393 |     library_names_spec='$libname.dll.a' | 
 | 14394 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14395 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 14396 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 14397 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 14398 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14399 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14400 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 14401 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14402 |        $rm \$dlpath' | 
 | 14403 |     shlibpath_overrides_runpath=yes | 
 | 14404 |  | 
 | 14405 |     case $host_os in | 
 | 14406 |     cygwin*) | 
 | 14407 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 14408 |       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] | 14409 |       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] | 14410 |       ;; | 
 | 14411 |     mingw*) | 
 | 14412 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 14413 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 14414 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 14415 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 14416 |         # It is most probably a Windows format PATH printed by | 
 | 14417 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 14418 |         # path with ; separators, and with drive letters. We can handle the | 
 | 14419 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 14420 |         # especially as we might pass files found there to a mingw objdump, | 
 | 14421 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 14422 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 14423 |       else | 
 | 14424 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 14425 |       fi | 
 | 14426 |       ;; | 
 | 14427 |     pw32*) | 
 | 14428 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 14429 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 14430 |       ;; | 
 | 14431 |     esac | 
 | 14432 |     ;; | 
 | 14433 |  | 
 | 14434 |   *) | 
 | 14435 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 14436 |     ;; | 
 | 14437 |   esac | 
 | 14438 |   dynamic_linker='Win32 ld.exe' | 
 | 14439 |   # FIXME: first we should search . and the directory the executable is in | 
 | 14440 |   shlibpath_var=PATH | 
 | 14441 |   ;; | 
 | 14442 |  | 
 | 14443 | darwin* | rhapsody*) | 
 | 14444 |   dynamic_linker="$host_os dyld" | 
 | 14445 |   version_type=darwin | 
 | 14446 |   need_lib_prefix=no | 
 | 14447 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14448 |   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] | 14449 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 14450 |   shlibpath_overrides_runpath=yes | 
 | 14451 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14452 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14453 |   # 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] | 14454 |   if test "$GCC" = yes; then | 
 | 14455 |     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"` | 
 | 14456 |   else | 
 | 14457 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14458 |   fi | 
 | 14459 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 14460 |   ;; | 
 | 14461 |  | 
 | 14462 | dgux*) | 
 | 14463 |   version_type=linux | 
 | 14464 |   need_lib_prefix=no | 
 | 14465 |   need_version=no | 
 | 14466 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 14467 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14468 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14469 |   ;; | 
 | 14470 |  | 
 | 14471 | freebsd1*) | 
 | 14472 |   dynamic_linker=no | 
 | 14473 |   ;; | 
 | 14474 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14475 | kfreebsd*-gnu) | 
 | 14476 |   version_type=linux | 
 | 14477 |   need_lib_prefix=no | 
 | 14478 |   need_version=no | 
 | 14479 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 14480 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14481 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14482 |   shlibpath_overrides_runpath=no | 
 | 14483 |   hardcode_into_libs=yes | 
 | 14484 |   dynamic_linker='GNU ld.so' | 
 | 14485 |   ;; | 
 | 14486 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14487 | freebsd*) | 
 | 14488 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 14489 |   version_type=freebsd-$objformat | 
 | 14490 |   case $version_type in | 
 | 14491 |     freebsd-elf*) | 
 | 14492 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 14493 |       need_version=no | 
 | 14494 |       need_lib_prefix=no | 
 | 14495 |       ;; | 
 | 14496 |     freebsd-*) | 
 | 14497 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 14498 |       need_version=yes | 
 | 14499 |       ;; | 
 | 14500 |   esac | 
 | 14501 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14502 |   case $host_os in | 
 | 14503 |   freebsd2*) | 
 | 14504 |     shlibpath_overrides_runpath=yes | 
 | 14505 |     ;; | 
 | 14506 |   freebsd3.01* | freebsdelf3.01*) | 
 | 14507 |     shlibpath_overrides_runpath=yes | 
 | 14508 |     hardcode_into_libs=yes | 
 | 14509 |     ;; | 
 | 14510 |   *) # from 3.2 on | 
 | 14511 |     shlibpath_overrides_runpath=no | 
 | 14512 |     hardcode_into_libs=yes | 
 | 14513 |     ;; | 
 | 14514 |   esac | 
 | 14515 |   ;; | 
 | 14516 |  | 
 | 14517 | gnu*) | 
 | 14518 |   version_type=linux | 
 | 14519 |   need_lib_prefix=no | 
 | 14520 |   need_version=no | 
 | 14521 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 14522 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14523 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14524 |   hardcode_into_libs=yes | 
 | 14525 |   ;; | 
 | 14526 |  | 
 | 14527 | hpux9* | hpux10* | hpux11*) | 
 | 14528 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 14529 |   # link against other versions. | 
 | 14530 |   version_type=sunos | 
 | 14531 |   need_lib_prefix=no | 
 | 14532 |   need_version=no | 
 | 14533 |   case "$host_cpu" in | 
 | 14534 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14535 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14536 |     hardcode_into_libs=yes | 
 | 14537 |     dynamic_linker="$host_os dld.so" | 
 | 14538 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 14539 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 14540 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14541 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14542 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 14543 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 14544 |     else | 
 | 14545 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 14546 |     fi | 
 | 14547 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 14548 |     ;; | 
 | 14549 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14550 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14551 |      hardcode_into_libs=yes | 
 | 14552 |      dynamic_linker="$host_os dld.sl" | 
 | 14553 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 14554 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 14555 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14556 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14557 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 14558 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 14559 |      ;; | 
 | 14560 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14561 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14562 |     dynamic_linker="$host_os dld.sl" | 
 | 14563 |     shlibpath_var=SHLIB_PATH | 
 | 14564 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 14565 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14566 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14567 |     ;; | 
 | 14568 |   esac | 
 | 14569 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 14570 |   postinstall_cmds='chmod 555 $lib' | 
 | 14571 |   ;; | 
 | 14572 |  | 
 | 14573 | irix5* | irix6* | nonstopux*) | 
 | 14574 |   case $host_os in | 
 | 14575 |     nonstopux*) version_type=nonstopux ;; | 
 | 14576 |     *) | 
 | 14577 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 14578 | 		version_type=linux | 
 | 14579 | 	else | 
 | 14580 | 		version_type=irix | 
 | 14581 | 	fi ;; | 
 | 14582 |   esac | 
 | 14583 |   need_lib_prefix=no | 
 | 14584 |   need_version=no | 
 | 14585 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14586 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 14587 |   case $host_os in | 
 | 14588 |   irix5* | nonstopux*) | 
 | 14589 |     libsuff= shlibsuff= | 
 | 14590 |     ;; | 
 | 14591 |   *) | 
 | 14592 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 14593 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 14594 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 14595 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 14596 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 14597 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 14598 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 14599 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 14600 |     esac | 
 | 14601 |     ;; | 
 | 14602 |   esac | 
 | 14603 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 14604 |   shlibpath_overrides_runpath=no | 
 | 14605 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 14606 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 14607 |   hardcode_into_libs=yes | 
 | 14608 |   ;; | 
 | 14609 |  | 
 | 14610 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 14611 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 14612 |   dynamic_linker=no | 
 | 14613 |   ;; | 
 | 14614 |  | 
 | 14615 | # This must be Linux ELF. | 
 | 14616 | linux*) | 
 | 14617 |   version_type=linux | 
 | 14618 |   need_lib_prefix=no | 
 | 14619 |   need_version=no | 
 | 14620 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14621 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14622 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 14623 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14624 |   shlibpath_overrides_runpath=no | 
 | 14625 |   # This implies no fast_install, which is unacceptable. | 
 | 14626 |   # Some rework will be needed to allow for fast_install | 
 | 14627 |   # before this can be enabled. | 
 | 14628 |   hardcode_into_libs=yes | 
 | 14629 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14630 |   # Append ld.so.conf contents to the search path | 
 | 14631 |   if test -f /etc/ld.so.conf; then | 
 | 14632 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 14633 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 14634 |   fi | 
 | 14635 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14636 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 14637 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 14638 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 14639 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 14640 |   # people can always --disable-shared, the test was removed, and we | 
 | 14641 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 14642 |   dynamic_linker='GNU/Linux ld.so' | 
 | 14643 |   ;; | 
 | 14644 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14645 | knetbsd*-gnu) | 
 | 14646 |   version_type=linux | 
 | 14647 |   need_lib_prefix=no | 
 | 14648 |   need_version=no | 
 | 14649 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 14650 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14651 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14652 |   shlibpath_overrides_runpath=no | 
 | 14653 |   hardcode_into_libs=yes | 
 | 14654 |   dynamic_linker='GNU ld.so' | 
 | 14655 |   ;; | 
 | 14656 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14657 | netbsd*) | 
 | 14658 |   version_type=sunos | 
 | 14659 |   need_lib_prefix=no | 
 | 14660 |   need_version=no | 
 | 14661 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 14662 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14663 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 14664 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 14665 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14666 |     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] | 14667 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14668 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 14669 |   fi | 
 | 14670 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14671 |   shlibpath_overrides_runpath=yes | 
 | 14672 |   hardcode_into_libs=yes | 
 | 14673 |   ;; | 
 | 14674 |  | 
 | 14675 | newsos6) | 
 | 14676 |   version_type=linux | 
 | 14677 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14678 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14679 |   shlibpath_overrides_runpath=yes | 
 | 14680 |   ;; | 
 | 14681 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14682 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14683 |   version_type=linux | 
 | 14684 |   need_lib_prefix=no | 
 | 14685 |   need_version=no | 
 | 14686 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14687 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14688 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14689 |   shlibpath_overrides_runpath=yes | 
 | 14690 |   ;; | 
 | 14691 |  | 
 | 14692 | openbsd*) | 
 | 14693 |   version_type=sunos | 
 | 14694 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 14695 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14696 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14697 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 14698 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14699 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 14700 |     case $host_os in | 
 | 14701 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 14702 | 	shlibpath_overrides_runpath=no | 
 | 14703 | 	;; | 
 | 14704 |       *) | 
 | 14705 | 	shlibpath_overrides_runpath=yes | 
 | 14706 | 	;; | 
 | 14707 |       esac | 
 | 14708 |   else | 
 | 14709 |     shlibpath_overrides_runpath=yes | 
 | 14710 |   fi | 
 | 14711 |   ;; | 
 | 14712 |  | 
 | 14713 | os2*) | 
 | 14714 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14715 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14716 |   need_lib_prefix=no | 
 | 14717 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 14718 |   dynamic_linker='OS/2 ld.exe' | 
 | 14719 |   shlibpath_var=LIBPATH | 
 | 14720 |   ;; | 
 | 14721 |  | 
 | 14722 | osf3* | osf4* | osf5*) | 
 | 14723 |   version_type=osf | 
 | 14724 |   need_lib_prefix=no | 
 | 14725 |   need_version=no | 
 | 14726 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14727 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14728 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14729 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 14730 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 14731 |   ;; | 
 | 14732 |  | 
 | 14733 | sco3.2v5*) | 
 | 14734 |   version_type=osf | 
 | 14735 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14736 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14737 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14738 |   ;; | 
 | 14739 |  | 
 | 14740 | solaris*) | 
 | 14741 |   version_type=linux | 
 | 14742 |   need_lib_prefix=no | 
 | 14743 |   need_version=no | 
 | 14744 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14745 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14746 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14747 |   shlibpath_overrides_runpath=yes | 
 | 14748 |   hardcode_into_libs=yes | 
 | 14749 |   # ldd complains unless libraries are executable | 
 | 14750 |   postinstall_cmds='chmod +x $lib' | 
 | 14751 |   ;; | 
 | 14752 |  | 
 | 14753 | sunos4*) | 
 | 14754 |   version_type=sunos | 
 | 14755 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14756 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 14757 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14758 |   shlibpath_overrides_runpath=yes | 
 | 14759 |   if test "$with_gnu_ld" = yes; then | 
 | 14760 |     need_lib_prefix=no | 
 | 14761 |   fi | 
 | 14762 |   need_version=yes | 
 | 14763 |   ;; | 
 | 14764 |  | 
 | 14765 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 14766 |   version_type=linux | 
 | 14767 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14768 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14769 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14770 |   case $host_vendor in | 
 | 14771 |     sni) | 
 | 14772 |       shlibpath_overrides_runpath=no | 
 | 14773 |       need_lib_prefix=no | 
 | 14774 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 14775 |       runpath_var=LD_RUN_PATH | 
 | 14776 |       ;; | 
 | 14777 |     siemens) | 
 | 14778 |       need_lib_prefix=no | 
 | 14779 |       ;; | 
 | 14780 |     motorola) | 
 | 14781 |       need_lib_prefix=no | 
 | 14782 |       need_version=no | 
 | 14783 |       shlibpath_overrides_runpath=no | 
 | 14784 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 14785 |       ;; | 
 | 14786 |   esac | 
 | 14787 |   ;; | 
 | 14788 |  | 
 | 14789 | sysv4*MP*) | 
 | 14790 |   if test -d /usr/nec ;then | 
 | 14791 |     version_type=linux | 
 | 14792 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 14793 |     soname_spec='$libname${shared_ext}.$major' | 
 | 14794 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 14795 |   fi | 
 | 14796 |   ;; | 
 | 14797 |  | 
 | 14798 | uts4*) | 
 | 14799 |   version_type=linux | 
 | 14800 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14801 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14802 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14803 |   ;; | 
 | 14804 |  | 
 | 14805 | *) | 
 | 14806 |   dynamic_linker=no | 
 | 14807 |   ;; | 
 | 14808 | esac | 
 | 14809 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 14810 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 14811 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 14812 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14813 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 14814 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 14815 | hardcode_action_F77= | 
 | 14816 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
 | 14817 |    test -n "$runpath_var_F77" || \ | 
 | 14818 |    test "X$hardcode_automatic_F77" = "Xyes" ; then | 
 | 14819 |  | 
 | 14820 |   # We can hardcode non-existant directories. | 
 | 14821 |   if test "$hardcode_direct_F77" != no && | 
 | 14822 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 14823 |      # have to relink, otherwise we might link with an installed library | 
 | 14824 |      # when we should be linking with a yet-to-be-installed one | 
 | 14825 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
 | 14826 |      test "$hardcode_minus_L_F77" != no; then | 
 | 14827 |     # Linking always hardcodes the temporary library directory. | 
 | 14828 |     hardcode_action_F77=relink | 
 | 14829 |   else | 
 | 14830 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 14831 |     hardcode_action_F77=immediate | 
 | 14832 |   fi | 
 | 14833 | else | 
 | 14834 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 14835 |   # directories. | 
 | 14836 |   hardcode_action_F77=unsupported | 
 | 14837 | fi | 
 | 14838 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
 | 14839 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 
 | 14840 |  | 
 | 14841 | if test "$hardcode_action_F77" = relink; then | 
 | 14842 |   # Fast installation is not supported | 
 | 14843 |   enable_fast_install=no | 
 | 14844 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 14845 |      test "$enable_shared" = no; then | 
 | 14846 |   # Fast installation is not necessary | 
 | 14847 |   enable_fast_install=needless | 
 | 14848 | fi | 
 | 14849 |  | 
 | 14850 | striplib= | 
 | 14851 | old_striplib= | 
 | 14852 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 14853 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 14854 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 14855 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 14856 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 14857 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 14858 | echo "${ECHO_T}yes" >&6 | 
 | 14859 | else | 
 | 14860 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 14861 |   case $host_os in | 
 | 14862 |    darwin*) | 
 | 14863 |        if test -n "$STRIP" ; then | 
 | 14864 |          striplib="$STRIP -x" | 
 | 14865 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 14866 | echo "${ECHO_T}yes" >&6 | 
 | 14867 |        else | 
 | 14868 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 14869 | echo "${ECHO_T}no" >&6 | 
 | 14870 | fi | 
 | 14871 |        ;; | 
 | 14872 |    *) | 
 | 14873 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 14874 | echo "${ECHO_T}no" >&6 | 
 | 14875 |     ;; | 
 | 14876 |   esac | 
 | 14877 | fi | 
 | 14878 |  | 
 | 14879 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14880 |  | 
 | 14881 | # The else clause should only fire when bootstrapping the | 
 | 14882 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 14883 | # with your package, and you will get complaints that there are | 
 | 14884 | # no rules to generate ltmain.sh. | 
 | 14885 | if test -f "$ltmain"; then | 
 | 14886 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 14887 |   # without removal of \ escapes. | 
 | 14888 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 14889 |     setopt NO_GLOB_SUBST | 
 | 14890 |   fi | 
 | 14891 |   # Now quote all the things that may contain metacharacters while being | 
 | 14892 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 14893 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14894 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 14895 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14896 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 14897 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 14898 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 14899 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 14900 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 14901 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 14902 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 14903 |     compiler_F77 \ | 
 | 14904 |     CC_F77 \ | 
 | 14905 |     LD_F77 \ | 
 | 14906 |     lt_prog_compiler_wl_F77 \ | 
 | 14907 |     lt_prog_compiler_pic_F77 \ | 
 | 14908 |     lt_prog_compiler_static_F77 \ | 
 | 14909 |     lt_prog_compiler_no_builtin_flag_F77 \ | 
 | 14910 |     export_dynamic_flag_spec_F77 \ | 
 | 14911 |     thread_safe_flag_spec_F77 \ | 
 | 14912 |     whole_archive_flag_spec_F77 \ | 
 | 14913 |     enable_shared_with_static_runtimes_F77 \ | 
 | 14914 |     old_archive_cmds_F77 \ | 
 | 14915 |     old_archive_from_new_cmds_F77 \ | 
 | 14916 |     predep_objects_F77 \ | 
 | 14917 |     postdep_objects_F77 \ | 
 | 14918 |     predeps_F77 \ | 
 | 14919 |     postdeps_F77 \ | 
 | 14920 |     compiler_lib_search_path_F77 \ | 
 | 14921 |     archive_cmds_F77 \ | 
 | 14922 |     archive_expsym_cmds_F77 \ | 
 | 14923 |     postinstall_cmds_F77 \ | 
 | 14924 |     postuninstall_cmds_F77 \ | 
 | 14925 |     old_archive_from_expsyms_cmds_F77 \ | 
 | 14926 |     allow_undefined_flag_F77 \ | 
 | 14927 |     no_undefined_flag_F77 \ | 
 | 14928 |     export_symbols_cmds_F77 \ | 
 | 14929 |     hardcode_libdir_flag_spec_F77 \ | 
 | 14930 |     hardcode_libdir_flag_spec_ld_F77 \ | 
 | 14931 |     hardcode_libdir_separator_F77 \ | 
 | 14932 |     hardcode_automatic_F77 \ | 
 | 14933 |     module_cmds_F77 \ | 
 | 14934 |     module_expsym_cmds_F77 \ | 
 | 14935 |     lt_cv_prog_compiler_c_o_F77 \ | 
 | 14936 |     exclude_expsyms_F77 \ | 
 | 14937 |     include_expsyms_F77; do | 
 | 14938 |  | 
 | 14939 |     case $var in | 
 | 14940 |     old_archive_cmds_F77 | \ | 
 | 14941 |     old_archive_from_new_cmds_F77 | \ | 
 | 14942 |     archive_cmds_F77 | \ | 
 | 14943 |     archive_expsym_cmds_F77 | \ | 
 | 14944 |     module_cmds_F77 | \ | 
 | 14945 |     module_expsym_cmds_F77 | \ | 
 | 14946 |     old_archive_from_expsyms_cmds_F77 | \ | 
 | 14947 |     export_symbols_cmds_F77 | \ | 
 | 14948 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 14949 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 14950 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 14951 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 14952 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14953 |       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] | 14954 |       ;; | 
 | 14955 |     *) | 
 | 14956 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 14957 |       ;; | 
 | 14958 |     esac | 
 | 14959 |   done | 
 | 14960 |  | 
 | 14961 |   case $lt_echo in | 
 | 14962 |   *'\$0 --fallback-echo"') | 
 | 14963 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 14964 |     ;; | 
 | 14965 |   esac | 
 | 14966 |  | 
 | 14967 | cfgfile="$ofile" | 
 | 14968 |  | 
 | 14969 |   cat <<__EOF__ >> "$cfgfile" | 
 | 14970 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 14971 |  | 
 | 14972 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 14973 |  | 
 | 14974 | # Shell to use when invoking shell scripts. | 
 | 14975 | SHELL=$lt_SHELL | 
 | 14976 |  | 
 | 14977 | # Whether or not to build shared libraries. | 
 | 14978 | build_libtool_libs=$enable_shared | 
 | 14979 |  | 
 | 14980 | # Whether or not to build static libraries. | 
 | 14981 | build_old_libs=$enable_static | 
 | 14982 |  | 
 | 14983 | # Whether or not to add -lc for building shared libraries. | 
 | 14984 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
 | 14985 |  | 
 | 14986 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 14987 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
 | 14988 |  | 
 | 14989 | # Whether or not to optimize for fast installation. | 
 | 14990 | fast_install=$enable_fast_install | 
 | 14991 |  | 
 | 14992 | # The host system. | 
 | 14993 | host_alias=$host_alias | 
 | 14994 | host=$host | 
 | 14995 |  | 
 | 14996 | # An echo program that does not interpret backslashes. | 
 | 14997 | echo=$lt_echo | 
 | 14998 |  | 
 | 14999 | # The archiver. | 
 | 15000 | AR=$lt_AR | 
 | 15001 | AR_FLAGS=$lt_AR_FLAGS | 
 | 15002 |  | 
 | 15003 | # A C compiler. | 
 | 15004 | LTCC=$lt_LTCC | 
 | 15005 |  | 
 | 15006 | # A language-specific compiler. | 
 | 15007 | CC=$lt_compiler_F77 | 
 | 15008 |  | 
 | 15009 | # Is the compiler the GNU C compiler? | 
 | 15010 | with_gcc=$GCC_F77 | 
 | 15011 |  | 
 | 15012 | # An ERE matcher. | 
 | 15013 | EGREP=$lt_EGREP | 
 | 15014 |  | 
 | 15015 | # The linker used to build libraries. | 
 | 15016 | LD=$lt_LD_F77 | 
 | 15017 |  | 
 | 15018 | # Whether we need hard or soft links. | 
 | 15019 | LN_S=$lt_LN_S | 
 | 15020 |  | 
 | 15021 | # A BSD-compatible nm program. | 
 | 15022 | NM=$lt_NM | 
 | 15023 |  | 
 | 15024 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15025 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15026 |  | 
 | 15027 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 15028 | MAGIC_CMD=$MAGIC_CMD | 
 | 15029 |  | 
 | 15030 | # Used on cygwin: DLL creation program. | 
 | 15031 | DLLTOOL="$DLLTOOL" | 
 | 15032 |  | 
 | 15033 | # Used on cygwin: object dumper. | 
 | 15034 | OBJDUMP="$OBJDUMP" | 
 | 15035 |  | 
 | 15036 | # Used on cygwin: assembler. | 
 | 15037 | AS="$AS" | 
 | 15038 |  | 
 | 15039 | # The name of the directory that contains temporary libtool files. | 
 | 15040 | objdir=$objdir | 
 | 15041 |  | 
 | 15042 | # How to create reloadable object files. | 
 | 15043 | reload_flag=$lt_reload_flag | 
 | 15044 | reload_cmds=$lt_reload_cmds | 
 | 15045 |  | 
 | 15046 | # How to pass a linker flag through the compiler. | 
 | 15047 | wl=$lt_lt_prog_compiler_wl_F77 | 
 | 15048 |  | 
 | 15049 | # Object file suffix (normally "o"). | 
 | 15050 | objext="$ac_objext" | 
 | 15051 |  | 
 | 15052 | # Old archive suffix (normally "a"). | 
 | 15053 | libext="$libext" | 
 | 15054 |  | 
 | 15055 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15056 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15057 |  | 
 | 15058 | # Executable file suffix (normally ""). | 
 | 15059 | exeext="$exeext" | 
 | 15060 |  | 
 | 15061 | # Additional compiler flags for building library objects. | 
 | 15062 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
 | 15063 | pic_mode=$pic_mode | 
 | 15064 |  | 
 | 15065 | # What is the maximum length of a command? | 
 | 15066 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 15067 |  | 
 | 15068 | # Does compiler simultaneously support -c and -o options? | 
 | 15069 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
 | 15070 |  | 
 | 15071 | # Must we lock files when doing compilation ? | 
 | 15072 | need_locks=$lt_need_locks | 
 | 15073 |  | 
 | 15074 | # Do we need the lib prefix for modules? | 
 | 15075 | need_lib_prefix=$need_lib_prefix | 
 | 15076 |  | 
 | 15077 | # Do we need a version for libraries? | 
 | 15078 | need_version=$need_version | 
 | 15079 |  | 
 | 15080 | # Whether dlopen is supported. | 
 | 15081 | dlopen_support=$enable_dlopen | 
 | 15082 |  | 
 | 15083 | # Whether dlopen of programs is supported. | 
 | 15084 | dlopen_self=$enable_dlopen_self | 
 | 15085 |  | 
 | 15086 | # Whether dlopen of statically linked programs is supported. | 
 | 15087 | dlopen_self_static=$enable_dlopen_self_static | 
 | 15088 |  | 
 | 15089 | # Compiler flag to prevent dynamic linking. | 
 | 15090 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
 | 15091 |  | 
 | 15092 | # Compiler flag to turn off builtin functions. | 
 | 15093 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
 | 15094 |  | 
 | 15095 | # Compiler flag to allow reflexive dlopens. | 
 | 15096 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
 | 15097 |  | 
 | 15098 | # Compiler flag to generate shared objects directly from archives. | 
 | 15099 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
 | 15100 |  | 
 | 15101 | # Compiler flag to generate thread-safe objects. | 
 | 15102 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
 | 15103 |  | 
 | 15104 | # Library versioning type. | 
 | 15105 | version_type=$version_type | 
 | 15106 |  | 
 | 15107 | # Format of library name prefix. | 
 | 15108 | libname_spec=$lt_libname_spec | 
 | 15109 |  | 
 | 15110 | # List of archive names.  First name is the real one, the rest are links. | 
 | 15111 | # The last name is the one that the linker finds with -lNAME. | 
 | 15112 | library_names_spec=$lt_library_names_spec | 
 | 15113 |  | 
 | 15114 | # The coded name of the library, if different from the real name. | 
 | 15115 | soname_spec=$lt_soname_spec | 
 | 15116 |  | 
 | 15117 | # Commands used to build and install an old-style archive. | 
 | 15118 | RANLIB=$lt_RANLIB | 
 | 15119 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
 | 15120 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 15121 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 15122 |  | 
 | 15123 | # Create an old-style archive from a shared archive. | 
 | 15124 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
 | 15125 |  | 
 | 15126 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 15127 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
 | 15128 |  | 
 | 15129 | # Commands used to build and install a shared archive. | 
 | 15130 | archive_cmds=$lt_archive_cmds_F77 | 
 | 15131 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
 | 15132 | postinstall_cmds=$lt_postinstall_cmds | 
 | 15133 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 15134 |  | 
 | 15135 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 15136 | module_cmds=$lt_module_cmds_F77 | 
 | 15137 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
 | 15138 |  | 
 | 15139 | # Commands to strip libraries. | 
 | 15140 | old_striplib=$lt_old_striplib | 
 | 15141 | striplib=$lt_striplib | 
 | 15142 |  | 
 | 15143 | # Dependencies to place before the objects being linked to create a | 
 | 15144 | # shared library. | 
 | 15145 | predep_objects=$lt_predep_objects_F77 | 
 | 15146 |  | 
 | 15147 | # Dependencies to place after the objects being linked to create a | 
 | 15148 | # shared library. | 
 | 15149 | postdep_objects=$lt_postdep_objects_F77 | 
 | 15150 |  | 
 | 15151 | # Dependencies to place before the objects being linked to create a | 
 | 15152 | # shared library. | 
 | 15153 | predeps=$lt_predeps_F77 | 
 | 15154 |  | 
 | 15155 | # Dependencies to place after the objects being linked to create a | 
 | 15156 | # shared library. | 
 | 15157 | postdeps=$lt_postdeps_F77 | 
 | 15158 |  | 
 | 15159 | # The library search path used internally by the compiler when linking | 
 | 15160 | # a shared library. | 
 | 15161 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
 | 15162 |  | 
 | 15163 | # Method to check whether dependent libraries are shared objects. | 
 | 15164 | deplibs_check_method=$lt_deplibs_check_method | 
 | 15165 |  | 
 | 15166 | # Command to use when deplibs_check_method == file_magic. | 
 | 15167 | file_magic_cmd=$lt_file_magic_cmd | 
 | 15168 |  | 
 | 15169 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 15170 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
 | 15171 |  | 
 | 15172 | # Flag that forces no undefined symbols. | 
 | 15173 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
 | 15174 |  | 
 | 15175 | # Commands used to finish a libtool library installation in a directory. | 
 | 15176 | finish_cmds=$lt_finish_cmds | 
 | 15177 |  | 
 | 15178 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 15179 | finish_eval=$lt_finish_eval | 
 | 15180 |  | 
 | 15181 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 15182 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 15183 |  | 
 | 15184 | # Transform the output of nm in a proper C declaration | 
 | 15185 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 15186 |  | 
 | 15187 | # Transform the output of nm in a C name address pair | 
 | 15188 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 15189 |  | 
 | 15190 | # This is the shared library runtime path variable. | 
 | 15191 | runpath_var=$runpath_var | 
 | 15192 |  | 
 | 15193 | # This is the shared library path variable. | 
 | 15194 | shlibpath_var=$shlibpath_var | 
 | 15195 |  | 
 | 15196 | # Is shlibpath searched before the hard-coded library search path? | 
 | 15197 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 15198 |  | 
 | 15199 | # How to hardcode a shared library path into an executable. | 
 | 15200 | hardcode_action=$hardcode_action_F77 | 
 | 15201 |  | 
 | 15202 | # Whether we should hardcode library paths into libraries. | 
 | 15203 | hardcode_into_libs=$hardcode_into_libs | 
 | 15204 |  | 
 | 15205 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 15206 | # This must work even if \$libdir does not exist. | 
 | 15207 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
 | 15208 |  | 
 | 15209 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 15210 | # a binary during linking. This must work even if \$libdir does | 
 | 15211 | # not exist. | 
 | 15212 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
 | 15213 |  | 
 | 15214 | # Whether we need a single -rpath flag with a separated argument. | 
 | 15215 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
 | 15216 |  | 
 | 15217 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 15218 | # resulting binary. | 
 | 15219 | hardcode_direct=$hardcode_direct_F77 | 
 | 15220 |  | 
 | 15221 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 15222 | # resulting binary. | 
 | 15223 | hardcode_minus_L=$hardcode_minus_L_F77 | 
 | 15224 |  | 
 | 15225 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 15226 | # the resulting binary. | 
 | 15227 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
 | 15228 |  | 
 | 15229 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 15230 | # and all subsequent libraries and executables linked against it. | 
 | 15231 | hardcode_automatic=$hardcode_automatic_F77 | 
 | 15232 |  | 
 | 15233 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 15234 | # restored at relink time. | 
 | 15235 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 15236 |  | 
 | 15237 | # Whether libtool must link a program against all its dependency libraries. | 
 | 15238 | link_all_deplibs=$link_all_deplibs_F77 | 
 | 15239 |  | 
 | 15240 | # Compile-time system search path for libraries | 
 | 15241 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 15242 |  | 
 | 15243 | # Run-time system search path for libraries | 
 | 15244 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 15245 |  | 
 | 15246 | # Fix the shell variable \$srcfile for the compiler. | 
 | 15247 | fix_srcfile_path="$fix_srcfile_path_F77" | 
 | 15248 |  | 
 | 15249 | # Set to yes if exported symbols are required. | 
 | 15250 | always_export_symbols=$always_export_symbols_F77 | 
 | 15251 |  | 
 | 15252 | # The commands to list exported symbols. | 
 | 15253 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
 | 15254 |  | 
 | 15255 | # The commands to extract the exported symbol list from a shared archive. | 
 | 15256 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 15257 |  | 
 | 15258 | # Symbols that should not be listed in the preloaded symbols. | 
 | 15259 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
 | 15260 |  | 
 | 15261 | # Symbols that must always be exported. | 
 | 15262 | include_expsyms=$lt_include_expsyms_F77 | 
 | 15263 |  | 
 | 15264 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 15265 |  | 
 | 15266 | __EOF__ | 
 | 15267 |  | 
 | 15268 |  | 
 | 15269 | else | 
 | 15270 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 15271 |   # `config.status --recheck' to rerun these tests and create the | 
 | 15272 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15273 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 15274 |   if test -f "$ltmain_in"; then | 
 | 15275 |     test -f Makefile && make "$ltmain" | 
 | 15276 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15277 | fi | 
 | 15278 |  | 
 | 15279 |  | 
 | 15280 | ac_ext=c | 
 | 15281 | ac_cpp='$CPP $CPPFLAGS' | 
 | 15282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 15283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 15284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 15285 |  | 
 | 15286 | CC="$lt_save_CC" | 
 | 15287 |  | 
 | 15288 | 	else | 
 | 15289 | 	  tagname="" | 
 | 15290 | 	fi | 
 | 15291 | 	;; | 
 | 15292 |  | 
 | 15293 |       GCJ) | 
 | 15294 | 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15295 | 	  ac_ext=c | 
 | 15296 | ac_cpp='$CPP $CPPFLAGS' | 
 | 15297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 15298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 15299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15300 |  | 
 | 15301 |  | 
 | 15302 | # Source file extension for Java test sources. | 
 | 15303 | ac_ext=java | 
 | 15304 |  | 
 | 15305 | # Object file extension for compiled Java test sources. | 
 | 15306 | objext=o | 
 | 15307 | objext_GCJ=$objext | 
 | 15308 |  | 
 | 15309 | # Code to be used in simple compile tests | 
 | 15310 | lt_simple_compile_test_code="class foo {}\n" | 
 | 15311 |  | 
 | 15312 | # Code to be used in simple link tests | 
 | 15313 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 
 | 15314 |  | 
 | 15315 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 15316 |  | 
 | 15317 | # If no C compiler was specified, use CC. | 
 | 15318 | LTCC=${LTCC-"$CC"} | 
 | 15319 |  | 
 | 15320 | # Allow CC to be a program name with arguments. | 
 | 15321 | compiler=$CC | 
 | 15322 |  | 
 | 15323 |  | 
 | 15324 | # Allow CC to be a program name with arguments. | 
 | 15325 | lt_save_CC="$CC" | 
 | 15326 | CC=${GCJ-"gcj"} | 
 | 15327 | compiler=$CC | 
 | 15328 | compiler_GCJ=$CC | 
 | 15329 |  | 
 | 15330 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
 | 15331 | archive_cmds_need_lc_GCJ=no | 
 | 15332 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15333 |  | 
 | 15334 | lt_prog_compiler_no_builtin_flag_GCJ= | 
 | 15335 |  | 
 | 15336 | if test "$GCC" = yes; then | 
 | 15337 |   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
 | 15338 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15339 |  | 
 | 15340 | 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] | 15341 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 15342 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 15343 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15344 | else | 
 | 15345 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 15346 |   ac_outfile=conftest.$ac_objext | 
 | 15347 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 15348 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 15349 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 15350 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 15351 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 15352 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 15353 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 15354 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 15355 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 15356 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 15357 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 15358 |    (eval echo "\"\$as_me:15358: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15359 |    (eval "$lt_compile" 2>conftest.err) | 
 | 15360 |    ac_status=$? | 
 | 15361 |    cat conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 15362 |    echo "$as_me:15362: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15363 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 15364 |      # The compiler can only warn and ignore the option if not recognized | 
 | 15365 |      # So say no if there are warnings | 
 | 15366 |      if test ! -s conftest.err; then | 
 | 15367 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 15368 |      fi | 
 | 15369 |    fi | 
 | 15370 |    $rm conftest* | 
 | 15371 |  | 
 | 15372 | fi | 
 | 15373 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 15374 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 15375 |  | 
 | 15376 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 15377 |     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
 | 15378 | else | 
 | 15379 |     : | 
 | 15380 | fi | 
 | 15381 |  | 
 | 15382 | fi | 
 | 15383 |  | 
 | 15384 | lt_prog_compiler_wl_GCJ= | 
 | 15385 | lt_prog_compiler_pic_GCJ= | 
 | 15386 | lt_prog_compiler_static_GCJ= | 
 | 15387 |  | 
 | 15388 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 15389 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 15390 |  | 
 | 15391 |   if test "$GCC" = yes; then | 
 | 15392 |     lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15393 |     lt_prog_compiler_static_GCJ='-static' | 
 | 15394 |  | 
 | 15395 |     case $host_os in | 
 | 15396 |       aix*) | 
 | 15397 |       # All AIX code is PIC. | 
 | 15398 |       if test "$host_cpu" = ia64; then | 
 | 15399 | 	# AIX 5 now supports IA64 processor | 
 | 15400 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15401 |       fi | 
 | 15402 |       ;; | 
 | 15403 |  | 
 | 15404 |     amigaos*) | 
 | 15405 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 15406 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 15407 |       # like `-m68040'. | 
 | 15408 |       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
 | 15409 |       ;; | 
 | 15410 |  | 
 | 15411 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 15412 |       # PIC is the default for these OSes. | 
 | 15413 |       ;; | 
 | 15414 |  | 
 | 15415 |     mingw* | pw32* | os2*) | 
 | 15416 |       # This hack is so that the source file can tell whether it is being | 
 | 15417 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 15418 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 15419 |       ;; | 
 | 15420 |  | 
 | 15421 |     darwin* | rhapsody*) | 
 | 15422 |       # PIC is the default on this platform | 
 | 15423 |       # Common symbols not allowed in MH_DYLIB files | 
 | 15424 |       lt_prog_compiler_pic_GCJ='-fno-common' | 
 | 15425 |       ;; | 
 | 15426 |  | 
 | 15427 |     msdosdjgpp*) | 
 | 15428 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 15429 |       # on systems that don't support them. | 
 | 15430 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 15431 |       enable_shared=no | 
 | 15432 |       ;; | 
 | 15433 |  | 
 | 15434 |     sysv4*MP*) | 
 | 15435 |       if test -d /usr/nec; then | 
 | 15436 | 	lt_prog_compiler_pic_GCJ=-Kconform_pic | 
 | 15437 |       fi | 
 | 15438 |       ;; | 
 | 15439 |  | 
 | 15440 |     hpux*) | 
 | 15441 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 15442 |       # not for PA HP-UX. | 
 | 15443 |       case "$host_cpu" in | 
 | 15444 |       hppa*64*|ia64*) | 
 | 15445 | 	# +Z the default | 
 | 15446 | 	;; | 
 | 15447 |       *) | 
 | 15448 | 	lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 15449 | 	;; | 
 | 15450 |       esac | 
 | 15451 |       ;; | 
 | 15452 |  | 
 | 15453 |     *) | 
 | 15454 |       lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 15455 |       ;; | 
 | 15456 |     esac | 
 | 15457 |   else | 
 | 15458 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 15459 |     case $host_os in | 
 | 15460 |     aix*) | 
 | 15461 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15462 |       if test "$host_cpu" = ia64; then | 
 | 15463 | 	# AIX 5 now supports IA64 processor | 
 | 15464 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15465 |       else | 
 | 15466 | 	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
 | 15467 |       fi | 
 | 15468 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15469 |       darwin*) | 
 | 15470 |         # PIC is the default on this platform | 
 | 15471 |         # Common symbols not allowed in MH_DYLIB files | 
 | 15472 |        case "$cc_basename" in | 
 | 15473 |          xlc*) | 
 | 15474 |          lt_prog_compiler_pic_GCJ='-qnocommon' | 
 | 15475 |          lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15476 |          ;; | 
 | 15477 |        esac | 
 | 15478 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15479 |  | 
 | 15480 |     mingw* | pw32* | os2*) | 
 | 15481 |       # This hack is so that the source file can tell whether it is being | 
 | 15482 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 15483 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 15484 |       ;; | 
 | 15485 |  | 
 | 15486 |     hpux9* | hpux10* | hpux11*) | 
 | 15487 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15488 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 15489 |       # not for PA HP-UX. | 
 | 15490 |       case "$host_cpu" in | 
 | 15491 |       hppa*64*|ia64*) | 
 | 15492 | 	# +Z the default | 
 | 15493 | 	;; | 
 | 15494 |       *) | 
 | 15495 | 	lt_prog_compiler_pic_GCJ='+Z' | 
 | 15496 | 	;; | 
 | 15497 |       esac | 
 | 15498 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 15499 |       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
 | 15500 |       ;; | 
 | 15501 |  | 
 | 15502 |     irix5* | irix6* | nonstopux*) | 
 | 15503 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15504 |       # PIC (with -KPIC) is the default. | 
 | 15505 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 15506 |       ;; | 
 | 15507 |  | 
 | 15508 |     newsos6) | 
 | 15509 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 15510 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15511 |       ;; | 
 | 15512 |  | 
 | 15513 |     linux*) | 
 | 15514 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15515 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15516 | 	lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15517 | 	lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 15518 | 	lt_prog_compiler_static_GCJ='-static' | 
 | 15519 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15520 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15521 |         lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15522 |         # All Alpha code is PIC. | 
 | 15523 |         lt_prog_compiler_static_GCJ='-non_shared' | 
 | 15524 |         ;; | 
 | 15525 |       esac | 
 | 15526 |       ;; | 
 | 15527 |  | 
 | 15528 |     osf3* | osf4* | osf5*) | 
 | 15529 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15530 |       # All OSF/1 code is PIC. | 
 | 15531 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 15532 |       ;; | 
 | 15533 |  | 
 | 15534 |     sco3.2v5*) | 
 | 15535 |       lt_prog_compiler_pic_GCJ='-Kpic' | 
 | 15536 |       lt_prog_compiler_static_GCJ='-dn' | 
 | 15537 |       ;; | 
 | 15538 |  | 
 | 15539 |     solaris*) | 
 | 15540 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15541 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 15542 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15543 |       ;; | 
 | 15544 |  | 
 | 15545 |     sunos4*) | 
 | 15546 |       lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
 | 15547 |       lt_prog_compiler_pic_GCJ='-PIC' | 
 | 15548 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15549 |       ;; | 
 | 15550 |  | 
 | 15551 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 15552 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 15553 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 15554 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15555 |       ;; | 
 | 15556 |  | 
 | 15557 |     sysv4*MP*) | 
 | 15558 |       if test -d /usr/nec ;then | 
 | 15559 | 	lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
 | 15560 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15561 |       fi | 
 | 15562 |       ;; | 
 | 15563 |  | 
 | 15564 |     uts4*) | 
 | 15565 |       lt_prog_compiler_pic_GCJ='-pic' | 
 | 15566 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 15567 |       ;; | 
 | 15568 |  | 
 | 15569 |     *) | 
 | 15570 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 15571 |       ;; | 
 | 15572 |     esac | 
 | 15573 |   fi | 
 | 15574 |  | 
 | 15575 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
 | 15576 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 
 | 15577 |  | 
 | 15578 | # | 
 | 15579 | # Check to make sure the PIC flag actually works. | 
 | 15580 | # | 
 | 15581 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15582 |  | 
 | 15583 | 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] | 15584 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 
 | 15585 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
 | 15586 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15587 | else | 
 | 15588 |   lt_prog_compiler_pic_works_GCJ=no | 
 | 15589 |   ac_outfile=conftest.$ac_objext | 
 | 15590 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 15591 |    lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
 | 15592 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 15593 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 15594 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 15595 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 15596 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 15597 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 15598 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 15599 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 15600 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 15601 |    (eval echo "\"\$as_me:15601: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15602 |    (eval "$lt_compile" 2>conftest.err) | 
 | 15603 |    ac_status=$? | 
 | 15604 |    cat conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 15605 |    echo "$as_me:15605: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15606 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 15607 |      # The compiler can only warn and ignore the option if not recognized | 
 | 15608 |      # So say no if there are warnings | 
 | 15609 |      if test ! -s conftest.err; then | 
 | 15610 |        lt_prog_compiler_pic_works_GCJ=yes | 
 | 15611 |      fi | 
 | 15612 |    fi | 
 | 15613 |    $rm conftest* | 
 | 15614 |  | 
 | 15615 | fi | 
 | 15616 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
 | 15617 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 
 | 15618 |  | 
 | 15619 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
 | 15620 |     case $lt_prog_compiler_pic_GCJ in | 
 | 15621 |      "" | " "*) ;; | 
 | 15622 |      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
 | 15623 |      esac | 
 | 15624 | else | 
 | 15625 |     lt_prog_compiler_pic_GCJ= | 
 | 15626 |      lt_prog_compiler_can_build_shared_GCJ=no | 
 | 15627 | fi | 
 | 15628 |  | 
 | 15629 | fi | 
 | 15630 | case "$host_os" in | 
 | 15631 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 15632 |   *djgpp*) | 
 | 15633 |     lt_prog_compiler_pic_GCJ= | 
 | 15634 |     ;; | 
 | 15635 |   *) | 
 | 15636 |     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
 | 15637 |     ;; | 
 | 15638 | esac | 
 | 15639 |  | 
 | 15640 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 15641 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 15642 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
 | 15643 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15644 | else | 
 | 15645 |   lt_cv_prog_compiler_c_o_GCJ=no | 
 | 15646 |    $rm -r conftest 2>/dev/null | 
 | 15647 |    mkdir conftest | 
 | 15648 |    cd conftest | 
 | 15649 |    mkdir out | 
 | 15650 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 15651 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15652 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 15653 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 15654 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 15655 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 15656 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 15657 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 15658 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 15659 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 15660 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 15661 |    (eval echo "\"\$as_me:15661: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15662 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 15663 |    ac_status=$? | 
 | 15664 |    cat out/conftest.err >&5 | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 15665 |    echo "$as_me:15665: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15666 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 15667 |    then | 
 | 15668 |      # The compiler can only warn and ignore the option if not recognized | 
 | 15669 |      # So say no if there are warnings | 
 | 15670 |      if test ! -s out/conftest.err; then | 
 | 15671 |        lt_cv_prog_compiler_c_o_GCJ=yes | 
 | 15672 |      fi | 
 | 15673 |    fi | 
 | 15674 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15675 |    $rm conftest* | 
 | 15676 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 15677 |    # template instantiation | 
 | 15678 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 15679 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15680 |    cd .. | 
 | 15681 |    rmdir conftest | 
 | 15682 |    $rm conftest* | 
 | 15683 |  | 
 | 15684 | fi | 
 | 15685 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
 | 15686 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 
 | 15687 |  | 
 | 15688 |  | 
 | 15689 | hard_links="nottested" | 
 | 15690 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
 | 15691 |   # do not overwrite the value of need_locks provided by the user | 
 | 15692 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 15693 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 15694 |   hard_links=yes | 
 | 15695 |   $rm conftest* | 
 | 15696 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 15697 |   touch conftest.a | 
 | 15698 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 15699 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 15700 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 15701 | echo "${ECHO_T}$hard_links" >&6 | 
 | 15702 |   if test "$hard_links" = no; then | 
 | 15703 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 15704 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 15705 |     need_locks=warn | 
 | 15706 |   fi | 
 | 15707 | else | 
 | 15708 |   need_locks=no | 
 | 15709 | fi | 
 | 15710 |  | 
 | 15711 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 15712 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 15713 |  | 
 | 15714 |   runpath_var= | 
 | 15715 |   allow_undefined_flag_GCJ= | 
 | 15716 |   enable_shared_with_static_runtimes_GCJ=no | 
 | 15717 |   archive_cmds_GCJ= | 
 | 15718 |   archive_expsym_cmds_GCJ= | 
 | 15719 |   old_archive_From_new_cmds_GCJ= | 
 | 15720 |   old_archive_from_expsyms_cmds_GCJ= | 
 | 15721 |   export_dynamic_flag_spec_GCJ= | 
 | 15722 |   whole_archive_flag_spec_GCJ= | 
 | 15723 |   thread_safe_flag_spec_GCJ= | 
 | 15724 |   hardcode_libdir_flag_spec_GCJ= | 
 | 15725 |   hardcode_libdir_flag_spec_ld_GCJ= | 
 | 15726 |   hardcode_libdir_separator_GCJ= | 
 | 15727 |   hardcode_direct_GCJ=no | 
 | 15728 |   hardcode_minus_L_GCJ=no | 
 | 15729 |   hardcode_shlibpath_var_GCJ=unsupported | 
 | 15730 |   link_all_deplibs_GCJ=unknown | 
 | 15731 |   hardcode_automatic_GCJ=no | 
 | 15732 |   module_cmds_GCJ= | 
 | 15733 |   module_expsym_cmds_GCJ= | 
 | 15734 |   always_export_symbols_GCJ=no | 
 | 15735 |   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 15736 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 15737 |   # included in the symbol list | 
 | 15738 |   include_expsyms_GCJ= | 
 | 15739 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 15740 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 15741 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 15742 |   # as well as any symbol that contains `d'. | 
 | 15743 |   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
 | 15744 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 15745 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 15746 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 15747 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 15748 |   # preloaded symbol tables. | 
 | 15749 |   extract_expsyms_cmds= | 
 | 15750 |  | 
 | 15751 |   case $host_os in | 
 | 15752 |   cygwin* | mingw* | pw32*) | 
 | 15753 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 15754 |     # When not using gcc, we currently assume that we are using | 
 | 15755 |     # Microsoft Visual C++. | 
 | 15756 |     if test "$GCC" != yes; then | 
 | 15757 |       with_gnu_ld=no | 
 | 15758 |     fi | 
 | 15759 |     ;; | 
 | 15760 |   openbsd*) | 
 | 15761 |     with_gnu_ld=no | 
 | 15762 |     ;; | 
 | 15763 |   esac | 
 | 15764 |  | 
 | 15765 |   ld_shlibs_GCJ=yes | 
 | 15766 |   if test "$with_gnu_ld" = yes; then | 
 | 15767 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 15768 |     wlarc='${wl}' | 
 | 15769 |  | 
 | 15770 |     # See if GNU ld supports shared libraries. | 
 | 15771 |     case $host_os in | 
 | 15772 |     aix3* | aix4* | aix5*) | 
 | 15773 |       # On AIX/PPC, the GNU linker is very broken | 
 | 15774 |       if test "$host_cpu" != ia64; then | 
 | 15775 | 	ld_shlibs_GCJ=no | 
 | 15776 | 	cat <<EOF 1>&2 | 
 | 15777 |  | 
 | 15778 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 15779 | *** to be unable to reliably create shared libraries on AIX. | 
 | 15780 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 15781 | *** really care for shared libraries, you may want to modify your PATH | 
 | 15782 | *** so that a non-GNU linker is found, and then restart. | 
 | 15783 |  | 
 | 15784 | EOF | 
 | 15785 |       fi | 
 | 15786 |       ;; | 
 | 15787 |  | 
 | 15788 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15789 |       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] | 15790 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15791 |       hardcode_minus_L_GCJ=yes | 
 | 15792 |  | 
 | 15793 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 15794 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 15795 |       # to version 4, is to share data among multiple programs linked | 
 | 15796 |       # with the same dynamic library.  Since this doesn't match the | 
 | 15797 |       # behavior of shared libraries on other platforms, we can't use | 
 | 15798 |       # them. | 
 | 15799 |       ld_shlibs_GCJ=no | 
 | 15800 |       ;; | 
 | 15801 |  | 
 | 15802 |     beos*) | 
 | 15803 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15804 | 	allow_undefined_flag_GCJ=unsupported | 
 | 15805 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 15806 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 15807 | 	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15808 |       else | 
 | 15809 | 	ld_shlibs_GCJ=no | 
 | 15810 |       fi | 
 | 15811 |       ;; | 
 | 15812 |  | 
 | 15813 |     cygwin* | mingw* | pw32*) | 
 | 15814 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
 | 15815 |       # as there is no search path for DLLs. | 
 | 15816 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15817 |       allow_undefined_flag_GCJ=unsupported | 
 | 15818 |       always_export_symbols_GCJ=no | 
 | 15819 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 15820 |       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 15821 |  | 
 | 15822 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 15823 |         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 15824 | 	# If the export-symbols file already is a .def file (1st line | 
 | 15825 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 15826 | 	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 15827 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 15828 | 	else | 
 | 15829 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 15830 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15831 | 	fi~ | 
 | 15832 | 	$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] | 15833 |       else | 
 | 15834 | 	ld_shlibs=no | 
 | 15835 |       fi | 
 | 15836 |       ;; | 
 | 15837 |  | 
 | 15838 |     netbsd*) | 
 | 15839 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 15840 | 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 15841 | 	wlarc= | 
 | 15842 |       else | 
 | 15843 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15844 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15845 |       fi | 
 | 15846 |       ;; | 
 | 15847 |  | 
 | 15848 |     solaris* | sysv5*) | 
 | 15849 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 15850 | 	ld_shlibs_GCJ=no | 
 | 15851 | 	cat <<EOF 1>&2 | 
 | 15852 |  | 
 | 15853 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 15854 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 15855 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 15856 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 15857 | *** your PATH or compiler configuration so that the native linker is | 
 | 15858 | *** used, and then restart. | 
 | 15859 |  | 
 | 15860 | EOF | 
 | 15861 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15862 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15863 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15864 |       else | 
 | 15865 | 	ld_shlibs_GCJ=no | 
 | 15866 |       fi | 
 | 15867 |       ;; | 
 | 15868 |  | 
 | 15869 |     sunos4*) | 
 | 15870 |       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 15871 |       wlarc= | 
 | 15872 |       hardcode_direct_GCJ=yes | 
 | 15873 |       hardcode_shlibpath_var_GCJ=no | 
 | 15874 |       ;; | 
 | 15875 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15876 |   linux*) | 
 | 15877 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15878 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15879 | 	archive_cmds_GCJ="$tmp_archive_cmds" | 
 | 15880 |       supports_anon_versioning=no | 
 | 15881 |       case `$LD -v 2>/dev/null` in | 
 | 15882 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 15883 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 15884 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 15885 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 15886 |         *) supports_anon_versioning=yes ;; | 
 | 15887 |       esac | 
 | 15888 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15889 |         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 15890 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 15891 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15892 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 15893 |       else | 
 | 15894 |         archive_expsym_cmds_GCJ="$tmp_archive_cmds" | 
 | 15895 |       fi | 
 | 15896 |     else | 
 | 15897 |       ld_shlibs_GCJ=no | 
 | 15898 |     fi | 
 | 15899 |     ;; | 
 | 15900 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15901 |     *) | 
 | 15902 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15903 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15904 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15905 |       else | 
 | 15906 | 	ld_shlibs_GCJ=no | 
 | 15907 |       fi | 
 | 15908 |       ;; | 
 | 15909 |     esac | 
 | 15910 |  | 
 | 15911 |     if test "$ld_shlibs_GCJ" = yes; then | 
 | 15912 |       runpath_var=LD_RUN_PATH | 
 | 15913 |       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
 | 15914 |       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
 | 15915 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 15916 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 15917 |  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 15918 |       else | 
 | 15919 |   	whole_archive_flag_spec_GCJ= | 
 | 15920 |       fi | 
 | 15921 |     fi | 
 | 15922 |   else | 
 | 15923 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 15924 |     case $host_os in | 
 | 15925 |     aix3*) | 
 | 15926 |       allow_undefined_flag_GCJ=unsupported | 
 | 15927 |       always_export_symbols_GCJ=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15928 |       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] | 15929 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 15930 |       # are no directories specified by -L. | 
 | 15931 |       hardcode_minus_L_GCJ=yes | 
 | 15932 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 15933 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 15934 | 	# broken collect2. | 
 | 15935 | 	hardcode_direct_GCJ=unsupported | 
 | 15936 |       fi | 
 | 15937 |       ;; | 
 | 15938 |  | 
 | 15939 |     aix4* | aix5*) | 
 | 15940 |       if test "$host_cpu" = ia64; then | 
 | 15941 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 15942 | 	# have to do anything special. | 
 | 15943 | 	aix_use_runtimelinking=no | 
 | 15944 | 	exp_sym_flag='-Bexport' | 
 | 15945 | 	no_entry_flag="" | 
 | 15946 |       else | 
 | 15947 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 15948 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 15949 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 15950 | 	  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' | 
 | 15951 | 	else | 
 | 15952 | 	  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' | 
 | 15953 | 	fi | 
 | 15954 | 	aix_use_runtimelinking=no | 
 | 15955 |  | 
 | 15956 | 	# Test if we are trying to use run time linking or normal | 
 | 15957 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 15958 | 	# need to do runtime linking. | 
 | 15959 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 15960 | 	  for ld_flag in $LDFLAGS; do | 
 | 15961 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 15962 |   	    aix_use_runtimelinking=yes | 
 | 15963 |   	    break | 
 | 15964 |   	  fi | 
 | 15965 | 	  done | 
 | 15966 | 	esac | 
 | 15967 |  | 
 | 15968 | 	exp_sym_flag='-bexport' | 
 | 15969 | 	no_entry_flag='-bnoentry' | 
 | 15970 |       fi | 
 | 15971 |  | 
 | 15972 |       # When large executables or shared objects are built, AIX ld can | 
 | 15973 |       # have problems creating the table of contents.  If linking a library | 
 | 15974 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 15975 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 15976 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 15977 |  | 
 | 15978 |       archive_cmds_GCJ='' | 
 | 15979 |       hardcode_direct_GCJ=yes | 
 | 15980 |       hardcode_libdir_separator_GCJ=':' | 
 | 15981 |       link_all_deplibs_GCJ=yes | 
 | 15982 |  | 
 | 15983 |       if test "$GCC" = yes; then | 
 | 15984 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 15985 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 15986 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 15987 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 15988 | 	  if test -f "$collect2name" && \ | 
 | 15989 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 15990 | 	  then | 
 | 15991 |   	  # We have reworked collect2 | 
 | 15992 |   	  hardcode_direct_GCJ=yes | 
 | 15993 | 	  else | 
 | 15994 |   	  # We have old collect2 | 
 | 15995 |   	  hardcode_direct_GCJ=unsupported | 
 | 15996 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 15997 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 15998 |   	  # to unsupported forces relinking | 
 | 15999 |   	  hardcode_minus_L_GCJ=yes | 
 | 16000 |   	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16001 |   	  hardcode_libdir_separator_GCJ= | 
 | 16002 | 	  fi | 
 | 16003 | 	esac | 
 | 16004 | 	shared_flag='-shared' | 
 | 16005 |       else | 
 | 16006 | 	# not using gcc | 
 | 16007 | 	if test "$host_cpu" = ia64; then | 
 | 16008 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 16009 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 16010 | 	  shared_flag='-G' | 
 | 16011 | 	else | 
 | 16012 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 16013 | 	    shared_flag='${wl}-G' | 
 | 16014 | 	  else | 
 | 16015 | 	    shared_flag='${wl}-bM:SRE' | 
 | 16016 |   	fi | 
 | 16017 | 	fi | 
 | 16018 |       fi | 
 | 16019 |  | 
 | 16020 |       # It seems that -bexpall does not export symbols beginning with | 
 | 16021 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 16022 |       always_export_symbols_GCJ=yes | 
 | 16023 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 16024 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 16025 | 	# -berok will link without error, but may produce a broken library. | 
 | 16026 | 	allow_undefined_flag_GCJ='-berok' | 
 | 16027 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 16028 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16029 | /* confdefs.h.  */ | 
 | 16030 | _ACEOF | 
 | 16031 | cat confdefs.h >>conftest.$ac_ext | 
 | 16032 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16033 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16034 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16035 | int | 
 | 16036 | main () | 
 | 16037 | { | 
 | 16038 |  | 
 | 16039 |   ; | 
 | 16040 |   return 0; | 
 | 16041 | } | 
 | 16042 | _ACEOF | 
 | 16043 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16045 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16046 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16047 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 16048 |   rm -f conftest.er1 | 
 | 16049 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16050 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16051 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16052 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 16053 | 			 || test ! -s conftest.err' | 
 | 16054 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16055 |   (eval $ac_try) 2>&5 | 
 | 16056 |   ac_status=$? | 
 | 16057 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16058 |   (exit $ac_status); }; } && | 
 | 16059 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16060 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16061 |   (eval $ac_try) 2>&5 | 
 | 16062 |   ac_status=$? | 
 | 16063 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16064 |   (exit $ac_status); }; }; then | 
 | 16065 |  | 
 | 16066 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 16067 | }'` | 
 | 16068 | # Check for a 64-bit object if we didn't find anything. | 
 | 16069 | 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; } | 
 | 16070 | }'`; fi | 
 | 16071 | else | 
 | 16072 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16073 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16074 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16075 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16076 | rm -f conftest.err conftest.$ac_objext \ | 
 | 16077 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16078 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 16079 |  | 
 | 16080 |        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 16081 | 	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" | 
 | 16082 |        else | 
 | 16083 | 	if test "$host_cpu" = ia64; then | 
 | 16084 | 	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
 | 16085 | 	  allow_undefined_flag_GCJ="-z nodefs" | 
 | 16086 | 	  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" | 
 | 16087 | 	else | 
 | 16088 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 16089 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16090 | /* confdefs.h.  */ | 
 | 16091 | _ACEOF | 
 | 16092 | cat confdefs.h >>conftest.$ac_ext | 
 | 16093 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16094 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16095 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16096 | int | 
 | 16097 | main () | 
 | 16098 | { | 
 | 16099 |  | 
 | 16100 |   ; | 
 | 16101 |   return 0; | 
 | 16102 | } | 
 | 16103 | _ACEOF | 
 | 16104 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16106 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16107 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16108 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 16109 |   rm -f conftest.er1 | 
 | 16110 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16111 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16112 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16113 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 16114 | 			 || test ! -s conftest.err' | 
 | 16115 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16116 |   (eval $ac_try) 2>&5 | 
 | 16117 |   ac_status=$? | 
 | 16118 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16119 |   (exit $ac_status); }; } && | 
 | 16120 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16121 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16122 |   (eval $ac_try) 2>&5 | 
 | 16123 |   ac_status=$? | 
 | 16124 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16125 |   (exit $ac_status); }; }; then | 
 | 16126 |  | 
 | 16127 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 16128 | }'` | 
 | 16129 | # Check for a 64-bit object if we didn't find anything. | 
 | 16130 | 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; } | 
 | 16131 | }'`; fi | 
 | 16132 | else | 
 | 16133 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16134 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16135 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16136 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16137 | rm -f conftest.err conftest.$ac_objext \ | 
 | 16138 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16139 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 16140 |  | 
 | 16141 | 	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 16142 | 	  # Warning - without using the other run time loading flags, | 
 | 16143 | 	  # -berok will link without error, but may produce a broken library. | 
 | 16144 | 	  no_undefined_flag_GCJ=' ${wl}-bernotok' | 
 | 16145 | 	  allow_undefined_flag_GCJ=' ${wl}-berok' | 
 | 16146 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 16147 | 	  always_export_symbols_GCJ=yes | 
 | 16148 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 16149 | 	  whole_archive_flag_spec_GCJ=' ' | 
 | 16150 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 16151 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16152 | 	  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] | 16153 | 	fi | 
 | 16154 |       fi | 
 | 16155 |       ;; | 
 | 16156 |  | 
 | 16157 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16158 |       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] | 16159 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16160 |       hardcode_minus_L_GCJ=yes | 
 | 16161 |       # see comment about different semantics on the GNU ld section | 
 | 16162 |       ld_shlibs_GCJ=no | 
 | 16163 |       ;; | 
 | 16164 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16165 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16166 |       export_dynamic_flag_spec_GCJ=-rdynamic | 
 | 16167 |       ;; | 
 | 16168 |  | 
 | 16169 |     cygwin* | mingw* | pw32*) | 
 | 16170 |       # When not using gcc, we currently assume that we are using | 
 | 16171 |       # Microsoft Visual C++. | 
 | 16172 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 16173 |       # no search path for DLLs. | 
 | 16174 |       hardcode_libdir_flag_spec_GCJ=' ' | 
 | 16175 |       allow_undefined_flag_GCJ=unsupported | 
 | 16176 |       # Tell ltmain to make .lib files, not .a files. | 
 | 16177 |       libext=lib | 
 | 16178 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16179 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16180 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16181 |       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] | 16182 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 16183 |       old_archive_From_new_cmds_GCJ='true' | 
 | 16184 |       # FIXME: Should let the user specify the lib program. | 
 | 16185 |       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 16186 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 16187 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 16188 |       ;; | 
 | 16189 |  | 
 | 16190 |     darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16191 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16192 |         rhapsody* | darwin1.[012]) | 
 | 16193 |          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | 
 | 16194 |          ;; | 
 | 16195 |        *) # Darwin 1.3 on | 
 | 16196 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 16197 |            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 16198 |          else | 
 | 16199 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 16200 |              10.[012]) | 
 | 16201 |                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 16202 |                ;; | 
 | 16203 |              10.*) | 
 | 16204 |                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | 
 | 16205 |                ;; | 
 | 16206 |            esac | 
 | 16207 |          fi | 
 | 16208 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16209 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16210 |       archive_cmds_need_lc_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16211 |       hardcode_direct_GCJ=no | 
 | 16212 |       hardcode_automatic_GCJ=yes | 
 | 16213 |       hardcode_shlibpath_var_GCJ=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16214 |       whole_archive_flag_spec_GCJ='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16215 |       link_all_deplibs_GCJ=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16216 |     if test "$GCC" = yes ; then | 
 | 16217 |     	output_verbose_link_cmd='echo' | 
 | 16218 |         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 16219 |       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 16220 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16221 |       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}' | 
 | 16222 |       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16223 |     else | 
 | 16224 |       case "$cc_basename" in | 
 | 16225 |         xlc*) | 
 | 16226 |          output_verbose_link_cmd='echo' | 
 | 16227 |          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 16228 |          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 16229 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16230 |          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}' | 
 | 16231 |           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16232 |           ;; | 
 | 16233 |        *) | 
 | 16234 |          ld_shlibs_GCJ=no | 
 | 16235 |           ;; | 
 | 16236 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16237 |     fi | 
 | 16238 |       ;; | 
 | 16239 |  | 
 | 16240 |     dgux*) | 
 | 16241 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16242 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16243 |       hardcode_shlibpath_var_GCJ=no | 
 | 16244 |       ;; | 
 | 16245 |  | 
 | 16246 |     freebsd1*) | 
 | 16247 |       ld_shlibs_GCJ=no | 
 | 16248 |       ;; | 
 | 16249 |  | 
 | 16250 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 16251 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 16252 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 16253 |     # extra space). | 
 | 16254 |     freebsd2.2*) | 
 | 16255 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 16256 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16257 |       hardcode_direct_GCJ=yes | 
 | 16258 |       hardcode_shlibpath_var_GCJ=no | 
 | 16259 |       ;; | 
 | 16260 |  | 
 | 16261 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 16262 |     freebsd2*) | 
 | 16263 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 16264 |       hardcode_direct_GCJ=yes | 
 | 16265 |       hardcode_minus_L_GCJ=yes | 
 | 16266 |       hardcode_shlibpath_var_GCJ=no | 
 | 16267 |       ;; | 
 | 16268 |  | 
 | 16269 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16270 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16271 |       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16272 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16273 |       hardcode_direct_GCJ=yes | 
 | 16274 |       hardcode_shlibpath_var_GCJ=no | 
 | 16275 |       ;; | 
 | 16276 |  | 
 | 16277 |     hpux9*) | 
 | 16278 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16279 | 	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] | 16280 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16281 | 	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] | 16282 |       fi | 
 | 16283 |       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 16284 |       hardcode_libdir_separator_GCJ=: | 
 | 16285 |       hardcode_direct_GCJ=yes | 
 | 16286 |  | 
 | 16287 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 16288 |       # but as the default location of the library. | 
 | 16289 |       hardcode_minus_L_GCJ=yes | 
 | 16290 |       export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 16291 |       ;; | 
 | 16292 |  | 
 | 16293 |     hpux10* | hpux11*) | 
 | 16294 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 16295 | 	case "$host_cpu" in | 
 | 16296 | 	hppa*64*|ia64*) | 
 | 16297 | 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16298 | 	  ;; | 
 | 16299 | 	*) | 
 | 16300 | 	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16301 | 	  ;; | 
 | 16302 | 	esac | 
 | 16303 |       else | 
 | 16304 | 	case "$host_cpu" in | 
 | 16305 | 	hppa*64*|ia64*) | 
 | 16306 | 	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16307 | 	  ;; | 
 | 16308 | 	*) | 
 | 16309 | 	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 16310 | 	  ;; | 
 | 16311 | 	esac | 
 | 16312 |       fi | 
 | 16313 |       if test "$with_gnu_ld" = no; then | 
 | 16314 | 	case "$host_cpu" in | 
 | 16315 | 	hppa*64*) | 
 | 16316 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 16317 | 	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
 | 16318 | 	  hardcode_libdir_separator_GCJ=: | 
 | 16319 | 	  hardcode_direct_GCJ=no | 
 | 16320 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 16321 | 	  ;; | 
 | 16322 | 	ia64*) | 
 | 16323 | 	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16324 | 	  hardcode_direct_GCJ=no | 
 | 16325 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 16326 |  | 
 | 16327 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 16328 | 	  # but as the default location of the library. | 
 | 16329 | 	  hardcode_minus_L_GCJ=yes | 
 | 16330 | 	  ;; | 
 | 16331 | 	*) | 
 | 16332 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 16333 | 	  hardcode_libdir_separator_GCJ=: | 
 | 16334 | 	  hardcode_direct_GCJ=yes | 
 | 16335 | 	  export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 16336 |  | 
 | 16337 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 16338 | 	  # but as the default location of the library. | 
 | 16339 | 	  hardcode_minus_L_GCJ=yes | 
 | 16340 | 	  ;; | 
 | 16341 | 	esac | 
 | 16342 |       fi | 
 | 16343 |       ;; | 
 | 16344 |  | 
 | 16345 |     irix5* | irix6* | nonstopux*) | 
 | 16346 |       if test "$GCC" = yes; then | 
 | 16347 | 	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' | 
 | 16348 |       else | 
 | 16349 | 	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' | 
 | 16350 | 	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
 | 16351 |       fi | 
 | 16352 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 16353 |       hardcode_libdir_separator_GCJ=: | 
 | 16354 |       link_all_deplibs_GCJ=yes | 
 | 16355 |       ;; | 
 | 16356 |  | 
 | 16357 |     netbsd*) | 
 | 16358 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 16359 | 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 16360 |       else | 
 | 16361 | 	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 16362 |       fi | 
 | 16363 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16364 |       hardcode_direct_GCJ=yes | 
 | 16365 |       hardcode_shlibpath_var_GCJ=no | 
 | 16366 |       ;; | 
 | 16367 |  | 
 | 16368 |     newsos6) | 
 | 16369 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16370 |       hardcode_direct_GCJ=yes | 
 | 16371 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 16372 |       hardcode_libdir_separator_GCJ=: | 
 | 16373 |       hardcode_shlibpath_var_GCJ=no | 
 | 16374 |       ;; | 
 | 16375 |  | 
 | 16376 |     openbsd*) | 
 | 16377 |       hardcode_direct_GCJ=yes | 
 | 16378 |       hardcode_shlibpath_var_GCJ=no | 
 | 16379 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 16380 | 	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] | 16381 | 	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] | 16382 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 16383 | 	export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 16384 |       else | 
 | 16385 |        case $host_os in | 
 | 16386 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 16387 | 	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 16388 | 	   hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16389 | 	   ;; | 
 | 16390 | 	 *) | 
 | 16391 | 	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16392 | 	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 16393 | 	   ;; | 
 | 16394 |        esac | 
 | 16395 |       fi | 
 | 16396 |       ;; | 
 | 16397 |  | 
 | 16398 |     os2*) | 
 | 16399 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16400 |       hardcode_minus_L_GCJ=yes | 
 | 16401 |       allow_undefined_flag_GCJ=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16402 |       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] | 16403 |       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 16404 |       ;; | 
 | 16405 |  | 
 | 16406 |     osf3*) | 
 | 16407 |       if test "$GCC" = yes; then | 
 | 16408 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16409 | 	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' | 
 | 16410 |       else | 
 | 16411 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 16412 | 	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' | 
 | 16413 |       fi | 
 | 16414 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 16415 |       hardcode_libdir_separator_GCJ=: | 
 | 16416 |       ;; | 
 | 16417 |  | 
 | 16418 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 16419 |       if test "$GCC" = yes; then | 
 | 16420 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16421 | 	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' | 
 | 16422 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 16423 |       else | 
 | 16424 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 16425 | 	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16426 | 	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~ | 
 | 16427 | 	$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' | 
 | 16428 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16429 | 	# Both c and cxx compiler support -rpath directly | 
 | 16430 | 	hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
 | 16431 |       fi | 
 | 16432 |       hardcode_libdir_separator_GCJ=: | 
 | 16433 |       ;; | 
 | 16434 |  | 
 | 16435 |     sco3.2v5*) | 
 | 16436 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16437 |       hardcode_shlibpath_var_GCJ=no | 
 | 16438 |       export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
 | 16439 |       runpath_var=LD_RUN_PATH | 
 | 16440 |       hardcode_runpath_var=yes | 
 | 16441 |       ;; | 
 | 16442 |  | 
 | 16443 |     solaris*) | 
 | 16444 |       no_undefined_flag_GCJ=' -z text' | 
 | 16445 |       if test "$GCC" = yes; then | 
 | 16446 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16447 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16448 | 	  $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] | 16449 |       else | 
 | 16450 | 	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16451 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16452 |   	$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] | 16453 |       fi | 
 | 16454 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 16455 |       hardcode_shlibpath_var_GCJ=no | 
 | 16456 |       case $host_os in | 
 | 16457 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 16458 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 16459 | 	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
 | 16460 |       esac | 
 | 16461 |       link_all_deplibs_GCJ=yes | 
 | 16462 |       ;; | 
 | 16463 |  | 
 | 16464 |     sunos4*) | 
 | 16465 |       if test "x$host_vendor" = xsequent; then | 
 | 16466 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 16467 | 	# files that make .init and .fini sections work. | 
 | 16468 | 	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16469 |       else | 
 | 16470 | 	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 16471 |       fi | 
 | 16472 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16473 |       hardcode_direct_GCJ=yes | 
 | 16474 |       hardcode_minus_L_GCJ=yes | 
 | 16475 |       hardcode_shlibpath_var_GCJ=no | 
 | 16476 |       ;; | 
 | 16477 |  | 
 | 16478 |     sysv4) | 
 | 16479 |       case $host_vendor in | 
 | 16480 | 	sni) | 
 | 16481 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16482 | 	  hardcode_direct_GCJ=yes # is this really true??? | 
 | 16483 | 	;; | 
 | 16484 | 	siemens) | 
 | 16485 | 	  ## LD is ld it makes a PLAMLIB | 
 | 16486 | 	  ## CC just makes a GrossModule. | 
 | 16487 | 	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 16488 | 	  reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
 | 16489 | 	  hardcode_direct_GCJ=no | 
 | 16490 |         ;; | 
 | 16491 | 	motorola) | 
 | 16492 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16493 | 	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
 | 16494 | 	;; | 
 | 16495 |       esac | 
 | 16496 |       runpath_var='LD_RUN_PATH' | 
 | 16497 |       hardcode_shlibpath_var_GCJ=no | 
 | 16498 |       ;; | 
 | 16499 |  | 
 | 16500 |     sysv4.3*) | 
 | 16501 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16502 |       hardcode_shlibpath_var_GCJ=no | 
 | 16503 |       export_dynamic_flag_spec_GCJ='-Bexport' | 
 | 16504 |       ;; | 
 | 16505 |  | 
 | 16506 |     sysv4*MP*) | 
 | 16507 |       if test -d /usr/nec; then | 
 | 16508 | 	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16509 | 	hardcode_shlibpath_var_GCJ=no | 
 | 16510 | 	runpath_var=LD_RUN_PATH | 
 | 16511 | 	hardcode_runpath_var=yes | 
 | 16512 | 	ld_shlibs_GCJ=yes | 
 | 16513 |       fi | 
 | 16514 |       ;; | 
 | 16515 |  | 
 | 16516 |     sysv4.2uw2*) | 
 | 16517 |       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 16518 |       hardcode_direct_GCJ=yes | 
 | 16519 |       hardcode_minus_L_GCJ=no | 
 | 16520 |       hardcode_shlibpath_var_GCJ=no | 
 | 16521 |       hardcode_runpath_var=yes | 
 | 16522 |       runpath_var=LD_RUN_PATH | 
 | 16523 |       ;; | 
 | 16524 |  | 
 | 16525 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 16526 |       no_undefined_flag_GCJ='${wl}-z ${wl}text' | 
 | 16527 |       if test "$GCC" = yes; then | 
 | 16528 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16529 |       else | 
 | 16530 | 	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16531 |       fi | 
 | 16532 |       runpath_var='LD_RUN_PATH' | 
 | 16533 |       hardcode_shlibpath_var_GCJ=no | 
 | 16534 |       ;; | 
 | 16535 |  | 
 | 16536 |     sysv5*) | 
 | 16537 |       no_undefined_flag_GCJ=' -z text' | 
 | 16538 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 16539 |       # object files and a static libstdc++, better avoid it by now | 
 | 16540 |       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16541 |       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16542 |   		$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] | 16543 |       hardcode_libdir_flag_spec_GCJ= | 
 | 16544 |       hardcode_shlibpath_var_GCJ=no | 
 | 16545 |       runpath_var='LD_RUN_PATH' | 
 | 16546 |       ;; | 
 | 16547 |  | 
 | 16548 |     uts4*) | 
 | 16549 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16550 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 16551 |       hardcode_shlibpath_var_GCJ=no | 
 | 16552 |       ;; | 
 | 16553 |  | 
 | 16554 |     *) | 
 | 16555 |       ld_shlibs_GCJ=no | 
 | 16556 |       ;; | 
 | 16557 |     esac | 
 | 16558 |   fi | 
 | 16559 |  | 
 | 16560 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
 | 16561 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 
 | 16562 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
 | 16563 |  | 
 | 16564 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 16565 | if test "$GCC" = yes; then | 
 | 16566 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 16567 | fi | 
 | 16568 |  | 
 | 16569 | # | 
 | 16570 | # Do we need to explicitly link libc? | 
 | 16571 | # | 
 | 16572 | case "x$archive_cmds_need_lc_GCJ" in | 
 | 16573 | x|xyes) | 
 | 16574 |   # Assume -lc should be added | 
 | 16575 |   archive_cmds_need_lc_GCJ=yes | 
 | 16576 |  | 
 | 16577 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 16578 |     case $archive_cmds_GCJ in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16579 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16580 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 16581 |       ;; | 
 | 16582 |     '$CC '*) | 
 | 16583 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 16584 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 16585 |       # to ld, don't add -lc before -lgcc. | 
 | 16586 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 16587 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 16588 |       $rm conftest* | 
 | 16589 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16590 |  | 
 | 16591 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 16592 |   (eval $ac_compile) 2>&5 | 
 | 16593 |   ac_status=$? | 
 | 16594 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16595 |   (exit $ac_status); } 2>conftest.err; then | 
 | 16596 |         soname=conftest | 
 | 16597 |         lib=conftest | 
 | 16598 |         libobjs=conftest.$ac_objext | 
 | 16599 |         deplibs= | 
 | 16600 |         wl=$lt_prog_compiler_wl_GCJ | 
 | 16601 |         compiler_flags=-v | 
 | 16602 |         linker_flags=-v | 
 | 16603 |         verstring= | 
 | 16604 |         output_objdir=. | 
 | 16605 |         libname=conftest | 
 | 16606 |         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
 | 16607 |         allow_undefined_flag_GCJ= | 
 | 16608 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 16609 |   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 16610 |   ac_status=$? | 
 | 16611 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16612 |   (exit $ac_status); } | 
 | 16613 |         then | 
 | 16614 | 	  archive_cmds_need_lc_GCJ=no | 
 | 16615 |         else | 
 | 16616 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 16617 |         fi | 
 | 16618 |         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
 | 16619 |       else | 
 | 16620 |         cat conftest.err 1>&5 | 
 | 16621 |       fi | 
 | 16622 |       $rm conftest* | 
 | 16623 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
 | 16624 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 
 | 16625 |       ;; | 
 | 16626 |     esac | 
 | 16627 |   fi | 
 | 16628 |   ;; | 
 | 16629 | esac | 
 | 16630 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16631 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 16632 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 16633 | library_names_spec= | 
 | 16634 | libname_spec='lib$name' | 
 | 16635 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16636 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16637 | postinstall_cmds= | 
 | 16638 | postuninstall_cmds= | 
 | 16639 | finish_cmds= | 
 | 16640 | finish_eval= | 
 | 16641 | shlibpath_var= | 
 | 16642 | shlibpath_overrides_runpath=unknown | 
 | 16643 | version_type=none | 
 | 16644 | dynamic_linker="$host_os ld.so" | 
 | 16645 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 16646 | if test "$GCC" = yes; then | 
 | 16647 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16648 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 16649 |     # if the path contains ";" then we assume it to be the separator | 
 | 16650 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 16651 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 16652 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 16653 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16654 |   else | 
 | 16655 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16656 |   fi | 
 | 16657 | else | 
 | 16658 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 16659 | fi | 
 | 16660 | need_lib_prefix=unknown | 
 | 16661 | hardcode_into_libs=no | 
 | 16662 |  | 
 | 16663 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 16664 | # flags to be left without arguments | 
 | 16665 | need_version=unknown | 
 | 16666 |  | 
 | 16667 | case $host_os in | 
 | 16668 | aix3*) | 
 | 16669 |   version_type=linux | 
 | 16670 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 16671 |   shlibpath_var=LIBPATH | 
 | 16672 |  | 
 | 16673 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 16674 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16675 |   ;; | 
 | 16676 |  | 
 | 16677 | aix4* | aix5*) | 
 | 16678 |   version_type=linux | 
 | 16679 |   need_lib_prefix=no | 
 | 16680 |   need_version=no | 
 | 16681 |   hardcode_into_libs=yes | 
 | 16682 |   if test "$host_cpu" = ia64; then | 
 | 16683 |     # AIX 5 supports IA64 | 
 | 16684 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 16685 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16686 |   else | 
 | 16687 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 16688 |     # for dependence libraries.  The import file would start with | 
 | 16689 |     # the line `#! .'.  This would cause the generated library to | 
 | 16690 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 16691 |     # development snapshots of GCC prior to 3.0. | 
 | 16692 |     case $host_os in | 
 | 16693 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 16694 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 16695 | 	   echo ' yes ' | 
 | 16696 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 16697 | 	: | 
 | 16698 |       else | 
 | 16699 | 	can_build_shared=no | 
 | 16700 |       fi | 
 | 16701 |       ;; | 
 | 16702 |     esac | 
 | 16703 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 16704 |     # soname into executable. Probably we can add versioning support to | 
 | 16705 |     # collect2, so additional links can be useful in future. | 
 | 16706 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 16707 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 16708 |       # instead of lib<name>.a to let people know that these are not | 
 | 16709 |       # typical AIX shared libraries. | 
 | 16710 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16711 |     else | 
 | 16712 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 16713 |       # and later when we are not doing run time linking. | 
 | 16714 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 16715 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16716 |     fi | 
 | 16717 |     shlibpath_var=LIBPATH | 
 | 16718 |   fi | 
 | 16719 |   ;; | 
 | 16720 |  | 
 | 16721 | amigaos*) | 
 | 16722 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 16723 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16724 |   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] | 16725 |   ;; | 
 | 16726 |  | 
 | 16727 | beos*) | 
 | 16728 |   library_names_spec='${libname}${shared_ext}' | 
 | 16729 |   dynamic_linker="$host_os ld.so" | 
 | 16730 |   shlibpath_var=LIBRARY_PATH | 
 | 16731 |   ;; | 
 | 16732 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16733 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16734 |   version_type=linux | 
 | 16735 |   need_version=no | 
 | 16736 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16737 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16738 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 16739 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16740 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 16741 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 16742 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 16743 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 16744 |   # libtool to hard-code these into programs | 
 | 16745 |   ;; | 
 | 16746 |  | 
 | 16747 | cygwin* | mingw* | pw32*) | 
 | 16748 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16749 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16750 |   need_version=no | 
 | 16751 |   need_lib_prefix=no | 
 | 16752 |  | 
 | 16753 |   case $GCC,$host_os in | 
 | 16754 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 16755 |     library_names_spec='$libname.dll.a' | 
 | 16756 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16757 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 16758 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 16759 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 16760 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16761 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16762 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 16763 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16764 |        $rm \$dlpath' | 
 | 16765 |     shlibpath_overrides_runpath=yes | 
 | 16766 |  | 
 | 16767 |     case $host_os in | 
 | 16768 |     cygwin*) | 
 | 16769 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 16770 |       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] | 16771 |       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] | 16772 |       ;; | 
 | 16773 |     mingw*) | 
 | 16774 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 16775 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 16776 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16777 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 16778 |         # It is most probably a Windows format PATH printed by | 
 | 16779 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 16780 |         # path with ; separators, and with drive letters. We can handle the | 
 | 16781 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 16782 |         # especially as we might pass files found there to a mingw objdump, | 
 | 16783 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 16784 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16785 |       else | 
 | 16786 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16787 |       fi | 
 | 16788 |       ;; | 
 | 16789 |     pw32*) | 
 | 16790 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 16791 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 16792 |       ;; | 
 | 16793 |     esac | 
 | 16794 |     ;; | 
 | 16795 |  | 
 | 16796 |   *) | 
 | 16797 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 16798 |     ;; | 
 | 16799 |   esac | 
 | 16800 |   dynamic_linker='Win32 ld.exe' | 
 | 16801 |   # FIXME: first we should search . and the directory the executable is in | 
 | 16802 |   shlibpath_var=PATH | 
 | 16803 |   ;; | 
 | 16804 |  | 
 | 16805 | darwin* | rhapsody*) | 
 | 16806 |   dynamic_linker="$host_os dyld" | 
 | 16807 |   version_type=darwin | 
 | 16808 |   need_lib_prefix=no | 
 | 16809 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16810 |   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] | 16811 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 16812 |   shlibpath_overrides_runpath=yes | 
 | 16813 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16814 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16815 |   # 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] | 16816 |   if test "$GCC" = yes; then | 
 | 16817 |     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"` | 
 | 16818 |   else | 
 | 16819 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16820 |   fi | 
 | 16821 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 16822 |   ;; | 
 | 16823 |  | 
 | 16824 | dgux*) | 
 | 16825 |   version_type=linux | 
 | 16826 |   need_lib_prefix=no | 
 | 16827 |   need_version=no | 
 | 16828 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 16829 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16830 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16831 |   ;; | 
 | 16832 |  | 
 | 16833 | freebsd1*) | 
 | 16834 |   dynamic_linker=no | 
 | 16835 |   ;; | 
 | 16836 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16837 | kfreebsd*-gnu) | 
 | 16838 |   version_type=linux | 
 | 16839 |   need_lib_prefix=no | 
 | 16840 |   need_version=no | 
 | 16841 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 16842 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16843 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16844 |   shlibpath_overrides_runpath=no | 
 | 16845 |   hardcode_into_libs=yes | 
 | 16846 |   dynamic_linker='GNU ld.so' | 
 | 16847 |   ;; | 
 | 16848 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16849 | freebsd*) | 
 | 16850 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 16851 |   version_type=freebsd-$objformat | 
 | 16852 |   case $version_type in | 
 | 16853 |     freebsd-elf*) | 
 | 16854 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 16855 |       need_version=no | 
 | 16856 |       need_lib_prefix=no | 
 | 16857 |       ;; | 
 | 16858 |     freebsd-*) | 
 | 16859 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 16860 |       need_version=yes | 
 | 16861 |       ;; | 
 | 16862 |   esac | 
 | 16863 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16864 |   case $host_os in | 
 | 16865 |   freebsd2*) | 
 | 16866 |     shlibpath_overrides_runpath=yes | 
 | 16867 |     ;; | 
 | 16868 |   freebsd3.01* | freebsdelf3.01*) | 
 | 16869 |     shlibpath_overrides_runpath=yes | 
 | 16870 |     hardcode_into_libs=yes | 
 | 16871 |     ;; | 
 | 16872 |   *) # from 3.2 on | 
 | 16873 |     shlibpath_overrides_runpath=no | 
 | 16874 |     hardcode_into_libs=yes | 
 | 16875 |     ;; | 
 | 16876 |   esac | 
 | 16877 |   ;; | 
 | 16878 |  | 
 | 16879 | gnu*) | 
 | 16880 |   version_type=linux | 
 | 16881 |   need_lib_prefix=no | 
 | 16882 |   need_version=no | 
 | 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 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16886 |   hardcode_into_libs=yes | 
 | 16887 |   ;; | 
 | 16888 |  | 
 | 16889 | hpux9* | hpux10* | hpux11*) | 
 | 16890 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 16891 |   # link against other versions. | 
 | 16892 |   version_type=sunos | 
 | 16893 |   need_lib_prefix=no | 
 | 16894 |   need_version=no | 
 | 16895 |   case "$host_cpu" in | 
 | 16896 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16897 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16898 |     hardcode_into_libs=yes | 
 | 16899 |     dynamic_linker="$host_os dld.so" | 
 | 16900 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16901 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 16902 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16903 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16904 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 16905 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 16906 |     else | 
 | 16907 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 16908 |     fi | 
 | 16909 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 16910 |     ;; | 
 | 16911 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16912 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16913 |      hardcode_into_libs=yes | 
 | 16914 |      dynamic_linker="$host_os dld.sl" | 
 | 16915 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 16916 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 16917 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16918 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16919 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 16920 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 16921 |      ;; | 
 | 16922 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16923 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16924 |     dynamic_linker="$host_os dld.sl" | 
 | 16925 |     shlibpath_var=SHLIB_PATH | 
 | 16926 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 16927 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16928 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16929 |     ;; | 
 | 16930 |   esac | 
 | 16931 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 16932 |   postinstall_cmds='chmod 555 $lib' | 
 | 16933 |   ;; | 
 | 16934 |  | 
 | 16935 | irix5* | irix6* | nonstopux*) | 
 | 16936 |   case $host_os in | 
 | 16937 |     nonstopux*) version_type=nonstopux ;; | 
 | 16938 |     *) | 
 | 16939 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 16940 | 		version_type=linux | 
 | 16941 | 	else | 
 | 16942 | 		version_type=irix | 
 | 16943 | 	fi ;; | 
 | 16944 |   esac | 
 | 16945 |   need_lib_prefix=no | 
 | 16946 |   need_version=no | 
 | 16947 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16948 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 16949 |   case $host_os in | 
 | 16950 |   irix5* | nonstopux*) | 
 | 16951 |     libsuff= shlibsuff= | 
 | 16952 |     ;; | 
 | 16953 |   *) | 
 | 16954 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 16955 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 16956 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 16957 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 16958 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 16959 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 16960 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 16961 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 16962 |     esac | 
 | 16963 |     ;; | 
 | 16964 |   esac | 
 | 16965 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 16966 |   shlibpath_overrides_runpath=no | 
 | 16967 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 16968 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 16969 |   hardcode_into_libs=yes | 
 | 16970 |   ;; | 
 | 16971 |  | 
 | 16972 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 16973 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 16974 |   dynamic_linker=no | 
 | 16975 |   ;; | 
 | 16976 |  | 
 | 16977 | # This must be Linux ELF. | 
 | 16978 | linux*) | 
 | 16979 |   version_type=linux | 
 | 16980 |   need_lib_prefix=no | 
 | 16981 |   need_version=no | 
 | 16982 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16983 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16984 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 16985 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16986 |   shlibpath_overrides_runpath=no | 
 | 16987 |   # This implies no fast_install, which is unacceptable. | 
 | 16988 |   # Some rework will be needed to allow for fast_install | 
 | 16989 |   # before this can be enabled. | 
 | 16990 |   hardcode_into_libs=yes | 
 | 16991 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16992 |   # Append ld.so.conf contents to the search path | 
 | 16993 |   if test -f /etc/ld.so.conf; then | 
 | 16994 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 16995 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 16996 |   fi | 
 | 16997 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16998 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 16999 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 17000 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 17001 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 17002 |   # people can always --disable-shared, the test was removed, and we | 
 | 17003 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 17004 |   dynamic_linker='GNU/Linux ld.so' | 
 | 17005 |   ;; | 
 | 17006 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17007 | knetbsd*-gnu) | 
 | 17008 |   version_type=linux | 
 | 17009 |   need_lib_prefix=no | 
 | 17010 |   need_version=no | 
 | 17011 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 17012 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17013 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17014 |   shlibpath_overrides_runpath=no | 
 | 17015 |   hardcode_into_libs=yes | 
 | 17016 |   dynamic_linker='GNU ld.so' | 
 | 17017 |   ;; | 
 | 17018 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17019 | netbsd*) | 
 | 17020 |   version_type=sunos | 
 | 17021 |   need_lib_prefix=no | 
 | 17022 |   need_version=no | 
 | 17023 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 17024 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17025 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 17026 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 17027 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17028 |     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] | 17029 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17030 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 17031 |   fi | 
 | 17032 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17033 |   shlibpath_overrides_runpath=yes | 
 | 17034 |   hardcode_into_libs=yes | 
 | 17035 |   ;; | 
 | 17036 |  | 
 | 17037 | newsos6) | 
 | 17038 |   version_type=linux | 
 | 17039 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17040 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17041 |   shlibpath_overrides_runpath=yes | 
 | 17042 |   ;; | 
 | 17043 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17044 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17045 |   version_type=linux | 
 | 17046 |   need_lib_prefix=no | 
 | 17047 |   need_version=no | 
 | 17048 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17049 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17050 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17051 |   shlibpath_overrides_runpath=yes | 
 | 17052 |   ;; | 
 | 17053 |  | 
 | 17054 | openbsd*) | 
 | 17055 |   version_type=sunos | 
 | 17056 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17057 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17058 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17059 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 17060 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17061 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 17062 |     case $host_os in | 
 | 17063 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 17064 | 	shlibpath_overrides_runpath=no | 
 | 17065 | 	;; | 
 | 17066 |       *) | 
 | 17067 | 	shlibpath_overrides_runpath=yes | 
 | 17068 | 	;; | 
 | 17069 |       esac | 
 | 17070 |   else | 
 | 17071 |     shlibpath_overrides_runpath=yes | 
 | 17072 |   fi | 
 | 17073 |   ;; | 
 | 17074 |  | 
 | 17075 | os2*) | 
 | 17076 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17077 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17078 |   need_lib_prefix=no | 
 | 17079 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 17080 |   dynamic_linker='OS/2 ld.exe' | 
 | 17081 |   shlibpath_var=LIBPATH | 
 | 17082 |   ;; | 
 | 17083 |  | 
 | 17084 | osf3* | osf4* | osf5*) | 
 | 17085 |   version_type=osf | 
 | 17086 |   need_lib_prefix=no | 
 | 17087 |   need_version=no | 
 | 17088 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17089 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17090 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17091 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 17092 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 17093 |   ;; | 
 | 17094 |  | 
 | 17095 | sco3.2v5*) | 
 | 17096 |   version_type=osf | 
 | 17097 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17098 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17099 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17100 |   ;; | 
 | 17101 |  | 
 | 17102 | solaris*) | 
 | 17103 |   version_type=linux | 
 | 17104 |   need_lib_prefix=no | 
 | 17105 |   need_version=no | 
 | 17106 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17107 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17108 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17109 |   shlibpath_overrides_runpath=yes | 
 | 17110 |   hardcode_into_libs=yes | 
 | 17111 |   # ldd complains unless libraries are executable | 
 | 17112 |   postinstall_cmds='chmod +x $lib' | 
 | 17113 |   ;; | 
 | 17114 |  | 
 | 17115 | sunos4*) | 
 | 17116 |   version_type=sunos | 
 | 17117 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17118 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 17119 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17120 |   shlibpath_overrides_runpath=yes | 
 | 17121 |   if test "$with_gnu_ld" = yes; then | 
 | 17122 |     need_lib_prefix=no | 
 | 17123 |   fi | 
 | 17124 |   need_version=yes | 
 | 17125 |   ;; | 
 | 17126 |  | 
 | 17127 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 17128 |   version_type=linux | 
 | 17129 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17130 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17131 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17132 |   case $host_vendor in | 
 | 17133 |     sni) | 
 | 17134 |       shlibpath_overrides_runpath=no | 
 | 17135 |       need_lib_prefix=no | 
 | 17136 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 17137 |       runpath_var=LD_RUN_PATH | 
 | 17138 |       ;; | 
 | 17139 |     siemens) | 
 | 17140 |       need_lib_prefix=no | 
 | 17141 |       ;; | 
 | 17142 |     motorola) | 
 | 17143 |       need_lib_prefix=no | 
 | 17144 |       need_version=no | 
 | 17145 |       shlibpath_overrides_runpath=no | 
 | 17146 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 17147 |       ;; | 
 | 17148 |   esac | 
 | 17149 |   ;; | 
 | 17150 |  | 
 | 17151 | sysv4*MP*) | 
 | 17152 |   if test -d /usr/nec ;then | 
 | 17153 |     version_type=linux | 
 | 17154 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 17155 |     soname_spec='$libname${shared_ext}.$major' | 
 | 17156 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 17157 |   fi | 
 | 17158 |   ;; | 
 | 17159 |  | 
 | 17160 | uts4*) | 
 | 17161 |   version_type=linux | 
 | 17162 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17163 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17164 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17165 |   ;; | 
 | 17166 |  | 
 | 17167 | *) | 
 | 17168 |   dynamic_linker=no | 
 | 17169 |   ;; | 
 | 17170 | esac | 
 | 17171 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 17172 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 17173 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 17174 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17175 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 17176 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 17177 | hardcode_action_GCJ= | 
 | 17178 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
 | 17179 |    test -n "$runpath_var_GCJ" || \ | 
 | 17180 |    test "X$hardcode_automatic_GCJ" = "Xyes" ; then | 
 | 17181 |  | 
 | 17182 |   # We can hardcode non-existant directories. | 
 | 17183 |   if test "$hardcode_direct_GCJ" != no && | 
 | 17184 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 17185 |      # have to relink, otherwise we might link with an installed library | 
 | 17186 |      # when we should be linking with a yet-to-be-installed one | 
 | 17187 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
 | 17188 |      test "$hardcode_minus_L_GCJ" != no; then | 
 | 17189 |     # Linking always hardcodes the temporary library directory. | 
 | 17190 |     hardcode_action_GCJ=relink | 
 | 17191 |   else | 
 | 17192 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 17193 |     hardcode_action_GCJ=immediate | 
 | 17194 |   fi | 
 | 17195 | else | 
 | 17196 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 17197 |   # directories. | 
 | 17198 |   hardcode_action_GCJ=unsupported | 
 | 17199 | fi | 
 | 17200 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
 | 17201 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 
 | 17202 |  | 
 | 17203 | if test "$hardcode_action_GCJ" = relink; then | 
 | 17204 |   # Fast installation is not supported | 
 | 17205 |   enable_fast_install=no | 
 | 17206 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 17207 |      test "$enable_shared" = no; then | 
 | 17208 |   # Fast installation is not necessary | 
 | 17209 |   enable_fast_install=needless | 
 | 17210 | fi | 
 | 17211 |  | 
 | 17212 | striplib= | 
 | 17213 | old_striplib= | 
 | 17214 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 17215 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 17216 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 17217 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 17218 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 17219 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17220 | echo "${ECHO_T}yes" >&6 | 
 | 17221 | else | 
 | 17222 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 17223 |   case $host_os in | 
 | 17224 |    darwin*) | 
 | 17225 |        if test -n "$STRIP" ; then | 
 | 17226 |          striplib="$STRIP -x" | 
 | 17227 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17228 | echo "${ECHO_T}yes" >&6 | 
 | 17229 |        else | 
 | 17230 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 17231 | echo "${ECHO_T}no" >&6 | 
 | 17232 | fi | 
 | 17233 |        ;; | 
 | 17234 |    *) | 
 | 17235 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 17236 | echo "${ECHO_T}no" >&6 | 
 | 17237 |     ;; | 
 | 17238 |   esac | 
 | 17239 | fi | 
 | 17240 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17241 | if test "x$enable_dlopen" != xyes; then | 
 | 17242 |   enable_dlopen=unknown | 
 | 17243 |   enable_dlopen_self=unknown | 
 | 17244 |   enable_dlopen_self_static=unknown | 
 | 17245 | else | 
 | 17246 |   lt_cv_dlopen=no | 
 | 17247 |   lt_cv_dlopen_libs= | 
 | 17248 |  | 
 | 17249 |   case $host_os in | 
 | 17250 |   beos*) | 
 | 17251 |     lt_cv_dlopen="load_add_on" | 
 | 17252 |     lt_cv_dlopen_libs= | 
 | 17253 |     lt_cv_dlopen_self=yes | 
 | 17254 |     ;; | 
 | 17255 |  | 
 | 17256 |   mingw* | pw32*) | 
 | 17257 |     lt_cv_dlopen="LoadLibrary" | 
 | 17258 |     lt_cv_dlopen_libs= | 
 | 17259 |    ;; | 
 | 17260 |  | 
 | 17261 |   cygwin*) | 
 | 17262 |     lt_cv_dlopen="dlopen" | 
 | 17263 |     lt_cv_dlopen_libs= | 
 | 17264 |    ;; | 
 | 17265 |  | 
 | 17266 |   darwin*) | 
 | 17267 |   # if libdl is installed we need to link against it | 
 | 17268 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17269 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 17270 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17271 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17272 | else | 
 | 17273 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17274 | LIBS="-ldl  $LIBS" | 
 | 17275 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17276 | /* confdefs.h.  */ | 
 | 17277 | _ACEOF | 
 | 17278 | cat confdefs.h >>conftest.$ac_ext | 
 | 17279 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17280 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17281 |  | 
 | 17282 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17283 | #ifdef __cplusplus | 
 | 17284 | extern "C" | 
 | 17285 | #endif | 
 | 17286 | /* We use char because int might match the return type of a gcc2 | 
 | 17287 |    builtin and then its argument prototype would still apply.  */ | 
 | 17288 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17289 | int | 
 | 17290 | main () | 
 | 17291 | { | 
 | 17292 | dlopen (); | 
 | 17293 |   ; | 
 | 17294 |   return 0; | 
 | 17295 | } | 
 | 17296 | _ACEOF | 
 | 17297 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17299 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17300 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17301 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17302 |   rm -f conftest.er1 | 
 | 17303 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17304 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17305 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17306 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17307 | 			 || test ! -s conftest.err' | 
 | 17308 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17309 |   (eval $ac_try) 2>&5 | 
 | 17310 |   ac_status=$? | 
 | 17311 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17312 |   (exit $ac_status); }; } && | 
 | 17313 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17314 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17315 |   (eval $ac_try) 2>&5 | 
 | 17316 |   ac_status=$? | 
 | 17317 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17318 |   (exit $ac_status); }; }; then | 
 | 17319 |   ac_cv_lib_dl_dlopen=yes | 
 | 17320 | else | 
 | 17321 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17322 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17323 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17324 | ac_cv_lib_dl_dlopen=no | 
 | 17325 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17326 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17327 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17328 | LIBS=$ac_check_lib_save_LIBS | 
 | 17329 | fi | 
 | 17330 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17331 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 17332 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17333 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17334 | else | 
 | 17335 |  | 
 | 17336 |     lt_cv_dlopen="dyld" | 
 | 17337 |     lt_cv_dlopen_libs= | 
 | 17338 |     lt_cv_dlopen_self=yes | 
 | 17339 |  | 
 | 17340 | fi | 
 | 17341 |  | 
 | 17342 |    ;; | 
 | 17343 |  | 
 | 17344 |   *) | 
 | 17345 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 17346 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 17347 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 17348 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17349 | else | 
 | 17350 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17351 | /* confdefs.h.  */ | 
 | 17352 | _ACEOF | 
 | 17353 | cat confdefs.h >>conftest.$ac_ext | 
 | 17354 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17355 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17356 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 17357 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17358 | #define shl_load innocuous_shl_load | 
 | 17359 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17360 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17361 |     which can conflict with char shl_load (); below. | 
 | 17362 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17363 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17364 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17365 | #ifdef __STDC__ | 
 | 17366 | # include <limits.h> | 
 | 17367 | #else | 
 | 17368 | # include <assert.h> | 
 | 17369 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17370 |  | 
 | 17371 | #undef shl_load | 
 | 17372 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17373 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17374 | #ifdef __cplusplus | 
 | 17375 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17376 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17377 | #endif | 
 | 17378 | /* We use char because int might match the return type of a gcc2 | 
 | 17379 |    builtin and then its argument prototype would still apply.  */ | 
 | 17380 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17381 | /* The GNU C library defines this for functions which it implements | 
 | 17382 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17383 |     something starting with __ and the normal name is an alias.  */ | 
 | 17384 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 17385 | choke me | 
 | 17386 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17387 | char (*f) () = shl_load; | 
 | 17388 | #endif | 
 | 17389 | #ifdef __cplusplus | 
 | 17390 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17391 | #endif | 
 | 17392 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17393 | int | 
 | 17394 | main () | 
 | 17395 | { | 
 | 17396 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17397 |   ; | 
 | 17398 |   return 0; | 
 | 17399 | } | 
 | 17400 | _ACEOF | 
 | 17401 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17403 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17404 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17405 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17406 |   rm -f conftest.er1 | 
 | 17407 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17408 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17409 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17410 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17411 | 			 || test ! -s conftest.err' | 
 | 17412 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17413 |   (eval $ac_try) 2>&5 | 
 | 17414 |   ac_status=$? | 
 | 17415 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17416 |   (exit $ac_status); }; } && | 
 | 17417 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17418 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17419 |   (eval $ac_try) 2>&5 | 
 | 17420 |   ac_status=$? | 
 | 17421 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17422 |   (exit $ac_status); }; }; then | 
 | 17423 |   ac_cv_func_shl_load=yes | 
 | 17424 | else | 
 | 17425 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17426 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17427 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17428 | ac_cv_func_shl_load=no | 
 | 17429 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17430 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17431 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17432 | fi | 
 | 17433 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 17434 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 17435 | if test $ac_cv_func_shl_load = yes; then | 
 | 17436 |   lt_cv_dlopen="shl_load" | 
 | 17437 | else | 
 | 17438 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 17439 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 17440 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 17441 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17442 | else | 
 | 17443 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17444 | LIBS="-ldld  $LIBS" | 
 | 17445 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17446 | /* confdefs.h.  */ | 
 | 17447 | _ACEOF | 
 | 17448 | cat confdefs.h >>conftest.$ac_ext | 
 | 17449 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17450 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17451 |  | 
 | 17452 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17453 | #ifdef __cplusplus | 
 | 17454 | extern "C" | 
 | 17455 | #endif | 
 | 17456 | /* We use char because int might match the return type of a gcc2 | 
 | 17457 |    builtin and then its argument prototype would still apply.  */ | 
 | 17458 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17459 | int | 
 | 17460 | main () | 
 | 17461 | { | 
 | 17462 | shl_load (); | 
 | 17463 |   ; | 
 | 17464 |   return 0; | 
 | 17465 | } | 
 | 17466 | _ACEOF | 
 | 17467 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17469 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17470 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17471 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17472 |   rm -f conftest.er1 | 
 | 17473 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17474 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17475 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17476 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17477 | 			 || test ! -s conftest.err' | 
 | 17478 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17479 |   (eval $ac_try) 2>&5 | 
 | 17480 |   ac_status=$? | 
 | 17481 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17482 |   (exit $ac_status); }; } && | 
 | 17483 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17484 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17485 |   (eval $ac_try) 2>&5 | 
 | 17486 |   ac_status=$? | 
 | 17487 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17488 |   (exit $ac_status); }; }; then | 
 | 17489 |   ac_cv_lib_dld_shl_load=yes | 
 | 17490 | else | 
 | 17491 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17492 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17493 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17494 | ac_cv_lib_dld_shl_load=no | 
 | 17495 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17496 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17497 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17498 | LIBS=$ac_check_lib_save_LIBS | 
 | 17499 | fi | 
 | 17500 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 17501 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 17502 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 17503 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 17504 | else | 
 | 17505 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 17506 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 17507 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 17508 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17509 | else | 
 | 17510 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17511 | /* confdefs.h.  */ | 
 | 17512 | _ACEOF | 
 | 17513 | cat confdefs.h >>conftest.$ac_ext | 
 | 17514 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17515 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17516 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 17517 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17518 | #define dlopen innocuous_dlopen | 
 | 17519 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17520 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17521 |     which can conflict with char dlopen (); below. | 
 | 17522 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17523 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17524 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17525 | #ifdef __STDC__ | 
 | 17526 | # include <limits.h> | 
 | 17527 | #else | 
 | 17528 | # include <assert.h> | 
 | 17529 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17530 |  | 
 | 17531 | #undef dlopen | 
 | 17532 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17533 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17534 | #ifdef __cplusplus | 
 | 17535 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17536 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17537 | #endif | 
 | 17538 | /* We use char because int might match the return type of a gcc2 | 
 | 17539 |    builtin and then its argument prototype would still apply.  */ | 
 | 17540 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17541 | /* The GNU C library defines this for functions which it implements | 
 | 17542 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17543 |     something starting with __ and the normal name is an alias.  */ | 
 | 17544 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 17545 | choke me | 
 | 17546 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17547 | char (*f) () = dlopen; | 
 | 17548 | #endif | 
 | 17549 | #ifdef __cplusplus | 
 | 17550 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17551 | #endif | 
 | 17552 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17553 | int | 
 | 17554 | main () | 
 | 17555 | { | 
 | 17556 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17557 |   ; | 
 | 17558 |   return 0; | 
 | 17559 | } | 
 | 17560 | _ACEOF | 
 | 17561 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17563 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17564 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17565 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17566 |   rm -f conftest.er1 | 
 | 17567 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17568 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17569 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17570 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17571 | 			 || test ! -s conftest.err' | 
 | 17572 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17573 |   (eval $ac_try) 2>&5 | 
 | 17574 |   ac_status=$? | 
 | 17575 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17576 |   (exit $ac_status); }; } && | 
 | 17577 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17578 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17579 |   (eval $ac_try) 2>&5 | 
 | 17580 |   ac_status=$? | 
 | 17581 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17582 |   (exit $ac_status); }; }; then | 
 | 17583 |   ac_cv_func_dlopen=yes | 
 | 17584 | else | 
 | 17585 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17586 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17587 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17588 | ac_cv_func_dlopen=no | 
 | 17589 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17590 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17591 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17592 | fi | 
 | 17593 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 17594 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 17595 | if test $ac_cv_func_dlopen = yes; then | 
 | 17596 |   lt_cv_dlopen="dlopen" | 
 | 17597 | else | 
 | 17598 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17599 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 17600 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17601 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17602 | else | 
 | 17603 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17604 | LIBS="-ldl  $LIBS" | 
 | 17605 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17606 | /* confdefs.h.  */ | 
 | 17607 | _ACEOF | 
 | 17608 | cat confdefs.h >>conftest.$ac_ext | 
 | 17609 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17610 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17611 |  | 
 | 17612 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17613 | #ifdef __cplusplus | 
 | 17614 | extern "C" | 
 | 17615 | #endif | 
 | 17616 | /* We use char because int might match the return type of a gcc2 | 
 | 17617 |    builtin and then its argument prototype would still apply.  */ | 
 | 17618 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17619 | int | 
 | 17620 | main () | 
 | 17621 | { | 
 | 17622 | dlopen (); | 
 | 17623 |   ; | 
 | 17624 |   return 0; | 
 | 17625 | } | 
 | 17626 | _ACEOF | 
 | 17627 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17629 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17630 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17631 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17632 |   rm -f conftest.er1 | 
 | 17633 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17634 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17635 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17636 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17637 | 			 || test ! -s conftest.err' | 
 | 17638 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17639 |   (eval $ac_try) 2>&5 | 
 | 17640 |   ac_status=$? | 
 | 17641 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17642 |   (exit $ac_status); }; } && | 
 | 17643 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17644 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17645 |   (eval $ac_try) 2>&5 | 
 | 17646 |   ac_status=$? | 
 | 17647 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17648 |   (exit $ac_status); }; }; then | 
 | 17649 |   ac_cv_lib_dl_dlopen=yes | 
 | 17650 | else | 
 | 17651 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17652 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17653 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17654 | ac_cv_lib_dl_dlopen=no | 
 | 17655 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17656 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17657 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17658 | LIBS=$ac_check_lib_save_LIBS | 
 | 17659 | fi | 
 | 17660 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17661 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 17662 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17663 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17664 | else | 
 | 17665 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 17666 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 17667 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 17668 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17669 | else | 
 | 17670 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17671 | LIBS="-lsvld  $LIBS" | 
 | 17672 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17673 | /* confdefs.h.  */ | 
 | 17674 | _ACEOF | 
 | 17675 | cat confdefs.h >>conftest.$ac_ext | 
 | 17676 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17677 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17678 |  | 
 | 17679 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17680 | #ifdef __cplusplus | 
 | 17681 | extern "C" | 
 | 17682 | #endif | 
 | 17683 | /* We use char because int might match the return type of a gcc2 | 
 | 17684 |    builtin and then its argument prototype would still apply.  */ | 
 | 17685 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17686 | int | 
 | 17687 | main () | 
 | 17688 | { | 
 | 17689 | dlopen (); | 
 | 17690 |   ; | 
 | 17691 |   return 0; | 
 | 17692 | } | 
 | 17693 | _ACEOF | 
 | 17694 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17696 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17697 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17698 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17699 |   rm -f conftest.er1 | 
 | 17700 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17701 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17702 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17703 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17704 | 			 || test ! -s conftest.err' | 
 | 17705 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17706 |   (eval $ac_try) 2>&5 | 
 | 17707 |   ac_status=$? | 
 | 17708 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17709 |   (exit $ac_status); }; } && | 
 | 17710 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17711 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17712 |   (eval $ac_try) 2>&5 | 
 | 17713 |   ac_status=$? | 
 | 17714 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17715 |   (exit $ac_status); }; }; then | 
 | 17716 |   ac_cv_lib_svld_dlopen=yes | 
 | 17717 | else | 
 | 17718 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17719 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17720 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17721 | ac_cv_lib_svld_dlopen=no | 
 | 17722 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17723 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17724 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17725 | LIBS=$ac_check_lib_save_LIBS | 
 | 17726 | fi | 
 | 17727 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 17728 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 17729 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 17730 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 17731 | else | 
 | 17732 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 17733 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 17734 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 17735 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17736 | else | 
 | 17737 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17738 | LIBS="-ldld  $LIBS" | 
 | 17739 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17740 | /* confdefs.h.  */ | 
 | 17741 | _ACEOF | 
 | 17742 | cat confdefs.h >>conftest.$ac_ext | 
 | 17743 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17744 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17745 |  | 
 | 17746 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17747 | #ifdef __cplusplus | 
 | 17748 | extern "C" | 
 | 17749 | #endif | 
 | 17750 | /* We use char because int might match the return type of a gcc2 | 
 | 17751 |    builtin and then its argument prototype would still apply.  */ | 
 | 17752 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17753 | int | 
 | 17754 | main () | 
 | 17755 | { | 
 | 17756 | dld_link (); | 
 | 17757 |   ; | 
 | 17758 |   return 0; | 
 | 17759 | } | 
 | 17760 | _ACEOF | 
 | 17761 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17763 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17764 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17765 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17766 |   rm -f conftest.er1 | 
 | 17767 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17768 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17769 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17770 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 17771 | 			 || test ! -s conftest.err' | 
 | 17772 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17773 |   (eval $ac_try) 2>&5 | 
 | 17774 |   ac_status=$? | 
 | 17775 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17776 |   (exit $ac_status); }; } && | 
 | 17777 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17778 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17779 |   (eval $ac_try) 2>&5 | 
 | 17780 |   ac_status=$? | 
 | 17781 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17782 |   (exit $ac_status); }; }; then | 
 | 17783 |   ac_cv_lib_dld_dld_link=yes | 
 | 17784 | else | 
 | 17785 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17786 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17787 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17788 | ac_cv_lib_dld_dld_link=no | 
 | 17789 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17790 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17791 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17792 | LIBS=$ac_check_lib_save_LIBS | 
 | 17793 | fi | 
 | 17794 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 17795 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 17796 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 17797 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 17798 | fi | 
 | 17799 |  | 
 | 17800 |  | 
 | 17801 | fi | 
 | 17802 |  | 
 | 17803 |  | 
 | 17804 | fi | 
 | 17805 |  | 
 | 17806 |  | 
 | 17807 | fi | 
 | 17808 |  | 
 | 17809 |  | 
 | 17810 | fi | 
 | 17811 |  | 
 | 17812 |  | 
 | 17813 | fi | 
 | 17814 |  | 
 | 17815 |     ;; | 
 | 17816 |   esac | 
 | 17817 |  | 
 | 17818 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 17819 |     enable_dlopen=yes | 
 | 17820 |   else | 
 | 17821 |     enable_dlopen=no | 
 | 17822 |   fi | 
 | 17823 |  | 
 | 17824 |   case $lt_cv_dlopen in | 
 | 17825 |   dlopen) | 
 | 17826 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 17827 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 17828 |  | 
 | 17829 |     save_LDFLAGS="$LDFLAGS" | 
 | 17830 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 17831 |  | 
 | 17832 |     save_LIBS="$LIBS" | 
 | 17833 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 17834 |  | 
 | 17835 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 17836 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 17837 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 17838 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17839 | else | 
 | 17840 |   	  if test "$cross_compiling" = yes; then : | 
 | 17841 |   lt_cv_dlopen_self=cross | 
 | 17842 | else | 
 | 17843 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 17844 |   lt_status=$lt_dlunknown | 
 | 17845 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 17846 | #line 17846 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17847 | #include "confdefs.h" | 
 | 17848 |  | 
 | 17849 | #if HAVE_DLFCN_H | 
 | 17850 | #include <dlfcn.h> | 
 | 17851 | #endif | 
 | 17852 |  | 
 | 17853 | #include <stdio.h> | 
 | 17854 |  | 
 | 17855 | #ifdef RTLD_GLOBAL | 
 | 17856 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 17857 | #else | 
 | 17858 | #  ifdef DL_GLOBAL | 
 | 17859 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 17860 | #  else | 
 | 17861 | #    define LT_DLGLOBAL		0 | 
 | 17862 | #  endif | 
 | 17863 | #endif | 
 | 17864 |  | 
 | 17865 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 17866 |    find out it does not work in some platform. */ | 
 | 17867 | #ifndef LT_DLLAZY_OR_NOW | 
 | 17868 | #  ifdef RTLD_LAZY | 
 | 17869 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 17870 | #  else | 
 | 17871 | #    ifdef DL_LAZY | 
 | 17872 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 17873 | #    else | 
 | 17874 | #      ifdef RTLD_NOW | 
 | 17875 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 17876 | #      else | 
 | 17877 | #        ifdef DL_NOW | 
 | 17878 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 17879 | #        else | 
 | 17880 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 17881 | #        endif | 
 | 17882 | #      endif | 
 | 17883 | #    endif | 
 | 17884 | #  endif | 
 | 17885 | #endif | 
 | 17886 |  | 
 | 17887 | #ifdef __cplusplus | 
 | 17888 | extern "C" void exit (int); | 
 | 17889 | #endif | 
 | 17890 |  | 
 | 17891 | void fnord() { int i=42;} | 
 | 17892 | int main () | 
 | 17893 | { | 
 | 17894 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 17895 |   int status = $lt_dlunknown; | 
 | 17896 |  | 
 | 17897 |   if (self) | 
 | 17898 |     { | 
 | 17899 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 17900 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 17901 |       /* dlclose (self); */ | 
 | 17902 |     } | 
 | 17903 |  | 
 | 17904 |     exit (status); | 
 | 17905 | } | 
 | 17906 | EOF | 
 | 17907 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 17908 |   (eval $ac_link) 2>&5 | 
 | 17909 |   ac_status=$? | 
 | 17910 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17911 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 17912 |     (./conftest; exit; ) 2>/dev/null | 
 | 17913 |     lt_status=$? | 
 | 17914 |     case x$lt_status in | 
 | 17915 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 17916 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 17917 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 17918 |     esac | 
 | 17919 |   else : | 
 | 17920 |     # compilation failed | 
 | 17921 |     lt_cv_dlopen_self=no | 
 | 17922 |   fi | 
 | 17923 | fi | 
 | 17924 | rm -fr conftest* | 
 | 17925 |  | 
 | 17926 |  | 
 | 17927 | fi | 
 | 17928 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 17929 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 17930 |  | 
 | 17931 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 17932 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 17933 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 17934 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 17935 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 17936 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17937 | else | 
 | 17938 |   	  if test "$cross_compiling" = yes; then : | 
 | 17939 |   lt_cv_dlopen_self_static=cross | 
 | 17940 | else | 
 | 17941 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 17942 |   lt_status=$lt_dlunknown | 
 | 17943 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 17944 | #line 17944 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17945 | #include "confdefs.h" | 
 | 17946 |  | 
 | 17947 | #if HAVE_DLFCN_H | 
 | 17948 | #include <dlfcn.h> | 
 | 17949 | #endif | 
 | 17950 |  | 
 | 17951 | #include <stdio.h> | 
 | 17952 |  | 
 | 17953 | #ifdef RTLD_GLOBAL | 
 | 17954 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 17955 | #else | 
 | 17956 | #  ifdef DL_GLOBAL | 
 | 17957 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 17958 | #  else | 
 | 17959 | #    define LT_DLGLOBAL		0 | 
 | 17960 | #  endif | 
 | 17961 | #endif | 
 | 17962 |  | 
 | 17963 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 17964 |    find out it does not work in some platform. */ | 
 | 17965 | #ifndef LT_DLLAZY_OR_NOW | 
 | 17966 | #  ifdef RTLD_LAZY | 
 | 17967 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 17968 | #  else | 
 | 17969 | #    ifdef DL_LAZY | 
 | 17970 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 17971 | #    else | 
 | 17972 | #      ifdef RTLD_NOW | 
 | 17973 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 17974 | #      else | 
 | 17975 | #        ifdef DL_NOW | 
 | 17976 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 17977 | #        else | 
 | 17978 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 17979 | #        endif | 
 | 17980 | #      endif | 
 | 17981 | #    endif | 
 | 17982 | #  endif | 
 | 17983 | #endif | 
 | 17984 |  | 
 | 17985 | #ifdef __cplusplus | 
 | 17986 | extern "C" void exit (int); | 
 | 17987 | #endif | 
 | 17988 |  | 
 | 17989 | void fnord() { int i=42;} | 
 | 17990 | int main () | 
 | 17991 | { | 
 | 17992 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 17993 |   int status = $lt_dlunknown; | 
 | 17994 |  | 
 | 17995 |   if (self) | 
 | 17996 |     { | 
 | 17997 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 17998 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 17999 |       /* dlclose (self); */ | 
 | 18000 |     } | 
 | 18001 |  | 
 | 18002 |     exit (status); | 
 | 18003 | } | 
 | 18004 | EOF | 
 | 18005 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18006 |   (eval $ac_link) 2>&5 | 
 | 18007 |   ac_status=$? | 
 | 18008 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18009 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 18010 |     (./conftest; exit; ) 2>/dev/null | 
 | 18011 |     lt_status=$? | 
 | 18012 |     case x$lt_status in | 
 | 18013 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 18014 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 18015 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 18016 |     esac | 
 | 18017 |   else : | 
 | 18018 |     # compilation failed | 
 | 18019 |     lt_cv_dlopen_self_static=no | 
 | 18020 |   fi | 
 | 18021 | fi | 
 | 18022 | rm -fr conftest* | 
 | 18023 |  | 
 | 18024 |  | 
 | 18025 | fi | 
 | 18026 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 18027 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 18028 |     fi | 
 | 18029 |  | 
 | 18030 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 18031 |     LDFLAGS="$save_LDFLAGS" | 
 | 18032 |     LIBS="$save_LIBS" | 
 | 18033 |     ;; | 
 | 18034 |   esac | 
 | 18035 |  | 
 | 18036 |   case $lt_cv_dlopen_self in | 
 | 18037 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 18038 |   *) enable_dlopen_self=unknown ;; | 
 | 18039 |   esac | 
 | 18040 |  | 
 | 18041 |   case $lt_cv_dlopen_self_static in | 
 | 18042 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 18043 |   *) enable_dlopen_self_static=unknown ;; | 
 | 18044 |   esac | 
 | 18045 | fi | 
 | 18046 |  | 
 | 18047 |  | 
 | 18048 | # The else clause should only fire when bootstrapping the | 
 | 18049 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 18050 | # with your package, and you will get complaints that there are | 
 | 18051 | # no rules to generate ltmain.sh. | 
 | 18052 | if test -f "$ltmain"; then | 
 | 18053 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 18054 |   # without removal of \ escapes. | 
 | 18055 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 18056 |     setopt NO_GLOB_SUBST | 
 | 18057 |   fi | 
 | 18058 |   # Now quote all the things that may contain metacharacters while being | 
 | 18059 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 18060 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18061 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 18062 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18063 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 18064 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 18065 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 18066 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 18067 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 18068 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 18069 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 18070 |     compiler_GCJ \ | 
 | 18071 |     CC_GCJ \ | 
 | 18072 |     LD_GCJ \ | 
 | 18073 |     lt_prog_compiler_wl_GCJ \ | 
 | 18074 |     lt_prog_compiler_pic_GCJ \ | 
 | 18075 |     lt_prog_compiler_static_GCJ \ | 
 | 18076 |     lt_prog_compiler_no_builtin_flag_GCJ \ | 
 | 18077 |     export_dynamic_flag_spec_GCJ \ | 
 | 18078 |     thread_safe_flag_spec_GCJ \ | 
 | 18079 |     whole_archive_flag_spec_GCJ \ | 
 | 18080 |     enable_shared_with_static_runtimes_GCJ \ | 
 | 18081 |     old_archive_cmds_GCJ \ | 
 | 18082 |     old_archive_from_new_cmds_GCJ \ | 
 | 18083 |     predep_objects_GCJ \ | 
 | 18084 |     postdep_objects_GCJ \ | 
 | 18085 |     predeps_GCJ \ | 
 | 18086 |     postdeps_GCJ \ | 
 | 18087 |     compiler_lib_search_path_GCJ \ | 
 | 18088 |     archive_cmds_GCJ \ | 
 | 18089 |     archive_expsym_cmds_GCJ \ | 
 | 18090 |     postinstall_cmds_GCJ \ | 
 | 18091 |     postuninstall_cmds_GCJ \ | 
 | 18092 |     old_archive_from_expsyms_cmds_GCJ \ | 
 | 18093 |     allow_undefined_flag_GCJ \ | 
 | 18094 |     no_undefined_flag_GCJ \ | 
 | 18095 |     export_symbols_cmds_GCJ \ | 
 | 18096 |     hardcode_libdir_flag_spec_GCJ \ | 
 | 18097 |     hardcode_libdir_flag_spec_ld_GCJ \ | 
 | 18098 |     hardcode_libdir_separator_GCJ \ | 
 | 18099 |     hardcode_automatic_GCJ \ | 
 | 18100 |     module_cmds_GCJ \ | 
 | 18101 |     module_expsym_cmds_GCJ \ | 
 | 18102 |     lt_cv_prog_compiler_c_o_GCJ \ | 
 | 18103 |     exclude_expsyms_GCJ \ | 
 | 18104 |     include_expsyms_GCJ; do | 
 | 18105 |  | 
 | 18106 |     case $var in | 
 | 18107 |     old_archive_cmds_GCJ | \ | 
 | 18108 |     old_archive_from_new_cmds_GCJ | \ | 
 | 18109 |     archive_cmds_GCJ | \ | 
 | 18110 |     archive_expsym_cmds_GCJ | \ | 
 | 18111 |     module_cmds_GCJ | \ | 
 | 18112 |     module_expsym_cmds_GCJ | \ | 
 | 18113 |     old_archive_from_expsyms_cmds_GCJ | \ | 
 | 18114 |     export_symbols_cmds_GCJ | \ | 
 | 18115 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 18116 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 18117 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 18118 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 18119 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18120 |       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] | 18121 |       ;; | 
 | 18122 |     *) | 
 | 18123 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 18124 |       ;; | 
 | 18125 |     esac | 
 | 18126 |   done | 
 | 18127 |  | 
 | 18128 |   case $lt_echo in | 
 | 18129 |   *'\$0 --fallback-echo"') | 
 | 18130 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 18131 |     ;; | 
 | 18132 |   esac | 
 | 18133 |  | 
 | 18134 | cfgfile="$ofile" | 
 | 18135 |  | 
 | 18136 |   cat <<__EOF__ >> "$cfgfile" | 
 | 18137 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 18138 |  | 
 | 18139 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 18140 |  | 
 | 18141 | # Shell to use when invoking shell scripts. | 
 | 18142 | SHELL=$lt_SHELL | 
 | 18143 |  | 
 | 18144 | # Whether or not to build shared libraries. | 
 | 18145 | build_libtool_libs=$enable_shared | 
 | 18146 |  | 
 | 18147 | # Whether or not to build static libraries. | 
 | 18148 | build_old_libs=$enable_static | 
 | 18149 |  | 
 | 18150 | # Whether or not to add -lc for building shared libraries. | 
 | 18151 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
 | 18152 |  | 
 | 18153 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 18154 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
 | 18155 |  | 
 | 18156 | # Whether or not to optimize for fast installation. | 
 | 18157 | fast_install=$enable_fast_install | 
 | 18158 |  | 
 | 18159 | # The host system. | 
 | 18160 | host_alias=$host_alias | 
 | 18161 | host=$host | 
 | 18162 |  | 
 | 18163 | # An echo program that does not interpret backslashes. | 
 | 18164 | echo=$lt_echo | 
 | 18165 |  | 
 | 18166 | # The archiver. | 
 | 18167 | AR=$lt_AR | 
 | 18168 | AR_FLAGS=$lt_AR_FLAGS | 
 | 18169 |  | 
 | 18170 | # A C compiler. | 
 | 18171 | LTCC=$lt_LTCC | 
 | 18172 |  | 
 | 18173 | # A language-specific compiler. | 
 | 18174 | CC=$lt_compiler_GCJ | 
 | 18175 |  | 
 | 18176 | # Is the compiler the GNU C compiler? | 
 | 18177 | with_gcc=$GCC_GCJ | 
 | 18178 |  | 
 | 18179 | # An ERE matcher. | 
 | 18180 | EGREP=$lt_EGREP | 
 | 18181 |  | 
 | 18182 | # The linker used to build libraries. | 
 | 18183 | LD=$lt_LD_GCJ | 
 | 18184 |  | 
 | 18185 | # Whether we need hard or soft links. | 
 | 18186 | LN_S=$lt_LN_S | 
 | 18187 |  | 
 | 18188 | # A BSD-compatible nm program. | 
 | 18189 | NM=$lt_NM | 
 | 18190 |  | 
 | 18191 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18192 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18193 |  | 
 | 18194 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 18195 | MAGIC_CMD=$MAGIC_CMD | 
 | 18196 |  | 
 | 18197 | # Used on cygwin: DLL creation program. | 
 | 18198 | DLLTOOL="$DLLTOOL" | 
 | 18199 |  | 
 | 18200 | # Used on cygwin: object dumper. | 
 | 18201 | OBJDUMP="$OBJDUMP" | 
 | 18202 |  | 
 | 18203 | # Used on cygwin: assembler. | 
 | 18204 | AS="$AS" | 
 | 18205 |  | 
 | 18206 | # The name of the directory that contains temporary libtool files. | 
 | 18207 | objdir=$objdir | 
 | 18208 |  | 
 | 18209 | # How to create reloadable object files. | 
 | 18210 | reload_flag=$lt_reload_flag | 
 | 18211 | reload_cmds=$lt_reload_cmds | 
 | 18212 |  | 
 | 18213 | # How to pass a linker flag through the compiler. | 
 | 18214 | wl=$lt_lt_prog_compiler_wl_GCJ | 
 | 18215 |  | 
 | 18216 | # Object file suffix (normally "o"). | 
 | 18217 | objext="$ac_objext" | 
 | 18218 |  | 
 | 18219 | # Old archive suffix (normally "a"). | 
 | 18220 | libext="$libext" | 
 | 18221 |  | 
 | 18222 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18223 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18224 |  | 
 | 18225 | # Executable file suffix (normally ""). | 
 | 18226 | exeext="$exeext" | 
 | 18227 |  | 
 | 18228 | # Additional compiler flags for building library objects. | 
 | 18229 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
 | 18230 | pic_mode=$pic_mode | 
 | 18231 |  | 
 | 18232 | # What is the maximum length of a command? | 
 | 18233 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 18234 |  | 
 | 18235 | # Does compiler simultaneously support -c and -o options? | 
 | 18236 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
 | 18237 |  | 
 | 18238 | # Must we lock files when doing compilation ? | 
 | 18239 | need_locks=$lt_need_locks | 
 | 18240 |  | 
 | 18241 | # Do we need the lib prefix for modules? | 
 | 18242 | need_lib_prefix=$need_lib_prefix | 
 | 18243 |  | 
 | 18244 | # Do we need a version for libraries? | 
 | 18245 | need_version=$need_version | 
 | 18246 |  | 
 | 18247 | # Whether dlopen is supported. | 
 | 18248 | dlopen_support=$enable_dlopen | 
 | 18249 |  | 
 | 18250 | # Whether dlopen of programs is supported. | 
 | 18251 | dlopen_self=$enable_dlopen_self | 
 | 18252 |  | 
 | 18253 | # Whether dlopen of statically linked programs is supported. | 
 | 18254 | dlopen_self_static=$enable_dlopen_self_static | 
 | 18255 |  | 
 | 18256 | # Compiler flag to prevent dynamic linking. | 
 | 18257 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
 | 18258 |  | 
 | 18259 | # Compiler flag to turn off builtin functions. | 
 | 18260 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
 | 18261 |  | 
 | 18262 | # Compiler flag to allow reflexive dlopens. | 
 | 18263 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
 | 18264 |  | 
 | 18265 | # Compiler flag to generate shared objects directly from archives. | 
 | 18266 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
 | 18267 |  | 
 | 18268 | # Compiler flag to generate thread-safe objects. | 
 | 18269 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
 | 18270 |  | 
 | 18271 | # Library versioning type. | 
 | 18272 | version_type=$version_type | 
 | 18273 |  | 
 | 18274 | # Format of library name prefix. | 
 | 18275 | libname_spec=$lt_libname_spec | 
 | 18276 |  | 
 | 18277 | # List of archive names.  First name is the real one, the rest are links. | 
 | 18278 | # The last name is the one that the linker finds with -lNAME. | 
 | 18279 | library_names_spec=$lt_library_names_spec | 
 | 18280 |  | 
 | 18281 | # The coded name of the library, if different from the real name. | 
 | 18282 | soname_spec=$lt_soname_spec | 
 | 18283 |  | 
 | 18284 | # Commands used to build and install an old-style archive. | 
 | 18285 | RANLIB=$lt_RANLIB | 
 | 18286 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
 | 18287 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 18288 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 18289 |  | 
 | 18290 | # Create an old-style archive from a shared archive. | 
 | 18291 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
 | 18292 |  | 
 | 18293 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 18294 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
 | 18295 |  | 
 | 18296 | # Commands used to build and install a shared archive. | 
 | 18297 | archive_cmds=$lt_archive_cmds_GCJ | 
 | 18298 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
 | 18299 | postinstall_cmds=$lt_postinstall_cmds | 
 | 18300 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 18301 |  | 
 | 18302 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 18303 | module_cmds=$lt_module_cmds_GCJ | 
 | 18304 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
 | 18305 |  | 
 | 18306 | # Commands to strip libraries. | 
 | 18307 | old_striplib=$lt_old_striplib | 
 | 18308 | striplib=$lt_striplib | 
 | 18309 |  | 
 | 18310 | # Dependencies to place before the objects being linked to create a | 
 | 18311 | # shared library. | 
 | 18312 | predep_objects=$lt_predep_objects_GCJ | 
 | 18313 |  | 
 | 18314 | # Dependencies to place after the objects being linked to create a | 
 | 18315 | # shared library. | 
 | 18316 | postdep_objects=$lt_postdep_objects_GCJ | 
 | 18317 |  | 
 | 18318 | # Dependencies to place before the objects being linked to create a | 
 | 18319 | # shared library. | 
 | 18320 | predeps=$lt_predeps_GCJ | 
 | 18321 |  | 
 | 18322 | # Dependencies to place after the objects being linked to create a | 
 | 18323 | # shared library. | 
 | 18324 | postdeps=$lt_postdeps_GCJ | 
 | 18325 |  | 
 | 18326 | # The library search path used internally by the compiler when linking | 
 | 18327 | # a shared library. | 
 | 18328 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
 | 18329 |  | 
 | 18330 | # Method to check whether dependent libraries are shared objects. | 
 | 18331 | deplibs_check_method=$lt_deplibs_check_method | 
 | 18332 |  | 
 | 18333 | # Command to use when deplibs_check_method == file_magic. | 
 | 18334 | file_magic_cmd=$lt_file_magic_cmd | 
 | 18335 |  | 
 | 18336 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 18337 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
 | 18338 |  | 
 | 18339 | # Flag that forces no undefined symbols. | 
 | 18340 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
 | 18341 |  | 
 | 18342 | # Commands used to finish a libtool library installation in a directory. | 
 | 18343 | finish_cmds=$lt_finish_cmds | 
 | 18344 |  | 
 | 18345 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 18346 | finish_eval=$lt_finish_eval | 
 | 18347 |  | 
 | 18348 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 18349 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 18350 |  | 
 | 18351 | # Transform the output of nm in a proper C declaration | 
 | 18352 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 18353 |  | 
 | 18354 | # Transform the output of nm in a C name address pair | 
 | 18355 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 18356 |  | 
 | 18357 | # This is the shared library runtime path variable. | 
 | 18358 | runpath_var=$runpath_var | 
 | 18359 |  | 
 | 18360 | # This is the shared library path variable. | 
 | 18361 | shlibpath_var=$shlibpath_var | 
 | 18362 |  | 
 | 18363 | # Is shlibpath searched before the hard-coded library search path? | 
 | 18364 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 18365 |  | 
 | 18366 | # How to hardcode a shared library path into an executable. | 
 | 18367 | hardcode_action=$hardcode_action_GCJ | 
 | 18368 |  | 
 | 18369 | # Whether we should hardcode library paths into libraries. | 
 | 18370 | hardcode_into_libs=$hardcode_into_libs | 
 | 18371 |  | 
 | 18372 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 18373 | # This must work even if \$libdir does not exist. | 
 | 18374 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
 | 18375 |  | 
 | 18376 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 18377 | # a binary during linking. This must work even if \$libdir does | 
 | 18378 | # not exist. | 
 | 18379 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
 | 18380 |  | 
 | 18381 | # Whether we need a single -rpath flag with a separated argument. | 
 | 18382 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
 | 18383 |  | 
 | 18384 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 18385 | # resulting binary. | 
 | 18386 | hardcode_direct=$hardcode_direct_GCJ | 
 | 18387 |  | 
 | 18388 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 18389 | # resulting binary. | 
 | 18390 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
 | 18391 |  | 
 | 18392 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 18393 | # the resulting binary. | 
 | 18394 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
 | 18395 |  | 
 | 18396 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 18397 | # and all subsequent libraries and executables linked against it. | 
 | 18398 | hardcode_automatic=$hardcode_automatic_GCJ | 
 | 18399 |  | 
 | 18400 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 18401 | # restored at relink time. | 
 | 18402 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 18403 |  | 
 | 18404 | # Whether libtool must link a program against all its dependency libraries. | 
 | 18405 | link_all_deplibs=$link_all_deplibs_GCJ | 
 | 18406 |  | 
 | 18407 | # Compile-time system search path for libraries | 
 | 18408 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 18409 |  | 
 | 18410 | # Run-time system search path for libraries | 
 | 18411 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 18412 |  | 
 | 18413 | # Fix the shell variable \$srcfile for the compiler. | 
 | 18414 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
 | 18415 |  | 
 | 18416 | # Set to yes if exported symbols are required. | 
 | 18417 | always_export_symbols=$always_export_symbols_GCJ | 
 | 18418 |  | 
 | 18419 | # The commands to list exported symbols. | 
 | 18420 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
 | 18421 |  | 
 | 18422 | # The commands to extract the exported symbol list from a shared archive. | 
 | 18423 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 18424 |  | 
 | 18425 | # Symbols that should not be listed in the preloaded symbols. | 
 | 18426 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
 | 18427 |  | 
 | 18428 | # Symbols that must always be exported. | 
 | 18429 | include_expsyms=$lt_include_expsyms_GCJ | 
 | 18430 |  | 
 | 18431 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 18432 |  | 
 | 18433 | __EOF__ | 
 | 18434 |  | 
 | 18435 |  | 
 | 18436 | else | 
 | 18437 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 18438 |   # `config.status --recheck' to rerun these tests and create the | 
 | 18439 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18440 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 18441 |   if test -f "$ltmain_in"; then | 
 | 18442 |     test -f Makefile && make "$ltmain" | 
 | 18443 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18444 | fi | 
 | 18445 |  | 
 | 18446 |  | 
 | 18447 | ac_ext=c | 
 | 18448 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 18452 |  | 
 | 18453 | CC="$lt_save_CC" | 
 | 18454 |  | 
 | 18455 | 	else | 
 | 18456 | 	  tagname="" | 
 | 18457 | 	fi | 
 | 18458 | 	;; | 
 | 18459 |  | 
 | 18460 |       RC) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18461 | 	ac_ext=c | 
 | 18462 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18466 |  | 
 | 18467 |  | 
 | 18468 | # Source file extension for RC test sources. | 
 | 18469 | ac_ext=rc | 
 | 18470 |  | 
 | 18471 | # Object file extension for compiled RC test sources. | 
 | 18472 | objext=o | 
 | 18473 | objext_RC=$objext | 
 | 18474 |  | 
 | 18475 | # Code to be used in simple compile tests | 
 | 18476 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
 | 18477 |  | 
 | 18478 | # Code to be used in simple link tests | 
 | 18479 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
 | 18480 |  | 
 | 18481 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 18482 |  | 
 | 18483 | # If no C compiler was specified, use CC. | 
 | 18484 | LTCC=${LTCC-"$CC"} | 
 | 18485 |  | 
 | 18486 | # Allow CC to be a program name with arguments. | 
 | 18487 | compiler=$CC | 
 | 18488 |  | 
 | 18489 |  | 
 | 18490 | # Allow CC to be a program name with arguments. | 
 | 18491 | lt_save_CC="$CC" | 
 | 18492 | CC=${RC-"windres"} | 
 | 18493 | compiler=$CC | 
 | 18494 | compiler_RC=$CC | 
 | 18495 | lt_cv_prog_compiler_c_o_RC=yes | 
 | 18496 |  | 
 | 18497 | # The else clause should only fire when bootstrapping the | 
 | 18498 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 18499 | # with your package, and you will get complaints that there are | 
 | 18500 | # no rules to generate ltmain.sh. | 
 | 18501 | if test -f "$ltmain"; then | 
 | 18502 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 18503 |   # without removal of \ escapes. | 
 | 18504 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 18505 |     setopt NO_GLOB_SUBST | 
 | 18506 |   fi | 
 | 18507 |   # Now quote all the things that may contain metacharacters while being | 
 | 18508 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 18509 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18510 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 18511 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18512 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 18513 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 18514 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 18515 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 18516 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 18517 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 18518 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 18519 |     compiler_RC \ | 
 | 18520 |     CC_RC \ | 
 | 18521 |     LD_RC \ | 
 | 18522 |     lt_prog_compiler_wl_RC \ | 
 | 18523 |     lt_prog_compiler_pic_RC \ | 
 | 18524 |     lt_prog_compiler_static_RC \ | 
 | 18525 |     lt_prog_compiler_no_builtin_flag_RC \ | 
 | 18526 |     export_dynamic_flag_spec_RC \ | 
 | 18527 |     thread_safe_flag_spec_RC \ | 
 | 18528 |     whole_archive_flag_spec_RC \ | 
 | 18529 |     enable_shared_with_static_runtimes_RC \ | 
 | 18530 |     old_archive_cmds_RC \ | 
 | 18531 |     old_archive_from_new_cmds_RC \ | 
 | 18532 |     predep_objects_RC \ | 
 | 18533 |     postdep_objects_RC \ | 
 | 18534 |     predeps_RC \ | 
 | 18535 |     postdeps_RC \ | 
 | 18536 |     compiler_lib_search_path_RC \ | 
 | 18537 |     archive_cmds_RC \ | 
 | 18538 |     archive_expsym_cmds_RC \ | 
 | 18539 |     postinstall_cmds_RC \ | 
 | 18540 |     postuninstall_cmds_RC \ | 
 | 18541 |     old_archive_from_expsyms_cmds_RC \ | 
 | 18542 |     allow_undefined_flag_RC \ | 
 | 18543 |     no_undefined_flag_RC \ | 
 | 18544 |     export_symbols_cmds_RC \ | 
 | 18545 |     hardcode_libdir_flag_spec_RC \ | 
 | 18546 |     hardcode_libdir_flag_spec_ld_RC \ | 
 | 18547 |     hardcode_libdir_separator_RC \ | 
 | 18548 |     hardcode_automatic_RC \ | 
 | 18549 |     module_cmds_RC \ | 
 | 18550 |     module_expsym_cmds_RC \ | 
 | 18551 |     lt_cv_prog_compiler_c_o_RC \ | 
 | 18552 |     exclude_expsyms_RC \ | 
 | 18553 |     include_expsyms_RC; do | 
 | 18554 |  | 
 | 18555 |     case $var in | 
 | 18556 |     old_archive_cmds_RC | \ | 
 | 18557 |     old_archive_from_new_cmds_RC | \ | 
 | 18558 |     archive_cmds_RC | \ | 
 | 18559 |     archive_expsym_cmds_RC | \ | 
 | 18560 |     module_cmds_RC | \ | 
 | 18561 |     module_expsym_cmds_RC | \ | 
 | 18562 |     old_archive_from_expsyms_cmds_RC | \ | 
 | 18563 |     export_symbols_cmds_RC | \ | 
 | 18564 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 18565 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 18566 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 18567 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 18568 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18569 |       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] | 18570 |       ;; | 
 | 18571 |     *) | 
 | 18572 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 18573 |       ;; | 
 | 18574 |     esac | 
 | 18575 |   done | 
 | 18576 |  | 
 | 18577 |   case $lt_echo in | 
 | 18578 |   *'\$0 --fallback-echo"') | 
 | 18579 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 18580 |     ;; | 
 | 18581 |   esac | 
 | 18582 |  | 
 | 18583 | cfgfile="$ofile" | 
 | 18584 |  | 
 | 18585 |   cat <<__EOF__ >> "$cfgfile" | 
 | 18586 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 18587 |  | 
 | 18588 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 18589 |  | 
 | 18590 | # Shell to use when invoking shell scripts. | 
 | 18591 | SHELL=$lt_SHELL | 
 | 18592 |  | 
 | 18593 | # Whether or not to build shared libraries. | 
 | 18594 | build_libtool_libs=$enable_shared | 
 | 18595 |  | 
 | 18596 | # Whether or not to build static libraries. | 
 | 18597 | build_old_libs=$enable_static | 
 | 18598 |  | 
 | 18599 | # Whether or not to add -lc for building shared libraries. | 
 | 18600 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
 | 18601 |  | 
 | 18602 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 18603 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
 | 18604 |  | 
 | 18605 | # Whether or not to optimize for fast installation. | 
 | 18606 | fast_install=$enable_fast_install | 
 | 18607 |  | 
 | 18608 | # The host system. | 
 | 18609 | host_alias=$host_alias | 
 | 18610 | host=$host | 
 | 18611 |  | 
 | 18612 | # An echo program that does not interpret backslashes. | 
 | 18613 | echo=$lt_echo | 
 | 18614 |  | 
 | 18615 | # The archiver. | 
 | 18616 | AR=$lt_AR | 
 | 18617 | AR_FLAGS=$lt_AR_FLAGS | 
 | 18618 |  | 
 | 18619 | # A C compiler. | 
 | 18620 | LTCC=$lt_LTCC | 
 | 18621 |  | 
 | 18622 | # A language-specific compiler. | 
 | 18623 | CC=$lt_compiler_RC | 
 | 18624 |  | 
 | 18625 | # Is the compiler the GNU C compiler? | 
 | 18626 | with_gcc=$GCC_RC | 
 | 18627 |  | 
 | 18628 | # An ERE matcher. | 
 | 18629 | EGREP=$lt_EGREP | 
 | 18630 |  | 
 | 18631 | # The linker used to build libraries. | 
 | 18632 | LD=$lt_LD_RC | 
 | 18633 |  | 
 | 18634 | # Whether we need hard or soft links. | 
 | 18635 | LN_S=$lt_LN_S | 
 | 18636 |  | 
 | 18637 | # A BSD-compatible nm program. | 
 | 18638 | NM=$lt_NM | 
 | 18639 |  | 
 | 18640 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18641 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18642 |  | 
 | 18643 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 18644 | MAGIC_CMD=$MAGIC_CMD | 
 | 18645 |  | 
 | 18646 | # Used on cygwin: DLL creation program. | 
 | 18647 | DLLTOOL="$DLLTOOL" | 
 | 18648 |  | 
 | 18649 | # Used on cygwin: object dumper. | 
 | 18650 | OBJDUMP="$OBJDUMP" | 
 | 18651 |  | 
 | 18652 | # Used on cygwin: assembler. | 
 | 18653 | AS="$AS" | 
 | 18654 |  | 
 | 18655 | # The name of the directory that contains temporary libtool files. | 
 | 18656 | objdir=$objdir | 
 | 18657 |  | 
 | 18658 | # How to create reloadable object files. | 
 | 18659 | reload_flag=$lt_reload_flag | 
 | 18660 | reload_cmds=$lt_reload_cmds | 
 | 18661 |  | 
 | 18662 | # How to pass a linker flag through the compiler. | 
 | 18663 | wl=$lt_lt_prog_compiler_wl_RC | 
 | 18664 |  | 
 | 18665 | # Object file suffix (normally "o"). | 
 | 18666 | objext="$ac_objext" | 
 | 18667 |  | 
 | 18668 | # Old archive suffix (normally "a"). | 
 | 18669 | libext="$libext" | 
 | 18670 |  | 
 | 18671 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18672 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18673 |  | 
 | 18674 | # Executable file suffix (normally ""). | 
 | 18675 | exeext="$exeext" | 
 | 18676 |  | 
 | 18677 | # Additional compiler flags for building library objects. | 
 | 18678 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
 | 18679 | pic_mode=$pic_mode | 
 | 18680 |  | 
 | 18681 | # What is the maximum length of a command? | 
 | 18682 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 18683 |  | 
 | 18684 | # Does compiler simultaneously support -c and -o options? | 
 | 18685 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
 | 18686 |  | 
 | 18687 | # Must we lock files when doing compilation ? | 
 | 18688 | need_locks=$lt_need_locks | 
 | 18689 |  | 
 | 18690 | # Do we need the lib prefix for modules? | 
 | 18691 | need_lib_prefix=$need_lib_prefix | 
 | 18692 |  | 
 | 18693 | # Do we need a version for libraries? | 
 | 18694 | need_version=$need_version | 
 | 18695 |  | 
 | 18696 | # Whether dlopen is supported. | 
 | 18697 | dlopen_support=$enable_dlopen | 
 | 18698 |  | 
 | 18699 | # Whether dlopen of programs is supported. | 
 | 18700 | dlopen_self=$enable_dlopen_self | 
 | 18701 |  | 
 | 18702 | # Whether dlopen of statically linked programs is supported. | 
 | 18703 | dlopen_self_static=$enable_dlopen_self_static | 
 | 18704 |  | 
 | 18705 | # Compiler flag to prevent dynamic linking. | 
 | 18706 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
 | 18707 |  | 
 | 18708 | # Compiler flag to turn off builtin functions. | 
 | 18709 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
 | 18710 |  | 
 | 18711 | # Compiler flag to allow reflexive dlopens. | 
 | 18712 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
 | 18713 |  | 
 | 18714 | # Compiler flag to generate shared objects directly from archives. | 
 | 18715 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
 | 18716 |  | 
 | 18717 | # Compiler flag to generate thread-safe objects. | 
 | 18718 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
 | 18719 |  | 
 | 18720 | # Library versioning type. | 
 | 18721 | version_type=$version_type | 
 | 18722 |  | 
 | 18723 | # Format of library name prefix. | 
 | 18724 | libname_spec=$lt_libname_spec | 
 | 18725 |  | 
 | 18726 | # List of archive names.  First name is the real one, the rest are links. | 
 | 18727 | # The last name is the one that the linker finds with -lNAME. | 
 | 18728 | library_names_spec=$lt_library_names_spec | 
 | 18729 |  | 
 | 18730 | # The coded name of the library, if different from the real name. | 
 | 18731 | soname_spec=$lt_soname_spec | 
 | 18732 |  | 
 | 18733 | # Commands used to build and install an old-style archive. | 
 | 18734 | RANLIB=$lt_RANLIB | 
 | 18735 | old_archive_cmds=$lt_old_archive_cmds_RC | 
 | 18736 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 18737 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 18738 |  | 
 | 18739 | # Create an old-style archive from a shared archive. | 
 | 18740 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
 | 18741 |  | 
 | 18742 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 18743 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
 | 18744 |  | 
 | 18745 | # Commands used to build and install a shared archive. | 
 | 18746 | archive_cmds=$lt_archive_cmds_RC | 
 | 18747 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
 | 18748 | postinstall_cmds=$lt_postinstall_cmds | 
 | 18749 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 18750 |  | 
 | 18751 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 18752 | module_cmds=$lt_module_cmds_RC | 
 | 18753 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
 | 18754 |  | 
 | 18755 | # Commands to strip libraries. | 
 | 18756 | old_striplib=$lt_old_striplib | 
 | 18757 | striplib=$lt_striplib | 
 | 18758 |  | 
 | 18759 | # Dependencies to place before the objects being linked to create a | 
 | 18760 | # shared library. | 
 | 18761 | predep_objects=$lt_predep_objects_RC | 
 | 18762 |  | 
 | 18763 | # Dependencies to place after the objects being linked to create a | 
 | 18764 | # shared library. | 
 | 18765 | postdep_objects=$lt_postdep_objects_RC | 
 | 18766 |  | 
 | 18767 | # Dependencies to place before the objects being linked to create a | 
 | 18768 | # shared library. | 
 | 18769 | predeps=$lt_predeps_RC | 
 | 18770 |  | 
 | 18771 | # Dependencies to place after the objects being linked to create a | 
 | 18772 | # shared library. | 
 | 18773 | postdeps=$lt_postdeps_RC | 
 | 18774 |  | 
 | 18775 | # The library search path used internally by the compiler when linking | 
 | 18776 | # a shared library. | 
 | 18777 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
 | 18778 |  | 
 | 18779 | # Method to check whether dependent libraries are shared objects. | 
 | 18780 | deplibs_check_method=$lt_deplibs_check_method | 
 | 18781 |  | 
 | 18782 | # Command to use when deplibs_check_method == file_magic. | 
 | 18783 | file_magic_cmd=$lt_file_magic_cmd | 
 | 18784 |  | 
 | 18785 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 18786 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
 | 18787 |  | 
 | 18788 | # Flag that forces no undefined symbols. | 
 | 18789 | no_undefined_flag=$lt_no_undefined_flag_RC | 
 | 18790 |  | 
 | 18791 | # Commands used to finish a libtool library installation in a directory. | 
 | 18792 | finish_cmds=$lt_finish_cmds | 
 | 18793 |  | 
 | 18794 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 18795 | finish_eval=$lt_finish_eval | 
 | 18796 |  | 
 | 18797 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 18798 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 18799 |  | 
 | 18800 | # Transform the output of nm in a proper C declaration | 
 | 18801 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 18802 |  | 
 | 18803 | # Transform the output of nm in a C name address pair | 
 | 18804 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 18805 |  | 
 | 18806 | # This is the shared library runtime path variable. | 
 | 18807 | runpath_var=$runpath_var | 
 | 18808 |  | 
 | 18809 | # This is the shared library path variable. | 
 | 18810 | shlibpath_var=$shlibpath_var | 
 | 18811 |  | 
 | 18812 | # Is shlibpath searched before the hard-coded library search path? | 
 | 18813 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 18814 |  | 
 | 18815 | # How to hardcode a shared library path into an executable. | 
 | 18816 | hardcode_action=$hardcode_action_RC | 
 | 18817 |  | 
 | 18818 | # Whether we should hardcode library paths into libraries. | 
 | 18819 | hardcode_into_libs=$hardcode_into_libs | 
 | 18820 |  | 
 | 18821 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 18822 | # This must work even if \$libdir does not exist. | 
 | 18823 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
 | 18824 |  | 
 | 18825 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 18826 | # a binary during linking. This must work even if \$libdir does | 
 | 18827 | # not exist. | 
 | 18828 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
 | 18829 |  | 
 | 18830 | # Whether we need a single -rpath flag with a separated argument. | 
 | 18831 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
 | 18832 |  | 
 | 18833 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 18834 | # resulting binary. | 
 | 18835 | hardcode_direct=$hardcode_direct_RC | 
 | 18836 |  | 
 | 18837 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 18838 | # resulting binary. | 
 | 18839 | hardcode_minus_L=$hardcode_minus_L_RC | 
 | 18840 |  | 
 | 18841 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 18842 | # the resulting binary. | 
 | 18843 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
 | 18844 |  | 
 | 18845 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 18846 | # and all subsequent libraries and executables linked against it. | 
 | 18847 | hardcode_automatic=$hardcode_automatic_RC | 
 | 18848 |  | 
 | 18849 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 18850 | # restored at relink time. | 
 | 18851 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 18852 |  | 
 | 18853 | # Whether libtool must link a program against all its dependency libraries. | 
 | 18854 | link_all_deplibs=$link_all_deplibs_RC | 
 | 18855 |  | 
 | 18856 | # Compile-time system search path for libraries | 
 | 18857 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 18858 |  | 
 | 18859 | # Run-time system search path for libraries | 
 | 18860 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 18861 |  | 
 | 18862 | # Fix the shell variable \$srcfile for the compiler. | 
 | 18863 | fix_srcfile_path="$fix_srcfile_path_RC" | 
 | 18864 |  | 
 | 18865 | # Set to yes if exported symbols are required. | 
 | 18866 | always_export_symbols=$always_export_symbols_RC | 
 | 18867 |  | 
 | 18868 | # The commands to list exported symbols. | 
 | 18869 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
 | 18870 |  | 
 | 18871 | # The commands to extract the exported symbol list from a shared archive. | 
 | 18872 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 18873 |  | 
 | 18874 | # Symbols that should not be listed in the preloaded symbols. | 
 | 18875 | exclude_expsyms=$lt_exclude_expsyms_RC | 
 | 18876 |  | 
 | 18877 | # Symbols that must always be exported. | 
 | 18878 | include_expsyms=$lt_include_expsyms_RC | 
 | 18879 |  | 
 | 18880 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 18881 |  | 
 | 18882 | __EOF__ | 
 | 18883 |  | 
 | 18884 |  | 
 | 18885 | else | 
 | 18886 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 18887 |   # `config.status --recheck' to rerun these tests and create the | 
 | 18888 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18889 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 18890 |   if test -f "$ltmain_in"; then | 
 | 18891 |     test -f Makefile && make "$ltmain" | 
 | 18892 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18893 | fi | 
 | 18894 |  | 
 | 18895 |  | 
 | 18896 | ac_ext=c | 
 | 18897 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 18901 |  | 
 | 18902 | CC="$lt_save_CC" | 
 | 18903 |  | 
 | 18904 | 	;; | 
 | 18905 |  | 
 | 18906 |       *) | 
 | 18907 | 	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
 | 18908 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
 | 18909 |    { (exit 1); exit 1; }; } | 
 | 18910 | 	;; | 
 | 18911 |       esac | 
 | 18912 |  | 
 | 18913 |       # Append the new tag name to the list of available tags. | 
 | 18914 |       if test -n "$tagname" ; then | 
 | 18915 |       available_tags="$available_tags $tagname" | 
 | 18916 |     fi | 
 | 18917 |     fi | 
 | 18918 |   done | 
 | 18919 |   IFS="$lt_save_ifs" | 
 | 18920 |  | 
 | 18921 |   # Now substitute the updated list of available tags. | 
 | 18922 |   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
 | 18923 |     mv "${ofile}T" "$ofile" | 
 | 18924 |     chmod +x "$ofile" | 
 | 18925 |   else | 
 | 18926 |     rm -f "${ofile}T" | 
 | 18927 |     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
 | 18928 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
 | 18929 |    { (exit 1); exit 1; }; } | 
 | 18930 |   fi | 
 | 18931 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18932 |  | 
 | 18933 |  | 
 | 18934 |  | 
 | 18935 | # This can be used to rebuild libtool when needed | 
 | 18936 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
 | 18937 |  | 
 | 18938 | # Always use our own libtool. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18939 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18940 |  | 
 | 18941 | # Prevent multiple expansion | 
 | 18942 |  | 
 | 18943 |  | 
 | 18944 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18945 |  | 
 | 18946 |  | 
 | 18947 |  | 
 | 18948 |  | 
 | 18949 |  | 
 | 18950 |  | 
 | 18951 |  | 
 | 18952 |  | 
 | 18953 |  | 
 | 18954 |  | 
 | 18955 |  | 
 | 18956 |  | 
 | 18957 |  | 
 | 18958 |  | 
 | 18959 |  | 
 | 18960 |  | 
 | 18961 |  | 
| Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 18962 | # Extract the first word of "tar", so it can be a program name with args. | 
 | 18963 | set dummy tar; ac_word=$2 | 
 | 18964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 18965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 18966 | if test "${ac_cv_path_TAR+set}" = set; then | 
 | 18967 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18968 | else | 
 | 18969 |   case $TAR in | 
 | 18970 |   [\\/]* | ?:[\\/]*) | 
 | 18971 |   ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
 | 18972 |   ;; | 
 | 18973 |   *) | 
 | 18974 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 18975 | for as_dir in $PATH | 
 | 18976 | do | 
 | 18977 |   IFS=$as_save_IFS | 
 | 18978 |   test -z "$as_dir" && as_dir=. | 
 | 18979 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 18980 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 18981 |     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
 | 18982 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 18983 |     break 2 | 
 | 18984 |   fi | 
 | 18985 | done | 
 | 18986 | done | 
 | 18987 |  | 
 | 18988 |   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
 | 18989 |   ;; | 
 | 18990 | esac | 
 | 18991 | fi | 
 | 18992 | TAR=$ac_cv_path_TAR | 
 | 18993 |  | 
 | 18994 | if test -n "$TAR"; then | 
 | 18995 |   echo "$as_me:$LINENO: result: $TAR" >&5 | 
 | 18996 | echo "${ECHO_T}$TAR" >&6 | 
 | 18997 | else | 
 | 18998 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 18999 | echo "${ECHO_T}no" >&6 | 
 | 19000 | fi | 
 | 19001 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19002 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19003 | # Extract the first word of "dot", so it can be a program name with args. | 
 | 19004 | set dummy dot; ac_word=$2 | 
 | 19005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 19006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 19007 | if test "${ac_cv_path_DOT+set}" = set; then | 
 | 19008 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19009 | else | 
 | 19010 |   case $DOT in | 
 | 19011 |   [\\/]* | ?:[\\/]*) | 
 | 19012 |   ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
 | 19013 |   ;; | 
 | 19014 |   *) | 
 | 19015 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 19016 | for as_dir in $PATH | 
 | 19017 | do | 
 | 19018 |   IFS=$as_save_IFS | 
 | 19019 |   test -z "$as_dir" && as_dir=. | 
 | 19020 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 19021 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 19022 |     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
 | 19023 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 19024 |     break 2 | 
 | 19025 |   fi | 
 | 19026 | done | 
 | 19027 | done | 
 | 19028 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19029 |   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19030 |   ;; | 
 | 19031 | esac | 
 | 19032 | fi | 
 | 19033 | DOT=$ac_cv_path_DOT | 
 | 19034 |  | 
 | 19035 | if test -n "$DOT"; then | 
 | 19036 |   echo "$as_me:$LINENO: result: $DOT" >&5 | 
 | 19037 | echo "${ECHO_T}$DOT" >&6 | 
 | 19038 | else | 
 | 19039 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 19040 | echo "${ECHO_T}no" >&6 | 
 | 19041 | fi | 
 | 19042 |  | 
 | 19043 | # Extract the first word of "etags", so it can be a program name with args. | 
 | 19044 | set dummy etags; ac_word=$2 | 
 | 19045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 19046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 19047 | if test "${ac_cv_path_ETAGS+set}" = set; then | 
 | 19048 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19049 | else | 
 | 19050 |   case $ETAGS in | 
 | 19051 |   [\\/]* | ?:[\\/]*) | 
 | 19052 |   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. | 
 | 19053 |   ;; | 
 | 19054 |   *) | 
 | 19055 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 19056 | for as_dir in $PATH | 
 | 19057 | do | 
 | 19058 |   IFS=$as_save_IFS | 
 | 19059 |   test -z "$as_dir" && as_dir=. | 
 | 19060 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 19061 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 19062 |     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" | 
 | 19063 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 19064 |     break 2 | 
 | 19065 |   fi | 
 | 19066 | done | 
 | 19067 | done | 
 | 19068 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19069 |   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19070 |   ;; | 
 | 19071 | esac | 
 | 19072 | fi | 
 | 19073 | ETAGS=$ac_cv_path_ETAGS | 
 | 19074 |  | 
 | 19075 | if test -n "$ETAGS"; then | 
 | 19076 |   echo "$as_me:$LINENO: result: $ETAGS" >&5 | 
 | 19077 | echo "${ECHO_T}$ETAGS" >&6 | 
 | 19078 | else | 
 | 19079 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 19080 | echo "${ECHO_T}no" >&6 | 
 | 19081 | fi | 
 | 19082 |  | 
| Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 19083 | etags_version=`$ETAGS --version 2>&1` | 
 | 19084 | case "$etags_version" in | 
 | 19085 | 	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; | 
 | 19086 | 	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; | 
 | 19087 | 	*) ETAGSFLAGS="" ;; | 
 | 19088 | esac | 
 | 19089 | ETAGSFLAGS=$ETAGSFLAGS | 
 | 19090 |  | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19091 | # Extract the first word of "python", so it can be a program name with args. | 
 | 19092 | set dummy python; ac_word=$2 | 
 | 19093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 19094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 19095 | if test "${ac_cv_path_PYTHON+set}" = set; then | 
 | 19096 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19097 | else | 
 | 19098 |   case $PYTHON in | 
 | 19099 |   [\\/]* | ?:[\\/]*) | 
 | 19100 |   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | 
 | 19101 |   ;; | 
 | 19102 |   *) | 
 | 19103 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 19104 | for as_dir in $PATH | 
 | 19105 | do | 
 | 19106 |   IFS=$as_save_IFS | 
 | 19107 |   test -z "$as_dir" && as_dir=. | 
 | 19108 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 19109 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 19110 |     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | 
 | 19111 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 19112 |     break 2 | 
 | 19113 |   fi | 
 | 19114 | done | 
 | 19115 | done | 
 | 19116 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19117 |   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19118 |   ;; | 
 | 19119 | esac | 
 | 19120 | fi | 
 | 19121 | PYTHON=$ac_cv_path_PYTHON | 
 | 19122 |  | 
 | 19123 | if test -n "$PYTHON"; then | 
 | 19124 |   echo "$as_me:$LINENO: result: $PYTHON" >&5 | 
 | 19125 | echo "${ECHO_T}$PYTHON" >&6 | 
 | 19126 | else | 
 | 19127 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 19128 | echo "${ECHO_T}no" >&6 | 
 | 19129 | fi | 
 | 19130 |  | 
| Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 19131 | if test "$PYTHON" = "false" ; then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19132 | 	{ echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 | 
 | 19133 | 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] | 19134 | fi | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19135 | # Extract the first word of "qmtest", so it can be a program name with args. | 
 | 19136 | set dummy qmtest; ac_word=$2 | 
 | 19137 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 19138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 19139 | if test "${ac_cv_path_QMTEST+set}" = set; then | 
 | 19140 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19141 | else | 
 | 19142 |   case $QMTEST in | 
 | 19143 |   [\\/]* | ?:[\\/]*) | 
 | 19144 |   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. | 
 | 19145 |   ;; | 
 | 19146 |   *) | 
 | 19147 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 19148 | for as_dir in $PATH | 
 | 19149 | do | 
 | 19150 |   IFS=$as_save_IFS | 
 | 19151 |   test -z "$as_dir" && as_dir=. | 
 | 19152 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 19153 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 19154 |     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" | 
 | 19155 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 19156 |     break 2 | 
 | 19157 |   fi | 
 | 19158 | done | 
 | 19159 | done | 
 | 19160 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19161 |   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19162 |   ;; | 
 | 19163 | esac | 
 | 19164 | fi | 
 | 19165 | QMTEST=$ac_cv_path_QMTEST | 
 | 19166 |  | 
 | 19167 | if test -n "$QMTEST"; then | 
 | 19168 |   echo "$as_me:$LINENO: result: $QMTEST" >&5 | 
 | 19169 | echo "${ECHO_T}$QMTEST" >&6 | 
 | 19170 | else | 
 | 19171 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 19172 | echo "${ECHO_T}no" >&6 | 
 | 19173 | fi | 
 | 19174 |  | 
| Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 19175 | if test "$QMTEST" = "false" ; then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19176 | 	{ echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 | 
 | 19177 | 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] | 19178 | fi | 
| Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 19179 | # Extract the first word of "runtest", so it can be a program name with args. | 
 | 19180 | set dummy runtest; ac_word=$2 | 
 | 19181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 19182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 19183 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
 | 19184 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19185 | else | 
 | 19186 |   case $RUNTEST in | 
 | 19187 |   [\\/]* | ?:[\\/]*) | 
 | 19188 |   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
 | 19189 |   ;; | 
 | 19190 |   *) | 
 | 19191 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 19192 | for as_dir in $PATH | 
 | 19193 | do | 
 | 19194 |   IFS=$as_save_IFS | 
 | 19195 |   test -z "$as_dir" && as_dir=. | 
 | 19196 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 19197 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 19198 |     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
 | 19199 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 19200 |     break 2 | 
 | 19201 |   fi | 
 | 19202 | done | 
 | 19203 | done | 
 | 19204 |  | 
 | 19205 |   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" | 
 | 19206 |   ;; | 
 | 19207 | esac | 
 | 19208 | fi | 
 | 19209 | RUNTEST=$ac_cv_path_RUNTEST | 
 | 19210 |  | 
 | 19211 | if test -n "$RUNTEST"; then | 
 | 19212 |   echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
 | 19213 | echo "${ECHO_T}$RUNTEST" >&6 | 
 | 19214 | else | 
 | 19215 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 19216 | echo "${ECHO_T}no" >&6 | 
 | 19217 | fi | 
 | 19218 |  | 
 | 19219 | if test "$RUNTEST" = "false" ; then | 
 | 19220 |   { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5 | 
 | 19221 | echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;} | 
 | 19222 | fi | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19223 |  | 
 | 19224 | pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2` | 
 | 19225 | pymajor=`echo $pyversion | cut -d. -f1` | 
 | 19226 | pyminor=`echo $pyversion | cut -d. -f2` | 
 | 19227 |  | 
 | 19228 | if test "$pymajor" -ge "2" | 
 | 19229 | then | 
 | 19230 | 	if test "$pymajor" -eq "2" | 
 | 19231 | 	then | 
 | 19232 | 		if test "$pyminor" -lt "2" | 
 | 19233 | 		then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19234 | 			{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
 | 19235 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19236 | 		fi | 
 | 19237 | 	fi | 
 | 19238 | else | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 19239 | 	{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
 | 19240 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 19241 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19242 |  | 
 | 19243 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19244 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 
 | 19245 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | 
 | 19246 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 
 | 19247 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19248 | else | 
 | 19249 |   ac_check_lib_save_LIBS=$LIBS | 
 | 19250 | LIBS="-lelf  $LIBS" | 
 | 19251 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19252 | /* confdefs.h.  */ | 
 | 19253 | _ACEOF | 
 | 19254 | cat confdefs.h >>conftest.$ac_ext | 
 | 19255 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19256 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19257 |  | 
 | 19258 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19259 | #ifdef __cplusplus | 
 | 19260 | extern "C" | 
 | 19261 | #endif | 
 | 19262 | /* We use char because int might match the return type of a gcc2 | 
 | 19263 |    builtin and then its argument prototype would still apply.  */ | 
 | 19264 | char elf_begin (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19265 | int | 
 | 19266 | main () | 
 | 19267 | { | 
 | 19268 | elf_begin (); | 
 | 19269 |   ; | 
 | 19270 |   return 0; | 
 | 19271 | } | 
 | 19272 | _ACEOF | 
 | 19273 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19275 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19276 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19277 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19278 |   rm -f conftest.er1 | 
 | 19279 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19280 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19281 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19282 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19283 | 			 || test ! -s conftest.err' | 
 | 19284 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19285 |   (eval $ac_try) 2>&5 | 
 | 19286 |   ac_status=$? | 
 | 19287 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19288 |   (exit $ac_status); }; } && | 
 | 19289 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19290 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19291 |   (eval $ac_try) 2>&5 | 
 | 19292 |   ac_status=$? | 
 | 19293 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19294 |   (exit $ac_status); }; }; then | 
 | 19295 |   ac_cv_lib_elf_elf_begin=yes | 
 | 19296 | else | 
 | 19297 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19298 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19299 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19300 | ac_cv_lib_elf_elf_begin=no | 
 | 19301 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19302 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19303 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19304 | LIBS=$ac_check_lib_save_LIBS | 
 | 19305 | fi | 
 | 19306 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 
 | 19307 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | 
 | 19308 | if test $ac_cv_lib_elf_elf_begin = yes; then | 
 | 19309 |   cat >>confdefs.h <<_ACEOF | 
 | 19310 | #define HAVE_LIBELF 1 | 
 | 19311 | _ACEOF | 
 | 19312 |  | 
 | 19313 |   LIBS="-lelf $LIBS" | 
 | 19314 |  | 
 | 19315 | fi | 
 | 19316 |  | 
 | 19317 |  | 
| Reid Spencer | c28d7ad | 2004-10-02 08:50:58 +0000 | [diff] [blame] | 19318 | echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 | 
 | 19319 | echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 | 
 | 19320 | if test "${ac_cv_lib_z_gzopen+set}" = set; then | 
 | 19321 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19322 | else | 
 | 19323 |   ac_check_lib_save_LIBS=$LIBS | 
 | 19324 | LIBS="-lz  $LIBS" | 
 | 19325 | cat >conftest.$ac_ext <<_ACEOF | 
 | 19326 | /* confdefs.h.  */ | 
 | 19327 | _ACEOF | 
 | 19328 | cat confdefs.h >>conftest.$ac_ext | 
 | 19329 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19330 | /* end confdefs.h.  */ | 
 | 19331 |  | 
 | 19332 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19333 | #ifdef __cplusplus | 
 | 19334 | extern "C" | 
 | 19335 | #endif | 
 | 19336 | /* We use char because int might match the return type of a gcc2 | 
 | 19337 |    builtin and then its argument prototype would still apply.  */ | 
 | 19338 | char gzopen (); | 
 | 19339 | int | 
 | 19340 | main () | 
 | 19341 | { | 
 | 19342 | gzopen (); | 
 | 19343 |   ; | 
 | 19344 |   return 0; | 
 | 19345 | } | 
 | 19346 | _ACEOF | 
 | 19347 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 19349 |   (eval $ac_link) 2>conftest.er1 | 
 | 19350 |   ac_status=$? | 
 | 19351 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19352 |   rm -f conftest.er1 | 
 | 19353 |   cat conftest.err >&5 | 
 | 19354 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19355 |   (exit $ac_status); } && | 
 | 19356 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19357 | 			 || test ! -s conftest.err' | 
 | 19358 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19359 |   (eval $ac_try) 2>&5 | 
 | 19360 |   ac_status=$? | 
 | 19361 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19362 |   (exit $ac_status); }; } && | 
 | 19363 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 19364 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19365 |   (eval $ac_try) 2>&5 | 
 | 19366 |   ac_status=$? | 
 | 19367 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19368 |   (exit $ac_status); }; }; then | 
 | 19369 |   ac_cv_lib_z_gzopen=yes | 
 | 19370 | else | 
 | 19371 |   echo "$as_me: failed program was:" >&5 | 
 | 19372 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19373 |  | 
 | 19374 | ac_cv_lib_z_gzopen=no | 
 | 19375 | fi | 
 | 19376 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19377 |       conftest$ac_exeext conftest.$ac_ext | 
 | 19378 | LIBS=$ac_check_lib_save_LIBS | 
 | 19379 | fi | 
 | 19380 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 | 
 | 19381 | echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 | 
 | 19382 | if test $ac_cv_lib_z_gzopen = yes; then | 
 | 19383 |   zlib_found=1 | 
 | 19384 | else | 
 | 19385 |   zlib_found=0 | 
 | 19386 | fi | 
 | 19387 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19388 | if test $zlib_found -eq 1; then | 
| Reid Spencer | 37130d2 | 2004-10-04 07:05:07 +0000 | [diff] [blame] | 19389 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19390 | cat >>confdefs.h <<\_ACEOF | 
 | 19391 | #define HAVE_ZLIB 1 | 
 | 19392 | _ACEOF | 
 | 19393 |  | 
 | 19394 |   HAVE_ZLIB=1 | 
 | 19395 |  | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19396 | else | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19397 |   HAVE_ZLIB=0 | 
 | 19398 |  | 
 | 19399 | fi | 
 | 19400 |  | 
 | 19401 | echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5 | 
 | 19402 | echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6 | 
 | 19403 | if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then | 
 | 19404 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19405 | else | 
 | 19406 |   ac_check_lib_save_LIBS=$LIBS | 
 | 19407 | LIBS="-lbz2  $LIBS" | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19408 | cat >conftest.$ac_ext <<_ACEOF | 
 | 19409 | /* confdefs.h.  */ | 
 | 19410 | _ACEOF | 
 | 19411 | cat confdefs.h >>conftest.$ac_ext | 
 | 19412 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19413 | /* end confdefs.h.  */ | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19414 |  | 
 | 19415 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19416 | #ifdef __cplusplus | 
 | 19417 | extern "C" | 
 | 19418 | #endif | 
 | 19419 | /* We use char because int might match the return type of a gcc2 | 
 | 19420 |    builtin and then its argument prototype would still apply.  */ | 
 | 19421 | char BZ2_bzCompressInit (); | 
 | 19422 | int | 
 | 19423 | main () | 
 | 19424 | { | 
 | 19425 | BZ2_bzCompressInit (); | 
 | 19426 |   ; | 
 | 19427 |   return 0; | 
 | 19428 | } | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19429 | _ACEOF | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19430 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 19432 |   (eval $ac_link) 2>conftest.er1 | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19433 |   ac_status=$? | 
 | 19434 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19435 |   rm -f conftest.er1 | 
 | 19436 |   cat conftest.err >&5 | 
 | 19437 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19438 |   (exit $ac_status); } && | 
 | 19439 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19440 | 			 || test ! -s conftest.err' | 
 | 19441 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19442 |   (eval $ac_try) 2>&5 | 
 | 19443 |   ac_status=$? | 
 | 19444 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19445 |   (exit $ac_status); }; } && | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19446 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19447 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19448 |   (eval $ac_try) 2>&5 | 
 | 19449 |   ac_status=$? | 
 | 19450 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19451 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19452 |   ac_cv_lib_bz2_BZ2_bzCompressInit=yes | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19453 | else | 
 | 19454 |   echo "$as_me: failed program was:" >&5 | 
 | 19455 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| Reid Spencer | 37130d2 | 2004-10-04 07:05:07 +0000 | [diff] [blame] | 19456 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19457 | ac_cv_lib_bz2_BZ2_bzCompressInit=no | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19458 | fi | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19459 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19460 |       conftest$ac_exeext conftest.$ac_ext | 
 | 19461 | LIBS=$ac_check_lib_save_LIBS | 
 | 19462 | fi | 
 | 19463 | echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 | 
 | 19464 | echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6 | 
 | 19465 | if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then | 
 | 19466 |   bzip2_found=1 | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19467 | else | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19468 |   bzip2_found=0 | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19469 | fi | 
 | 19470 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19471 | if test $bzip2_found -eq 1 ; then | 
| Reid Spencer | c28d7ad | 2004-10-02 08:50:58 +0000 | [diff] [blame] | 19472 |  | 
 | 19473 | cat >>confdefs.h <<\_ACEOF | 
 | 19474 | #define HAVE_BZIP2 1 | 
 | 19475 | _ACEOF | 
 | 19476 |  | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19477 |   HAVE_BZIP2=1 | 
| Reid Spencer | c28d7ad | 2004-10-02 08:50:58 +0000 | [diff] [blame] | 19478 |  | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 19479 | else | 
 | 19480 |   HAVE_BZIP2=0 | 
 | 19481 |  | 
 | 19482 | fi | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 19483 |  | 
 | 19484 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 | 
 | 19485 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 | 
 | 19486 | if test "${ac_cv_search_lt_dlopen+set}" = set; then | 
 | 19487 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19488 | else | 
 | 19489 |   ac_func_search_save_LIBS=$LIBS | 
 | 19490 | ac_cv_search_lt_dlopen=no | 
 | 19491 | cat >conftest.$ac_ext <<_ACEOF | 
 | 19492 | /* confdefs.h.  */ | 
 | 19493 | _ACEOF | 
 | 19494 | cat confdefs.h >>conftest.$ac_ext | 
 | 19495 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19496 | /* end confdefs.h.  */ | 
 | 19497 |  | 
 | 19498 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19499 | #ifdef __cplusplus | 
 | 19500 | extern "C" | 
 | 19501 | #endif | 
 | 19502 | /* We use char because int might match the return type of a gcc2 | 
 | 19503 |    builtin and then its argument prototype would still apply.  */ | 
 | 19504 | char lt_dlopen (); | 
 | 19505 | int | 
 | 19506 | main () | 
 | 19507 | { | 
 | 19508 | lt_dlopen (); | 
 | 19509 |   ; | 
 | 19510 |   return 0; | 
 | 19511 | } | 
 | 19512 | _ACEOF | 
 | 19513 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 19515 |   (eval $ac_link) 2>conftest.er1 | 
 | 19516 |   ac_status=$? | 
 | 19517 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19518 |   rm -f conftest.er1 | 
 | 19519 |   cat conftest.err >&5 | 
 | 19520 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19521 |   (exit $ac_status); } && | 
 | 19522 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19523 | 			 || test ! -s conftest.err' | 
 | 19524 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19525 |   (eval $ac_try) 2>&5 | 
 | 19526 |   ac_status=$? | 
 | 19527 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19528 |   (exit $ac_status); }; } && | 
 | 19529 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 19530 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19531 |   (eval $ac_try) 2>&5 | 
 | 19532 |   ac_status=$? | 
 | 19533 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19534 |   (exit $ac_status); }; }; then | 
 | 19535 |   ac_cv_search_lt_dlopen="none required" | 
 | 19536 | else | 
 | 19537 |   echo "$as_me: failed program was:" >&5 | 
 | 19538 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19539 |  | 
 | 19540 | fi | 
 | 19541 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19542 |       conftest$ac_exeext conftest.$ac_ext | 
 | 19543 | if test "$ac_cv_search_lt_dlopen" = no; then | 
 | 19544 |   for ac_lib in ltdl; do | 
 | 19545 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 19546 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 19547 | /* confdefs.h.  */ | 
 | 19548 | _ACEOF | 
 | 19549 | cat confdefs.h >>conftest.$ac_ext | 
 | 19550 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19551 | /* end confdefs.h.  */ | 
 | 19552 |  | 
 | 19553 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19554 | #ifdef __cplusplus | 
 | 19555 | extern "C" | 
 | 19556 | #endif | 
 | 19557 | /* We use char because int might match the return type of a gcc2 | 
 | 19558 |    builtin and then its argument prototype would still apply.  */ | 
 | 19559 | char lt_dlopen (); | 
 | 19560 | int | 
 | 19561 | main () | 
 | 19562 | { | 
 | 19563 | lt_dlopen (); | 
 | 19564 |   ; | 
 | 19565 |   return 0; | 
 | 19566 | } | 
 | 19567 | _ACEOF | 
 | 19568 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 19570 |   (eval $ac_link) 2>conftest.er1 | 
 | 19571 |   ac_status=$? | 
 | 19572 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19573 |   rm -f conftest.er1 | 
 | 19574 |   cat conftest.err >&5 | 
 | 19575 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19576 |   (exit $ac_status); } && | 
 | 19577 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19578 | 			 || test ! -s conftest.err' | 
 | 19579 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19580 |   (eval $ac_try) 2>&5 | 
 | 19581 |   ac_status=$? | 
 | 19582 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19583 |   (exit $ac_status); }; } && | 
 | 19584 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 19585 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19586 |   (eval $ac_try) 2>&5 | 
 | 19587 |   ac_status=$? | 
 | 19588 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19589 |   (exit $ac_status); }; }; then | 
 | 19590 |   ac_cv_search_lt_dlopen="-l$ac_lib" | 
 | 19591 | break | 
 | 19592 | else | 
 | 19593 |   echo "$as_me: failed program was:" >&5 | 
 | 19594 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19595 |  | 
 | 19596 | fi | 
 | 19597 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19598 |       conftest$ac_exeext conftest.$ac_ext | 
 | 19599 |   done | 
 | 19600 | fi | 
 | 19601 | LIBS=$ac_func_search_save_LIBS | 
 | 19602 | fi | 
 | 19603 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 | 
 | 19604 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 | 
 | 19605 | if test "$ac_cv_search_lt_dlopen" != no; then | 
 | 19606 |   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" | 
 | 19607 |  | 
 | 19608 | cat >>confdefs.h <<\_ACEOF | 
 | 19609 | #define HAVE_LT_DLOPEN 1 | 
 | 19610 | _ACEOF | 
 | 19611 |  | 
 | 19612 | else | 
 | 19613 |   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might | 
 | 19614 |                            not be available" >&5 | 
 | 19615 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might | 
 | 19616 |                            not be available" >&2;} | 
 | 19617 | fi | 
 | 19618 |  | 
 | 19619 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19620 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
 | 19621 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 | 
 | 19622 | if test "${ac_cv_search_dlopen+set}" = set; then | 
 | 19623 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19624 | else | 
 | 19625 |   ac_func_search_save_LIBS=$LIBS | 
 | 19626 | ac_cv_search_dlopen=no | 
 | 19627 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19628 | /* confdefs.h.  */ | 
 | 19629 | _ACEOF | 
 | 19630 | cat confdefs.h >>conftest.$ac_ext | 
 | 19631 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19632 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19633 |  | 
 | 19634 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19635 | #ifdef __cplusplus | 
 | 19636 | extern "C" | 
 | 19637 | #endif | 
 | 19638 | /* We use char because int might match the return type of a gcc2 | 
 | 19639 |    builtin and then its argument prototype would still apply.  */ | 
 | 19640 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19641 | int | 
 | 19642 | main () | 
 | 19643 | { | 
 | 19644 | dlopen (); | 
 | 19645 |   ; | 
 | 19646 |   return 0; | 
 | 19647 | } | 
 | 19648 | _ACEOF | 
 | 19649 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19651 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19652 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19653 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19654 |   rm -f conftest.er1 | 
 | 19655 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19656 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19657 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19658 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19659 | 			 || test ! -s conftest.err' | 
 | 19660 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19661 |   (eval $ac_try) 2>&5 | 
 | 19662 |   ac_status=$? | 
 | 19663 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19664 |   (exit $ac_status); }; } && | 
 | 19665 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19666 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19667 |   (eval $ac_try) 2>&5 | 
 | 19668 |   ac_status=$? | 
 | 19669 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19670 |   (exit $ac_status); }; }; then | 
 | 19671 |   ac_cv_search_dlopen="none required" | 
 | 19672 | else | 
 | 19673 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19674 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19675 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19676 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19677 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19678 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19679 | if test "$ac_cv_search_dlopen" = no; then | 
 | 19680 |   for ac_lib in dl; do | 
 | 19681 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 19682 |     cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19683 | /* confdefs.h.  */ | 
 | 19684 | _ACEOF | 
 | 19685 | cat confdefs.h >>conftest.$ac_ext | 
 | 19686 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19687 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19688 |  | 
 | 19689 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19690 | #ifdef __cplusplus | 
 | 19691 | extern "C" | 
 | 19692 | #endif | 
 | 19693 | /* We use char because int might match the return type of a gcc2 | 
 | 19694 |    builtin and then its argument prototype would still apply.  */ | 
 | 19695 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19696 | int | 
 | 19697 | main () | 
 | 19698 | { | 
 | 19699 | dlopen (); | 
 | 19700 |   ; | 
 | 19701 |   return 0; | 
 | 19702 | } | 
 | 19703 | _ACEOF | 
 | 19704 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19706 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19707 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19708 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19709 |   rm -f conftest.er1 | 
 | 19710 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19711 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19712 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19713 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19714 | 			 || test ! -s conftest.err' | 
 | 19715 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19716 |   (eval $ac_try) 2>&5 | 
 | 19717 |   ac_status=$? | 
 | 19718 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19719 |   (exit $ac_status); }; } && | 
 | 19720 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19721 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19722 |   (eval $ac_try) 2>&5 | 
 | 19723 |   ac_status=$? | 
 | 19724 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19725 |   (exit $ac_status); }; }; then | 
 | 19726 |   ac_cv_search_dlopen="-l$ac_lib" | 
 | 19727 | break | 
 | 19728 | else | 
 | 19729 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19730 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19731 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19732 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19733 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19734 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19735 |   done | 
 | 19736 | fi | 
 | 19737 | LIBS=$ac_func_search_save_LIBS | 
 | 19738 | fi | 
 | 19739 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
 | 19740 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 | 
 | 19741 | if test "$ac_cv_search_dlopen" != no; then | 
 | 19742 |   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] | 19743 |  | 
 | 19744 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 19745 | #define HAVE_DLOPEN 1 | 
 | 19746 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19747 |  | 
 | 19748 | else | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 19749 |   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
 | 19750 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19751 | fi | 
 | 19752 |  | 
 | 19753 |  | 
 | 19754 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
 | 19755 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 | 
 | 19756 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
 | 19757 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19758 | else | 
 | 19759 |   ac_func_search_save_LIBS=$LIBS | 
 | 19760 | ac_cv_search_mallinfo=no | 
 | 19761 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19762 | /* confdefs.h.  */ | 
 | 19763 | _ACEOF | 
 | 19764 | cat confdefs.h >>conftest.$ac_ext | 
 | 19765 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19766 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19767 |  | 
 | 19768 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19769 | #ifdef __cplusplus | 
 | 19770 | extern "C" | 
 | 19771 | #endif | 
 | 19772 | /* We use char because int might match the return type of a gcc2 | 
 | 19773 |    builtin and then its argument prototype would still apply.  */ | 
 | 19774 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19775 | int | 
 | 19776 | main () | 
 | 19777 | { | 
 | 19778 | mallinfo (); | 
 | 19779 |   ; | 
 | 19780 |   return 0; | 
 | 19781 | } | 
 | 19782 | _ACEOF | 
 | 19783 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19785 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19786 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19787 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19788 |   rm -f conftest.er1 | 
 | 19789 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19790 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19791 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19792 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19793 | 			 || test ! -s conftest.err' | 
 | 19794 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19795 |   (eval $ac_try) 2>&5 | 
 | 19796 |   ac_status=$? | 
 | 19797 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19798 |   (exit $ac_status); }; } && | 
 | 19799 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19800 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19801 |   (eval $ac_try) 2>&5 | 
 | 19802 |   ac_status=$? | 
 | 19803 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19804 |   (exit $ac_status); }; }; then | 
 | 19805 |   ac_cv_search_mallinfo="none required" | 
 | 19806 | else | 
 | 19807 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19808 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19809 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19810 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19811 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19812 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19813 | if test "$ac_cv_search_mallinfo" = no; then | 
 | 19814 |   for ac_lib in malloc; do | 
 | 19815 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 19816 |     cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19817 | /* confdefs.h.  */ | 
 | 19818 | _ACEOF | 
 | 19819 | cat confdefs.h >>conftest.$ac_ext | 
 | 19820 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19821 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19822 |  | 
 | 19823 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19824 | #ifdef __cplusplus | 
 | 19825 | extern "C" | 
 | 19826 | #endif | 
 | 19827 | /* We use char because int might match the return type of a gcc2 | 
 | 19828 |    builtin and then its argument prototype would still apply.  */ | 
 | 19829 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19830 | int | 
 | 19831 | main () | 
 | 19832 | { | 
 | 19833 | mallinfo (); | 
 | 19834 |   ; | 
 | 19835 |   return 0; | 
 | 19836 | } | 
 | 19837 | _ACEOF | 
 | 19838 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19840 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19841 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19842 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19843 |   rm -f conftest.er1 | 
 | 19844 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19845 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19846 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19847 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19848 | 			 || test ! -s conftest.err' | 
 | 19849 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19850 |   (eval $ac_try) 2>&5 | 
 | 19851 |   ac_status=$? | 
 | 19852 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19853 |   (exit $ac_status); }; } && | 
 | 19854 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19855 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19856 |   (eval $ac_try) 2>&5 | 
 | 19857 |   ac_status=$? | 
 | 19858 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19859 |   (exit $ac_status); }; }; then | 
 | 19860 |   ac_cv_search_mallinfo="-l$ac_lib" | 
 | 19861 | break | 
 | 19862 | else | 
 | 19863 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19864 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19865 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19866 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19867 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19868 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19869 |   done | 
 | 19870 | fi | 
 | 19871 | LIBS=$ac_func_search_save_LIBS | 
 | 19872 | fi | 
 | 19873 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
 | 19874 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 | 
 | 19875 | if test "$ac_cv_search_mallinfo" != no; then | 
 | 19876 |   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] | 19877 |  | 
 | 19878 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19879 | #define HAVE_MALLINFO 1 | 
 | 19880 | _ACEOF | 
 | 19881 |  | 
 | 19882 | fi | 
 | 19883 |  | 
 | 19884 |  | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19885 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
 | 19886 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 | 
 | 19887 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
 | 19888 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19889 | else | 
 | 19890 |   ac_func_search_save_LIBS=$LIBS | 
 | 19891 | ac_cv_search_pthread_mutex_lock=no | 
 | 19892 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19893 | /* confdefs.h.  */ | 
 | 19894 | _ACEOF | 
 | 19895 | cat confdefs.h >>conftest.$ac_ext | 
 | 19896 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19897 | /* end confdefs.h.  */ | 
 | 19898 |  | 
 | 19899 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19900 | #ifdef __cplusplus | 
 | 19901 | extern "C" | 
 | 19902 | #endif | 
 | 19903 | /* We use char because int might match the return type of a gcc2 | 
 | 19904 |    builtin and then its argument prototype would still apply.  */ | 
 | 19905 | char pthread_mutex_lock (); | 
 | 19906 | int | 
 | 19907 | main () | 
 | 19908 | { | 
 | 19909 | pthread_mutex_lock (); | 
 | 19910 |   ; | 
 | 19911 |   return 0; | 
 | 19912 | } | 
 | 19913 | _ACEOF | 
 | 19914 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19916 |   (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19917 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19918 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19919 |   rm -f conftest.er1 | 
 | 19920 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19921 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19922 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19923 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19924 | 			 || test ! -s conftest.err' | 
 | 19925 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19926 |   (eval $ac_try) 2>&5 | 
 | 19927 |   ac_status=$? | 
 | 19928 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19929 |   (exit $ac_status); }; } && | 
 | 19930 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19931 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19932 |   (eval $ac_try) 2>&5 | 
 | 19933 |   ac_status=$? | 
 | 19934 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19935 |   (exit $ac_status); }; }; then | 
 | 19936 |   ac_cv_search_pthread_mutex_lock="none required" | 
 | 19937 | else | 
 | 19938 |   echo "$as_me: failed program was:" >&5 | 
 | 19939 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19940 |  | 
 | 19941 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19942 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19943 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19944 | if test "$ac_cv_search_pthread_mutex_lock" = no; then | 
 | 19945 |   for ac_lib in pthread; do | 
 | 19946 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 19947 |     cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19948 | /* confdefs.h.  */ | 
 | 19949 | _ACEOF | 
 | 19950 | cat confdefs.h >>conftest.$ac_ext | 
 | 19951 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19952 | /* end confdefs.h.  */ | 
 | 19953 |  | 
 | 19954 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 19955 | #ifdef __cplusplus | 
 | 19956 | extern "C" | 
 | 19957 | #endif | 
 | 19958 | /* We use char because int might match the return type of a gcc2 | 
 | 19959 |    builtin and then its argument prototype would still apply.  */ | 
 | 19960 | char pthread_mutex_lock (); | 
 | 19961 | int | 
 | 19962 | main () | 
 | 19963 | { | 
 | 19964 | pthread_mutex_lock (); | 
 | 19965 |   ; | 
 | 19966 |   return 0; | 
 | 19967 | } | 
 | 19968 | _ACEOF | 
 | 19969 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19971 |   (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19972 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19973 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19974 |   rm -f conftest.er1 | 
 | 19975 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19976 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19977 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19978 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 19979 | 			 || test ! -s conftest.err' | 
 | 19980 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19981 |   (eval $ac_try) 2>&5 | 
 | 19982 |   ac_status=$? | 
 | 19983 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19984 |   (exit $ac_status); }; } && | 
 | 19985 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 19986 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19987 |   (eval $ac_try) 2>&5 | 
 | 19988 |   ac_status=$? | 
 | 19989 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19990 |   (exit $ac_status); }; }; then | 
 | 19991 |   ac_cv_search_pthread_mutex_lock="-l$ac_lib" | 
 | 19992 | break | 
 | 19993 | else | 
 | 19994 |   echo "$as_me: failed program was:" >&5 | 
 | 19995 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19996 |  | 
 | 19997 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19998 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19999 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 20000 |   done | 
 | 20001 | fi | 
 | 20002 | LIBS=$ac_func_search_save_LIBS | 
 | 20003 | fi | 
 | 20004 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
 | 20005 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 | 
 | 20006 | if test "$ac_cv_search_pthread_mutex_lock" != no; then | 
 | 20007 |   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] | 20008 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 20009 | cat >>confdefs.h <<\_ACEOF | 
 | 20010 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
 | 20011 | _ACEOF | 
 | 20012 |  | 
 | 20013 | fi | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 20014 |  | 
| Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 20015 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20016 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 20017 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 20018 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 20019 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20020 | else | 
 | 20021 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20022 | /* confdefs.h.  */ | 
 | 20023 | _ACEOF | 
 | 20024 | cat confdefs.h >>conftest.$ac_ext | 
 | 20025 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20026 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20027 | #include <stdlib.h> | 
 | 20028 | #include <stdarg.h> | 
 | 20029 | #include <string.h> | 
 | 20030 | #include <float.h> | 
 | 20031 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20032 | int | 
 | 20033 | main () | 
 | 20034 | { | 
 | 20035 |  | 
 | 20036 |   ; | 
 | 20037 |   return 0; | 
 | 20038 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20039 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20040 | rm -f conftest.$ac_objext | 
 | 20041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20042 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20043 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20044 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20045 |   rm -f conftest.er1 | 
 | 20046 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20047 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20048 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20049 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20050 | 			 || test ! -s conftest.err' | 
 | 20051 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20052 |   (eval $ac_try) 2>&5 | 
 | 20053 |   ac_status=$? | 
 | 20054 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20055 |   (exit $ac_status); }; } && | 
 | 20056 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20057 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20058 |   (eval $ac_try) 2>&5 | 
 | 20059 |   ac_status=$? | 
 | 20060 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20061 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20062 |   ac_cv_header_stdc=yes | 
 | 20063 | else | 
 | 20064 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20065 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20066 |  | 
 | 20067 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20068 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20070 |  | 
 | 20071 | if test $ac_cv_header_stdc = yes; then | 
 | 20072 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 20073 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20074 | /* confdefs.h.  */ | 
 | 20075 | _ACEOF | 
 | 20076 | cat confdefs.h >>conftest.$ac_ext | 
 | 20077 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20078 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20079 | #include <string.h> | 
 | 20080 |  | 
 | 20081 | _ACEOF | 
 | 20082 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20083 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20084 |   : | 
 | 20085 | else | 
 | 20086 |   ac_cv_header_stdc=no | 
 | 20087 | fi | 
 | 20088 | rm -f conftest* | 
 | 20089 |  | 
 | 20090 | fi | 
 | 20091 |  | 
 | 20092 | if test $ac_cv_header_stdc = yes; then | 
 | 20093 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 20094 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20095 | /* confdefs.h.  */ | 
 | 20096 | _ACEOF | 
 | 20097 | cat confdefs.h >>conftest.$ac_ext | 
 | 20098 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20099 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20100 | #include <stdlib.h> | 
 | 20101 |  | 
 | 20102 | _ACEOF | 
 | 20103 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20104 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20105 |   : | 
 | 20106 | else | 
 | 20107 |   ac_cv_header_stdc=no | 
 | 20108 | fi | 
 | 20109 | rm -f conftest* | 
 | 20110 |  | 
 | 20111 | fi | 
 | 20112 |  | 
 | 20113 | if test $ac_cv_header_stdc = yes; then | 
 | 20114 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 20115 |   if test "$cross_compiling" = yes; then | 
 | 20116 |   : | 
 | 20117 | else | 
 | 20118 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20119 | /* confdefs.h.  */ | 
 | 20120 | _ACEOF | 
 | 20121 | cat confdefs.h >>conftest.$ac_ext | 
 | 20122 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20123 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20124 | #include <ctype.h> | 
 | 20125 | #if ((' ' & 0x0FF) == 0x020) | 
 | 20126 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 20127 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 20128 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20129 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20130 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 20131 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 20132 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20133 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 20134 | #endif | 
 | 20135 |  | 
 | 20136 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 20137 | int | 
 | 20138 | main () | 
 | 20139 | { | 
 | 20140 |   int i; | 
 | 20141 |   for (i = 0; i < 256; i++) | 
 | 20142 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20143 | 	|| toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20144 |       exit(2); | 
 | 20145 |   exit (0); | 
 | 20146 | } | 
 | 20147 | _ACEOF | 
 | 20148 | rm -f conftest$ac_exeext | 
 | 20149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 20150 |   (eval $ac_link) 2>&5 | 
 | 20151 |   ac_status=$? | 
 | 20152 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20153 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 20154 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20155 |   (eval $ac_try) 2>&5 | 
 | 20156 |   ac_status=$? | 
 | 20157 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20158 |   (exit $ac_status); }; }; then | 
 | 20159 |   : | 
 | 20160 | else | 
 | 20161 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 20162 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20163 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20164 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20165 | ( exit $ac_status ) | 
 | 20166 | ac_cv_header_stdc=no | 
 | 20167 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20168 | 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] | 20169 | fi | 
 | 20170 | fi | 
 | 20171 | fi | 
 | 20172 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 20173 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 20174 | if test $ac_cv_header_stdc = yes; then | 
 | 20175 |  | 
 | 20176 | cat >>confdefs.h <<\_ACEOF | 
 | 20177 | #define STDC_HEADERS 1 | 
 | 20178 | _ACEOF | 
 | 20179 |  | 
 | 20180 | fi | 
 | 20181 |  | 
 | 20182 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
 | 20183 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | 
 | 20184 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
 | 20185 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20186 | else | 
 | 20187 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20188 | /* confdefs.h.  */ | 
 | 20189 | _ACEOF | 
 | 20190 | cat confdefs.h >>conftest.$ac_ext | 
 | 20191 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20192 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20193 | #include <sys/types.h> | 
 | 20194 | #include <sys/wait.h> | 
 | 20195 | #ifndef WEXITSTATUS | 
 | 20196 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
 | 20197 | #endif | 
 | 20198 | #ifndef WIFEXITED | 
 | 20199 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
 | 20200 | #endif | 
 | 20201 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20202 | int | 
 | 20203 | main () | 
 | 20204 | { | 
 | 20205 |   int s; | 
 | 20206 |   wait (&s); | 
 | 20207 |   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
 | 20208 |   ; | 
 | 20209 |   return 0; | 
 | 20210 | } | 
 | 20211 | _ACEOF | 
 | 20212 | rm -f conftest.$ac_objext | 
 | 20213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20214 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20215 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20216 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20217 |   rm -f conftest.er1 | 
 | 20218 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20219 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20220 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20221 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20222 | 			 || test ! -s conftest.err' | 
 | 20223 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20224 |   (eval $ac_try) 2>&5 | 
 | 20225 |   ac_status=$? | 
 | 20226 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20227 |   (exit $ac_status); }; } && | 
 | 20228 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20229 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20230 |   (eval $ac_try) 2>&5 | 
 | 20231 |   ac_status=$? | 
 | 20232 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20233 |   (exit $ac_status); }; }; then | 
 | 20234 |   ac_cv_header_sys_wait_h=yes | 
 | 20235 | else | 
 | 20236 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20237 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20238 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20239 | ac_cv_header_sys_wait_h=no | 
 | 20240 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20242 | fi | 
 | 20243 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
 | 20244 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | 
 | 20245 | if test $ac_cv_header_sys_wait_h = yes; then | 
 | 20246 |  | 
 | 20247 | cat >>confdefs.h <<\_ACEOF | 
 | 20248 | #define HAVE_SYS_WAIT_H 1 | 
 | 20249 | _ACEOF | 
 | 20250 |  | 
 | 20251 | fi | 
 | 20252 |  | 
 | 20253 |  | 
 | 20254 |  | 
 | 20255 |  | 
 | 20256 |  | 
 | 20257 |  | 
 | 20258 |  | 
 | 20259 |  | 
 | 20260 |  | 
 | 20261 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 20262 |  | 
| Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame] | 20263 |  | 
| John Criswell | b2815e0 | 2004-05-27 20:40:39 +0000 | [diff] [blame] | 20264 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 20265 |  | 
 | 20266 |  | 
 | 20267 |  | 
 | 20268 | for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h ltdl.h link.h execinfo.h windows.h bzlib.h zlib.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20269 | do | 
 | 20270 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 20271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 20272 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 20273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 20274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 20275 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20276 | fi | 
 | 20277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 20278 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 20279 | else | 
 | 20280 |   # Is the header compilable? | 
 | 20281 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 20282 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 20283 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20284 | /* confdefs.h.  */ | 
 | 20285 | _ACEOF | 
 | 20286 | cat confdefs.h >>conftest.$ac_ext | 
 | 20287 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20288 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20289 | $ac_includes_default | 
 | 20290 | #include <$ac_header> | 
 | 20291 | _ACEOF | 
 | 20292 | rm -f conftest.$ac_objext | 
 | 20293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20294 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20295 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20296 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20297 |   rm -f conftest.er1 | 
 | 20298 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20299 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20300 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20301 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20302 | 			 || test ! -s conftest.err' | 
 | 20303 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20304 |   (eval $ac_try) 2>&5 | 
 | 20305 |   ac_status=$? | 
 | 20306 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20307 |   (exit $ac_status); }; } && | 
 | 20308 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20309 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20310 |   (eval $ac_try) 2>&5 | 
 | 20311 |   ac_status=$? | 
 | 20312 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20313 |   (exit $ac_status); }; }; then | 
 | 20314 |   ac_header_compiler=yes | 
 | 20315 | else | 
 | 20316 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20317 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20318 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20319 | ac_header_compiler=no | 
 | 20320 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20322 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 20323 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 20324 |  | 
 | 20325 | # Is the header present? | 
 | 20326 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 20327 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 20328 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20329 | /* confdefs.h.  */ | 
 | 20330 | _ACEOF | 
 | 20331 | cat confdefs.h >>conftest.$ac_ext | 
 | 20332 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20333 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20334 | #include <$ac_header> | 
 | 20335 | _ACEOF | 
 | 20336 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 20337 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 20338 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20339 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20340 |   rm -f conftest.er1 | 
 | 20341 |   cat conftest.err >&5 | 
 | 20342 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20343 |   (exit $ac_status); } >/dev/null; then | 
 | 20344 |   if test -s conftest.err; then | 
 | 20345 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20346 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20347 |   else | 
 | 20348 |     ac_cpp_err= | 
 | 20349 |   fi | 
 | 20350 | else | 
 | 20351 |   ac_cpp_err=yes | 
 | 20352 | fi | 
 | 20353 | if test -z "$ac_cpp_err"; then | 
 | 20354 |   ac_header_preproc=yes | 
 | 20355 | else | 
 | 20356 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20357 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20358 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20359 |   ac_header_preproc=no | 
 | 20360 | fi | 
 | 20361 | rm -f conftest.err conftest.$ac_ext | 
 | 20362 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 20363 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 20364 |  | 
 | 20365 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20366 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 20367 |   yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20368 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 20369 | 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] | 20370 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 20371 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 20372 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20373 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20374 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20375 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 20376 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20377 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 20378 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 20379 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 20380 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 20381 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 20382 | 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] | 20383 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 20384 | 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] | 20385 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 20386 | 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] | 20387 |     ( | 
 | 20388 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20389 | ## ----------------------------------- ## | 
 | 20390 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 20391 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20392 | _ASBOX | 
 | 20393 |     ) | | 
 | 20394 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20395 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20396 | esac | 
 | 20397 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 20398 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 20399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 20400 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20401 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20402 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20403 | fi | 
 | 20404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 20405 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 20406 |  | 
 | 20407 | fi | 
 | 20408 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 20409 |   cat >>confdefs.h <<_ACEOF | 
 | 20410 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 20411 | _ACEOF | 
 | 20412 |  | 
 | 20413 | fi | 
 | 20414 |  | 
 | 20415 | done | 
 | 20416 |  | 
 | 20417 |  | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20418 | if test "${ac_cv_header_sys_types_h+set}" = set; then | 
 | 20419 |   echo "$as_me:$LINENO: checking for sys/types.h" >&5 | 
 | 20420 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 | 
 | 20421 | if test "${ac_cv_header_sys_types_h+set}" = set; then | 
 | 20422 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20423 | fi | 
 | 20424 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 | 
 | 20425 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 | 
 | 20426 | else | 
 | 20427 |   # Is the header compilable? | 
 | 20428 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 | 
 | 20429 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 | 
 | 20430 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20431 | /* confdefs.h.  */ | 
 | 20432 | _ACEOF | 
 | 20433 | cat confdefs.h >>conftest.$ac_ext | 
 | 20434 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20435 | /* end confdefs.h.  */ | 
 | 20436 | $ac_includes_default | 
 | 20437 | #include <sys/types.h> | 
 | 20438 | _ACEOF | 
 | 20439 | rm -f conftest.$ac_objext | 
 | 20440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20441 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20442 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20443 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20444 |   rm -f conftest.er1 | 
 | 20445 |   cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20446 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20447 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20448 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20449 | 			 || test ! -s conftest.err' | 
 | 20450 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20451 |   (eval $ac_try) 2>&5 | 
 | 20452 |   ac_status=$? | 
 | 20453 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20454 |   (exit $ac_status); }; } && | 
 | 20455 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20456 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20457 |   (eval $ac_try) 2>&5 | 
 | 20458 |   ac_status=$? | 
 | 20459 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20460 |   (exit $ac_status); }; }; then | 
 | 20461 |   ac_header_compiler=yes | 
 | 20462 | else | 
 | 20463 |   echo "$as_me: failed program was:" >&5 | 
 | 20464 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20465 |  | 
 | 20466 | ac_header_compiler=no | 
 | 20467 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20469 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 20470 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 20471 |  | 
 | 20472 | # Is the header present? | 
 | 20473 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 | 
 | 20474 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 | 
 | 20475 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20476 | /* confdefs.h.  */ | 
 | 20477 | _ACEOF | 
 | 20478 | cat confdefs.h >>conftest.$ac_ext | 
 | 20479 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20480 | /* end confdefs.h.  */ | 
 | 20481 | #include <sys/types.h> | 
 | 20482 | _ACEOF | 
 | 20483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 20484 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 20485 |   ac_status=$? | 
 | 20486 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20487 |   rm -f conftest.er1 | 
 | 20488 |   cat conftest.err >&5 | 
 | 20489 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20490 |   (exit $ac_status); } >/dev/null; then | 
 | 20491 |   if test -s conftest.err; then | 
 | 20492 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20493 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20494 |   else | 
 | 20495 |     ac_cpp_err= | 
 | 20496 |   fi | 
 | 20497 | else | 
 | 20498 |   ac_cpp_err=yes | 
 | 20499 | fi | 
 | 20500 | if test -z "$ac_cpp_err"; then | 
 | 20501 |   ac_header_preproc=yes | 
 | 20502 | else | 
 | 20503 |   echo "$as_me: failed program was:" >&5 | 
 | 20504 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20505 |  | 
 | 20506 |   ac_header_preproc=no | 
 | 20507 | fi | 
 | 20508 | rm -f conftest.err conftest.$ac_ext | 
 | 20509 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 20510 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 20511 |  | 
 | 20512 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20513 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 20514 |   yes:no: ) | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20515 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 20516 | 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] | 20517 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 | 
 | 20518 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} | 
 | 20519 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20520 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20521 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20522 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 | 
 | 20523 | 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] | 20524 |     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5 | 
 | 20525 | echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;} | 
 | 20526 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 | 
 | 20527 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} | 
 | 20528 |     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 20529 | 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] | 20530 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 | 
 | 20531 | 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] | 20532 |     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 | 
 | 20533 | 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] | 20534 |     ( | 
 | 20535 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20536 | ## ----------------------------------- ## | 
 | 20537 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 20538 | ## ----------------------------------- ## | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20539 | _ASBOX | 
 | 20540 |     ) | | 
 | 20541 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20542 |     ;; | 
 | 20543 | esac | 
 | 20544 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 | 
 | 20545 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 | 
 | 20546 | if test "${ac_cv_header_sys_types_h+set}" = set; then | 
 | 20547 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20548 | else | 
 | 20549 |   ac_cv_header_sys_types_h=$ac_header_preproc | 
 | 20550 | fi | 
 | 20551 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 | 
 | 20552 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 | 
 | 20553 |  | 
 | 20554 | fi | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20555 |  | 
 | 20556 |  | 
 | 20557 | if test "${ac_cv_header_inttypes_h+set}" = set; then | 
 | 20558 |   echo "$as_me:$LINENO: checking for inttypes.h" >&5 | 
 | 20559 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 | 
 | 20560 | if test "${ac_cv_header_inttypes_h+set}" = set; then | 
 | 20561 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20562 | fi | 
 | 20563 | echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 | 
 | 20564 | echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 | 
 | 20565 | else | 
 | 20566 |   # Is the header compilable? | 
 | 20567 | echo "$as_me:$LINENO: checking inttypes.h usability" >&5 | 
 | 20568 | echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6 | 
 | 20569 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20570 | /* confdefs.h.  */ | 
 | 20571 | _ACEOF | 
 | 20572 | cat confdefs.h >>conftest.$ac_ext | 
 | 20573 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20574 | /* end confdefs.h.  */ | 
 | 20575 | $ac_includes_default | 
 | 20576 | #include <inttypes.h> | 
 | 20577 | _ACEOF | 
 | 20578 | rm -f conftest.$ac_objext | 
 | 20579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20580 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20581 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20582 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20583 |   rm -f conftest.er1 | 
 | 20584 |   cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20585 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20586 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20587 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20588 | 			 || test ! -s conftest.err' | 
 | 20589 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20590 |   (eval $ac_try) 2>&5 | 
 | 20591 |   ac_status=$? | 
 | 20592 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20593 |   (exit $ac_status); }; } && | 
 | 20594 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20595 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20596 |   (eval $ac_try) 2>&5 | 
 | 20597 |   ac_status=$? | 
 | 20598 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20599 |   (exit $ac_status); }; }; then | 
 | 20600 |   ac_header_compiler=yes | 
 | 20601 | else | 
 | 20602 |   echo "$as_me: failed program was:" >&5 | 
 | 20603 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20604 |  | 
 | 20605 | ac_header_compiler=no | 
 | 20606 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20608 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 20609 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 20610 |  | 
 | 20611 | # Is the header present? | 
 | 20612 | echo "$as_me:$LINENO: checking inttypes.h presence" >&5 | 
 | 20613 | echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6 | 
 | 20614 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20615 | /* confdefs.h.  */ | 
 | 20616 | _ACEOF | 
 | 20617 | cat confdefs.h >>conftest.$ac_ext | 
 | 20618 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20619 | /* end confdefs.h.  */ | 
 | 20620 | #include <inttypes.h> | 
 | 20621 | _ACEOF | 
 | 20622 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 20623 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 20624 |   ac_status=$? | 
 | 20625 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20626 |   rm -f conftest.er1 | 
 | 20627 |   cat conftest.err >&5 | 
 | 20628 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20629 |   (exit $ac_status); } >/dev/null; then | 
 | 20630 |   if test -s conftest.err; then | 
 | 20631 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20632 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20633 |   else | 
 | 20634 |     ac_cpp_err= | 
 | 20635 |   fi | 
 | 20636 | else | 
 | 20637 |   ac_cpp_err=yes | 
 | 20638 | fi | 
 | 20639 | if test -z "$ac_cpp_err"; then | 
 | 20640 |   ac_header_preproc=yes | 
 | 20641 | else | 
 | 20642 |   echo "$as_me: failed program was:" >&5 | 
 | 20643 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20644 |  | 
 | 20645 |   ac_header_preproc=no | 
 | 20646 | fi | 
 | 20647 | rm -f conftest.err conftest.$ac_ext | 
 | 20648 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 20649 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 20650 |  | 
 | 20651 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 20653 |   yes:no: ) | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20654 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 20655 | 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] | 20656 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5 | 
 | 20657 | echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;} | 
 | 20658 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20659 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20660 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20661 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 | 
 | 20662 | echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20663 |     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5 | 
 | 20664 | echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;} | 
 | 20665 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5 | 
 | 20666 | echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;} | 
 | 20667 |     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 20668 | 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] | 20669 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 | 
 | 20670 | 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] | 20671 |     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5 | 
 | 20672 | 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] | 20673 |     ( | 
 | 20674 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20675 | ## ----------------------------------- ## | 
 | 20676 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 20677 | ## ----------------------------------- ## | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20678 | _ASBOX | 
 | 20679 |     ) | | 
 | 20680 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20681 |     ;; | 
 | 20682 | esac | 
 | 20683 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 | 
 | 20684 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 | 
 | 20685 | if test "${ac_cv_header_inttypes_h+set}" = set; then | 
 | 20686 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20687 | else | 
 | 20688 |   ac_cv_header_inttypes_h=$ac_header_preproc | 
 | 20689 | fi | 
 | 20690 | echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 | 
 | 20691 | echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 | 
 | 20692 |  | 
 | 20693 | fi | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20694 |  | 
 | 20695 |  | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20696 | if test "${ac_cv_header_stdint_h+set}" = set; then | 
 | 20697 |   echo "$as_me:$LINENO: checking for stdint.h" >&5 | 
 | 20698 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 | 
 | 20699 | if test "${ac_cv_header_stdint_h+set}" = set; then | 
 | 20700 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20701 | fi | 
 | 20702 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 | 
 | 20703 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 | 
 | 20704 | else | 
 | 20705 |   # Is the header compilable? | 
 | 20706 | echo "$as_me:$LINENO: checking stdint.h usability" >&5 | 
 | 20707 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 | 
 | 20708 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20709 | /* confdefs.h.  */ | 
 | 20710 | _ACEOF | 
 | 20711 | cat confdefs.h >>conftest.$ac_ext | 
 | 20712 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20713 | /* end confdefs.h.  */ | 
 | 20714 | $ac_includes_default | 
 | 20715 | #include <stdint.h> | 
 | 20716 | _ACEOF | 
 | 20717 | rm -f conftest.$ac_objext | 
 | 20718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20719 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20720 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20721 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20722 |   rm -f conftest.er1 | 
 | 20723 |   cat conftest.err >&5 | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20724 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20725 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20726 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20727 | 			 || test ! -s conftest.err' | 
 | 20728 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20729 |   (eval $ac_try) 2>&5 | 
 | 20730 |   ac_status=$? | 
 | 20731 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20732 |   (exit $ac_status); }; } && | 
 | 20733 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20734 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20735 |   (eval $ac_try) 2>&5 | 
 | 20736 |   ac_status=$? | 
 | 20737 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20738 |   (exit $ac_status); }; }; then | 
 | 20739 |   ac_header_compiler=yes | 
 | 20740 | else | 
 | 20741 |   echo "$as_me: failed program was:" >&5 | 
 | 20742 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20743 |  | 
 | 20744 | ac_header_compiler=no | 
 | 20745 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20747 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 20748 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 20749 |  | 
 | 20750 | # Is the header present? | 
 | 20751 | echo "$as_me:$LINENO: checking stdint.h presence" >&5 | 
 | 20752 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 | 
 | 20753 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20754 | /* confdefs.h.  */ | 
 | 20755 | _ACEOF | 
 | 20756 | cat confdefs.h >>conftest.$ac_ext | 
 | 20757 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20758 | /* end confdefs.h.  */ | 
 | 20759 | #include <stdint.h> | 
 | 20760 | _ACEOF | 
 | 20761 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 20762 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 20763 |   ac_status=$? | 
 | 20764 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20765 |   rm -f conftest.er1 | 
 | 20766 |   cat conftest.err >&5 | 
 | 20767 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20768 |   (exit $ac_status); } >/dev/null; then | 
 | 20769 |   if test -s conftest.err; then | 
 | 20770 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20771 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20772 |   else | 
 | 20773 |     ac_cpp_err= | 
 | 20774 |   fi | 
 | 20775 | else | 
 | 20776 |   ac_cpp_err=yes | 
 | 20777 | fi | 
 | 20778 | if test -z "$ac_cpp_err"; then | 
 | 20779 |   ac_header_preproc=yes | 
 | 20780 | else | 
 | 20781 |   echo "$as_me: failed program was:" >&5 | 
 | 20782 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20783 |  | 
 | 20784 |   ac_header_preproc=no | 
 | 20785 | fi | 
 | 20786 | rm -f conftest.err conftest.$ac_ext | 
 | 20787 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 20788 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 20789 |  | 
 | 20790 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20791 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 20792 |   yes:no: ) | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20793 |     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 20794 | 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] | 20795 |     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 | 
 | 20796 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} | 
 | 20797 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20798 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20799 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20800 |     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 | 
 | 20801 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20802 |     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5 | 
 | 20803 | echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;} | 
 | 20804 |     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 | 
 | 20805 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} | 
 | 20806 |     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 20807 | 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] | 20808 |     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 | 
 | 20809 | 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] | 20810 |     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 | 
 | 20811 | 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] | 20812 |     ( | 
 | 20813 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20814 | ## ----------------------------------- ## | 
 | 20815 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 20816 | ## ----------------------------------- ## | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20817 | _ASBOX | 
 | 20818 |     ) | | 
 | 20819 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20820 |     ;; | 
 | 20821 | esac | 
 | 20822 | echo "$as_me:$LINENO: checking for stdint.h" >&5 | 
 | 20823 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 | 
 | 20824 | if test "${ac_cv_header_stdint_h+set}" = set; then | 
 | 20825 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20826 | else | 
 | 20827 |   ac_cv_header_stdint_h=$ac_header_preproc | 
 | 20828 | fi | 
 | 20829 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 | 
 | 20830 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 | 
 | 20831 |  | 
 | 20832 | fi | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 20833 |  | 
 | 20834 |  | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 20835 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20836 | echo "$as_me:$LINENO: checking for pid_t" >&5 | 
 | 20837 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | 
 | 20838 | if test "${ac_cv_type_pid_t+set}" = set; then | 
 | 20839 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20840 | else | 
 | 20841 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20842 | /* confdefs.h.  */ | 
 | 20843 | _ACEOF | 
 | 20844 | cat confdefs.h >>conftest.$ac_ext | 
 | 20845 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20846 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20847 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20848 | int | 
 | 20849 | main () | 
 | 20850 | { | 
 | 20851 | if ((pid_t *) 0) | 
 | 20852 |   return 0; | 
 | 20853 | if (sizeof (pid_t)) | 
 | 20854 |   return 0; | 
 | 20855 |   ; | 
 | 20856 |   return 0; | 
 | 20857 | } | 
 | 20858 | _ACEOF | 
 | 20859 | rm -f conftest.$ac_objext | 
 | 20860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20861 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20862 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20863 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20864 |   rm -f conftest.er1 | 
 | 20865 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20866 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20867 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20868 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20869 | 			 || test ! -s conftest.err' | 
 | 20870 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20871 |   (eval $ac_try) 2>&5 | 
 | 20872 |   ac_status=$? | 
 | 20873 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20874 |   (exit $ac_status); }; } && | 
 | 20875 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20876 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20877 |   (eval $ac_try) 2>&5 | 
 | 20878 |   ac_status=$? | 
 | 20879 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20880 |   (exit $ac_status); }; }; then | 
 | 20881 |   ac_cv_type_pid_t=yes | 
 | 20882 | else | 
 | 20883 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20884 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20885 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20886 | ac_cv_type_pid_t=no | 
 | 20887 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20889 | fi | 
 | 20890 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
 | 20891 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | 
 | 20892 | if test $ac_cv_type_pid_t = yes; then | 
 | 20893 |   : | 
 | 20894 | else | 
 | 20895 |  | 
 | 20896 | cat >>confdefs.h <<_ACEOF | 
 | 20897 | #define pid_t int | 
 | 20898 | _ACEOF | 
 | 20899 |  | 
 | 20900 | fi | 
 | 20901 |  | 
 | 20902 | echo "$as_me:$LINENO: checking for size_t" >&5 | 
 | 20903 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | 
 | 20904 | if test "${ac_cv_type_size_t+set}" = set; then | 
 | 20905 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20906 | else | 
 | 20907 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20908 | /* confdefs.h.  */ | 
 | 20909 | _ACEOF | 
 | 20910 | cat confdefs.h >>conftest.$ac_ext | 
 | 20911 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20912 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20913 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20914 | int | 
 | 20915 | main () | 
 | 20916 | { | 
 | 20917 | if ((size_t *) 0) | 
 | 20918 |   return 0; | 
 | 20919 | if (sizeof (size_t)) | 
 | 20920 |   return 0; | 
 | 20921 |   ; | 
 | 20922 |   return 0; | 
 | 20923 | } | 
 | 20924 | _ACEOF | 
 | 20925 | rm -f conftest.$ac_objext | 
 | 20926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20927 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20928 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20929 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20930 |   rm -f conftest.er1 | 
 | 20931 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20932 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20933 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20934 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 20935 | 			 || test ! -s conftest.err' | 
 | 20936 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20937 |   (eval $ac_try) 2>&5 | 
 | 20938 |   ac_status=$? | 
 | 20939 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20940 |   (exit $ac_status); }; } && | 
 | 20941 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20942 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20943 |   (eval $ac_try) 2>&5 | 
 | 20944 |   ac_status=$? | 
 | 20945 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20946 |   (exit $ac_status); }; }; then | 
 | 20947 |   ac_cv_type_size_t=yes | 
 | 20948 | else | 
 | 20949 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20950 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20951 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20952 | ac_cv_type_size_t=no | 
 | 20953 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20955 | fi | 
 | 20956 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
 | 20957 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | 
 | 20958 | if test $ac_cv_type_size_t = yes; then | 
 | 20959 |   : | 
 | 20960 | else | 
 | 20961 |  | 
 | 20962 | cat >>confdefs.h <<_ACEOF | 
 | 20963 | #define size_t unsigned | 
 | 20964 | _ACEOF | 
 | 20965 |  | 
 | 20966 | fi | 
 | 20967 |  | 
 | 20968 | echo "$as_me:$LINENO: checking for int64_t" >&5 | 
 | 20969 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | 
 | 20970 | if test "${ac_cv_type_int64_t+set}" = set; then | 
 | 20971 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20972 | else | 
 | 20973 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20974 | /* confdefs.h.  */ | 
 | 20975 | _ACEOF | 
 | 20976 | cat confdefs.h >>conftest.$ac_ext | 
 | 20977 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20978 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20979 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20980 | int | 
 | 20981 | main () | 
 | 20982 | { | 
 | 20983 | if ((int64_t *) 0) | 
 | 20984 |   return 0; | 
 | 20985 | if (sizeof (int64_t)) | 
 | 20986 |   return 0; | 
 | 20987 |   ; | 
 | 20988 |   return 0; | 
 | 20989 | } | 
 | 20990 | _ACEOF | 
 | 20991 | rm -f conftest.$ac_objext | 
 | 20992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20993 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20994 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20995 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 20996 |   rm -f conftest.er1 | 
 | 20997 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20998 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20999 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21000 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21001 | 			 || test ! -s conftest.err' | 
 | 21002 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21003 |   (eval $ac_try) 2>&5 | 
 | 21004 |   ac_status=$? | 
 | 21005 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21006 |   (exit $ac_status); }; } && | 
 | 21007 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21008 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21009 |   (eval $ac_try) 2>&5 | 
 | 21010 |   ac_status=$? | 
 | 21011 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21012 |   (exit $ac_status); }; }; then | 
 | 21013 |   ac_cv_type_int64_t=yes | 
 | 21014 | else | 
 | 21015 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21016 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21017 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21018 | ac_cv_type_int64_t=no | 
 | 21019 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21021 | fi | 
 | 21022 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
 | 21023 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | 
 | 21024 | if test $ac_cv_type_int64_t = yes; then | 
 | 21025 |  | 
 | 21026 | cat >>confdefs.h <<_ACEOF | 
 | 21027 | #define HAVE_INT64_T 1 | 
 | 21028 | _ACEOF | 
 | 21029 |  | 
 | 21030 |  | 
 | 21031 | else | 
 | 21032 |   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
 | 21033 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
 | 21034 |    { (exit 1); exit 1; }; } | 
 | 21035 | fi | 
 | 21036 |  | 
 | 21037 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
 | 21038 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | 
 | 21039 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
 | 21040 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21041 | else | 
 | 21042 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21043 | /* confdefs.h.  */ | 
 | 21044 | _ACEOF | 
 | 21045 | cat confdefs.h >>conftest.$ac_ext | 
 | 21046 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21047 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21048 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21049 | int | 
 | 21050 | main () | 
 | 21051 | { | 
 | 21052 | if ((uint64_t *) 0) | 
 | 21053 |   return 0; | 
 | 21054 | if (sizeof (uint64_t)) | 
 | 21055 |   return 0; | 
 | 21056 |   ; | 
 | 21057 |   return 0; | 
 | 21058 | } | 
 | 21059 | _ACEOF | 
 | 21060 | rm -f conftest.$ac_objext | 
 | 21061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21062 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21063 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21064 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21065 |   rm -f conftest.er1 | 
 | 21066 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21067 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21068 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21069 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21070 | 			 || test ! -s conftest.err' | 
 | 21071 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21072 |   (eval $ac_try) 2>&5 | 
 | 21073 |   ac_status=$? | 
 | 21074 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21075 |   (exit $ac_status); }; } && | 
 | 21076 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21077 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21078 |   (eval $ac_try) 2>&5 | 
 | 21079 |   ac_status=$? | 
 | 21080 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21081 |   (exit $ac_status); }; }; then | 
 | 21082 |   ac_cv_type_uint64_t=yes | 
 | 21083 | else | 
 | 21084 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21085 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21086 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21087 | ac_cv_type_uint64_t=no | 
 | 21088 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21090 | fi | 
 | 21091 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
 | 21092 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | 
 | 21093 | if test $ac_cv_type_uint64_t = yes; then | 
 | 21094 |  | 
 | 21095 | cat >>confdefs.h <<_ACEOF | 
 | 21096 | #define HAVE_UINT64_T 1 | 
 | 21097 | _ACEOF | 
 | 21098 |  | 
 | 21099 |  | 
 | 21100 | else | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 21101 |   echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 21102 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | 
 | 21103 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
 | 21104 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21105 | else | 
 | 21106 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 21107 | /* confdefs.h.  */ | 
 | 21108 | _ACEOF | 
 | 21109 | cat confdefs.h >>conftest.$ac_ext | 
 | 21110 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21111 | /* end confdefs.h.  */ | 
 | 21112 | $ac_includes_default | 
 | 21113 | int | 
 | 21114 | main () | 
 | 21115 | { | 
 | 21116 | if ((u_int64_t *) 0) | 
 | 21117 |   return 0; | 
 | 21118 | if (sizeof (u_int64_t)) | 
 | 21119 |   return 0; | 
 | 21120 |   ; | 
 | 21121 |   return 0; | 
 | 21122 | } | 
 | 21123 | _ACEOF | 
 | 21124 | rm -f conftest.$ac_objext | 
 | 21125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21126 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 21127 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21128 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21129 |   rm -f conftest.er1 | 
 | 21130 |   cat conftest.err >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 21131 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21132 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21133 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21134 | 			 || test ! -s conftest.err' | 
 | 21135 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21136 |   (eval $ac_try) 2>&5 | 
 | 21137 |   ac_status=$? | 
 | 21138 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21139 |   (exit $ac_status); }; } && | 
 | 21140 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 21141 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21142 |   (eval $ac_try) 2>&5 | 
 | 21143 |   ac_status=$? | 
 | 21144 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21145 |   (exit $ac_status); }; }; then | 
 | 21146 |   ac_cv_type_u_int64_t=yes | 
 | 21147 | else | 
 | 21148 |   echo "$as_me: failed program was:" >&5 | 
 | 21149 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21150 |  | 
 | 21151 | ac_cv_type_u_int64_t=no | 
 | 21152 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 21154 | fi | 
 | 21155 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
 | 21156 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | 
 | 21157 | if test $ac_cv_type_u_int64_t = yes; then | 
 | 21158 |  | 
 | 21159 | cat >>confdefs.h <<_ACEOF | 
 | 21160 | #define HAVE_U_INT64_T 1 | 
 | 21161 | _ACEOF | 
 | 21162 |  | 
 | 21163 |  | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 21164 | else | 
 | 21165 |   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
 | 21166 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
 | 21167 |    { (exit 1); exit 1; }; } | 
 | 21168 | fi | 
 | 21169 |  | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 21170 | fi | 
 | 21171 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21172 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 21173 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | 
 | 21174 | if test "${ac_cv_header_time+set}" = set; then | 
 | 21175 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21176 | else | 
 | 21177 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21178 | /* confdefs.h.  */ | 
 | 21179 | _ACEOF | 
 | 21180 | cat confdefs.h >>conftest.$ac_ext | 
 | 21181 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21182 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21183 | #include <sys/types.h> | 
 | 21184 | #include <sys/time.h> | 
 | 21185 | #include <time.h> | 
 | 21186 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21187 | int | 
 | 21188 | main () | 
 | 21189 | { | 
 | 21190 | if ((struct tm *) 0) | 
 | 21191 | return 0; | 
 | 21192 |   ; | 
 | 21193 |   return 0; | 
 | 21194 | } | 
 | 21195 | _ACEOF | 
 | 21196 | rm -f conftest.$ac_objext | 
 | 21197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21198 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21199 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21200 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21201 |   rm -f conftest.er1 | 
 | 21202 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21203 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21204 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21205 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21206 | 			 || test ! -s conftest.err' | 
 | 21207 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21208 |   (eval $ac_try) 2>&5 | 
 | 21209 |   ac_status=$? | 
 | 21210 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21211 |   (exit $ac_status); }; } && | 
 | 21212 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21213 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21214 |   (eval $ac_try) 2>&5 | 
 | 21215 |   ac_status=$? | 
 | 21216 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21217 |   (exit $ac_status); }; }; then | 
 | 21218 |   ac_cv_header_time=yes | 
 | 21219 | else | 
 | 21220 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21221 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21222 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21223 | ac_cv_header_time=no | 
 | 21224 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21226 | fi | 
 | 21227 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
 | 21228 | echo "${ECHO_T}$ac_cv_header_time" >&6 | 
 | 21229 | if test $ac_cv_header_time = yes; then | 
 | 21230 |  | 
 | 21231 | cat >>confdefs.h <<\_ACEOF | 
 | 21232 | #define TIME_WITH_SYS_TIME 1 | 
 | 21233 | _ACEOF | 
 | 21234 |  | 
 | 21235 | fi | 
 | 21236 |  | 
 | 21237 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 21238 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | 
 | 21239 | if test "${ac_cv_struct_tm+set}" = set; then | 
 | 21240 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21241 | else | 
 | 21242 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21243 | /* confdefs.h.  */ | 
 | 21244 | _ACEOF | 
 | 21245 | cat confdefs.h >>conftest.$ac_ext | 
 | 21246 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21247 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21248 | #include <sys/types.h> | 
 | 21249 | #include <time.h> | 
 | 21250 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21251 | int | 
 | 21252 | main () | 
 | 21253 | { | 
 | 21254 | struct tm *tp; tp->tm_sec; | 
 | 21255 |   ; | 
 | 21256 |   return 0; | 
 | 21257 | } | 
 | 21258 | _ACEOF | 
 | 21259 | rm -f conftest.$ac_objext | 
 | 21260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21261 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21262 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21263 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21264 |   rm -f conftest.er1 | 
 | 21265 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21266 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21267 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21268 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21269 | 			 || test ! -s conftest.err' | 
 | 21270 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21271 |   (eval $ac_try) 2>&5 | 
 | 21272 |   ac_status=$? | 
 | 21273 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21274 |   (exit $ac_status); }; } && | 
 | 21275 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21276 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21277 |   (eval $ac_try) 2>&5 | 
 | 21278 |   ac_status=$? | 
 | 21279 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21280 |   (exit $ac_status); }; }; then | 
 | 21281 |   ac_cv_struct_tm=time.h | 
 | 21282 | else | 
 | 21283 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21284 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21285 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21286 | ac_cv_struct_tm=sys/time.h | 
 | 21287 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21289 | fi | 
 | 21290 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
 | 21291 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | 
 | 21292 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 21293 |  | 
 | 21294 | cat >>confdefs.h <<\_ACEOF | 
 | 21295 | #define TM_IN_SYS_TIME 1 | 
 | 21296 | _ACEOF | 
 | 21297 |  | 
 | 21298 | fi | 
 | 21299 |  | 
 | 21300 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21301 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21302 |   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5 | 
| Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 21303 | echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21304 |   ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21305 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21309 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21310 |   if test "$cross_compiling" = yes; then | 
 | 21311 |   ac_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21312 | else | 
 | 21313 |   cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21314 |  | 
 | 21315 |     /* confdefs.h.  */ | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21316 | _ACEOF | 
 | 21317 | cat confdefs.h >>conftest.$ac_ext | 
 | 21318 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21319 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21320 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21321 | #include <stdio.h> | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21322 | #include <stdlib.h> | 
 | 21323 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21324 | int | 
 | 21325 | main () | 
 | 21326 | { | 
 | 21327 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21328 | volatile double A, B; | 
 | 21329 | char Buffer[100]; | 
 | 21330 | A = 1; | 
 | 21331 | A /= 10.0; | 
 | 21332 | sprintf(Buffer, "%a", A); | 
 | 21333 | B = atof(Buffer); | 
 | 21334 | if (A != B) | 
 | 21335 |   return (1); | 
 | 21336 | if (A != 0x1.999999999999ap-4) | 
 | 21337 |   return (1); | 
 | 21338 | return (0); | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21339 |   ; | 
 | 21340 |   return 0; | 
 | 21341 | } | 
 | 21342 | _ACEOF | 
 | 21343 | rm -f conftest$ac_exeext | 
 | 21344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 21345 |   (eval $ac_link) 2>&5 | 
 | 21346 |   ac_status=$? | 
 | 21347 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21348 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 21349 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21350 |   (eval $ac_try) 2>&5 | 
 | 21351 |   ac_status=$? | 
 | 21352 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21353 |   (exit $ac_status); }; }; then | 
 | 21354 |   ac_c_printf_a=yes | 
 | 21355 | else | 
 | 21356 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 21357 | echo "$as_me: failed program was:" >&5 | 
 | 21358 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21359 |  | 
 | 21360 | ( exit $ac_status ) | 
 | 21361 | ac_c_printf_a=no | 
 | 21362 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21363 | 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] | 21364 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21365 |  ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21366 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21370 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21371 |  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5 | 
| Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 21372 | echo "${ECHO_T}$ac_c_printf_a" >&6 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21373 |  if test "$ac_c_printf_a" = "yes"; then | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21374 |  | 
 | 21375 | cat >>confdefs.h <<\_ACEOF | 
 | 21376 | #define HAVE_PRINTF_A 1 | 
 | 21377 | _ACEOF | 
 | 21378 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21379 |  fi | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 21380 |  | 
 | 21381 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21382 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
 | 21383 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | 
 | 21384 | if test "${ac_cv_c_bigendian+set}" = set; then | 
 | 21385 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21386 | else | 
 | 21387 |   # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 21388 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21389 | /* confdefs.h.  */ | 
 | 21390 | _ACEOF | 
 | 21391 | cat confdefs.h >>conftest.$ac_ext | 
 | 21392 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21393 | /* end confdefs.h.  */ | 
 | 21394 | #include <sys/types.h> | 
 | 21395 | #include <sys/param.h> | 
 | 21396 |  | 
 | 21397 | int | 
 | 21398 | main () | 
 | 21399 | { | 
 | 21400 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
 | 21401 |  bogus endian macros | 
 | 21402 | #endif | 
 | 21403 |  | 
 | 21404 |   ; | 
 | 21405 |   return 0; | 
 | 21406 | } | 
 | 21407 | _ACEOF | 
 | 21408 | rm -f conftest.$ac_objext | 
 | 21409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21410 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21411 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21412 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21413 |   rm -f conftest.er1 | 
 | 21414 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21415 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21416 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21417 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21418 | 			 || test ! -s conftest.err' | 
 | 21419 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21420 |   (eval $ac_try) 2>&5 | 
 | 21421 |   ac_status=$? | 
 | 21422 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21423 |   (exit $ac_status); }; } && | 
 | 21424 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21425 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21426 |   (eval $ac_try) 2>&5 | 
 | 21427 |   ac_status=$? | 
 | 21428 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21429 |   (exit $ac_status); }; }; then | 
 | 21430 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
 | 21431 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21432 | /* confdefs.h.  */ | 
 | 21433 | _ACEOF | 
 | 21434 | cat confdefs.h >>conftest.$ac_ext | 
 | 21435 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21436 | /* end confdefs.h.  */ | 
 | 21437 | #include <sys/types.h> | 
 | 21438 | #include <sys/param.h> | 
 | 21439 |  | 
 | 21440 | int | 
 | 21441 | main () | 
 | 21442 | { | 
 | 21443 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 21444 |  not big endian | 
 | 21445 | #endif | 
 | 21446 |  | 
 | 21447 |   ; | 
 | 21448 |   return 0; | 
 | 21449 | } | 
 | 21450 | _ACEOF | 
 | 21451 | rm -f conftest.$ac_objext | 
 | 21452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21453 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21454 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21455 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21456 |   rm -f conftest.er1 | 
 | 21457 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21458 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21459 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21460 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21461 | 			 || test ! -s conftest.err' | 
 | 21462 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21463 |   (eval $ac_try) 2>&5 | 
 | 21464 |   ac_status=$? | 
 | 21465 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21466 |   (exit $ac_status); }; } && | 
 | 21467 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21468 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21469 |   (eval $ac_try) 2>&5 | 
 | 21470 |   ac_status=$? | 
 | 21471 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21472 |   (exit $ac_status); }; }; then | 
 | 21473 |   ac_cv_c_bigendian=yes | 
 | 21474 | else | 
 | 21475 |   echo "$as_me: failed program was:" >&5 | 
 | 21476 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21477 |  | 
 | 21478 | ac_cv_c_bigendian=no | 
 | 21479 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21481 | else | 
 | 21482 |   echo "$as_me: failed program was:" >&5 | 
 | 21483 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21484 |  | 
 | 21485 | # It does not; compile a test program. | 
 | 21486 | if test "$cross_compiling" = yes; then | 
 | 21487 |   # try to guess the endianness by grepping values into an object file | 
 | 21488 |   ac_cv_c_bigendian=unknown | 
 | 21489 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21490 | /* confdefs.h.  */ | 
 | 21491 | _ACEOF | 
 | 21492 | cat confdefs.h >>conftest.$ac_ext | 
 | 21493 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21494 | /* end confdefs.h.  */ | 
 | 21495 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 21496 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 21497 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
 | 21498 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 21499 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 21500 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
 | 21501 | int | 
 | 21502 | main () | 
 | 21503 | { | 
 | 21504 |  _ascii (); _ebcdic (); | 
 | 21505 |   ; | 
 | 21506 |   return 0; | 
 | 21507 | } | 
 | 21508 | _ACEOF | 
 | 21509 | rm -f conftest.$ac_objext | 
 | 21510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21511 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21512 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21513 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21514 |   rm -f conftest.er1 | 
 | 21515 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21516 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21517 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21518 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21519 | 			 || test ! -s conftest.err' | 
 | 21520 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21521 |   (eval $ac_try) 2>&5 | 
 | 21522 |   ac_status=$? | 
 | 21523 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21524 |   (exit $ac_status); }; } && | 
 | 21525 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21526 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21527 |   (eval $ac_try) 2>&5 | 
 | 21528 |   ac_status=$? | 
 | 21529 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21530 |   (exit $ac_status); }; }; then | 
 | 21531 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
 | 21532 |   ac_cv_c_bigendian=yes | 
 | 21533 | fi | 
 | 21534 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 21535 |   if test "$ac_cv_c_bigendian" = unknown; then | 
 | 21536 |     ac_cv_c_bigendian=no | 
 | 21537 |   else | 
 | 21538 |     # finding both strings is unlikely to happen, but who knows? | 
 | 21539 |     ac_cv_c_bigendian=unknown | 
 | 21540 |   fi | 
 | 21541 | fi | 
 | 21542 | else | 
 | 21543 |   echo "$as_me: failed program was:" >&5 | 
 | 21544 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21545 |  | 
 | 21546 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21548 | else | 
 | 21549 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21550 | /* confdefs.h.  */ | 
 | 21551 | _ACEOF | 
 | 21552 | cat confdefs.h >>conftest.$ac_ext | 
 | 21553 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21554 | /* end confdefs.h.  */ | 
 | 21555 | int | 
 | 21556 | main () | 
 | 21557 | { | 
 | 21558 |   /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 21559 |   union | 
 | 21560 |   { | 
 | 21561 |     long l; | 
 | 21562 |     char c[sizeof (long)]; | 
 | 21563 |   } u; | 
 | 21564 |   u.l = 1; | 
 | 21565 |   exit (u.c[sizeof (long) - 1] == 1); | 
 | 21566 | } | 
 | 21567 | _ACEOF | 
 | 21568 | rm -f conftest$ac_exeext | 
 | 21569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 21570 |   (eval $ac_link) 2>&5 | 
 | 21571 |   ac_status=$? | 
 | 21572 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21573 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 21574 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21575 |   (eval $ac_try) 2>&5 | 
 | 21576 |   ac_status=$? | 
 | 21577 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21578 |   (exit $ac_status); }; }; then | 
 | 21579 |   ac_cv_c_bigendian=no | 
 | 21580 | else | 
 | 21581 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 21582 | echo "$as_me: failed program was:" >&5 | 
 | 21583 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21584 |  | 
 | 21585 | ( exit $ac_status ) | 
 | 21586 | ac_cv_c_bigendian=yes | 
 | 21587 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21588 | 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] | 21589 | fi | 
 | 21590 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21592 | fi | 
 | 21593 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
 | 21594 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | 
 | 21595 | case $ac_cv_c_bigendian in | 
 | 21596 |   yes) | 
 | 21597 |     ENDIAN=big | 
 | 21598 |  ;; | 
 | 21599 |   no) | 
 | 21600 |     ENDIAN=little | 
 | 21601 |  ;; | 
 | 21602 |   *) | 
 | 21603 |     { { echo "$as_me:$LINENO: error: unknown endianness | 
 | 21604 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
 | 21605 | echo "$as_me: error: unknown endianness | 
 | 21606 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
 | 21607 |    { (exit 1); exit 1; }; } ;; | 
 | 21608 | esac | 
 | 21609 |  | 
 | 21610 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21611 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
 | 21612 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 | 
 | 21613 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
 | 21614 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21615 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21616 |   ac_ext=cc | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21617 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21621 |  | 
 | 21622 |  cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21623 | /* confdefs.h.  */ | 
 | 21624 | _ACEOF | 
 | 21625 | cat confdefs.h >>conftest.$ac_ext | 
 | 21626 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21627 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21628 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21629 | int | 
 | 21630 | main () | 
 | 21631 | { | 
 | 21632 | using namespace Outer::Inner; return i; | 
 | 21633 |   ; | 
 | 21634 |   return 0; | 
 | 21635 | } | 
 | 21636 | _ACEOF | 
 | 21637 | rm -f conftest.$ac_objext | 
 | 21638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21639 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21640 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21641 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21642 |   rm -f conftest.er1 | 
 | 21643 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21644 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21645 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21646 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21647 | 			 || test ! -s conftest.err' | 
 | 21648 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21649 |   (eval $ac_try) 2>&5 | 
 | 21650 |   ac_status=$? | 
 | 21651 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21652 |   (exit $ac_status); }; } && | 
 | 21653 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21654 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21655 |   (eval $ac_try) 2>&5 | 
 | 21656 |   ac_status=$? | 
 | 21657 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21658 |   (exit $ac_status); }; }; then | 
 | 21659 |   ac_cv_cxx_namespaces=yes | 
 | 21660 | else | 
 | 21661 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21662 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21663 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21664 | ac_cv_cxx_namespaces=no | 
 | 21665 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21667 |  ac_ext=c | 
 | 21668 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21672 |  | 
 | 21673 |  | 
 | 21674 | fi | 
 | 21675 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
 | 21676 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 | 
 | 21677 | if test "$ac_cv_cxx_namespaces" = yes; then | 
 | 21678 |  | 
 | 21679 | cat >>confdefs.h <<\_ACEOF | 
 | 21680 | #define HAVE_NAMESPACES | 
 | 21681 | _ACEOF | 
 | 21682 |  | 
 | 21683 | fi | 
 | 21684 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21685 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 | 
 | 21686 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 | 
 | 21687 | 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] | 21688 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21689 | else | 
 | 21690 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21691 |   ac_ext=cc | 
 | 21692 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21693 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21694 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21695 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21696 |  | 
 | 21697 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21698 | /* confdefs.h.  */ | 
 | 21699 | _ACEOF | 
 | 21700 | cat confdefs.h >>conftest.$ac_ext | 
 | 21701 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21702 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21703 | #include <ext/hash_map> | 
 | 21704 | #ifdef HAVE_NAMESPACES | 
 | 21705 | using namespace std; | 
 | 21706 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21707 | int | 
 | 21708 | main () | 
 | 21709 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21710 | hash_map<int, int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21711 |   ; | 
 | 21712 |   return 0; | 
 | 21713 | } | 
 | 21714 | _ACEOF | 
 | 21715 | rm -f conftest.$ac_objext | 
 | 21716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21717 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21718 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21719 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21720 |   rm -f conftest.er1 | 
 | 21721 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21722 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21723 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21724 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21725 | 			 || test ! -s conftest.err' | 
 | 21726 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21727 |   (eval $ac_try) 2>&5 | 
 | 21728 |   ac_status=$? | 
 | 21729 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21730 |   (exit $ac_status); }; } && | 
 | 21731 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21732 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21733 |   (eval $ac_try) 2>&5 | 
 | 21734 |   ac_status=$? | 
 | 21735 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21736 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21737 |   ac_cv_cxx_have_std_ext_hash_map=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21738 | else | 
 | 21739 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21740 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21741 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21742 | ac_cv_cxx_have_std_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21743 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21745 |   ac_ext=c | 
 | 21746 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21750 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21751 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21752 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 | 
 | 21753 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21754 |  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes | 
 | 21755 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21756 |  | 
 | 21757 | cat >>confdefs.h <<\_ACEOF | 
 | 21758 | #define HAVE_STD_EXT_HASH_MAP 1 | 
 | 21759 | _ACEOF | 
 | 21760 |  | 
 | 21761 |  else | 
 | 21762 |  | 
 | 21763 | cat >>confdefs.h <<\_ACEOF | 
 | 21764 | #define HAVE_STD_EXT_HASH_MAP 0 | 
 | 21765 | _ACEOF | 
 | 21766 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21767 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21768 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21769 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 | 
 | 21770 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 | 
 | 21771 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then | 
 | 21772 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21773 | else | 
 | 21774 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21775 |   ac_ext=cc | 
 | 21776 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21777 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21778 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21779 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21780 |  | 
 | 21781 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21782 | /* confdefs.h.  */ | 
 | 21783 | _ACEOF | 
 | 21784 | cat confdefs.h >>conftest.$ac_ext | 
 | 21785 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21786 | /* end confdefs.h.  */ | 
 | 21787 | #include <ext/hash_map> | 
 | 21788 | #ifdef HAVE_NAMESPACES | 
 | 21789 | using namespace __gnu_cxx; | 
 | 21790 | #endif | 
 | 21791 | int | 
 | 21792 | main () | 
 | 21793 | { | 
 | 21794 | hash_map<int,int> t; | 
 | 21795 |   ; | 
 | 21796 |   return 0; | 
 | 21797 | } | 
 | 21798 | _ACEOF | 
 | 21799 | rm -f conftest.$ac_objext | 
 | 21800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21801 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21802 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21803 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21804 |   rm -f conftest.er1 | 
 | 21805 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21806 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21807 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21808 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21809 | 			 || test ! -s conftest.err' | 
 | 21810 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21811 |   (eval $ac_try) 2>&5 | 
 | 21812 |   ac_status=$? | 
 | 21813 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21814 |   (exit $ac_status); }; } && | 
 | 21815 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21816 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21817 |   (eval $ac_try) 2>&5 | 
 | 21818 |   ac_status=$? | 
 | 21819 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21820 |   (exit $ac_status); }; }; then | 
 | 21821 |   ac_cv_cxx_have_gnu_ext_hash_map=yes | 
 | 21822 | else | 
 | 21823 |   echo "$as_me: failed program was:" >&5 | 
 | 21824 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21825 |  | 
 | 21826 | ac_cv_cxx_have_gnu_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21827 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21829 |   ac_ext=c | 
 | 21830 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21834 |  | 
 | 21835 | fi | 
 | 21836 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 | 
 | 21837 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21838 |  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes | 
 | 21839 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21840 |  | 
 | 21841 | cat >>confdefs.h <<\_ACEOF | 
 | 21842 | #define HAVE_GNU_EXT_HASH_MAP 1 | 
 | 21843 | _ACEOF | 
 | 21844 |  | 
 | 21845 |  else | 
 | 21846 |  | 
 | 21847 | cat >>confdefs.h <<\_ACEOF | 
 | 21848 | #define HAVE_GNU_EXT_HASH_MAP 0 | 
 | 21849 | _ACEOF | 
 | 21850 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21851 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21852 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21853 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 | 
 | 21854 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 | 
 | 21855 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then | 
 | 21856 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21857 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21858 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21859 |   ac_ext=cc | 
 | 21860 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21861 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21862 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21863 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21864 |  | 
 | 21865 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21866 | /* confdefs.h.  */ | 
 | 21867 | _ACEOF | 
 | 21868 | cat confdefs.h >>conftest.$ac_ext | 
 | 21869 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21870 | /* end confdefs.h.  */ | 
 | 21871 | #include <hash_map> | 
 | 21872 | int | 
 | 21873 | main () | 
 | 21874 | { | 
 | 21875 | hash_map<int,int> t; | 
 | 21876 |   ; | 
 | 21877 |   return 0; | 
 | 21878 | } | 
 | 21879 | _ACEOF | 
 | 21880 | rm -f conftest.$ac_objext | 
 | 21881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21882 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21883 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21884 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21885 |   rm -f conftest.er1 | 
 | 21886 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21887 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21888 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21889 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21890 | 			 || test ! -s conftest.err' | 
 | 21891 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21892 |   (eval $ac_try) 2>&5 | 
 | 21893 |   ac_status=$? | 
 | 21894 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21895 |   (exit $ac_status); }; } && | 
 | 21896 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21897 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21898 |   (eval $ac_try) 2>&5 | 
 | 21899 |   ac_status=$? | 
 | 21900 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21901 |   (exit $ac_status); }; }; then | 
 | 21902 |   ac_cv_cxx_have_global_hash_map=yes | 
 | 21903 | else | 
 | 21904 |   echo "$as_me: failed program was:" >&5 | 
 | 21905 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21906 |  | 
 | 21907 | ac_cv_cxx_have_global_hash_map=no | 
 | 21908 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21910 |   ac_ext=c | 
 | 21911 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21915 |  | 
 | 21916 | fi | 
 | 21917 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 | 
 | 21918 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21919 |  if test "$ac_cv_cxx_have_global_hash_map" = yes | 
 | 21920 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 21921 |  | 
 | 21922 | cat >>confdefs.h <<\_ACEOF | 
 | 21923 | #define HAVE_GLOBAL_HASH_MAP 1 | 
 | 21924 | _ACEOF | 
 | 21925 |  | 
 | 21926 |  else | 
 | 21927 |  | 
 | 21928 | cat >>confdefs.h <<\_ACEOF | 
 | 21929 | #define HAVE_GLOBAL_HASH_MAP 0 | 
 | 21930 | _ACEOF | 
 | 21931 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21932 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 21933 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21934 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 | 
 | 21935 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 | 
 | 21936 | 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] | 21937 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21938 | else | 
 | 21939 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21940 |   ac_ext=cc | 
 | 21941 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 21942 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21943 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21944 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 21945 |  | 
 | 21946 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21947 | /* confdefs.h.  */ | 
 | 21948 | _ACEOF | 
 | 21949 | cat confdefs.h >>conftest.$ac_ext | 
 | 21950 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21951 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21952 | #include <ext/hash_set> | 
 | 21953 | #ifdef HAVE_NAMESPACES | 
 | 21954 | using namespace std; | 
 | 21955 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21956 | int | 
 | 21957 | main () | 
 | 21958 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21959 | hash_set<int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21960 |   ; | 
 | 21961 |   return 0; | 
 | 21962 | } | 
 | 21963 | _ACEOF | 
 | 21964 | rm -f conftest.$ac_objext | 
 | 21965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21966 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21967 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21968 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21969 |   rm -f conftest.er1 | 
 | 21970 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21971 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21972 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21973 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 21974 | 			 || test ! -s conftest.err' | 
 | 21975 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21976 |   (eval $ac_try) 2>&5 | 
 | 21977 |   ac_status=$? | 
 | 21978 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21979 |   (exit $ac_status); }; } && | 
 | 21980 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21981 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21982 |   (eval $ac_try) 2>&5 | 
 | 21983 |   ac_status=$? | 
 | 21984 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21985 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21986 |   ac_cv_cxx_have_std_ext_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21987 | else | 
 | 21988 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21989 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21990 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21991 | ac_cv_cxx_have_std_ext_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21992 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 21994 |   ac_ext=c | 
 | 21995 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21999 |  | 
 | 22000 | fi | 
 | 22001 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 | 
 | 22002 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 22003 |  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes | 
 | 22004 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 22005 |  | 
 | 22006 | cat >>confdefs.h <<\_ACEOF | 
 | 22007 | #define HAVE_STD_EXT_HASH_SET 1 | 
 | 22008 | _ACEOF | 
 | 22009 |  | 
 | 22010 |  else | 
 | 22011 |  | 
 | 22012 | cat >>confdefs.h <<\_ACEOF | 
 | 22013 | #define HAVE_STD_EXT_HASH_SET 0 | 
 | 22014 | _ACEOF | 
 | 22015 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22016 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 22017 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22018 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 | 
 | 22019 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 | 
 | 22020 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then | 
 | 22021 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22022 | else | 
 | 22023 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 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 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22030 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +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.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22036 | #include <ext/hash_set> | 
 | 22037 | #ifdef HAVE_NAMESPACES | 
 | 22038 | using namespace __gnu_cxx; | 
 | 22039 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22040 | int | 
 | 22041 | main () | 
 | 22042 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22043 | hash_set<int> t; | 
 | 22044 |   ; | 
 | 22045 |   return 0; | 
 | 22046 | } | 
 | 22047 | _ACEOF | 
 | 22048 | rm -f conftest.$ac_objext | 
 | 22049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22050 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22051 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22052 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22053 |   rm -f conftest.er1 | 
 | 22054 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22055 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22056 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22057 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22058 | 			 || test ! -s conftest.err' | 
 | 22059 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22060 |   (eval $ac_try) 2>&5 | 
 | 22061 |   ac_status=$? | 
 | 22062 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22063 |   (exit $ac_status); }; } && | 
 | 22064 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22065 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22066 |   (eval $ac_try) 2>&5 | 
 | 22067 |   ac_status=$? | 
 | 22068 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22069 |   (exit $ac_status); }; }; then | 
 | 22070 |   ac_cv_cxx_have_gnu_ext_hash_set=yes | 
 | 22071 | else | 
 | 22072 |   echo "$as_me: failed program was:" >&5 | 
 | 22073 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22074 |  | 
 | 22075 | ac_cv_cxx_have_gnu_ext_hash_set=no | 
 | 22076 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22078 |   ac_ext=c | 
 | 22079 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22083 |  | 
 | 22084 | fi | 
 | 22085 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 | 
 | 22086 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 22087 |  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes | 
 | 22088 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 22089 |  | 
 | 22090 | cat >>confdefs.h <<\_ACEOF | 
 | 22091 | #define HAVE_GNU_EXT_HASH_SET 1 | 
 | 22092 | _ACEOF | 
 | 22093 |  | 
 | 22094 |  else | 
 | 22095 |  | 
 | 22096 | cat >>confdefs.h <<\_ACEOF | 
 | 22097 | #define HAVE_GNU_EXT_HASH_SET 0 | 
 | 22098 | _ACEOF | 
 | 22099 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22100 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 22101 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22102 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 | 
 | 22103 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 | 
 | 22104 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then | 
 | 22105 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22106 | else | 
 | 22107 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22108 |   ac_ext=cc | 
 | 22109 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22113 |  | 
 | 22114 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22115 | /* confdefs.h.  */ | 
 | 22116 | _ACEOF | 
 | 22117 | cat confdefs.h >>conftest.$ac_ext | 
 | 22118 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22119 | /* end confdefs.h.  */ | 
 | 22120 | #include <hash_set> | 
 | 22121 | int | 
 | 22122 | main () | 
 | 22123 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22124 | hash_set<int> t; return 0; | 
 | 22125 |   ; | 
 | 22126 |   return 0; | 
 | 22127 | } | 
 | 22128 | _ACEOF | 
 | 22129 | rm -f conftest.$ac_objext | 
 | 22130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22131 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22132 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22133 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22134 |   rm -f conftest.er1 | 
 | 22135 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22136 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22137 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22138 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22139 | 			 || test ! -s conftest.err' | 
 | 22140 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22141 |   (eval $ac_try) 2>&5 | 
 | 22142 |   ac_status=$? | 
 | 22143 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22144 |   (exit $ac_status); }; } && | 
 | 22145 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22146 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22147 |   (eval $ac_try) 2>&5 | 
 | 22148 |   ac_status=$? | 
 | 22149 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22150 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22151 |   ac_cv_cxx_have_global_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22152 | else | 
 | 22153 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22154 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22155 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22156 | ac_cv_cxx_have_global_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22157 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22159 |   ac_ext=c | 
 | 22160 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22164 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22165 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22166 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 | 
 | 22167 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 22168 |  if test "$ac_cv_cxx_have_global_hash_set" = yes | 
 | 22169 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 22170 |  | 
 | 22171 | cat >>confdefs.h <<\_ACEOF | 
 | 22172 | #define HAVE_GLOBAL_HASH_SET 1 | 
 | 22173 | _ACEOF | 
 | 22174 |  | 
 | 22175 |  else | 
 | 22176 |  | 
 | 22177 | cat >>confdefs.h <<\_ACEOF | 
 | 22178 | #define HAVE_GLOBAL_HASH_SET 0 | 
 | 22179 | _ACEOF | 
 | 22180 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 22181 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 22182 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22183 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
 | 22184 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 | 
 | 22185 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
 | 22186 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22187 | else | 
 | 22188 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22189 |   ac_ext=cc | 
 | 22190 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22191 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22192 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22193 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22194 |  | 
 | 22195 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22196 | /* confdefs.h.  */ | 
 | 22197 | _ACEOF | 
 | 22198 | cat confdefs.h >>conftest.$ac_ext | 
 | 22199 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22200 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22201 | #include <iterator> | 
 | 22202 | #ifdef HAVE_NAMESPACES | 
 | 22203 | using namespace std; | 
 | 22204 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22205 | int | 
 | 22206 | main () | 
 | 22207 | { | 
 | 22208 | iterator<int,int,int> t; return 0; | 
 | 22209 |   ; | 
 | 22210 |   return 0; | 
 | 22211 | } | 
 | 22212 | _ACEOF | 
 | 22213 | rm -f conftest.$ac_objext | 
 | 22214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22215 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22216 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22217 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22218 |   rm -f conftest.er1 | 
 | 22219 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22220 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22221 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22222 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22223 | 			 || test ! -s conftest.err' | 
 | 22224 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22225 |   (eval $ac_try) 2>&5 | 
 | 22226 |   ac_status=$? | 
 | 22227 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22228 |   (exit $ac_status); }; } && | 
 | 22229 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22230 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22231 |   (eval $ac_try) 2>&5 | 
 | 22232 |   ac_status=$? | 
 | 22233 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22234 |   (exit $ac_status); }; }; then | 
 | 22235 |   ac_cv_cxx_have_std_iterator=yes | 
 | 22236 | else | 
 | 22237 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22238 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22239 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22240 | ac_cv_cxx_have_std_iterator=no | 
 | 22241 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22243 |   ac_ext=c | 
 | 22244 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22248 |  | 
 | 22249 |  | 
 | 22250 | fi | 
 | 22251 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
 | 22252 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 22253 | if test "$ac_cv_cxx_have_std_iterator" = yes | 
 | 22254 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 22255 |  | 
 | 22256 | cat >>confdefs.h <<\_ACEOF | 
 | 22257 | #define HAVE_STD_ITERATOR 1 | 
 | 22258 | _ACEOF | 
 | 22259 |  | 
 | 22260 | else | 
 | 22261 |  | 
 | 22262 | cat >>confdefs.h <<\_ACEOF | 
 | 22263 | #define HAVE_STD_ITERATOR 0 | 
 | 22264 | _ACEOF | 
 | 22265 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22266 | fi | 
 | 22267 |  | 
 | 22268 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
 | 22269 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 | 
 | 22270 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
 | 22271 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22272 | else | 
 | 22273 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22274 |   ac_ext=cc | 
 | 22275 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22276 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22277 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22278 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22279 |  | 
 | 22280 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22281 | /* confdefs.h.  */ | 
 | 22282 | _ACEOF | 
 | 22283 | cat confdefs.h >>conftest.$ac_ext | 
 | 22284 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22285 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22286 | #include <iterator> | 
 | 22287 | #ifdef HAVE_NAMESPACES | 
 | 22288 | using namespace std; | 
 | 22289 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22290 | int | 
 | 22291 | main () | 
 | 22292 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22293 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22294 |   ; | 
 | 22295 |   return 0; | 
 | 22296 | } | 
 | 22297 | _ACEOF | 
 | 22298 | rm -f conftest.$ac_objext | 
 | 22299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22300 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22301 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22302 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22303 |   rm -f conftest.er1 | 
 | 22304 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22305 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22306 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22307 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22308 | 			 || test ! -s conftest.err' | 
 | 22309 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22310 |   (eval $ac_try) 2>&5 | 
 | 22311 |   ac_status=$? | 
 | 22312 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22313 |   (exit $ac_status); }; } && | 
 | 22314 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22315 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22316 |   (eval $ac_try) 2>&5 | 
 | 22317 |   ac_status=$? | 
 | 22318 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22319 |   (exit $ac_status); }; }; then | 
 | 22320 |   ac_cv_cxx_have_bi_iterator=yes | 
 | 22321 | else | 
 | 22322 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22323 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22324 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22325 | ac_cv_cxx_have_bi_iterator=no | 
 | 22326 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22328 |   ac_ext=c | 
 | 22329 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22333 |  | 
 | 22334 |  | 
 | 22335 | fi | 
 | 22336 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
 | 22337 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 22338 | if test "$ac_cv_cxx_have_bi_iterator" = yes | 
 | 22339 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 22340 |  | 
 | 22341 | cat >>confdefs.h <<\_ACEOF | 
 | 22342 | #define HAVE_BI_ITERATOR 1 | 
 | 22343 | _ACEOF | 
 | 22344 |  | 
 | 22345 | else | 
 | 22346 |  | 
 | 22347 | cat >>confdefs.h <<\_ACEOF | 
 | 22348 | #define HAVE_BI_ITERATOR 0 | 
 | 22349 | _ACEOF | 
 | 22350 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22351 | fi | 
 | 22352 |  | 
 | 22353 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
 | 22354 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 | 
 | 22355 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
 | 22356 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22357 | else | 
 | 22358 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22359 |   ac_ext=cc | 
 | 22360 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22361 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22362 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22363 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22364 |  | 
 | 22365 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22366 | /* confdefs.h.  */ | 
 | 22367 | _ACEOF | 
 | 22368 | cat confdefs.h >>conftest.$ac_ext | 
 | 22369 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22370 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22371 | #include <iterator> | 
 | 22372 | #ifdef HAVE_NAMESPACES | 
 | 22373 | using namespace std; | 
 | 22374 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22375 | int | 
 | 22376 | main () | 
 | 22377 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 22378 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22379 |   ; | 
 | 22380 |   return 0; | 
 | 22381 | } | 
 | 22382 | _ACEOF | 
 | 22383 | rm -f conftest.$ac_objext | 
 | 22384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22385 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22386 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22387 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22388 |   rm -f conftest.er1 | 
 | 22389 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22390 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22391 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22392 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22393 | 			 || test ! -s conftest.err' | 
 | 22394 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22395 |   (eval $ac_try) 2>&5 | 
 | 22396 |   ac_status=$? | 
 | 22397 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22398 |   (exit $ac_status); }; } && | 
 | 22399 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22400 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22401 |   (eval $ac_try) 2>&5 | 
 | 22402 |   ac_status=$? | 
 | 22403 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22404 |   (exit $ac_status); }; }; then | 
 | 22405 |   ac_cv_cxx_have_fwd_iterator=yes | 
 | 22406 | else | 
 | 22407 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22408 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22409 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22410 | ac_cv_cxx_have_fwd_iterator=no | 
 | 22411 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22413 |   ac_ext=c | 
 | 22414 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22418 |  | 
 | 22419 |  | 
 | 22420 | fi | 
 | 22421 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
 | 22422 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 22423 | if test "$ac_cv_cxx_have_fwd_iterator" = yes | 
 | 22424 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 22425 |  | 
 | 22426 | cat >>confdefs.h <<\_ACEOF | 
 | 22427 | #define HAVE_FWD_ITERATOR 1 | 
 | 22428 | _ACEOF | 
 | 22429 |  | 
 | 22430 | else | 
 | 22431 |  | 
 | 22432 | cat >>confdefs.h <<\_ACEOF | 
 | 22433 | #define HAVE_FWD_ITERATOR 0 | 
 | 22434 | _ACEOF | 
 | 22435 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22436 | fi | 
 | 22437 |  | 
 | 22438 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22439 |  | 
 | 22440 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
 | 22441 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 | 
 | 22442 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
 | 22443 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22444 | else | 
 | 22445 |   ac_ext=cc | 
 | 22446 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22447 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22448 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22449 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22450 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22451 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22452 | /* confdefs.h.  */ | 
 | 22453 | _ACEOF | 
 | 22454 | cat confdefs.h >>conftest.$ac_ext | 
 | 22455 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22456 | /* end confdefs.h.  */ | 
 | 22457 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22458 | int | 
 | 22459 | main () | 
 | 22460 | { | 
 | 22461 | float f; isnan(f); | 
 | 22462 |   ; | 
 | 22463 |   return 0; | 
 | 22464 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22465 | _ACEOF | 
 | 22466 | rm -f conftest.$ac_objext | 
 | 22467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22468 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22469 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22470 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22471 |   rm -f conftest.er1 | 
 | 22472 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22473 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22474 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22475 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22476 | 			 || test ! -s conftest.err' | 
 | 22477 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22478 |   (eval $ac_try) 2>&5 | 
 | 22479 |   ac_status=$? | 
 | 22480 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22481 |   (exit $ac_status); }; } && | 
 | 22482 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22483 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22484 |   (eval $ac_try) 2>&5 | 
 | 22485 |   ac_status=$? | 
 | 22486 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22487 |   (exit $ac_status); }; }; then | 
 | 22488 |   ac_cv_func_isnan_in_math_h=yes | 
 | 22489 | else | 
 | 22490 |   echo "$as_me: failed program was:" >&5 | 
 | 22491 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22492 |  | 
 | 22493 | ac_cv_func_isnan_in_math_h=no | 
 | 22494 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22496 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22497 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22501 |  | 
 | 22502 | fi | 
 | 22503 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
 | 22504 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22505 |  | 
 | 22506 |  | 
 | 22507 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22508 |  | 
 | 22509 | cat >>confdefs.h <<\_ACEOF | 
 | 22510 | #define HAVE_ISNAN_IN_MATH_H 1 | 
 | 22511 | _ACEOF | 
 | 22512 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22513 | fi | 
 | 22514 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22515 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
 | 22516 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 | 
 | 22517 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
 | 22518 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22519 | else | 
 | 22520 |   ac_ext=cc | 
 | 22521 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22522 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22523 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22524 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22525 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22526 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22527 | /* confdefs.h.  */ | 
 | 22528 | _ACEOF | 
 | 22529 | cat confdefs.h >>conftest.$ac_ext | 
 | 22530 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22531 | /* end confdefs.h.  */ | 
 | 22532 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22533 | int | 
 | 22534 | main () | 
 | 22535 | { | 
 | 22536 | float f; isnan(f); | 
 | 22537 |   ; | 
 | 22538 |   return 0; | 
 | 22539 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22540 | _ACEOF | 
 | 22541 | rm -f conftest.$ac_objext | 
 | 22542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22543 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22544 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22545 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22546 |   rm -f conftest.er1 | 
 | 22547 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22548 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22549 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22550 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22551 | 			 || test ! -s conftest.err' | 
 | 22552 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22553 |   (eval $ac_try) 2>&5 | 
 | 22554 |   ac_status=$? | 
 | 22555 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22556 |   (exit $ac_status); }; } && | 
 | 22557 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22558 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22559 |   (eval $ac_try) 2>&5 | 
 | 22560 |   ac_status=$? | 
 | 22561 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22562 |   (exit $ac_status); }; }; then | 
 | 22563 |   ac_cv_func_isnan_in_cmath=yes | 
 | 22564 | else | 
 | 22565 |   echo "$as_me: failed program was:" >&5 | 
 | 22566 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22567 |  | 
 | 22568 | ac_cv_func_isnan_in_cmath=no | 
 | 22569 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22571 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22572 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22576 |  | 
 | 22577 | fi | 
 | 22578 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
 | 22579 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22580 |  | 
 | 22581 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22582 |  | 
 | 22583 | cat >>confdefs.h <<\_ACEOF | 
 | 22584 | #define HAVE_ISNAN_IN_CMATH 1 | 
 | 22585 | _ACEOF | 
 | 22586 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22587 | fi | 
 | 22588 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22589 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
 | 22590 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 | 
 | 22591 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
 | 22592 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22593 | else | 
 | 22594 |   ac_ext=cc | 
 | 22595 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22596 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22597 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22598 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22599 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22600 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22601 | /* confdefs.h.  */ | 
 | 22602 | _ACEOF | 
 | 22603 | cat confdefs.h >>conftest.$ac_ext | 
 | 22604 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22605 | /* end confdefs.h.  */ | 
 | 22606 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22607 | int | 
 | 22608 | main () | 
 | 22609 | { | 
 | 22610 | float f; std::isnan(f); | 
 | 22611 |   ; | 
 | 22612 |   return 0; | 
 | 22613 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22614 | _ACEOF | 
 | 22615 | rm -f conftest.$ac_objext | 
 | 22616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22617 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22618 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22619 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22620 |   rm -f conftest.er1 | 
 | 22621 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22622 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22623 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22624 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22625 | 			 || test ! -s conftest.err' | 
 | 22626 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22627 |   (eval $ac_try) 2>&5 | 
 | 22628 |   ac_status=$? | 
 | 22629 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22630 |   (exit $ac_status); }; } && | 
 | 22631 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22632 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22633 |   (eval $ac_try) 2>&5 | 
 | 22634 |   ac_status=$? | 
 | 22635 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22636 |   (exit $ac_status); }; }; then | 
 | 22637 |   ac_cv_func_std_isnan_in_cmath=yes | 
 | 22638 | else | 
 | 22639 |   echo "$as_me: failed program was:" >&5 | 
 | 22640 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22641 |  | 
 | 22642 | ac_cv_func_std_isnan_in_cmath=no | 
 | 22643 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22645 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22646 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22650 |  | 
 | 22651 | fi | 
 | 22652 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
 | 22653 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22654 |  | 
 | 22655 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22656 |  | 
 | 22657 | cat >>confdefs.h <<\_ACEOF | 
 | 22658 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
 | 22659 | _ACEOF | 
 | 22660 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22661 | fi | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 22662 |  | 
 | 22663 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22664 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
 | 22665 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 | 
 | 22666 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
 | 22667 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22668 | else | 
 | 22669 |   ac_ext=cc | 
 | 22670 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22671 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22672 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22673 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22674 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22675 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22676 | /* confdefs.h.  */ | 
 | 22677 | _ACEOF | 
 | 22678 | cat confdefs.h >>conftest.$ac_ext | 
 | 22679 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22680 | /* end confdefs.h.  */ | 
 | 22681 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22682 | int | 
 | 22683 | main () | 
 | 22684 | { | 
 | 22685 | float f; isinf(f); | 
 | 22686 |   ; | 
 | 22687 |   return 0; | 
 | 22688 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22689 | _ACEOF | 
 | 22690 | rm -f conftest.$ac_objext | 
 | 22691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22692 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22693 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22694 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22695 |   rm -f conftest.er1 | 
 | 22696 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22697 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22698 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22699 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22700 | 			 || test ! -s conftest.err' | 
 | 22701 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22702 |   (eval $ac_try) 2>&5 | 
 | 22703 |   ac_status=$? | 
 | 22704 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22705 |   (exit $ac_status); }; } && | 
 | 22706 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22707 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22708 |   (eval $ac_try) 2>&5 | 
 | 22709 |   ac_status=$? | 
 | 22710 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22711 |   (exit $ac_status); }; }; then | 
 | 22712 |   ac_cv_func_isinf_in_math_h=yes | 
 | 22713 | else | 
 | 22714 |   echo "$as_me: failed program was:" >&5 | 
 | 22715 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22716 |  | 
 | 22717 | ac_cv_func_isinf_in_math_h=no | 
 | 22718 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22720 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22721 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22725 |  | 
 | 22726 | fi | 
 | 22727 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
 | 22728 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22729 |  | 
 | 22730 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22731 |  | 
 | 22732 | cat >>confdefs.h <<\_ACEOF | 
 | 22733 | #define HAVE_ISINF_IN_MATH_H 1 | 
 | 22734 | _ACEOF | 
 | 22735 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22736 | fi | 
 | 22737 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22738 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
 | 22739 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 | 
 | 22740 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
 | 22741 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22742 | else | 
 | 22743 |   ac_ext=cc | 
 | 22744 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22745 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22746 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22747 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22748 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22749 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22750 | /* confdefs.h.  */ | 
 | 22751 | _ACEOF | 
 | 22752 | cat confdefs.h >>conftest.$ac_ext | 
 | 22753 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22754 | /* end confdefs.h.  */ | 
 | 22755 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22756 | int | 
 | 22757 | main () | 
 | 22758 | { | 
 | 22759 | float f; isinf(f); | 
 | 22760 |   ; | 
 | 22761 |   return 0; | 
 | 22762 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22763 | _ACEOF | 
 | 22764 | rm -f conftest.$ac_objext | 
 | 22765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22766 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22767 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22768 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22769 |   rm -f conftest.er1 | 
 | 22770 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22771 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22772 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22773 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22774 | 			 || test ! -s conftest.err' | 
 | 22775 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22776 |   (eval $ac_try) 2>&5 | 
 | 22777 |   ac_status=$? | 
 | 22778 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22779 |   (exit $ac_status); }; } && | 
 | 22780 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22781 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22782 |   (eval $ac_try) 2>&5 | 
 | 22783 |   ac_status=$? | 
 | 22784 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22785 |   (exit $ac_status); }; }; then | 
 | 22786 |   ac_cv_func_isinf_in_cmath=yes | 
 | 22787 | else | 
 | 22788 |   echo "$as_me: failed program was:" >&5 | 
 | 22789 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22790 |  | 
 | 22791 | ac_cv_func_isinf_in_cmath=no | 
 | 22792 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22794 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22795 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22799 |  | 
 | 22800 | fi | 
 | 22801 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
 | 22802 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22803 |  | 
 | 22804 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22805 |  | 
 | 22806 | cat >>confdefs.h <<\_ACEOF | 
 | 22807 | #define HAVE_ISINF_IN_CMATH 1 | 
 | 22808 | _ACEOF | 
 | 22809 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22810 | fi | 
 | 22811 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22812 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
 | 22813 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 | 
 | 22814 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
 | 22815 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22816 | else | 
 | 22817 |   ac_ext=cc | 
 | 22818 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22819 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22820 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22821 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22822 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22823 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22824 | /* confdefs.h.  */ | 
 | 22825 | _ACEOF | 
 | 22826 | cat confdefs.h >>conftest.$ac_ext | 
 | 22827 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22828 | /* end confdefs.h.  */ | 
 | 22829 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22830 | int | 
 | 22831 | main () | 
 | 22832 | { | 
 | 22833 | float f; std::isinf(f)} | 
 | 22834 |   ; | 
 | 22835 |   return 0; | 
 | 22836 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22837 | _ACEOF | 
 | 22838 | rm -f conftest.$ac_objext | 
 | 22839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22840 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22841 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22842 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22843 |   rm -f conftest.er1 | 
 | 22844 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22845 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22846 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22847 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22848 | 			 || test ! -s conftest.err' | 
 | 22849 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22850 |   (eval $ac_try) 2>&5 | 
 | 22851 |   ac_status=$? | 
 | 22852 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22853 |   (exit $ac_status); }; } && | 
 | 22854 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22855 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22856 |   (eval $ac_try) 2>&5 | 
 | 22857 |   ac_status=$? | 
 | 22858 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22859 |   (exit $ac_status); }; }; then | 
 | 22860 |   ac_cv_func_std_isinf_in_cmath=yes | 
 | 22861 | else | 
 | 22862 |   echo "$as_me: failed program was:" >&5 | 
 | 22863 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22864 |  | 
 | 22865 | ac_cv_func_std_isinf_in_cmath=no | 
 | 22866 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22868 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22869 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22870 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22871 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22872 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22873 |  | 
 | 22874 | fi | 
 | 22875 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
 | 22876 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22877 |  | 
 | 22878 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 22879 |  | 
 | 22880 | cat >>confdefs.h <<\_ACEOF | 
 | 22881 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
 | 22882 | _ACEOF | 
 | 22883 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22884 | fi | 
 | 22885 |  | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22886 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
 | 22887 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 | 
 | 22888 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
 | 22889 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22890 | else | 
 | 22891 |   ac_ext=cc | 
 | 22892 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22893 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22894 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22895 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22896 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22897 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22898 | /* confdefs.h.  */ | 
 | 22899 | _ACEOF | 
 | 22900 | cat confdefs.h >>conftest.$ac_ext | 
 | 22901 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22902 | /* end confdefs.h.  */ | 
 | 22903 | #include <ieeefp.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22904 | int | 
 | 22905 | main () | 
 | 22906 | { | 
 | 22907 | float f; finite(f); | 
 | 22908 |   ; | 
 | 22909 |   return 0; | 
 | 22910 | } | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22911 | _ACEOF | 
 | 22912 | rm -f conftest.$ac_objext | 
 | 22913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22914 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22915 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22916 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22917 |   rm -f conftest.er1 | 
 | 22918 |   cat conftest.err >&5 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22919 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22920 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22921 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22922 | 			 || test ! -s conftest.err' | 
 | 22923 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22924 |   (eval $ac_try) 2>&5 | 
 | 22925 |   ac_status=$? | 
 | 22926 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22927 |   (exit $ac_status); }; } && | 
 | 22928 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22929 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 22930 |   (eval $ac_try) 2>&5 | 
 | 22931 |   ac_status=$? | 
 | 22932 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22933 |   (exit $ac_status); }; }; then | 
 | 22934 |   ac_cv_func_finite_in_ieeefp_h=yes | 
 | 22935 | else | 
 | 22936 |   echo "$as_me: failed program was:" >&5 | 
 | 22937 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22938 |  | 
 | 22939 | ac_cv_func_finite_in_ieeefp_h=no | 
 | 22940 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22942 |   ac_ext=c | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22943 | ac_cpp='$CPP $CPPFLAGS' | 
 | 22944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 22947 |  | 
 | 22948 | fi | 
 | 22949 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
 | 22950 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22951 |  | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 22952 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22953 |  | 
 | 22954 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 22955 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 22956 | _ACEOF | 
 | 22957 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 22958 | fi | 
 | 22959 |  | 
 | 22960 |  | 
 | 22961 |  | 
 | 22962 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
 | 22963 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 | 
 | 22964 | if test "${ac_cv_func_rand48+set}" = set; then | 
 | 22965 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22966 | else | 
 | 22967 |   ac_ext=cc | 
 | 22968 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 22969 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 22970 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 22971 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 22972 |  | 
 | 22973 |    cat >conftest.$ac_ext <<_ACEOF | 
 | 22974 | /* confdefs.h.  */ | 
 | 22975 | _ACEOF | 
 | 22976 | cat confdefs.h >>conftest.$ac_ext | 
 | 22977 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22978 | /* end confdefs.h.  */ | 
 | 22979 | #include <stdlib.h> | 
 | 22980 | int | 
 | 22981 | main () | 
 | 22982 | { | 
 | 22983 | srand48(0);lrand48();drand48(); | 
 | 22984 |   ; | 
 | 22985 |   return 0; | 
 | 22986 | } | 
 | 22987 | _ACEOF | 
 | 22988 | rm -f conftest.$ac_objext | 
 | 22989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 22990 |   (eval $ac_compile) 2>conftest.er1 | 
 | 22991 |   ac_status=$? | 
 | 22992 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22993 |   rm -f conftest.er1 | 
 | 22994 |   cat conftest.err >&5 | 
 | 22995 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22996 |   (exit $ac_status); } && | 
 | 22997 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 22998 | 			 || test ! -s conftest.err' | 
 | 22999 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23000 |   (eval $ac_try) 2>&5 | 
 | 23001 |   ac_status=$? | 
 | 23002 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23003 |   (exit $ac_status); }; } && | 
 | 23004 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 23005 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23006 |   (eval $ac_try) 2>&5 | 
 | 23007 |   ac_status=$? | 
 | 23008 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23009 |   (exit $ac_status); }; }; then | 
 | 23010 |   ac_cv_func_rand48=yes | 
 | 23011 | else | 
 | 23012 |   echo "$as_me: failed program was:" >&5 | 
 | 23013 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23014 |  | 
 | 23015 | ac_cv_func_rand48=no | 
 | 23016 | fi | 
 | 23017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 23018 |   ac_ext=c | 
 | 23019 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23023 |  | 
 | 23024 | fi | 
 | 23025 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
 | 23026 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 | 
 | 23027 |  | 
 | 23028 | if test "$ac_cv_func_rand48" = "yes" ; then | 
 | 23029 |  | 
 | 23030 | cat >>confdefs.h <<\_ACEOF | 
 | 23031 | #define HAVE_RAND48 1 | 
 | 23032 | _ACEOF | 
 | 23033 |  | 
 | 23034 | fi | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 23035 |  | 
 | 23036 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23037 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
 | 23038 | # for constant arguments.  Useless! | 
 | 23039 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
 | 23040 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | 
 | 23041 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
 | 23042 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23043 | else | 
 | 23044 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23045 | /* confdefs.h.  */ | 
 | 23046 | _ACEOF | 
 | 23047 | cat confdefs.h >>conftest.$ac_ext | 
 | 23048 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23049 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23050 | #include <alloca.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23051 | int | 
 | 23052 | main () | 
 | 23053 | { | 
 | 23054 | char *p = (char *) alloca (2 * sizeof (int)); | 
 | 23055 |   ; | 
 | 23056 |   return 0; | 
 | 23057 | } | 
 | 23058 | _ACEOF | 
 | 23059 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23061 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23062 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23063 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23064 |   rm -f conftest.er1 | 
 | 23065 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23066 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23067 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23068 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23069 | 			 || test ! -s conftest.err' | 
 | 23070 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23071 |   (eval $ac_try) 2>&5 | 
 | 23072 |   ac_status=$? | 
 | 23073 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23074 |   (exit $ac_status); }; } && | 
 | 23075 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23076 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23077 |   (eval $ac_try) 2>&5 | 
 | 23078 |   ac_status=$? | 
 | 23079 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23080 |   (exit $ac_status); }; }; then | 
 | 23081 |   ac_cv_working_alloca_h=yes | 
 | 23082 | else | 
 | 23083 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23084 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23085 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23086 | ac_cv_working_alloca_h=no | 
 | 23087 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23088 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23089 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23090 | fi | 
 | 23091 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
 | 23092 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | 
 | 23093 | if test $ac_cv_working_alloca_h = yes; then | 
 | 23094 |  | 
 | 23095 | cat >>confdefs.h <<\_ACEOF | 
 | 23096 | #define HAVE_ALLOCA_H 1 | 
 | 23097 | _ACEOF | 
 | 23098 |  | 
 | 23099 | fi | 
 | 23100 |  | 
 | 23101 | echo "$as_me:$LINENO: checking for alloca" >&5 | 
 | 23102 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | 
 | 23103 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
 | 23104 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23105 | else | 
 | 23106 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23107 | /* confdefs.h.  */ | 
 | 23108 | _ACEOF | 
 | 23109 | cat confdefs.h >>conftest.$ac_ext | 
 | 23110 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23111 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23112 | #ifdef __GNUC__ | 
 | 23113 | # define alloca __builtin_alloca | 
 | 23114 | #else | 
 | 23115 | # ifdef _MSC_VER | 
 | 23116 | #  include <malloc.h> | 
 | 23117 | #  define alloca _alloca | 
 | 23118 | # else | 
 | 23119 | #  if HAVE_ALLOCA_H | 
 | 23120 | #   include <alloca.h> | 
 | 23121 | #  else | 
 | 23122 | #   ifdef _AIX | 
 | 23123 |  #pragma alloca | 
 | 23124 | #   else | 
 | 23125 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
 | 23126 | char *alloca (); | 
 | 23127 | #    endif | 
 | 23128 | #   endif | 
 | 23129 | #  endif | 
 | 23130 | # endif | 
 | 23131 | #endif | 
 | 23132 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23133 | int | 
 | 23134 | main () | 
 | 23135 | { | 
 | 23136 | char *p = (char *) alloca (1); | 
 | 23137 |   ; | 
 | 23138 |   return 0; | 
 | 23139 | } | 
 | 23140 | _ACEOF | 
 | 23141 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23143 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23144 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23145 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23146 |   rm -f conftest.er1 | 
 | 23147 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23148 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23149 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23150 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23151 | 			 || test ! -s conftest.err' | 
 | 23152 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23153 |   (eval $ac_try) 2>&5 | 
 | 23154 |   ac_status=$? | 
 | 23155 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23156 |   (exit $ac_status); }; } && | 
 | 23157 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23158 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23159 |   (eval $ac_try) 2>&5 | 
 | 23160 |   ac_status=$? | 
 | 23161 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23162 |   (exit $ac_status); }; }; then | 
 | 23163 |   ac_cv_func_alloca_works=yes | 
 | 23164 | else | 
 | 23165 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23166 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23167 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23168 | ac_cv_func_alloca_works=no | 
 | 23169 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23170 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23171 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23172 | fi | 
 | 23173 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
 | 23174 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | 
 | 23175 |  | 
 | 23176 | if test $ac_cv_func_alloca_works = yes; then | 
 | 23177 |  | 
 | 23178 | cat >>confdefs.h <<\_ACEOF | 
 | 23179 | #define HAVE_ALLOCA 1 | 
 | 23180 | _ACEOF | 
 | 23181 |  | 
 | 23182 | else | 
 | 23183 |   # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
 | 23184 | # that cause trouble.  Some versions do not even contain alloca or | 
 | 23185 | # contain a buggy version.  If you still want to use their alloca, | 
 | 23186 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
 | 23187 |  | 
 | 23188 | ALLOCA=alloca.$ac_objext | 
 | 23189 |  | 
 | 23190 | cat >>confdefs.h <<\_ACEOF | 
 | 23191 | #define C_ALLOCA 1 | 
 | 23192 | _ACEOF | 
 | 23193 |  | 
 | 23194 |  | 
 | 23195 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
 | 23196 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | 
 | 23197 | if test "${ac_cv_os_cray+set}" = set; then | 
 | 23198 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23199 | else | 
 | 23200 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23201 | /* confdefs.h.  */ | 
 | 23202 | _ACEOF | 
 | 23203 | cat confdefs.h >>conftest.$ac_ext | 
 | 23204 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23205 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23206 | #if defined(CRAY) && ! defined(CRAY2) | 
 | 23207 | webecray | 
 | 23208 | #else | 
 | 23209 | wenotbecray | 
 | 23210 | #endif | 
 | 23211 |  | 
 | 23212 | _ACEOF | 
 | 23213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23214 |   $EGREP "webecray" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23215 |   ac_cv_os_cray=yes | 
 | 23216 | else | 
 | 23217 |   ac_cv_os_cray=no | 
 | 23218 | fi | 
 | 23219 | rm -f conftest* | 
 | 23220 |  | 
 | 23221 | fi | 
 | 23222 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
 | 23223 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | 
 | 23224 | if test $ac_cv_os_cray = yes; then | 
 | 23225 |   for ac_func in _getb67 GETB67 getb67; do | 
 | 23226 |     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 23227 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 23228 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 23229 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 23230 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23231 | else | 
 | 23232 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23233 | /* confdefs.h.  */ | 
 | 23234 | _ACEOF | 
 | 23235 | cat confdefs.h >>conftest.$ac_ext | 
 | 23236 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23237 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23238 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 23239 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23240 | #define $ac_func innocuous_$ac_func | 
 | 23241 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23242 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23243 |     which can conflict with char $ac_func (); below. | 
 | 23244 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23245 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23246 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23247 | #ifdef __STDC__ | 
 | 23248 | # include <limits.h> | 
 | 23249 | #else | 
 | 23250 | # include <assert.h> | 
 | 23251 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23252 |  | 
 | 23253 | #undef $ac_func | 
 | 23254 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23255 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23256 | #ifdef __cplusplus | 
 | 23257 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23258 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23259 | #endif | 
 | 23260 | /* We use char because int might match the return type of a gcc2 | 
 | 23261 |    builtin and then its argument prototype would still apply.  */ | 
 | 23262 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23263 | /* The GNU C library defines this for functions which it implements | 
 | 23264 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23265 |     something starting with __ and the normal name is an alias.  */ | 
 | 23266 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 23267 | choke me | 
 | 23268 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23269 | char (*f) () = $ac_func; | 
 | 23270 | #endif | 
 | 23271 | #ifdef __cplusplus | 
 | 23272 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23273 | #endif | 
 | 23274 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23275 | int | 
 | 23276 | main () | 
 | 23277 | { | 
 | 23278 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23279 |   ; | 
 | 23280 |   return 0; | 
 | 23281 | } | 
 | 23282 | _ACEOF | 
 | 23283 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23285 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23286 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23287 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23288 |   rm -f conftest.er1 | 
 | 23289 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23290 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23291 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23292 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23293 | 			 || test ! -s conftest.err' | 
 | 23294 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23295 |   (eval $ac_try) 2>&5 | 
 | 23296 |   ac_status=$? | 
 | 23297 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23298 |   (exit $ac_status); }; } && | 
 | 23299 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23300 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23301 |   (eval $ac_try) 2>&5 | 
 | 23302 |   ac_status=$? | 
 | 23303 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23304 |   (exit $ac_status); }; }; then | 
 | 23305 |   eval "$as_ac_var=yes" | 
 | 23306 | else | 
 | 23307 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23308 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23309 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23310 | eval "$as_ac_var=no" | 
 | 23311 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23312 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23313 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23314 | fi | 
 | 23315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 23316 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 23317 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 23318 |  | 
 | 23319 | cat >>confdefs.h <<_ACEOF | 
 | 23320 | #define CRAY_STACKSEG_END $ac_func | 
 | 23321 | _ACEOF | 
 | 23322 |  | 
 | 23323 |     break | 
 | 23324 | fi | 
 | 23325 |  | 
 | 23326 |   done | 
 | 23327 | fi | 
 | 23328 |  | 
 | 23329 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
 | 23330 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | 
 | 23331 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
 | 23332 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23333 | else | 
 | 23334 |   if test "$cross_compiling" = yes; then | 
 | 23335 |   ac_cv_c_stack_direction=0 | 
 | 23336 | else | 
 | 23337 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23338 | /* confdefs.h.  */ | 
 | 23339 | _ACEOF | 
 | 23340 | cat confdefs.h >>conftest.$ac_ext | 
 | 23341 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23342 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23343 | int | 
 | 23344 | find_stack_direction () | 
 | 23345 | { | 
 | 23346 |   static char *addr = 0; | 
 | 23347 |   auto char dummy; | 
 | 23348 |   if (addr == 0) | 
 | 23349 |     { | 
 | 23350 |       addr = &dummy; | 
 | 23351 |       return find_stack_direction (); | 
 | 23352 |     } | 
 | 23353 |   else | 
 | 23354 |     return (&dummy > addr) ? 1 : -1; | 
 | 23355 | } | 
 | 23356 |  | 
 | 23357 | int | 
 | 23358 | main () | 
 | 23359 | { | 
 | 23360 |   exit (find_stack_direction () < 0); | 
 | 23361 | } | 
 | 23362 | _ACEOF | 
 | 23363 | rm -f conftest$ac_exeext | 
 | 23364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23365 |   (eval $ac_link) 2>&5 | 
 | 23366 |   ac_status=$? | 
 | 23367 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23368 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 23369 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23370 |   (eval $ac_try) 2>&5 | 
 | 23371 |   ac_status=$? | 
 | 23372 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23373 |   (exit $ac_status); }; }; then | 
 | 23374 |   ac_cv_c_stack_direction=1 | 
 | 23375 | else | 
 | 23376 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 23377 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23378 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23379 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23380 | ( exit $ac_status ) | 
 | 23381 | ac_cv_c_stack_direction=-1 | 
 | 23382 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23383 | 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] | 23384 | fi | 
 | 23385 | fi | 
 | 23386 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
 | 23387 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | 
 | 23388 |  | 
 | 23389 | cat >>confdefs.h <<_ACEOF | 
 | 23390 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
 | 23391 | _ACEOF | 
 | 23392 |  | 
 | 23393 |  | 
 | 23394 | fi | 
 | 23395 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23396 |  | 
 | 23397 |  | 
 | 23398 | for ac_header in stdlib.h unistd.h | 
 | 23399 | do | 
 | 23400 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 23401 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 23402 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 23403 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 23404 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 23405 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23406 | fi | 
 | 23407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 23408 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 23409 | else | 
 | 23410 |   # Is the header compilable? | 
 | 23411 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 23412 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 23413 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23414 | /* confdefs.h.  */ | 
 | 23415 | _ACEOF | 
 | 23416 | cat confdefs.h >>conftest.$ac_ext | 
 | 23417 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23418 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23419 | $ac_includes_default | 
 | 23420 | #include <$ac_header> | 
 | 23421 | _ACEOF | 
 | 23422 | rm -f conftest.$ac_objext | 
 | 23423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23424 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23425 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23426 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23427 |   rm -f conftest.er1 | 
 | 23428 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23429 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23430 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23431 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23432 | 			 || test ! -s conftest.err' | 
 | 23433 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23434 |   (eval $ac_try) 2>&5 | 
 | 23435 |   ac_status=$? | 
 | 23436 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23437 |   (exit $ac_status); }; } && | 
 | 23438 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23439 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23440 |   (eval $ac_try) 2>&5 | 
 | 23441 |   ac_status=$? | 
 | 23442 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23443 |   (exit $ac_status); }; }; then | 
 | 23444 |   ac_header_compiler=yes | 
 | 23445 | else | 
 | 23446 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23447 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23448 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23449 | ac_header_compiler=no | 
 | 23450 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23452 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 23453 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 23454 |  | 
 | 23455 | # Is the header present? | 
 | 23456 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 23457 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 23458 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23459 | /* confdefs.h.  */ | 
 | 23460 | _ACEOF | 
 | 23461 | cat confdefs.h >>conftest.$ac_ext | 
 | 23462 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23463 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23464 | #include <$ac_header> | 
 | 23465 | _ACEOF | 
 | 23466 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 23467 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 23468 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23469 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23470 |   rm -f conftest.er1 | 
 | 23471 |   cat conftest.err >&5 | 
 | 23472 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23473 |   (exit $ac_status); } >/dev/null; then | 
 | 23474 |   if test -s conftest.err; then | 
 | 23475 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23476 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23477 |   else | 
 | 23478 |     ac_cpp_err= | 
 | 23479 |   fi | 
 | 23480 | else | 
 | 23481 |   ac_cpp_err=yes | 
 | 23482 | fi | 
 | 23483 | if test -z "$ac_cpp_err"; then | 
 | 23484 |   ac_header_preproc=yes | 
 | 23485 | else | 
 | 23486 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23487 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23488 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23489 |   ac_header_preproc=no | 
 | 23490 | fi | 
 | 23491 | rm -f conftest.err conftest.$ac_ext | 
 | 23492 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 23493 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 23494 |  | 
 | 23495 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23496 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 23497 |   yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23498 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 23499 | 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] | 23500 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 23501 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 23502 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 23503 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23504 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 23505 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 23506 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23507 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 23508 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 23509 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 23510 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 23511 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 23512 | 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] | 23513 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 23514 | 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] | 23515 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 23516 | 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] | 23517 |     ( | 
 | 23518 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23519 | ## ----------------------------------- ## | 
 | 23520 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 23521 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23522 | _ASBOX | 
 | 23523 |     ) | | 
 | 23524 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 23525 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23526 | esac | 
 | 23527 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 23528 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 23529 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 23530 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23531 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23532 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23533 | fi | 
 | 23534 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 23535 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 23536 |  | 
 | 23537 | fi | 
 | 23538 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 23539 |   cat >>confdefs.h <<_ACEOF | 
 | 23540 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 23541 | _ACEOF | 
 | 23542 |  | 
 | 23543 | fi | 
 | 23544 |  | 
 | 23545 | done | 
 | 23546 |  | 
 | 23547 |  | 
 | 23548 | for ac_func in getpagesize | 
 | 23549 | do | 
 | 23550 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 23551 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 23552 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 23553 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 23554 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23555 | else | 
 | 23556 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23557 | /* confdefs.h.  */ | 
 | 23558 | _ACEOF | 
 | 23559 | cat confdefs.h >>conftest.$ac_ext | 
 | 23560 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23561 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23562 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 23563 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23564 | #define $ac_func innocuous_$ac_func | 
 | 23565 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23566 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23567 |     which can conflict with char $ac_func (); below. | 
 | 23568 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23569 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23570 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23571 | #ifdef __STDC__ | 
 | 23572 | # include <limits.h> | 
 | 23573 | #else | 
 | 23574 | # include <assert.h> | 
 | 23575 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23576 |  | 
 | 23577 | #undef $ac_func | 
 | 23578 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23579 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23580 | #ifdef __cplusplus | 
 | 23581 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23582 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23583 | #endif | 
 | 23584 | /* We use char because int might match the return type of a gcc2 | 
 | 23585 |    builtin and then its argument prototype would still apply.  */ | 
 | 23586 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23587 | /* The GNU C library defines this for functions which it implements | 
 | 23588 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23589 |     something starting with __ and the normal name is an alias.  */ | 
 | 23590 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 23591 | choke me | 
 | 23592 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23593 | char (*f) () = $ac_func; | 
 | 23594 | #endif | 
 | 23595 | #ifdef __cplusplus | 
 | 23596 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23597 | #endif | 
 | 23598 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23599 | int | 
 | 23600 | main () | 
 | 23601 | { | 
 | 23602 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23603 |   ; | 
 | 23604 |   return 0; | 
 | 23605 | } | 
 | 23606 | _ACEOF | 
 | 23607 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23609 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23610 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23611 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23612 |   rm -f conftest.er1 | 
 | 23613 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23614 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23615 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23616 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23617 | 			 || test ! -s conftest.err' | 
 | 23618 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23619 |   (eval $ac_try) 2>&5 | 
 | 23620 |   ac_status=$? | 
 | 23621 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23622 |   (exit $ac_status); }; } && | 
 | 23623 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23624 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23625 |   (eval $ac_try) 2>&5 | 
 | 23626 |   ac_status=$? | 
 | 23627 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23628 |   (exit $ac_status); }; }; then | 
 | 23629 |   eval "$as_ac_var=yes" | 
 | 23630 | else | 
 | 23631 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23632 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23633 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23634 | eval "$as_ac_var=no" | 
 | 23635 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23636 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23637 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23638 | fi | 
 | 23639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 23640 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 23641 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 23642 |   cat >>confdefs.h <<_ACEOF | 
 | 23643 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 23644 | _ACEOF | 
 | 23645 |  | 
 | 23646 | fi | 
 | 23647 | done | 
 | 23648 |  | 
 | 23649 | echo "$as_me:$LINENO: checking for working mmap" >&5 | 
 | 23650 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | 
 | 23651 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
 | 23652 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23653 | else | 
 | 23654 |   if test "$cross_compiling" = yes; then | 
 | 23655 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 23656 | else | 
 | 23657 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23658 | /* confdefs.h.  */ | 
 | 23659 | _ACEOF | 
 | 23660 | cat confdefs.h >>conftest.$ac_ext | 
 | 23661 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23662 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23663 | $ac_includes_default | 
 | 23664 | /* malloc might have been renamed as rpl_malloc. */ | 
 | 23665 | #undef malloc | 
 | 23666 |  | 
 | 23667 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
 | 23668 |    Here is a matrix of mmap possibilities: | 
 | 23669 | 	mmap private not fixed | 
 | 23670 | 	mmap private fixed at somewhere currently unmapped | 
 | 23671 | 	mmap private fixed at somewhere already mapped | 
 | 23672 | 	mmap shared not fixed | 
 | 23673 | 	mmap shared fixed at somewhere currently unmapped | 
 | 23674 | 	mmap shared fixed at somewhere already mapped | 
 | 23675 |    For private mappings, we should verify that changes cannot be read() | 
 | 23676 |    back from the file, nor mmap's back from the file at a different | 
 | 23677 |    address.  (There have been systems where private was not correctly | 
 | 23678 |    implemented like the infamous i386 svr4.0, and systems where the | 
 | 23679 |    VM page cache was not coherent with the file system buffer cache | 
 | 23680 |    like early versions of FreeBSD and possibly contemporary NetBSD.) | 
 | 23681 |    For shared mappings, we should conversely verify that changes get | 
 | 23682 |    propagated back to all the places they're supposed to be. | 
 | 23683 |  | 
 | 23684 |    Grep wants private fixed already mapped. | 
 | 23685 |    The main things grep needs to know about mmap are: | 
 | 23686 |    * does it exist and is it safe to write into the mmap'd area | 
 | 23687 |    * how to use it (BSD variants)  */ | 
 | 23688 |  | 
 | 23689 | #include <fcntl.h> | 
 | 23690 | #include <sys/mman.h> | 
 | 23691 |  | 
 | 23692 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
 | 23693 | char *malloc (); | 
 | 23694 | #endif | 
 | 23695 |  | 
 | 23696 | /* This mess was copied from the GNU getpagesize.h.  */ | 
 | 23697 | #if !HAVE_GETPAGESIZE | 
 | 23698 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
 | 23699 | # if !HAVE_SYS_PARAM_H | 
 | 23700 | #  define HAVE_SYS_PARAM_H 1 | 
 | 23701 | # endif | 
 | 23702 |  | 
 | 23703 | # ifdef _SC_PAGESIZE | 
 | 23704 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 23705 | # else /* no _SC_PAGESIZE */ | 
 | 23706 | #  if HAVE_SYS_PARAM_H | 
 | 23707 | #   include <sys/param.h> | 
 | 23708 | #   ifdef EXEC_PAGESIZE | 
 | 23709 | #    define getpagesize() EXEC_PAGESIZE | 
 | 23710 | #   else /* no EXEC_PAGESIZE */ | 
 | 23711 | #    ifdef NBPG | 
 | 23712 | #     define getpagesize() NBPG * CLSIZE | 
 | 23713 | #     ifndef CLSIZE | 
 | 23714 | #      define CLSIZE 1 | 
 | 23715 | #     endif /* no CLSIZE */ | 
 | 23716 | #    else /* no NBPG */ | 
 | 23717 | #     ifdef NBPC | 
 | 23718 | #      define getpagesize() NBPC | 
 | 23719 | #     else /* no NBPC */ | 
 | 23720 | #      ifdef PAGESIZE | 
 | 23721 | #       define getpagesize() PAGESIZE | 
 | 23722 | #      endif /* PAGESIZE */ | 
 | 23723 | #     endif /* no NBPC */ | 
 | 23724 | #    endif /* no NBPG */ | 
 | 23725 | #   endif /* no EXEC_PAGESIZE */ | 
 | 23726 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 23727 | #   define getpagesize() 8192	/* punt totally */ | 
 | 23728 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 23729 | # endif /* no _SC_PAGESIZE */ | 
 | 23730 |  | 
 | 23731 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 23732 |  | 
 | 23733 | int | 
 | 23734 | main () | 
 | 23735 | { | 
 | 23736 |   char *data, *data2, *data3; | 
 | 23737 |   int i, pagesize; | 
 | 23738 |   int fd; | 
 | 23739 |  | 
 | 23740 |   pagesize = getpagesize (); | 
 | 23741 |  | 
 | 23742 |   /* First, make a file with some known garbage in it. */ | 
 | 23743 |   data = (char *) malloc (pagesize); | 
 | 23744 |   if (!data) | 
 | 23745 |     exit (1); | 
 | 23746 |   for (i = 0; i < pagesize; ++i) | 
 | 23747 |     *(data + i) = rand (); | 
 | 23748 |   umask (0); | 
 | 23749 |   fd = creat ("conftest.mmap", 0600); | 
 | 23750 |   if (fd < 0) | 
 | 23751 |     exit (1); | 
 | 23752 |   if (write (fd, data, pagesize) != pagesize) | 
 | 23753 |     exit (1); | 
 | 23754 |   close (fd); | 
 | 23755 |  | 
 | 23756 |   /* Next, try to mmap the file at a fixed address which already has | 
 | 23757 |      something else allocated at it.  If we can, also make sure that | 
 | 23758 |      we see the same garbage.  */ | 
 | 23759 |   fd = open ("conftest.mmap", O_RDWR); | 
 | 23760 |   if (fd < 0) | 
 | 23761 |     exit (1); | 
 | 23762 |   data2 = (char *) malloc (2 * pagesize); | 
 | 23763 |   if (!data2) | 
 | 23764 |     exit (1); | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23765 |   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23766 |   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23767 | 		     MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23768 |     exit (1); | 
 | 23769 |   for (i = 0; i < pagesize; ++i) | 
 | 23770 |     if (*(data + i) != *(data2 + i)) | 
 | 23771 |       exit (1); | 
 | 23772 |  | 
 | 23773 |   /* Finally, make sure that changes to the mapped area do not | 
 | 23774 |      percolate back to the file as seen by read().  (This is a bug on | 
 | 23775 |      some variants of i386 svr4.0.)  */ | 
 | 23776 |   for (i = 0; i < pagesize; ++i) | 
 | 23777 |     *(data2 + i) = *(data2 + i) + 1; | 
 | 23778 |   data3 = (char *) malloc (pagesize); | 
 | 23779 |   if (!data3) | 
 | 23780 |     exit (1); | 
 | 23781 |   if (read (fd, data3, pagesize) != pagesize) | 
 | 23782 |     exit (1); | 
 | 23783 |   for (i = 0; i < pagesize; ++i) | 
 | 23784 |     if (*(data + i) != *(data3 + i)) | 
 | 23785 |       exit (1); | 
 | 23786 |   close (fd); | 
 | 23787 |   exit (0); | 
 | 23788 | } | 
 | 23789 | _ACEOF | 
 | 23790 | rm -f conftest$ac_exeext | 
 | 23791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23792 |   (eval $ac_link) 2>&5 | 
 | 23793 |   ac_status=$? | 
 | 23794 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23795 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 23796 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23797 |   (eval $ac_try) 2>&5 | 
 | 23798 |   ac_status=$? | 
 | 23799 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23800 |   (exit $ac_status); }; }; then | 
 | 23801 |   ac_cv_func_mmap_fixed_mapped=yes | 
 | 23802 | else | 
 | 23803 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 23804 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23805 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23806 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23807 | ( exit $ac_status ) | 
 | 23808 | ac_cv_func_mmap_fixed_mapped=no | 
 | 23809 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23810 | 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] | 23811 | fi | 
 | 23812 | fi | 
 | 23813 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
 | 23814 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | 
 | 23815 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
 | 23816 |  | 
 | 23817 | cat >>confdefs.h <<\_ACEOF | 
 | 23818 | #define HAVE_MMAP 1 | 
 | 23819 | _ACEOF | 
 | 23820 |  | 
 | 23821 | fi | 
 | 23822 | rm -f conftest.mmap | 
 | 23823 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23824 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
 | 23825 | then | 
| John Criswell | f3ecf3a | 2004-05-27 00:57:50 +0000 | [diff] [blame] | 23826 | 	{ echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 | 
 | 23827 | echo "$as_me: WARNING: mmap() required but not found" >&2;} | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23828 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23829 | echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
 | 23830 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 | 
 | 23831 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
 | 23832 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23833 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23834 |    ac_ext=c | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23835 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23839 |  | 
 | 23840 |   if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 23841 |   ac_cv_func_mmap_file=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23842 | else | 
 | 23843 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23844 |  | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23845 |     /* confdefs.h.  */ | 
 | 23846 | _ACEOF | 
 | 23847 | cat confdefs.h >>conftest.$ac_ext | 
 | 23848 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23849 | /* end confdefs.h.  */ | 
 | 23850 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23851 | #include <sys/types.h> | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23852 | #include <sys/mman.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23853 | #include <fcntl.h> | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23854 |  | 
 | 23855 | int | 
 | 23856 | main () | 
 | 23857 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23858 |  | 
 | 23859 |   int fd; | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23860 |   fd = creat ("foo",0777); | 
 | 23861 |   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
 | 23862 |   unlink ("foo"); | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 23863 |   return (fd != (int) MAP_FAILED); | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 23864 |   ; | 
 | 23865 |   return 0; | 
 | 23866 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23867 | _ACEOF | 
 | 23868 | rm -f conftest$ac_exeext | 
 | 23869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23870 |   (eval $ac_link) 2>&5 | 
 | 23871 |   ac_status=$? | 
 | 23872 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23873 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 23874 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23875 |   (eval $ac_try) 2>&5 | 
 | 23876 |   ac_status=$? | 
 | 23877 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23878 |   (exit $ac_status); }; }; then | 
 | 23879 |   ac_cv_func_mmap_file=yes | 
 | 23880 | else | 
 | 23881 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 23882 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23883 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23884 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23885 | ( exit $ac_status ) | 
 | 23886 | ac_cv_func_mmap_file=no | 
 | 23887 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23888 | 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] | 23889 | fi | 
 | 23890 |   ac_ext=c | 
 | 23891 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23895 |  | 
 | 23896 |  | 
 | 23897 | fi | 
 | 23898 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
 | 23899 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 | 
 | 23900 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23901 |  | 
 | 23902 | cat >>confdefs.h <<\_ACEOF | 
 | 23903 | #define HAVE_MMAP_FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23904 | _ACEOF | 
 | 23905 |  | 
 | 23906 |    MMAP_FILE=yes | 
 | 23907 |  | 
 | 23908 | fi | 
 | 23909 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 23910 | if test "$ac_cv_func_mmap_file" = "no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23911 | then | 
| John Criswell | f3ecf3a | 2004-05-27 00:57:50 +0000 | [diff] [blame] | 23912 | 	{ echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
 | 23913 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23914 | fi | 
 | 23915 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
 | 23916 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 | 
 | 23917 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
 | 23918 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23919 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23920 |    ac_ext=c | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23921 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23925 |  | 
 | 23926 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23927 | /* confdefs.h.  */ | 
 | 23928 | _ACEOF | 
 | 23929 | cat confdefs.h >>conftest.$ac_ext | 
 | 23930 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23931 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23932 | #include <sys/mman.h> | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23933 | #include <unistd.h> | 
 | 23934 | #include <fcntl.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23935 | int | 
 | 23936 | main () | 
 | 23937 | { | 
 | 23938 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
 | 23939 |   ; | 
 | 23940 |   return 0; | 
 | 23941 | } | 
 | 23942 | _ACEOF | 
 | 23943 | rm -f conftest.$ac_objext | 
 | 23944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23945 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23946 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23947 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23948 |   rm -f conftest.er1 | 
 | 23949 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23950 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23951 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23952 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23953 | 			 || test ! -s conftest.err' | 
 | 23954 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23955 |   (eval $ac_try) 2>&5 | 
 | 23956 |   ac_status=$? | 
 | 23957 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23958 |   (exit $ac_status); }; } && | 
 | 23959 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23960 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23961 |   (eval $ac_try) 2>&5 | 
 | 23962 |   ac_status=$? | 
 | 23963 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23964 |   (exit $ac_status); }; }; then | 
 | 23965 |   ac_cv_header_mmap_anon=yes | 
 | 23966 | else | 
 | 23967 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23968 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23969 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23970 | ac_cv_header_mmap_anon=no | 
 | 23971 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23973 |   ac_ext=c | 
 | 23974 | ac_cpp='$CPP $CPPFLAGS' | 
 | 23975 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 23976 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 23977 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 23978 |  | 
 | 23979 |  | 
 | 23980 | fi | 
 | 23981 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
 | 23982 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 | 
 | 23983 | if test "$ac_cv_header_mmap_anon" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 23984 |  | 
 | 23985 | cat >>confdefs.h <<\_ACEOF | 
 | 23986 | #define HAVE_MMAP_ANONYMOUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23987 | _ACEOF | 
 | 23988 |  | 
 | 23989 | fi | 
 | 23990 |  | 
 | 23991 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
 | 23992 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | 
 | 23993 | if test "${ac_cv_type_signal+set}" = set; then | 
 | 23994 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23995 | else | 
 | 23996 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23997 | /* confdefs.h.  */ | 
 | 23998 | _ACEOF | 
 | 23999 | cat confdefs.h >>conftest.$ac_ext | 
 | 24000 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24001 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24002 | #include <sys/types.h> | 
 | 24003 | #include <signal.h> | 
 | 24004 | #ifdef signal | 
 | 24005 | # undef signal | 
 | 24006 | #endif | 
 | 24007 | #ifdef __cplusplus | 
 | 24008 | extern "C" void (*signal (int, void (*)(int)))(int); | 
 | 24009 | #else | 
 | 24010 | void (*signal ()) (); | 
 | 24011 | #endif | 
 | 24012 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24013 | int | 
 | 24014 | main () | 
 | 24015 | { | 
 | 24016 | int i; | 
 | 24017 |   ; | 
 | 24018 |   return 0; | 
 | 24019 | } | 
 | 24020 | _ACEOF | 
 | 24021 | rm -f conftest.$ac_objext | 
 | 24022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24023 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24024 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24025 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 24026 |   rm -f conftest.er1 | 
 | 24027 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24028 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24029 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24030 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 24031 | 			 || test ! -s conftest.err' | 
 | 24032 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24033 |   (eval $ac_try) 2>&5 | 
 | 24034 |   ac_status=$? | 
 | 24035 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24036 |   (exit $ac_status); }; } && | 
 | 24037 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24038 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24039 |   (eval $ac_try) 2>&5 | 
 | 24040 |   ac_status=$? | 
 | 24041 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24042 |   (exit $ac_status); }; }; then | 
 | 24043 |   ac_cv_type_signal=void | 
 | 24044 | else | 
 | 24045 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24046 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 24047 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24048 | ac_cv_type_signal=int | 
 | 24049 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24051 | fi | 
 | 24052 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
 | 24053 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | 
 | 24054 |  | 
 | 24055 | cat >>confdefs.h <<_ACEOF | 
 | 24056 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 24057 | _ACEOF | 
 | 24058 |  | 
 | 24059 |  | 
 | 24060 |  | 
 | 24061 |  | 
 | 24062 |  | 
 | 24063 |  | 
 | 24064 |  | 
| Brian Gaeke | f526147 | 2004-02-20 06:40:57 +0000 | [diff] [blame] | 24065 |  | 
| Brian Gaeke | 9a08b5e | 2004-04-02 21:26:02 +0000 | [diff] [blame] | 24066 |  | 
| John Criswell | d662156 | 2004-06-07 14:26:24 +0000 | [diff] [blame] | 24067 |  | 
 | 24068 |  | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 24069 | 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] | 24070 | do | 
 | 24071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 24072 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 24073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 24074 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 24075 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24076 | else | 
 | 24077 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24078 | /* confdefs.h.  */ | 
 | 24079 | _ACEOF | 
 | 24080 | cat confdefs.h >>conftest.$ac_ext | 
 | 24081 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24082 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24083 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 24084 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 24085 | #define $ac_func innocuous_$ac_func | 
 | 24086 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24087 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24088 |     which can conflict with char $ac_func (); below. | 
 | 24089 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 24090 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24091 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24092 | #ifdef __STDC__ | 
 | 24093 | # include <limits.h> | 
 | 24094 | #else | 
 | 24095 | # include <assert.h> | 
 | 24096 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24097 |  | 
 | 24098 | #undef $ac_func | 
 | 24099 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24100 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 24101 | #ifdef __cplusplus | 
 | 24102 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24103 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24104 | #endif | 
 | 24105 | /* We use char because int might match the return type of a gcc2 | 
 | 24106 |    builtin and then its argument prototype would still apply.  */ | 
 | 24107 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24108 | /* The GNU C library defines this for functions which it implements | 
 | 24109 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 24110 |     something starting with __ and the normal name is an alias.  */ | 
 | 24111 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 24112 | choke me | 
 | 24113 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24114 | char (*f) () = $ac_func; | 
 | 24115 | #endif | 
 | 24116 | #ifdef __cplusplus | 
 | 24117 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24118 | #endif | 
 | 24119 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24120 | int | 
 | 24121 | main () | 
 | 24122 | { | 
 | 24123 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24124 |   ; | 
 | 24125 |   return 0; | 
 | 24126 | } | 
 | 24127 | _ACEOF | 
 | 24128 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 24129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24130 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24131 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24132 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 24133 |   rm -f conftest.er1 | 
 | 24134 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24135 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24136 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24137 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 24138 | 			 || test ! -s conftest.err' | 
 | 24139 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24140 |   (eval $ac_try) 2>&5 | 
 | 24141 |   ac_status=$? | 
 | 24142 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24143 |   (exit $ac_status); }; } && | 
 | 24144 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24145 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24146 |   (eval $ac_try) 2>&5 | 
 | 24147 |   ac_status=$? | 
 | 24148 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24149 |   (exit $ac_status); }; }; then | 
 | 24150 |   eval "$as_ac_var=yes" | 
 | 24151 | else | 
 | 24152 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24153 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 24154 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24155 | eval "$as_ac_var=no" | 
 | 24156 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24157 | rm -f conftest.err conftest.$ac_objext \ | 
 | 24158 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24159 | fi | 
 | 24160 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 24161 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 24162 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 24163 |   cat >>confdefs.h <<_ACEOF | 
 | 24164 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 24165 | _ACEOF | 
 | 24166 |  | 
 | 24167 | fi | 
 | 24168 | done | 
 | 24169 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24170 | echo "$as_me:$LINENO: checking for mprotect" >&5 | 
 | 24171 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 | 
 | 24172 | if test "${ac_cv_func_mprotect+set}" = set; then | 
 | 24173 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24174 | else | 
 | 24175 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24176 | /* confdefs.h.  */ | 
 | 24177 | _ACEOF | 
 | 24178 | cat confdefs.h >>conftest.$ac_ext | 
 | 24179 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24180 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24181 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. | 
 | 24182 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 24183 | #define mprotect innocuous_mprotect | 
 | 24184 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24185 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24186 |     which can conflict with char mprotect (); below. | 
 | 24187 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 24188 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24189 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24190 | #ifdef __STDC__ | 
 | 24191 | # include <limits.h> | 
 | 24192 | #else | 
 | 24193 | # include <assert.h> | 
 | 24194 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24195 |  | 
 | 24196 | #undef mprotect | 
 | 24197 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24198 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 24199 | #ifdef __cplusplus | 
 | 24200 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24201 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24202 | #endif | 
 | 24203 | /* We use char because int might match the return type of a gcc2 | 
 | 24204 |    builtin and then its argument prototype would still apply.  */ | 
 | 24205 | char mprotect (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24206 | /* The GNU C library defines this for functions which it implements | 
 | 24207 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 24208 |     something starting with __ and the normal name is an alias.  */ | 
 | 24209 | #if defined (__stub_mprotect) || defined (__stub___mprotect) | 
 | 24210 | choke me | 
 | 24211 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24212 | char (*f) () = mprotect; | 
 | 24213 | #endif | 
 | 24214 | #ifdef __cplusplus | 
 | 24215 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24216 | #endif | 
 | 24217 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24218 | int | 
 | 24219 | main () | 
 | 24220 | { | 
 | 24221 | return f != mprotect; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24222 |   ; | 
 | 24223 |   return 0; | 
 | 24224 | } | 
 | 24225 | _ACEOF | 
 | 24226 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 24227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24228 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24229 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24230 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 24231 |   rm -f conftest.er1 | 
 | 24232 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24233 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24234 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24235 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 24236 | 			 || test ! -s conftest.err' | 
 | 24237 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24238 |   (eval $ac_try) 2>&5 | 
 | 24239 |   ac_status=$? | 
 | 24240 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24241 |   (exit $ac_status); }; } && | 
 | 24242 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24243 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24244 |   (eval $ac_try) 2>&5 | 
 | 24245 |   ac_status=$? | 
 | 24246 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24247 |   (exit $ac_status); }; }; then | 
 | 24248 |   ac_cv_func_mprotect=yes | 
 | 24249 | else | 
 | 24250 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24251 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 24252 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24253 | ac_cv_func_mprotect=no | 
 | 24254 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24255 | rm -f conftest.err conftest.$ac_objext \ | 
 | 24256 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24257 | fi | 
 | 24258 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 | 
 | 24259 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 | 
 | 24260 | if test $ac_cv_func_mprotect = yes; then | 
 | 24261 |   : | 
 | 24262 | else | 
 | 24263 |   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 | 
 | 24264 | echo "$as_me: error: Function mprotect() required but not found" >&2;} | 
 | 24265 |    { (exit 1); exit 1; }; } | 
 | 24266 | fi | 
 | 24267 |  | 
 | 24268 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 24269 |  | 
| Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 24270 |   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
 | 24271 | 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] | 24272 |   ac_ext=c | 
 | 24273 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 24277 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 24278 |   oldcflags="$CFLAGS" | 
 | 24279 |   CFLAGS="$CFLAGS -Wl,-R." | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24280 |   cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 24281 | /* confdefs.h.  */ | 
 | 24282 | _ACEOF | 
 | 24283 | cat confdefs.h >>conftest.$ac_ext | 
 | 24284 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24285 | /* end confdefs.h.  */ | 
 | 24286 |  | 
 | 24287 | int | 
 | 24288 | main () | 
 | 24289 | { | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 24290 | int main() { return 0; } | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 24291 |   ; | 
 | 24292 |   return 0; | 
 | 24293 | } | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24294 | _ACEOF | 
 | 24295 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 24296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24297 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24298 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24299 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 24300 |   rm -f conftest.er1 | 
 | 24301 |   cat conftest.err >&5 | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24302 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24303 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24304 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 24305 | 			 || test ! -s conftest.err' | 
 | 24306 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24307 |   (eval $ac_try) 2>&5 | 
 | 24308 |   ac_status=$? | 
 | 24309 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24310 |   (exit $ac_status); }; } && | 
 | 24311 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24312 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24313 |   (eval $ac_try) 2>&5 | 
 | 24314 |   ac_status=$? | 
 | 24315 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24316 |   (exit $ac_status); }; }; then | 
 | 24317 |   ac_cv_link_use_r=yes | 
 | 24318 | else | 
 | 24319 |   echo "$as_me: failed program was:" >&5 | 
 | 24320 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 24321 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 24322 | ac_cv_link_use_r=no | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24323 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24324 | rm -f conftest.err conftest.$ac_objext \ | 
 | 24325 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 24326 |   CFLAGS="$oldcflags" | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24327 |   ac_ext=c | 
 | 24328 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 24332 |  | 
| Brian Gaeke | adfe28d | 2004-07-21 03:50:25 +0000 | [diff] [blame] | 24333 |   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5 | 
 | 24334 | echo "${ECHO_T}$ac_cv_link_use_r" >&6 | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 24335 |   if test "$ac_cv_link_use_r" = yes | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24336 |   then | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 24337 |  | 
 | 24338 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 24339 | #define HAVE_LINK_R 1 | 
 | 24340 | _ACEOF | 
 | 24341 |  | 
 | 24342 |   fi | 
 | 24343 |  | 
 | 24344 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24345 | # Check whether --enable-optimized or --disable-optimized was given. | 
 | 24346 | if test "${enable_optimized+set}" = set; then | 
 | 24347 |   enableval="$enable_optimized" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24348 |  | 
 | 24349 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 24350 |   enableval=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24351 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 24352 | if test ${enableval} = "no" | 
 | 24353 | then | 
 | 24354 | 	ENABLE_OPTIMIZED= | 
 | 24355 |  | 
 | 24356 | else | 
 | 24357 | 	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
 | 24358 |  | 
 | 24359 | fi | 
 | 24360 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 24361 | # Check whether --enable-jit or --disable-jit was given. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24362 | if test "${enable_jit+set}" = set; then | 
 | 24363 |   enableval="$enable_jit" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24364 |  | 
 | 24365 | else | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 24366 |   enableval=default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24367 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 24368 | if test ${enableval} = "no" | 
 | 24369 | then | 
 | 24370 | 	JIT= | 
 | 24371 |  | 
 | 24372 | else | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 24373 | 	case $target in | 
 | 24374 | 		*i*86*) | 
 | 24375 | 			JIT=TARGET_HAS_JIT=1 | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 24376 |  | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 24377 | 			;; | 
 | 24378 | 		*sparc*) | 
 | 24379 | 			JIT=TARGET_HAS_JIT=1 | 
 | 24380 |  | 
 | 24381 | 			;; | 
 | 24382 | 		*) | 
 | 24383 | 			JIT= | 
 | 24384 |  | 
 | 24385 | 			;; | 
 | 24386 | 	esac | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 24387 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24388 |  | 
 | 24389 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24390 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. | 
 | 24391 | if test "${with_llvmgccdir+set}" = set; then | 
 | 24392 |   withval="$with_llvmgccdir" | 
 | 24393 |   LLVMGCCDIR=$withval | 
 | 24394 |  | 
 | 24395 | fi; | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 24396 | echo "$as_me:$LINENO: checking for llvm-gcc" >&5 | 
 | 24397 | echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 | 
 | 24398 | LLVM_GCC_CHECK=no | 
 | 24399 | if test -d "$LLVMGCCDIR" | 
 | 24400 | then | 
 | 24401 | 	if test -x "$LLVMGCCDIR/bin/gcc" | 
 | 24402 | 	then | 
 | 24403 | 		LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" | 
 | 24404 | 	fi | 
 | 24405 | fi | 
 | 24406 | llvmgccwarn=no | 
 | 24407 | echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 | 
 | 24408 | echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 | 
 | 24409 | if test "$LLVM_GCC_CHECK" = "no" | 
 | 24410 | then | 
 | 24411 |     llvmgccwarn=yes | 
 | 24412 | fi | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 24413 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
 | 24414 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 | 
 | 24415 | LLVM_GCC_SANE=no | 
 | 24416 | if test -x "$LLVM_GCC_CHECK" | 
 | 24417 | then | 
 | 24418 | 	cp /dev/null conftest.c | 
 | 24419 |     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 | 
 | 24420 | 	if test $? -eq 0 | 
 | 24421 | 	then | 
 | 24422 | 		LLVM_GCC_SANE=yes | 
 | 24423 | 	fi | 
 | 24424 | 	rm conftest.c | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 24425 | 	llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1` | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 24426 | 	LLVMCC1=$llvmcc1path | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 24427 |  | 
 | 24428 | 	llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus` | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 24429 | 	LLVMCC1PLUS=$llvmcc1pluspath | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 24430 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 24431 | fi | 
 | 24432 | echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 | 
 | 24433 | echo "${ECHO_T}$LLVM_GCC_SANE" >&6 | 
 | 24434 | if test "$LLVM_GCC_SANE" = "no" | 
 | 24435 | then | 
 | 24436 | 	llvmgccwarn=yes | 
 | 24437 | fi | 
 | 24438 |  | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 24439 | echo "$as_me:$LINENO: checking for shared library suffix" >&5 | 
 | 24440 | echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6 | 
| Reid Spencer | 2e89ae2 | 2004-09-20 03:06:28 +0000 | [diff] [blame] | 24441 | eval "SHLIBEXT=$shrext_cmds" | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 24442 | echo "$as_me:$LINENO: result: $SHLIBEXT" >&5 | 
 | 24443 | echo "${ECHO_T}$SHLIBEXT" >&6 | 
 | 24444 | SHLIBEXT=$SHLIBEXT | 
 | 24445 |  | 
 | 24446 |  | 
 | 24447 | cat >>confdefs.h <<_ACEOF | 
 | 24448 | #define SHLIBEXT "$SHLIBEXT" | 
 | 24449 | _ACEOF | 
 | 24450 |  | 
 | 24451 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 24452 | # Translate the various configuration directories and other basic | 
 | 24453 | # information into substitutions that will end up in config.h.in so | 
 | 24454 | # that these configured values can be hard-wired into a program. | 
 | 24455 | eval LLVM_PREFIX="${prefix}"; | 
 | 24456 | eval LLVM_BINDIR="${prefix}/bin"; | 
 | 24457 | eval LLVM_LIBDIR="${prefix}/lib"; | 
 | 24458 | eval LLVM_DATADIR="${prefix}/data"; | 
 | 24459 | eval LLVM_DOCSDIR="${prefix}/docs"; | 
 | 24460 | eval LLVM_ETCDIR="${prefix}/etc"; | 
 | 24461 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
 | 24462 | eval LLVM_INFODIR="${prefix}/info"; | 
 | 24463 | eval LLVM_MANDIR="${prefix}/man"; | 
 | 24464 | LLVM_CONFIGTIME=`date` | 
 | 24465 |  | 
 | 24466 |  | 
 | 24467 |  | 
 | 24468 |  | 
 | 24469 |  | 
 | 24470 |  | 
 | 24471 |  | 
 | 24472 |  | 
 | 24473 |  | 
 | 24474 |  | 
 | 24475 |  | 
 | 24476 | cat >>confdefs.h <<_ACEOF | 
 | 24477 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
 | 24478 | _ACEOF | 
 | 24479 |  | 
 | 24480 |  | 
 | 24481 | cat >>confdefs.h <<_ACEOF | 
 | 24482 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
 | 24483 | _ACEOF | 
 | 24484 |  | 
 | 24485 |  | 
 | 24486 | cat >>confdefs.h <<_ACEOF | 
 | 24487 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
 | 24488 | _ACEOF | 
 | 24489 |  | 
 | 24490 |  | 
 | 24491 | cat >>confdefs.h <<_ACEOF | 
 | 24492 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
 | 24493 | _ACEOF | 
 | 24494 |  | 
 | 24495 |  | 
 | 24496 | cat >>confdefs.h <<_ACEOF | 
 | 24497 | #define LLVM_DATADIR "$LLVM_DOCSDIR" | 
 | 24498 | _ACEOF | 
 | 24499 |  | 
 | 24500 |  | 
 | 24501 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 24502 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 24503 | _ACEOF | 
 | 24504 |  | 
 | 24505 |  | 
 | 24506 | cat >>confdefs.h <<_ACEOF | 
 | 24507 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
 | 24508 | _ACEOF | 
 | 24509 |  | 
 | 24510 |  | 
 | 24511 | cat >>confdefs.h <<_ACEOF | 
 | 24512 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
 | 24513 | _ACEOF | 
 | 24514 |  | 
 | 24515 |  | 
 | 24516 | cat >>confdefs.h <<_ACEOF | 
 | 24517 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
 | 24518 | _ACEOF | 
 | 24519 |  | 
 | 24520 |  | 
 | 24521 | cat >>confdefs.h <<_ACEOF | 
 | 24522 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
 | 24523 | _ACEOF | 
 | 24524 |  | 
 | 24525 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24526 | cat >confcache <<\_ACEOF | 
 | 24527 | # This file is a shell script that caches the results of configure | 
 | 24528 | # tests run on this system so they can be shared between configure | 
 | 24529 | # scripts and configure runs, see configure's option --config-cache. | 
 | 24530 | # It is not useful on other systems.  If it contains results you don't | 
 | 24531 | # want to keep, you may remove or edit it. | 
 | 24532 | # | 
 | 24533 | # config.status only pays attention to the cache file if you give it | 
 | 24534 | # the --recheck option to rerun configure. | 
 | 24535 | # | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24536 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24537 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 24538 | # following values. | 
 | 24539 |  | 
 | 24540 | _ACEOF | 
 | 24541 |  | 
 | 24542 | # The following way of writing the cache mishandles newlines in values, | 
 | 24543 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 24544 | # So, don't put newlines in cache variables' values. | 
 | 24545 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 24546 | # and sets the high bit in the cache file unless we assign to the vars. | 
 | 24547 | { | 
 | 24548 |   (set) 2>&1 | | 
 | 24549 |     case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
 | 24550 |     *ac_space=\ *) | 
 | 24551 |       # `set' does not quote correctly, so add quotes (double-quote | 
 | 24552 |       # substitution turns \\\\ into \\, and sed turns \\ into \). | 
 | 24553 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24554 | 	"s/'/'\\\\''/g; | 
 | 24555 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24556 |       ;; | 
 | 24557 |     *) | 
 | 24558 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 24559 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24560 | 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24561 |       ;; | 
 | 24562 |     esac; | 
 | 24563 | } | | 
 | 24564 |   sed ' | 
 | 24565 |      t clear | 
 | 24566 |      : clear | 
 | 24567 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 24568 |      t end | 
 | 24569 |      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 24570 |      : end' >>confcache | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24571 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24572 |   if test -w $cache_file; then | 
 | 24573 |     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
 | 24574 |     cat confcache >$cache_file | 
 | 24575 |   else | 
 | 24576 |     echo "not updating unwritable cache $cache_file" | 
 | 24577 |   fi | 
 | 24578 | fi | 
 | 24579 | rm -f confcache | 
 | 24580 |  | 
 | 24581 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 24582 | # Let make expand exec_prefix. | 
 | 24583 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 24584 |  | 
 | 24585 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
 | 24586 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
 | 24587 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 24588 | # (actually we leave an empty line to preserve line numbers). | 
 | 24589 | if test "x$srcdir" = x.; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24590 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24591 | s/:*\$(srcdir):*/:/; | 
 | 24592 | s/:*\${srcdir}:*/:/; | 
 | 24593 | s/:*@srcdir@:*/:/; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24594 | s/^\([^=]*=[	 ]*\):*/\1/; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24595 | s/:*$//; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24596 | s/^[^=]*=[	 ]*$//; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24597 | }' | 
 | 24598 | fi | 
 | 24599 |  | 
 | 24600 | DEFS=-DHAVE_CONFIG_H | 
 | 24601 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24602 | ac_libobjs= | 
 | 24603 | ac_ltlibobjs= | 
 | 24604 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 24605 |   # 1. Remove the extension, and $U if already installed. | 
 | 24606 |   ac_i=`echo "$ac_i" | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24607 | 	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24608 |   # 2. Add them. | 
 | 24609 |   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
 | 24610 |   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
 | 24611 | done | 
 | 24612 | LIBOBJS=$ac_libobjs | 
 | 24613 |  | 
 | 24614 | LTLIBOBJS=$ac_ltlibobjs | 
 | 24615 |  | 
 | 24616 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24617 |  | 
 | 24618 | : ${CONFIG_STATUS=./config.status} | 
 | 24619 | ac_clean_files_save=$ac_clean_files | 
 | 24620 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
 | 24621 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
 | 24622 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 24623 | cat >$CONFIG_STATUS <<_ACEOF | 
 | 24624 | #! $SHELL | 
 | 24625 | # Generated by $as_me. | 
 | 24626 | # Run this file to recreate the current configuration. | 
 | 24627 | # Compiler output produced by configure, useful for debugging | 
 | 24628 | # configure, is in config.log if it exists. | 
 | 24629 |  | 
 | 24630 | debug=false | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24631 | ac_cs_recheck=false | 
 | 24632 | ac_cs_silent=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24633 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 24634 | _ACEOF | 
 | 24635 |  | 
 | 24636 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24637 | ## --------------------- ## | 
 | 24638 | ## M4sh Initialization.  ## | 
 | 24639 | ## --------------------- ## | 
 | 24640 |  | 
 | 24641 | # Be Bourne compatible | 
 | 24642 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 24643 |   emulate sh | 
 | 24644 |   NULLCMD=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24645 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 24646 |   # is contrary to our usage.  Disable this feature. | 
 | 24647 |   alias -g '${1+"$@"}'='"$@"' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24648 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 24649 |   set -o posix | 
 | 24650 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24651 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24652 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24653 | # Support unset when possible. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24654 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24655 |   as_unset=unset | 
 | 24656 | else | 
 | 24657 |   as_unset=false | 
 | 24658 | fi | 
 | 24659 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24660 |  | 
 | 24661 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 24662 | $as_unset ENV MAIL MAILPATH | 
 | 24663 | PS1='$ ' | 
 | 24664 | PS2='> ' | 
 | 24665 | PS4='+ ' | 
 | 24666 |  | 
 | 24667 | # NLS nuisances. | 
 | 24668 | for as_var in \ | 
 | 24669 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 24670 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 24671 |   LC_TELEPHONE LC_TIME | 
 | 24672 | do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24673 |   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] | 24674 |     eval $as_var=C; export $as_var | 
 | 24675 |   else | 
 | 24676 |     $as_unset $as_var | 
 | 24677 |   fi | 
 | 24678 | done | 
 | 24679 |  | 
 | 24680 | # Required to use basename. | 
 | 24681 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 24682 |   as_expr=expr | 
 | 24683 | else | 
 | 24684 |   as_expr=false | 
 | 24685 | fi | 
 | 24686 |  | 
 | 24687 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 24688 |   as_basename=basename | 
 | 24689 | else | 
 | 24690 |   as_basename=false | 
 | 24691 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24692 |  | 
 | 24693 |  | 
 | 24694 | # Name of the executable. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24695 | as_me=`$as_basename "$0" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24696 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 24697 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 24698 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 24699 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 24700 | echo X/"$0" | | 
 | 24701 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 24702 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 24703 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 24704 |   	  s/.*/./; q'` | 
 | 24705 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24706 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24707 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 24708 | # Avoid depending upon Character Ranges. | 
 | 24709 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 24710 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 24711 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 24712 | as_cr_digits='0123456789' | 
 | 24713 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 24714 |  | 
 | 24715 | # The user is always right. | 
 | 24716 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24717 |   echo "#! /bin/sh" >conf$$.sh | 
 | 24718 |   echo  "exit 0"   >>conf$$.sh | 
 | 24719 |   chmod +x conf$$.sh | 
 | 24720 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24721 |     PATH_SEPARATOR=';' | 
 | 24722 |   else | 
 | 24723 |     PATH_SEPARATOR=: | 
 | 24724 |   fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24725 |   rm -f conf$$.sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24726 | fi | 
 | 24727 |  | 
 | 24728 |  | 
 | 24729 |   as_lineno_1=$LINENO | 
 | 24730 |   as_lineno_2=$LINENO | 
 | 24731 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 24732 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 24733 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 24734 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 24735 |   # relative or not. | 
 | 24736 |   case $0 in | 
 | 24737 |     *[\\/]* ) as_myself=$0 ;; | 
 | 24738 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 24739 | for as_dir in $PATH | 
 | 24740 | do | 
 | 24741 |   IFS=$as_save_IFS | 
 | 24742 |   test -z "$as_dir" && as_dir=. | 
 | 24743 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 24744 | done | 
 | 24745 |  | 
 | 24746 |        ;; | 
 | 24747 |   esac | 
 | 24748 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 24749 |   # in which case we are not to be found in the path. | 
 | 24750 |   if test "x$as_myself" = x; then | 
 | 24751 |     as_myself=$0 | 
 | 24752 |   fi | 
 | 24753 |   if test ! -f "$as_myself"; then | 
 | 24754 |     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
 | 24755 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
 | 24756 |    { (exit 1); exit 1; }; } | 
 | 24757 |   fi | 
 | 24758 |   case $CONFIG_SHELL in | 
 | 24759 |   '') | 
 | 24760 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 24761 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 24762 | do | 
 | 24763 |   IFS=$as_save_IFS | 
 | 24764 |   test -z "$as_dir" && as_dir=. | 
 | 24765 |   for as_base in sh bash ksh sh5; do | 
 | 24766 | 	 case $as_dir in | 
 | 24767 | 	 /*) | 
 | 24768 | 	   if ("$as_dir/$as_base" -c ' | 
 | 24769 |   as_lineno_1=$LINENO | 
 | 24770 |   as_lineno_2=$LINENO | 
 | 24771 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 24772 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 24773 |   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] | 24774 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 24775 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24776 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 24777 | 	     export CONFIG_SHELL | 
 | 24778 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 24779 | 	   fi;; | 
 | 24780 | 	 esac | 
 | 24781 |        done | 
 | 24782 | done | 
 | 24783 | ;; | 
 | 24784 |   esac | 
 | 24785 |  | 
 | 24786 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 24787 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 24788 |   # line-number line before each line; the second 'sed' does the real | 
 | 24789 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 24790 |   # with the numbered line, and appends trailing '-' during | 
 | 24791 |   # substitution so that $LINENO is not a special case at line end. | 
 | 24792 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 24793 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 24794 |   sed '=' <$as_myself | | 
 | 24795 |     sed ' | 
 | 24796 |       N | 
 | 24797 |       s,$,-, | 
 | 24798 |       : loop | 
 | 24799 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 24800 |       t loop | 
 | 24801 |       s,-$,, | 
 | 24802 |       s,^['$as_cr_digits']*\n,, | 
 | 24803 |     ' >$as_me.lineno && | 
 | 24804 |   chmod +x $as_me.lineno || | 
 | 24805 |     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
 | 24806 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
 | 24807 |    { (exit 1); exit 1; }; } | 
 | 24808 |  | 
 | 24809 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 24810 |   # (the dirname of $[0] is not the place where we might find the | 
 | 24811 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 24812 |   . ./$as_me.lineno | 
 | 24813 |   # Exit status is that of the last command. | 
 | 24814 |   exit | 
 | 24815 | } | 
 | 24816 |  | 
 | 24817 |  | 
 | 24818 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 24819 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 24820 | ' ECHO_T='	' ;; | 
 | 24821 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 24822 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 24823 | esac | 
 | 24824 |  | 
 | 24825 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 24826 |   as_expr=expr | 
 | 24827 | else | 
 | 24828 |   as_expr=false | 
 | 24829 | fi | 
 | 24830 |  | 
 | 24831 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 24832 | echo >conf$$.file | 
 | 24833 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 24834 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 24835 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 24836 |   if test -f conf$$.exe; then | 
 | 24837 |     # Don't use ln at all; we don't have any links | 
 | 24838 |     as_ln_s='cp -p' | 
 | 24839 |   else | 
 | 24840 |     as_ln_s='ln -s' | 
 | 24841 |   fi | 
 | 24842 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 24843 |   as_ln_s=ln | 
 | 24844 | else | 
 | 24845 |   as_ln_s='cp -p' | 
 | 24846 | fi | 
 | 24847 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 24848 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24849 | if mkdir -p . 2>/dev/null; then | 
 | 24850 |   as_mkdir_p=: | 
 | 24851 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24852 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24853 |   as_mkdir_p=false | 
 | 24854 | fi | 
 | 24855 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24856 | as_executable_p="test -f" | 
 | 24857 |  | 
 | 24858 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24859 | 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] | 24860 |  | 
 | 24861 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24862 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24863 |  | 
 | 24864 |  | 
 | 24865 | # IFS | 
 | 24866 | # We need space, tab and new line, in precisely that order. | 
 | 24867 | as_nl=' | 
 | 24868 | ' | 
 | 24869 | IFS=" 	$as_nl" | 
 | 24870 |  | 
 | 24871 | # CDPATH. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24872 | $as_unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24873 |  | 
 | 24874 | exec 6>&1 | 
 | 24875 |  | 
 | 24876 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
 | 24877 | # report actual input values of CONFIG_FILES etc. instead of their | 
 | 24878 | # values after options handling.  Logging --version etc. is OK. | 
 | 24879 | exec 5>>config.log | 
 | 24880 | { | 
 | 24881 |   echo | 
 | 24882 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 24883 | ## Running $as_me. ## | 
 | 24884 | _ASBOX | 
 | 24885 | } >&5 | 
 | 24886 | cat >&5 <<_CSEOF | 
 | 24887 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24888 | This file was extended by llvm $as_me 1.4, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24889 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24890 |  | 
 | 24891 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 24892 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 24893 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 24894 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 24895 |   $ $0 $@ | 
 | 24896 |  | 
 | 24897 | _CSEOF | 
 | 24898 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
 | 24899 | echo >&5 | 
 | 24900 | _ACEOF | 
 | 24901 |  | 
 | 24902 | # Files that config.status was made for. | 
 | 24903 | if test -n "$ac_config_files"; then | 
 | 24904 |   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
 | 24905 | fi | 
 | 24906 |  | 
 | 24907 | if test -n "$ac_config_headers"; then | 
 | 24908 |   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
 | 24909 | fi | 
 | 24910 |  | 
 | 24911 | if test -n "$ac_config_links"; then | 
 | 24912 |   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
 | 24913 | fi | 
 | 24914 |  | 
 | 24915 | if test -n "$ac_config_commands"; then | 
 | 24916 |   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
 | 24917 | fi | 
 | 24918 |  | 
 | 24919 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24920 |  | 
 | 24921 | ac_cs_usage="\ | 
 | 24922 | \`$as_me' instantiates files from templates according to the | 
 | 24923 | current configuration. | 
 | 24924 |  | 
 | 24925 | Usage: $0 [OPTIONS] [FILE]... | 
 | 24926 |  | 
 | 24927 |   -h, --help       print this help, then exit | 
 | 24928 |   -V, --version    print version number, then exit | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24929 |   -q, --quiet      do not print progress messages | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24930 |   -d, --debug      don't remove temporary files | 
 | 24931 |       --recheck    update $as_me by reconfiguring in the same conditions | 
 | 24932 |   --file=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24933 | 		   instantiate the configuration file FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24934 |   --header=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24935 | 		   instantiate the configuration header FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24936 |  | 
 | 24937 | Configuration files: | 
 | 24938 | $config_files | 
 | 24939 |  | 
 | 24940 | Configuration headers: | 
 | 24941 | $config_headers | 
 | 24942 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 24943 | Configuration links: | 
 | 24944 | $config_links | 
 | 24945 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 24946 | Configuration commands: | 
 | 24947 | $config_commands | 
 | 24948 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24949 | Report bugs to <bug-autoconf@gnu.org>." | 
 | 24950 | _ACEOF | 
 | 24951 |  | 
 | 24952 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 24953 | ac_cs_version="\\ | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 24954 | llvm config.status 1.4 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24955 | configured by $0, generated by GNU Autoconf 2.59, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24956 |   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
 | 24957 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24958 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24959 | This config.status script is free software; the Free Software Foundation | 
 | 24960 | gives unlimited permission to copy, distribute and modify it." | 
 | 24961 | srcdir=$srcdir | 
 | 24962 | INSTALL="$INSTALL" | 
 | 24963 | _ACEOF | 
 | 24964 |  | 
 | 24965 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 24966 | # If no file are specified by the user, then we need to provide default | 
 | 24967 | # value.  By we need to know if files were specified by the user. | 
 | 24968 | ac_need_defaults=: | 
 | 24969 | while test $# != 0 | 
 | 24970 | do | 
 | 24971 |   case $1 in | 
 | 24972 |   --*=*) | 
 | 24973 |     ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
 | 24974 |     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24975 |     ac_shift=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24976 |     ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24977 |   -*) | 
 | 24978 |     ac_option=$1 | 
 | 24979 |     ac_optarg=$2 | 
 | 24980 |     ac_shift=shift | 
 | 24981 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24982 |   *) # This is not an option, so the user has probably given explicit | 
 | 24983 |      # arguments. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24984 |      ac_option=$1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24985 |      ac_need_defaults=false;; | 
 | 24986 |   esac | 
 | 24987 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24988 |   case $ac_option in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24989 |   # Handling of the options. | 
 | 24990 | _ACEOF | 
| John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 24991 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24992 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 24993 |     ac_cs_recheck=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24994 |   --version | --vers* | -V ) | 
 | 24995 |     echo "$ac_cs_version"; exit 0 ;; | 
 | 24996 |   --he | --h) | 
 | 24997 |     # Conflict between --help and --header | 
 | 24998 |     { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
 | 24999 | Try \`$0 --help' for more information." >&5 | 
 | 25000 | echo "$as_me: error: ambiguous option: $1 | 
 | 25001 | Try \`$0 --help' for more information." >&2;} | 
 | 25002 |    { (exit 1); exit 1; }; };; | 
 | 25003 |   --help | --hel | -h ) | 
 | 25004 |     echo "$ac_cs_usage"; exit 0 ;; | 
 | 25005 |   --debug | --d* | -d ) | 
 | 25006 |     debug=: ;; | 
 | 25007 |   --file | --fil | --fi | --f ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25008 |     $ac_shift | 
 | 25009 |     CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25010 |     ac_need_defaults=false;; | 
 | 25011 |   --header | --heade | --head | --hea ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25012 |     $ac_shift | 
 | 25013 |     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25014 |     ac_need_defaults=false;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25015 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 25016 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 25017 |     ac_cs_silent=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25018 |  | 
 | 25019 |   # This is an error. | 
 | 25020 |   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
 | 25021 | Try \`$0 --help' for more information." >&5 | 
 | 25022 | echo "$as_me: error: unrecognized option: $1 | 
 | 25023 | Try \`$0 --help' for more information." >&2;} | 
 | 25024 |    { (exit 1); exit 1; }; } ;; | 
 | 25025 |  | 
 | 25026 |   *) ac_config_targets="$ac_config_targets $1" ;; | 
 | 25027 |  | 
 | 25028 |   esac | 
 | 25029 |   shift | 
 | 25030 | done | 
 | 25031 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25032 | ac_configure_extra_args= | 
 | 25033 |  | 
 | 25034 | if $ac_cs_silent; then | 
 | 25035 |   exec 6>/dev/null | 
 | 25036 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 25037 | fi | 
 | 25038 |  | 
 | 25039 | _ACEOF | 
 | 25040 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 25041 | if \$ac_cs_recheck; then | 
 | 25042 |   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
 | 25043 |   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 25044 | fi | 
 | 25045 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25046 | _ACEOF | 
 | 25047 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25048 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 25049 | # | 
 | 25050 | # INIT-COMMANDS section. | 
 | 25051 | # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25052 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25053 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` | 
 | 25054 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 25055 | ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25056 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25057 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25058 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` | 
 | 25059 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 25060 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` | 
 | 25061 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25062 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Misha Brukman | 591edc6 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 25063 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT` | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25064 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25065 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25066 |  | 
 | 25067 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25068 |  | 
 | 25069 |  | 
 | 25070 |  | 
 | 25071 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25072 | for ac_config_target in $ac_config_targets | 
 | 25073 | do | 
 | 25074 |   case "$ac_config_target" in | 
 | 25075 |   # Handling of arguments. | 
 | 25076 |   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25077 |   "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] | 25078 |   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
 | 25079 |   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 25080 |   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25081 |   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25082 |   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25083 |   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
 | 25084 |   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 25085 |   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; | 
 | 25086 |   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25087 |   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
| Misha Brukman | 591edc6 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 25088 |   "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25089 |   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25090 |   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 25091 |   "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] | 25092 |   "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] | 25093 |   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; | 
 | 25094 |   "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] | 25095 |   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;; | 
 | 25096 |   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25097 |   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
 | 25098 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
 | 25099 |    { (exit 1); exit 1; }; };; | 
 | 25100 |   esac | 
 | 25101 | done | 
 | 25102 |  | 
 | 25103 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 25104 | # then the envvar interface is used.  Set only those that are not. | 
 | 25105 | # We use the long form for the default assignment because of an extremely | 
 | 25106 | # bizarre bug on SunOS 4.1.3. | 
 | 25107 | if $ac_need_defaults; then | 
 | 25108 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 25109 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25110 |   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25111 |   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25112 | fi | 
 | 25113 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25114 | # Have a temporary directory for convenience.  Make it in the build tree | 
 | 25115 | # simply because there is no reason to put it here, and in addition, | 
 | 25116 | # creating and moving files from /tmp can sometimes cause problems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25117 | # Create a temporary directory, and hook for its removal unless debugging. | 
 | 25118 | $debug || | 
 | 25119 | { | 
 | 25120 |   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
 | 25121 |   trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
 | 25122 | } | 
 | 25123 |  | 
 | 25124 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25125 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25126 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25127 |   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25128 |   test -n "$tmp" && test -d "$tmp" | 
 | 25129 | }  || | 
 | 25130 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25131 |   tmp=./confstat$$-$RANDOM | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25132 |   (umask 077 && mkdir $tmp) | 
 | 25133 | } || | 
 | 25134 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25135 |    echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25136 |    { (exit 1); exit 1; } | 
 | 25137 | } | 
 | 25138 |  | 
 | 25139 | _ACEOF | 
 | 25140 |  | 
 | 25141 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 25142 |  | 
 | 25143 | # | 
 | 25144 | # CONFIG_FILES section. | 
 | 25145 | # | 
 | 25146 |  | 
 | 25147 | # No need to generate the scripts if there are no CONFIG_FILES. | 
 | 25148 | # This happens for instance when ./config.status config.h | 
 | 25149 | if test -n "\$CONFIG_FILES"; then | 
 | 25150 |   # Protect against being on the right side of a sed subst in config.status. | 
 | 25151 |   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
 | 25152 |    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
 | 25153 | s,@SHELL@,$SHELL,;t t | 
 | 25154 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
 | 25155 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
 | 25156 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
 | 25157 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
 | 25158 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
 | 25159 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
 | 25160 | s,@exec_prefix@,$exec_prefix,;t t | 
 | 25161 | s,@prefix@,$prefix,;t t | 
 | 25162 | s,@program_transform_name@,$program_transform_name,;t t | 
 | 25163 | s,@bindir@,$bindir,;t t | 
 | 25164 | s,@sbindir@,$sbindir,;t t | 
 | 25165 | s,@libexecdir@,$libexecdir,;t t | 
 | 25166 | s,@datadir@,$datadir,;t t | 
 | 25167 | s,@sysconfdir@,$sysconfdir,;t t | 
 | 25168 | s,@sharedstatedir@,$sharedstatedir,;t t | 
 | 25169 | s,@localstatedir@,$localstatedir,;t t | 
 | 25170 | s,@libdir@,$libdir,;t t | 
 | 25171 | s,@includedir@,$includedir,;t t | 
 | 25172 | s,@oldincludedir@,$oldincludedir,;t t | 
 | 25173 | s,@infodir@,$infodir,;t t | 
 | 25174 | s,@mandir@,$mandir,;t t | 
 | 25175 | s,@build_alias@,$build_alias,;t t | 
 | 25176 | s,@host_alias@,$host_alias,;t t | 
 | 25177 | s,@target_alias@,$target_alias,;t t | 
 | 25178 | s,@DEFS@,$DEFS,;t t | 
 | 25179 | s,@ECHO_C@,$ECHO_C,;t t | 
 | 25180 | s,@ECHO_N@,$ECHO_N,;t t | 
 | 25181 | s,@ECHO_T@,$ECHO_T,;t t | 
 | 25182 | s,@LIBS@,$LIBS,;t t | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 25183 | s,@subdirs@,$subdirs,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25184 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
 | 25185 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
 | 25186 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
 | 25187 | s,@build@,$build,;t t | 
 | 25188 | s,@build_cpu@,$build_cpu,;t t | 
 | 25189 | s,@build_vendor@,$build_vendor,;t t | 
 | 25190 | s,@build_os@,$build_os,;t t | 
 | 25191 | s,@host@,$host,;t t | 
 | 25192 | s,@host_cpu@,$host_cpu,;t t | 
 | 25193 | s,@host_vendor@,$host_vendor,;t t | 
 | 25194 | s,@host_os@,$host_os,;t t | 
 | 25195 | s,@target@,$target,;t t | 
 | 25196 | s,@target_cpu@,$target_cpu,;t t | 
 | 25197 | s,@target_vendor@,$target_vendor,;t t | 
 | 25198 | s,@target_os@,$target_os,;t t | 
 | 25199 | s,@OS@,$OS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25200 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 25201 | s,@ARCH@,$ARCH,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25202 | s,@CXX@,$CXX,;t t | 
 | 25203 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
 | 25204 | s,@LDFLAGS@,$LDFLAGS,;t t | 
 | 25205 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
 | 25206 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
 | 25207 | s,@EXEEXT@,$EXEEXT,;t t | 
 | 25208 | s,@OBJEXT@,$OBJEXT,;t t | 
 | 25209 | s,@CC@,$CC,;t t | 
 | 25210 | s,@CFLAGS@,$CFLAGS,;t t | 
 | 25211 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
 | 25212 | s,@CPP@,$CPP,;t t | 
 | 25213 | s,@ifGNUmake@,$ifGNUmake,;t t | 
 | 25214 | s,@LEX@,$LEX,;t t | 
 | 25215 | s,@LEXLIB@,$LEXLIB,;t t | 
 | 25216 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 25217 | s,@FLEX@,$FLEX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25218 | s,@YACC@,$YACC,;t t | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 25219 | s,@BISON@,$BISON,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25220 | s,@EGREP@,$EGREP,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25221 | s,@LN_S@,$LN_S,;t t | 
 | 25222 | s,@ECHO@,$ECHO,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25223 | s,@AR@,$AR,;t t | 
 | 25224 | s,@ac_ct_AR@,$ac_ct_AR,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25225 | s,@RANLIB@,$RANLIB,;t t | 
 | 25226 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
 | 25227 | s,@STRIP@,$STRIP,;t t | 
 | 25228 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25229 | s,@CXXCPP@,$CXXCPP,;t t | 
 | 25230 | s,@F77@,$F77,;t t | 
 | 25231 | s,@FFLAGS@,$FFLAGS,;t t | 
 | 25232 | s,@ac_ct_F77@,$ac_ct_F77,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25233 | s,@LIBTOOL@,$LIBTOOL,;t t | 
| Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 25234 | s,@TAR@,$TAR,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25235 | s,@DOT@,$DOT,;t t | 
 | 25236 | s,@ETAGS@,$ETAGS,;t t | 
| Brian Gaeke | afa3fbf | 2004-01-22 21:55:02 +0000 | [diff] [blame] | 25237 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 25238 | s,@PYTHON@,$PYTHON,;t t | 
 | 25239 | s,@QMTEST@,$QMTEST,;t t | 
| Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 25240 | s,@RUNTEST@,$RUNTEST,;t t | 
| Reid Spencer | 37130d2 | 2004-10-04 07:05:07 +0000 | [diff] [blame] | 25241 | s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t | 
 | 25242 | s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 25243 | s,@ENDIAN@,$ENDIAN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25244 | s,@ALLOCA@,$ALLOCA,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25245 | s,@MMAP_FILE@,$MMAP_FILE,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25246 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25247 | s,@JIT@,$JIT,;t t | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 25248 | s,@LLVMCC1@,$LLVMCC1,;t t | 
 | 25249 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 25250 | s,@SHLIBEXT@,$SHLIBEXT,;t t | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 25251 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t | 
 | 25252 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t | 
 | 25253 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t | 
 | 25254 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t | 
 | 25255 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t | 
 | 25256 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t | 
 | 25257 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t | 
 | 25258 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t | 
 | 25259 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t | 
 | 25260 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 25261 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25262 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25263 | CEOF | 
 | 25264 |  | 
 | 25265 | _ACEOF | 
 | 25266 |  | 
 | 25267 |   cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25268 |   # Split the substitutions into bite-sized pieces for seds with | 
 | 25269 |   # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 25270 |   ac_max_sed_lines=48 | 
 | 25271 |   ac_sed_frag=1 # Number of current file. | 
 | 25272 |   ac_beg=1 # First line for current file. | 
 | 25273 |   ac_end=$ac_max_sed_lines # Line after last line for current file. | 
 | 25274 |   ac_more_lines=: | 
 | 25275 |   ac_sed_cmds= | 
 | 25276 |   while $ac_more_lines; do | 
 | 25277 |     if test $ac_beg -gt 1; then | 
 | 25278 |       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 25279 |     else | 
 | 25280 |       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 25281 |     fi | 
 | 25282 |     if test ! -s $tmp/subs.frag; then | 
 | 25283 |       ac_more_lines=false | 
 | 25284 |     else | 
 | 25285 |       # The purpose of the label and of the branching condition is to | 
 | 25286 |       # speed up the sed processing (if there are no `@' at all, there | 
 | 25287 |       # is no need to browse any of the substitutions). | 
 | 25288 |       # These are the two extra sed commands mentioned above. | 
 | 25289 |       (echo ':t | 
 | 25290 |   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
 | 25291 |       if test -z "$ac_sed_cmds"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25292 | 	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25293 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25294 | 	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] | 25295 |       fi | 
 | 25296 |       ac_sed_frag=`expr $ac_sed_frag + 1` | 
 | 25297 |       ac_beg=$ac_end | 
 | 25298 |       ac_end=`expr $ac_end + $ac_max_sed_lines` | 
 | 25299 |     fi | 
 | 25300 |   done | 
 | 25301 |   if test -z "$ac_sed_cmds"; then | 
 | 25302 |     ac_sed_cmds=cat | 
 | 25303 |   fi | 
 | 25304 | fi # test -n "$CONFIG_FILES" | 
 | 25305 |  | 
 | 25306 | _ACEOF | 
 | 25307 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25308 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
 | 25309 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 25310 |   case $ac_file in | 
 | 25311 |   - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25312 | 	cat >$tmp/stdin | 
 | 25313 | 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 25314 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25315 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25316 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25317 |   * )   ac_file_in=$ac_file.in ;; | 
 | 25318 |   esac | 
 | 25319 |  | 
 | 25320 |   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
 | 25321 |   ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 25322 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25323 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 25324 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 25325 | 	 X"$ac_file" : 'X\(/\)' \| \ | 
 | 25326 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25327 | echo X"$ac_file" | | 
 | 25328 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25329 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25330 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25331 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25332 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25333 |   { if $as_mkdir_p; then | 
 | 25334 |     mkdir -p "$ac_dir" | 
 | 25335 |   else | 
 | 25336 |     as_dir="$ac_dir" | 
 | 25337 |     as_dirs= | 
 | 25338 |     while test ! -d "$as_dir"; do | 
 | 25339 |       as_dirs="$as_dir $as_dirs" | 
 | 25340 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 25341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25342 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 25343 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 25344 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 25345 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25346 | echo X"$as_dir" | | 
 | 25347 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25348 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25349 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25350 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25351 |   	  s/.*/./; q'` | 
 | 25352 |     done | 
 | 25353 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 25354 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 25355 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 25356 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25357 |  | 
 | 25358 |   ac_builddir=. | 
 | 25359 |  | 
 | 25360 | if test "$ac_dir" != .; then | 
 | 25361 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 25362 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 25363 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 25364 | else | 
 | 25365 |   ac_dir_suffix= ac_top_builddir= | 
 | 25366 | fi | 
 | 25367 |  | 
 | 25368 | case $srcdir in | 
 | 25369 |   .)  # No --srcdir option.  We are building in place. | 
 | 25370 |     ac_srcdir=. | 
 | 25371 |     if test -z "$ac_top_builddir"; then | 
 | 25372 |        ac_top_srcdir=. | 
 | 25373 |     else | 
 | 25374 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 25375 |     fi ;; | 
 | 25376 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 25377 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 25378 |     ac_top_srcdir=$srcdir ;; | 
 | 25379 |   *) # Relative path. | 
 | 25380 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 25381 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 25382 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25383 |  | 
 | 25384 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 25385 | # the directories may not exist. | 
 | 25386 | case `pwd` in | 
 | 25387 | .) ac_abs_builddir="$ac_dir";; | 
 | 25388 | *) | 
 | 25389 |   case "$ac_dir" in | 
 | 25390 |   .) ac_abs_builddir=`pwd`;; | 
 | 25391 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 25392 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 25393 |   esac;; | 
 | 25394 | esac | 
 | 25395 | case $ac_abs_builddir in | 
 | 25396 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25397 | *) | 
 | 25398 |   case ${ac_top_builddir}. in | 
 | 25399 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 25400 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25401 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 25402 |   esac;; | 
 | 25403 | esac | 
 | 25404 | case $ac_abs_builddir in | 
 | 25405 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 25406 | *) | 
 | 25407 |   case $ac_srcdir in | 
 | 25408 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 25409 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 25410 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 25411 |   esac;; | 
 | 25412 | esac | 
 | 25413 | case $ac_abs_builddir in | 
 | 25414 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25415 | *) | 
 | 25416 |   case $ac_top_srcdir in | 
 | 25417 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 25418 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25419 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 25420 |   esac;; | 
 | 25421 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25422 |  | 
 | 25423 |  | 
 | 25424 |   case $INSTALL in | 
 | 25425 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
 | 25426 |   *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
 | 25427 |   esac | 
 | 25428 |  | 
 | 25429 |   if test x"$ac_file" != x-; then | 
 | 25430 |     { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 25431 | echo "$as_me: creating $ac_file" >&6;} | 
 | 25432 |     rm -f "$ac_file" | 
 | 25433 |   fi | 
 | 25434 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 25435 |   # use $as_me), people would be surprised to read: | 
 | 25436 |   #    /* config.h.  Generated by config.status.  */ | 
 | 25437 |   if test x"$ac_file" = x-; then | 
 | 25438 |     configure_input= | 
 | 25439 |   else | 
 | 25440 |     configure_input="$ac_file.  " | 
 | 25441 |   fi | 
 | 25442 |   configure_input=$configure_input"Generated from `echo $ac_file_in | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25443 | 				     sed 's,.*/,,'` by configure." | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25444 |  | 
 | 25445 |   # First look for the input files in the build tree, otherwise in the | 
 | 25446 |   # src tree. | 
 | 25447 |   ac_file_inputs=`IFS=: | 
 | 25448 |     for f in $ac_file_in; do | 
 | 25449 |       case $f in | 
 | 25450 |       -) echo $tmp/stdin ;; | 
 | 25451 |       [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25452 | 	 # Absolute (can't be DOS-style, as IFS=:) | 
 | 25453 | 	 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] | 25454 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 25455 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25456 | 	 echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25457 |       *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25458 | 	 if test -f "$f"; then | 
 | 25459 | 	   # Build tree | 
 | 25460 | 	   echo "$f" | 
 | 25461 | 	 elif test -f "$srcdir/$f"; then | 
 | 25462 | 	   # Source tree | 
 | 25463 | 	   echo "$srcdir/$f" | 
 | 25464 | 	 else | 
 | 25465 | 	   # /dev/null tree | 
 | 25466 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25467 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 25468 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25469 | 	 fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25470 |       esac | 
 | 25471 |     done` || { (exit 1); exit 1; } | 
 | 25472 | _ACEOF | 
 | 25473 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 25474 |   sed "$ac_vpsub | 
 | 25475 | $extrasub | 
 | 25476 | _ACEOF | 
 | 25477 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25478 | :t | 
 | 25479 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
 | 25480 | s,@configure_input@,$configure_input,;t t | 
 | 25481 | s,@srcdir@,$ac_srcdir,;t t | 
 | 25482 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
 | 25483 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
 | 25484 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
 | 25485 | s,@builddir@,$ac_builddir,;t t | 
 | 25486 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
 | 25487 | s,@top_builddir@,$ac_top_builddir,;t t | 
 | 25488 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
 | 25489 | s,@INSTALL@,$ac_INSTALL,;t t | 
 | 25490 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
 | 25491 |   rm -f $tmp/stdin | 
 | 25492 |   if test x"$ac_file" != x-; then | 
 | 25493 |     mv $tmp/out $ac_file | 
 | 25494 |   else | 
 | 25495 |     cat $tmp/out | 
 | 25496 |     rm -f $tmp/out | 
 | 25497 |   fi | 
 | 25498 |  | 
 | 25499 | done | 
 | 25500 | _ACEOF | 
 | 25501 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25502 |  | 
 | 25503 | # | 
 | 25504 | # CONFIG_HEADER section. | 
 | 25505 | # | 
 | 25506 |  | 
 | 25507 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
 | 25508 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
 | 25509 | # | 
 | 25510 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25511 | ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)' | 
 | 25512 | ac_dB='[	 ].*$,\1#\2' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25513 | ac_dC=' ' | 
 | 25514 | ac_dD=',;t' | 
 | 25515 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25516 | ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25517 | ac_uB='$,\1#\2define\3' | 
 | 25518 | ac_uC=' ' | 
 | 25519 | ac_uD=',;t' | 
 | 25520 |  | 
 | 25521 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
 | 25522 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 25523 |   case $ac_file in | 
 | 25524 |   - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25525 | 	cat >$tmp/stdin | 
 | 25526 | 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 25527 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25528 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25529 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25530 |   * )   ac_file_in=$ac_file.in ;; | 
 | 25531 |   esac | 
 | 25532 |  | 
 | 25533 |   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 25534 | echo "$as_me: creating $ac_file" >&6;} | 
 | 25535 |  | 
 | 25536 |   # First look for the input files in the build tree, otherwise in the | 
 | 25537 |   # src tree. | 
 | 25538 |   ac_file_inputs=`IFS=: | 
 | 25539 |     for f in $ac_file_in; do | 
 | 25540 |       case $f in | 
 | 25541 |       -) echo $tmp/stdin ;; | 
 | 25542 |       [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25543 | 	 # Absolute (can't be DOS-style, as IFS=:) | 
 | 25544 | 	 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] | 25545 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 25546 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25547 | 	 # Do quote $f, to prevent DOS paths from being IFS'd. | 
 | 25548 | 	 echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25549 |       *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25550 | 	 if test -f "$f"; then | 
 | 25551 | 	   # Build tree | 
 | 25552 | 	   echo "$f" | 
 | 25553 | 	 elif test -f "$srcdir/$f"; then | 
 | 25554 | 	   # Source tree | 
 | 25555 | 	   echo "$srcdir/$f" | 
 | 25556 | 	 else | 
 | 25557 | 	   # /dev/null tree | 
 | 25558 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25559 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 25560 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25561 | 	 fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25562 |       esac | 
 | 25563 |     done` || { (exit 1); exit 1; } | 
 | 25564 |   # Remove the trailing spaces. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25565 |   sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25566 |  | 
 | 25567 | _ACEOF | 
 | 25568 |  | 
 | 25569 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
 | 25570 | # `conftest.undefs', that substitutes the proper values into | 
 | 25571 | # config.h.in to produce config.h.  The first handles `#define' | 
 | 25572 | # templates, and the second `#undef' templates. | 
 | 25573 | # And first: Protect against being on the right side of a sed subst in | 
 | 25574 | # config.status.  Protect against being in an unquoted here document | 
 | 25575 | # in config.status. | 
 | 25576 | rm -f conftest.defines conftest.undefs | 
 | 25577 | # Using a here document instead of a string reduces the quoting nightmare. | 
 | 25578 | # Putting comments in sed scripts is not portable. | 
 | 25579 | # | 
 | 25580 | # `end' is used to avoid that the second main sed command (meant for | 
 | 25581 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
 | 25582 | # See the Autoconf documentation for `clear'. | 
 | 25583 | cat >confdef2sed.sed <<\_ACEOF | 
 | 25584 | s/[\\&,]/\\&/g | 
 | 25585 | s,[\\$`],\\&,g | 
 | 25586 | t clear | 
 | 25587 | : clear | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25588 | 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] | 25589 | t end | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25590 | 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] | 25591 | : end | 
 | 25592 | _ACEOF | 
 | 25593 | # If some macros were called several times there might be several times | 
 | 25594 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
 | 25595 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
 | 25596 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
 | 25597 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
 | 25598 | rm -f confdef2sed.sed | 
 | 25599 |  | 
 | 25600 | # This sed command replaces #undef with comments.  This is necessary, for | 
 | 25601 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
 | 25602 | # on some systems where configure will not decide to define it. | 
 | 25603 | cat >>conftest.undefs <<\_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25604 | s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25605 | _ACEOF | 
 | 25606 |  | 
 | 25607 | # Break up conftest.defines because some shells have a limit on the size | 
 | 25608 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 25609 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25610 | echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25611 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
 | 25612 | echo '  :' >>$CONFIG_STATUS | 
 | 25613 | rm -f conftest.tail | 
 | 25614 | while grep . conftest.defines >/dev/null | 
 | 25615 | do | 
 | 25616 |   # Write a limited-size here document to $tmp/defines.sed. | 
 | 25617 |   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
 | 25618 |   # Speed up: don't consider the non `#define' lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25619 |   echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25620 |   # Work around the forget-to-reset-the-flag bug. | 
 | 25621 |   echo 't clr' >>$CONFIG_STATUS | 
 | 25622 |   echo ': clr' >>$CONFIG_STATUS | 
 | 25623 |   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
 | 25624 |   echo 'CEOF | 
 | 25625 |   sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
 | 25626 |   rm -f $tmp/in | 
 | 25627 |   mv $tmp/out $tmp/in | 
 | 25628 | ' >>$CONFIG_STATUS | 
 | 25629 |   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
 | 25630 |   rm -f conftest.defines | 
 | 25631 |   mv conftest.tail conftest.defines | 
 | 25632 | done | 
 | 25633 | rm -f conftest.defines | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25634 | echo '  fi # grep' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25635 | echo >>$CONFIG_STATUS | 
 | 25636 |  | 
 | 25637 | # Break up conftest.undefs because some shells have a limit on the size | 
 | 25638 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 25639 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
 | 25640 | rm -f conftest.tail | 
 | 25641 | while grep . conftest.undefs >/dev/null | 
 | 25642 | do | 
 | 25643 |   # Write a limited-size here document to $tmp/undefs.sed. | 
 | 25644 |   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
 | 25645 |   # Speed up: don't consider the non `#undef' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25646 |   echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25647 |   # Work around the forget-to-reset-the-flag bug. | 
 | 25648 |   echo 't clr' >>$CONFIG_STATUS | 
 | 25649 |   echo ': clr' >>$CONFIG_STATUS | 
 | 25650 |   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
 | 25651 |   echo 'CEOF | 
 | 25652 |   sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
 | 25653 |   rm -f $tmp/in | 
 | 25654 |   mv $tmp/out $tmp/in | 
 | 25655 | ' >>$CONFIG_STATUS | 
 | 25656 |   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
 | 25657 |   rm -f conftest.undefs | 
 | 25658 |   mv conftest.tail conftest.undefs | 
 | 25659 | done | 
 | 25660 | rm -f conftest.undefs | 
 | 25661 |  | 
 | 25662 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25663 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 25664 |   # use $as_me), people would be surprised to read: | 
 | 25665 |   #    /* config.h.  Generated by config.status.  */ | 
 | 25666 |   if test x"$ac_file" = x-; then | 
 | 25667 |     echo "/* Generated by configure.  */" >$tmp/config.h | 
 | 25668 |   else | 
 | 25669 |     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
 | 25670 |   fi | 
 | 25671 |   cat $tmp/in >>$tmp/config.h | 
 | 25672 |   rm -f $tmp/in | 
 | 25673 |   if test x"$ac_file" != x-; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25674 |     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25675 |       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
 | 25676 | echo "$as_me: $ac_file is unchanged" >&6;} | 
 | 25677 |     else | 
 | 25678 |       ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 25679 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25680 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 25681 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 25682 | 	 X"$ac_file" : 'X\(/\)' \| \ | 
 | 25683 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25684 | echo X"$ac_file" | | 
 | 25685 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25686 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25687 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25688 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25689 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25690 |       { if $as_mkdir_p; then | 
 | 25691 |     mkdir -p "$ac_dir" | 
 | 25692 |   else | 
 | 25693 |     as_dir="$ac_dir" | 
 | 25694 |     as_dirs= | 
 | 25695 |     while test ! -d "$as_dir"; do | 
 | 25696 |       as_dirs="$as_dir $as_dirs" | 
 | 25697 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 25698 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25699 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 25700 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 25701 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 25702 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25703 | echo X"$as_dir" | | 
 | 25704 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25705 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25706 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25707 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25708 |   	  s/.*/./; q'` | 
 | 25709 |     done | 
 | 25710 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 25711 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 25712 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 25713 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25714 |  | 
 | 25715 |       rm -f $ac_file | 
 | 25716 |       mv $tmp/config.h $ac_file | 
 | 25717 |     fi | 
 | 25718 |   else | 
 | 25719 |     cat $tmp/config.h | 
 | 25720 |     rm -f $tmp/config.h | 
 | 25721 |   fi | 
 | 25722 | done | 
 | 25723 | _ACEOF | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25724 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25725 |  | 
 | 25726 | # | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25727 | # CONFIG_LINKS section. | 
 | 25728 | # | 
 | 25729 |  | 
 | 25730 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | 
 | 25731 |   ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
 | 25732 |   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 25733 |  | 
 | 25734 |   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 | 
 | 25735 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | 
 | 25736 |  | 
 | 25737 |   if test ! -r $srcdir/$ac_source; then | 
 | 25738 |     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 | 
 | 25739 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | 
 | 25740 |    { (exit 1); exit 1; }; } | 
 | 25741 |   fi | 
 | 25742 |   rm -f $ac_dest | 
 | 25743 |  | 
 | 25744 |   # Make relative symlinks. | 
 | 25745 |   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | 
 | 25746 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25747 | 	 X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
 | 25748 | 	 X"$ac_dest" : 'X\(//\)$' \| \ | 
 | 25749 | 	 X"$ac_dest" : 'X\(/\)' \| \ | 
 | 25750 | 	 .     : '\(.\)' 2>/dev/null || | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25751 | echo X"$ac_dest" | | 
 | 25752 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25753 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25754 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25755 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25756 |   	  s/.*/./; q'` | 
 | 25757 |   { if $as_mkdir_p; then | 
 | 25758 |     mkdir -p "$ac_dest_dir" | 
 | 25759 |   else | 
 | 25760 |     as_dir="$ac_dest_dir" | 
 | 25761 |     as_dirs= | 
 | 25762 |     while test ! -d "$as_dir"; do | 
 | 25763 |       as_dirs="$as_dir $as_dirs" | 
 | 25764 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 25765 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25766 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 25767 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 25768 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 25769 | 	 .     : '\(.\)' 2>/dev/null || | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25770 | echo X"$as_dir" | | 
 | 25771 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25772 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25773 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25774 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25775 |   	  s/.*/./; q'` | 
 | 25776 |     done | 
 | 25777 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 25778 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | 
 | 25779 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | 
 | 25780 |    { (exit 1); exit 1; }; }; } | 
 | 25781 |  | 
 | 25782 |   ac_builddir=. | 
 | 25783 |  | 
 | 25784 | if test "$ac_dest_dir" != .; then | 
 | 25785 |   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | 
 | 25786 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 25787 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 25788 | else | 
 | 25789 |   ac_dir_suffix= ac_top_builddir= | 
 | 25790 | fi | 
 | 25791 |  | 
 | 25792 | case $srcdir in | 
 | 25793 |   .)  # No --srcdir option.  We are building in place. | 
 | 25794 |     ac_srcdir=. | 
 | 25795 |     if test -z "$ac_top_builddir"; then | 
 | 25796 |        ac_top_srcdir=. | 
 | 25797 |     else | 
 | 25798 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 25799 |     fi ;; | 
 | 25800 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 25801 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 25802 |     ac_top_srcdir=$srcdir ;; | 
 | 25803 |   *) # Relative path. | 
 | 25804 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 25805 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 25806 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25807 |  | 
 | 25808 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 25809 | # the directories may not exist. | 
 | 25810 | case `pwd` in | 
 | 25811 | .) ac_abs_builddir="$ac_dest_dir";; | 
 | 25812 | *) | 
 | 25813 |   case "$ac_dest_dir" in | 
 | 25814 |   .) ac_abs_builddir=`pwd`;; | 
 | 25815 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | 
 | 25816 |   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | 
 | 25817 |   esac;; | 
 | 25818 | esac | 
 | 25819 | case $ac_abs_builddir in | 
 | 25820 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25821 | *) | 
 | 25822 |   case ${ac_top_builddir}. in | 
 | 25823 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 25824 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25825 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 25826 |   esac;; | 
 | 25827 | esac | 
 | 25828 | case $ac_abs_builddir in | 
 | 25829 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 25830 | *) | 
 | 25831 |   case $ac_srcdir in | 
 | 25832 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 25833 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 25834 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 25835 |   esac;; | 
 | 25836 | esac | 
 | 25837 | case $ac_abs_builddir in | 
 | 25838 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25839 | *) | 
 | 25840 |   case $ac_top_srcdir in | 
 | 25841 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 25842 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25843 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 25844 |   esac;; | 
 | 25845 | esac | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 25846 |  | 
 | 25847 |  | 
 | 25848 |   case $srcdir in | 
 | 25849 |   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | 
 | 25850 |       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | 
 | 25851 |   esac | 
 | 25852 |  | 
 | 25853 |   # Try a symlink, then a hard link, then a copy. | 
 | 25854 |   ln -s $ac_rel_source $ac_dest 2>/dev/null || | 
 | 25855 |     ln $srcdir/$ac_source $ac_dest 2>/dev/null || | 
 | 25856 |     cp -p $srcdir/$ac_source $ac_dest || | 
 | 25857 |     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | 
 | 25858 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | 
 | 25859 |    { (exit 1); exit 1; }; } | 
 | 25860 | done | 
 | 25861 | _ACEOF | 
 | 25862 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25863 |  | 
 | 25864 | # | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25865 | # CONFIG_COMMANDS section. | 
 | 25866 | # | 
 | 25867 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | 
 | 25868 |   ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
 | 25869 |   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 25870 |   ac_dir=`(dirname "$ac_dest") 2>/dev/null || | 
 | 25871 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25872 | 	 X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
 | 25873 | 	 X"$ac_dest" : 'X\(//\)$' \| \ | 
 | 25874 | 	 X"$ac_dest" : 'X\(/\)' \| \ | 
 | 25875 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25876 | echo X"$ac_dest" | | 
 | 25877 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25878 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25879 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25880 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25881 |   	  s/.*/./; q'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25882 |   { if $as_mkdir_p; then | 
 | 25883 |     mkdir -p "$ac_dir" | 
 | 25884 |   else | 
 | 25885 |     as_dir="$ac_dir" | 
 | 25886 |     as_dirs= | 
 | 25887 |     while test ! -d "$as_dir"; do | 
 | 25888 |       as_dirs="$as_dir $as_dirs" | 
 | 25889 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 25890 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 25891 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 25892 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 25893 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 25894 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 25895 | echo X"$as_dir" | | 
 | 25896 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 25897 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 25898 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 25899 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 25900 |   	  s/.*/./; q'` | 
 | 25901 |     done | 
 | 25902 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 25903 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 25904 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 25905 |    { (exit 1); exit 1; }; }; } | 
 | 25906 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25907 |   ac_builddir=. | 
 | 25908 |  | 
 | 25909 | if test "$ac_dir" != .; then | 
 | 25910 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 25911 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 25912 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 25913 | else | 
 | 25914 |   ac_dir_suffix= ac_top_builddir= | 
 | 25915 | fi | 
 | 25916 |  | 
 | 25917 | case $srcdir in | 
 | 25918 |   .)  # No --srcdir option.  We are building in place. | 
 | 25919 |     ac_srcdir=. | 
 | 25920 |     if test -z "$ac_top_builddir"; then | 
 | 25921 |        ac_top_srcdir=. | 
 | 25922 |     else | 
 | 25923 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 25924 |     fi ;; | 
 | 25925 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 25926 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 25927 |     ac_top_srcdir=$srcdir ;; | 
 | 25928 |   *) # Relative path. | 
 | 25929 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 25930 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 25931 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25932 |  | 
 | 25933 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 25934 | # the directories may not exist. | 
 | 25935 | case `pwd` in | 
 | 25936 | .) ac_abs_builddir="$ac_dir";; | 
 | 25937 | *) | 
 | 25938 |   case "$ac_dir" in | 
 | 25939 |   .) ac_abs_builddir=`pwd`;; | 
 | 25940 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 25941 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 25942 |   esac;; | 
 | 25943 | esac | 
 | 25944 | case $ac_abs_builddir in | 
 | 25945 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25946 | *) | 
 | 25947 |   case ${ac_top_builddir}. in | 
 | 25948 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 25949 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 25950 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 25951 |   esac;; | 
 | 25952 | esac | 
 | 25953 | case $ac_abs_builddir in | 
 | 25954 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 25955 | *) | 
 | 25956 |   case $ac_srcdir in | 
 | 25957 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 25958 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 25959 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 25960 |   esac;; | 
 | 25961 | esac | 
 | 25962 | case $ac_abs_builddir in | 
 | 25963 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25964 | *) | 
 | 25965 |   case $ac_top_srcdir in | 
 | 25966 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 25967 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 25968 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 25969 |   esac;; | 
 | 25970 | esac | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 25971 |  | 
 | 25972 |  | 
 | 25973 |   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 
 | 25974 | echo "$as_me: executing $ac_dest commands" >&6;} | 
 | 25975 |   case $ac_dest in | 
 | 25976 |     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; | 
 | 25977 |     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] | 25978 |     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] | 25979 |     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] | 25980 |     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] | 25981 |     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; | 
 | 25982 |     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] | 25983 |     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; | 
 | 25984 |     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] | 25985 |     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
| Misha Brukman | 591edc6 | 2004-10-14 18:59:42 +0000 | [diff] [blame] | 25986 |     tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25987 |     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] | 25988 |     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] | 25989 |   esac | 
 | 25990 | done | 
 | 25991 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25992 |  | 
 | 25993 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 25994 |  | 
 | 25995 | { (exit 0); exit 0; } | 
 | 25996 | _ACEOF | 
 | 25997 | chmod +x $CONFIG_STATUS | 
 | 25998 | ac_clean_files=$ac_clean_files_save | 
 | 25999 |  | 
 | 26000 |  | 
 | 26001 | # configure is writing to config.log, and then calls config.status. | 
 | 26002 | # config.status does its own redirection, appending to config.log. | 
 | 26003 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 26004 | # by configure, so config.status won't be able to write to it; its | 
 | 26005 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 26006 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 26007 | # appended to by config.status.  When coming back to configure, we | 
 | 26008 | # need to make the FD available again. | 
 | 26009 | if test "$no_create" != yes; then | 
 | 26010 |   ac_cs_success=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26011 |   ac_config_status_args= | 
 | 26012 |   test "$silent" = yes && | 
 | 26013 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26014 |   exec 5>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26015 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26016 |   exec 5>>config.log | 
 | 26017 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 26018 |   # would make configure fail if this is the last instruction. | 
 | 26019 |   $ac_cs_success || { (exit 1); exit 1; } | 
 | 26020 | fi | 
 | 26021 |  | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 26022 | # | 
 | 26023 | # CONFIG_SUBDIRS section. | 
 | 26024 | # | 
 | 26025 | if test "$no_recursion" != yes; then | 
 | 26026 |  | 
 | 26027 |   # Remove --cache-file and --srcdir arguments so they do not pile up. | 
 | 26028 |   ac_sub_configure_args= | 
 | 26029 |   ac_prev= | 
 | 26030 |   for ac_arg in $ac_configure_args; do | 
 | 26031 |     if test -n "$ac_prev"; then | 
 | 26032 |       ac_prev= | 
 | 26033 |       continue | 
 | 26034 |     fi | 
 | 26035 |     case $ac_arg in | 
 | 26036 |     -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 26037 |     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 26038 |       ac_prev=cache_file ;; | 
 | 26039 |     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 26040 |     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
 | 26041 |     | --c=*) | 
 | 26042 |       ;; | 
 | 26043 |     --config-cache | -C) | 
 | 26044 |       ;; | 
 | 26045 |     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 26046 |       ac_prev=srcdir ;; | 
 | 26047 |     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 26048 |       ;; | 
 | 26049 |     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 26050 |       ac_prev=prefix ;; | 
 | 26051 |     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 26052 |       ;; | 
 | 26053 |     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
 | 26054 |     esac | 
 | 26055 |   done | 
 | 26056 |  | 
 | 26057 |   # Always prepend --prefix to ensure using the same prefix | 
 | 26058 |   # in subdir configurations. | 
 | 26059 |   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | 
 | 26060 |  | 
 | 26061 |   ac_popdir=`pwd` | 
 | 26062 |   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
 | 26063 |  | 
 | 26064 |     # Do not complain, so a configure script can configure whichever | 
 | 26065 |     # parts of a large source tree are present. | 
 | 26066 |     test -d $srcdir/$ac_dir || continue | 
 | 26067 |  | 
 | 26068 |     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | 
 | 26069 | echo "$as_me: configuring in $ac_dir" >&6;} | 
 | 26070 |     { if $as_mkdir_p; then | 
 | 26071 |     mkdir -p "$ac_dir" | 
 | 26072 |   else | 
 | 26073 |     as_dir="$ac_dir" | 
 | 26074 |     as_dirs= | 
 | 26075 |     while test ! -d "$as_dir"; do | 
 | 26076 |       as_dirs="$as_dir $as_dirs" | 
 | 26077 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 26078 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26079 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 26080 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 26081 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 26082 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 26083 | echo X"$as_dir" | | 
 | 26084 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 26085 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 26086 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 26087 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 26088 |   	  s/.*/./; q'` | 
 | 26089 |     done | 
 | 26090 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 26091 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 26092 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 26093 |    { (exit 1); exit 1; }; }; } | 
 | 26094 |  | 
 | 26095 |     ac_builddir=. | 
 | 26096 |  | 
 | 26097 | if test "$ac_dir" != .; then | 
 | 26098 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 26099 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 26100 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 26101 | else | 
 | 26102 |   ac_dir_suffix= ac_top_builddir= | 
 | 26103 | fi | 
 | 26104 |  | 
 | 26105 | case $srcdir in | 
 | 26106 |   .)  # No --srcdir option.  We are building in place. | 
 | 26107 |     ac_srcdir=. | 
 | 26108 |     if test -z "$ac_top_builddir"; then | 
 | 26109 |        ac_top_srcdir=. | 
 | 26110 |     else | 
 | 26111 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 26112 |     fi ;; | 
 | 26113 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 26114 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 26115 |     ac_top_srcdir=$srcdir ;; | 
 | 26116 |   *) # Relative path. | 
 | 26117 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 26118 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 26119 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26120 |  | 
 | 26121 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 26122 | # the directories may not exist. | 
 | 26123 | case `pwd` in | 
 | 26124 | .) ac_abs_builddir="$ac_dir";; | 
 | 26125 | *) | 
 | 26126 |   case "$ac_dir" in | 
 | 26127 |   .) ac_abs_builddir=`pwd`;; | 
 | 26128 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 26129 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 26130 |   esac;; | 
 | 26131 | esac | 
 | 26132 | case $ac_abs_builddir in | 
 | 26133 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 26134 | *) | 
 | 26135 |   case ${ac_top_builddir}. in | 
 | 26136 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 26137 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 26138 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 26139 |   esac;; | 
 | 26140 | esac | 
 | 26141 | case $ac_abs_builddir in | 
 | 26142 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 26143 | *) | 
 | 26144 |   case $ac_srcdir in | 
 | 26145 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 26146 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 26147 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 26148 |   esac;; | 
 | 26149 | esac | 
 | 26150 | case $ac_abs_builddir in | 
 | 26151 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 26152 | *) | 
 | 26153 |   case $ac_top_srcdir in | 
 | 26154 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 26155 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 26156 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 26157 |   esac;; | 
 | 26158 | esac | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 26159 |  | 
 | 26160 |  | 
 | 26161 |     cd $ac_dir | 
 | 26162 |  | 
 | 26163 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 26164 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 26165 |       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | 
 | 26166 |     elif test -f $ac_srcdir/configure; then | 
 | 26167 |       ac_sub_configure="$SHELL '$ac_srcdir/configure'" | 
 | 26168 |     elif test -f $ac_srcdir/configure.in; then | 
 | 26169 |       ac_sub_configure=$ac_configure | 
 | 26170 |     else | 
 | 26171 |       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
 | 26172 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
 | 26173 |       ac_sub_configure= | 
 | 26174 |     fi | 
 | 26175 |  | 
 | 26176 |     # The recursion is here. | 
 | 26177 |     if test -n "$ac_sub_configure"; then | 
 | 26178 |       # Make the cache file name correct relative to the subdirectory. | 
 | 26179 |       case $cache_file in | 
 | 26180 |       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
 | 26181 |       *) # Relative path. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26182 | 	ac_sub_cache_file=$ac_top_builddir$cache_file ;; | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 26183 |       esac | 
 | 26184 |  | 
 | 26185 |       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
 | 26186 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
 | 26187 |       # The eval makes quoting arguments work. | 
 | 26188 |       eval $ac_sub_configure $ac_sub_configure_args \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26189 | 	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | 
 | 26190 | 	{ { 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] | 26191 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
 | 26192 |    { (exit 1); exit 1; }; } | 
 | 26193 |     fi | 
 | 26194 |  | 
 | 26195 |     cd $ac_popdir | 
 | 26196 |   done | 
 | 26197 | fi | 
 | 26198 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 26199 |  | 
| Reid Spencer | 0d98aed | 2004-10-04 22:05:53 +0000 | [diff] [blame] | 26200 | if test $bzip2_found -ne 1 ; then | 
 | 26201 |   if test $zlib_found -ne 1 ; then | 
 | 26202 |     { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5 | 
 | 26203 | echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;} | 
 | 26204 |     { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5 | 
 | 26205 | echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;} | 
 | 26206 |     { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5 | 
 | 26207 | echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;} | 
 | 26208 |   fi | 
 | 26209 | fi | 
 | 26210 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 26211 | if test $llvmgccwarn = yes | 
 | 26212 | then | 
 | 26213 | 	{ echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 | 
 | 26214 | echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} | 
 | 26215 | 	{ echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 | 
 | 26216 | echo "$as_me: WARNING: ***** appear to be working." >&2;} | 
 | 26217 | 	{ echo "$as_me:$LINENO: WARNING: ***** " >&5 | 
 | 26218 | echo "$as_me: WARNING: ***** " >&2;} | 
 | 26219 | 	{ echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 | 
 | 26220 | echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} | 
 | 26221 | 	{ echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 | 
 | 26222 | echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} | 
 | 26223 | 	{ echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 | 
 | 26224 | echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} | 
 | 26225 | fi | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 26226 |  |