| 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. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 10 | # | 
 | 11 | # $LLVM_COPYRIGHT | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12 | ## --------------------- ## | 
 | 13 | ## M4sh Initialization.  ## | 
 | 14 | ## --------------------- ## | 
 | 15 |  | 
 | 16 | # Be Bourne compatible | 
 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 18 |   emulate sh | 
 | 19 |   NULLCMD=: | 
 | 20 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 21 |   # is contrary to our usage.  Disable this feature. | 
 | 22 |   alias -g '${1+"$@"}'='"$@"' | 
 | 23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 24 |   set -o posix | 
 | 25 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 |  | 
 | 28 | # Support unset when possible. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 |   as_unset=unset | 
 | 31 | else | 
 | 32 |   as_unset=false | 
 | 33 | fi | 
 | 34 |  | 
 | 35 |  | 
 | 36 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 37 | $as_unset ENV MAIL MAILPATH | 
 | 38 | PS1='$ ' | 
 | 39 | PS2='> ' | 
 | 40 | PS4='+ ' | 
 | 41 |  | 
 | 42 | # NLS nuisances. | 
 | 43 | for as_var in \ | 
 | 44 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 45 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 46 |   LC_TELEPHONE LC_TIME | 
 | 47 | do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 48 |   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 49 |     eval $as_var=C; export $as_var | 
 | 50 |   else | 
 | 51 |     $as_unset $as_var | 
 | 52 |   fi | 
 | 53 | done | 
 | 54 |  | 
 | 55 | # Required to use basename. | 
 | 56 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 57 |   as_expr=expr | 
 | 58 | else | 
 | 59 |   as_expr=false | 
 | 60 | fi | 
 | 61 |  | 
 | 62 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 63 |   as_basename=basename | 
 | 64 | else | 
 | 65 |   as_basename=false | 
 | 66 | fi | 
 | 67 |  | 
 | 68 |  | 
 | 69 | # Name of the executable. | 
 | 70 | as_me=`$as_basename "$0" || | 
 | 71 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 72 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 73 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 74 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 75 | echo X/"$0" | | 
 | 76 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 77 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 78 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 79 |   	  s/.*/./; q'` | 
 | 80 |  | 
 | 81 |  | 
 | 82 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 83 | # Avoid depending upon Character Ranges. | 
 | 84 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 85 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 86 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 87 | as_cr_digits='0123456789' | 
 | 88 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 89 |  | 
 | 90 | # The user is always right. | 
 | 91 | if test "${PATH_SEPARATOR+set}" != set; then | 
 | 92 |   echo "#! /bin/sh" >conf$$.sh | 
 | 93 |   echo  "exit 0"   >>conf$$.sh | 
 | 94 |   chmod +x conf$$.sh | 
 | 95 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
 | 96 |     PATH_SEPARATOR=';' | 
 | 97 |   else | 
 | 98 |     PATH_SEPARATOR=: | 
 | 99 |   fi | 
 | 100 |   rm -f conf$$.sh | 
 | 101 | fi | 
 | 102 |  | 
 | 103 |  | 
 | 104 |   as_lineno_1=$LINENO | 
 | 105 |   as_lineno_2=$LINENO | 
 | 106 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 107 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 108 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 109 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 110 |   # relative or not. | 
 | 111 |   case $0 in | 
 | 112 |     *[\\/]* ) as_myself=$0 ;; | 
 | 113 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 114 | for as_dir in $PATH | 
 | 115 | do | 
 | 116 |   IFS=$as_save_IFS | 
 | 117 |   test -z "$as_dir" && as_dir=. | 
 | 118 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 119 | done | 
 | 120 |  | 
 | 121 |        ;; | 
 | 122 |   esac | 
 | 123 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 124 |   # in which case we are not to be found in the path. | 
 | 125 |   if test "x$as_myself" = x; then | 
 | 126 |     as_myself=$0 | 
 | 127 |   fi | 
 | 128 |   if test ! -f "$as_myself"; then | 
 | 129 |     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | 
 | 130 |    { (exit 1); exit 1; }; } | 
 | 131 |   fi | 
 | 132 |   case $CONFIG_SHELL in | 
 | 133 |   '') | 
 | 134 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 135 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 136 | do | 
 | 137 |   IFS=$as_save_IFS | 
 | 138 |   test -z "$as_dir" && as_dir=. | 
 | 139 |   for as_base in sh bash ksh sh5; do | 
 | 140 | 	 case $as_dir in | 
 | 141 | 	 /*) | 
 | 142 | 	   if ("$as_dir/$as_base" -c ' | 
 | 143 |   as_lineno_1=$LINENO | 
 | 144 |   as_lineno_2=$LINENO | 
 | 145 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 146 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 147 |   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
 | 148 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 149 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
 | 150 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 151 | 	     export CONFIG_SHELL | 
 | 152 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 153 | 	   fi;; | 
 | 154 | 	 esac | 
 | 155 |        done | 
 | 156 | done | 
 | 157 | ;; | 
 | 158 |   esac | 
 | 159 |  | 
 | 160 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 161 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 162 |   # line-number line before each line; the second 'sed' does the real | 
 | 163 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 164 |   # with the numbered line, and appends trailing '-' during | 
 | 165 |   # substitution so that $LINENO is not a special case at line end. | 
 | 166 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 167 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 168 |   sed '=' <$as_myself | | 
 | 169 |     sed ' | 
 | 170 |       N | 
 | 171 |       s,$,-, | 
 | 172 |       : loop | 
 | 173 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 174 |       t loop | 
 | 175 |       s,-$,, | 
 | 176 |       s,^['$as_cr_digits']*\n,, | 
 | 177 |     ' >$as_me.lineno && | 
 | 178 |   chmod +x $as_me.lineno || | 
 | 179 |     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
 | 180 |    { (exit 1); exit 1; }; } | 
 | 181 |  | 
 | 182 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 183 |   # (the dirname of $[0] is not the place where we might find the | 
 | 184 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 185 |   . ./$as_me.lineno | 
 | 186 |   # Exit status is that of the last command. | 
 | 187 |   exit | 
 | 188 | } | 
 | 189 |  | 
 | 190 |  | 
 | 191 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 192 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 193 | ' ECHO_T='	' ;; | 
 | 194 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 195 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 196 | esac | 
 | 197 |  | 
 | 198 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 199 |   as_expr=expr | 
 | 200 | else | 
 | 201 |   as_expr=false | 
 | 202 | fi | 
 | 203 |  | 
 | 204 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 205 | echo >conf$$.file | 
 | 206 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 207 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 208 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 209 |   if test -f conf$$.exe; then | 
 | 210 |     # Don't use ln at all; we don't have any links | 
 | 211 |     as_ln_s='cp -p' | 
 | 212 |   else | 
 | 213 |     as_ln_s='ln -s' | 
 | 214 |   fi | 
 | 215 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 216 |   as_ln_s=ln | 
 | 217 | else | 
 | 218 |   as_ln_s='cp -p' | 
 | 219 | fi | 
 | 220 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 221 |  | 
 | 222 | if mkdir -p . 2>/dev/null; then | 
 | 223 |   as_mkdir_p=: | 
 | 224 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 225 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 226 |   as_mkdir_p=false | 
 | 227 | fi | 
 | 228 |  | 
 | 229 | as_executable_p="test -f" | 
 | 230 |  | 
 | 231 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 232 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 233 |  | 
 | 234 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 235 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 236 |  | 
 | 237 |  | 
 | 238 | # IFS | 
 | 239 | # We need space, tab and new line, in precisely that order. | 
 | 240 | as_nl=' | 
 | 241 | ' | 
 | 242 | IFS=" 	$as_nl" | 
 | 243 |  | 
 | 244 | # CDPATH. | 
 | 245 | $as_unset CDPATH | 
 | 246 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 247 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 248 |  | 
 | 249 | # Check that we are running under the correct shell. | 
 | 250 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 251 |  | 
 | 252 | case X$ECHO in | 
 | 253 | X*--fallback-echo) | 
 | 254 |   # Remove one level of quotation (which was required for Make). | 
 | 255 |   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | 
 | 256 |   ;; | 
 | 257 | esac | 
 | 258 |  | 
 | 259 | echo=${ECHO-echo} | 
 | 260 | if test "X$1" = X--no-reexec; then | 
 | 261 |   # Discard the --no-reexec flag, and continue. | 
 | 262 |   shift | 
 | 263 | elif test "X$1" = X--fallback-echo; then | 
 | 264 |   # Avoid inline document here, it may be left over | 
 | 265 |   : | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 266 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 267 |   # Yippee, $echo works! | 
 | 268 |   : | 
 | 269 | else | 
 | 270 |   # Restart under the correct shell. | 
 | 271 |   exec $SHELL "$0" --no-reexec ${1+"$@"} | 
 | 272 | fi | 
 | 273 |  | 
 | 274 | if test "X$1" = X--fallback-echo; then | 
 | 275 |   # used as fallback echo | 
 | 276 |   shift | 
 | 277 |   cat <<EOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 278 | $* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 279 | EOF | 
 | 280 |   exit 0 | 
 | 281 | fi | 
 | 282 |  | 
 | 283 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 284 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 285 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 286 |  | 
 | 287 | if test -z "$ECHO"; then | 
 | 288 | if test "X${echo_test_string+set}" != Xset; then | 
 | 289 | # find a string as large as possible, as long as the shell can cope with it | 
 | 290 |   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | 
 | 291 |     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 
 | 292 |     if (echo_test_string="`eval $cmd`") 2>/dev/null && | 
 | 293 |        echo_test_string="`eval $cmd`" && | 
 | 294 |        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 
 | 295 |     then | 
 | 296 |       break | 
 | 297 |     fi | 
 | 298 |   done | 
 | 299 | fi | 
 | 300 |  | 
 | 301 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 302 |    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 303 |    test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 304 |   : | 
 | 305 | else | 
 | 306 |   # The Solaris, AIX, and Digital Unix default echo programs unquote | 
 | 307 |   # backslashes.  This makes it impossible to quote backslashes using | 
 | 308 |   #   echo "$something" | sed 's/\\/\\\\/g' | 
 | 309 |   # | 
 | 310 |   # So, first we look for a working echo in the user's PATH. | 
 | 311 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 312 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 313 |   for dir in $PATH /usr/ucb; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 314 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 315 |     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | 
 | 316 |        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 317 |        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | 
 | 318 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 319 |       echo="$dir/echo" | 
 | 320 |       break | 
 | 321 |     fi | 
 | 322 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 323 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 324 |  | 
 | 325 |   if test "X$echo" = Xecho; then | 
 | 326 |     # We didn't find a better echo, so look for alternatives. | 
 | 327 |     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | 
 | 328 |        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | 
 | 329 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 330 |       # This shell has a builtin print -r that does the trick. | 
 | 331 |       echo='print -r' | 
 | 332 |     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | 
 | 333 | 	 test "X$CONFIG_SHELL" != X/bin/ksh; then | 
 | 334 |       # If we have ksh, try running configure again with it. | 
 | 335 |       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 336 |       export ORIGINAL_CONFIG_SHELL | 
 | 337 |       CONFIG_SHELL=/bin/ksh | 
 | 338 |       export CONFIG_SHELL | 
 | 339 |       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | 
 | 340 |     else | 
 | 341 |       # Try using printf. | 
 | 342 |       echo='printf %s\n' | 
 | 343 |       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 344 | 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 345 | 	 test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 346 | 	# Cool, printf works | 
 | 347 | 	: | 
 | 348 |       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 349 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 350 | 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 351 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 352 | 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | 
 | 353 | 	export CONFIG_SHELL | 
 | 354 | 	SHELL="$CONFIG_SHELL" | 
 | 355 | 	export SHELL | 
 | 356 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 357 |       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 358 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 359 | 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 360 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 361 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 362 |       else | 
 | 363 | 	# maybe with a smaller string... | 
 | 364 | 	prev=: | 
 | 365 |  | 
 | 366 | 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | 
 | 367 | 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 
 | 368 | 	  then | 
 | 369 | 	    break | 
 | 370 | 	  fi | 
 | 371 | 	  prev="$cmd" | 
 | 372 | 	done | 
 | 373 |  | 
 | 374 | 	if test "$prev" != 'sed 50q "$0"'; then | 
 | 375 | 	  echo_test_string=`eval $prev` | 
 | 376 | 	  export echo_test_string | 
 | 377 | 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | 
 | 378 | 	else | 
 | 379 | 	  # Oops.  We lost completely, so just stick with echo. | 
 | 380 | 	  echo=echo | 
 | 381 | 	fi | 
 | 382 |       fi | 
 | 383 |     fi | 
 | 384 |   fi | 
 | 385 | fi | 
 | 386 | fi | 
 | 387 |  | 
 | 388 | # Copy echo and quote the copy suitably for passing to libtool from | 
 | 389 | # the Makefile, instead of quoting the original, which is used later. | 
 | 390 | ECHO=$echo | 
 | 391 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | 
 | 392 |    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | 
 | 393 | fi | 
 | 394 |  | 
 | 395 |  | 
 | 396 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 397 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 398 | tagnames=${tagnames+${tagnames},}CXX | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 399 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 400 | tagnames=${tagnames+${tagnames},}F77 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 401 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 402 | # Name of the host. | 
 | 403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
 | 404 | # so uname gets run too. | 
 | 405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 406 |  | 
 | 407 | exec 6>&1 | 
 | 408 |  | 
 | 409 | # | 
 | 410 | # Initializations. | 
 | 411 | # | 
 | 412 | ac_default_prefix=/usr/local | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 413 | ac_config_libobj_dir=. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 414 | cross_compiling=no | 
 | 415 | subdirs= | 
 | 416 | MFLAGS= | 
 | 417 | MAKEFLAGS= | 
 | 418 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 419 |  | 
 | 420 | # Maximum number of lines to put in a shell here document. | 
 | 421 | # This variable seems obsolete.  It should probably be removed, and | 
 | 422 | # only ac_max_sed_lines should be used. | 
 | 423 | : ${ac_max_here_lines=38} | 
 | 424 |  | 
 | 425 | # Identity of this package. | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 426 | PACKAGE_NAME='llvm' | 
| Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 427 | PACKAGE_TARNAME='-llvm-' | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 428 | PACKAGE_VERSION='1.4' | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 429 | PACKAGE_STRING='llvm 1.4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' | 
 | 431 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 432 | ac_unique_file="lib/VMCore/Module.cpp" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 433 | ac_subdirs_all="$ac_subdirs_all projects/sample" | 
 | 434 | ac_subdirs_all="$ac_subdirs_all projects/Stacker" | 
 | 435 | ac_subdirs_all="$ac_subdirs_all projects/llvm-test" | 
 | 436 | ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt" | 
 | 437 | ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc" | 
| Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 438 | ac_subdirs_all="$ac_subdirs_all projects/Java" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 439 | ac_subdirs_all="$ac_subdirs_all projects/llvm-tv" | 
 | 440 | ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw" | 
| John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 441 | ac_subdirs_all="$ac_subdirs_all projects/poolalloc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 442 | # Factoring default headers for most tests. | 
 | 443 | ac_includes_default="\ | 
 | 444 | #include <stdio.h> | 
 | 445 | #if HAVE_SYS_TYPES_H | 
 | 446 | # include <sys/types.h> | 
 | 447 | #endif | 
 | 448 | #if HAVE_SYS_STAT_H | 
 | 449 | # include <sys/stat.h> | 
 | 450 | #endif | 
 | 451 | #if STDC_HEADERS | 
 | 452 | # include <stdlib.h> | 
 | 453 | # include <stddef.h> | 
 | 454 | #else | 
 | 455 | # if HAVE_STDLIB_H | 
 | 456 | #  include <stdlib.h> | 
 | 457 | # endif | 
 | 458 | #endif | 
 | 459 | #if HAVE_STRING_H | 
 | 460 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
 | 461 | #  include <memory.h> | 
 | 462 | # endif | 
 | 463 | # include <string.h> | 
 | 464 | #endif | 
 | 465 | #if HAVE_STRINGS_H | 
 | 466 | # include <strings.h> | 
 | 467 | #endif | 
 | 468 | #if HAVE_INTTYPES_H | 
 | 469 | # include <inttypes.h> | 
 | 470 | #else | 
 | 471 | # if HAVE_STDINT_H | 
 | 472 | #  include <stdint.h> | 
 | 473 | # endif | 
 | 474 | #endif | 
 | 475 | #if HAVE_UNISTD_H | 
 | 476 | # include <unistd.h> | 
 | 477 | #endif" | 
 | 478 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 479 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP LLVMGCC LLVMGXX MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 480 | ac_subst_files='' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 481 |  | 
 | 482 | # Initialize some variables set by options. | 
 | 483 | ac_init_help= | 
 | 484 | ac_init_version=false | 
 | 485 | # The variables have the same names as the options, with | 
 | 486 | # dashes changed to underlines. | 
 | 487 | cache_file=/dev/null | 
 | 488 | exec_prefix=NONE | 
 | 489 | no_create= | 
 | 490 | no_recursion= | 
 | 491 | prefix=NONE | 
 | 492 | program_prefix=NONE | 
 | 493 | program_suffix=NONE | 
 | 494 | program_transform_name=s,x,x, | 
 | 495 | silent= | 
 | 496 | site= | 
 | 497 | srcdir= | 
 | 498 | verbose= | 
 | 499 | x_includes=NONE | 
 | 500 | x_libraries=NONE | 
 | 501 |  | 
 | 502 | # Installation directory options. | 
 | 503 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 504 | # and all the variables that are supposed to be based on exec_prefix | 
 | 505 | # by default will actually change. | 
 | 506 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
 | 507 | bindir='${exec_prefix}/bin' | 
 | 508 | sbindir='${exec_prefix}/sbin' | 
 | 509 | libexecdir='${exec_prefix}/libexec' | 
 | 510 | datadir='${prefix}/share' | 
 | 511 | sysconfdir='${prefix}/etc' | 
 | 512 | sharedstatedir='${prefix}/com' | 
 | 513 | localstatedir='${prefix}/var' | 
 | 514 | libdir='${exec_prefix}/lib' | 
 | 515 | includedir='${prefix}/include' | 
 | 516 | oldincludedir='/usr/include' | 
 | 517 | infodir='${prefix}/info' | 
 | 518 | mandir='${prefix}/man' | 
 | 519 |  | 
 | 520 | ac_prev= | 
 | 521 | for ac_option | 
 | 522 | do | 
 | 523 |   # If the previous option needs an argument, assign it. | 
 | 524 |   if test -n "$ac_prev"; then | 
 | 525 |     eval "$ac_prev=\$ac_option" | 
 | 526 |     ac_prev= | 
 | 527 |     continue | 
 | 528 |   fi | 
 | 529 |  | 
 | 530 |   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
 | 531 |  | 
 | 532 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 533 |  | 
 | 534 |   case $ac_option in | 
 | 535 |  | 
 | 536 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 537 |     ac_prev=bindir ;; | 
 | 538 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 539 |     bindir=$ac_optarg ;; | 
 | 540 |  | 
 | 541 |   -build | --build | --buil | --bui | --bu) | 
 | 542 |     ac_prev=build_alias ;; | 
 | 543 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
 | 544 |     build_alias=$ac_optarg ;; | 
 | 545 |  | 
 | 546 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 547 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 548 |     ac_prev=cache_file ;; | 
 | 549 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 550 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 551 |     cache_file=$ac_optarg ;; | 
 | 552 |  | 
 | 553 |   --config-cache | -C) | 
 | 554 |     cache_file=config.cache ;; | 
 | 555 |  | 
 | 556 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 557 |     ac_prev=datadir ;; | 
 | 558 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 559 |   | --da=*) | 
 | 560 |     datadir=$ac_optarg ;; | 
 | 561 |  | 
 | 562 |   -disable-* | --disable-*) | 
 | 563 |     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
 | 564 |     # Reject names that are not valid shell variable names. | 
 | 565 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 566 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 567 |    { (exit 1); exit 1; }; } | 
 | 568 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 569 |     eval "enable_$ac_feature=no" ;; | 
 | 570 |  | 
 | 571 |   -enable-* | --enable-*) | 
 | 572 |     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
 | 573 |     # Reject names that are not valid shell variable names. | 
 | 574 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 575 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 576 |    { (exit 1); exit 1; }; } | 
 | 577 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 578 |     case $ac_option in | 
 | 579 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 580 |       *) ac_optarg=yes ;; | 
 | 581 |     esac | 
 | 582 |     eval "enable_$ac_feature='$ac_optarg'" ;; | 
 | 583 |  | 
 | 584 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 585 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 586 |   | --exec | --exe | --ex) | 
 | 587 |     ac_prev=exec_prefix ;; | 
 | 588 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 589 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 590 |   | --exec=* | --exe=* | --ex=*) | 
 | 591 |     exec_prefix=$ac_optarg ;; | 
 | 592 |  | 
 | 593 |   -gas | --gas | --ga | --g) | 
 | 594 |     # Obsolete; use --with-gas. | 
 | 595 |     with_gas=yes ;; | 
 | 596 |  | 
 | 597 |   -help | --help | --hel | --he | -h) | 
 | 598 |     ac_init_help=long ;; | 
 | 599 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 600 |     ac_init_help=recursive ;; | 
 | 601 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 602 |     ac_init_help=short ;; | 
 | 603 |  | 
 | 604 |   -host | --host | --hos | --ho) | 
 | 605 |     ac_prev=host_alias ;; | 
 | 606 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 607 |     host_alias=$ac_optarg ;; | 
 | 608 |  | 
 | 609 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 610 |   | --includ | --inclu | --incl | --inc) | 
 | 611 |     ac_prev=includedir ;; | 
 | 612 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 613 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 614 |     includedir=$ac_optarg ;; | 
 | 615 |  | 
 | 616 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 617 |     ac_prev=infodir ;; | 
 | 618 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 619 |     infodir=$ac_optarg ;; | 
 | 620 |  | 
 | 621 |   -libdir | --libdir | --libdi | --libd) | 
 | 622 |     ac_prev=libdir ;; | 
 | 623 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 624 |     libdir=$ac_optarg ;; | 
 | 625 |  | 
 | 626 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 627 |   | --libexe | --libex | --libe) | 
 | 628 |     ac_prev=libexecdir ;; | 
 | 629 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 630 |   | --libexe=* | --libex=* | --libe=*) | 
 | 631 |     libexecdir=$ac_optarg ;; | 
 | 632 |  | 
 | 633 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 634 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 635 |   | --locals | --local | --loca | --loc | --lo) | 
 | 636 |     ac_prev=localstatedir ;; | 
 | 637 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 638 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 639 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
 | 640 |     localstatedir=$ac_optarg ;; | 
 | 641 |  | 
 | 642 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 643 |     ac_prev=mandir ;; | 
 | 644 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 645 |     mandir=$ac_optarg ;; | 
 | 646 |  | 
 | 647 |   -nfp | --nfp | --nf) | 
 | 648 |     # Obsolete; use --without-fp. | 
 | 649 |     with_fp=no ;; | 
 | 650 |  | 
 | 651 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 652 |   | --no-cr | --no-c | -n) | 
 | 653 |     no_create=yes ;; | 
 | 654 |  | 
 | 655 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 656 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 657 |     no_recursion=yes ;; | 
 | 658 |  | 
 | 659 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 660 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 661 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 662 |     ac_prev=oldincludedir ;; | 
 | 663 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 664 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 665 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 666 |     oldincludedir=$ac_optarg ;; | 
 | 667 |  | 
 | 668 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 669 |     ac_prev=prefix ;; | 
 | 670 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 671 |     prefix=$ac_optarg ;; | 
 | 672 |  | 
 | 673 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 674 |   | --program-pre | --program-pr | --program-p) | 
 | 675 |     ac_prev=program_prefix ;; | 
 | 676 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 677 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 678 |     program_prefix=$ac_optarg ;; | 
 | 679 |  | 
 | 680 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 681 |   | --program-suf | --program-su | --program-s) | 
 | 682 |     ac_prev=program_suffix ;; | 
 | 683 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 684 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 685 |     program_suffix=$ac_optarg ;; | 
 | 686 |  | 
 | 687 |   -program-transform-name | --program-transform-name \ | 
 | 688 |   | --program-transform-nam | --program-transform-na \ | 
 | 689 |   | --program-transform-n | --program-transform- \ | 
 | 690 |   | --program-transform | --program-transfor \ | 
 | 691 |   | --program-transfo | --program-transf \ | 
 | 692 |   | --program-trans | --program-tran \ | 
 | 693 |   | --progr-tra | --program-tr | --program-t) | 
 | 694 |     ac_prev=program_transform_name ;; | 
 | 695 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 696 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 697 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 698 |   | --program-transform=* | --program-transfor=* \ | 
 | 699 |   | --program-transfo=* | --program-transf=* \ | 
 | 700 |   | --program-trans=* | --program-tran=* \ | 
 | 701 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 702 |     program_transform_name=$ac_optarg ;; | 
 | 703 |  | 
 | 704 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 705 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 706 |     silent=yes ;; | 
 | 707 |  | 
 | 708 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 709 |     ac_prev=sbindir ;; | 
 | 710 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 711 |   | --sbi=* | --sb=*) | 
 | 712 |     sbindir=$ac_optarg ;; | 
 | 713 |  | 
 | 714 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 715 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 716 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 717 |   | --sha | --sh) | 
 | 718 |     ac_prev=sharedstatedir ;; | 
 | 719 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 720 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 721 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 722 |   | --sha=* | --sh=*) | 
 | 723 |     sharedstatedir=$ac_optarg ;; | 
 | 724 |  | 
 | 725 |   -site | --site | --sit) | 
 | 726 |     ac_prev=site ;; | 
 | 727 |   -site=* | --site=* | --sit=*) | 
 | 728 |     site=$ac_optarg ;; | 
 | 729 |  | 
 | 730 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 731 |     ac_prev=srcdir ;; | 
 | 732 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 733 |     srcdir=$ac_optarg ;; | 
 | 734 |  | 
 | 735 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 736 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 737 |     ac_prev=sysconfdir ;; | 
 | 738 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 739 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 740 |     sysconfdir=$ac_optarg ;; | 
 | 741 |  | 
 | 742 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 743 |     ac_prev=target_alias ;; | 
 | 744 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 745 |     target_alias=$ac_optarg ;; | 
 | 746 |  | 
 | 747 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 748 |     verbose=yes ;; | 
 | 749 |  | 
 | 750 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 751 |     ac_init_version=: ;; | 
 | 752 |  | 
 | 753 |   -with-* | --with-*) | 
 | 754 |     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
 | 755 |     # Reject names that are not valid shell variable names. | 
 | 756 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 757 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 758 |    { (exit 1); exit 1; }; } | 
 | 759 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 760 |     case $ac_option in | 
 | 761 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 762 |       *) ac_optarg=yes ;; | 
 | 763 |     esac | 
 | 764 |     eval "with_$ac_package='$ac_optarg'" ;; | 
 | 765 |  | 
 | 766 |   -without-* | --without-*) | 
 | 767 |     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
 | 768 |     # Reject names that are not valid shell variable names. | 
 | 769 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 770 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 771 |    { (exit 1); exit 1; }; } | 
 | 772 |     ac_package=`echo $ac_package | sed 's/-/_/g'` | 
 | 773 |     eval "with_$ac_package=no" ;; | 
 | 774 |  | 
 | 775 |   --x) | 
 | 776 |     # Obsolete; use --with-x. | 
 | 777 |     with_x=yes ;; | 
 | 778 |  | 
 | 779 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 780 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 781 |     ac_prev=x_includes ;; | 
 | 782 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 783 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 784 |     x_includes=$ac_optarg ;; | 
 | 785 |  | 
 | 786 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 787 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 788 |     ac_prev=x_libraries ;; | 
 | 789 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 790 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 791 |     x_libraries=$ac_optarg ;; | 
 | 792 |  | 
 | 793 |   -*) { echo "$as_me: error: unrecognized option: $ac_option | 
 | 794 | Try \`$0 --help' for more information." >&2 | 
 | 795 |    { (exit 1); exit 1; }; } | 
 | 796 |     ;; | 
 | 797 |  | 
 | 798 |   *=*) | 
 | 799 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 800 |     # Reject names that are not valid shell variable names. | 
 | 801 |     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
 | 802 |       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
 | 803 |    { (exit 1); exit 1; }; } | 
 | 804 |     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
 | 805 |     eval "$ac_envvar='$ac_optarg'" | 
 | 806 |     export $ac_envvar ;; | 
 | 807 |  | 
 | 808 |   *) | 
 | 809 |     # FIXME: should be removed in autoconf 3.0. | 
 | 810 |     echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
 | 811 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
 | 812 |       echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
 | 813 |     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
 | 814 |     ;; | 
 | 815 |  | 
 | 816 |   esac | 
 | 817 | done | 
 | 818 |  | 
 | 819 | if test -n "$ac_prev"; then | 
 | 820 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
 | 821 |   { echo "$as_me: error: missing argument to $ac_option" >&2 | 
 | 822 |    { (exit 1); exit 1; }; } | 
 | 823 | fi | 
 | 824 |  | 
 | 825 | # Be sure to have absolute paths. | 
 | 826 | for ac_var in exec_prefix prefix | 
 | 827 | do | 
 | 828 |   eval ac_val=$`echo $ac_var` | 
 | 829 |   case $ac_val in | 
 | 830 |     [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
 | 831 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 832 |    { (exit 1); exit 1; }; };; | 
 | 833 |   esac | 
 | 834 | done | 
 | 835 |  | 
 | 836 | # Be sure to have absolute paths. | 
 | 837 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 838 | 	      localstatedir libdir includedir oldincludedir infodir mandir | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 839 | do | 
 | 840 |   eval ac_val=$`echo $ac_var` | 
 | 841 |   case $ac_val in | 
 | 842 |     [\\/$]* | ?:[\\/]* ) ;; | 
 | 843 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 844 |    { (exit 1); exit 1; }; };; | 
 | 845 |   esac | 
 | 846 | done | 
 | 847 |  | 
 | 848 | # There might be people who depend on the old broken behavior: `$host' | 
 | 849 | # used to hold the argument of --host etc. | 
 | 850 | # FIXME: To remove some day. | 
 | 851 | build=$build_alias | 
 | 852 | host=$host_alias | 
 | 853 | target=$target_alias | 
 | 854 |  | 
 | 855 | # FIXME: To remove some day. | 
 | 856 | if test "x$host_alias" != x; then | 
 | 857 |   if test "x$build_alias" = x; then | 
 | 858 |     cross_compiling=maybe | 
 | 859 |     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
 | 860 |     If a cross compiler is detected then cross compile mode will be used." >&2 | 
 | 861 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 862 |     cross_compiling=yes | 
 | 863 |   fi | 
 | 864 | fi | 
 | 865 |  | 
 | 866 | ac_tool_prefix= | 
 | 867 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 868 |  | 
 | 869 | test "$silent" = yes && exec 6>/dev/null | 
 | 870 |  | 
 | 871 |  | 
 | 872 | # Find the source files, if location was not specified. | 
 | 873 | if test -z "$srcdir"; then | 
 | 874 |   ac_srcdir_defaulted=yes | 
 | 875 |   # Try the directory containing this script, then its parent. | 
 | 876 |   ac_confdir=`(dirname "$0") 2>/dev/null || | 
 | 877 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 878 | 	 X"$0" : 'X\(//\)[^/]' \| \ | 
 | 879 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 880 | 	 X"$0" : 'X\(/\)' \| \ | 
 | 881 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | echo X"$0" | | 
 | 883 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 884 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 885 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 886 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 887 |   	  s/.*/./; q'` | 
 | 888 |   srcdir=$ac_confdir | 
 | 889 |   if test ! -r $srcdir/$ac_unique_file; then | 
 | 890 |     srcdir=.. | 
 | 891 |   fi | 
 | 892 | else | 
 | 893 |   ac_srcdir_defaulted=no | 
 | 894 | fi | 
 | 895 | if test ! -r $srcdir/$ac_unique_file; then | 
 | 896 |   if test "$ac_srcdir_defaulted" = yes; then | 
 | 897 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
 | 898 |    { (exit 1); exit 1; }; } | 
 | 899 |   else | 
 | 900 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
 | 901 |    { (exit 1); exit 1; }; } | 
 | 902 |   fi | 
 | 903 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 904 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
 | 905 |   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
 | 906 |    { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 907 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
 | 908 | ac_env_build_alias_set=${build_alias+set} | 
 | 909 | ac_env_build_alias_value=$build_alias | 
 | 910 | ac_cv_env_build_alias_set=${build_alias+set} | 
 | 911 | ac_cv_env_build_alias_value=$build_alias | 
 | 912 | ac_env_host_alias_set=${host_alias+set} | 
 | 913 | ac_env_host_alias_value=$host_alias | 
 | 914 | ac_cv_env_host_alias_set=${host_alias+set} | 
 | 915 | ac_cv_env_host_alias_value=$host_alias | 
 | 916 | ac_env_target_alias_set=${target_alias+set} | 
 | 917 | ac_env_target_alias_value=$target_alias | 
 | 918 | ac_cv_env_target_alias_set=${target_alias+set} | 
 | 919 | ac_cv_env_target_alias_value=$target_alias | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 920 | ac_env_CC_set=${CC+set} | 
 | 921 | ac_env_CC_value=$CC | 
 | 922 | ac_cv_env_CC_set=${CC+set} | 
 | 923 | ac_cv_env_CC_value=$CC | 
 | 924 | ac_env_CFLAGS_set=${CFLAGS+set} | 
 | 925 | ac_env_CFLAGS_value=$CFLAGS | 
 | 926 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
 | 927 | ac_cv_env_CFLAGS_value=$CFLAGS | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 928 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 929 | ac_env_LDFLAGS_value=$LDFLAGS | 
 | 930 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 931 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
 | 932 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 933 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
 | 934 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 935 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 936 | ac_env_CPP_set=${CPP+set} | 
 | 937 | ac_env_CPP_value=$CPP | 
 | 938 | ac_cv_env_CPP_set=${CPP+set} | 
 | 939 | ac_cv_env_CPP_value=$CPP | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 940 | ac_env_CXX_set=${CXX+set} | 
 | 941 | ac_env_CXX_value=$CXX | 
 | 942 | ac_cv_env_CXX_set=${CXX+set} | 
 | 943 | ac_cv_env_CXX_value=$CXX | 
 | 944 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 945 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
 | 946 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 947 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 948 | ac_env_CXXCPP_set=${CXXCPP+set} | 
 | 949 | ac_env_CXXCPP_value=$CXXCPP | 
 | 950 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | 
 | 951 | ac_cv_env_CXXCPP_value=$CXXCPP | 
 | 952 | ac_env_F77_set=${F77+set} | 
 | 953 | ac_env_F77_value=$F77 | 
 | 954 | ac_cv_env_F77_set=${F77+set} | 
 | 955 | ac_cv_env_F77_value=$F77 | 
 | 956 | ac_env_FFLAGS_set=${FFLAGS+set} | 
 | 957 | ac_env_FFLAGS_value=$FFLAGS | 
 | 958 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | 
 | 959 | ac_cv_env_FFLAGS_value=$FFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 960 |  | 
 | 961 | # | 
 | 962 | # Report the --help message. | 
 | 963 | # | 
 | 964 | if test "$ac_init_help" = "long"; then | 
 | 965 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 966 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 967 |   cat <<_ACEOF | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 968 | \`configure' configures llvm 1.4 to adapt to many kinds of systems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 969 |  | 
 | 970 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 971 |  | 
 | 972 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 973 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 974 |  | 
 | 975 | Defaults for the options are specified in brackets. | 
 | 976 |  | 
 | 977 | Configuration: | 
 | 978 |   -h, --help              display this help and exit | 
 | 979 |       --help=short        display options specific to this package | 
 | 980 |       --help=recursive    display the short help of all the included packages | 
 | 981 |   -V, --version           display version information and exit | 
 | 982 |   -q, --quiet, --silent   do not print \`checking...' messages | 
 | 983 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 984 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 985 |   -n, --no-create         do not create output files | 
 | 986 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 987 |  | 
 | 988 | _ACEOF | 
 | 989 |  | 
 | 990 |   cat <<_ACEOF | 
 | 991 | Installation directories: | 
 | 992 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 993 | 			  [$ac_default_prefix] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 994 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 995 | 			  [PREFIX] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 996 |  | 
 | 997 | By default, \`make install' will install all the files in | 
 | 998 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 999 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1000 | for instance \`--prefix=\$HOME'. | 
 | 1001 |  | 
 | 1002 | For better control, use the options below. | 
 | 1003 |  | 
 | 1004 | Fine tuning of the installation directories: | 
 | 1005 |   --bindir=DIR           user executables [EPREFIX/bin] | 
 | 1006 |   --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
 | 1007 |   --libexecdir=DIR       program executables [EPREFIX/libexec] | 
 | 1008 |   --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
 | 1009 |   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
 | 1010 |   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
 | 1011 |   --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
 | 1012 |   --libdir=DIR           object code libraries [EPREFIX/lib] | 
 | 1013 |   --includedir=DIR       C header files [PREFIX/include] | 
 | 1014 |   --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
 | 1015 |   --infodir=DIR          info documentation [PREFIX/info] | 
 | 1016 |   --mandir=DIR           man documentation [PREFIX/man] | 
 | 1017 | _ACEOF | 
 | 1018 |  | 
 | 1019 |   cat <<\_ACEOF | 
 | 1020 |  | 
 | 1021 | System types: | 
 | 1022 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1023 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
 | 1024 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
 | 1025 | _ACEOF | 
 | 1026 | fi | 
 | 1027 |  | 
 | 1028 | if test -n "$ac_init_help"; then | 
 | 1029 |   case $ac_init_help in | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1030 |      short | recursive ) echo "Configuration of llvm 1.4:";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1031 |    esac | 
 | 1032 |   cat <<\_ACEOF | 
 | 1033 |  | 
 | 1034 | Optional Features: | 
 | 1035 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1036 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1037 |   --enable-optimized | 
 | 1038 |   --enable-jit            Enable Just In Time Compiling (default is YES) | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1039 |   --enable-doxygen        Build doxygen documentation (default is NO) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1040 |   --enable-ltdl-install   install libltdl | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1041 |   --enable-shared[=PKGS] | 
 | 1042 |                           build shared libraries [default=yes] | 
 | 1043 |   --enable-static[=PKGS] | 
 | 1044 |                           build static libraries [default=yes] | 
 | 1045 |   --enable-fast-install[=PKGS] | 
 | 1046 |                           optimize for fast installation [default=yes] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1047 |   --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1048 |  | 
 | 1049 | Optional Packages: | 
 | 1050 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1051 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1052 |   --with-tclinclude       directory where tcl headers are | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1053 |   --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
 | 1054 |   --with-pic              try to use only PIC/non-PIC objects [default=use | 
 | 1055 |                           both] | 
 | 1056 |   --with-tags[=TAGS] | 
 | 1057 |                           include additional configurations [automatic] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1058 |  | 
 | 1059 | Some influential environment variables: | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1060 |   CC          C compiler command | 
 | 1061 |   CFLAGS      C compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1062 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1063 |               nonstandard directory <lib dir> | 
 | 1064 |   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
 | 1065 |               headers in a nonstandard directory <include dir> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1066 |   CPP         C preprocessor | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1067 |   CXX         C++ compiler command | 
 | 1068 |   CXXFLAGS    C++ compiler flags | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1069 |   CXXCPP      C++ preprocessor | 
 | 1070 |   F77         Fortran 77 compiler command | 
 | 1071 |   FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1072 |  | 
 | 1073 | Use these variables to override the choices made by `configure' or to help | 
 | 1074 | it to find libraries and programs with nonstandard names/locations. | 
 | 1075 |  | 
 | 1076 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 1077 | _ACEOF | 
 | 1078 | fi | 
 | 1079 |  | 
 | 1080 | if test "$ac_init_help" = "recursive"; then | 
 | 1081 |   # If there are subdirs, report their specific --help. | 
 | 1082 |   ac_popdir=`pwd` | 
 | 1083 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
 | 1084 |     test -d $ac_dir || continue | 
 | 1085 |     ac_builddir=. | 
 | 1086 |  | 
 | 1087 | if test "$ac_dir" != .; then | 
 | 1088 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 1089 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 1090 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 1091 | else | 
 | 1092 |   ac_dir_suffix= ac_top_builddir= | 
 | 1093 | fi | 
 | 1094 |  | 
 | 1095 | case $srcdir in | 
 | 1096 |   .)  # No --srcdir option.  We are building in place. | 
 | 1097 |     ac_srcdir=. | 
 | 1098 |     if test -z "$ac_top_builddir"; then | 
 | 1099 |        ac_top_srcdir=. | 
 | 1100 |     else | 
 | 1101 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 1102 |     fi ;; | 
 | 1103 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 1104 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 1105 |     ac_top_srcdir=$srcdir ;; | 
 | 1106 |   *) # Relative path. | 
 | 1107 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 1108 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 1109 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1110 |  | 
 | 1111 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 1112 | # the directories may not exist. | 
 | 1113 | case `pwd` in | 
 | 1114 | .) ac_abs_builddir="$ac_dir";; | 
 | 1115 | *) | 
 | 1116 |   case "$ac_dir" in | 
 | 1117 |   .) ac_abs_builddir=`pwd`;; | 
 | 1118 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 1119 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 1120 |   esac;; | 
 | 1121 | esac | 
 | 1122 | case $ac_abs_builddir in | 
 | 1123 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 1124 | *) | 
 | 1125 |   case ${ac_top_builddir}. in | 
 | 1126 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 1127 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 1128 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 1129 |   esac;; | 
 | 1130 | esac | 
 | 1131 | case $ac_abs_builddir in | 
 | 1132 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 1133 | *) | 
 | 1134 |   case $ac_srcdir in | 
 | 1135 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 1136 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 1137 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 1138 |   esac;; | 
 | 1139 | esac | 
 | 1140 | case $ac_abs_builddir in | 
 | 1141 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 1142 | *) | 
 | 1143 |   case $ac_top_srcdir in | 
 | 1144 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 1145 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 1146 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 1147 |   esac;; | 
 | 1148 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1149 |  | 
 | 1150 |     cd $ac_dir | 
 | 1151 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 1152 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 1153 |       echo | 
 | 1154 |       $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
 | 1155 |     elif test -f $ac_srcdir/configure; then | 
 | 1156 |       echo | 
 | 1157 |       $SHELL $ac_srcdir/configure  --help=recursive | 
 | 1158 |     elif test -f $ac_srcdir/configure.ac || | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1159 | 	   test -f $ac_srcdir/configure.in; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1160 |       echo | 
 | 1161 |       $ac_configure --help | 
 | 1162 |     else | 
 | 1163 |       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
 | 1164 |     fi | 
 | 1165 |     cd $ac_popdir | 
 | 1166 |   done | 
 | 1167 | fi | 
 | 1168 |  | 
 | 1169 | test -n "$ac_init_help" && exit 0 | 
 | 1170 | if $ac_init_version; then | 
 | 1171 |   cat <<\_ACEOF | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1172 | llvm configure 1.4 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1173 | generated by GNU Autoconf 2.59 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1174 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1175 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1176 | This configure script is free software; the Free Software Foundation | 
 | 1177 | gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1178 |  | 
 | 1179 | $LLVM_COPYRIGHT | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1180 | _ACEOF | 
 | 1181 |   exit 0 | 
 | 1182 | fi | 
 | 1183 | exec 5>config.log | 
 | 1184 | cat >&5 <<_ACEOF | 
 | 1185 | This file contains any messages produced by compilers while | 
 | 1186 | running configure, to aid debugging if configure makes a mistake. | 
 | 1187 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 1188 | It was created by llvm $as_me 1.4, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1189 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1190 |  | 
 | 1191 |   $ $0 $@ | 
 | 1192 |  | 
 | 1193 | _ACEOF | 
 | 1194 | { | 
 | 1195 | cat <<_ASUNAME | 
 | 1196 | ## --------- ## | 
 | 1197 | ## Platform. ## | 
 | 1198 | ## --------- ## | 
 | 1199 |  | 
 | 1200 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 1201 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 1202 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 1203 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 1204 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 1205 |  | 
 | 1206 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 1207 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 1208 |  | 
 | 1209 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 1210 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 1211 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
 | 1212 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
 | 1213 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 1214 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 1215 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 1216 |  | 
 | 1217 | _ASUNAME | 
 | 1218 |  | 
 | 1219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1220 | for as_dir in $PATH | 
 | 1221 | do | 
 | 1222 |   IFS=$as_save_IFS | 
 | 1223 |   test -z "$as_dir" && as_dir=. | 
 | 1224 |   echo "PATH: $as_dir" | 
 | 1225 | done | 
 | 1226 |  | 
 | 1227 | } >&5 | 
 | 1228 |  | 
 | 1229 | cat >&5 <<_ACEOF | 
 | 1230 |  | 
 | 1231 |  | 
 | 1232 | ## ----------- ## | 
 | 1233 | ## Core tests. ## | 
 | 1234 | ## ----------- ## | 
 | 1235 |  | 
 | 1236 | _ACEOF | 
 | 1237 |  | 
 | 1238 |  | 
 | 1239 | # Keep a trace of the command line. | 
 | 1240 | # 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] | 1241 | # 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] | 1242 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1243 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1244 | ac_configure_args= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1245 | ac_configure_args0= | 
 | 1246 | ac_configure_args1= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1247 | ac_sep= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1248 | ac_must_keep_next=false | 
 | 1249 | for ac_pass in 1 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1250 | do | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1251 |   for ac_arg | 
 | 1252 |   do | 
 | 1253 |     case $ac_arg in | 
 | 1254 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 1255 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1256 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 1257 |       continue ;; | 
 | 1258 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1259 |       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1260 |     esac | 
 | 1261 |     case $ac_pass in | 
 | 1262 |     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
 | 1263 |     2) | 
 | 1264 |       ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
 | 1265 |       if test $ac_must_keep_next = true; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1266 | 	ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1267 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1268 | 	case $ac_arg in | 
 | 1269 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 1270 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 1271 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 1272 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 1273 | 	    case "$ac_configure_args0 " in | 
 | 1274 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 1275 | 	    esac | 
 | 1276 | 	    ;; | 
 | 1277 | 	  -* ) ac_must_keep_next=true ;; | 
 | 1278 | 	esac | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1279 |       fi | 
 | 1280 |       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
 | 1281 |       # Get rid of the leading space. | 
 | 1282 |       ac_sep=" " | 
 | 1283 |       ;; | 
 | 1284 |     esac | 
 | 1285 |   done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1286 | done | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1287 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
 | 1288 | $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] | 1289 |  | 
 | 1290 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 1291 | # config.log.  We remove comments because anyway the quotes in there | 
 | 1292 | # would cause problems or look ugly. | 
 | 1293 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
 | 1294 | # such as our DU 5.0 friend, will then `close' the trap. | 
 | 1295 | trap 'exit_status=$? | 
 | 1296 |   # Save into config.log some information that might help in debugging. | 
 | 1297 |   { | 
 | 1298 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1299 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1300 |     cat <<\_ASBOX | 
 | 1301 | ## ---------------- ## | 
 | 1302 | ## Cache variables. ## | 
 | 1303 | ## ---------------- ## | 
 | 1304 | _ASBOX | 
 | 1305 |     echo | 
 | 1306 |     # The following way of writing the cache mishandles newlines in values, | 
 | 1307 | { | 
 | 1308 |   (set) 2>&1 | | 
 | 1309 |     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
 | 1310 |     *ac_space=\ *) | 
 | 1311 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1312 | 	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
 | 1313 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1314 |       ;; | 
 | 1315 |     *) | 
 | 1316 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1317 | 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1318 |       ;; | 
 | 1319 |     esac; | 
 | 1320 | } | 
 | 1321 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1322 |  | 
 | 1323 |     cat <<\_ASBOX | 
 | 1324 | ## ----------------- ## | 
 | 1325 | ## Output variables. ## | 
 | 1326 | ## ----------------- ## | 
 | 1327 | _ASBOX | 
 | 1328 |     echo | 
 | 1329 |     for ac_var in $ac_subst_vars | 
 | 1330 |     do | 
 | 1331 |       eval ac_val=$`echo $ac_var` | 
 | 1332 |       echo "$ac_var='"'"'$ac_val'"'"'" | 
 | 1333 |     done | sort | 
 | 1334 |     echo | 
 | 1335 |  | 
 | 1336 |     if test -n "$ac_subst_files"; then | 
 | 1337 |       cat <<\_ASBOX | 
 | 1338 | ## ------------- ## | 
 | 1339 | ## Output files. ## | 
 | 1340 | ## ------------- ## | 
 | 1341 | _ASBOX | 
 | 1342 |       echo | 
 | 1343 |       for ac_var in $ac_subst_files | 
 | 1344 |       do | 
 | 1345 | 	eval ac_val=$`echo $ac_var` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1346 | 	echo "$ac_var='"'"'$ac_val'"'"'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1347 |       done | sort | 
 | 1348 |       echo | 
 | 1349 |     fi | 
 | 1350 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1351 |     if test -s confdefs.h; then | 
 | 1352 |       cat <<\_ASBOX | 
 | 1353 | ## ----------- ## | 
 | 1354 | ## confdefs.h. ## | 
 | 1355 | ## ----------- ## | 
 | 1356 | _ASBOX | 
 | 1357 |       echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1358 |       sed "/^$/d" confdefs.h | sort | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1359 |       echo | 
 | 1360 |     fi | 
 | 1361 |     test "$ac_signal" != 0 && | 
 | 1362 |       echo "$as_me: caught signal $ac_signal" | 
 | 1363 |     echo "$as_me: exit $exit_status" | 
 | 1364 |   } >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1365 |   rm -f core *.core && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1366 |   rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
 | 1367 |     exit $exit_status | 
 | 1368 |      ' 0 | 
 | 1369 | for ac_signal in 1 2 13 15; do | 
 | 1370 |   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
 | 1371 | done | 
 | 1372 | ac_signal=0 | 
 | 1373 |  | 
 | 1374 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 1375 | rm -rf conftest* confdefs.h | 
 | 1376 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 1377 | echo >confdefs.h | 
 | 1378 |  | 
 | 1379 | # Predefined preprocessor variables. | 
 | 1380 |  | 
 | 1381 | cat >>confdefs.h <<_ACEOF | 
 | 1382 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 1383 | _ACEOF | 
 | 1384 |  | 
 | 1385 |  | 
 | 1386 | cat >>confdefs.h <<_ACEOF | 
 | 1387 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 1388 | _ACEOF | 
 | 1389 |  | 
 | 1390 |  | 
 | 1391 | cat >>confdefs.h <<_ACEOF | 
 | 1392 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 1393 | _ACEOF | 
 | 1394 |  | 
 | 1395 |  | 
 | 1396 | cat >>confdefs.h <<_ACEOF | 
 | 1397 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 1398 | _ACEOF | 
 | 1399 |  | 
 | 1400 |  | 
 | 1401 | cat >>confdefs.h <<_ACEOF | 
 | 1402 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 1403 | _ACEOF | 
 | 1404 |  | 
 | 1405 |  | 
 | 1406 | # Let the site file select an alternate cache file if it wants to. | 
 | 1407 | # Prefer explicitly selected file to automatically selected ones. | 
 | 1408 | if test -z "$CONFIG_SITE"; then | 
 | 1409 |   if test "x$prefix" != xNONE; then | 
 | 1410 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 1411 |   else | 
 | 1412 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 1413 |   fi | 
 | 1414 | fi | 
 | 1415 | for ac_site_file in $CONFIG_SITE; do | 
 | 1416 |   if test -r "$ac_site_file"; then | 
 | 1417 |     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
 | 1418 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
 | 1419 |     sed 's/^/| /' "$ac_site_file" >&5 | 
 | 1420 |     . "$ac_site_file" | 
 | 1421 |   fi | 
 | 1422 | done | 
 | 1423 |  | 
 | 1424 | if test -r "$cache_file"; then | 
 | 1425 |   # Some versions of bash will fail to source /dev/null (special | 
 | 1426 |   # files actually), so we avoid doing that. | 
 | 1427 |   if test -f "$cache_file"; then | 
 | 1428 |     { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
 | 1429 | echo "$as_me: loading cache $cache_file" >&6;} | 
 | 1430 |     case $cache_file in | 
 | 1431 |       [\\/]* | ?:[\\/]* ) . $cache_file;; | 
 | 1432 |       *)                      . ./$cache_file;; | 
 | 1433 |     esac | 
 | 1434 |   fi | 
 | 1435 | else | 
 | 1436 |   { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
 | 1437 | echo "$as_me: creating cache $cache_file" >&6;} | 
 | 1438 |   >$cache_file | 
 | 1439 | fi | 
 | 1440 |  | 
 | 1441 | # Check that the precious variables saved in the cache have kept the same | 
 | 1442 | # value. | 
 | 1443 | ac_cache_corrupted=false | 
 | 1444 | for ac_var in `(set) 2>&1 | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1445 | 	       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] | 1446 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 1447 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
 | 1448 |   eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
 | 1449 |   eval ac_new_val="\$ac_env_${ac_var}_value" | 
 | 1450 |   case $ac_old_set,$ac_new_set in | 
 | 1451 |     set,) | 
 | 1452 |       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 1453 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
 | 1454 |       ac_cache_corrupted=: ;; | 
 | 1455 |     ,set) | 
 | 1456 |       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 1457 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
 | 1458 |       ac_cache_corrupted=: ;; | 
 | 1459 |     ,);; | 
 | 1460 |     *) | 
 | 1461 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1462 | 	{ 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] | 1463 | 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] | 1464 | 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1465 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1466 | 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1468 | 	ac_cache_corrupted=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1469 |       fi;; | 
 | 1470 |   esac | 
 | 1471 |   # Pass precious variables to config.status. | 
 | 1472 |   if test "$ac_new_set" = set; then | 
 | 1473 |     case $ac_new_val in | 
 | 1474 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1475 |       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1476 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 1477 |     esac | 
 | 1478 |     case " $ac_configure_args " in | 
 | 1479 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
 | 1480 |       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 1481 |     esac | 
 | 1482 |   fi | 
 | 1483 | done | 
 | 1484 | if $ac_cache_corrupted; then | 
 | 1485 |   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
 | 1486 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
 | 1487 |   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
 | 1488 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
 | 1489 |    { (exit 1); exit 1; }; } | 
 | 1490 | fi | 
 | 1491 |  | 
 | 1492 | ac_ext=c | 
 | 1493 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 1497 |  | 
 | 1498 |  | 
 | 1499 |  | 
 | 1500 |  | 
 | 1501 |  | 
 | 1502 |  | 
 | 1503 |  | 
 | 1504 |  | 
 | 1505 |  | 
 | 1506 |  | 
 | 1507 |  | 
 | 1508 |  | 
 | 1509 |  | 
 | 1510 |  | 
 | 1511 |  | 
 | 1512 |  | 
 | 1513 |  | 
 | 1514 |  | 
 | 1515 |  | 
 | 1516 |  | 
 | 1517 |  | 
 | 1518 |  | 
 | 1519 |  | 
 | 1520 |  | 
 | 1521 |  | 
 | 1522 |  | 
 | 1523 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1524 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1525 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign." | 
 | 1526 |  | 
 | 1527 |  | 
 | 1528 |  | 
 | 1529 |  | 
 | 1530 |  | 
 | 1531 |  | 
 | 1532 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | ac_aux_dir= | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1534 | for ac_dir in autoconf $srcdir/autoconf; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1535 |   if test -f $ac_dir/install-sh; then | 
 | 1536 |     ac_aux_dir=$ac_dir | 
 | 1537 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 1538 |     break | 
 | 1539 |   elif test -f $ac_dir/install.sh; then | 
 | 1540 |     ac_aux_dir=$ac_dir | 
 | 1541 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 1542 |     break | 
 | 1543 |   elif test -f $ac_dir/shtool; then | 
 | 1544 |     ac_aux_dir=$ac_dir | 
 | 1545 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 1546 |     break | 
 | 1547 |   fi | 
 | 1548 | done | 
 | 1549 | if test -z "$ac_aux_dir"; then | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1550 |   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 | 
 | 1551 | 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] | 1552 |    { (exit 1); exit 1; }; } | 
 | 1553 | fi | 
 | 1554 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
 | 1555 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
 | 1556 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
 | 1557 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1558 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1559 | if test ${srcdir} != "." ; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1560 |   if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
 | 1561 |     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1562 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
 | 1563 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1564 |   fi | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1565 | fi | 
 | 1566 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1567 | for i in `ls ${srcdir}/projects` | 
 | 1568 | do | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1569 |   if test -d ${srcdir}/projects/${i} ; then | 
 | 1570 |     case ${i} in | 
 | 1571 |       "CVS") ;; | 
 | 1572 |       "sample") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1573 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1574 | subdirs="$subdirs projects/sample" | 
 | 1575 |     ;; | 
 | 1576 |       "Stacker") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1577 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1578 | subdirs="$subdirs projects/Stacker" | 
 | 1579 |    ;; | 
 | 1580 |       "llvm-test") | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1581 |  | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1582 | subdirs="$subdirs projects/llvm-test" | 
 | 1583 |  ;; | 
 | 1584 |       "llvm-reopt") | 
 | 1585 |  | 
 | 1586 | subdirs="$subdirs projects/llvm-reopt" | 
 | 1587 | ;; | 
 | 1588 |       "llvm-gcc") | 
 | 1589 |  | 
 | 1590 | subdirs="$subdirs projects/llvm-gcc" | 
 | 1591 |   ;; | 
| Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1592 |       "Java") | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1593 |  | 
| Reid Spencer | 641f7ef | 2004-09-20 22:14:56 +0000 | [diff] [blame] | 1594 | subdirs="$subdirs projects/Java" | 
 | 1595 |       ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1596 |       "llvm-tv") | 
 | 1597 |  | 
 | 1598 | subdirs="$subdirs projects/llvm-tv" | 
 | 1599 |    ;; | 
 | 1600 |       "llvm-fefw") | 
 | 1601 |  | 
 | 1602 | subdirs="$subdirs projects/llvm-fefw" | 
 | 1603 |  ;; | 
| John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 1604 |       "poolalloc") | 
 | 1605 |  | 
 | 1606 | subdirs="$subdirs projects/poolalloc" | 
 | 1607 |  ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1608 |       *) | 
| Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 1609 |         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
 | 1610 | 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] | 1611 |         ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1612 |     esac | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1613 |   fi | 
 | 1614 | done | 
| John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1615 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1616 |  | 
 | 1617 | # Make sure we can run config.sub. | 
 | 1618 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
 | 1619 |   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
 | 1620 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
 | 1621 |    { (exit 1); exit 1; }; } | 
 | 1622 |  | 
 | 1623 | echo "$as_me:$LINENO: checking build system type" >&5 | 
 | 1624 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
 | 1625 | if test "${ac_cv_build+set}" = set; then | 
 | 1626 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1627 | else | 
 | 1628 |   ac_cv_build_alias=$build_alias | 
 | 1629 | test -z "$ac_cv_build_alias" && | 
 | 1630 |   ac_cv_build_alias=`$ac_config_guess` | 
 | 1631 | test -z "$ac_cv_build_alias" && | 
 | 1632 |   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
 | 1633 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
 | 1634 |    { (exit 1); exit 1; }; } | 
 | 1635 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
 | 1636 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
 | 1637 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
 | 1638 |    { (exit 1); exit 1; }; } | 
 | 1639 |  | 
 | 1640 | fi | 
 | 1641 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
 | 1642 | echo "${ECHO_T}$ac_cv_build" >&6 | 
 | 1643 | build=$ac_cv_build | 
 | 1644 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1645 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1646 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1647 |  | 
 | 1648 |  | 
 | 1649 | echo "$as_me:$LINENO: checking host system type" >&5 | 
 | 1650 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
 | 1651 | if test "${ac_cv_host+set}" = set; then | 
 | 1652 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1653 | else | 
 | 1654 |   ac_cv_host_alias=$host_alias | 
 | 1655 | test -z "$ac_cv_host_alias" && | 
 | 1656 |   ac_cv_host_alias=$ac_cv_build_alias | 
 | 1657 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
 | 1658 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
 | 1659 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
 | 1660 |    { (exit 1); exit 1; }; } | 
 | 1661 |  | 
 | 1662 | fi | 
 | 1663 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
 | 1664 | echo "${ECHO_T}$ac_cv_host" >&6 | 
 | 1665 | host=$ac_cv_host | 
 | 1666 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1667 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1668 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1669 |  | 
 | 1670 |  | 
 | 1671 | echo "$as_me:$LINENO: checking target system type" >&5 | 
 | 1672 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | 
 | 1673 | if test "${ac_cv_target+set}" = set; then | 
 | 1674 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1675 | else | 
 | 1676 |   ac_cv_target_alias=$target_alias | 
 | 1677 | test "x$ac_cv_target_alias" = "x" && | 
 | 1678 |   ac_cv_target_alias=$ac_cv_host_alias | 
 | 1679 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | 
 | 1680 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | 
 | 1681 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | 
 | 1682 |    { (exit 1); exit 1; }; } | 
 | 1683 |  | 
 | 1684 | fi | 
 | 1685 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
 | 1686 | echo "${ECHO_T}$ac_cv_target" >&6 | 
 | 1687 | target=$ac_cv_target | 
 | 1688 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1689 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1690 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1691 |  | 
 | 1692 |  | 
 | 1693 | # The aliases save the names the user supplied, while $host etc. | 
 | 1694 | # will get canonicalized. | 
 | 1695 | test -n "$target_alias" && | 
 | 1696 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 1697 |     NONENONEs,x,x, && | 
 | 1698 |   program_prefix=${target_alias}- | 
 | 1699 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1700 | echo "$as_me:$LINENO: checking type of operating system we're on" >&5 | 
 | 1701 | echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6 | 
 | 1702 | if test "${llvm_cv_os_type+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1703 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1704 | else | 
 | 1705 |   case $build in | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1706 |   *-*-aix*) | 
 | 1707 |     llvm_cv_os_type="AIX" | 
 | 1708 |     llvm_cv_platform_type="Unix" ;; | 
 | 1709 |   *-*-cygwin*) | 
 | 1710 |     llvm_cv_os_type="Cygwin" | 
 | 1711 |     llvm_cv_platform_type="Unix" ;; | 
 | 1712 |   *-*-darwin*) | 
 | 1713 |     llvm_cv_os_type="Darwin" | 
 | 1714 |     llvm_cv_platform_type="Unix" ;; | 
 | 1715 |   *-*-freebsd*) | 
 | 1716 |     llvm_cv_os_type="FreeBSD" | 
 | 1717 |     llvm_cv_platform_type="Unix" ;; | 
 | 1718 |   *-*-interix*) | 
 | 1719 |     llvm_cv_os_type="Interix" | 
 | 1720 |     llvm_cv_platform_type="Unix" ;; | 
 | 1721 |   *-*-linux*) | 
 | 1722 |     llvm_cv_os_type="Linux" | 
 | 1723 |     llvm_cv_platform_type="Unix" ;; | 
 | 1724 |   *-*-solaris*) | 
 | 1725 |     llvm_cv_os_type="SunOS" | 
 | 1726 |     llvm_cv_platform_type="Unix" ;; | 
 | 1727 |   *-*-win32*) | 
 | 1728 |     llvm_cv_os_type="Win32" | 
 | 1729 |     llvm_cv_platform_type="Win32" ;; | 
 | 1730 |   *-*-mingw*) | 
 | 1731 |     llvm_cv_os_type="MingW" | 
 | 1732 |     llvm_cv_platform_type="Win32" ;; | 
 | 1733 |   *) | 
 | 1734 |     llvm_cv_os_type="Unknown" | 
 | 1735 |     llvm_cv_platform_type="Unknown" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1736 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1737 | fi | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1738 | echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 | 
 | 1739 | echo "${ECHO_T}$llvm_cv_os_type" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1740 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1741 | if test "$llvm_cv_os_type" = "Unknown" ; then | 
 | 1742 |   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 | 
 | 1743 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} | 
| Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 1744 |    { (exit 1); exit 1; }; } | 
 | 1745 | fi | 
 | 1746 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1747 | OS=$llvm_cv_os_type | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1748 |  | 
 | 1749 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 1750 | case $llvm_cv_platform_type in | 
 | 1751 |   Unix) | 
 | 1752 |  | 
 | 1753 | cat >>confdefs.h <<\_ACEOF | 
 | 1754 | #define LLVM_ON_UNIX 1 | 
 | 1755 | _ACEOF | 
 | 1756 |  | 
 | 1757 |     ;; | 
 | 1758 |   Win32) | 
 | 1759 |  | 
 | 1760 | cat >>confdefs.h <<\_ACEOF | 
 | 1761 | #define LLVM_ON_WIN32 1 | 
 | 1762 | _ACEOF | 
 | 1763 |  | 
 | 1764 |     ;; | 
 | 1765 | esac | 
 | 1766 |  | 
| Reid Spencer | 3bf6960 | 2004-12-24 06:49:16 +0000 | [diff] [blame] | 1767 |           ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_os_type" | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 1768 |  | 
 | 1769 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1770 | case $target in | 
 | 1771 |   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8 | 
 | 1772 |  | 
 | 1773 |   ;; | 
 | 1774 | esac | 
| Reid Spencer | 73fb548 | 2004-08-31 14:20:36 +0000 | [diff] [blame] | 1775 |  | 
 | 1776 | echo "$as_me:$LINENO: checking target architecture" >&5 | 
 | 1777 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1778 | if test "${llvm_cv_target_arch+set}" = set; then | 
 | 1779 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1780 | else | 
 | 1781 |   case $target in | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 1782 |   i?86-*)                 llvm_cv_target_arch="x86" ;; | 
 | 1783 |   amd64-* | x86_64-*)     llvm_cv_target_arch="AMD64" ;; | 
 | 1784 |   sparc*-*)               llvm_cv_target_arch="Sparc" ;; | 
 | 1785 |   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;; | 
 | 1786 |   *)                      llvm_cv_target_arch="Unknown" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1787 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1788 | fi | 
 | 1789 | echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 | 
 | 1790 | echo "${ECHO_T}$llvm_cv_target_arch" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1791 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1792 | if test "$llvm_cv_target_arch" = "Unknown" ; then | 
 | 1793 |   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 | 
 | 1794 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} | 
 | 1795 | fi | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1796 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1797 | ARCH=$llvm_cv_target_arch | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1798 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1799 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1800 | ac_ext=c | 
 | 1801 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1805 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1806 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 1807 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
 | 1808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1810 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 1811 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1812 | else | 
 | 1813 |   if test -n "$CC"; then | 
 | 1814 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1815 | else | 
 | 1816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1817 | for as_dir in $PATH | 
 | 1818 | do | 
 | 1819 |   IFS=$as_save_IFS | 
 | 1820 |   test -z "$as_dir" && as_dir=. | 
 | 1821 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1822 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1823 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
 | 1824 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1825 |     break 2 | 
 | 1826 |   fi | 
 | 1827 | done | 
 | 1828 | done | 
 | 1829 |  | 
 | 1830 | fi | 
 | 1831 | fi | 
 | 1832 | CC=$ac_cv_prog_CC | 
 | 1833 | if test -n "$CC"; then | 
 | 1834 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 1835 | echo "${ECHO_T}$CC" >&6 | 
 | 1836 | else | 
 | 1837 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1838 | echo "${ECHO_T}no" >&6 | 
 | 1839 | fi | 
 | 1840 |  | 
 | 1841 | fi | 
 | 1842 | if test -z "$ac_cv_prog_CC"; then | 
 | 1843 |   ac_ct_CC=$CC | 
 | 1844 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 1845 | set dummy gcc; ac_word=$2 | 
 | 1846 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1848 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 1849 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1850 | else | 
 | 1851 |   if test -n "$ac_ct_CC"; then | 
 | 1852 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 1853 | else | 
 | 1854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1855 | for as_dir in $PATH | 
 | 1856 | do | 
 | 1857 |   IFS=$as_save_IFS | 
 | 1858 |   test -z "$as_dir" && as_dir=. | 
 | 1859 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1860 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1861 |     ac_cv_prog_ac_ct_CC="gcc" | 
 | 1862 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1863 |     break 2 | 
 | 1864 |   fi | 
 | 1865 | done | 
 | 1866 | done | 
 | 1867 |  | 
 | 1868 | fi | 
 | 1869 | fi | 
 | 1870 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 1871 | if test -n "$ac_ct_CC"; then | 
 | 1872 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 1873 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 1874 | else | 
 | 1875 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1876 | echo "${ECHO_T}no" >&6 | 
 | 1877 | fi | 
 | 1878 |  | 
 | 1879 |   CC=$ac_ct_CC | 
 | 1880 | else | 
 | 1881 |   CC="$ac_cv_prog_CC" | 
 | 1882 | fi | 
 | 1883 |  | 
 | 1884 | if test -z "$CC"; then | 
 | 1885 |   if test -n "$ac_tool_prefix"; then | 
 | 1886 |   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
 | 1887 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
 | 1888 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1890 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 1891 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1892 | else | 
 | 1893 |   if test -n "$CC"; then | 
 | 1894 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1895 | else | 
 | 1896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1897 | for as_dir in $PATH | 
 | 1898 | do | 
 | 1899 |   IFS=$as_save_IFS | 
 | 1900 |   test -z "$as_dir" && as_dir=. | 
 | 1901 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1902 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1903 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
 | 1904 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1905 |     break 2 | 
 | 1906 |   fi | 
 | 1907 | done | 
 | 1908 | done | 
 | 1909 |  | 
 | 1910 | fi | 
 | 1911 | fi | 
 | 1912 | CC=$ac_cv_prog_CC | 
 | 1913 | if test -n "$CC"; then | 
 | 1914 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 1915 | echo "${ECHO_T}$CC" >&6 | 
 | 1916 | else | 
 | 1917 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1918 | echo "${ECHO_T}no" >&6 | 
 | 1919 | fi | 
 | 1920 |  | 
 | 1921 | fi | 
 | 1922 | if test -z "$ac_cv_prog_CC"; then | 
 | 1923 |   ac_ct_CC=$CC | 
 | 1924 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 1925 | set dummy cc; ac_word=$2 | 
 | 1926 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1928 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 1929 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1930 | else | 
 | 1931 |   if test -n "$ac_ct_CC"; then | 
 | 1932 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 1933 | else | 
 | 1934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1935 | for as_dir in $PATH | 
 | 1936 | do | 
 | 1937 |   IFS=$as_save_IFS | 
 | 1938 |   test -z "$as_dir" && as_dir=. | 
 | 1939 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1940 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1941 |     ac_cv_prog_ac_ct_CC="cc" | 
 | 1942 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1943 |     break 2 | 
 | 1944 |   fi | 
 | 1945 | done | 
 | 1946 | done | 
 | 1947 |  | 
 | 1948 | fi | 
 | 1949 | fi | 
 | 1950 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 1951 | if test -n "$ac_ct_CC"; then | 
 | 1952 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 1953 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 1954 | else | 
 | 1955 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1956 | echo "${ECHO_T}no" >&6 | 
 | 1957 | fi | 
 | 1958 |  | 
 | 1959 |   CC=$ac_ct_CC | 
 | 1960 | else | 
 | 1961 |   CC="$ac_cv_prog_CC" | 
 | 1962 | fi | 
 | 1963 |  | 
 | 1964 | fi | 
 | 1965 | if test -z "$CC"; then | 
 | 1966 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 1967 | set dummy cc; ac_word=$2 | 
 | 1968 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1969 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1970 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 1971 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1972 | else | 
 | 1973 |   if test -n "$CC"; then | 
 | 1974 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1975 | else | 
 | 1976 |   ac_prog_rejected=no | 
 | 1977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1978 | for as_dir in $PATH | 
 | 1979 | do | 
 | 1980 |   IFS=$as_save_IFS | 
 | 1981 |   test -z "$as_dir" && as_dir=. | 
 | 1982 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1983 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1984 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 1985 |        ac_prog_rejected=yes | 
 | 1986 |        continue | 
 | 1987 |      fi | 
 | 1988 |     ac_cv_prog_CC="cc" | 
 | 1989 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1990 |     break 2 | 
 | 1991 |   fi | 
 | 1992 | done | 
 | 1993 | done | 
 | 1994 |  | 
 | 1995 | if test $ac_prog_rejected = yes; then | 
 | 1996 |   # We found a bogon in the path, so make sure we never use it. | 
 | 1997 |   set dummy $ac_cv_prog_CC | 
 | 1998 |   shift | 
 | 1999 |   if test $# != 0; then | 
 | 2000 |     # We chose a different compiler from the bogus one. | 
 | 2001 |     # However, it has the same basename, so the bogon will be chosen | 
 | 2002 |     # first if we set CC to just the basename; use the full file name. | 
 | 2003 |     shift | 
 | 2004 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
 | 2005 |   fi | 
 | 2006 | fi | 
 | 2007 | fi | 
 | 2008 | fi | 
 | 2009 | CC=$ac_cv_prog_CC | 
 | 2010 | if test -n "$CC"; then | 
 | 2011 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2012 | echo "${ECHO_T}$CC" >&6 | 
 | 2013 | else | 
 | 2014 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2015 | echo "${ECHO_T}no" >&6 | 
 | 2016 | fi | 
 | 2017 |  | 
 | 2018 | fi | 
 | 2019 | if test -z "$CC"; then | 
 | 2020 |   if test -n "$ac_tool_prefix"; then | 
 | 2021 |   for ac_prog in cl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2022 |   do | 
 | 2023 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 2024 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 2025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2027 | if test "${ac_cv_prog_CC+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2028 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2029 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2030 |   if test -n "$CC"; then | 
 | 2031 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2032 | else | 
 | 2033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2034 | for as_dir in $PATH | 
 | 2035 | do | 
 | 2036 |   IFS=$as_save_IFS | 
 | 2037 |   test -z "$as_dir" && as_dir=. | 
 | 2038 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2039 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2040 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2041 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2042 |     break 2 | 
 | 2043 |   fi | 
 | 2044 | done | 
 | 2045 | done | 
 | 2046 |  | 
 | 2047 | fi | 
 | 2048 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2049 | CC=$ac_cv_prog_CC | 
 | 2050 | if test -n "$CC"; then | 
 | 2051 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2052 | echo "${ECHO_T}$CC" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2053 | else | 
 | 2054 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2055 | echo "${ECHO_T}no" >&6 | 
 | 2056 | fi | 
 | 2057 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2058 |     test -n "$CC" && break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2059 |   done | 
 | 2060 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2061 | if test -z "$CC"; then | 
 | 2062 |   ac_ct_CC=$CC | 
 | 2063 |   for ac_prog in cl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2064 | do | 
 | 2065 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 2066 | set dummy $ac_prog; ac_word=$2 | 
 | 2067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2069 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2071 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2072 |   if test -n "$ac_ct_CC"; then | 
 | 2073 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2074 | else | 
 | 2075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2076 | for as_dir in $PATH | 
 | 2077 | do | 
 | 2078 |   IFS=$as_save_IFS | 
 | 2079 |   test -z "$as_dir" && as_dir=. | 
 | 2080 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2081 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2082 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2083 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2084 |     break 2 | 
 | 2085 |   fi | 
 | 2086 | done | 
 | 2087 | done | 
 | 2088 |  | 
 | 2089 | fi | 
 | 2090 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2091 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 2092 | if test -n "$ac_ct_CC"; then | 
 | 2093 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 2094 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2095 | else | 
 | 2096 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2097 | echo "${ECHO_T}no" >&6 | 
 | 2098 | fi | 
 | 2099 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2100 |   test -n "$ac_ct_CC" && break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2101 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2102 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2103 |   CC=$ac_ct_CC | 
 | 2104 | fi | 
 | 2105 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2106 | fi | 
 | 2107 |  | 
 | 2108 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2109 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 2110 | See \`config.log' for more details." >&5 | 
 | 2111 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 2112 | See \`config.log' for more details." >&2;} | 
 | 2113 |    { (exit 1); exit 1; }; } | 
 | 2114 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2115 | # Provide some information about the compiler. | 
 | 2116 | echo "$as_me:$LINENO:" \ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2117 |      "checking for C compiler version" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2118 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 2119 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 2120 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 2121 |   ac_status=$? | 
 | 2122 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2123 |   (exit $ac_status); } | 
 | 2124 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 2125 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 2126 |   ac_status=$? | 
 | 2127 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2128 |   (exit $ac_status); } | 
 | 2129 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 2130 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 2131 |   ac_status=$? | 
 | 2132 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2133 |   (exit $ac_status); } | 
 | 2134 |  | 
 | 2135 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2136 | /* confdefs.h.  */ | 
 | 2137 | _ACEOF | 
 | 2138 | cat confdefs.h >>conftest.$ac_ext | 
 | 2139 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2140 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2141 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2142 | int | 
 | 2143 | main () | 
 | 2144 | { | 
 | 2145 |  | 
 | 2146 |   ; | 
 | 2147 |   return 0; | 
 | 2148 | } | 
 | 2149 | _ACEOF | 
 | 2150 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2151 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2152 | # Try to create an executable without -o first, disregard a.out. | 
 | 2153 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 2154 | # of exeext. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2155 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 
 | 2156 | 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] | 2157 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 2158 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
 | 2159 |   (eval $ac_link_default) 2>&5 | 
 | 2160 |   ac_status=$? | 
 | 2161 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2162 |   (exit $ac_status); }; then | 
 | 2163 |   # Find the output, starting from the most likely.  This scheme is | 
 | 2164 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
 | 2165 | # resort. | 
 | 2166 |  | 
 | 2167 | # Be careful to initialize this variable, since it used to be cached. | 
 | 2168 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
 | 2169 | ac_cv_exeext= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2170 | # b.out is created by i960 compilers. | 
 | 2171 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
 | 2172 | do | 
 | 2173 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2174 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2175 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2176 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2177 |     conftest.$ac_ext ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2178 | 	# This is the source file. | 
 | 2179 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2180 |     [ab].out ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2181 | 	# We found the default executable, but exeext='' is most | 
 | 2182 | 	# certainly right. | 
 | 2183 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2184 |     *.* ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2185 | 	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 2186 | 	# FIXME: I believe we export ac_cv_exeext for Libtool, | 
 | 2187 | 	# but it would be cool to find out if it's true.  Does anybody | 
 | 2188 | 	# maintain Libtool? --akim. | 
 | 2189 | 	export ac_cv_exeext | 
 | 2190 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2191 |     * ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2192 | 	break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2193 |   esac | 
 | 2194 | done | 
 | 2195 | else | 
 | 2196 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2197 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2198 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2199 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2200 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2201 | echo "$as_me: error: C compiler cannot create executables | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2202 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2203 |    { (exit 77); exit 77; }; } | 
 | 2204 | fi | 
 | 2205 |  | 
 | 2206 | ac_exeext=$ac_cv_exeext | 
 | 2207 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
 | 2208 | echo "${ECHO_T}$ac_file" >&6 | 
 | 2209 |  | 
 | 2210 | # Check the compiler produces executables we can run.  If not, either | 
 | 2211 | # the compiler is broken, or we cross compile. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2212 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 
 | 2213 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2214 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
 | 2215 | # If not cross compiling, check that we can run a simple program. | 
 | 2216 | if test "$cross_compiling" != yes; then | 
 | 2217 |   if { ac_try='./$ac_file' | 
 | 2218 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2219 |   (eval $ac_try) 2>&5 | 
 | 2220 |   ac_status=$? | 
 | 2221 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2222 |   (exit $ac_status); }; }; then | 
 | 2223 |     cross_compiling=no | 
 | 2224 |   else | 
 | 2225 |     if test "$cross_compiling" = maybe; then | 
 | 2226 | 	cross_compiling=yes | 
 | 2227 |     else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2228 | 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2229 | If you meant to cross compile, use \`--host'. | 
 | 2230 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2231 | echo "$as_me: error: cannot run C compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2232 | If you meant to cross compile, use \`--host'. | 
 | 2233 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2234 |    { (exit 1); exit 1; }; } | 
 | 2235 |     fi | 
 | 2236 |   fi | 
 | 2237 | fi | 
 | 2238 | echo "$as_me:$LINENO: result: yes" >&5 | 
 | 2239 | echo "${ECHO_T}yes" >&6 | 
 | 2240 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2241 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2242 | ac_clean_files=$ac_clean_files_save | 
 | 2243 | # Check the compiler produces executables we can run.  If not, either | 
 | 2244 | # the compiler is broken, or we cross compile. | 
 | 2245 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
 | 2246 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
 | 2247 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
 | 2248 | echo "${ECHO_T}$cross_compiling" >&6 | 
 | 2249 |  | 
 | 2250 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
 | 2251 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
 | 2252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 2253 |   (eval $ac_link) 2>&5 | 
 | 2254 |   ac_status=$? | 
 | 2255 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2256 |   (exit $ac_status); }; then | 
 | 2257 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 2258 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 2259 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 2260 | # `rm'. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2261 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 2262 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2263 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2264 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2265 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2266 | 	  export ac_cv_exeext | 
 | 2267 | 	  break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2268 |     * ) break;; | 
 | 2269 |   esac | 
 | 2270 | done | 
 | 2271 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2272 |   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
 | 2273 | See \`config.log' for more details." >&5 | 
 | 2274 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
 | 2275 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2276 |    { (exit 1); exit 1; }; } | 
 | 2277 | fi | 
 | 2278 |  | 
 | 2279 | rm -f conftest$ac_cv_exeext | 
 | 2280 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
 | 2281 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
 | 2282 |  | 
 | 2283 | rm -f conftest.$ac_ext | 
 | 2284 | EXEEXT=$ac_cv_exeext | 
 | 2285 | ac_exeext=$EXEEXT | 
 | 2286 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
 | 2287 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
 | 2288 | if test "${ac_cv_objext+set}" = set; then | 
 | 2289 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2290 | else | 
 | 2291 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2292 | /* confdefs.h.  */ | 
 | 2293 | _ACEOF | 
 | 2294 | cat confdefs.h >>conftest.$ac_ext | 
 | 2295 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2296 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2297 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2298 | int | 
 | 2299 | main () | 
 | 2300 | { | 
 | 2301 |  | 
 | 2302 |   ; | 
 | 2303 |   return 0; | 
 | 2304 | } | 
 | 2305 | _ACEOF | 
 | 2306 | rm -f conftest.o conftest.obj | 
 | 2307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2308 |   (eval $ac_compile) 2>&5 | 
 | 2309 |   ac_status=$? | 
 | 2310 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2311 |   (exit $ac_status); }; then | 
 | 2312 |   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
 | 2313 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2314 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2315 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 2316 |        break;; | 
 | 2317 |   esac | 
 | 2318 | done | 
 | 2319 | else | 
 | 2320 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2321 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2322 |  | 
 | 2323 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
 | 2324 | See \`config.log' for more details." >&5 | 
 | 2325 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
 | 2326 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2327 |    { (exit 1); exit 1; }; } | 
 | 2328 | fi | 
 | 2329 |  | 
 | 2330 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 2331 | fi | 
 | 2332 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
 | 2333 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
 | 2334 | OBJEXT=$ac_cv_objext | 
 | 2335 | ac_objext=$OBJEXT | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2336 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 2337 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
 | 2338 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2339 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2340 | else | 
 | 2341 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2342 | /* confdefs.h.  */ | 
 | 2343 | _ACEOF | 
 | 2344 | cat confdefs.h >>conftest.$ac_ext | 
 | 2345 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2346 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2347 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2348 | int | 
 | 2349 | main () | 
 | 2350 | { | 
 | 2351 | #ifndef __GNUC__ | 
 | 2352 |        choke me | 
 | 2353 | #endif | 
 | 2354 |  | 
 | 2355 |   ; | 
 | 2356 |   return 0; | 
 | 2357 | } | 
 | 2358 | _ACEOF | 
 | 2359 | rm -f conftest.$ac_objext | 
 | 2360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2361 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2362 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2363 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2364 |   rm -f conftest.er1 | 
 | 2365 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2366 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2367 |   (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2368 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2369 | 			 || test ! -s conftest.err' | 
 | 2370 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2371 |   (eval $ac_try) 2>&5 | 
 | 2372 |   ac_status=$? | 
 | 2373 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2374 |   (exit $ac_status); }; } && | 
 | 2375 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2376 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2377 |   (eval $ac_try) 2>&5 | 
 | 2378 |   ac_status=$? | 
 | 2379 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2380 |   (exit $ac_status); }; }; then | 
 | 2381 |   ac_compiler_gnu=yes | 
 | 2382 | else | 
 | 2383 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2384 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2385 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2386 | ac_compiler_gnu=no | 
 | 2387 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2389 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2390 |  | 
 | 2391 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2392 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 2393 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
 | 2394 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 2395 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 2396 | ac_save_CFLAGS=$CFLAGS | 
 | 2397 | CFLAGS="-g" | 
 | 2398 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 2399 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
 | 2400 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2401 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2402 | else | 
 | 2403 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2404 | /* confdefs.h.  */ | 
 | 2405 | _ACEOF | 
 | 2406 | cat confdefs.h >>conftest.$ac_ext | 
 | 2407 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2408 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2409 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2410 | int | 
 | 2411 | main () | 
 | 2412 | { | 
 | 2413 |  | 
 | 2414 |   ; | 
 | 2415 |   return 0; | 
 | 2416 | } | 
 | 2417 | _ACEOF | 
 | 2418 | rm -f conftest.$ac_objext | 
 | 2419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2420 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2421 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2422 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2423 |   rm -f conftest.er1 | 
 | 2424 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2425 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2426 |   (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2427 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2428 | 			 || test ! -s conftest.err' | 
 | 2429 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2430 |   (eval $ac_try) 2>&5 | 
 | 2431 |   ac_status=$? | 
 | 2432 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2433 |   (exit $ac_status); }; } && | 
 | 2434 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2435 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2436 |   (eval $ac_try) 2>&5 | 
 | 2437 |   ac_status=$? | 
 | 2438 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2439 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2440 |   ac_cv_prog_cc_g=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2441 | else | 
 | 2442 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2443 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2444 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2445 | ac_cv_prog_cc_g=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2446 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2448 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2449 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 2450 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
 | 2451 | if test "$ac_test_CFLAGS" = set; then | 
 | 2452 |   CFLAGS=$ac_save_CFLAGS | 
 | 2453 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 2454 |   if test "$GCC" = yes; then | 
 | 2455 |     CFLAGS="-g -O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2456 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2457 |     CFLAGS="-g" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2458 |   fi | 
 | 2459 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 |   if test "$GCC" = yes; then | 
 | 2461 |     CFLAGS="-O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2462 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2463 |     CFLAGS= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2464 |   fi | 
 | 2465 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2466 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
 | 2467 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
 | 2468 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
 | 2469 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2470 | else | 
 | 2471 |   ac_cv_prog_cc_stdc=no | 
 | 2472 | ac_save_CC=$CC | 
 | 2473 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2474 | /* confdefs.h.  */ | 
 | 2475 | _ACEOF | 
 | 2476 | cat confdefs.h >>conftest.$ac_ext | 
 | 2477 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2478 | /* end confdefs.h.  */ | 
 | 2479 | #include <stdarg.h> | 
 | 2480 | #include <stdio.h> | 
 | 2481 | #include <sys/types.h> | 
 | 2482 | #include <sys/stat.h> | 
 | 2483 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 2484 | struct buf { int x; }; | 
 | 2485 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 2486 | static char *e (p, i) | 
 | 2487 |      char **p; | 
 | 2488 |      int i; | 
 | 2489 | { | 
 | 2490 |   return p[i]; | 
 | 2491 | } | 
 | 2492 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 2493 | { | 
 | 2494 |   char *s; | 
 | 2495 |   va_list v; | 
 | 2496 |   va_start (v,p); | 
 | 2497 |   s = g (p, va_arg (v,int)); | 
 | 2498 |   va_end (v); | 
 | 2499 |   return s; | 
 | 2500 | } | 
 | 2501 |  | 
 | 2502 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 2503 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 2504 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 2505 |    as 'x'.  The following induces an error, until -std1 is added to get | 
 | 2506 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 2507 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 2508 |    that's true only with -std1.  */ | 
 | 2509 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 2510 |  | 
 | 2511 | int test (int i, double x); | 
 | 2512 | struct s1 {int (*f) (int a);}; | 
 | 2513 | struct s2 {int (*f) (double a);}; | 
 | 2514 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 2515 | int argc; | 
 | 2516 | char **argv; | 
 | 2517 | int | 
 | 2518 | main () | 
 | 2519 | { | 
 | 2520 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 2521 |   ; | 
 | 2522 |   return 0; | 
 | 2523 | } | 
 | 2524 | _ACEOF | 
 | 2525 | # Don't try gcc -ansi; that turns off useful extensions and | 
 | 2526 | # breaks some systems' header files. | 
 | 2527 | # AIX			-qlanglvl=ansi | 
 | 2528 | # Ultrix and OSF/1	-std1 | 
 | 2529 | # HP-UX 10.20 and later	-Ae | 
 | 2530 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
 | 2531 | # SVR4			-Xc -D__EXTENSIONS__ | 
 | 2532 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 2533 | do | 
 | 2534 |   CC="$ac_save_CC $ac_arg" | 
 | 2535 |   rm -f conftest.$ac_objext | 
 | 2536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2537 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2538 |   ac_status=$? | 
 | 2539 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2540 |   rm -f conftest.er1 | 
 | 2541 |   cat conftest.err >&5 | 
 | 2542 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2543 |   (exit $ac_status); } && | 
 | 2544 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2545 | 			 || test ! -s conftest.err' | 
 | 2546 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2547 |   (eval $ac_try) 2>&5 | 
 | 2548 |   ac_status=$? | 
 | 2549 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2550 |   (exit $ac_status); }; } && | 
 | 2551 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2552 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2553 |   (eval $ac_try) 2>&5 | 
 | 2554 |   ac_status=$? | 
 | 2555 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2556 |   (exit $ac_status); }; }; then | 
 | 2557 |   ac_cv_prog_cc_stdc=$ac_arg | 
 | 2558 | break | 
 | 2559 | else | 
 | 2560 |   echo "$as_me: failed program was:" >&5 | 
 | 2561 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2562 |  | 
 | 2563 | fi | 
 | 2564 | rm -f conftest.err conftest.$ac_objext | 
 | 2565 | done | 
 | 2566 | rm -f conftest.$ac_ext conftest.$ac_objext | 
 | 2567 | CC=$ac_save_CC | 
 | 2568 |  | 
 | 2569 | fi | 
 | 2570 |  | 
 | 2571 | case "x$ac_cv_prog_cc_stdc" in | 
 | 2572 |   x|xno) | 
 | 2573 |     echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 2574 | echo "${ECHO_T}none needed" >&6 ;; | 
 | 2575 |   *) | 
 | 2576 |     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
 | 2577 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
 | 2578 |     CC="$CC $ac_cv_prog_cc_stdc" ;; | 
 | 2579 | esac | 
 | 2580 |  | 
 | 2581 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
 | 2582 | # in C++ we need to declare it.  In case someone uses the same compiler | 
 | 2583 | # for both compiling C and C++ we need to have the C++ compiler decide | 
 | 2584 | # the declaration of exit, since it's the most demanding environment. | 
 | 2585 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2586 | #ifndef __cplusplus | 
 | 2587 |   choke me | 
 | 2588 | #endif | 
 | 2589 | _ACEOF | 
 | 2590 | rm -f conftest.$ac_objext | 
 | 2591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2592 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2593 |   ac_status=$? | 
 | 2594 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2595 |   rm -f conftest.er1 | 
 | 2596 |   cat conftest.err >&5 | 
 | 2597 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2598 |   (exit $ac_status); } && | 
 | 2599 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2600 | 			 || test ! -s conftest.err' | 
 | 2601 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2602 |   (eval $ac_try) 2>&5 | 
 | 2603 |   ac_status=$? | 
 | 2604 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2605 |   (exit $ac_status); }; } && | 
 | 2606 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2607 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2608 |   (eval $ac_try) 2>&5 | 
 | 2609 |   ac_status=$? | 
 | 2610 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2611 |   (exit $ac_status); }; }; then | 
 | 2612 |   for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2613 |    '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2614 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 2615 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 2616 |    'extern "C" void exit (int) throw ();' \ | 
 | 2617 |    'extern "C" void exit (int);' \ | 
 | 2618 |    'void exit (int);' | 
 | 2619 | do | 
 | 2620 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2621 | /* confdefs.h.  */ | 
 | 2622 | _ACEOF | 
 | 2623 | cat confdefs.h >>conftest.$ac_ext | 
 | 2624 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2625 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 2626 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2627 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 | int | 
 | 2629 | main () | 
 | 2630 | { | 
 | 2631 | exit (42); | 
 | 2632 |   ; | 
 | 2633 |   return 0; | 
 | 2634 | } | 
 | 2635 | _ACEOF | 
 | 2636 | rm -f conftest.$ac_objext | 
 | 2637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2638 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2639 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2640 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2641 |   rm -f conftest.er1 | 
 | 2642 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2643 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2644 |   (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2645 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2646 | 			 || test ! -s conftest.err' | 
 | 2647 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2648 |   (eval $ac_try) 2>&5 | 
 | 2649 |   ac_status=$? | 
 | 2650 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2651 |   (exit $ac_status); }; } && | 
 | 2652 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2653 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2654 |   (eval $ac_try) 2>&5 | 
 | 2655 |   ac_status=$? | 
 | 2656 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2657 |   (exit $ac_status); }; }; then | 
 | 2658 |   : | 
 | 2659 | else | 
 | 2660 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2661 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2662 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | continue | 
 | 2664 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2666 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2667 | /* confdefs.h.  */ | 
 | 2668 | _ACEOF | 
 | 2669 | cat confdefs.h >>conftest.$ac_ext | 
 | 2670 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2671 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2672 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2673 | int | 
 | 2674 | main () | 
 | 2675 | { | 
 | 2676 | exit (42); | 
 | 2677 |   ; | 
 | 2678 |   return 0; | 
 | 2679 | } | 
 | 2680 | _ACEOF | 
 | 2681 | rm -f conftest.$ac_objext | 
 | 2682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2683 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2684 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2685 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2686 |   rm -f conftest.er1 | 
 | 2687 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2688 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2689 |   (exit $ac_status); } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2690 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2691 | 			 || test ! -s conftest.err' | 
 | 2692 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2693 |   (eval $ac_try) 2>&5 | 
 | 2694 |   ac_status=$? | 
 | 2695 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2696 |   (exit $ac_status); }; } && | 
 | 2697 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2698 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2699 |   (eval $ac_try) 2>&5 | 
 | 2700 |   ac_status=$? | 
 | 2701 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2702 |   (exit $ac_status); }; }; then | 
 | 2703 |   break | 
 | 2704 | else | 
 | 2705 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2706 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2707 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2708 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2710 | done | 
 | 2711 | rm -f conftest* | 
 | 2712 | if test -n "$ac_declaration"; then | 
 | 2713 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 2714 |   echo $ac_declaration      >>confdefs.h | 
 | 2715 |   echo '#endif'             >>confdefs.h | 
 | 2716 | fi | 
 | 2717 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2718 | else | 
 | 2719 |   echo "$as_me: failed program was:" >&5 | 
 | 2720 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2721 |  | 
 | 2722 | fi | 
 | 2723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2724 | ac_ext=c | 
 | 2725 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2729 |  | 
 | 2730 |  | 
 | 2731 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
 | 2732 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | 
 | 2733 | if test "${ac_cv_c_bigendian+set}" = set; then | 
 | 2734 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2735 | else | 
 | 2736 |   # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 2737 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2738 | /* confdefs.h.  */ | 
 | 2739 | _ACEOF | 
 | 2740 | cat confdefs.h >>conftest.$ac_ext | 
 | 2741 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2742 | /* end confdefs.h.  */ | 
 | 2743 | #include <sys/types.h> | 
 | 2744 | #include <sys/param.h> | 
 | 2745 |  | 
 | 2746 | int | 
 | 2747 | main () | 
 | 2748 | { | 
 | 2749 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
 | 2750 |  bogus endian macros | 
 | 2751 | #endif | 
 | 2752 |  | 
 | 2753 |   ; | 
 | 2754 |   return 0; | 
 | 2755 | } | 
 | 2756 | _ACEOF | 
 | 2757 | rm -f conftest.$ac_objext | 
 | 2758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2759 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2760 |   ac_status=$? | 
 | 2761 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2762 |   rm -f conftest.er1 | 
 | 2763 |   cat conftest.err >&5 | 
 | 2764 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2765 |   (exit $ac_status); } && | 
 | 2766 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2767 | 			 || test ! -s conftest.err' | 
 | 2768 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2769 |   (eval $ac_try) 2>&5 | 
 | 2770 |   ac_status=$? | 
 | 2771 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2772 |   (exit $ac_status); }; } && | 
 | 2773 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2774 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2775 |   (eval $ac_try) 2>&5 | 
 | 2776 |   ac_status=$? | 
 | 2777 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2778 |   (exit $ac_status); }; }; then | 
 | 2779 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
 | 2780 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2781 | /* confdefs.h.  */ | 
 | 2782 | _ACEOF | 
 | 2783 | cat confdefs.h >>conftest.$ac_ext | 
 | 2784 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2785 | /* end confdefs.h.  */ | 
 | 2786 | #include <sys/types.h> | 
 | 2787 | #include <sys/param.h> | 
 | 2788 |  | 
 | 2789 | int | 
 | 2790 | main () | 
 | 2791 | { | 
 | 2792 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 2793 |  not big endian | 
 | 2794 | #endif | 
 | 2795 |  | 
 | 2796 |   ; | 
 | 2797 |   return 0; | 
 | 2798 | } | 
 | 2799 | _ACEOF | 
 | 2800 | rm -f conftest.$ac_objext | 
 | 2801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2802 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2803 |   ac_status=$? | 
 | 2804 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2805 |   rm -f conftest.er1 | 
 | 2806 |   cat conftest.err >&5 | 
 | 2807 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2808 |   (exit $ac_status); } && | 
 | 2809 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2810 | 			 || test ! -s conftest.err' | 
 | 2811 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2812 |   (eval $ac_try) 2>&5 | 
 | 2813 |   ac_status=$? | 
 | 2814 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2815 |   (exit $ac_status); }; } && | 
 | 2816 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2817 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2818 |   (eval $ac_try) 2>&5 | 
 | 2819 |   ac_status=$? | 
 | 2820 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2821 |   (exit $ac_status); }; }; then | 
 | 2822 |   ac_cv_c_bigendian=yes | 
 | 2823 | else | 
 | 2824 |   echo "$as_me: failed program was:" >&5 | 
 | 2825 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2826 |  | 
 | 2827 | ac_cv_c_bigendian=no | 
 | 2828 | fi | 
 | 2829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2830 | else | 
 | 2831 |   echo "$as_me: failed program was:" >&5 | 
 | 2832 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2833 |  | 
 | 2834 | # It does not; compile a test program. | 
 | 2835 | if test "$cross_compiling" = yes; then | 
 | 2836 |   # try to guess the endianness by grepping values into an object file | 
 | 2837 |   ac_cv_c_bigendian=unknown | 
 | 2838 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2839 | /* confdefs.h.  */ | 
 | 2840 | _ACEOF | 
 | 2841 | cat confdefs.h >>conftest.$ac_ext | 
 | 2842 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2843 | /* end confdefs.h.  */ | 
 | 2844 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 2845 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 2846 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
 | 2847 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 2848 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 2849 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
 | 2850 | int | 
 | 2851 | main () | 
 | 2852 | { | 
 | 2853 |  _ascii (); _ebcdic (); | 
 | 2854 |   ; | 
 | 2855 |   return 0; | 
 | 2856 | } | 
 | 2857 | _ACEOF | 
 | 2858 | rm -f conftest.$ac_objext | 
 | 2859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2860 |   (eval $ac_compile) 2>conftest.er1 | 
 | 2861 |   ac_status=$? | 
 | 2862 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 2863 |   rm -f conftest.er1 | 
 | 2864 |   cat conftest.err >&5 | 
 | 2865 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2866 |   (exit $ac_status); } && | 
 | 2867 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 2868 | 			 || test ! -s conftest.err' | 
 | 2869 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2870 |   (eval $ac_try) 2>&5 | 
 | 2871 |   ac_status=$? | 
 | 2872 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2873 |   (exit $ac_status); }; } && | 
 | 2874 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 2875 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2876 |   (eval $ac_try) 2>&5 | 
 | 2877 |   ac_status=$? | 
 | 2878 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2879 |   (exit $ac_status); }; }; then | 
 | 2880 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
 | 2881 |   ac_cv_c_bigendian=yes | 
 | 2882 | fi | 
 | 2883 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 2884 |   if test "$ac_cv_c_bigendian" = unknown; then | 
 | 2885 |     ac_cv_c_bigendian=no | 
 | 2886 |   else | 
 | 2887 |     # finding both strings is unlikely to happen, but who knows? | 
 | 2888 |     ac_cv_c_bigendian=unknown | 
 | 2889 |   fi | 
 | 2890 | fi | 
 | 2891 | else | 
 | 2892 |   echo "$as_me: failed program was:" >&5 | 
 | 2893 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2894 |  | 
 | 2895 | fi | 
 | 2896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2897 | else | 
 | 2898 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2899 | /* confdefs.h.  */ | 
 | 2900 | _ACEOF | 
 | 2901 | cat confdefs.h >>conftest.$ac_ext | 
 | 2902 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2903 | /* end confdefs.h.  */ | 
 | 2904 | int | 
 | 2905 | main () | 
 | 2906 | { | 
 | 2907 |   /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 2908 |   union | 
 | 2909 |   { | 
 | 2910 |     long l; | 
 | 2911 |     char c[sizeof (long)]; | 
 | 2912 |   } u; | 
 | 2913 |   u.l = 1; | 
 | 2914 |   exit (u.c[sizeof (long) - 1] == 1); | 
 | 2915 | } | 
 | 2916 | _ACEOF | 
 | 2917 | rm -f conftest$ac_exeext | 
 | 2918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 2919 |   (eval $ac_link) 2>&5 | 
 | 2920 |   ac_status=$? | 
 | 2921 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2922 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 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 |   ac_cv_c_bigendian=no | 
 | 2929 | else | 
 | 2930 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 2931 | echo "$as_me: failed program was:" >&5 | 
 | 2932 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2933 |  | 
 | 2934 | ( exit $ac_status ) | 
 | 2935 | ac_cv_c_bigendian=yes | 
 | 2936 | fi | 
 | 2937 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
 | 2938 | fi | 
 | 2939 | fi | 
 | 2940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2941 | fi | 
 | 2942 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
 | 2943 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | 
 | 2944 | case $ac_cv_c_bigendian in | 
 | 2945 |   yes) | 
 | 2946 |     ENDIAN=big | 
 | 2947 |  ;; | 
 | 2948 |   no) | 
 | 2949 |     ENDIAN=little | 
 | 2950 |  ;; | 
 | 2951 |   *) | 
 | 2952 |     { { echo "$as_me:$LINENO: error: unknown endianness | 
 | 2953 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
 | 2954 | echo "$as_me: error: unknown endianness | 
 | 2955 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
 | 2956 |    { (exit 1); exit 1; }; } ;; | 
 | 2957 | esac | 
 | 2958 |  | 
 | 2959 |  | 
 | 2960 |  | 
 | 2961 | # Check whether --enable-optimized or --disable-optimized was given. | 
 | 2962 | if test "${enable_optimized+set}" = set; then | 
 | 2963 |   enableval="$enable_optimized" | 
 | 2964 |  | 
 | 2965 | else | 
 | 2966 |   enableval=no | 
 | 2967 | fi; | 
 | 2968 | if test ${enableval} = "no" ; then | 
 | 2969 |   ENABLE_OPTIMIZED= | 
 | 2970 |  | 
 | 2971 | else | 
 | 2972 |   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
 | 2973 |  | 
 | 2974 | fi | 
 | 2975 |  | 
 | 2976 | # Check whether --enable-jit or --disable-jit was given. | 
 | 2977 | if test "${enable_jit+set}" = set; then | 
 | 2978 |   enableval="$enable_jit" | 
 | 2979 |  | 
 | 2980 | else | 
 | 2981 |   enableval=default | 
 | 2982 | fi; | 
 | 2983 | if test ${enableval} = "no" | 
 | 2984 | then | 
 | 2985 |   JIT= | 
 | 2986 |  | 
 | 2987 | else | 
| Reid Spencer | efbe40a | 2004-11-25 07:28:19 +0000 | [diff] [blame] | 2988 |   case "$llvm_cv_target_arch" in | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2989 |     x86)     JIT=TARGET_HAS_JIT=1 | 
 | 2990 |  ;; | 
 | 2991 |     Sparc)   JIT=TARGET_HAS_JIT=1 | 
 | 2992 |  ;; | 
 | 2993 |     PowerPC) JIT=TARGET_HAS_JIT=1 | 
 | 2994 |  ;; | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2995 |     AMD64)   JIT= | 
| Reid Spencer | 95ed843 | 2004-12-23 06:22:33 +0000 | [diff] [blame] | 2996 |  ;; | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2997 |     *)       JIT= | 
 | 2998 |  ;; | 
 | 2999 |   esac | 
 | 3000 | fi | 
 | 3001 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3002 | # Check whether --enable-doxygen or --disable-doxygen was given. | 
 | 3003 | if test "${enable_doxygen+set}" = set; then | 
 | 3004 |   enableval="$enable_doxygen" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3005 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3006 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3007 |   enableval=default | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3008 | fi; | 
 | 3009 | case "$enableval" in | 
 | 3010 |   yes) ENABLE_DOXYGEN=1 | 
 | 3011 |  ;; | 
 | 3012 |   no)  ENABLE_DOXYGEN=0 | 
 | 3013 |  ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3014 |   default) ENABLE_DOXYGEN=0 | 
 | 3015 |  ;; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 3016 |   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 | 
 | 3017 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} | 
 | 3018 |    { (exit 1); exit 1; }; } ;; | 
 | 3019 | esac | 
 | 3020 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3021 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3022 | ac_ext=c | 
 | 3023 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3027 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
 | 3028 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
 | 3029 | # On Suns, sometimes $CPP names a directory. | 
 | 3030 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 3031 |   CPP= | 
 | 3032 | fi | 
 | 3033 | if test -z "$CPP"; then | 
 | 3034 |   if test "${ac_cv_prog_CPP+set}" = set; then | 
 | 3035 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3036 | else | 
 | 3037 |       # Double quotes because CPP needs to be expanded | 
 | 3038 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 3039 |     do | 
 | 3040 |       ac_preproc_ok=false | 
 | 3041 | for ac_c_preproc_warn_flag in '' yes | 
 | 3042 | do | 
 | 3043 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3044 |   # with a fresh cross-compiler works. | 
 | 3045 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3046 |   # <limits.h> exists even on freestanding compilers. | 
 | 3047 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3048 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3049 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3050 | /* confdefs.h.  */ | 
 | 3051 | _ACEOF | 
 | 3052 | cat confdefs.h >>conftest.$ac_ext | 
 | 3053 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3054 | /* end confdefs.h.  */ | 
 | 3055 | #ifdef __STDC__ | 
 | 3056 | # include <limits.h> | 
 | 3057 | #else | 
 | 3058 | # include <assert.h> | 
 | 3059 | #endif | 
 | 3060 | 		     Syntax error | 
 | 3061 | _ACEOF | 
 | 3062 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3063 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3064 |   ac_status=$? | 
 | 3065 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3066 |   rm -f conftest.er1 | 
 | 3067 |   cat conftest.err >&5 | 
 | 3068 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3069 |   (exit $ac_status); } >/dev/null; then | 
 | 3070 |   if test -s conftest.err; then | 
 | 3071 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3072 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3073 |   else | 
 | 3074 |     ac_cpp_err= | 
 | 3075 |   fi | 
 | 3076 | else | 
 | 3077 |   ac_cpp_err=yes | 
 | 3078 | fi | 
 | 3079 | if test -z "$ac_cpp_err"; then | 
 | 3080 |   : | 
 | 3081 | else | 
 | 3082 |   echo "$as_me: failed program was:" >&5 | 
 | 3083 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3084 |  | 
 | 3085 |   # Broken: fails on valid input. | 
 | 3086 | continue | 
 | 3087 | fi | 
 | 3088 | rm -f conftest.err conftest.$ac_ext | 
 | 3089 |  | 
 | 3090 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3091 |   # can be detected and how. | 
 | 3092 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3093 | /* confdefs.h.  */ | 
 | 3094 | _ACEOF | 
 | 3095 | cat confdefs.h >>conftest.$ac_ext | 
 | 3096 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3097 | /* end confdefs.h.  */ | 
 | 3098 | #include <ac_nonexistent.h> | 
 | 3099 | _ACEOF | 
 | 3100 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3101 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3102 |   ac_status=$? | 
 | 3103 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3104 |   rm -f conftest.er1 | 
 | 3105 |   cat conftest.err >&5 | 
 | 3106 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3107 |   (exit $ac_status); } >/dev/null; then | 
 | 3108 |   if test -s conftest.err; then | 
 | 3109 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3110 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3111 |   else | 
 | 3112 |     ac_cpp_err= | 
 | 3113 |   fi | 
 | 3114 | else | 
 | 3115 |   ac_cpp_err=yes | 
 | 3116 | fi | 
 | 3117 | if test -z "$ac_cpp_err"; then | 
 | 3118 |   # Broken: success on invalid input. | 
 | 3119 | continue | 
 | 3120 | else | 
 | 3121 |   echo "$as_me: failed program was:" >&5 | 
 | 3122 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3123 |  | 
 | 3124 |   # Passes both tests. | 
 | 3125 | ac_preproc_ok=: | 
 | 3126 | break | 
 | 3127 | fi | 
 | 3128 | rm -f conftest.err conftest.$ac_ext | 
 | 3129 |  | 
 | 3130 | done | 
 | 3131 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3132 | rm -f conftest.err conftest.$ac_ext | 
 | 3133 | if $ac_preproc_ok; then | 
 | 3134 |   break | 
 | 3135 | fi | 
 | 3136 |  | 
 | 3137 |     done | 
 | 3138 |     ac_cv_prog_CPP=$CPP | 
 | 3139 |  | 
 | 3140 | fi | 
 | 3141 |   CPP=$ac_cv_prog_CPP | 
 | 3142 | else | 
 | 3143 |   ac_cv_prog_CPP=$CPP | 
 | 3144 | fi | 
 | 3145 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
 | 3146 | echo "${ECHO_T}$CPP" >&6 | 
 | 3147 | ac_preproc_ok=false | 
 | 3148 | for ac_c_preproc_warn_flag in '' yes | 
 | 3149 | do | 
 | 3150 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3151 |   # with a fresh cross-compiler works. | 
 | 3152 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3153 |   # <limits.h> exists even on freestanding compilers. | 
 | 3154 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3155 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3156 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3157 | /* confdefs.h.  */ | 
 | 3158 | _ACEOF | 
 | 3159 | cat confdefs.h >>conftest.$ac_ext | 
 | 3160 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3161 | /* end confdefs.h.  */ | 
 | 3162 | #ifdef __STDC__ | 
 | 3163 | # include <limits.h> | 
 | 3164 | #else | 
 | 3165 | # include <assert.h> | 
 | 3166 | #endif | 
 | 3167 | 		     Syntax error | 
 | 3168 | _ACEOF | 
 | 3169 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3170 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3171 |   ac_status=$? | 
 | 3172 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3173 |   rm -f conftest.er1 | 
 | 3174 |   cat conftest.err >&5 | 
 | 3175 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3176 |   (exit $ac_status); } >/dev/null; then | 
 | 3177 |   if test -s conftest.err; then | 
 | 3178 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3179 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3180 |   else | 
 | 3181 |     ac_cpp_err= | 
 | 3182 |   fi | 
 | 3183 | else | 
 | 3184 |   ac_cpp_err=yes | 
 | 3185 | fi | 
 | 3186 | if test -z "$ac_cpp_err"; then | 
 | 3187 |   : | 
 | 3188 | else | 
 | 3189 |   echo "$as_me: failed program was:" >&5 | 
 | 3190 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3191 |  | 
 | 3192 |   # Broken: fails on valid input. | 
 | 3193 | continue | 
 | 3194 | fi | 
 | 3195 | rm -f conftest.err conftest.$ac_ext | 
 | 3196 |  | 
 | 3197 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3198 |   # can be detected and how. | 
 | 3199 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3200 | /* confdefs.h.  */ | 
 | 3201 | _ACEOF | 
 | 3202 | cat confdefs.h >>conftest.$ac_ext | 
 | 3203 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3204 | /* end confdefs.h.  */ | 
 | 3205 | #include <ac_nonexistent.h> | 
 | 3206 | _ACEOF | 
 | 3207 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3208 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3209 |   ac_status=$? | 
 | 3210 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3211 |   rm -f conftest.er1 | 
 | 3212 |   cat conftest.err >&5 | 
 | 3213 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3214 |   (exit $ac_status); } >/dev/null; then | 
 | 3215 |   if test -s conftest.err; then | 
 | 3216 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3217 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3218 |   else | 
 | 3219 |     ac_cpp_err= | 
 | 3220 |   fi | 
 | 3221 | else | 
 | 3222 |   ac_cpp_err=yes | 
 | 3223 | fi | 
 | 3224 | if test -z "$ac_cpp_err"; then | 
 | 3225 |   # Broken: success on invalid input. | 
 | 3226 | continue | 
 | 3227 | else | 
 | 3228 |   echo "$as_me: failed program was:" >&5 | 
 | 3229 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3230 |  | 
 | 3231 |   # Passes both tests. | 
 | 3232 | ac_preproc_ok=: | 
 | 3233 | break | 
 | 3234 | fi | 
 | 3235 | rm -f conftest.err conftest.$ac_ext | 
 | 3236 |  | 
 | 3237 | done | 
 | 3238 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3239 | rm -f conftest.err conftest.$ac_ext | 
 | 3240 | if $ac_preproc_ok; then | 
 | 3241 |   : | 
 | 3242 | else | 
 | 3243 |   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3244 | See \`config.log' for more details." >&5 | 
 | 3245 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3246 | See \`config.log' for more details." >&2;} | 
 | 3247 |    { (exit 1); exit 1; }; } | 
 | 3248 | fi | 
 | 3249 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3250 | ac_ext=c | 
 | 3251 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3255 |  | 
 | 3256 | ac_ext=c | 
 | 3257 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3261 | if test -n "$ac_tool_prefix"; then | 
 | 3262 |   for ac_prog in gcc | 
 | 3263 |   do | 
 | 3264 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3265 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 3266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3268 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 3269 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3270 | else | 
 | 3271 |   if test -n "$CC"; then | 
 | 3272 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 3273 | else | 
 | 3274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3275 | for as_dir in $PATH | 
 | 3276 | do | 
 | 3277 |   IFS=$as_save_IFS | 
 | 3278 |   test -z "$as_dir" && as_dir=. | 
 | 3279 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3280 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3281 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
 | 3282 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3283 |     break 2 | 
 | 3284 |   fi | 
 | 3285 | done | 
 | 3286 | done | 
 | 3287 |  | 
 | 3288 | fi | 
 | 3289 | fi | 
 | 3290 | CC=$ac_cv_prog_CC | 
 | 3291 | if test -n "$CC"; then | 
 | 3292 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 3293 | echo "${ECHO_T}$CC" >&6 | 
 | 3294 | else | 
 | 3295 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3296 | echo "${ECHO_T}no" >&6 | 
 | 3297 | fi | 
 | 3298 |  | 
 | 3299 |     test -n "$CC" && break | 
 | 3300 |   done | 
 | 3301 | fi | 
 | 3302 | if test -z "$CC"; then | 
 | 3303 |   ac_ct_CC=$CC | 
 | 3304 |   for ac_prog in gcc | 
 | 3305 | do | 
 | 3306 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3307 | set dummy $ac_prog; ac_word=$2 | 
 | 3308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3310 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 3311 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3312 | else | 
 | 3313 |   if test -n "$ac_ct_CC"; then | 
 | 3314 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 3315 | else | 
 | 3316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3317 | for as_dir in $PATH | 
 | 3318 | do | 
 | 3319 |   IFS=$as_save_IFS | 
 | 3320 |   test -z "$as_dir" && as_dir=. | 
 | 3321 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3322 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3323 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
 | 3324 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3325 |     break 2 | 
 | 3326 |   fi | 
 | 3327 | done | 
 | 3328 | done | 
 | 3329 |  | 
 | 3330 | fi | 
 | 3331 | fi | 
 | 3332 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 3333 | if test -n "$ac_ct_CC"; then | 
 | 3334 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 3335 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 3336 | else | 
 | 3337 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3338 | echo "${ECHO_T}no" >&6 | 
 | 3339 | fi | 
 | 3340 |  | 
 | 3341 |   test -n "$ac_ct_CC" && break | 
 | 3342 | done | 
 | 3343 |  | 
 | 3344 |   CC=$ac_ct_CC | 
 | 3345 | fi | 
 | 3346 |  | 
 | 3347 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3348 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 3349 | See \`config.log' for more details." >&5 | 
 | 3350 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 3351 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3352 |    { (exit 1); exit 1; }; } | 
 | 3353 |  | 
 | 3354 | # Provide some information about the compiler. | 
 | 3355 | echo "$as_me:$LINENO:" \ | 
 | 3356 |      "checking for C compiler version" >&5 | 
 | 3357 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 3358 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 3359 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 3360 |   ac_status=$? | 
 | 3361 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3362 |   (exit $ac_status); } | 
 | 3363 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 3364 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 3365 |   ac_status=$? | 
 | 3366 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3367 |   (exit $ac_status); } | 
 | 3368 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 3369 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 3370 |   ac_status=$? | 
 | 3371 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3372 |   (exit $ac_status); } | 
 | 3373 |  | 
 | 3374 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 3375 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
 | 3376 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
 | 3377 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3378 | else | 
 | 3379 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3380 | /* confdefs.h.  */ | 
 | 3381 | _ACEOF | 
 | 3382 | cat confdefs.h >>conftest.$ac_ext | 
 | 3383 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3384 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3385 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3386 | int | 
 | 3387 | main () | 
 | 3388 | { | 
 | 3389 | #ifndef __GNUC__ | 
 | 3390 |        choke me | 
 | 3391 | #endif | 
 | 3392 |  | 
 | 3393 |   ; | 
 | 3394 |   return 0; | 
 | 3395 | } | 
 | 3396 | _ACEOF | 
 | 3397 | rm -f conftest.$ac_objext | 
 | 3398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3399 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3400 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3401 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3402 |   rm -f conftest.er1 | 
 | 3403 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3404 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3405 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3406 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3407 | 			 || test ! -s conftest.err' | 
 | 3408 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3409 |   (eval $ac_try) 2>&5 | 
 | 3410 |   ac_status=$? | 
 | 3411 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3412 |   (exit $ac_status); }; } && | 
 | 3413 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3414 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3415 |   (eval $ac_try) 2>&5 | 
 | 3416 |   ac_status=$? | 
 | 3417 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3418 |   (exit $ac_status); }; }; then | 
 | 3419 |   ac_compiler_gnu=yes | 
 | 3420 | else | 
 | 3421 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3422 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3423 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3424 | ac_compiler_gnu=no | 
 | 3425 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3427 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 3428 |  | 
 | 3429 | fi | 
 | 3430 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 3431 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
 | 3432 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 3433 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 3434 | ac_save_CFLAGS=$CFLAGS | 
 | 3435 | CFLAGS="-g" | 
 | 3436 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 3437 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
 | 3438 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
 | 3439 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3440 | else | 
 | 3441 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3442 | /* confdefs.h.  */ | 
 | 3443 | _ACEOF | 
 | 3444 | cat confdefs.h >>conftest.$ac_ext | 
 | 3445 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3446 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3447 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3448 | int | 
 | 3449 | main () | 
 | 3450 | { | 
 | 3451 |  | 
 | 3452 |   ; | 
 | 3453 |   return 0; | 
 | 3454 | } | 
 | 3455 | _ACEOF | 
 | 3456 | rm -f conftest.$ac_objext | 
 | 3457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3458 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3459 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3460 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3461 |   rm -f conftest.er1 | 
 | 3462 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3463 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3464 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3465 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3466 | 			 || test ! -s conftest.err' | 
 | 3467 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3468 |   (eval $ac_try) 2>&5 | 
 | 3469 |   ac_status=$? | 
 | 3470 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3471 |   (exit $ac_status); }; } && | 
 | 3472 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3473 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3474 |   (eval $ac_try) 2>&5 | 
 | 3475 |   ac_status=$? | 
 | 3476 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3477 |   (exit $ac_status); }; }; then | 
 | 3478 |   ac_cv_prog_cc_g=yes | 
 | 3479 | else | 
 | 3480 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3481 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3482 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3483 | ac_cv_prog_cc_g=no | 
 | 3484 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3486 | fi | 
 | 3487 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 3488 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
 | 3489 | if test "$ac_test_CFLAGS" = set; then | 
 | 3490 |   CFLAGS=$ac_save_CFLAGS | 
 | 3491 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 3492 |   if test "$GCC" = yes; then | 
 | 3493 |     CFLAGS="-g -O2" | 
 | 3494 |   else | 
 | 3495 |     CFLAGS="-g" | 
 | 3496 |   fi | 
 | 3497 | else | 
 | 3498 |   if test "$GCC" = yes; then | 
 | 3499 |     CFLAGS="-O2" | 
 | 3500 |   else | 
 | 3501 |     CFLAGS= | 
 | 3502 |   fi | 
 | 3503 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3504 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
 | 3505 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
 | 3506 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
 | 3507 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3508 | else | 
 | 3509 |   ac_cv_prog_cc_stdc=no | 
 | 3510 | ac_save_CC=$CC | 
 | 3511 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3512 | /* confdefs.h.  */ | 
 | 3513 | _ACEOF | 
 | 3514 | cat confdefs.h >>conftest.$ac_ext | 
 | 3515 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3516 | /* end confdefs.h.  */ | 
 | 3517 | #include <stdarg.h> | 
 | 3518 | #include <stdio.h> | 
 | 3519 | #include <sys/types.h> | 
 | 3520 | #include <sys/stat.h> | 
 | 3521 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 3522 | struct buf { int x; }; | 
 | 3523 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 3524 | static char *e (p, i) | 
 | 3525 |      char **p; | 
 | 3526 |      int i; | 
 | 3527 | { | 
 | 3528 |   return p[i]; | 
 | 3529 | } | 
 | 3530 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 3531 | { | 
 | 3532 |   char *s; | 
 | 3533 |   va_list v; | 
 | 3534 |   va_start (v,p); | 
 | 3535 |   s = g (p, va_arg (v,int)); | 
 | 3536 |   va_end (v); | 
 | 3537 |   return s; | 
 | 3538 | } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3539 |  | 
 | 3540 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 3541 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 3542 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 3543 |    as 'x'.  The following induces an error, until -std1 is added to get | 
 | 3544 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 3545 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 3546 |    that's true only with -std1.  */ | 
 | 3547 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 3548 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3549 | int test (int i, double x); | 
 | 3550 | struct s1 {int (*f) (int a);}; | 
 | 3551 | struct s2 {int (*f) (double a);}; | 
 | 3552 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 3553 | int argc; | 
 | 3554 | char **argv; | 
 | 3555 | int | 
 | 3556 | main () | 
 | 3557 | { | 
 | 3558 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 3559 |   ; | 
 | 3560 |   return 0; | 
 | 3561 | } | 
 | 3562 | _ACEOF | 
 | 3563 | # Don't try gcc -ansi; that turns off useful extensions and | 
 | 3564 | # breaks some systems' header files. | 
 | 3565 | # AIX			-qlanglvl=ansi | 
 | 3566 | # Ultrix and OSF/1	-std1 | 
 | 3567 | # HP-UX 10.20 and later	-Ae | 
 | 3568 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
 | 3569 | # SVR4			-Xc -D__EXTENSIONS__ | 
 | 3570 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 3571 | do | 
 | 3572 |   CC="$ac_save_CC $ac_arg" | 
 | 3573 |   rm -f conftest.$ac_objext | 
 | 3574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3575 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3576 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3577 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3578 |   rm -f conftest.er1 | 
 | 3579 |   cat conftest.err >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3580 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3581 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3582 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3583 | 			 || test ! -s conftest.err' | 
 | 3584 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3585 |   (eval $ac_try) 2>&5 | 
 | 3586 |   ac_status=$? | 
 | 3587 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3588 |   (exit $ac_status); }; } && | 
 | 3589 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3590 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3591 |   (eval $ac_try) 2>&5 | 
 | 3592 |   ac_status=$? | 
 | 3593 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3594 |   (exit $ac_status); }; }; then | 
 | 3595 |   ac_cv_prog_cc_stdc=$ac_arg | 
 | 3596 | break | 
 | 3597 | else | 
 | 3598 |   echo "$as_me: failed program was:" >&5 | 
 | 3599 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3600 |  | 
 | 3601 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3602 | rm -f conftest.err conftest.$ac_objext | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3603 | done | 
 | 3604 | rm -f conftest.$ac_ext conftest.$ac_objext | 
 | 3605 | CC=$ac_save_CC | 
 | 3606 |  | 
 | 3607 | fi | 
 | 3608 |  | 
 | 3609 | case "x$ac_cv_prog_cc_stdc" in | 
 | 3610 |   x|xno) | 
 | 3611 |     echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 3612 | echo "${ECHO_T}none needed" >&6 ;; | 
 | 3613 |   *) | 
 | 3614 |     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
 | 3615 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
 | 3616 |     CC="$CC $ac_cv_prog_cc_stdc" ;; | 
 | 3617 | esac | 
 | 3618 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3619 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
 | 3620 | # in C++ we need to declare it.  In case someone uses the same compiler | 
 | 3621 | # for both compiling C and C++ we need to have the C++ compiler decide | 
 | 3622 | # the declaration of exit, since it's the most demanding environment. | 
 | 3623 | cat >conftest.$ac_ext <<_ACEOF | 
 | 3624 | #ifndef __cplusplus | 
 | 3625 |   choke me | 
 | 3626 | #endif | 
 | 3627 | _ACEOF | 
 | 3628 | rm -f conftest.$ac_objext | 
 | 3629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3630 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3631 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3632 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3633 |   rm -f conftest.er1 | 
 | 3634 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3635 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3636 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3637 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3638 | 			 || test ! -s conftest.err' | 
 | 3639 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3640 |   (eval $ac_try) 2>&5 | 
 | 3641 |   ac_status=$? | 
 | 3642 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3643 |   (exit $ac_status); }; } && | 
 | 3644 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3645 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3646 |   (eval $ac_try) 2>&5 | 
 | 3647 |   ac_status=$? | 
 | 3648 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3649 |   (exit $ac_status); }; }; then | 
 | 3650 |   for ac_declaration in \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3651 |    '' \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3652 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 3653 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 3654 |    'extern "C" void exit (int) throw ();' \ | 
 | 3655 |    'extern "C" void exit (int);' \ | 
 | 3656 |    'void exit (int);' | 
 | 3657 | do | 
 | 3658 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3659 | /* confdefs.h.  */ | 
 | 3660 | _ACEOF | 
 | 3661 | cat confdefs.h >>conftest.$ac_ext | 
 | 3662 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3663 | /* end confdefs.h.  */ | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 3664 | $ac_declaration | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3665 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3666 | int | 
 | 3667 | main () | 
 | 3668 | { | 
 | 3669 | exit (42); | 
 | 3670 |   ; | 
 | 3671 |   return 0; | 
 | 3672 | } | 
 | 3673 | _ACEOF | 
 | 3674 | rm -f conftest.$ac_objext | 
 | 3675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3676 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3677 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3678 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3679 |   rm -f conftest.er1 | 
 | 3680 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3681 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3682 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3683 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3684 | 			 || test ! -s conftest.err' | 
 | 3685 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3686 |   (eval $ac_try) 2>&5 | 
 | 3687 |   ac_status=$? | 
 | 3688 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3689 |   (exit $ac_status); }; } && | 
 | 3690 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3691 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3692 |   (eval $ac_try) 2>&5 | 
 | 3693 |   ac_status=$? | 
 | 3694 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3695 |   (exit $ac_status); }; }; then | 
 | 3696 |   : | 
 | 3697 | else | 
 | 3698 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3699 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3700 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3701 | continue | 
 | 3702 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3704 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3705 | /* confdefs.h.  */ | 
 | 3706 | _ACEOF | 
 | 3707 | cat confdefs.h >>conftest.$ac_ext | 
 | 3708 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3709 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3710 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3711 | int | 
 | 3712 | main () | 
 | 3713 | { | 
 | 3714 | exit (42); | 
 | 3715 |   ; | 
 | 3716 |   return 0; | 
 | 3717 | } | 
 | 3718 | _ACEOF | 
 | 3719 | rm -f conftest.$ac_objext | 
 | 3720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3721 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3722 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3723 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3724 |   rm -f conftest.er1 | 
 | 3725 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3726 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3727 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3728 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 3729 | 			 || test ! -s conftest.err' | 
 | 3730 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3731 |   (eval $ac_try) 2>&5 | 
 | 3732 |   ac_status=$? | 
 | 3733 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3734 |   (exit $ac_status); }; } && | 
 | 3735 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3736 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3737 |   (eval $ac_try) 2>&5 | 
 | 3738 |   ac_status=$? | 
 | 3739 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3740 |   (exit $ac_status); }; }; then | 
 | 3741 |   break | 
 | 3742 | else | 
 | 3743 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3744 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3745 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3746 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3748 | done | 
 | 3749 | rm -f conftest* | 
 | 3750 | if test -n "$ac_declaration"; then | 
 | 3751 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 3752 |   echo $ac_declaration      >>confdefs.h | 
 | 3753 |   echo '#endif'             >>confdefs.h | 
 | 3754 | fi | 
 | 3755 |  | 
 | 3756 | else | 
 | 3757 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3758 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3759 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3760 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3762 | ac_ext=c | 
 | 3763 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3767 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3768 | ac_ext=cc | 
 | 3769 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 3770 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3771 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3772 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 3773 | if test -n "$ac_tool_prefix"; then | 
 | 3774 |   for ac_prog in $CCC g++ | 
 | 3775 |   do | 
 | 3776 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 3777 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 3778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3780 | if test "${ac_cv_prog_CXX+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3781 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3782 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3783 |   if test -n "$CXX"; then | 
 | 3784 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 3785 | else | 
 | 3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3787 | for as_dir in $PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3788 | do | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3789 |   IFS=$as_save_IFS | 
 | 3790 |   test -z "$as_dir" && as_dir=. | 
 | 3791 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3792 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3793 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
 | 3794 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3795 |     break 2 | 
 | 3796 |   fi | 
 | 3797 | done | 
 | 3798 | done | 
 | 3799 |  | 
 | 3800 | fi | 
 | 3801 | fi | 
 | 3802 | CXX=$ac_cv_prog_CXX | 
 | 3803 | if test -n "$CXX"; then | 
 | 3804 |   echo "$as_me:$LINENO: result: $CXX" >&5 | 
 | 3805 | echo "${ECHO_T}$CXX" >&6 | 
 | 3806 | else | 
 | 3807 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3808 | echo "${ECHO_T}no" >&6 | 
 | 3809 | fi | 
 | 3810 |  | 
 | 3811 |     test -n "$CXX" && break | 
 | 3812 |   done | 
 | 3813 | fi | 
 | 3814 | if test -z "$CXX"; then | 
 | 3815 |   ac_ct_CXX=$CXX | 
 | 3816 |   for ac_prog in $CCC g++ | 
 | 3817 | do | 
 | 3818 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3819 | set dummy $ac_prog; ac_word=$2 | 
 | 3820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3822 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
 | 3823 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3824 | else | 
 | 3825 |   if test -n "$ac_ct_CXX"; then | 
 | 3826 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 3827 | else | 
 | 3828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3829 | for as_dir in $PATH | 
 | 3830 | do | 
 | 3831 |   IFS=$as_save_IFS | 
 | 3832 |   test -z "$as_dir" && as_dir=. | 
 | 3833 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3834 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3835 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 3836 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3837 |     break 2 | 
 | 3838 |   fi | 
 | 3839 | done | 
 | 3840 | done | 
 | 3841 |  | 
 | 3842 | fi | 
 | 3843 | fi | 
 | 3844 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 3845 | if test -n "$ac_ct_CXX"; then | 
 | 3846 |   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
 | 3847 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
 | 3848 | else | 
 | 3849 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3850 | echo "${ECHO_T}no" >&6 | 
 | 3851 | fi | 
 | 3852 |  | 
 | 3853 |   test -n "$ac_ct_CXX" && break | 
 | 3854 | done | 
 | 3855 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
 | 3856 |  | 
 | 3857 |   CXX=$ac_ct_CXX | 
 | 3858 | fi | 
 | 3859 |  | 
 | 3860 |  | 
 | 3861 | # Provide some information about the compiler. | 
 | 3862 | echo "$as_me:$LINENO:" \ | 
 | 3863 |      "checking for C++ compiler version" >&5 | 
 | 3864 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 3865 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 3866 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 3867 |   ac_status=$? | 
 | 3868 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3869 |   (exit $ac_status); } | 
 | 3870 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 3871 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 3872 |   ac_status=$? | 
 | 3873 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3874 |   (exit $ac_status); } | 
 | 3875 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 3876 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 3877 |   ac_status=$? | 
 | 3878 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3879 |   (exit $ac_status); } | 
 | 3880 |  | 
 | 3881 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
 | 3882 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
 | 3883 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
 | 3884 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3885 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3886 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3887 | /* confdefs.h.  */ | 
 | 3888 | _ACEOF | 
 | 3889 | cat confdefs.h >>conftest.$ac_ext | 
 | 3890 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3891 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3892 |  | 
 | 3893 | int | 
 | 3894 | main () | 
 | 3895 | { | 
 | 3896 | #ifndef __GNUC__ | 
 | 3897 |        choke me | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3898 | #endif | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3899 |  | 
 | 3900 |   ; | 
 | 3901 |   return 0; | 
 | 3902 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3903 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3904 | rm -f conftest.$ac_objext | 
 | 3905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 3906 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3907 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3908 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3909 |   rm -f conftest.er1 | 
 | 3910 |   cat conftest.err >&5 | 
 | 3911 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3912 |   (exit $ac_status); } && | 
 | 3913 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 3914 | 			 || test ! -s conftest.err' | 
 | 3915 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3916 |   (eval $ac_try) 2>&5 | 
 | 3917 |   ac_status=$? | 
 | 3918 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3919 |   (exit $ac_status); }; } && | 
 | 3920 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 3921 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3922 |   (eval $ac_try) 2>&5 | 
 | 3923 |   ac_status=$? | 
 | 3924 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3925 |   (exit $ac_status); }; }; then | 
 | 3926 |   ac_compiler_gnu=yes | 
 | 3927 | else | 
 | 3928 |   echo "$as_me: failed program was:" >&5 | 
 | 3929 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3930 |  | 
 | 3931 | ac_compiler_gnu=no | 
 | 3932 | fi | 
 | 3933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3934 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
 | 3935 |  | 
 | 3936 | fi | 
 | 3937 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
 | 3938 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
 | 3939 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
 | 3940 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
 | 3941 | ac_save_CXXFLAGS=$CXXFLAGS | 
 | 3942 | CXXFLAGS="-g" | 
 | 3943 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
 | 3944 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
 | 3945 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
 | 3946 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3947 | else | 
 | 3948 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3949 | /* confdefs.h.  */ | 
 | 3950 | _ACEOF | 
 | 3951 | cat confdefs.h >>conftest.$ac_ext | 
 | 3952 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3953 | /* end confdefs.h.  */ | 
 | 3954 |  | 
 | 3955 | int | 
 | 3956 | main () | 
 | 3957 | { | 
 | 3958 |  | 
 | 3959 |   ; | 
 | 3960 |   return 0; | 
 | 3961 | } | 
 | 3962 | _ACEOF | 
 | 3963 | rm -f conftest.$ac_objext | 
 | 3964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 3965 |   (eval $ac_compile) 2>conftest.er1 | 
 | 3966 |   ac_status=$? | 
 | 3967 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3968 |   rm -f conftest.er1 | 
 | 3969 |   cat conftest.err >&5 | 
 | 3970 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3971 |   (exit $ac_status); } && | 
 | 3972 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 3973 | 			 || test ! -s conftest.err' | 
 | 3974 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3975 |   (eval $ac_try) 2>&5 | 
 | 3976 |   ac_status=$? | 
 | 3977 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3978 |   (exit $ac_status); }; } && | 
 | 3979 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 3980 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3981 |   (eval $ac_try) 2>&5 | 
 | 3982 |   ac_status=$? | 
 | 3983 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3984 |   (exit $ac_status); }; }; then | 
 | 3985 |   ac_cv_prog_cxx_g=yes | 
 | 3986 | else | 
 | 3987 |   echo "$as_me: failed program was:" >&5 | 
 | 3988 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3989 |  | 
 | 3990 | ac_cv_prog_cxx_g=no | 
 | 3991 | fi | 
 | 3992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3993 | fi | 
 | 3994 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
 | 3995 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
 | 3996 | if test "$ac_test_CXXFLAGS" = set; then | 
 | 3997 |   CXXFLAGS=$ac_save_CXXFLAGS | 
 | 3998 | elif test $ac_cv_prog_cxx_g = yes; then | 
 | 3999 |   if test "$GXX" = yes; then | 
 | 4000 |     CXXFLAGS="-g -O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4001 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4002 |     CXXFLAGS="-g" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4003 |   fi | 
 | 4004 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4005 |   if test "$GXX" = yes; then | 
 | 4006 |     CXXFLAGS="-O2" | 
 | 4007 |   else | 
 | 4008 |     CXXFLAGS= | 
 | 4009 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4010 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4011 | for ac_declaration in \ | 
 | 4012 |    '' \ | 
 | 4013 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 4014 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 4015 |    'extern "C" void exit (int) throw ();' \ | 
 | 4016 |    'extern "C" void exit (int);' \ | 
 | 4017 |    'void exit (int);' | 
 | 4018 | do | 
 | 4019 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4020 | /* confdefs.h.  */ | 
 | 4021 | _ACEOF | 
 | 4022 | cat confdefs.h >>conftest.$ac_ext | 
 | 4023 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4024 | /* end confdefs.h.  */ | 
 | 4025 | $ac_declaration | 
 | 4026 | #include <stdlib.h> | 
 | 4027 | int | 
 | 4028 | main () | 
 | 4029 | { | 
 | 4030 | exit (42); | 
 | 4031 |   ; | 
 | 4032 |   return 0; | 
 | 4033 | } | 
 | 4034 | _ACEOF | 
 | 4035 | rm -f conftest.$ac_objext | 
 | 4036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4037 |   (eval $ac_compile) 2>conftest.er1 | 
 | 4038 |   ac_status=$? | 
 | 4039 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4040 |   rm -f conftest.er1 | 
 | 4041 |   cat conftest.err >&5 | 
 | 4042 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4043 |   (exit $ac_status); } && | 
 | 4044 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 4045 | 			 || test ! -s conftest.err' | 
 | 4046 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4047 |   (eval $ac_try) 2>&5 | 
 | 4048 |   ac_status=$? | 
 | 4049 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4050 |   (exit $ac_status); }; } && | 
 | 4051 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4052 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4053 |   (eval $ac_try) 2>&5 | 
 | 4054 |   ac_status=$? | 
 | 4055 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4056 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4057 |   : | 
 | 4058 | else | 
 | 4059 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4060 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4061 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4062 | continue | 
 | 4063 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4065 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4066 | /* confdefs.h.  */ | 
 | 4067 | _ACEOF | 
 | 4068 | cat confdefs.h >>conftest.$ac_ext | 
 | 4069 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4070 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4071 | $ac_declaration | 
 | 4072 | int | 
 | 4073 | main () | 
 | 4074 | { | 
 | 4075 | exit (42); | 
 | 4076 |   ; | 
 | 4077 |   return 0; | 
 | 4078 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4079 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4080 | rm -f conftest.$ac_objext | 
 | 4081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4082 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4083 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4084 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4085 |   rm -f conftest.er1 | 
 | 4086 |   cat conftest.err >&5 | 
 | 4087 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4088 |   (exit $ac_status); } && | 
 | 4089 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 4090 | 			 || test ! -s conftest.err' | 
 | 4091 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4092 |   (eval $ac_try) 2>&5 | 
 | 4093 |   ac_status=$? | 
 | 4094 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4095 |   (exit $ac_status); }; } && | 
 | 4096 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4097 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4098 |   (eval $ac_try) 2>&5 | 
 | 4099 |   ac_status=$? | 
 | 4100 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4101 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4102 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4103 | else | 
 | 4104 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4105 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4106 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4107 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4109 | done | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4110 | rm -f conftest* | 
 | 4111 | if test -n "$ac_declaration"; then | 
 | 4112 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 4113 |   echo $ac_declaration      >>confdefs.h | 
 | 4114 |   echo '#endif'             >>confdefs.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4115 | fi | 
 | 4116 |  | 
 | 4117 | ac_ext=c | 
 | 4118 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4122 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4123 | echo "$as_me:$LINENO: checking " >&5 | 
 | 4124 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
 | 4125 | if test "${ac_cv_has_flex+set}" = set; then | 
 | 4126 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4127 | else | 
 | 4128 |   for ac_prog in flex lex | 
 | 4129 | do | 
 | 4130 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4131 | set dummy $ac_prog; ac_word=$2 | 
 | 4132 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4134 | if test "${ac_cv_prog_LEX+set}" = set; then | 
 | 4135 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4136 | else | 
 | 4137 |   if test -n "$LEX"; then | 
 | 4138 |   ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
 | 4139 | else | 
 | 4140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4141 | for as_dir in $PATH | 
 | 4142 | do | 
 | 4143 |   IFS=$as_save_IFS | 
 | 4144 |   test -z "$as_dir" && as_dir=. | 
 | 4145 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4146 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4147 |     ac_cv_prog_LEX="$ac_prog" | 
 | 4148 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4149 |     break 2 | 
 | 4150 |   fi | 
 | 4151 | done | 
 | 4152 | done | 
 | 4153 |  | 
 | 4154 | fi | 
 | 4155 | fi | 
 | 4156 | LEX=$ac_cv_prog_LEX | 
 | 4157 | if test -n "$LEX"; then | 
 | 4158 |   echo "$as_me:$LINENO: result: $LEX" >&5 | 
 | 4159 | echo "${ECHO_T}$LEX" >&6 | 
 | 4160 | else | 
 | 4161 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4162 | echo "${ECHO_T}no" >&6 | 
 | 4163 | fi | 
 | 4164 |  | 
 | 4165 |   test -n "$LEX" && break | 
 | 4166 | done | 
 | 4167 | test -n "$LEX" || LEX=":" | 
 | 4168 |  | 
 | 4169 | if test -z "$LEXLIB" | 
 | 4170 | then | 
 | 4171 |   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
 | 4172 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
 | 4173 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
 | 4174 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4175 | else | 
 | 4176 |   ac_check_lib_save_LIBS=$LIBS | 
 | 4177 | LIBS="-lfl  $LIBS" | 
 | 4178 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4179 | /* confdefs.h.  */ | 
 | 4180 | _ACEOF | 
 | 4181 | cat confdefs.h >>conftest.$ac_ext | 
 | 4182 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4183 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4184 |  | 
 | 4185 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4186 | #ifdef __cplusplus | 
 | 4187 | extern "C" | 
 | 4188 | #endif | 
 | 4189 | /* We use char because int might match the return type of a gcc2 | 
 | 4190 |    builtin and then its argument prototype would still apply.  */ | 
 | 4191 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4192 | int | 
 | 4193 | main () | 
 | 4194 | { | 
 | 4195 | yywrap (); | 
 | 4196 |   ; | 
 | 4197 |   return 0; | 
 | 4198 | } | 
 | 4199 | _ACEOF | 
 | 4200 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4202 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4203 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4204 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4205 |   rm -f conftest.er1 | 
 | 4206 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4207 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4208 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4209 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4210 | 			 || test ! -s conftest.err' | 
 | 4211 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4212 |   (eval $ac_try) 2>&5 | 
 | 4213 |   ac_status=$? | 
 | 4214 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4215 |   (exit $ac_status); }; } && | 
 | 4216 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4217 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4218 |   (eval $ac_try) 2>&5 | 
 | 4219 |   ac_status=$? | 
 | 4220 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4221 |   (exit $ac_status); }; }; then | 
 | 4222 |   ac_cv_lib_fl_yywrap=yes | 
 | 4223 | else | 
 | 4224 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4225 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4226 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4227 | ac_cv_lib_fl_yywrap=no | 
 | 4228 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4229 | rm -f conftest.err conftest.$ac_objext \ | 
 | 4230 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4231 | LIBS=$ac_check_lib_save_LIBS | 
 | 4232 | fi | 
 | 4233 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
 | 4234 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
 | 4235 | if test $ac_cv_lib_fl_yywrap = yes; then | 
 | 4236 |   LEXLIB="-lfl" | 
 | 4237 | else | 
 | 4238 |   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
 | 4239 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
 | 4240 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
 | 4241 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4242 | else | 
 | 4243 |   ac_check_lib_save_LIBS=$LIBS | 
 | 4244 | LIBS="-ll  $LIBS" | 
 | 4245 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4246 | /* confdefs.h.  */ | 
 | 4247 | _ACEOF | 
 | 4248 | cat confdefs.h >>conftest.$ac_ext | 
 | 4249 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4250 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4251 |  | 
 | 4252 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4253 | #ifdef __cplusplus | 
 | 4254 | extern "C" | 
 | 4255 | #endif | 
 | 4256 | /* We use char because int might match the return type of a gcc2 | 
 | 4257 |    builtin and then its argument prototype would still apply.  */ | 
 | 4258 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4259 | int | 
 | 4260 | main () | 
 | 4261 | { | 
 | 4262 | yywrap (); | 
 | 4263 |   ; | 
 | 4264 |   return 0; | 
 | 4265 | } | 
 | 4266 | _ACEOF | 
 | 4267 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4269 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4270 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4271 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4272 |   rm -f conftest.er1 | 
 | 4273 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4274 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4275 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4276 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4277 | 			 || test ! -s conftest.err' | 
 | 4278 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4279 |   (eval $ac_try) 2>&5 | 
 | 4280 |   ac_status=$? | 
 | 4281 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4282 |   (exit $ac_status); }; } && | 
 | 4283 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4284 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4285 |   (eval $ac_try) 2>&5 | 
 | 4286 |   ac_status=$? | 
 | 4287 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4288 |   (exit $ac_status); }; }; then | 
 | 4289 |   ac_cv_lib_l_yywrap=yes | 
 | 4290 | else | 
 | 4291 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4292 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4293 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4294 | ac_cv_lib_l_yywrap=no | 
 | 4295 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4296 | rm -f conftest.err conftest.$ac_objext \ | 
 | 4297 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4298 | LIBS=$ac_check_lib_save_LIBS | 
 | 4299 | fi | 
 | 4300 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
 | 4301 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
 | 4302 | if test $ac_cv_lib_l_yywrap = yes; then | 
 | 4303 |   LEXLIB="-ll" | 
 | 4304 | fi | 
 | 4305 |  | 
 | 4306 | fi | 
 | 4307 |  | 
 | 4308 | fi | 
 | 4309 |  | 
 | 4310 | if test "x$LEX" != "x:"; then | 
 | 4311 |   echo "$as_me:$LINENO: checking lex output file root" >&5 | 
 | 4312 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
 | 4313 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
 | 4314 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4315 | else | 
 | 4316 |   # The minimal lex program is just a single line: %%.  But some broken lexes | 
 | 4317 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
 | 4318 | cat >conftest.l <<_ACEOF | 
 | 4319 | %% | 
 | 4320 | %% | 
 | 4321 | _ACEOF | 
 | 4322 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
 | 4323 |   (eval $LEX conftest.l) 2>&5 | 
 | 4324 |   ac_status=$? | 
 | 4325 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4326 |   (exit $ac_status); } | 
 | 4327 | if test -f lex.yy.c; then | 
 | 4328 |   ac_cv_prog_lex_root=lex.yy | 
 | 4329 | elif test -f lexyy.c; then | 
 | 4330 |   ac_cv_prog_lex_root=lexyy | 
 | 4331 | else | 
 | 4332 |   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
 | 4333 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
 | 4334 |    { (exit 1); exit 1; }; } | 
 | 4335 | fi | 
 | 4336 | fi | 
 | 4337 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
 | 4338 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
 | 4339 | rm -f conftest.l | 
 | 4340 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
 | 4341 |  | 
 | 4342 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
 | 4343 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
 | 4344 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
 | 4345 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4346 | else | 
 | 4347 |   # POSIX says lex can declare yytext either as a pointer or an array; the | 
 | 4348 | # default is implementation-dependent. Figure out which it is, since | 
 | 4349 | # not all implementations provide the %pointer and %array declarations. | 
 | 4350 | ac_cv_prog_lex_yytext_pointer=no | 
 | 4351 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
 | 4352 | ac_save_LIBS=$LIBS | 
 | 4353 | LIBS="$LIBS $LEXLIB" | 
 | 4354 | cat >conftest.$ac_ext <<_ACEOF | 
 | 4355 | `cat $LEX_OUTPUT_ROOT.c` | 
 | 4356 | _ACEOF | 
 | 4357 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4359 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4360 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4361 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4362 |   rm -f conftest.er1 | 
 | 4363 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4364 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4365 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4366 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 4367 | 			 || test ! -s conftest.err' | 
 | 4368 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4369 |   (eval $ac_try) 2>&5 | 
 | 4370 |   ac_status=$? | 
 | 4371 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4372 |   (exit $ac_status); }; } && | 
 | 4373 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4374 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4375 |   (eval $ac_try) 2>&5 | 
 | 4376 |   ac_status=$? | 
 | 4377 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4378 |   (exit $ac_status); }; }; then | 
 | 4379 |   ac_cv_prog_lex_yytext_pointer=yes | 
 | 4380 | else | 
 | 4381 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4382 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4383 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4384 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4385 | rm -f conftest.err conftest.$ac_objext \ | 
 | 4386 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4387 | LIBS=$ac_save_LIBS | 
 | 4388 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
 | 4389 |  | 
 | 4390 | fi | 
 | 4391 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
 | 4392 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
 | 4393 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
 | 4394 |  | 
 | 4395 | cat >>confdefs.h <<\_ACEOF | 
 | 4396 | #define YYTEXT_POINTER 1 | 
 | 4397 | _ACEOF | 
 | 4398 |  | 
 | 4399 | fi | 
 | 4400 |  | 
 | 4401 | fi | 
 | 4402 |  | 
 | 4403 | fi | 
 | 4404 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 | 
 | 4405 | echo "${ECHO_T}$ac_cv_has_flex" >&6 | 
 | 4406 | if test "$LEX" != "flex"; then | 
 | 4407 |   { { echo "$as_me:$LINENO: error: flex not found but required" >&5 | 
 | 4408 | echo "$as_me: error: flex not found but required" >&2;} | 
 | 4409 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 4410 | else | 
 | 4411 |   FLEX=flex | 
 | 4412 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4413 | fi | 
 | 4414 |  | 
 | 4415 | echo "$as_me:$LINENO: checking " >&5 | 
 | 4416 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4417 | if test "${llvm_cv_has_bison+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4418 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4419 | else | 
 | 4420 |   for ac_prog in 'bison -y' byacc | 
 | 4421 | do | 
 | 4422 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4423 | set dummy $ac_prog; ac_word=$2 | 
 | 4424 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4426 | if test "${ac_cv_prog_YACC+set}" = set; then | 
 | 4427 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4428 | else | 
 | 4429 |   if test -n "$YACC"; then | 
 | 4430 |   ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
 | 4431 | else | 
 | 4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4433 | for as_dir in $PATH | 
 | 4434 | do | 
 | 4435 |   IFS=$as_save_IFS | 
 | 4436 |   test -z "$as_dir" && as_dir=. | 
 | 4437 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4438 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4439 |     ac_cv_prog_YACC="$ac_prog" | 
 | 4440 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4441 |     break 2 | 
 | 4442 |   fi | 
 | 4443 | done | 
 | 4444 | done | 
 | 4445 |  | 
 | 4446 | fi | 
 | 4447 | fi | 
 | 4448 | YACC=$ac_cv_prog_YACC | 
 | 4449 | if test -n "$YACC"; then | 
 | 4450 |   echo "$as_me:$LINENO: result: $YACC" >&5 | 
 | 4451 | echo "${ECHO_T}$YACC" >&6 | 
 | 4452 | else | 
 | 4453 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4454 | echo "${ECHO_T}no" >&6 | 
 | 4455 | fi | 
 | 4456 |  | 
 | 4457 |   test -n "$YACC" && break | 
 | 4458 | done | 
 | 4459 | test -n "$YACC" || YACC="yacc" | 
 | 4460 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4461 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 4462 | echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 | 
 | 4463 | echo "${ECHO_T}$llvm_cv_has_bison" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4464 | if test "$YACC" != "bison -y"; then | 
 | 4465 |   { { echo "$as_me:$LINENO: error: bison not found but required" >&5 | 
 | 4466 | echo "$as_me: error: bison not found but required" >&2;} | 
 | 4467 |    { (exit 1); exit 1; }; } | 
 | 4468 | else | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 4469 |   BISON=bison | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4470 |  | 
 | 4471 | fi | 
 | 4472 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4473 | echo "$as_me:$LINENO: checking for GNU make" >&5 | 
 | 4474 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 | 
 | 4475 | if test "${llvm_cv_gnu_make_command+set}" = set; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4476 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4477 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4478 |   llvm_cv_gnu_make_command='' | 
 | 4479 |  for a in "$MAKE" make gmake gnumake ; do | 
 | 4480 |   if test -z "$a" ; then continue ; fi ; | 
 | 4481 |   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) | 
 | 4482 |   then | 
 | 4483 |    llvm_cv_gnu_make_command=$a ; | 
 | 4484 |    break; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4485 |   fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4486 |  done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4487 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4488 | echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 | 
 | 4489 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6 | 
 | 4490 |  if test "x$llvm_cv_gnu_make_command" != "x"  ; then | 
 | 4491 |    ifGNUmake='' ; | 
 | 4492 |  else | 
 | 4493 |    ifGNUmake='#' ; | 
 | 4494 |    echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
 | 4495 | echo "${ECHO_T}\"Not found\"" >&6; | 
 | 4496 |  fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4497 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4498 |  | 
 | 4499 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
 | 4500 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
 | 4501 | LN_S=$as_ln_s | 
 | 4502 | if test "$LN_S" = "ln -s"; then | 
 | 4503 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 4504 | echo "${ECHO_T}yes" >&6 | 
 | 4505 | else | 
 | 4506 |   echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
 | 4507 | echo "${ECHO_T}no, using $LN_S" >&6 | 
 | 4508 | fi | 
 | 4509 |  | 
| Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 4510 | # Extract the first word of "cmp", so it can be a program name with args. | 
 | 4511 | set dummy cmp; ac_word=$2 | 
 | 4512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4514 | if test "${ac_cv_path_CMP+set}" = set; then | 
 | 4515 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4516 | else | 
 | 4517 |   case $CMP in | 
 | 4518 |   [\\/]* | ?:[\\/]*) | 
 | 4519 |   ac_cv_path_CMP="$CMP" # Let the user override the test with a path. | 
 | 4520 |   ;; | 
 | 4521 |   *) | 
 | 4522 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4523 | for as_dir in $PATH | 
 | 4524 | do | 
 | 4525 |   IFS=$as_save_IFS | 
 | 4526 |   test -z "$as_dir" && as_dir=. | 
 | 4527 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4528 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4529 |     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" | 
 | 4530 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4531 |     break 2 | 
 | 4532 |   fi | 
 | 4533 | done | 
 | 4534 | done | 
 | 4535 |  | 
 | 4536 |   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" | 
 | 4537 |   ;; | 
 | 4538 | esac | 
 | 4539 | fi | 
 | 4540 | CMP=$ac_cv_path_CMP | 
 | 4541 |  | 
 | 4542 | if test -n "$CMP"; then | 
 | 4543 |   echo "$as_me:$LINENO: result: $CMP" >&5 | 
 | 4544 | echo "${ECHO_T}$CMP" >&6 | 
 | 4545 | else | 
 | 4546 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4547 | echo "${ECHO_T}no" >&6 | 
 | 4548 | fi | 
 | 4549 |  | 
 | 4550 | # Extract the first word of "cp", so it can be a program name with args. | 
 | 4551 | set dummy cp; ac_word=$2 | 
 | 4552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4554 | if test "${ac_cv_path_CP+set}" = set; then | 
 | 4555 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4556 | else | 
 | 4557 |   case $CP in | 
 | 4558 |   [\\/]* | ?:[\\/]*) | 
 | 4559 |   ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
 | 4560 |   ;; | 
 | 4561 |   *) | 
 | 4562 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4563 | for as_dir in $PATH | 
 | 4564 | do | 
 | 4565 |   IFS=$as_save_IFS | 
 | 4566 |   test -z "$as_dir" && as_dir=. | 
 | 4567 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4568 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4569 |     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | 
 | 4570 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4571 |     break 2 | 
 | 4572 |   fi | 
 | 4573 | done | 
 | 4574 | done | 
 | 4575 |  | 
 | 4576 |   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
 | 4577 |   ;; | 
 | 4578 | esac | 
 | 4579 | fi | 
 | 4580 | CP=$ac_cv_path_CP | 
 | 4581 |  | 
 | 4582 | if test -n "$CP"; then | 
 | 4583 |   echo "$as_me:$LINENO: result: $CP" >&5 | 
 | 4584 | echo "${ECHO_T}$CP" >&6 | 
 | 4585 | else | 
 | 4586 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4587 | echo "${ECHO_T}no" >&6 | 
 | 4588 | fi | 
 | 4589 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4590 | # Extract the first word of "date", so it can be a program name with args. | 
 | 4591 | set dummy date; ac_word=$2 | 
 | 4592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4594 | if test "${ac_cv_path_DATE+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4595 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4596 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4597 |   case $DATE in | 
 | 4598 |   [\\/]* | ?:[\\/]*) | 
 | 4599 |   ac_cv_path_DATE="$DATE" # Let the user override the test with a path. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4600 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4601 |   *) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4602 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4603 | for as_dir in $PATH | 
 | 4604 | do | 
 | 4605 |   IFS=$as_save_IFS | 
 | 4606 |   test -z "$as_dir" && as_dir=. | 
 | 4607 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4608 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4609 |     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" | 
 | 4610 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4611 |     break 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4612 |   fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4613 | done | 
 | 4614 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4615 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4616 |   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4617 |   ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4618 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4619 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4620 | DATE=$ac_cv_path_DATE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4621 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4622 | if test -n "$DATE"; then | 
 | 4623 |   echo "$as_me:$LINENO: result: $DATE" >&5 | 
 | 4624 | echo "${ECHO_T}$DATE" >&6 | 
 | 4625 | else | 
 | 4626 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4627 | echo "${ECHO_T}no" >&6 | 
 | 4628 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4629 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4630 | # Extract the first word of "find", so it can be a program name with args. | 
 | 4631 | set dummy find; ac_word=$2 | 
 | 4632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4634 | if test "${ac_cv_path_FIND+set}" = set; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4635 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4636 | else | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4637 |   case $FIND in | 
 | 4638 |   [\\/]* | ?:[\\/]*) | 
 | 4639 |   ac_cv_path_FIND="$FIND" # Let the user override the test with a path. | 
 | 4640 |   ;; | 
 | 4641 |   *) | 
 | 4642 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4643 | for as_dir in $PATH | 
 | 4644 | do | 
 | 4645 |   IFS=$as_save_IFS | 
 | 4646 |   test -z "$as_dir" && as_dir=. | 
 | 4647 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4648 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4649 |     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" | 
 | 4650 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4651 |     break 2 | 
 | 4652 |   fi | 
 | 4653 | done | 
 | 4654 | done | 
 | 4655 |  | 
 | 4656 |   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" | 
 | 4657 |   ;; | 
 | 4658 | esac | 
 | 4659 | fi | 
 | 4660 | FIND=$ac_cv_path_FIND | 
 | 4661 |  | 
 | 4662 | if test -n "$FIND"; then | 
 | 4663 |   echo "$as_me:$LINENO: result: $FIND" >&5 | 
 | 4664 | echo "${ECHO_T}$FIND" >&6 | 
 | 4665 | else | 
 | 4666 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4667 | echo "${ECHO_T}no" >&6 | 
 | 4668 | fi | 
 | 4669 |  | 
 | 4670 | # Extract the first word of "grep", so it can be a program name with args. | 
 | 4671 | set dummy grep; ac_word=$2 | 
 | 4672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4674 | if test "${ac_cv_path_GREP+set}" = set; then | 
 | 4675 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4676 | else | 
 | 4677 |   case $GREP in | 
 | 4678 |   [\\/]* | ?:[\\/]*) | 
 | 4679 |   ac_cv_path_GREP="$GREP" # Let the user override the test with a path. | 
 | 4680 |   ;; | 
 | 4681 |   *) | 
 | 4682 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4683 | for as_dir in $PATH | 
 | 4684 | do | 
 | 4685 |   IFS=$as_save_IFS | 
 | 4686 |   test -z "$as_dir" && as_dir=. | 
 | 4687 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4688 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4689 |     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" | 
 | 4690 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4691 |     break 2 | 
 | 4692 |   fi | 
 | 4693 | done | 
 | 4694 | done | 
 | 4695 |  | 
 | 4696 |   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" | 
 | 4697 |   ;; | 
 | 4698 | esac | 
 | 4699 | fi | 
 | 4700 | GREP=$ac_cv_path_GREP | 
 | 4701 |  | 
 | 4702 | if test -n "$GREP"; then | 
 | 4703 |   echo "$as_me:$LINENO: result: $GREP" >&5 | 
 | 4704 | echo "${ECHO_T}$GREP" >&6 | 
 | 4705 | else | 
 | 4706 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4707 | echo "${ECHO_T}no" >&6 | 
 | 4708 | fi | 
 | 4709 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 4710 | # Extract the first word of "llvm-gcc", so it can be a program name with args. | 
 | 4711 | set dummy llvm-gcc; ac_word=$2 | 
 | 4712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4714 | if test "${ac_cv_path_LLVMGCC+set}" = set; then | 
 | 4715 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4716 | else | 
 | 4717 |   case $LLVMGCC in | 
 | 4718 |   [\\/]* | ?:[\\/]*) | 
 | 4719 |   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. | 
 | 4720 |   ;; | 
 | 4721 |   *) | 
 | 4722 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4723 | for as_dir in $PATH | 
 | 4724 | do | 
 | 4725 |   IFS=$as_save_IFS | 
 | 4726 |   test -z "$as_dir" && as_dir=. | 
 | 4727 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4728 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4729 |     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" | 
 | 4730 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4731 |     break 2 | 
 | 4732 |   fi | 
 | 4733 | done | 
 | 4734 | done | 
 | 4735 |  | 
 | 4736 |   test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc" | 
 | 4737 |   ;; | 
 | 4738 | esac | 
 | 4739 | fi | 
 | 4740 | LLVMGCC=$ac_cv_path_LLVMGCC | 
 | 4741 |  | 
 | 4742 | if test -n "$LLVMGCC"; then | 
 | 4743 |   echo "$as_me:$LINENO: result: $LLVMGCC" >&5 | 
 | 4744 | echo "${ECHO_T}$LLVMGCC" >&6 | 
 | 4745 | else | 
 | 4746 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4747 | echo "${ECHO_T}no" >&6 | 
 | 4748 | fi | 
 | 4749 |  | 
 | 4750 | # Extract the first word of "llvm-g++", so it can be a program name with args. | 
 | 4751 | set dummy llvm-g++; ac_word=$2 | 
 | 4752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4754 | if test "${ac_cv_path_LLVMGXX+set}" = set; then | 
 | 4755 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4756 | else | 
 | 4757 |   case $LLVMGXX in | 
 | 4758 |   [\\/]* | ?:[\\/]*) | 
 | 4759 |   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. | 
 | 4760 |   ;; | 
 | 4761 |   *) | 
 | 4762 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4763 | for as_dir in $PATH | 
 | 4764 | do | 
 | 4765 |   IFS=$as_save_IFS | 
 | 4766 |   test -z "$as_dir" && as_dir=. | 
 | 4767 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4768 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4769 |     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4770 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4771 |     break 2 | 
 | 4772 |   fi | 
 | 4773 | done | 
 | 4774 | done | 
 | 4775 |  | 
 | 4776 |   test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++" | 
 | 4777 |   ;; | 
 | 4778 | esac | 
 | 4779 | fi | 
 | 4780 | LLVMGXX=$ac_cv_path_LLVMGXX | 
 | 4781 |  | 
 | 4782 | if test -n "$LLVMGXX"; then | 
 | 4783 |   echo "$as_me:$LINENO: result: $LLVMGXX" >&5 | 
 | 4784 | echo "${ECHO_T}$LLVMGXX" >&6 | 
 | 4785 | else | 
 | 4786 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4787 | echo "${ECHO_T}no" >&6 | 
 | 4788 | fi | 
 | 4789 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4790 | # Extract the first word of "mkdir", so it can be a program name with args. | 
 | 4791 | set dummy mkdir; ac_word=$2 | 
 | 4792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4794 | if test "${ac_cv_path_MKDIR+set}" = set; then | 
 | 4795 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4796 | else | 
 | 4797 |   case $MKDIR in | 
 | 4798 |   [\\/]* | ?:[\\/]*) | 
 | 4799 |   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | 
 | 4800 |   ;; | 
 | 4801 |   *) | 
 | 4802 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4803 | for as_dir in $PATH | 
 | 4804 | do | 
 | 4805 |   IFS=$as_save_IFS | 
 | 4806 |   test -z "$as_dir" && as_dir=. | 
 | 4807 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4808 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4809 |     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | 
 | 4810 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4811 |     break 2 | 
 | 4812 |   fi | 
 | 4813 | done | 
 | 4814 | done | 
 | 4815 |  | 
 | 4816 |   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" | 
 | 4817 |   ;; | 
 | 4818 | esac | 
 | 4819 | fi | 
 | 4820 | MKDIR=$ac_cv_path_MKDIR | 
 | 4821 |  | 
 | 4822 | if test -n "$MKDIR"; then | 
 | 4823 |   echo "$as_me:$LINENO: result: $MKDIR" >&5 | 
 | 4824 | echo "${ECHO_T}$MKDIR" >&6 | 
 | 4825 | else | 
 | 4826 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4827 | echo "${ECHO_T}no" >&6 | 
 | 4828 | fi | 
 | 4829 |  | 
 | 4830 | # Extract the first word of "mv", so it can be a program name with args. | 
 | 4831 | set dummy mv; ac_word=$2 | 
 | 4832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4834 | if test "${ac_cv_path_MV+set}" = set; then | 
 | 4835 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4836 | else | 
 | 4837 |   case $MV in | 
 | 4838 |   [\\/]* | ?:[\\/]*) | 
 | 4839 |   ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
 | 4840 |   ;; | 
 | 4841 |   *) | 
 | 4842 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4843 | for as_dir in $PATH | 
 | 4844 | do | 
 | 4845 |   IFS=$as_save_IFS | 
 | 4846 |   test -z "$as_dir" && as_dir=. | 
 | 4847 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4848 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4849 |     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | 
 | 4850 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4851 |     break 2 | 
 | 4852 |   fi | 
 | 4853 | done | 
 | 4854 | done | 
 | 4855 |  | 
 | 4856 |   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
 | 4857 |   ;; | 
 | 4858 | esac | 
 | 4859 | fi | 
 | 4860 | MV=$ac_cv_path_MV | 
 | 4861 |  | 
 | 4862 | if test -n "$MV"; then | 
 | 4863 |   echo "$as_me:$LINENO: result: $MV" >&5 | 
 | 4864 | echo "${ECHO_T}$MV" >&6 | 
 | 4865 | else | 
 | 4866 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4867 | echo "${ECHO_T}no" >&6 | 
 | 4868 | fi | 
 | 4869 |  | 
 | 4870 | # Extract the first word of "pax", so it can be a program name with args. | 
 | 4871 | set dummy pax; ac_word=$2 | 
 | 4872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4874 | if test "${ac_cv_path_PAX+set}" = set; then | 
 | 4875 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4876 | else | 
 | 4877 |   case $PAX in | 
 | 4878 |   [\\/]* | ?:[\\/]*) | 
 | 4879 |   ac_cv_path_PAX="$PAX" # Let the user override the test with a path. | 
 | 4880 |   ;; | 
 | 4881 |   *) | 
 | 4882 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4883 | for as_dir in $PATH | 
 | 4884 | do | 
 | 4885 |   IFS=$as_save_IFS | 
 | 4886 |   test -z "$as_dir" && as_dir=. | 
 | 4887 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4888 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4889 |     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext" | 
 | 4890 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4891 |     break 2 | 
 | 4892 |   fi | 
 | 4893 | done | 
 | 4894 | done | 
 | 4895 |  | 
 | 4896 |   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax" | 
 | 4897 |   ;; | 
 | 4898 | esac | 
 | 4899 | fi | 
 | 4900 | PAX=$ac_cv_path_PAX | 
 | 4901 |  | 
 | 4902 | if test -n "$PAX"; then | 
 | 4903 |   echo "$as_me:$LINENO: result: $PAX" >&5 | 
 | 4904 | echo "${ECHO_T}$PAX" >&6 | 
 | 4905 | else | 
 | 4906 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4907 | echo "${ECHO_T}no" >&6 | 
 | 4908 | fi | 
 | 4909 |  | 
 | 4910 | if test -n "$ac_tool_prefix"; then | 
 | 4911 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 4912 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 4913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4915 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 4916 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4917 | else | 
 | 4918 |   if test -n "$RANLIB"; then | 
 | 4919 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 4920 | else | 
 | 4921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4922 | for as_dir in $PATH | 
 | 4923 | do | 
 | 4924 |   IFS=$as_save_IFS | 
 | 4925 |   test -z "$as_dir" && as_dir=. | 
 | 4926 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4927 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4928 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 4929 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4930 |     break 2 | 
 | 4931 |   fi | 
 | 4932 | done | 
 | 4933 | done | 
 | 4934 |  | 
 | 4935 | fi | 
 | 4936 | fi | 
 | 4937 | RANLIB=$ac_cv_prog_RANLIB | 
 | 4938 | if test -n "$RANLIB"; then | 
 | 4939 |   echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 4940 | echo "${ECHO_T}$RANLIB" >&6 | 
 | 4941 | else | 
 | 4942 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4943 | echo "${ECHO_T}no" >&6 | 
 | 4944 | fi | 
 | 4945 |  | 
 | 4946 | fi | 
 | 4947 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 4948 |   ac_ct_RANLIB=$RANLIB | 
 | 4949 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 4950 | set dummy ranlib; ac_word=$2 | 
 | 4951 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4953 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 4954 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4955 | else | 
 | 4956 |   if test -n "$ac_ct_RANLIB"; then | 
 | 4957 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 4958 | else | 
 | 4959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4960 | for as_dir in $PATH | 
 | 4961 | do | 
 | 4962 |   IFS=$as_save_IFS | 
 | 4963 |   test -z "$as_dir" && as_dir=. | 
 | 4964 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4965 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4966 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 4967 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4968 |     break 2 | 
 | 4969 |   fi | 
 | 4970 | done | 
 | 4971 | done | 
 | 4972 |  | 
 | 4973 |   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
 | 4974 | fi | 
 | 4975 | fi | 
 | 4976 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 4977 | if test -n "$ac_ct_RANLIB"; then | 
 | 4978 |   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 4979 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
 | 4980 | else | 
 | 4981 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4982 | echo "${ECHO_T}no" >&6 | 
 | 4983 | fi | 
 | 4984 |  | 
 | 4985 |   RANLIB=$ac_ct_RANLIB | 
 | 4986 | else | 
 | 4987 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 4988 | fi | 
 | 4989 |  | 
 | 4990 | # Extract the first word of "rm", so it can be a program name with args. | 
 | 4991 | set dummy rm; ac_word=$2 | 
 | 4992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4994 | if test "${ac_cv_path_RM+set}" = set; then | 
 | 4995 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4996 | else | 
 | 4997 |   case $RM in | 
 | 4998 |   [\\/]* | ?:[\\/]*) | 
 | 4999 |   ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
 | 5000 |   ;; | 
 | 5001 |   *) | 
 | 5002 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5003 | for as_dir in $PATH | 
 | 5004 | do | 
 | 5005 |   IFS=$as_save_IFS | 
 | 5006 |   test -z "$as_dir" && as_dir=. | 
 | 5007 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5008 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5009 |     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | 
 | 5010 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5011 |     break 2 | 
 | 5012 |   fi | 
 | 5013 | done | 
 | 5014 | done | 
 | 5015 |  | 
 | 5016 |   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
 | 5017 |   ;; | 
 | 5018 | esac | 
 | 5019 | fi | 
 | 5020 | RM=$ac_cv_path_RM | 
 | 5021 |  | 
 | 5022 | if test -n "$RM"; then | 
 | 5023 |   echo "$as_me:$LINENO: result: $RM" >&5 | 
 | 5024 | echo "${ECHO_T}$RM" >&6 | 
 | 5025 | else | 
 | 5026 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5027 | echo "${ECHO_T}no" >&6 | 
 | 5028 | fi | 
 | 5029 |  | 
 | 5030 | # Extract the first word of "sed", so it can be a program name with args. | 
 | 5031 | set dummy sed; ac_word=$2 | 
 | 5032 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5034 | if test "${ac_cv_path_SED+set}" = set; then | 
 | 5035 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5036 | else | 
 | 5037 |   case $SED in | 
 | 5038 |   [\\/]* | ?:[\\/]*) | 
 | 5039 |   ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
 | 5040 |   ;; | 
 | 5041 |   *) | 
 | 5042 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5043 | for as_dir in $PATH | 
 | 5044 | do | 
 | 5045 |   IFS=$as_save_IFS | 
 | 5046 |   test -z "$as_dir" && as_dir=. | 
 | 5047 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5048 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5049 |     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | 
 | 5050 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5051 |     break 2 | 
 | 5052 |   fi | 
 | 5053 | done | 
 | 5054 | done | 
 | 5055 |  | 
 | 5056 |   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
 | 5057 |   ;; | 
 | 5058 | esac | 
 | 5059 | fi | 
 | 5060 | SED=$ac_cv_path_SED | 
 | 5061 |  | 
 | 5062 | if test -n "$SED"; then | 
 | 5063 |   echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 5064 | echo "${ECHO_T}$SED" >&6 | 
 | 5065 | else | 
 | 5066 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5067 | echo "${ECHO_T}no" >&6 | 
 | 5068 | fi | 
 | 5069 |  | 
 | 5070 | # Extract the first word of "tar", so it can be a program name with args. | 
 | 5071 | set dummy tar; ac_word=$2 | 
 | 5072 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5074 | if test "${ac_cv_path_TAR+set}" = set; then | 
 | 5075 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5076 | else | 
 | 5077 |   case $TAR in | 
 | 5078 |   [\\/]* | ?:[\\/]*) | 
 | 5079 |   ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
 | 5080 |   ;; | 
 | 5081 |   *) | 
 | 5082 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5083 | for as_dir in $PATH | 
 | 5084 | do | 
 | 5085 |   IFS=$as_save_IFS | 
 | 5086 |   test -z "$as_dir" && as_dir=. | 
 | 5087 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5088 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5089 |     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
 | 5090 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5091 |     break 2 | 
 | 5092 |   fi | 
 | 5093 | done | 
 | 5094 | done | 
 | 5095 |  | 
 | 5096 |   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
 | 5097 |   ;; | 
 | 5098 | esac | 
 | 5099 | fi | 
 | 5100 | TAR=$ac_cv_path_TAR | 
 | 5101 |  | 
 | 5102 | if test -n "$TAR"; then | 
 | 5103 |   echo "$as_me:$LINENO: result: $TAR" >&5 | 
 | 5104 | echo "${ECHO_T}$TAR" >&6 | 
 | 5105 | else | 
 | 5106 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5107 | echo "${ECHO_T}no" >&6 | 
 | 5108 | fi | 
 | 5109 |  | 
 | 5110 |  | 
 | 5111 | # Find a good install program.  We prefer a C program (faster), | 
 | 5112 | # so one script is as good as another.  But avoid the broken or | 
 | 5113 | # incompatible versions: | 
 | 5114 | # SysV /etc/install, /usr/sbin/install | 
 | 5115 | # SunOS /usr/etc/install | 
 | 5116 | # IRIX /sbin/install | 
 | 5117 | # AIX /bin/install | 
 | 5118 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 5119 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 5120 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5121 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5122 | # OS/2's system install, which has a completely different semantic | 
 | 5123 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 5124 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
 | 5125 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
 | 5126 | if test -z "$INSTALL"; then | 
 | 5127 | if test "${ac_cv_path_install+set}" = set; then | 
 | 5128 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5129 | else | 
 | 5130 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5131 | for as_dir in $PATH | 
 | 5132 | do | 
 | 5133 |   IFS=$as_save_IFS | 
 | 5134 |   test -z "$as_dir" && as_dir=. | 
 | 5135 |   # Account for people who put trailing slashes in PATH elements. | 
 | 5136 | case $as_dir/ in | 
 | 5137 |   ./ | .// | /cC/* | \ | 
 | 5138 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
 | 5139 |   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
 | 5140 |   /usr/ucb/* ) ;; | 
 | 5141 |   *) | 
 | 5142 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 5143 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 5144 |     # by default. | 
 | 5145 |     for ac_prog in ginstall scoinst install; do | 
 | 5146 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5147 | 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
 | 5148 | 	  if test $ac_prog = install && | 
 | 5149 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5150 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 5151 | 	    : | 
 | 5152 | 	  elif test $ac_prog = install && | 
 | 5153 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 5154 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 5155 | 	    : | 
 | 5156 | 	  else | 
 | 5157 | 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 5158 | 	    break 3 | 
 | 5159 | 	  fi | 
 | 5160 | 	fi | 
 | 5161 |       done | 
 | 5162 |     done | 
 | 5163 |     ;; | 
 | 5164 | esac | 
 | 5165 | done | 
 | 5166 |  | 
 | 5167 |  | 
 | 5168 | fi | 
 | 5169 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5170 |     INSTALL=$ac_cv_path_install | 
 | 5171 |   else | 
 | 5172 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 5173 |     # path for INSTALL within a source directory, because that will | 
 | 5174 |     # break other packages using the cache if that directory is | 
 | 5175 |     # removed, or if the path is relative. | 
 | 5176 |     INSTALL=$ac_install_sh | 
 | 5177 |   fi | 
 | 5178 | fi | 
 | 5179 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
 | 5180 | echo "${ECHO_T}$INSTALL" >&6 | 
 | 5181 |  | 
 | 5182 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5183 | # It thinks the first close brace ends the variable substitution. | 
 | 5184 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5185 |  | 
 | 5186 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 5187 |  | 
 | 5188 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5189 |  | 
 | 5190 |  | 
 | 5191 | # Extract the first word of "bzip2", so it can be a program name with args. | 
 | 5192 | set dummy bzip2; ac_word=$2 | 
 | 5193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5195 | if test "${ac_cv_path_BZIP2+set}" = set; then | 
 | 5196 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5197 | else | 
 | 5198 |   case $BZIP2 in | 
 | 5199 |   [\\/]* | ?:[\\/]*) | 
 | 5200 |   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. | 
 | 5201 |   ;; | 
 | 5202 |   *) | 
 | 5203 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5204 | for as_dir in $PATH | 
 | 5205 | do | 
 | 5206 |   IFS=$as_save_IFS | 
 | 5207 |   test -z "$as_dir" && as_dir=. | 
 | 5208 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5209 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5210 |     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" | 
 | 5211 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5212 |     break 2 | 
 | 5213 |   fi | 
 | 5214 | done | 
 | 5215 | done | 
 | 5216 |  | 
 | 5217 |   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2" | 
 | 5218 |   ;; | 
 | 5219 | esac | 
 | 5220 | fi | 
 | 5221 | BZIP2=$ac_cv_path_BZIP2 | 
 | 5222 |  | 
 | 5223 | if test -n "$BZIP2"; then | 
 | 5224 |   echo "$as_me:$LINENO: result: $BZIP2" >&5 | 
 | 5225 | echo "${ECHO_T}$BZIP2" >&6 | 
 | 5226 | else | 
 | 5227 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5228 | echo "${ECHO_T}no" >&6 | 
 | 5229 | fi | 
 | 5230 |  | 
 | 5231 | # Extract the first word of "dot", so it can be a program name with args. | 
 | 5232 | set dummy dot; ac_word=$2 | 
 | 5233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5235 | if test "${ac_cv_path_DOT+set}" = set; then | 
 | 5236 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5237 | else | 
 | 5238 |   case $DOT in | 
 | 5239 |   [\\/]* | ?:[\\/]*) | 
 | 5240 |   ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
 | 5241 |   ;; | 
 | 5242 |   *) | 
 | 5243 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5244 | for as_dir in $PATH | 
 | 5245 | do | 
 | 5246 |   IFS=$as_save_IFS | 
 | 5247 |   test -z "$as_dir" && as_dir=. | 
 | 5248 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5249 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5250 |     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
 | 5251 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5252 |     break 2 | 
 | 5253 |   fi | 
 | 5254 | done | 
 | 5255 | done | 
 | 5256 |  | 
 | 5257 |   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" | 
 | 5258 |   ;; | 
 | 5259 | esac | 
 | 5260 | fi | 
 | 5261 | DOT=$ac_cv_path_DOT | 
 | 5262 |  | 
 | 5263 | if test -n "$DOT"; then | 
 | 5264 |   echo "$as_me:$LINENO: result: $DOT" >&5 | 
 | 5265 | echo "${ECHO_T}$DOT" >&6 | 
 | 5266 | else | 
 | 5267 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5268 | echo "${ECHO_T}no" >&6 | 
 | 5269 | fi | 
 | 5270 |  | 
 | 5271 | # Extract the first word of "doxygen", so it can be a program name with args. | 
 | 5272 | set dummy doxygen; ac_word=$2 | 
 | 5273 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5275 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | 
 | 5276 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5277 | else | 
 | 5278 |   case $DOXYGEN in | 
 | 5279 |   [\\/]* | ?:[\\/]*) | 
 | 5280 |   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | 
 | 5281 |   ;; | 
 | 5282 |   *) | 
 | 5283 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5284 | for as_dir in $PATH | 
 | 5285 | do | 
 | 5286 |   IFS=$as_save_IFS | 
 | 5287 |   test -z "$as_dir" && as_dir=. | 
 | 5288 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5289 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5290 |     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | 
 | 5291 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5292 |     break 2 | 
 | 5293 |   fi | 
 | 5294 | done | 
 | 5295 | done | 
 | 5296 |  | 
 | 5297 |   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen" | 
 | 5298 |   ;; | 
 | 5299 | esac | 
 | 5300 | fi | 
 | 5301 | DOXYGEN=$ac_cv_path_DOXYGEN | 
 | 5302 |  | 
 | 5303 | if test -n "$DOXYGEN"; then | 
 | 5304 |   echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | 
 | 5305 | echo "${ECHO_T}$DOXYGEN" >&6 | 
 | 5306 | else | 
 | 5307 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5308 | echo "${ECHO_T}no" >&6 | 
 | 5309 | fi | 
 | 5310 |  | 
 | 5311 | # Extract the first word of "etags", so it can be a program name with args. | 
 | 5312 | set dummy etags; ac_word=$2 | 
 | 5313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5315 | if test "${ac_cv_path_ETAGS+set}" = set; then | 
 | 5316 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5317 | else | 
 | 5318 |   case $ETAGS in | 
 | 5319 |   [\\/]* | ?:[\\/]*) | 
 | 5320 |   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. | 
 | 5321 |   ;; | 
 | 5322 |   *) | 
 | 5323 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5324 | for as_dir in $PATH | 
 | 5325 | do | 
 | 5326 |   IFS=$as_save_IFS | 
 | 5327 |   test -z "$as_dir" && as_dir=. | 
 | 5328 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5329 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5330 |     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" | 
 | 5331 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5332 |     break 2 | 
 | 5333 |   fi | 
 | 5334 | done | 
 | 5335 | done | 
 | 5336 |  | 
 | 5337 |   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" | 
 | 5338 |   ;; | 
 | 5339 | esac | 
 | 5340 | fi | 
 | 5341 | ETAGS=$ac_cv_path_ETAGS | 
 | 5342 |  | 
 | 5343 | if test -n "$ETAGS"; then | 
 | 5344 |   echo "$as_me:$LINENO: result: $ETAGS" >&5 | 
 | 5345 | echo "${ECHO_T}$ETAGS" >&6 | 
 | 5346 | else | 
 | 5347 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5348 | echo "${ECHO_T}no" >&6 | 
 | 5349 | fi | 
 | 5350 |  | 
 | 5351 | # Extract the first word of "groff", so it can be a program name with args. | 
 | 5352 | set dummy groff; ac_word=$2 | 
 | 5353 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5355 | if test "${ac_cv_path_GROFF+set}" = set; then | 
 | 5356 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5357 | else | 
 | 5358 |   case $GROFF in | 
 | 5359 |   [\\/]* | ?:[\\/]*) | 
 | 5360 |   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | 
 | 5361 |   ;; | 
 | 5362 |   *) | 
 | 5363 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5364 | for as_dir in $PATH | 
 | 5365 | do | 
 | 5366 |   IFS=$as_save_IFS | 
 | 5367 |   test -z "$as_dir" && as_dir=. | 
 | 5368 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5369 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5370 |     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | 
 | 5371 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5372 |     break 2 | 
 | 5373 |   fi | 
 | 5374 | done | 
 | 5375 | done | 
 | 5376 |  | 
 | 5377 |   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff" | 
 | 5378 |   ;; | 
 | 5379 | esac | 
 | 5380 | fi | 
 | 5381 | GROFF=$ac_cv_path_GROFF | 
 | 5382 |  | 
 | 5383 | if test -n "$GROFF"; then | 
 | 5384 |   echo "$as_me:$LINENO: result: $GROFF" >&5 | 
 | 5385 | echo "${ECHO_T}$GROFF" >&6 | 
 | 5386 | else | 
 | 5387 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5388 | echo "${ECHO_T}no" >&6 | 
 | 5389 | fi | 
 | 5390 |  | 
 | 5391 | # Extract the first word of "gzip", so it can be a program name with args. | 
 | 5392 | set dummy gzip; ac_word=$2 | 
 | 5393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5395 | if test "${ac_cv_path_GZIP+set}" = set; then | 
 | 5396 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5397 | else | 
 | 5398 |   case $GZIP in | 
 | 5399 |   [\\/]* | ?:[\\/]*) | 
 | 5400 |   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | 
 | 5401 |   ;; | 
 | 5402 |   *) | 
 | 5403 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5404 | for as_dir in $PATH | 
 | 5405 | do | 
 | 5406 |   IFS=$as_save_IFS | 
 | 5407 |   test -z "$as_dir" && as_dir=. | 
 | 5408 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5409 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5410 |     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" | 
 | 5411 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5412 |     break 2 | 
 | 5413 |   fi | 
 | 5414 | done | 
 | 5415 | done | 
 | 5416 |  | 
 | 5417 |   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip" | 
 | 5418 |   ;; | 
 | 5419 | esac | 
 | 5420 | fi | 
 | 5421 | GZIP=$ac_cv_path_GZIP | 
 | 5422 |  | 
 | 5423 | if test -n "$GZIP"; then | 
 | 5424 |   echo "$as_me:$LINENO: result: $GZIP" >&5 | 
 | 5425 | echo "${ECHO_T}$GZIP" >&6 | 
 | 5426 | else | 
 | 5427 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5428 | echo "${ECHO_T}no" >&6 | 
 | 5429 | fi | 
 | 5430 |  | 
 | 5431 | # Extract the first word of "pod2html", so it can be a program name with args. | 
 | 5432 | set dummy pod2html; ac_word=$2 | 
 | 5433 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5435 | if test "${ac_cv_path_POD2HTML+set}" = set; then | 
 | 5436 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5437 | else | 
 | 5438 |   case $POD2HTML in | 
 | 5439 |   [\\/]* | ?:[\\/]*) | 
 | 5440 |   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. | 
 | 5441 |   ;; | 
 | 5442 |   *) | 
 | 5443 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5444 | for as_dir in $PATH | 
 | 5445 | do | 
 | 5446 |   IFS=$as_save_IFS | 
 | 5447 |   test -z "$as_dir" && as_dir=. | 
 | 5448 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5449 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5450 |     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" | 
 | 5451 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5452 |     break 2 | 
 | 5453 |   fi | 
 | 5454 | done | 
 | 5455 | done | 
 | 5456 |  | 
 | 5457 |   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html" | 
 | 5458 |   ;; | 
 | 5459 | esac | 
 | 5460 | fi | 
 | 5461 | POD2HTML=$ac_cv_path_POD2HTML | 
 | 5462 |  | 
 | 5463 | if test -n "$POD2HTML"; then | 
 | 5464 |   echo "$as_me:$LINENO: result: $POD2HTML" >&5 | 
 | 5465 | echo "${ECHO_T}$POD2HTML" >&6 | 
 | 5466 | else | 
 | 5467 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5468 | echo "${ECHO_T}no" >&6 | 
 | 5469 | fi | 
 | 5470 |  | 
 | 5471 | # Extract the first word of "pod2man", so it can be a program name with args. | 
 | 5472 | set dummy pod2man; ac_word=$2 | 
 | 5473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5475 | if test "${ac_cv_path_POD2MAN+set}" = set; then | 
 | 5476 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5477 | else | 
 | 5478 |   case $POD2MAN in | 
 | 5479 |   [\\/]* | ?:[\\/]*) | 
 | 5480 |   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. | 
 | 5481 |   ;; | 
 | 5482 |   *) | 
 | 5483 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5484 | for as_dir in $PATH | 
 | 5485 | do | 
 | 5486 |   IFS=$as_save_IFS | 
 | 5487 |   test -z "$as_dir" && as_dir=. | 
 | 5488 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5489 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5490 |     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" | 
 | 5491 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5492 |     break 2 | 
 | 5493 |   fi | 
 | 5494 | done | 
 | 5495 | done | 
 | 5496 |  | 
 | 5497 |   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man" | 
 | 5498 |   ;; | 
 | 5499 | esac | 
 | 5500 | fi | 
 | 5501 | POD2MAN=$ac_cv_path_POD2MAN | 
 | 5502 |  | 
 | 5503 | if test -n "$POD2MAN"; then | 
 | 5504 |   echo "$as_me:$LINENO: result: $POD2MAN" >&5 | 
 | 5505 | echo "${ECHO_T}$POD2MAN" >&6 | 
 | 5506 | else | 
 | 5507 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5508 | echo "${ECHO_T}no" >&6 | 
 | 5509 | fi | 
 | 5510 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5511 | # Extract the first word of "runtest", so it can be a program name with args. | 
 | 5512 | set dummy runtest; ac_word=$2 | 
 | 5513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5515 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
 | 5516 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5517 | else | 
 | 5518 |   case $RUNTEST in | 
 | 5519 |   [\\/]* | ?:[\\/]*) | 
 | 5520 |   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
 | 5521 |   ;; | 
 | 5522 |   *) | 
 | 5523 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5524 | for as_dir in $PATH | 
 | 5525 | do | 
 | 5526 |   IFS=$as_save_IFS | 
 | 5527 |   test -z "$as_dir" && as_dir=. | 
 | 5528 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5529 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5530 |     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
 | 5531 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5532 |     break 2 | 
 | 5533 |   fi | 
 | 5534 | done | 
 | 5535 | done | 
 | 5536 |  | 
 | 5537 |   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest" | 
 | 5538 |   ;; | 
 | 5539 | esac | 
 | 5540 | fi | 
 | 5541 | RUNTEST=$ac_cv_path_RUNTEST | 
 | 5542 |  | 
 | 5543 | if test -n "$RUNTEST"; then | 
 | 5544 |   echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
 | 5545 | echo "${ECHO_T}$RUNTEST" >&6 | 
 | 5546 | else | 
 | 5547 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5548 | echo "${ECHO_T}no" >&6 | 
 | 5549 | fi | 
 | 5550 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5551 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5552 | no_itcl=true | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5553 | echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 | 
 | 5554 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5555 |  | 
 | 5556 | # Check whether --with-tclinclude or --without-tclinclude was given. | 
 | 5557 | if test "${with_tclinclude+set}" = set; then | 
 | 5558 |   withval="$with_tclinclude" | 
 | 5559 |   with_tclinclude=${withval} | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5560 | else | 
 | 5561 |   with_tclinclude='' | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5562 | fi; | 
 | 5563 | if test "${ac_cv_path_tclsh+set}" = set; then | 
 | 5564 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5565 | else | 
 | 5566 |  | 
 | 5567 | if test x"${with_tclinclude}" != x ; then | 
 | 5568 |   if test -f ${with_tclinclude}/tclsh ; then | 
 | 5569 |     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` | 
 | 5570 |   elif test -f ${with_tclinclude}/src/tclsh ; then | 
 | 5571 |     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` | 
 | 5572 |   else | 
 | 5573 |     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 | 
 | 5574 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} | 
 | 5575 |    { (exit 1); exit 1; }; } | 
 | 5576 |   fi | 
 | 5577 | fi | 
 | 5578 |  | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5579 | if test x"${ac_cv_path_tclsh}" = x ; then | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5580 |   echo "$as_me:$LINENO: result: none" >&5 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5581 | echo "${ECHO_T}none" >&6 | 
| Reid Spencer | fc757b5 | 2004-12-02 07:31:22 +0000 | [diff] [blame] | 5582 |   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 .tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5583 | do | 
 | 5584 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5585 | set dummy $ac_prog; ac_word=$2 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5588 | if test "${ac_cv_path_TCLSH+set}" = set; then | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5589 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5590 | else | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5591 |   case $TCLSH in | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5592 |   [\\/]* | ?:[\\/]*) | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5593 |   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5594 |   ;; | 
 | 5595 |   *) | 
 | 5596 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5597 | for as_dir in $PATH | 
 | 5598 | do | 
 | 5599 |   IFS=$as_save_IFS | 
 | 5600 |   test -z "$as_dir" && as_dir=. | 
 | 5601 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5602 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5603 |     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5604 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5605 |     break 2 | 
 | 5606 |   fi | 
 | 5607 | done | 
 | 5608 | done | 
 | 5609 |  | 
 | 5610 |   ;; | 
 | 5611 | esac | 
 | 5612 | fi | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5613 | TCLSH=$ac_cv_path_TCLSH | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5614 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5615 | if test -n "$TCLSH"; then | 
 | 5616 |   echo "$as_me:$LINENO: result: $TCLSH" >&5 | 
 | 5617 | echo "${ECHO_T}$TCLSH" >&6 | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5618 | else | 
 | 5619 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5620 | echo "${ECHO_T}no" >&6 | 
 | 5621 | fi | 
 | 5622 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5623 |   test -n "$TCLSH" && break | 
 | 5624 | done | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5625 |  | 
| Reid Spencer | cda35f8 | 2004-12-02 04:17:20 +0000 | [diff] [blame] | 5626 |   if test x"${TCLSH}" = x ; then | 
 | 5627 |     ac_cv_path_tclsh=''; | 
 | 5628 |   else | 
 | 5629 |     ac_cv_path_tclsh="${TCLSH}"; | 
 | 5630 |   fi | 
 | 5631 | else | 
 | 5632 |   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 | 
 | 5633 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6 | 
 | 5634 |   TCLSH="${ac_cv_path_tclsh}" | 
 | 5635 |  | 
 | 5636 | fi | 
 | 5637 |  | 
 | 5638 | fi | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 5639 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5640 | # Extract the first word of "zip", so it can be a program name with args. | 
 | 5641 | set dummy zip; ac_word=$2 | 
 | 5642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5644 | if test "${ac_cv_path_ZIP+set}" = set; then | 
 | 5645 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5646 | else | 
 | 5647 |   case $ZIP in | 
 | 5648 |   [\\/]* | ?:[\\/]*) | 
 | 5649 |   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | 
 | 5650 |   ;; | 
 | 5651 |   *) | 
 | 5652 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5653 | for as_dir in $PATH | 
 | 5654 | do | 
 | 5655 |   IFS=$as_save_IFS | 
 | 5656 |   test -z "$as_dir" && as_dir=. | 
 | 5657 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5658 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5659 |     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" | 
 | 5660 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5661 |     break 2 | 
 | 5662 |   fi | 
 | 5663 | done | 
 | 5664 | done | 
 | 5665 |  | 
 | 5666 |   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip" | 
 | 5667 |   ;; | 
 | 5668 | esac | 
 | 5669 | fi | 
 | 5670 | ZIP=$ac_cv_path_ZIP | 
 | 5671 |  | 
 | 5672 | if test -n "$ZIP"; then | 
 | 5673 |   echo "$as_me:$LINENO: result: $ZIP" >&5 | 
 | 5674 | echo "${ECHO_T}$ZIP" >&6 | 
 | 5675 | else | 
 | 5676 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5677 | echo "${ECHO_T}no" >&6 | 
 | 5678 | fi | 
 | 5679 |  | 
 | 5680 |  | 
 | 5681 | echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
 | 5682 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6 | 
 | 5683 | if test "${llvm_cv_link_use_r+set}" = set; then | 
 | 5684 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5685 | else | 
 | 5686 |    ac_ext=c | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5687 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5688 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5689 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5690 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5691 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5692 |   oldcflags="$CFLAGS" | 
 | 5693 |   CFLAGS="$CFLAGS -Wl,-R." | 
 | 5694 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5695 | /* confdefs.h.  */ | 
 | 5696 | _ACEOF | 
 | 5697 | cat confdefs.h >>conftest.$ac_ext | 
 | 5698 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5699 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5700 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5701 | int | 
 | 5702 | main () | 
 | 5703 | { | 
 | 5704 | int main() { return 0; } | 
 | 5705 |   ; | 
 | 5706 |   return 0; | 
 | 5707 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5708 | _ACEOF | 
 | 5709 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 5710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5711 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5712 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5713 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5714 |   rm -f conftest.er1 | 
 | 5715 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5716 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5717 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5718 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 5719 | 			 || test ! -s conftest.err' | 
 | 5720 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5721 |   (eval $ac_try) 2>&5 | 
 | 5722 |   ac_status=$? | 
 | 5723 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5724 |   (exit $ac_status); }; } && | 
 | 5725 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5726 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5727 |   (eval $ac_try) 2>&5 | 
 | 5728 |   ac_status=$? | 
 | 5729 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5730 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5731 |   llvm_cv_link_use_r=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5732 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5733 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5734 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5735 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5736 | llvm_cv_link_use_r=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5737 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5738 | rm -f conftest.err conftest.$ac_objext \ | 
 | 5739 |       conftest$ac_exeext conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5740 |   CFLAGS="$oldcflags" | 
 | 5741 |   ac_ext=c | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5742 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5746 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5747 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5748 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5749 | echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 | 
 | 5750 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6 | 
 | 5751 | if test "$llvm_cv_link_use_r" = yes ; then | 
 | 5752 |  | 
 | 5753 | cat >>confdefs.h <<\_ACEOF | 
 | 5754 | #define HAVE_LINK_R 1 | 
 | 5755 | _ACEOF | 
 | 5756 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5757 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5758 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5759 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5760 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5761 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 5762 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | 
 | 5763 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | 
 | 5764 | if test "${ac_cv_c_const+set}" = set; then | 
 | 5765 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5766 | else | 
 | 5767 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5768 | /* confdefs.h.  */ | 
 | 5769 | _ACEOF | 
 | 5770 | cat confdefs.h >>conftest.$ac_ext | 
 | 5771 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5772 | /* end confdefs.h.  */ | 
 | 5773 |  | 
 | 5774 | int | 
 | 5775 | main () | 
 | 5776 | { | 
 | 5777 | /* FIXME: Include the comments suggested by Paul. */ | 
 | 5778 | #ifndef __cplusplus | 
 | 5779 |   /* Ultrix mips cc rejects this.  */ | 
 | 5780 |   typedef int charset[2]; | 
 | 5781 |   const charset x; | 
 | 5782 |   /* SunOS 4.1.1 cc rejects this.  */ | 
 | 5783 |   char const *const *ccp; | 
 | 5784 |   char **p; | 
 | 5785 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 5786 |   struct point {int x, y;}; | 
 | 5787 |   static struct point const zero = {0,0}; | 
 | 5788 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 5789 |      It does not let you subtract one const X* pointer from another in | 
 | 5790 |      an arm of an if-expression whose if-part is not a constant | 
 | 5791 |      expression */ | 
 | 5792 |   const char *g = "string"; | 
 | 5793 |   ccp = &g + (g ? g-g : 0); | 
 | 5794 |   /* HPUX 7.0 cc rejects these. */ | 
 | 5795 |   ++ccp; | 
 | 5796 |   p = (char**) ccp; | 
 | 5797 |   ccp = (char const *const *) p; | 
 | 5798 |   { /* SCO 3.2v4 cc rejects this.  */ | 
 | 5799 |     char *t; | 
 | 5800 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
 | 5801 |  | 
 | 5802 |     *t++ = 0; | 
 | 5803 |   } | 
 | 5804 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 5805 |     int x[] = {25, 17}; | 
 | 5806 |     const int *foo = &x[0]; | 
 | 5807 |     ++foo; | 
 | 5808 |   } | 
 | 5809 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 5810 |     typedef const int *iptr; | 
 | 5811 |     iptr p = 0; | 
 | 5812 |     ++p; | 
 | 5813 |   } | 
 | 5814 |   { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 5815 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 5816 |     struct s { int j; const int *ap[3]; }; | 
 | 5817 |     struct s *b; b->j = 5; | 
 | 5818 |   } | 
 | 5819 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 5820 |     const int foo = 10; | 
 | 5821 |   } | 
 | 5822 | #endif | 
 | 5823 |  | 
 | 5824 |   ; | 
 | 5825 |   return 0; | 
 | 5826 | } | 
 | 5827 | _ACEOF | 
 | 5828 | rm -f conftest.$ac_objext | 
 | 5829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 5830 |   (eval $ac_compile) 2>conftest.er1 | 
 | 5831 |   ac_status=$? | 
 | 5832 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5833 |   rm -f conftest.er1 | 
 | 5834 |   cat conftest.err >&5 | 
 | 5835 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5836 |   (exit $ac_status); } && | 
 | 5837 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 5838 | 			 || test ! -s conftest.err' | 
 | 5839 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5840 |   (eval $ac_try) 2>&5 | 
 | 5841 |   ac_status=$? | 
 | 5842 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5843 |   (exit $ac_status); }; } && | 
 | 5844 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 5845 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5846 |   (eval $ac_try) 2>&5 | 
 | 5847 |   ac_status=$? | 
 | 5848 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5849 |   (exit $ac_status); }; }; then | 
 | 5850 |   ac_cv_c_const=yes | 
 | 5851 | else | 
 | 5852 |   echo "$as_me: failed program was:" >&5 | 
 | 5853 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5854 |  | 
 | 5855 | ac_cv_c_const=no | 
 | 5856 | fi | 
 | 5857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5858 | fi | 
 | 5859 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 
 | 5860 | echo "${ECHO_T}$ac_cv_c_const" >&6 | 
 | 5861 | if test $ac_cv_c_const = no; then | 
 | 5862 |  | 
 | 5863 | cat >>confdefs.h <<\_ACEOF | 
 | 5864 | #define const | 
 | 5865 | _ACEOF | 
 | 5866 |  | 
 | 5867 | fi | 
 | 5868 |  | 
 | 5869 |  | 
 | 5870 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
 | 5871 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
 | 5872 | if test "${ac_cv_prog_egrep+set}" = set; then | 
 | 5873 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5874 | else | 
 | 5875 |   if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
 | 5876 |     then ac_cv_prog_egrep='grep -E' | 
 | 5877 |     else ac_cv_prog_egrep='egrep' | 
 | 5878 |     fi | 
 | 5879 | fi | 
 | 5880 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
 | 5881 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
 | 5882 |  EGREP=$ac_cv_prog_egrep | 
 | 5883 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5884 |  | 
 | 5885 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 5886 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 5887 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 5888 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5889 | else | 
 | 5890 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5891 | /* confdefs.h.  */ | 
 | 5892 | _ACEOF | 
 | 5893 | cat confdefs.h >>conftest.$ac_ext | 
 | 5894 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5895 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5896 | #include <stdlib.h> | 
 | 5897 | #include <stdarg.h> | 
 | 5898 | #include <string.h> | 
 | 5899 | #include <float.h> | 
 | 5900 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5901 | int | 
 | 5902 | main () | 
 | 5903 | { | 
 | 5904 |  | 
 | 5905 |   ; | 
 | 5906 |   return 0; | 
 | 5907 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5908 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5909 | rm -f conftest.$ac_objext | 
 | 5910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5911 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5912 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5913 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5914 |   rm -f conftest.er1 | 
 | 5915 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5916 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5917 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5918 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 5919 | 			 || test ! -s conftest.err' | 
 | 5920 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5921 |   (eval $ac_try) 2>&5 | 
 | 5922 |   ac_status=$? | 
 | 5923 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5924 |   (exit $ac_status); }; } && | 
 | 5925 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5926 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 5927 |   (eval $ac_try) 2>&5 | 
 | 5928 |   ac_status=$? | 
 | 5929 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5930 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5931 |   ac_cv_header_stdc=yes | 
 | 5932 | else | 
 | 5933 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5934 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5935 |  | 
 | 5936 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5937 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5939 |  | 
 | 5940 | if test $ac_cv_header_stdc = yes; then | 
 | 5941 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 5942 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5943 | /* confdefs.h.  */ | 
 | 5944 | _ACEOF | 
 | 5945 | cat confdefs.h >>conftest.$ac_ext | 
 | 5946 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5947 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5948 | #include <string.h> | 
 | 5949 |  | 
 | 5950 | _ACEOF | 
 | 5951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5952 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5953 |   : | 
 | 5954 | else | 
 | 5955 |   ac_cv_header_stdc=no | 
 | 5956 | fi | 
 | 5957 | rm -f conftest* | 
 | 5958 |  | 
 | 5959 | fi | 
 | 5960 |  | 
 | 5961 | if test $ac_cv_header_stdc = yes; then | 
 | 5962 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 5963 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5964 | /* confdefs.h.  */ | 
 | 5965 | _ACEOF | 
 | 5966 | cat confdefs.h >>conftest.$ac_ext | 
 | 5967 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5968 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5969 | #include <stdlib.h> | 
 | 5970 |  | 
 | 5971 | _ACEOF | 
 | 5972 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5973 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5974 |   : | 
 | 5975 | else | 
 | 5976 |   ac_cv_header_stdc=no | 
 | 5977 | fi | 
 | 5978 | rm -f conftest* | 
 | 5979 |  | 
 | 5980 | fi | 
 | 5981 |  | 
 | 5982 | if test $ac_cv_header_stdc = yes; then | 
 | 5983 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 5984 |   if test "$cross_compiling" = yes; then | 
 | 5985 |   : | 
 | 5986 | else | 
 | 5987 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5988 | /* confdefs.h.  */ | 
 | 5989 | _ACEOF | 
 | 5990 | cat confdefs.h >>conftest.$ac_ext | 
 | 5991 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5992 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5993 | #include <ctype.h> | 
 | 5994 | #if ((' ' & 0x0FF) == 0x020) | 
 | 5995 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 5996 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 5997 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 5998 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 5999 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 6000 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 6001 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6002 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 6003 | #endif | 
 | 6004 |  | 
 | 6005 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 6006 | int | 
 | 6007 | main () | 
 | 6008 | { | 
 | 6009 |   int i; | 
 | 6010 |   for (i = 0; i < 256; i++) | 
 | 6011 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6012 | 	|| toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6013 |       exit(2); | 
 | 6014 |   exit (0); | 
 | 6015 | } | 
 | 6016 | _ACEOF | 
 | 6017 | rm -f conftest$ac_exeext | 
 | 6018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6019 |   (eval $ac_link) 2>&5 | 
 | 6020 |   ac_status=$? | 
 | 6021 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6022 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 6023 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6024 |   (eval $ac_try) 2>&5 | 
 | 6025 |   ac_status=$? | 
 | 6026 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6027 |   (exit $ac_status); }; }; then | 
 | 6028 |   : | 
 | 6029 | else | 
 | 6030 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 6031 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6032 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6033 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6034 | ( exit $ac_status ) | 
 | 6035 | ac_cv_header_stdc=no | 
 | 6036 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6037 | 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] | 6038 | fi | 
 | 6039 | fi | 
 | 6040 | fi | 
 | 6041 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 6042 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 6043 | if test $ac_cv_header_stdc = yes; then | 
 | 6044 |  | 
 | 6045 | cat >>confdefs.h <<\_ACEOF | 
 | 6046 | #define STDC_HEADERS 1 | 
 | 6047 | _ACEOF | 
 | 6048 |  | 
 | 6049 | fi | 
 | 6050 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6051 |  | 
 | 6052 |  | 
 | 6053 |  | 
 | 6054 |  | 
 | 6055 |  | 
 | 6056 | ac_header_dirent=no | 
 | 6057 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
 | 6058 |   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
 | 6059 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
 | 6060 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | 
 | 6061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6062 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6063 | else | 
 | 6064 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 6065 | /* confdefs.h.  */ | 
 | 6066 | _ACEOF | 
 | 6067 | cat confdefs.h >>conftest.$ac_ext | 
 | 6068 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6069 | /* end confdefs.h.  */ | 
 | 6070 | #include <sys/types.h> | 
 | 6071 | #include <$ac_hdr> | 
 | 6072 |  | 
 | 6073 | int | 
 | 6074 | main () | 
 | 6075 | { | 
 | 6076 | if ((DIR *) 0) | 
 | 6077 | return 0; | 
 | 6078 |   ; | 
 | 6079 |   return 0; | 
 | 6080 | } | 
 | 6081 | _ACEOF | 
 | 6082 | rm -f conftest.$ac_objext | 
 | 6083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 6084 |   (eval $ac_compile) 2>conftest.er1 | 
 | 6085 |   ac_status=$? | 
 | 6086 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6087 |   rm -f conftest.er1 | 
 | 6088 |   cat conftest.err >&5 | 
 | 6089 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6090 |   (exit $ac_status); } && | 
 | 6091 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6092 | 			 || test ! -s conftest.err' | 
 | 6093 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6094 |   (eval $ac_try) 2>&5 | 
 | 6095 |   ac_status=$? | 
 | 6096 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6097 |   (exit $ac_status); }; } && | 
 | 6098 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6099 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6100 |   (eval $ac_try) 2>&5 | 
 | 6101 |   ac_status=$? | 
 | 6102 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6103 |   (exit $ac_status); }; }; then | 
 | 6104 |   eval "$as_ac_Header=yes" | 
 | 6105 | else | 
 | 6106 |   echo "$as_me: failed program was:" >&5 | 
 | 6107 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6108 |  | 
 | 6109 | eval "$as_ac_Header=no" | 
 | 6110 | fi | 
 | 6111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6112 | fi | 
 | 6113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 6114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 6115 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 6116 |   cat >>confdefs.h <<_ACEOF | 
 | 6117 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
 | 6118 | _ACEOF | 
 | 6119 |  | 
 | 6120 | ac_header_dirent=$ac_hdr; break | 
 | 6121 | fi | 
 | 6122 |  | 
 | 6123 | done | 
 | 6124 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 6125 | if test $ac_header_dirent = dirent.h; then | 
 | 6126 |   echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 6127 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
 | 6128 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 6129 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6130 | else | 
 | 6131 |   ac_func_search_save_LIBS=$LIBS | 
 | 6132 | ac_cv_search_opendir=no | 
 | 6133 | cat >conftest.$ac_ext <<_ACEOF | 
 | 6134 | /* confdefs.h.  */ | 
 | 6135 | _ACEOF | 
 | 6136 | cat confdefs.h >>conftest.$ac_ext | 
 | 6137 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6138 | /* end confdefs.h.  */ | 
 | 6139 |  | 
 | 6140 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6141 | #ifdef __cplusplus | 
 | 6142 | extern "C" | 
 | 6143 | #endif | 
 | 6144 | /* We use char because int might match the return type of a gcc2 | 
 | 6145 |    builtin and then its argument prototype would still apply.  */ | 
 | 6146 | char opendir (); | 
 | 6147 | int | 
 | 6148 | main () | 
 | 6149 | { | 
 | 6150 | opendir (); | 
 | 6151 |   ; | 
 | 6152 |   return 0; | 
 | 6153 | } | 
 | 6154 | _ACEOF | 
 | 6155 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6157 |   (eval $ac_link) 2>conftest.er1 | 
 | 6158 |   ac_status=$? | 
 | 6159 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6160 |   rm -f conftest.er1 | 
 | 6161 |   cat conftest.err >&5 | 
 | 6162 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6163 |   (exit $ac_status); } && | 
 | 6164 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6165 | 			 || test ! -s conftest.err' | 
 | 6166 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6167 |   (eval $ac_try) 2>&5 | 
 | 6168 |   ac_status=$? | 
 | 6169 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6170 |   (exit $ac_status); }; } && | 
 | 6171 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 6172 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6173 |   (eval $ac_try) 2>&5 | 
 | 6174 |   ac_status=$? | 
 | 6175 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6176 |   (exit $ac_status); }; }; then | 
 | 6177 |   ac_cv_search_opendir="none required" | 
 | 6178 | else | 
 | 6179 |   echo "$as_me: failed program was:" >&5 | 
 | 6180 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6181 |  | 
 | 6182 | fi | 
 | 6183 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6184 |       conftest$ac_exeext conftest.$ac_ext | 
 | 6185 | if test "$ac_cv_search_opendir" = no; then | 
 | 6186 |   for ac_lib in dir; do | 
 | 6187 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 6188 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 6189 | /* confdefs.h.  */ | 
 | 6190 | _ACEOF | 
 | 6191 | cat confdefs.h >>conftest.$ac_ext | 
 | 6192 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6193 | /* end confdefs.h.  */ | 
 | 6194 |  | 
 | 6195 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6196 | #ifdef __cplusplus | 
 | 6197 | extern "C" | 
 | 6198 | #endif | 
 | 6199 | /* We use char because int might match the return type of a gcc2 | 
 | 6200 |    builtin and then its argument prototype would still apply.  */ | 
 | 6201 | char opendir (); | 
 | 6202 | int | 
 | 6203 | main () | 
 | 6204 | { | 
 | 6205 | opendir (); | 
 | 6206 |   ; | 
 | 6207 |   return 0; | 
 | 6208 | } | 
 | 6209 | _ACEOF | 
 | 6210 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6212 |   (eval $ac_link) 2>conftest.er1 | 
 | 6213 |   ac_status=$? | 
 | 6214 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6215 |   rm -f conftest.er1 | 
 | 6216 |   cat conftest.err >&5 | 
 | 6217 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6218 |   (exit $ac_status); } && | 
 | 6219 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6220 | 			 || test ! -s conftest.err' | 
 | 6221 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6222 |   (eval $ac_try) 2>&5 | 
 | 6223 |   ac_status=$? | 
 | 6224 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6225 |   (exit $ac_status); }; } && | 
 | 6226 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 6227 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6228 |   (eval $ac_try) 2>&5 | 
 | 6229 |   ac_status=$? | 
 | 6230 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6231 |   (exit $ac_status); }; }; then | 
 | 6232 |   ac_cv_search_opendir="-l$ac_lib" | 
 | 6233 | break | 
 | 6234 | else | 
 | 6235 |   echo "$as_me: failed program was:" >&5 | 
 | 6236 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6237 |  | 
 | 6238 | fi | 
 | 6239 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6240 |       conftest$ac_exeext conftest.$ac_ext | 
 | 6241 |   done | 
 | 6242 | fi | 
 | 6243 | LIBS=$ac_func_search_save_LIBS | 
 | 6244 | fi | 
 | 6245 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 6246 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
 | 6247 | if test "$ac_cv_search_opendir" != no; then | 
 | 6248 |   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
 | 6249 |  | 
 | 6250 | fi | 
 | 6251 |  | 
 | 6252 | else | 
 | 6253 |   echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 6254 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | 
 | 6255 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 6256 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6257 | else | 
 | 6258 |   ac_func_search_save_LIBS=$LIBS | 
 | 6259 | ac_cv_search_opendir=no | 
 | 6260 | cat >conftest.$ac_ext <<_ACEOF | 
 | 6261 | /* confdefs.h.  */ | 
 | 6262 | _ACEOF | 
 | 6263 | cat confdefs.h >>conftest.$ac_ext | 
 | 6264 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6265 | /* end confdefs.h.  */ | 
 | 6266 |  | 
 | 6267 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6268 | #ifdef __cplusplus | 
 | 6269 | extern "C" | 
 | 6270 | #endif | 
 | 6271 | /* We use char because int might match the return type of a gcc2 | 
 | 6272 |    builtin and then its argument prototype would still apply.  */ | 
 | 6273 | char opendir (); | 
 | 6274 | int | 
 | 6275 | main () | 
 | 6276 | { | 
 | 6277 | opendir (); | 
 | 6278 |   ; | 
 | 6279 |   return 0; | 
 | 6280 | } | 
 | 6281 | _ACEOF | 
 | 6282 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6284 |   (eval $ac_link) 2>conftest.er1 | 
 | 6285 |   ac_status=$? | 
 | 6286 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6287 |   rm -f conftest.er1 | 
 | 6288 |   cat conftest.err >&5 | 
 | 6289 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6290 |   (exit $ac_status); } && | 
 | 6291 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6292 | 			 || test ! -s conftest.err' | 
 | 6293 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6294 |   (eval $ac_try) 2>&5 | 
 | 6295 |   ac_status=$? | 
 | 6296 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6297 |   (exit $ac_status); }; } && | 
 | 6298 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 6299 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6300 |   (eval $ac_try) 2>&5 | 
 | 6301 |   ac_status=$? | 
 | 6302 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6303 |   (exit $ac_status); }; }; then | 
 | 6304 |   ac_cv_search_opendir="none required" | 
 | 6305 | else | 
 | 6306 |   echo "$as_me: failed program was:" >&5 | 
 | 6307 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6308 |  | 
 | 6309 | fi | 
 | 6310 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6311 |       conftest$ac_exeext conftest.$ac_ext | 
 | 6312 | if test "$ac_cv_search_opendir" = no; then | 
 | 6313 |   for ac_lib in x; do | 
 | 6314 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 6315 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 6316 | /* confdefs.h.  */ | 
 | 6317 | _ACEOF | 
 | 6318 | cat confdefs.h >>conftest.$ac_ext | 
 | 6319 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6320 | /* end confdefs.h.  */ | 
 | 6321 |  | 
 | 6322 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6323 | #ifdef __cplusplus | 
 | 6324 | extern "C" | 
 | 6325 | #endif | 
 | 6326 | /* We use char because int might match the return type of a gcc2 | 
 | 6327 |    builtin and then its argument prototype would still apply.  */ | 
 | 6328 | char opendir (); | 
 | 6329 | int | 
 | 6330 | main () | 
 | 6331 | { | 
 | 6332 | opendir (); | 
 | 6333 |   ; | 
 | 6334 |   return 0; | 
 | 6335 | } | 
 | 6336 | _ACEOF | 
 | 6337 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6339 |   (eval $ac_link) 2>conftest.er1 | 
 | 6340 |   ac_status=$? | 
 | 6341 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6342 |   rm -f conftest.er1 | 
 | 6343 |   cat conftest.err >&5 | 
 | 6344 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6345 |   (exit $ac_status); } && | 
 | 6346 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6347 | 			 || test ! -s conftest.err' | 
 | 6348 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6349 |   (eval $ac_try) 2>&5 | 
 | 6350 |   ac_status=$? | 
 | 6351 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6352 |   (exit $ac_status); }; } && | 
 | 6353 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 6354 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6355 |   (eval $ac_try) 2>&5 | 
 | 6356 |   ac_status=$? | 
 | 6357 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6358 |   (exit $ac_status); }; }; then | 
 | 6359 |   ac_cv_search_opendir="-l$ac_lib" | 
 | 6360 | break | 
 | 6361 | else | 
 | 6362 |   echo "$as_me: failed program was:" >&5 | 
 | 6363 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6364 |  | 
 | 6365 | fi | 
 | 6366 | rm -f conftest.err conftest.$ac_objext \ | 
 | 6367 |       conftest$ac_exeext conftest.$ac_ext | 
 | 6368 |   done | 
 | 6369 | fi | 
 | 6370 | LIBS=$ac_func_search_save_LIBS | 
 | 6371 | fi | 
 | 6372 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 6373 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | 
 | 6374 | if test "$ac_cv_search_opendir" != no; then | 
 | 6375 |   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | 
 | 6376 |  | 
 | 6377 | fi | 
 | 6378 |  | 
 | 6379 | fi | 
 | 6380 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6381 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 6382 |  | 
 | 6383 |  | 
 | 6384 |  | 
 | 6385 |  | 
 | 6386 |  | 
 | 6387 |  | 
 | 6388 |  | 
 | 6389 |  | 
 | 6390 |  | 
 | 6391 | 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] | 6392 | 		  inttypes.h stdint.h unistd.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6393 | do | 
 | 6394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 6395 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 6396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 6397 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6398 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6399 | else | 
 | 6400 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6401 | /* confdefs.h.  */ | 
 | 6402 | _ACEOF | 
 | 6403 | cat confdefs.h >>conftest.$ac_ext | 
 | 6404 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6405 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6406 | $ac_includes_default | 
 | 6407 |  | 
 | 6408 | #include <$ac_header> | 
 | 6409 | _ACEOF | 
 | 6410 | rm -f conftest.$ac_objext | 
 | 6411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6412 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6413 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6414 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6415 |   rm -f conftest.er1 | 
 | 6416 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6417 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6418 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6419 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6420 | 			 || test ! -s conftest.err' | 
 | 6421 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6422 |   (eval $ac_try) 2>&5 | 
 | 6423 |   ac_status=$? | 
 | 6424 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6425 |   (exit $ac_status); }; } && | 
 | 6426 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6427 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6428 |   (eval $ac_try) 2>&5 | 
 | 6429 |   ac_status=$? | 
 | 6430 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6431 |   (exit $ac_status); }; }; then | 
 | 6432 |   eval "$as_ac_Header=yes" | 
 | 6433 | else | 
 | 6434 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6435 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6436 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6437 | eval "$as_ac_Header=no" | 
 | 6438 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6440 | fi | 
 | 6441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 6442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 6443 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 6444 |   cat >>confdefs.h <<_ACEOF | 
 | 6445 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 6446 | _ACEOF | 
 | 6447 |  | 
 | 6448 | fi | 
 | 6449 |  | 
 | 6450 | done | 
 | 6451 |  | 
 | 6452 |  | 
 | 6453 |  | 
 | 6454 | for ac_header in dlfcn.h | 
 | 6455 | do | 
 | 6456 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6458 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 6460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6461 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6462 | fi | 
 | 6463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 6464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6465 | else | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6466 |   # Is the header compilable? | 
 | 6467 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 6468 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 6469 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6470 | /* confdefs.h.  */ | 
 | 6471 | _ACEOF | 
 | 6472 | cat confdefs.h >>conftest.$ac_ext | 
 | 6473 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6474 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6475 | $ac_includes_default | 
 | 6476 | #include <$ac_header> | 
 | 6477 | _ACEOF | 
 | 6478 | rm -f conftest.$ac_objext | 
 | 6479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6480 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6481 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6482 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6483 |   rm -f conftest.er1 | 
 | 6484 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6485 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6486 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6487 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 6488 | 			 || test ! -s conftest.err' | 
 | 6489 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6490 |   (eval $ac_try) 2>&5 | 
 | 6491 |   ac_status=$? | 
 | 6492 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6493 |   (exit $ac_status); }; } && | 
 | 6494 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6495 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6496 |   (eval $ac_try) 2>&5 | 
 | 6497 |   ac_status=$? | 
 | 6498 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6499 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6500 |   ac_header_compiler=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6501 | else | 
 | 6502 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6503 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6504 |  | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6505 | ac_header_compiler=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6506 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6508 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 6509 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 6510 |  | 
 | 6511 | # Is the header present? | 
 | 6512 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 6513 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 6514 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6515 | /* confdefs.h.  */ | 
 | 6516 | _ACEOF | 
 | 6517 | cat confdefs.h >>conftest.$ac_ext | 
 | 6518 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6519 | /* end confdefs.h.  */ | 
 | 6520 | #include <$ac_header> | 
 | 6521 | _ACEOF | 
 | 6522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 6523 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 6524 |   ac_status=$? | 
 | 6525 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6526 |   rm -f conftest.er1 | 
 | 6527 |   cat conftest.err >&5 | 
 | 6528 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6529 |   (exit $ac_status); } >/dev/null; then | 
 | 6530 |   if test -s conftest.err; then | 
 | 6531 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6532 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6533 |   else | 
 | 6534 |     ac_cpp_err= | 
 | 6535 |   fi | 
 | 6536 | else | 
 | 6537 |   ac_cpp_err=yes | 
 | 6538 | fi | 
 | 6539 | if test -z "$ac_cpp_err"; then | 
 | 6540 |   ac_header_preproc=yes | 
 | 6541 | else | 
 | 6542 |   echo "$as_me: failed program was:" >&5 | 
 | 6543 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6544 |  | 
 | 6545 |   ac_header_preproc=no | 
 | 6546 | fi | 
 | 6547 | rm -f conftest.err conftest.$ac_ext | 
 | 6548 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 6549 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 6550 |  | 
 | 6551 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6552 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 6553 |   yes:no: ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6554 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 6555 | 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] | 6556 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 6557 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 6558 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6559 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6560 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6561 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 6562 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6563 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 6564 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 6565 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 6566 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 6567 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 6568 | 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] | 6569 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 6570 | 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] | 6571 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 6572 | 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] | 6573 |     ( | 
 | 6574 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6575 | ## ----------------------------------- ## | 
 | 6576 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 6577 | ## ----------------------------------- ## | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6578 | _ASBOX | 
 | 6579 |     ) | | 
 | 6580 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 6581 |     ;; | 
 | 6582 | esac | 
 | 6583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 6584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 6585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 6586 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6587 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 6588 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6589 | fi | 
 | 6590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 6591 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 6592 |  | 
 | 6593 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 6595 |   cat >>confdefs.h <<_ACEOF | 
 | 6596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 6597 | _ACEOF | 
 | 6598 |  | 
 | 6599 | fi | 
 | 6600 |  | 
 | 6601 | done | 
 | 6602 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 6603 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. | 
 | 6604 | if test "${enable_ltdl_install+set}" = set; then | 
 | 6605 |   enableval="$enable_ltdl_install" | 
 | 6606 |  | 
 | 6607 | fi; | 
 | 6608 |  | 
 | 6609 |  | 
 | 6610 |  | 
 | 6611 | if test x"${enable_ltdl_install-no}" != xno; then | 
 | 6612 |   INSTALL_LTDL_TRUE= | 
 | 6613 |   INSTALL_LTDL_FALSE='#' | 
 | 6614 | else | 
 | 6615 |   INSTALL_LTDL_TRUE='#' | 
 | 6616 |   INSTALL_LTDL_FALSE= | 
 | 6617 | fi | 
 | 6618 |  | 
 | 6619 |  | 
 | 6620 |  | 
 | 6621 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
 | 6622 |   CONVENIENCE_LTDL_TRUE= | 
 | 6623 |   CONVENIENCE_LTDL_FALSE='#' | 
 | 6624 | else | 
 | 6625 |   CONVENIENCE_LTDL_TRUE='#' | 
 | 6626 |   CONVENIENCE_LTDL_FALSE= | 
 | 6627 | fi | 
 | 6628 |  | 
 | 6629 |  | 
 | 6630 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 6631 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 6632 | library_names_spec= | 
 | 6633 | libname_spec='lib$name' | 
 | 6634 | soname_spec= | 
 | 6635 | shrext_cmds=".so" | 
 | 6636 | postinstall_cmds= | 
 | 6637 | postuninstall_cmds= | 
 | 6638 | finish_cmds= | 
 | 6639 | finish_eval= | 
 | 6640 | shlibpath_var= | 
 | 6641 | shlibpath_overrides_runpath=unknown | 
 | 6642 | version_type=none | 
 | 6643 | dynamic_linker="$host_os ld.so" | 
 | 6644 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 6645 | if test "$GCC" = yes; then | 
 | 6646 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 6647 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 6648 |     # if the path contains ";" then we assume it to be the separator | 
 | 6649 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 6650 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 6651 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 6652 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 6653 |   else | 
 | 6654 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 6655 |   fi | 
 | 6656 | else | 
 | 6657 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 6658 | fi | 
 | 6659 | need_lib_prefix=unknown | 
 | 6660 | hardcode_into_libs=no | 
 | 6661 |  | 
 | 6662 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 6663 | # flags to be left without arguments | 
 | 6664 | need_version=unknown | 
 | 6665 |  | 
 | 6666 | case $host_os in | 
 | 6667 | aix3*) | 
 | 6668 |   version_type=linux | 
 | 6669 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 6670 |   shlibpath_var=LIBPATH | 
 | 6671 |  | 
 | 6672 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 6673 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6674 |   ;; | 
 | 6675 |  | 
 | 6676 | aix4* | aix5*) | 
 | 6677 |   version_type=linux | 
 | 6678 |   need_lib_prefix=no | 
 | 6679 |   need_version=no | 
 | 6680 |   hardcode_into_libs=yes | 
 | 6681 |   if test "$host_cpu" = ia64; then | 
 | 6682 |     # AIX 5 supports IA64 | 
 | 6683 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 6684 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 6685 |   else | 
 | 6686 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 6687 |     # for dependence libraries.  The import file would start with | 
 | 6688 |     # the line `#! .'.  This would cause the generated library to | 
 | 6689 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 6690 |     # development snapshots of GCC prior to 3.0. | 
 | 6691 |     case $host_os in | 
 | 6692 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 6693 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 6694 | 	   echo ' yes ' | 
 | 6695 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 6696 | 	: | 
 | 6697 |       else | 
 | 6698 | 	can_build_shared=no | 
 | 6699 |       fi | 
 | 6700 |       ;; | 
 | 6701 |     esac | 
 | 6702 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 6703 |     # soname into executable. Probably we can add versioning support to | 
 | 6704 |     # collect2, so additional links can be useful in future. | 
 | 6705 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 6706 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 6707 |       # instead of lib<name>.a to let people know that these are not | 
 | 6708 |       # typical AIX shared libraries. | 
 | 6709 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 6710 |     else | 
 | 6711 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 6712 |       # and later when we are not doing run time linking. | 
 | 6713 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 6714 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6715 |     fi | 
 | 6716 |     shlibpath_var=LIBPATH | 
 | 6717 |   fi | 
 | 6718 |   ;; | 
 | 6719 |  | 
 | 6720 | amigaos*) | 
 | 6721 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 6722 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
 | 6723 |   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' | 
 | 6724 |   ;; | 
 | 6725 |  | 
 | 6726 | beos*) | 
 | 6727 |   library_names_spec='${libname}${shared_ext}' | 
 | 6728 |   dynamic_linker="$host_os ld.so" | 
 | 6729 |   shlibpath_var=LIBRARY_PATH | 
 | 6730 |   ;; | 
 | 6731 |  | 
 | 6732 | bsdi[45]*) | 
 | 6733 |   version_type=linux | 
 | 6734 |   need_version=no | 
 | 6735 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 6736 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6737 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 6738 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 6739 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 6740 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 6741 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 6742 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 6743 |   # libtool to hard-code these into programs | 
 | 6744 |   ;; | 
 | 6745 |  | 
 | 6746 | cygwin* | mingw* | pw32*) | 
 | 6747 |   version_type=windows | 
 | 6748 |   shrext_cmds=".dll" | 
 | 6749 |   need_version=no | 
 | 6750 |   need_lib_prefix=no | 
 | 6751 |  | 
 | 6752 |   case $GCC,$host_os in | 
 | 6753 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 6754 |     library_names_spec='$libname.dll.a' | 
 | 6755 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 6756 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 6757 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 6758 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 6759 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 6760 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
 | 6761 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 6762 |       dlpath=$dir/\$dldll~ | 
 | 6763 |        $rm \$dlpath' | 
 | 6764 |     shlibpath_overrides_runpath=yes | 
 | 6765 |  | 
 | 6766 |     case $host_os in | 
 | 6767 |     cygwin*) | 
 | 6768 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 6769 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 6770 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
 | 6771 |       ;; | 
 | 6772 |     mingw*) | 
 | 6773 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 6774 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 6775 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 6776 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 6777 |         # It is most probably a Windows format PATH printed by | 
 | 6778 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 6779 |         # path with ; separators, and with drive letters. We can handle the | 
 | 6780 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 6781 |         # especially as we might pass files found there to a mingw objdump, | 
 | 6782 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 6783 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 6784 |       else | 
 | 6785 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 6786 |       fi | 
 | 6787 |       ;; | 
 | 6788 |     pw32*) | 
 | 6789 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 6790 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 6791 |       ;; | 
 | 6792 |     esac | 
 | 6793 |     ;; | 
 | 6794 |  | 
 | 6795 |   *) | 
 | 6796 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 6797 |     ;; | 
 | 6798 |   esac | 
 | 6799 |   dynamic_linker='Win32 ld.exe' | 
 | 6800 |   # FIXME: first we should search . and the directory the executable is in | 
 | 6801 |   shlibpath_var=PATH | 
 | 6802 |   ;; | 
 | 6803 |  | 
 | 6804 | darwin* | rhapsody*) | 
 | 6805 |   dynamic_linker="$host_os dyld" | 
 | 6806 |   version_type=darwin | 
 | 6807 |   need_lib_prefix=no | 
 | 6808 |   need_version=no | 
 | 6809 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 6810 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 6811 |   shlibpath_overrides_runpath=yes | 
 | 6812 |   shlibpath_var=DYLD_LIBRARY_PATH | 
 | 6813 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
 | 6814 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
 | 6815 |   if test "$GCC" = yes; then | 
 | 6816 |     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"` | 
 | 6817 |   else | 
 | 6818 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
 | 6819 |   fi | 
 | 6820 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 6821 |   ;; | 
 | 6822 |  | 
 | 6823 | dgux*) | 
 | 6824 |   version_type=linux | 
 | 6825 |   need_lib_prefix=no | 
 | 6826 |   need_version=no | 
 | 6827 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 6828 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6829 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 6830 |   ;; | 
 | 6831 |  | 
 | 6832 | freebsd1*) | 
 | 6833 |   dynamic_linker=no | 
 | 6834 |   ;; | 
 | 6835 |  | 
 | 6836 | kfreebsd*-gnu) | 
 | 6837 |   version_type=linux | 
 | 6838 |   need_lib_prefix=no | 
 | 6839 |   need_version=no | 
 | 6840 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 6841 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6842 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 6843 |   shlibpath_overrides_runpath=no | 
 | 6844 |   hardcode_into_libs=yes | 
 | 6845 |   dynamic_linker='GNU ld.so' | 
 | 6846 |   ;; | 
 | 6847 |  | 
 | 6848 | freebsd*) | 
 | 6849 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 6850 |   version_type=freebsd-$objformat | 
 | 6851 |   case $version_type in | 
 | 6852 |     freebsd-elf*) | 
 | 6853 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 6854 |       need_version=no | 
 | 6855 |       need_lib_prefix=no | 
 | 6856 |       ;; | 
 | 6857 |     freebsd-*) | 
 | 6858 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 6859 |       need_version=yes | 
 | 6860 |       ;; | 
 | 6861 |   esac | 
 | 6862 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 6863 |   case $host_os in | 
 | 6864 |   freebsd2*) | 
 | 6865 |     shlibpath_overrides_runpath=yes | 
 | 6866 |     ;; | 
 | 6867 |   freebsd3.01* | freebsdelf3.01*) | 
 | 6868 |     shlibpath_overrides_runpath=yes | 
 | 6869 |     hardcode_into_libs=yes | 
 | 6870 |     ;; | 
 | 6871 |   *) # from 3.2 on | 
 | 6872 |     shlibpath_overrides_runpath=no | 
 | 6873 |     hardcode_into_libs=yes | 
 | 6874 |     ;; | 
 | 6875 |   esac | 
 | 6876 |   ;; | 
 | 6877 |  | 
 | 6878 | gnu*) | 
 | 6879 |   version_type=linux | 
 | 6880 |   need_lib_prefix=no | 
 | 6881 |   need_version=no | 
 | 6882 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 6883 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6884 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 6885 |   hardcode_into_libs=yes | 
 | 6886 |   ;; | 
 | 6887 |  | 
 | 6888 | hpux9* | hpux10* | hpux11*) | 
 | 6889 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 6890 |   # link against other versions. | 
 | 6891 |   version_type=sunos | 
 | 6892 |   need_lib_prefix=no | 
 | 6893 |   need_version=no | 
 | 6894 |   case "$host_cpu" in | 
 | 6895 |   ia64*) | 
 | 6896 |     shrext_cmds='.so' | 
 | 6897 |     hardcode_into_libs=yes | 
 | 6898 |     dynamic_linker="$host_os dld.so" | 
 | 6899 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 6900 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 6901 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 6902 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6903 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 6904 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 6905 |     else | 
 | 6906 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 6907 |     fi | 
 | 6908 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 6909 |     ;; | 
 | 6910 |    hppa*64*) | 
 | 6911 |      shrext_cmds='.sl' | 
 | 6912 |      hardcode_into_libs=yes | 
 | 6913 |      dynamic_linker="$host_os dld.sl" | 
 | 6914 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 6915 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 6916 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 6917 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6918 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 6919 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 6920 |      ;; | 
 | 6921 |    *) | 
 | 6922 |     shrext_cmds='.sl' | 
 | 6923 |     dynamic_linker="$host_os dld.sl" | 
 | 6924 |     shlibpath_var=SHLIB_PATH | 
 | 6925 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 6926 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 6927 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6928 |     ;; | 
 | 6929 |   esac | 
 | 6930 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 6931 |   postinstall_cmds='chmod 555 $lib' | 
 | 6932 |   ;; | 
 | 6933 |  | 
 | 6934 | irix5* | irix6* | nonstopux*) | 
 | 6935 |   case $host_os in | 
 | 6936 |     nonstopux*) version_type=nonstopux ;; | 
 | 6937 |     *) | 
 | 6938 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 6939 | 		version_type=linux | 
 | 6940 | 	else | 
 | 6941 | 		version_type=irix | 
 | 6942 | 	fi ;; | 
 | 6943 |   esac | 
 | 6944 |   need_lib_prefix=no | 
 | 6945 |   need_version=no | 
 | 6946 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6947 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 6948 |   case $host_os in | 
 | 6949 |   irix5* | nonstopux*) | 
 | 6950 |     libsuff= shlibsuff= | 
 | 6951 |     ;; | 
 | 6952 |   *) | 
 | 6953 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 6954 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 6955 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 6956 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 6957 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 6958 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 6959 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 6960 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 6961 |     esac | 
 | 6962 |     ;; | 
 | 6963 |   esac | 
 | 6964 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 6965 |   shlibpath_overrides_runpath=no | 
 | 6966 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 6967 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 6968 |   hardcode_into_libs=yes | 
 | 6969 |   ;; | 
 | 6970 |  | 
 | 6971 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 6972 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 6973 |   dynamic_linker=no | 
 | 6974 |   ;; | 
 | 6975 |  | 
 | 6976 | # This must be Linux ELF. | 
 | 6977 | linux*) | 
 | 6978 |   version_type=linux | 
 | 6979 |   need_lib_prefix=no | 
 | 6980 |   need_version=no | 
 | 6981 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 6982 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 6983 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 6984 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 6985 |   shlibpath_overrides_runpath=no | 
 | 6986 |   # This implies no fast_install, which is unacceptable. | 
 | 6987 |   # Some rework will be needed to allow for fast_install | 
 | 6988 |   # before this can be enabled. | 
 | 6989 |   hardcode_into_libs=yes | 
 | 6990 |  | 
 | 6991 |   # Append ld.so.conf contents to the search path | 
 | 6992 |   if test -f /etc/ld.so.conf; then | 
 | 6993 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 6994 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 6995 |   fi | 
 | 6996 |  | 
 | 6997 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 6998 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 6999 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 7000 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 7001 |   # people can always --disable-shared, the test was removed, and we | 
 | 7002 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 7003 |   dynamic_linker='GNU/Linux ld.so' | 
 | 7004 |   ;; | 
 | 7005 |  | 
 | 7006 | knetbsd*-gnu) | 
 | 7007 |   version_type=linux | 
 | 7008 |   need_lib_prefix=no | 
 | 7009 |   need_version=no | 
 | 7010 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7011 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7012 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7013 |   shlibpath_overrides_runpath=no | 
 | 7014 |   hardcode_into_libs=yes | 
 | 7015 |   dynamic_linker='GNU ld.so' | 
 | 7016 |   ;; | 
 | 7017 |  | 
 | 7018 | netbsd*) | 
 | 7019 |   version_type=sunos | 
 | 7020 |   need_lib_prefix=no | 
 | 7021 |   need_version=no | 
 | 7022 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 7023 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7024 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7025 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 7026 |   else | 
 | 7027 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 7028 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7029 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 7030 |   fi | 
 | 7031 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7032 |   shlibpath_overrides_runpath=yes | 
 | 7033 |   hardcode_into_libs=yes | 
 | 7034 |   ;; | 
 | 7035 |  | 
 | 7036 | newsos6) | 
 | 7037 |   version_type=linux | 
 | 7038 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7039 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7040 |   shlibpath_overrides_runpath=yes | 
 | 7041 |   ;; | 
 | 7042 |  | 
 | 7043 | nto-qnx*) | 
 | 7044 |   version_type=linux | 
 | 7045 |   need_lib_prefix=no | 
 | 7046 |   need_version=no | 
 | 7047 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7048 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7049 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7050 |   shlibpath_overrides_runpath=yes | 
 | 7051 |   ;; | 
 | 7052 |  | 
 | 7053 | openbsd*) | 
 | 7054 |   version_type=sunos | 
 | 7055 |   need_lib_prefix=no | 
 | 7056 |   need_version=no | 
 | 7057 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7058 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7059 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7060 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 7061 |     case $host_os in | 
 | 7062 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 7063 | 	shlibpath_overrides_runpath=no | 
 | 7064 | 	;; | 
 | 7065 |       *) | 
 | 7066 | 	shlibpath_overrides_runpath=yes | 
 | 7067 | 	;; | 
 | 7068 |       esac | 
 | 7069 |   else | 
 | 7070 |     shlibpath_overrides_runpath=yes | 
 | 7071 |   fi | 
 | 7072 |   ;; | 
 | 7073 |  | 
 | 7074 | os2*) | 
 | 7075 |   libname_spec='$name' | 
 | 7076 |   shrext_cmds=".dll" | 
 | 7077 |   need_lib_prefix=no | 
 | 7078 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 7079 |   dynamic_linker='OS/2 ld.exe' | 
 | 7080 |   shlibpath_var=LIBPATH | 
 | 7081 |   ;; | 
 | 7082 |  | 
 | 7083 | osf3* | osf4* | osf5*) | 
 | 7084 |   version_type=osf | 
 | 7085 |   need_lib_prefix=no | 
 | 7086 |   need_version=no | 
 | 7087 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7088 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7089 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7090 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 7091 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 7092 |   ;; | 
 | 7093 |  | 
 | 7094 | sco3.2v5*) | 
 | 7095 |   version_type=osf | 
 | 7096 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7097 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7098 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7099 |   ;; | 
 | 7100 |  | 
 | 7101 | solaris*) | 
 | 7102 |   version_type=linux | 
 | 7103 |   need_lib_prefix=no | 
 | 7104 |   need_version=no | 
 | 7105 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7106 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7107 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7108 |   shlibpath_overrides_runpath=yes | 
 | 7109 |   hardcode_into_libs=yes | 
 | 7110 |   # ldd complains unless libraries are executable | 
 | 7111 |   postinstall_cmds='chmod +x $lib' | 
 | 7112 |   ;; | 
 | 7113 |  | 
 | 7114 | sunos4*) | 
 | 7115 |   version_type=sunos | 
 | 7116 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7117 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 7118 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7119 |   shlibpath_overrides_runpath=yes | 
 | 7120 |   if test "$with_gnu_ld" = yes; then | 
 | 7121 |     need_lib_prefix=no | 
 | 7122 |   fi | 
 | 7123 |   need_version=yes | 
 | 7124 |   ;; | 
 | 7125 |  | 
 | 7126 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 7127 |   version_type=linux | 
 | 7128 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7129 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7130 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7131 |   case $host_vendor in | 
 | 7132 |     sni) | 
 | 7133 |       shlibpath_overrides_runpath=no | 
 | 7134 |       need_lib_prefix=no | 
 | 7135 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 7136 |       runpath_var=LD_RUN_PATH | 
 | 7137 |       ;; | 
 | 7138 |     siemens) | 
 | 7139 |       need_lib_prefix=no | 
 | 7140 |       ;; | 
 | 7141 |     motorola) | 
 | 7142 |       need_lib_prefix=no | 
 | 7143 |       need_version=no | 
 | 7144 |       shlibpath_overrides_runpath=no | 
 | 7145 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 7146 |       ;; | 
 | 7147 |   esac | 
 | 7148 |   ;; | 
 | 7149 |  | 
 | 7150 | sysv4*MP*) | 
 | 7151 |   if test -d /usr/nec ;then | 
 | 7152 |     version_type=linux | 
 | 7153 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 7154 |     soname_spec='$libname${shared_ext}.$major' | 
 | 7155 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7156 |   fi | 
 | 7157 |   ;; | 
 | 7158 |  | 
 | 7159 | uts4*) | 
 | 7160 |   version_type=linux | 
 | 7161 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7162 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7163 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7164 |   ;; | 
 | 7165 |  | 
 | 7166 | *) | 
 | 7167 |   dynamic_linker=no | 
 | 7168 |   ;; | 
 | 7169 | esac | 
 | 7170 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 7171 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 7172 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 7173 |  | 
 | 7174 |  | 
 | 7175 | echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | 
 | 7176 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 | 
 | 7177 | if test "${libltdl_cv_shlibext+set}" = set; then | 
 | 7178 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7179 | else | 
 | 7180 |  | 
 | 7181 | module=yes | 
 | 7182 | eval libltdl_cv_shlibext=$shrext_cmds | 
 | 7183 |  | 
 | 7184 | fi | 
 | 7185 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | 
 | 7186 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 | 
 | 7187 | if test -n "$libltdl_cv_shlibext"; then | 
 | 7188 |  | 
 | 7189 | cat >>confdefs.h <<_ACEOF | 
 | 7190 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | 
 | 7191 | _ACEOF | 
 | 7192 |  | 
 | 7193 | fi | 
 | 7194 |  | 
 | 7195 |  | 
 | 7196 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | 
 | 7197 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 | 
 | 7198 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | 
 | 7199 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7200 | else | 
 | 7201 |   libltdl_cv_shlibpath_var="$shlibpath_var" | 
 | 7202 | fi | 
 | 7203 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | 
 | 7204 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 | 
 | 7205 | if test -n "$libltdl_cv_shlibpath_var"; then | 
 | 7206 |  | 
 | 7207 | cat >>confdefs.h <<_ACEOF | 
 | 7208 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | 
 | 7209 | _ACEOF | 
 | 7210 |  | 
 | 7211 | fi | 
 | 7212 |  | 
 | 7213 |  | 
 | 7214 | echo "$as_me:$LINENO: checking for the default library search path" >&5 | 
 | 7215 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 | 
 | 7216 | if test "${libltdl_cv_sys_search_path+set}" = set; then | 
 | 7217 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7218 | else | 
 | 7219 |   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | 
 | 7220 | fi | 
 | 7221 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | 
 | 7222 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 | 
 | 7223 | if test -n "$libltdl_cv_sys_search_path"; then | 
 | 7224 |   sys_search_path= | 
 | 7225 |   for dir in $libltdl_cv_sys_search_path; do | 
 | 7226 |     if test -z "$sys_search_path"; then | 
 | 7227 |       sys_search_path="$dir" | 
 | 7228 |     else | 
 | 7229 |       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | 
 | 7230 |     fi | 
 | 7231 |   done | 
 | 7232 |  | 
 | 7233 | cat >>confdefs.h <<_ACEOF | 
 | 7234 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | 
 | 7235 | _ACEOF | 
 | 7236 |  | 
 | 7237 | fi | 
 | 7238 |  | 
 | 7239 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 7240 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
 | 7241 | if test "${libltdl_cv_objdir+set}" = set; then | 
 | 7242 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7243 | else | 
 | 7244 |   libltdl_cv_objdir="$objdir" | 
 | 7245 |   if test -n "$objdir"; then | 
 | 7246 |     : | 
 | 7247 |   else | 
 | 7248 |     rm -f .libs 2>/dev/null | 
 | 7249 |     mkdir .libs 2>/dev/null | 
 | 7250 |     if test -d .libs; then | 
 | 7251 |       libltdl_cv_objdir=.libs | 
 | 7252 |     else | 
 | 7253 |       # MS-DOS does not allow filenames that begin with a dot. | 
 | 7254 |       libltdl_cv_objdir=_libs | 
 | 7255 |     fi | 
 | 7256 |   rmdir .libs 2>/dev/null | 
 | 7257 |   fi | 
 | 7258 |  | 
 | 7259 | fi | 
 | 7260 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | 
 | 7261 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 | 
 | 7262 |  | 
 | 7263 | cat >>confdefs.h <<_ACEOF | 
 | 7264 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | 
 | 7265 | _ACEOF | 
 | 7266 |  | 
 | 7267 |  | 
 | 7268 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
 | 7269 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 
 | 7270 | if test "${lt_cv_path_NM+set}" = set; then | 
 | 7271 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7272 | else | 
 | 7273 |   if test -n "$NM"; then | 
 | 7274 |   # Let the user override the test. | 
 | 7275 |   lt_cv_path_NM="$NM" | 
 | 7276 | else | 
 | 7277 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 7278 |   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
 | 7279 |     IFS="$lt_save_ifs" | 
 | 7280 |     test -z "$ac_dir" && ac_dir=. | 
 | 7281 |     tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 
 | 7282 |     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
 | 7283 |       # Check to see if the nm accepts a BSD-compat flag. | 
 | 7284 |       # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
 | 7285 |       #   nm: unknown option "B" ignored | 
 | 7286 |       # Tru64's nm complains that /dev/null is an invalid object file | 
 | 7287 |       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
 | 7288 |       */dev/null* | *'Invalid file or object type'*) | 
 | 7289 | 	lt_cv_path_NM="$tmp_nm -B" | 
 | 7290 | 	break | 
 | 7291 |         ;; | 
 | 7292 |       *) | 
 | 7293 | 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
 | 7294 | 	*/dev/null*) | 
 | 7295 | 	  lt_cv_path_NM="$tmp_nm -p" | 
 | 7296 | 	  break | 
 | 7297 | 	  ;; | 
 | 7298 | 	*) | 
 | 7299 | 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
 | 7300 | 	  continue # so that we can try to find one that supports BSD flags | 
 | 7301 | 	  ;; | 
 | 7302 | 	esac | 
 | 7303 |       esac | 
 | 7304 |     fi | 
 | 7305 |   done | 
 | 7306 |   IFS="$lt_save_ifs" | 
 | 7307 |   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
 | 7308 | fi | 
 | 7309 | fi | 
 | 7310 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
 | 7311 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 
 | 7312 | NM="$lt_cv_path_NM" | 
 | 7313 |  | 
 | 7314 |  | 
 | 7315 |  | 
 | 7316 |  | 
 | 7317 |  | 
 | 7318 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
 | 7319 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 7320 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
 | 7321 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 7322 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7323 | else | 
 | 7324 |  | 
 | 7325 | # These are sane defaults that work on at least a few old systems. | 
 | 7326 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 7327 |  | 
 | 7328 | # Character class describing NM global symbol codes. | 
 | 7329 | symcode='[BCDEGRST]' | 
 | 7330 |  | 
 | 7331 | # Regexp to match symbols that can be accessed directly from C. | 
 | 7332 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 7333 |  | 
 | 7334 | # Transform the above into a raw symbol and a C symbol. | 
 | 7335 | symxfrm='\1 \2\3 \3' | 
 | 7336 |  | 
 | 7337 | # Transform an extracted symbol line into a proper C declaration | 
 | 7338 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 7339 |  | 
 | 7340 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 7341 | 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'" | 
 | 7342 |  | 
 | 7343 | # Define system-specific variables. | 
 | 7344 | case $host_os in | 
 | 7345 | aix*) | 
 | 7346 |   symcode='[BCDT]' | 
 | 7347 |   ;; | 
 | 7348 | cygwin* | mingw* | pw32*) | 
 | 7349 |   symcode='[ABCDGISTW]' | 
 | 7350 |   ;; | 
 | 7351 | hpux*) # Its linker distinguishes data from code symbols | 
 | 7352 |   if test "$host_cpu" = ia64; then | 
 | 7353 |     symcode='[ABCDEGRST]' | 
 | 7354 |   fi | 
 | 7355 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 7356 |   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'" | 
 | 7357 |   ;; | 
 | 7358 | linux*) | 
 | 7359 |   if test "$host_cpu" = ia64; then | 
 | 7360 |     symcode='[ABCDGIRSTW]' | 
 | 7361 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 7362 |     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'" | 
 | 7363 |   fi | 
 | 7364 |   ;; | 
 | 7365 | irix* | nonstopux*) | 
 | 7366 |   symcode='[BCDEGRST]' | 
 | 7367 |   ;; | 
 | 7368 | osf*) | 
 | 7369 |   symcode='[BCDEGQRST]' | 
 | 7370 |   ;; | 
 | 7371 | solaris* | sysv5*) | 
 | 7372 |   symcode='[BDRT]' | 
 | 7373 |   ;; | 
 | 7374 | sysv4) | 
 | 7375 |   symcode='[DFNSTU]' | 
 | 7376 |   ;; | 
 | 7377 | esac | 
 | 7378 |  | 
 | 7379 | # Handle CRLF in mingw tool chain | 
 | 7380 | opt_cr= | 
 | 7381 | case $build_os in | 
 | 7382 | mingw*) | 
 | 7383 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 7384 |   ;; | 
 | 7385 | esac | 
 | 7386 |  | 
 | 7387 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 7388 | case `$NM -V 2>&1` in | 
 | 7389 | *GNU* | *'with BFD'*) | 
 | 7390 |   symcode='[ABCDGIRSTW]' ;; | 
 | 7391 | esac | 
 | 7392 |  | 
 | 7393 | # Try without a prefix undercore, then with it. | 
 | 7394 | for ac_symprfx in "" "_"; do | 
 | 7395 |  | 
 | 7396 |   # Write the raw and C identifiers. | 
 | 7397 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
 | 7398 |  | 
 | 7399 |   # Check to see that the pipe works correctly. | 
 | 7400 |   pipe_works=no | 
 | 7401 |  | 
 | 7402 |   rm -f conftest* | 
 | 7403 |   cat > conftest.$ac_ext <<EOF | 
 | 7404 | #ifdef __cplusplus | 
 | 7405 | extern "C" { | 
 | 7406 | #endif | 
 | 7407 | char nm_test_var; | 
 | 7408 | void nm_test_func(){} | 
 | 7409 | #ifdef __cplusplus | 
 | 7410 | } | 
 | 7411 | #endif | 
 | 7412 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 7413 | EOF | 
 | 7414 |  | 
 | 7415 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 7416 |   (eval $ac_compile) 2>&5 | 
 | 7417 |   ac_status=$? | 
 | 7418 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7419 |   (exit $ac_status); }; then | 
 | 7420 |     # Now try to grab the symbols. | 
 | 7421 |     nlist=conftest.nm | 
 | 7422 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 7423 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 7424 |   ac_status=$? | 
 | 7425 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7426 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 7427 |       # Try sorting and uniquifying the output. | 
 | 7428 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 7429 | 	mv -f "$nlist"T "$nlist" | 
 | 7430 |       else | 
 | 7431 | 	rm -f "$nlist"T | 
 | 7432 |       fi | 
 | 7433 |  | 
 | 7434 |       # Make sure that we snagged all the symbols we need. | 
 | 7435 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 7436 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 7437 | 	  cat <<EOF > conftest.$ac_ext | 
 | 7438 | #ifdef __cplusplus | 
 | 7439 | extern "C" { | 
 | 7440 | #endif | 
 | 7441 |  | 
 | 7442 | EOF | 
 | 7443 | 	  # Now generate the symbol file. | 
 | 7444 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 7445 |  | 
 | 7446 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 7447 | #if defined (__STDC__) && __STDC__ | 
 | 7448 | # define lt_ptr_t void * | 
 | 7449 | #else | 
 | 7450 | # define lt_ptr_t char * | 
 | 7451 | # define const | 
 | 7452 | #endif | 
 | 7453 |  | 
 | 7454 | /* The mapping between symbol names and symbols. */ | 
 | 7455 | const struct { | 
 | 7456 |   const char *name; | 
 | 7457 |   lt_ptr_t address; | 
 | 7458 | } | 
 | 7459 | lt_preloaded_symbols[] = | 
 | 7460 | { | 
 | 7461 | EOF | 
 | 7462 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 7463 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 7464 |   {0, (lt_ptr_t) 0} | 
 | 7465 | }; | 
 | 7466 |  | 
 | 7467 | #ifdef __cplusplus | 
 | 7468 | } | 
 | 7469 | #endif | 
 | 7470 | EOF | 
 | 7471 | 	  # Now try linking the two files. | 
 | 7472 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 7473 | 	  lt_save_LIBS="$LIBS" | 
 | 7474 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 7475 | 	  LIBS="conftstm.$ac_objext" | 
 | 7476 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 7477 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7478 |   (eval $ac_link) 2>&5 | 
 | 7479 |   ac_status=$? | 
 | 7480 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7481 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 7482 | 	    pipe_works=yes | 
 | 7483 | 	  fi | 
 | 7484 | 	  LIBS="$lt_save_LIBS" | 
 | 7485 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 7486 | 	else | 
 | 7487 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 7488 | 	fi | 
 | 7489 |       else | 
 | 7490 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 7491 |       fi | 
 | 7492 |     else | 
 | 7493 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 7494 |     fi | 
 | 7495 |   else | 
 | 7496 |     echo "$progname: failed program was:" >&5 | 
 | 7497 |     cat conftest.$ac_ext >&5 | 
 | 7498 |   fi | 
 | 7499 |   rm -f conftest* conftst* | 
 | 7500 |  | 
 | 7501 |   # Do not use the global_symbol_pipe unless it works. | 
 | 7502 |   if test "$pipe_works" = yes; then | 
 | 7503 |     break | 
 | 7504 |   else | 
 | 7505 |     lt_cv_sys_global_symbol_pipe= | 
 | 7506 |   fi | 
 | 7507 | done | 
 | 7508 |  | 
 | 7509 | fi | 
 | 7510 |  | 
 | 7511 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 7512 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 7513 | fi | 
 | 7514 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
 | 7515 |   echo "$as_me:$LINENO: result: failed" >&5 | 
 | 7516 | echo "${ECHO_T}failed" >&6 | 
 | 7517 | else | 
 | 7518 |   echo "$as_me:$LINENO: result: ok" >&5 | 
 | 7519 | echo "${ECHO_T}ok" >&6 | 
 | 7520 | fi | 
 | 7521 |  | 
 | 7522 |  | 
 | 7523 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
 | 7524 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 | 
 | 7525 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | 
 | 7526 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7527 | else | 
 | 7528 |   if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
 | 7529 |     libltdl_cv_preloaded_symbols=yes | 
 | 7530 |   else | 
 | 7531 |     libltdl_cv_preloaded_symbols=no | 
 | 7532 |   fi | 
 | 7533 |  | 
 | 7534 | fi | 
 | 7535 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | 
 | 7536 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 | 
 | 7537 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
 | 7538 |  | 
 | 7539 | cat >>confdefs.h <<\_ACEOF | 
 | 7540 | #define HAVE_PRELOADED_SYMBOLS 1 | 
 | 7541 | _ACEOF | 
 | 7542 |  | 
 | 7543 | fi | 
 | 7544 |  | 
 | 7545 | LIBADD_DL= | 
 | 7546 |  | 
 | 7547 | ac_ext=c | 
 | 7548 | ac_cpp='$CPP $CPPFLAGS' | 
 | 7549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 7550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 7551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 7552 |  | 
 | 7553 |  | 
 | 7554 | echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 7555 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 7556 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 7557 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7558 | else | 
 | 7559 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 7560 | /* confdefs.h.  */ | 
 | 7561 | _ACEOF | 
 | 7562 | cat confdefs.h >>conftest.$ac_ext | 
 | 7563 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7564 | /* end confdefs.h.  */ | 
 | 7565 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 7566 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 7567 | #define shl_load innocuous_shl_load | 
 | 7568 |  | 
 | 7569 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 7570 |     which can conflict with char shl_load (); below. | 
 | 7571 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 7572 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 7573 |  | 
 | 7574 | #ifdef __STDC__ | 
 | 7575 | # include <limits.h> | 
 | 7576 | #else | 
 | 7577 | # include <assert.h> | 
 | 7578 | #endif | 
 | 7579 |  | 
 | 7580 | #undef shl_load | 
 | 7581 |  | 
 | 7582 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7583 | #ifdef __cplusplus | 
 | 7584 | extern "C" | 
 | 7585 | { | 
 | 7586 | #endif | 
 | 7587 | /* We use char because int might match the return type of a gcc2 | 
 | 7588 |    builtin and then its argument prototype would still apply.  */ | 
 | 7589 | char shl_load (); | 
 | 7590 | /* The GNU C library defines this for functions which it implements | 
 | 7591 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 7592 |     something starting with __ and the normal name is an alias.  */ | 
 | 7593 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 7594 | choke me | 
 | 7595 | #else | 
 | 7596 | char (*f) () = shl_load; | 
 | 7597 | #endif | 
 | 7598 | #ifdef __cplusplus | 
 | 7599 | } | 
 | 7600 | #endif | 
 | 7601 |  | 
 | 7602 | int | 
 | 7603 | main () | 
 | 7604 | { | 
 | 7605 | return f != shl_load; | 
 | 7606 |   ; | 
 | 7607 |   return 0; | 
 | 7608 | } | 
 | 7609 | _ACEOF | 
 | 7610 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7612 |   (eval $ac_link) 2>conftest.er1 | 
 | 7613 |   ac_status=$? | 
 | 7614 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7615 |   rm -f conftest.er1 | 
 | 7616 |   cat conftest.err >&5 | 
 | 7617 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7618 |   (exit $ac_status); } && | 
 | 7619 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7620 | 			 || test ! -s conftest.err' | 
 | 7621 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7622 |   (eval $ac_try) 2>&5 | 
 | 7623 |   ac_status=$? | 
 | 7624 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7625 |   (exit $ac_status); }; } && | 
 | 7626 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7627 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7628 |   (eval $ac_try) 2>&5 | 
 | 7629 |   ac_status=$? | 
 | 7630 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7631 |   (exit $ac_status); }; }; then | 
 | 7632 |   ac_cv_func_shl_load=yes | 
 | 7633 | else | 
 | 7634 |   echo "$as_me: failed program was:" >&5 | 
 | 7635 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7636 |  | 
 | 7637 | ac_cv_func_shl_load=no | 
 | 7638 | fi | 
 | 7639 | rm -f conftest.err conftest.$ac_objext \ | 
 | 7640 |       conftest$ac_exeext conftest.$ac_ext | 
 | 7641 | fi | 
 | 7642 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 7643 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 7644 | if test $ac_cv_func_shl_load = yes; then | 
 | 7645 |  | 
 | 7646 | cat >>confdefs.h <<\_ACEOF | 
 | 7647 | #define HAVE_SHL_LOAD 1 | 
 | 7648 | _ACEOF | 
 | 7649 |  | 
 | 7650 | else | 
 | 7651 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 7652 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 7653 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 7654 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7655 | else | 
 | 7656 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7657 | LIBS="-ldld  $LIBS" | 
 | 7658 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7659 | /* confdefs.h.  */ | 
 | 7660 | _ACEOF | 
 | 7661 | cat confdefs.h >>conftest.$ac_ext | 
 | 7662 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7663 | /* end confdefs.h.  */ | 
 | 7664 |  | 
 | 7665 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7666 | #ifdef __cplusplus | 
 | 7667 | extern "C" | 
 | 7668 | #endif | 
 | 7669 | /* We use char because int might match the return type of a gcc2 | 
 | 7670 |    builtin and then its argument prototype would still apply.  */ | 
 | 7671 | char shl_load (); | 
 | 7672 | int | 
 | 7673 | main () | 
 | 7674 | { | 
 | 7675 | shl_load (); | 
 | 7676 |   ; | 
 | 7677 |   return 0; | 
 | 7678 | } | 
 | 7679 | _ACEOF | 
 | 7680 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7682 |   (eval $ac_link) 2>conftest.er1 | 
 | 7683 |   ac_status=$? | 
 | 7684 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7685 |   rm -f conftest.er1 | 
 | 7686 |   cat conftest.err >&5 | 
 | 7687 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7688 |   (exit $ac_status); } && | 
 | 7689 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7690 | 			 || test ! -s conftest.err' | 
 | 7691 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7692 |   (eval $ac_try) 2>&5 | 
 | 7693 |   ac_status=$? | 
 | 7694 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7695 |   (exit $ac_status); }; } && | 
 | 7696 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7697 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7698 |   (eval $ac_try) 2>&5 | 
 | 7699 |   ac_status=$? | 
 | 7700 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7701 |   (exit $ac_status); }; }; then | 
 | 7702 |   ac_cv_lib_dld_shl_load=yes | 
 | 7703 | else | 
 | 7704 |   echo "$as_me: failed program was:" >&5 | 
 | 7705 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7706 |  | 
 | 7707 | ac_cv_lib_dld_shl_load=no | 
 | 7708 | fi | 
 | 7709 | rm -f conftest.err conftest.$ac_objext \ | 
 | 7710 |       conftest$ac_exeext conftest.$ac_ext | 
 | 7711 | LIBS=$ac_check_lib_save_LIBS | 
 | 7712 | fi | 
 | 7713 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 7714 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 7715 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 7716 |  | 
 | 7717 | cat >>confdefs.h <<\_ACEOF | 
 | 7718 | #define HAVE_SHL_LOAD 1 | 
 | 7719 | _ACEOF | 
 | 7720 |  | 
 | 7721 | 	LIBADD_DL="$LIBADD_DL -ldld" | 
 | 7722 | else | 
 | 7723 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 7724 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 7725 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 7726 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7727 | else | 
 | 7728 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7729 | LIBS="-ldl  $LIBS" | 
 | 7730 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7731 | /* confdefs.h.  */ | 
 | 7732 | _ACEOF | 
 | 7733 | cat confdefs.h >>conftest.$ac_ext | 
 | 7734 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7735 | /* end confdefs.h.  */ | 
 | 7736 |  | 
 | 7737 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7738 | #ifdef __cplusplus | 
 | 7739 | extern "C" | 
 | 7740 | #endif | 
 | 7741 | /* We use char because int might match the return type of a gcc2 | 
 | 7742 |    builtin and then its argument prototype would still apply.  */ | 
 | 7743 | char dlopen (); | 
 | 7744 | int | 
 | 7745 | main () | 
 | 7746 | { | 
 | 7747 | dlopen (); | 
 | 7748 |   ; | 
 | 7749 |   return 0; | 
 | 7750 | } | 
 | 7751 | _ACEOF | 
 | 7752 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7754 |   (eval $ac_link) 2>conftest.er1 | 
 | 7755 |   ac_status=$? | 
 | 7756 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7757 |   rm -f conftest.er1 | 
 | 7758 |   cat conftest.err >&5 | 
 | 7759 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7760 |   (exit $ac_status); } && | 
 | 7761 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7762 | 			 || test ! -s conftest.err' | 
 | 7763 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7764 |   (eval $ac_try) 2>&5 | 
 | 7765 |   ac_status=$? | 
 | 7766 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7767 |   (exit $ac_status); }; } && | 
 | 7768 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7769 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7770 |   (eval $ac_try) 2>&5 | 
 | 7771 |   ac_status=$? | 
 | 7772 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7773 |   (exit $ac_status); }; }; then | 
 | 7774 |   ac_cv_lib_dl_dlopen=yes | 
 | 7775 | else | 
 | 7776 |   echo "$as_me: failed program was:" >&5 | 
 | 7777 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7778 |  | 
 | 7779 | ac_cv_lib_dl_dlopen=no | 
 | 7780 | fi | 
 | 7781 | rm -f conftest.err conftest.$ac_objext \ | 
 | 7782 |       conftest$ac_exeext conftest.$ac_ext | 
 | 7783 | LIBS=$ac_check_lib_save_LIBS | 
 | 7784 | fi | 
 | 7785 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 7786 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 7787 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 7788 |  | 
 | 7789 | cat >>confdefs.h <<\_ACEOF | 
 | 7790 | #define HAVE_LIBDL 1 | 
 | 7791 | _ACEOF | 
 | 7792 |  | 
 | 7793 | 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | 
 | 7794 | else | 
 | 7795 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 7796 | /* confdefs.h.  */ | 
 | 7797 | _ACEOF | 
 | 7798 | cat confdefs.h >>conftest.$ac_ext | 
 | 7799 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7800 | /* end confdefs.h.  */ | 
 | 7801 | #if HAVE_DLFCN_H | 
 | 7802 | #  include <dlfcn.h> | 
 | 7803 | #endif | 
 | 7804 |  | 
 | 7805 | int | 
 | 7806 | main () | 
 | 7807 | { | 
 | 7808 | dlopen(0, 0); | 
 | 7809 |   ; | 
 | 7810 |   return 0; | 
 | 7811 | } | 
 | 7812 | _ACEOF | 
 | 7813 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7815 |   (eval $ac_link) 2>conftest.er1 | 
 | 7816 |   ac_status=$? | 
 | 7817 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7818 |   rm -f conftest.er1 | 
 | 7819 |   cat conftest.err >&5 | 
 | 7820 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7821 |   (exit $ac_status); } && | 
 | 7822 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7823 | 			 || test ! -s conftest.err' | 
 | 7824 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7825 |   (eval $ac_try) 2>&5 | 
 | 7826 |   ac_status=$? | 
 | 7827 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7828 |   (exit $ac_status); }; } && | 
 | 7829 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7830 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7831 |   (eval $ac_try) 2>&5 | 
 | 7832 |   ac_status=$? | 
 | 7833 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7834 |   (exit $ac_status); }; }; then | 
 | 7835 |  | 
 | 7836 | cat >>confdefs.h <<\_ACEOF | 
 | 7837 | #define HAVE_LIBDL 1 | 
 | 7838 | _ACEOF | 
 | 7839 |  libltdl_cv_func_dlopen="yes" | 
 | 7840 | else | 
 | 7841 |   echo "$as_me: failed program was:" >&5 | 
 | 7842 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7843 |  | 
 | 7844 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 7845 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 7846 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 7847 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7848 | else | 
 | 7849 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7850 | LIBS="-lsvld  $LIBS" | 
 | 7851 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7852 | /* confdefs.h.  */ | 
 | 7853 | _ACEOF | 
 | 7854 | cat confdefs.h >>conftest.$ac_ext | 
 | 7855 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7856 | /* end confdefs.h.  */ | 
 | 7857 |  | 
 | 7858 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7859 | #ifdef __cplusplus | 
 | 7860 | extern "C" | 
 | 7861 | #endif | 
 | 7862 | /* We use char because int might match the return type of a gcc2 | 
 | 7863 |    builtin and then its argument prototype would still apply.  */ | 
 | 7864 | char dlopen (); | 
 | 7865 | int | 
 | 7866 | main () | 
 | 7867 | { | 
 | 7868 | dlopen (); | 
 | 7869 |   ; | 
 | 7870 |   return 0; | 
 | 7871 | } | 
 | 7872 | _ACEOF | 
 | 7873 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7875 |   (eval $ac_link) 2>conftest.er1 | 
 | 7876 |   ac_status=$? | 
 | 7877 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7878 |   rm -f conftest.er1 | 
 | 7879 |   cat conftest.err >&5 | 
 | 7880 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7881 |   (exit $ac_status); } && | 
 | 7882 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7883 | 			 || test ! -s conftest.err' | 
 | 7884 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7885 |   (eval $ac_try) 2>&5 | 
 | 7886 |   ac_status=$? | 
 | 7887 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7888 |   (exit $ac_status); }; } && | 
 | 7889 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7890 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7891 |   (eval $ac_try) 2>&5 | 
 | 7892 |   ac_status=$? | 
 | 7893 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7894 |   (exit $ac_status); }; }; then | 
 | 7895 |   ac_cv_lib_svld_dlopen=yes | 
 | 7896 | else | 
 | 7897 |   echo "$as_me: failed program was:" >&5 | 
 | 7898 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7899 |  | 
 | 7900 | ac_cv_lib_svld_dlopen=no | 
 | 7901 | fi | 
 | 7902 | rm -f conftest.err conftest.$ac_objext \ | 
 | 7903 |       conftest$ac_exeext conftest.$ac_ext | 
 | 7904 | LIBS=$ac_check_lib_save_LIBS | 
 | 7905 | fi | 
 | 7906 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 7907 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 7908 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 7909 |  | 
 | 7910 | cat >>confdefs.h <<\_ACEOF | 
 | 7911 | #define HAVE_LIBDL 1 | 
 | 7912 | _ACEOF | 
 | 7913 |  | 
 | 7914 | 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | 
 | 7915 | else | 
 | 7916 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 7917 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 7918 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 7919 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7920 | else | 
 | 7921 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7922 | LIBS="-ldld  $LIBS" | 
 | 7923 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7924 | /* confdefs.h.  */ | 
 | 7925 | _ACEOF | 
 | 7926 | cat confdefs.h >>conftest.$ac_ext | 
 | 7927 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7928 | /* end confdefs.h.  */ | 
 | 7929 |  | 
 | 7930 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7931 | #ifdef __cplusplus | 
 | 7932 | extern "C" | 
 | 7933 | #endif | 
 | 7934 | /* We use char because int might match the return type of a gcc2 | 
 | 7935 |    builtin and then its argument prototype would still apply.  */ | 
 | 7936 | char dld_link (); | 
 | 7937 | int | 
 | 7938 | main () | 
 | 7939 | { | 
 | 7940 | dld_link (); | 
 | 7941 |   ; | 
 | 7942 |   return 0; | 
 | 7943 | } | 
 | 7944 | _ACEOF | 
 | 7945 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7947 |   (eval $ac_link) 2>conftest.er1 | 
 | 7948 |   ac_status=$? | 
 | 7949 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 7950 |   rm -f conftest.er1 | 
 | 7951 |   cat conftest.err >&5 | 
 | 7952 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7953 |   (exit $ac_status); } && | 
 | 7954 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 7955 | 			 || test ! -s conftest.err' | 
 | 7956 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7957 |   (eval $ac_try) 2>&5 | 
 | 7958 |   ac_status=$? | 
 | 7959 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7960 |   (exit $ac_status); }; } && | 
 | 7961 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 7962 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7963 |   (eval $ac_try) 2>&5 | 
 | 7964 |   ac_status=$? | 
 | 7965 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7966 |   (exit $ac_status); }; }; then | 
 | 7967 |   ac_cv_lib_dld_dld_link=yes | 
 | 7968 | else | 
 | 7969 |   echo "$as_me: failed program was:" >&5 | 
 | 7970 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7971 |  | 
 | 7972 | ac_cv_lib_dld_dld_link=no | 
 | 7973 | fi | 
 | 7974 | rm -f conftest.err conftest.$ac_objext \ | 
 | 7975 |       conftest$ac_exeext conftest.$ac_ext | 
 | 7976 | LIBS=$ac_check_lib_save_LIBS | 
 | 7977 | fi | 
 | 7978 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 7979 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 7980 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 7981 |  | 
 | 7982 | cat >>confdefs.h <<\_ACEOF | 
 | 7983 | #define HAVE_DLD 1 | 
 | 7984 | _ACEOF | 
 | 7985 |  | 
 | 7986 | 	 	LIBADD_DL="$LIBADD_DL -ldld" | 
 | 7987 | else | 
 | 7988 |   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | 
 | 7989 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 | 
 | 7990 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | 
 | 7991 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7992 | else | 
 | 7993 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 7994 | /* confdefs.h.  */ | 
 | 7995 | _ACEOF | 
 | 7996 | cat confdefs.h >>conftest.$ac_ext | 
 | 7997 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7998 | /* end confdefs.h.  */ | 
 | 7999 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | 
 | 8000 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8001 | #define _dyld_func_lookup innocuous__dyld_func_lookup | 
 | 8002 |  | 
 | 8003 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 8004 |     which can conflict with char _dyld_func_lookup (); below. | 
 | 8005 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8006 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 8007 |  | 
 | 8008 | #ifdef __STDC__ | 
 | 8009 | # include <limits.h> | 
 | 8010 | #else | 
 | 8011 | # include <assert.h> | 
 | 8012 | #endif | 
 | 8013 |  | 
 | 8014 | #undef _dyld_func_lookup | 
 | 8015 |  | 
 | 8016 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8017 | #ifdef __cplusplus | 
 | 8018 | extern "C" | 
 | 8019 | { | 
 | 8020 | #endif | 
 | 8021 | /* We use char because int might match the return type of a gcc2 | 
 | 8022 |    builtin and then its argument prototype would still apply.  */ | 
 | 8023 | char _dyld_func_lookup (); | 
 | 8024 | /* The GNU C library defines this for functions which it implements | 
 | 8025 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8026 |     something starting with __ and the normal name is an alias.  */ | 
 | 8027 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) | 
 | 8028 | choke me | 
 | 8029 | #else | 
 | 8030 | char (*f) () = _dyld_func_lookup; | 
 | 8031 | #endif | 
 | 8032 | #ifdef __cplusplus | 
 | 8033 | } | 
 | 8034 | #endif | 
 | 8035 |  | 
 | 8036 | int | 
 | 8037 | main () | 
 | 8038 | { | 
 | 8039 | return f != _dyld_func_lookup; | 
 | 8040 |   ; | 
 | 8041 |   return 0; | 
 | 8042 | } | 
 | 8043 | _ACEOF | 
 | 8044 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8046 |   (eval $ac_link) 2>conftest.er1 | 
 | 8047 |   ac_status=$? | 
 | 8048 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8049 |   rm -f conftest.er1 | 
 | 8050 |   cat conftest.err >&5 | 
 | 8051 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8052 |   (exit $ac_status); } && | 
 | 8053 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8054 | 			 || test ! -s conftest.err' | 
 | 8055 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8056 |   (eval $ac_try) 2>&5 | 
 | 8057 |   ac_status=$? | 
 | 8058 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8059 |   (exit $ac_status); }; } && | 
 | 8060 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8061 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8062 |   (eval $ac_try) 2>&5 | 
 | 8063 |   ac_status=$? | 
 | 8064 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8065 |   (exit $ac_status); }; }; then | 
 | 8066 |   ac_cv_func__dyld_func_lookup=yes | 
 | 8067 | else | 
 | 8068 |   echo "$as_me: failed program was:" >&5 | 
 | 8069 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8070 |  | 
 | 8071 | ac_cv_func__dyld_func_lookup=no | 
 | 8072 | fi | 
 | 8073 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8074 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8075 | fi | 
 | 8076 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | 
 | 8077 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 | 
 | 8078 | if test $ac_cv_func__dyld_func_lookup = yes; then | 
 | 8079 |  | 
 | 8080 | cat >>confdefs.h <<\_ACEOF | 
 | 8081 | #define HAVE_DYLD 1 | 
 | 8082 | _ACEOF | 
 | 8083 |  | 
 | 8084 | fi | 
 | 8085 |  | 
 | 8086 |  | 
 | 8087 | fi | 
 | 8088 |  | 
 | 8089 |  | 
 | 8090 | fi | 
 | 8091 |  | 
 | 8092 |  | 
 | 8093 | fi | 
 | 8094 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8095 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8096 |  | 
 | 8097 | fi | 
 | 8098 |  | 
 | 8099 |  | 
 | 8100 | fi | 
 | 8101 |  | 
 | 8102 |  | 
 | 8103 | fi | 
 | 8104 |  | 
 | 8105 |  | 
 | 8106 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
 | 8107 | then | 
 | 8108 |   lt_save_LIBS="$LIBS" | 
 | 8109 |   LIBS="$LIBS $LIBADD_DL" | 
 | 8110 |  | 
 | 8111 | for ac_func in dlerror | 
 | 8112 | do | 
 | 8113 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 8114 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 8115 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 8116 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 8117 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8118 | else | 
 | 8119 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8120 | /* confdefs.h.  */ | 
 | 8121 | _ACEOF | 
 | 8122 | cat confdefs.h >>conftest.$ac_ext | 
 | 8123 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8124 | /* end confdefs.h.  */ | 
 | 8125 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 8126 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8127 | #define $ac_func innocuous_$ac_func | 
 | 8128 |  | 
 | 8129 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 8130 |     which can conflict with char $ac_func (); below. | 
 | 8131 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8132 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 8133 |  | 
 | 8134 | #ifdef __STDC__ | 
 | 8135 | # include <limits.h> | 
 | 8136 | #else | 
 | 8137 | # include <assert.h> | 
 | 8138 | #endif | 
 | 8139 |  | 
 | 8140 | #undef $ac_func | 
 | 8141 |  | 
 | 8142 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8143 | #ifdef __cplusplus | 
 | 8144 | extern "C" | 
 | 8145 | { | 
 | 8146 | #endif | 
 | 8147 | /* We use char because int might match the return type of a gcc2 | 
 | 8148 |    builtin and then its argument prototype would still apply.  */ | 
 | 8149 | char $ac_func (); | 
 | 8150 | /* The GNU C library defines this for functions which it implements | 
 | 8151 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8152 |     something starting with __ and the normal name is an alias.  */ | 
 | 8153 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 8154 | choke me | 
 | 8155 | #else | 
 | 8156 | char (*f) () = $ac_func; | 
 | 8157 | #endif | 
 | 8158 | #ifdef __cplusplus | 
 | 8159 | } | 
 | 8160 | #endif | 
 | 8161 |  | 
 | 8162 | int | 
 | 8163 | main () | 
 | 8164 | { | 
 | 8165 | return f != $ac_func; | 
 | 8166 |   ; | 
 | 8167 |   return 0; | 
 | 8168 | } | 
 | 8169 | _ACEOF | 
 | 8170 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8172 |   (eval $ac_link) 2>conftest.er1 | 
 | 8173 |   ac_status=$? | 
 | 8174 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8175 |   rm -f conftest.er1 | 
 | 8176 |   cat conftest.err >&5 | 
 | 8177 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8178 |   (exit $ac_status); } && | 
 | 8179 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8180 | 			 || test ! -s conftest.err' | 
 | 8181 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8182 |   (eval $ac_try) 2>&5 | 
 | 8183 |   ac_status=$? | 
 | 8184 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8185 |   (exit $ac_status); }; } && | 
 | 8186 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8187 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8188 |   (eval $ac_try) 2>&5 | 
 | 8189 |   ac_status=$? | 
 | 8190 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8191 |   (exit $ac_status); }; }; then | 
 | 8192 |   eval "$as_ac_var=yes" | 
 | 8193 | else | 
 | 8194 |   echo "$as_me: failed program was:" >&5 | 
 | 8195 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8196 |  | 
 | 8197 | eval "$as_ac_var=no" | 
 | 8198 | fi | 
 | 8199 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8200 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8201 | fi | 
 | 8202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 8203 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 8204 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 8205 |   cat >>confdefs.h <<_ACEOF | 
 | 8206 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 8207 | _ACEOF | 
 | 8208 |  | 
 | 8209 | fi | 
 | 8210 | done | 
 | 8211 |  | 
 | 8212 |   LIBS="$lt_save_LIBS" | 
 | 8213 | fi | 
 | 8214 | ac_ext=c | 
 | 8215 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8219 |  | 
 | 8220 |  | 
 | 8221 |  | 
 | 8222 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | 
 | 8223 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 | 
 | 8224 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | 
 | 8225 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8226 | else | 
 | 8227 |   ac_cv_sys_symbol_underscore=no | 
 | 8228 |   cat > conftest.$ac_ext <<EOF | 
 | 8229 | void nm_test_func(){} | 
 | 8230 | int main(){nm_test_func;return 0;} | 
 | 8231 | EOF | 
 | 8232 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 8233 |   (eval $ac_compile) 2>&5 | 
 | 8234 |   ac_status=$? | 
 | 8235 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8236 |   (exit $ac_status); }; then | 
 | 8237 |     # Now try to grab the symbols. | 
 | 8238 |     ac_nlist=conftest.nm | 
 | 8239 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | 
 | 8240 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
 | 8241 |   ac_status=$? | 
 | 8242 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8243 |   (exit $ac_status); } && test -s "$ac_nlist"; then | 
 | 8244 |       # See whether the symbols have a leading underscore. | 
 | 8245 |       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
 | 8246 |         ac_cv_sys_symbol_underscore=yes | 
 | 8247 |       else | 
 | 8248 |         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
 | 8249 | 	  : | 
 | 8250 |         else | 
 | 8251 | 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
 | 8252 |         fi | 
 | 8253 |       fi | 
 | 8254 |     else | 
 | 8255 |       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 8256 |     fi | 
 | 8257 |   else | 
 | 8258 |     echo "configure: failed program was:" >&5 | 
 | 8259 |     cat conftest.c >&5 | 
 | 8260 |   fi | 
 | 8261 |   rm -rf conftest* | 
 | 8262 |  | 
 | 8263 | fi | 
 | 8264 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | 
 | 8265 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 | 
 | 8266 |  | 
 | 8267 |  | 
 | 8268 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | 
 | 8269 |   if test x"$libltdl_cv_func_dlopen" = xyes || | 
 | 8270 |      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
 | 8271 | 	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | 
 | 8272 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 | 
 | 8273 | if test "${libltdl_cv_need_uscore+set}" = set; then | 
 | 8274 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8275 | else | 
 | 8276 |   libltdl_cv_need_uscore=unknown | 
 | 8277 |           save_LIBS="$LIBS" | 
 | 8278 |           LIBS="$LIBS $LIBADD_DL" | 
 | 8279 | 	  if test "$cross_compiling" = yes; then : | 
 | 8280 |   libltdl_cv_need_uscore=cross | 
 | 8281 | else | 
 | 8282 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 8283 |   lt_status=$lt_dlunknown | 
 | 8284 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 8285 | #line 8285 "configure" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8286 | #include "confdefs.h" | 
 | 8287 |  | 
 | 8288 | #if HAVE_DLFCN_H | 
 | 8289 | #include <dlfcn.h> | 
 | 8290 | #endif | 
 | 8291 |  | 
 | 8292 | #include <stdio.h> | 
 | 8293 |  | 
 | 8294 | #ifdef RTLD_GLOBAL | 
 | 8295 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 8296 | #else | 
 | 8297 | #  ifdef DL_GLOBAL | 
 | 8298 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 8299 | #  else | 
 | 8300 | #    define LT_DLGLOBAL		0 | 
 | 8301 | #  endif | 
 | 8302 | #endif | 
 | 8303 |  | 
 | 8304 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 8305 |    find out it does not work in some platform. */ | 
 | 8306 | #ifndef LT_DLLAZY_OR_NOW | 
 | 8307 | #  ifdef RTLD_LAZY | 
 | 8308 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 8309 | #  else | 
 | 8310 | #    ifdef DL_LAZY | 
 | 8311 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 8312 | #    else | 
 | 8313 | #      ifdef RTLD_NOW | 
 | 8314 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 8315 | #      else | 
 | 8316 | #        ifdef DL_NOW | 
 | 8317 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 8318 | #        else | 
 | 8319 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 8320 | #        endif | 
 | 8321 | #      endif | 
 | 8322 | #    endif | 
 | 8323 | #  endif | 
 | 8324 | #endif | 
 | 8325 |  | 
 | 8326 | #ifdef __cplusplus | 
 | 8327 | extern "C" void exit (int); | 
 | 8328 | #endif | 
 | 8329 |  | 
 | 8330 | void fnord() { int i=42;} | 
 | 8331 | int main () | 
 | 8332 | { | 
 | 8333 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 8334 |   int status = $lt_dlunknown; | 
 | 8335 |  | 
 | 8336 |   if (self) | 
 | 8337 |     { | 
 | 8338 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 8339 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 8340 |       /* dlclose (self); */ | 
 | 8341 |     } | 
 | 8342 |  | 
 | 8343 |     exit (status); | 
 | 8344 | } | 
 | 8345 | EOF | 
 | 8346 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8347 |   (eval $ac_link) 2>&5 | 
 | 8348 |   ac_status=$? | 
 | 8349 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8350 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 8351 |     (./conftest; exit; ) 2>/dev/null | 
 | 8352 |     lt_status=$? | 
 | 8353 |     case x$lt_status in | 
 | 8354 |       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
 | 8355 |       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
 | 8356 |       x$lt_unknown|x*)  ;; | 
 | 8357 |     esac | 
 | 8358 |   else : | 
 | 8359 |     # compilation failed | 
 | 8360 |  | 
 | 8361 |   fi | 
 | 8362 | fi | 
 | 8363 | rm -fr conftest* | 
 | 8364 |  | 
 | 8365 | 	  LIBS="$save_LIBS" | 
 | 8366 |  | 
 | 8367 | fi | 
 | 8368 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | 
 | 8369 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 | 
 | 8370 |   fi | 
 | 8371 | fi | 
 | 8372 |  | 
 | 8373 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
 | 8374 |  | 
 | 8375 | cat >>confdefs.h <<\_ACEOF | 
 | 8376 | #define NEED_USCORE 1 | 
 | 8377 | _ACEOF | 
 | 8378 |  | 
 | 8379 | fi | 
 | 8380 |  | 
 | 8381 |  | 
 | 8382 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | 
 | 8383 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 | 
 | 8384 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | 
 | 8385 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8386 | else | 
 | 8387 |   # PORTME does your system automatically load deplibs for dlopen? | 
 | 8388 |   # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
 | 8389 |   # For now, we just catch OSes we know something about -- in the | 
 | 8390 |   # future, we'll try test this programmatically. | 
 | 8391 |   libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 8392 |   case "$host_os" in | 
 | 8393 |   aix3*|aix4.1.*|aix4.2.*) | 
 | 8394 |     # Unknown whether this is true for these versions of AIX, but | 
 | 8395 |     # we want this `case' here to explicitly catch those versions. | 
 | 8396 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 8397 |     ;; | 
 | 8398 |   aix[45]*) | 
 | 8399 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8400 |     ;; | 
 | 8401 |   darwin*) | 
 | 8402 |     # Assuming the user has installed a libdl from somewhere, this is true | 
 | 8403 |     # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
 | 8404 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8405 |     ;; | 
 | 8406 |   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) | 
 | 8407 |     # GNU and its variants, using gnu ld.so (Glibc) | 
 | 8408 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8409 |     ;; | 
 | 8410 |   hpux10*|hpux11*) | 
 | 8411 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8412 |     ;; | 
 | 8413 |   irix[12345]*|irix6.[01]*) | 
 | 8414 |     # Catch all versions of IRIX before 6.2, and indicate that we don't | 
 | 8415 |     # know how it worked for any of those versions. | 
 | 8416 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 8417 |     ;; | 
 | 8418 |   irix*) | 
 | 8419 |     # The case above catches anything before 6.2, and it's known that | 
 | 8420 |     # at 6.2 and later dlopen does load deplibs. | 
 | 8421 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8422 |     ;; | 
 | 8423 |   netbsd*) | 
 | 8424 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8425 |     ;; | 
 | 8426 |   openbsd*) | 
 | 8427 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8428 |     ;; | 
 | 8429 |   osf[1234]*) | 
 | 8430 |     # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
 | 8431 |     # it did *not* use an RPATH in a shared library to find objects the | 
 | 8432 |     # library depends on, so we explictly say `no'. | 
 | 8433 |     libltdl_cv_sys_dlopen_deplibs=no | 
 | 8434 |     ;; | 
 | 8435 |   osf5.0|osf5.0a|osf5.1) | 
 | 8436 |     # dlopen *does* load deplibs and with the right loader patch applied | 
 | 8437 |     # it even uses RPATH in a shared library to search for shared objects | 
 | 8438 |     # that the library depends on, but there's no easy way to know if that | 
 | 8439 |     # patch is installed.  Since this is the case, all we can really | 
 | 8440 |     # say is unknown -- it depends on the patch being installed.  If | 
 | 8441 |     # it is, this changes to `yes'.  Without it, it would be `no'. | 
 | 8442 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 8443 |     ;; | 
 | 8444 |   osf*) | 
 | 8445 |     # the two cases above should catch all versions of osf <= 5.1.  Read | 
 | 8446 |     # the comments above for what we know about them. | 
 | 8447 |     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
 | 8448 |     # is used to find them so we can finally say `yes'. | 
 | 8449 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8450 |     ;; | 
 | 8451 |   solaris*) | 
 | 8452 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 8453 |     ;; | 
 | 8454 |   esac | 
 | 8455 |  | 
 | 8456 | fi | 
 | 8457 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | 
 | 8458 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 | 
 | 8459 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 
 | 8460 |  | 
 | 8461 | cat >>confdefs.h <<\_ACEOF | 
 | 8462 | #define LTDL_DLOPEN_DEPLIBS 1 | 
 | 8463 | _ACEOF | 
 | 8464 |  | 
 | 8465 | fi | 
 | 8466 |  | 
 | 8467 |  | 
 | 8468 | for ac_header in argz.h | 
 | 8469 | do | 
 | 8470 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 8471 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8472 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 8473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 8474 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8475 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8476 | fi | 
 | 8477 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 8478 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 8479 | else | 
 | 8480 |   # Is the header compilable? | 
 | 8481 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 8482 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 8483 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8484 | /* confdefs.h.  */ | 
 | 8485 | _ACEOF | 
 | 8486 | cat confdefs.h >>conftest.$ac_ext | 
 | 8487 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8488 | /* end confdefs.h.  */ | 
 | 8489 | $ac_includes_default | 
 | 8490 | #include <$ac_header> | 
 | 8491 | _ACEOF | 
 | 8492 | rm -f conftest.$ac_objext | 
 | 8493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 8494 |   (eval $ac_compile) 2>conftest.er1 | 
 | 8495 |   ac_status=$? | 
 | 8496 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8497 |   rm -f conftest.er1 | 
 | 8498 |   cat conftest.err >&5 | 
 | 8499 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8500 |   (exit $ac_status); } && | 
 | 8501 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8502 | 			 || test ! -s conftest.err' | 
 | 8503 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8504 |   (eval $ac_try) 2>&5 | 
 | 8505 |   ac_status=$? | 
 | 8506 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8507 |   (exit $ac_status); }; } && | 
 | 8508 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 8509 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8510 |   (eval $ac_try) 2>&5 | 
 | 8511 |   ac_status=$? | 
 | 8512 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8513 |   (exit $ac_status); }; }; then | 
 | 8514 |   ac_header_compiler=yes | 
 | 8515 | else | 
 | 8516 |   echo "$as_me: failed program was:" >&5 | 
 | 8517 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8518 |  | 
 | 8519 | ac_header_compiler=no | 
 | 8520 | fi | 
 | 8521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 8522 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 8523 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 8524 |  | 
 | 8525 | # Is the header present? | 
 | 8526 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 8527 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 8528 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8529 | /* confdefs.h.  */ | 
 | 8530 | _ACEOF | 
 | 8531 | cat confdefs.h >>conftest.$ac_ext | 
 | 8532 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8533 | /* end confdefs.h.  */ | 
 | 8534 | #include <$ac_header> | 
 | 8535 | _ACEOF | 
 | 8536 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 8537 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 8538 |   ac_status=$? | 
 | 8539 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8540 |   rm -f conftest.er1 | 
 | 8541 |   cat conftest.err >&5 | 
 | 8542 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8543 |   (exit $ac_status); } >/dev/null; then | 
 | 8544 |   if test -s conftest.err; then | 
 | 8545 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 8546 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 8547 |   else | 
 | 8548 |     ac_cpp_err= | 
 | 8549 |   fi | 
 | 8550 | else | 
 | 8551 |   ac_cpp_err=yes | 
 | 8552 | fi | 
 | 8553 | if test -z "$ac_cpp_err"; then | 
 | 8554 |   ac_header_preproc=yes | 
 | 8555 | else | 
 | 8556 |   echo "$as_me: failed program was:" >&5 | 
 | 8557 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8558 |  | 
 | 8559 |   ac_header_preproc=no | 
 | 8560 | fi | 
 | 8561 | rm -f conftest.err conftest.$ac_ext | 
 | 8562 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 8563 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 8564 |  | 
 | 8565 | # So?  What about this header? | 
 | 8566 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 8567 |   yes:no: ) | 
 | 8568 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 8569 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 8570 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 8571 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 8572 |     ac_header_preproc=yes | 
 | 8573 |     ;; | 
 | 8574 |   no:yes:* ) | 
 | 8575 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 8576 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 8577 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 8578 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 8579 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 8580 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 8581 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 8582 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 8583 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 8584 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 8585 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 8586 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 8587 |     ( | 
 | 8588 |       cat <<\_ASBOX | 
 | 8589 | ## ----------------------------------- ## | 
 | 8590 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 8591 | ## ----------------------------------- ## | 
 | 8592 | _ASBOX | 
 | 8593 |     ) | | 
 | 8594 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 8595 |     ;; | 
 | 8596 | esac | 
 | 8597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 8598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 8599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8600 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8601 | else | 
 | 8602 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 8603 | fi | 
 | 8604 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 8605 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 8606 |  | 
 | 8607 | fi | 
 | 8608 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 8609 |   cat >>confdefs.h <<_ACEOF | 
 | 8610 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 8611 | _ACEOF | 
 | 8612 |  | 
 | 8613 | fi | 
 | 8614 |  | 
 | 8615 | done | 
 | 8616 |  | 
 | 8617 |  | 
 | 8618 | echo "$as_me:$LINENO: checking for error_t" >&5 | 
 | 8619 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 | 
 | 8620 | if test "${ac_cv_type_error_t+set}" = set; then | 
 | 8621 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8622 | else | 
 | 8623 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8624 | /* confdefs.h.  */ | 
 | 8625 | _ACEOF | 
 | 8626 | cat confdefs.h >>conftest.$ac_ext | 
 | 8627 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8628 | /* end confdefs.h.  */ | 
 | 8629 | #if HAVE_ARGZ_H | 
 | 8630 | #  include <argz.h> | 
 | 8631 | #endif | 
 | 8632 |  | 
 | 8633 | int | 
 | 8634 | main () | 
 | 8635 | { | 
 | 8636 | if ((error_t *) 0) | 
 | 8637 |   return 0; | 
 | 8638 | if (sizeof (error_t)) | 
 | 8639 |   return 0; | 
 | 8640 |   ; | 
 | 8641 |   return 0; | 
 | 8642 | } | 
 | 8643 | _ACEOF | 
 | 8644 | rm -f conftest.$ac_objext | 
 | 8645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 8646 |   (eval $ac_compile) 2>conftest.er1 | 
 | 8647 |   ac_status=$? | 
 | 8648 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8649 |   rm -f conftest.er1 | 
 | 8650 |   cat conftest.err >&5 | 
 | 8651 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8652 |   (exit $ac_status); } && | 
 | 8653 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8654 | 			 || test ! -s conftest.err' | 
 | 8655 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8656 |   (eval $ac_try) 2>&5 | 
 | 8657 |   ac_status=$? | 
 | 8658 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8659 |   (exit $ac_status); }; } && | 
 | 8660 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 8661 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8662 |   (eval $ac_try) 2>&5 | 
 | 8663 |   ac_status=$? | 
 | 8664 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8665 |   (exit $ac_status); }; }; then | 
 | 8666 |   ac_cv_type_error_t=yes | 
 | 8667 | else | 
 | 8668 |   echo "$as_me: failed program was:" >&5 | 
 | 8669 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8670 |  | 
 | 8671 | ac_cv_type_error_t=no | 
 | 8672 | fi | 
 | 8673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 8674 | fi | 
 | 8675 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | 
 | 8676 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 | 
 | 8677 | if test $ac_cv_type_error_t = yes; then | 
 | 8678 |  | 
 | 8679 | cat >>confdefs.h <<_ACEOF | 
 | 8680 | #define HAVE_ERROR_T 1 | 
 | 8681 | _ACEOF | 
 | 8682 |  | 
 | 8683 |  | 
 | 8684 | else | 
 | 8685 |  | 
 | 8686 | cat >>confdefs.h <<\_ACEOF | 
 | 8687 | #define error_t int | 
 | 8688 | _ACEOF | 
 | 8689 |  | 
 | 8690 | fi | 
 | 8691 |  | 
 | 8692 |  | 
 | 8693 |  | 
 | 8694 |  | 
 | 8695 |  | 
 | 8696 |  | 
 | 8697 |  | 
 | 8698 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | 
 | 8699 | do | 
 | 8700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 8701 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 8702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 8703 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 8704 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8705 | else | 
 | 8706 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8707 | /* confdefs.h.  */ | 
 | 8708 | _ACEOF | 
 | 8709 | cat confdefs.h >>conftest.$ac_ext | 
 | 8710 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8711 | /* end confdefs.h.  */ | 
 | 8712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 8713 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 8714 | #define $ac_func innocuous_$ac_func | 
 | 8715 |  | 
 | 8716 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 8717 |     which can conflict with char $ac_func (); below. | 
 | 8718 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 8719 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 8720 |  | 
 | 8721 | #ifdef __STDC__ | 
 | 8722 | # include <limits.h> | 
 | 8723 | #else | 
 | 8724 | # include <assert.h> | 
 | 8725 | #endif | 
 | 8726 |  | 
 | 8727 | #undef $ac_func | 
 | 8728 |  | 
 | 8729 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8730 | #ifdef __cplusplus | 
 | 8731 | extern "C" | 
 | 8732 | { | 
 | 8733 | #endif | 
 | 8734 | /* We use char because int might match the return type of a gcc2 | 
 | 8735 |    builtin and then its argument prototype would still apply.  */ | 
 | 8736 | char $ac_func (); | 
 | 8737 | /* The GNU C library defines this for functions which it implements | 
 | 8738 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 8739 |     something starting with __ and the normal name is an alias.  */ | 
 | 8740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 8741 | choke me | 
 | 8742 | #else | 
 | 8743 | char (*f) () = $ac_func; | 
 | 8744 | #endif | 
 | 8745 | #ifdef __cplusplus | 
 | 8746 | } | 
 | 8747 | #endif | 
 | 8748 |  | 
 | 8749 | int | 
 | 8750 | main () | 
 | 8751 | { | 
 | 8752 | return f != $ac_func; | 
 | 8753 |   ; | 
 | 8754 |   return 0; | 
 | 8755 | } | 
 | 8756 | _ACEOF | 
 | 8757 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8759 |   (eval $ac_link) 2>conftest.er1 | 
 | 8760 |   ac_status=$? | 
 | 8761 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8762 |   rm -f conftest.er1 | 
 | 8763 |   cat conftest.err >&5 | 
 | 8764 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8765 |   (exit $ac_status); } && | 
 | 8766 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8767 | 			 || test ! -s conftest.err' | 
 | 8768 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8769 |   (eval $ac_try) 2>&5 | 
 | 8770 |   ac_status=$? | 
 | 8771 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8772 |   (exit $ac_status); }; } && | 
 | 8773 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8774 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8775 |   (eval $ac_try) 2>&5 | 
 | 8776 |   ac_status=$? | 
 | 8777 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8778 |   (exit $ac_status); }; }; then | 
 | 8779 |   eval "$as_ac_var=yes" | 
 | 8780 | else | 
 | 8781 |   echo "$as_me: failed program was:" >&5 | 
 | 8782 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8783 |  | 
 | 8784 | eval "$as_ac_var=no" | 
 | 8785 | fi | 
 | 8786 | rm -f conftest.err conftest.$ac_objext \ | 
 | 8787 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8788 | fi | 
 | 8789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 8790 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 8791 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 8792 |   cat >>confdefs.h <<_ACEOF | 
 | 8793 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 8794 | _ACEOF | 
 | 8795 |  | 
 | 8796 | fi | 
 | 8797 | done | 
 | 8798 |  | 
 | 8799 |  | 
 | 8800 |  | 
 | 8801 |  | 
 | 8802 |  | 
 | 8803 |  | 
 | 8804 |  | 
 | 8805 |  | 
 | 8806 |  | 
 | 8807 |  | 
 | 8808 |  | 
 | 8809 |  | 
 | 8810 |  | 
 | 8811 |  | 
 | 8812 |  | 
 | 8813 |  | 
 | 8814 |  | 
 | 8815 |  | 
 | 8816 |  | 
 | 8817 |  | 
 | 8818 |  | 
 | 8819 |  | 
 | 8820 |  | 
 | 8821 |  | 
 | 8822 |  | 
 | 8823 |  | 
 | 8824 |  | 
 | 8825 |  | 
 | 8826 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | 
 | 8827 | 		  stdio.h unistd.h | 
 | 8828 | do | 
 | 8829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 8830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8831 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 8832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 8833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8834 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8835 | fi | 
 | 8836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 8837 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 8838 | else | 
 | 8839 |   # Is the header compilable? | 
 | 8840 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 8841 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 8842 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8843 | /* confdefs.h.  */ | 
 | 8844 | _ACEOF | 
 | 8845 | cat confdefs.h >>conftest.$ac_ext | 
 | 8846 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8847 | /* end confdefs.h.  */ | 
 | 8848 | $ac_includes_default | 
 | 8849 | #include <$ac_header> | 
 | 8850 | _ACEOF | 
 | 8851 | rm -f conftest.$ac_objext | 
 | 8852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 8853 |   (eval $ac_compile) 2>conftest.er1 | 
 | 8854 |   ac_status=$? | 
 | 8855 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8856 |   rm -f conftest.er1 | 
 | 8857 |   cat conftest.err >&5 | 
 | 8858 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8859 |   (exit $ac_status); } && | 
 | 8860 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 8861 | 			 || test ! -s conftest.err' | 
 | 8862 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8863 |   (eval $ac_try) 2>&5 | 
 | 8864 |   ac_status=$? | 
 | 8865 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8866 |   (exit $ac_status); }; } && | 
 | 8867 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 8868 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8869 |   (eval $ac_try) 2>&5 | 
 | 8870 |   ac_status=$? | 
 | 8871 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8872 |   (exit $ac_status); }; }; then | 
 | 8873 |   ac_header_compiler=yes | 
 | 8874 | else | 
 | 8875 |   echo "$as_me: failed program was:" >&5 | 
 | 8876 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8877 |  | 
 | 8878 | ac_header_compiler=no | 
 | 8879 | fi | 
 | 8880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 8881 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 8882 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 8883 |  | 
 | 8884 | # Is the header present? | 
 | 8885 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 8886 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 8887 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8888 | /* confdefs.h.  */ | 
 | 8889 | _ACEOF | 
 | 8890 | cat confdefs.h >>conftest.$ac_ext | 
 | 8891 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8892 | /* end confdefs.h.  */ | 
 | 8893 | #include <$ac_header> | 
 | 8894 | _ACEOF | 
 | 8895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 8896 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 8897 |   ac_status=$? | 
 | 8898 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8899 |   rm -f conftest.er1 | 
 | 8900 |   cat conftest.err >&5 | 
 | 8901 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8902 |   (exit $ac_status); } >/dev/null; then | 
 | 8903 |   if test -s conftest.err; then | 
 | 8904 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 8905 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 8906 |   else | 
 | 8907 |     ac_cpp_err= | 
 | 8908 |   fi | 
 | 8909 | else | 
 | 8910 |   ac_cpp_err=yes | 
 | 8911 | fi | 
 | 8912 | if test -z "$ac_cpp_err"; then | 
 | 8913 |   ac_header_preproc=yes | 
 | 8914 | else | 
 | 8915 |   echo "$as_me: failed program was:" >&5 | 
 | 8916 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8917 |  | 
 | 8918 |   ac_header_preproc=no | 
 | 8919 | fi | 
 | 8920 | rm -f conftest.err conftest.$ac_ext | 
 | 8921 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 8922 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 8923 |  | 
 | 8924 | # So?  What about this header? | 
 | 8925 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 8926 |   yes:no: ) | 
 | 8927 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 8928 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 8929 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 8930 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 8931 |     ac_header_preproc=yes | 
 | 8932 |     ;; | 
 | 8933 |   no:yes:* ) | 
 | 8934 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 8935 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 8936 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 8937 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 8938 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 8939 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 8940 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 8941 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 8942 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 8943 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 8944 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 8945 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 8946 |     ( | 
 | 8947 |       cat <<\_ASBOX | 
 | 8948 | ## ----------------------------------- ## | 
 | 8949 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 8950 | ## ----------------------------------- ## | 
 | 8951 | _ASBOX | 
 | 8952 |     ) | | 
 | 8953 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 8954 |     ;; | 
 | 8955 | esac | 
 | 8956 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 8957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 8958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8959 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8960 | else | 
 | 8961 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 8962 | fi | 
 | 8963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 8964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 8965 |  | 
 | 8966 | fi | 
 | 8967 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 8968 |   cat >>confdefs.h <<_ACEOF | 
 | 8969 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 8970 | _ACEOF | 
 | 8971 |  | 
 | 8972 | fi | 
 | 8973 |  | 
 | 8974 | done | 
 | 8975 |  | 
 | 8976 |  | 
 | 8977 |  | 
 | 8978 |  | 
 | 8979 |  | 
 | 8980 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | 
 | 8981 | do | 
 | 8982 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 8983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8984 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 8985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 8986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 8987 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8988 | fi | 
 | 8989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 8990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 8991 | else | 
 | 8992 |   # Is the header compilable? | 
 | 8993 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 8994 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 8995 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8996 | /* confdefs.h.  */ | 
 | 8997 | _ACEOF | 
 | 8998 | cat confdefs.h >>conftest.$ac_ext | 
 | 8999 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9000 | /* end confdefs.h.  */ | 
 | 9001 | $ac_includes_default | 
 | 9002 | #include <$ac_header> | 
 | 9003 | _ACEOF | 
 | 9004 | rm -f conftest.$ac_objext | 
 | 9005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 9006 |   (eval $ac_compile) 2>conftest.er1 | 
 | 9007 |   ac_status=$? | 
 | 9008 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9009 |   rm -f conftest.er1 | 
 | 9010 |   cat conftest.err >&5 | 
 | 9011 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9012 |   (exit $ac_status); } && | 
 | 9013 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9014 | 			 || test ! -s conftest.err' | 
 | 9015 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9016 |   (eval $ac_try) 2>&5 | 
 | 9017 |   ac_status=$? | 
 | 9018 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9019 |   (exit $ac_status); }; } && | 
 | 9020 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 9021 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9022 |   (eval $ac_try) 2>&5 | 
 | 9023 |   ac_status=$? | 
 | 9024 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9025 |   (exit $ac_status); }; }; then | 
 | 9026 |   ac_header_compiler=yes | 
 | 9027 | else | 
 | 9028 |   echo "$as_me: failed program was:" >&5 | 
 | 9029 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9030 |  | 
 | 9031 | ac_header_compiler=no | 
 | 9032 | fi | 
 | 9033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9034 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 9035 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 9036 |  | 
 | 9037 | # Is the header present? | 
 | 9038 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 9039 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 9040 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9041 | /* confdefs.h.  */ | 
 | 9042 | _ACEOF | 
 | 9043 | cat confdefs.h >>conftest.$ac_ext | 
 | 9044 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9045 | /* end confdefs.h.  */ | 
 | 9046 | #include <$ac_header> | 
 | 9047 | _ACEOF | 
 | 9048 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 9049 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 9050 |   ac_status=$? | 
 | 9051 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9052 |   rm -f conftest.er1 | 
 | 9053 |   cat conftest.err >&5 | 
 | 9054 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9055 |   (exit $ac_status); } >/dev/null; then | 
 | 9056 |   if test -s conftest.err; then | 
 | 9057 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 9058 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 9059 |   else | 
 | 9060 |     ac_cpp_err= | 
 | 9061 |   fi | 
 | 9062 | else | 
 | 9063 |   ac_cpp_err=yes | 
 | 9064 | fi | 
 | 9065 | if test -z "$ac_cpp_err"; then | 
 | 9066 |   ac_header_preproc=yes | 
 | 9067 | else | 
 | 9068 |   echo "$as_me: failed program was:" >&5 | 
 | 9069 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9070 |  | 
 | 9071 |   ac_header_preproc=no | 
 | 9072 | fi | 
 | 9073 | rm -f conftest.err conftest.$ac_ext | 
 | 9074 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 9075 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 9076 |  | 
 | 9077 | # So?  What about this header? | 
 | 9078 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 9079 |   yes:no: ) | 
 | 9080 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 9081 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 9082 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 9083 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 9084 |     ac_header_preproc=yes | 
 | 9085 |     ;; | 
 | 9086 |   no:yes:* ) | 
 | 9087 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 9088 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 9089 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 9090 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 9091 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 9092 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 9093 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 9094 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 9095 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 9096 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 9097 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 9098 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 9099 |     ( | 
 | 9100 |       cat <<\_ASBOX | 
 | 9101 | ## ----------------------------------- ## | 
 | 9102 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 9103 | ## ----------------------------------- ## | 
 | 9104 | _ASBOX | 
 | 9105 |     ) | | 
 | 9106 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 9107 |     ;; | 
 | 9108 | esac | 
 | 9109 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9110 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9111 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9112 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9113 | else | 
 | 9114 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 9115 | fi | 
 | 9116 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9117 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9118 |  | 
 | 9119 | fi | 
 | 9120 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 9121 |   cat >>confdefs.h <<_ACEOF | 
 | 9122 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 9123 | _ACEOF | 
 | 9124 |  | 
 | 9125 | fi | 
 | 9126 |  | 
 | 9127 | done | 
 | 9128 |  | 
 | 9129 |  | 
 | 9130 |  | 
 | 9131 | for ac_header in string.h strings.h | 
 | 9132 | do | 
 | 9133 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 9134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9135 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9136 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9137 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9138 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9139 | fi | 
 | 9140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9142 | else | 
 | 9143 |   # Is the header compilable? | 
 | 9144 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 9145 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 9146 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9147 | /* confdefs.h.  */ | 
 | 9148 | _ACEOF | 
 | 9149 | cat confdefs.h >>conftest.$ac_ext | 
 | 9150 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9151 | /* end confdefs.h.  */ | 
 | 9152 | $ac_includes_default | 
 | 9153 | #include <$ac_header> | 
 | 9154 | _ACEOF | 
 | 9155 | rm -f conftest.$ac_objext | 
 | 9156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 9157 |   (eval $ac_compile) 2>conftest.er1 | 
 | 9158 |   ac_status=$? | 
 | 9159 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9160 |   rm -f conftest.er1 | 
 | 9161 |   cat conftest.err >&5 | 
 | 9162 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9163 |   (exit $ac_status); } && | 
 | 9164 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9165 | 			 || test ! -s conftest.err' | 
 | 9166 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9167 |   (eval $ac_try) 2>&5 | 
 | 9168 |   ac_status=$? | 
 | 9169 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9170 |   (exit $ac_status); }; } && | 
 | 9171 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 9172 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9173 |   (eval $ac_try) 2>&5 | 
 | 9174 |   ac_status=$? | 
 | 9175 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9176 |   (exit $ac_status); }; }; then | 
 | 9177 |   ac_header_compiler=yes | 
 | 9178 | else | 
 | 9179 |   echo "$as_me: failed program was:" >&5 | 
 | 9180 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9181 |  | 
 | 9182 | ac_header_compiler=no | 
 | 9183 | fi | 
 | 9184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9185 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 9186 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 9187 |  | 
 | 9188 | # Is the header present? | 
 | 9189 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 9190 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 9191 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9192 | /* confdefs.h.  */ | 
 | 9193 | _ACEOF | 
 | 9194 | cat confdefs.h >>conftest.$ac_ext | 
 | 9195 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9196 | /* end confdefs.h.  */ | 
 | 9197 | #include <$ac_header> | 
 | 9198 | _ACEOF | 
 | 9199 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 9200 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 9201 |   ac_status=$? | 
 | 9202 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9203 |   rm -f conftest.er1 | 
 | 9204 |   cat conftest.err >&5 | 
 | 9205 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9206 |   (exit $ac_status); } >/dev/null; then | 
 | 9207 |   if test -s conftest.err; then | 
 | 9208 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 9209 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 9210 |   else | 
 | 9211 |     ac_cpp_err= | 
 | 9212 |   fi | 
 | 9213 | else | 
 | 9214 |   ac_cpp_err=yes | 
 | 9215 | fi | 
 | 9216 | if test -z "$ac_cpp_err"; then | 
 | 9217 |   ac_header_preproc=yes | 
 | 9218 | else | 
 | 9219 |   echo "$as_me: failed program was:" >&5 | 
 | 9220 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9221 |  | 
 | 9222 |   ac_header_preproc=no | 
 | 9223 | fi | 
 | 9224 | rm -f conftest.err conftest.$ac_ext | 
 | 9225 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 9226 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 9227 |  | 
 | 9228 | # So?  What about this header? | 
 | 9229 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 9230 |   yes:no: ) | 
 | 9231 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 9232 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 9233 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 9234 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 9235 |     ac_header_preproc=yes | 
 | 9236 |     ;; | 
 | 9237 |   no:yes:* ) | 
 | 9238 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 9239 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 9240 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 9241 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 9242 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 9243 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 9244 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 9245 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 9246 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 9247 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 9248 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 9249 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 9250 |     ( | 
 | 9251 |       cat <<\_ASBOX | 
 | 9252 | ## ----------------------------------- ## | 
 | 9253 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 9254 | ## ----------------------------------- ## | 
 | 9255 | _ASBOX | 
 | 9256 |     ) | | 
 | 9257 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 9258 |     ;; | 
 | 9259 | esac | 
 | 9260 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9261 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 9262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 9263 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9264 | else | 
 | 9265 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 9266 | fi | 
 | 9267 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 9268 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 9269 |  | 
 | 9270 | fi | 
 | 9271 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 9272 |   cat >>confdefs.h <<_ACEOF | 
 | 9273 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 9274 | _ACEOF | 
 | 9275 |  break | 
 | 9276 | fi | 
 | 9277 |  | 
 | 9278 | done | 
 | 9279 |  | 
 | 9280 |  | 
 | 9281 |  | 
 | 9282 |  | 
 | 9283 | for ac_func in strchr index | 
 | 9284 | do | 
 | 9285 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9286 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9287 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9288 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9289 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9290 | else | 
 | 9291 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9292 | /* confdefs.h.  */ | 
 | 9293 | _ACEOF | 
 | 9294 | cat confdefs.h >>conftest.$ac_ext | 
 | 9295 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9296 | /* end confdefs.h.  */ | 
 | 9297 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9298 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9299 | #define $ac_func innocuous_$ac_func | 
 | 9300 |  | 
 | 9301 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9302 |     which can conflict with char $ac_func (); below. | 
 | 9303 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9304 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9305 |  | 
 | 9306 | #ifdef __STDC__ | 
 | 9307 | # include <limits.h> | 
 | 9308 | #else | 
 | 9309 | # include <assert.h> | 
 | 9310 | #endif | 
 | 9311 |  | 
 | 9312 | #undef $ac_func | 
 | 9313 |  | 
 | 9314 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9315 | #ifdef __cplusplus | 
 | 9316 | extern "C" | 
 | 9317 | { | 
 | 9318 | #endif | 
 | 9319 | /* We use char because int might match the return type of a gcc2 | 
 | 9320 |    builtin and then its argument prototype would still apply.  */ | 
 | 9321 | char $ac_func (); | 
 | 9322 | /* The GNU C library defines this for functions which it implements | 
 | 9323 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9324 |     something starting with __ and the normal name is an alias.  */ | 
 | 9325 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9326 | choke me | 
 | 9327 | #else | 
 | 9328 | char (*f) () = $ac_func; | 
 | 9329 | #endif | 
 | 9330 | #ifdef __cplusplus | 
 | 9331 | } | 
 | 9332 | #endif | 
 | 9333 |  | 
 | 9334 | int | 
 | 9335 | main () | 
 | 9336 | { | 
 | 9337 | return f != $ac_func; | 
 | 9338 |   ; | 
 | 9339 |   return 0; | 
 | 9340 | } | 
 | 9341 | _ACEOF | 
 | 9342 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9344 |   (eval $ac_link) 2>conftest.er1 | 
 | 9345 |   ac_status=$? | 
 | 9346 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9347 |   rm -f conftest.er1 | 
 | 9348 |   cat conftest.err >&5 | 
 | 9349 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9350 |   (exit $ac_status); } && | 
 | 9351 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9352 | 			 || test ! -s conftest.err' | 
 | 9353 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9354 |   (eval $ac_try) 2>&5 | 
 | 9355 |   ac_status=$? | 
 | 9356 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9357 |   (exit $ac_status); }; } && | 
 | 9358 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9359 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9360 |   (eval $ac_try) 2>&5 | 
 | 9361 |   ac_status=$? | 
 | 9362 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9363 |   (exit $ac_status); }; }; then | 
 | 9364 |   eval "$as_ac_var=yes" | 
 | 9365 | else | 
 | 9366 |   echo "$as_me: failed program was:" >&5 | 
 | 9367 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9368 |  | 
 | 9369 | eval "$as_ac_var=no" | 
 | 9370 | fi | 
 | 9371 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9372 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9373 | fi | 
 | 9374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9375 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9376 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9377 |   cat >>confdefs.h <<_ACEOF | 
 | 9378 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9379 | _ACEOF | 
 | 9380 |  break | 
 | 9381 | fi | 
 | 9382 | done | 
 | 9383 |  | 
 | 9384 |  | 
 | 9385 |  | 
 | 9386 | for ac_func in strrchr rindex | 
 | 9387 | do | 
 | 9388 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9389 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9390 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9391 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9392 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9393 | else | 
 | 9394 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9395 | /* confdefs.h.  */ | 
 | 9396 | _ACEOF | 
 | 9397 | cat confdefs.h >>conftest.$ac_ext | 
 | 9398 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9399 | /* end confdefs.h.  */ | 
 | 9400 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9401 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9402 | #define $ac_func innocuous_$ac_func | 
 | 9403 |  | 
 | 9404 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9405 |     which can conflict with char $ac_func (); below. | 
 | 9406 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9407 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9408 |  | 
 | 9409 | #ifdef __STDC__ | 
 | 9410 | # include <limits.h> | 
 | 9411 | #else | 
 | 9412 | # include <assert.h> | 
 | 9413 | #endif | 
 | 9414 |  | 
 | 9415 | #undef $ac_func | 
 | 9416 |  | 
 | 9417 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9418 | #ifdef __cplusplus | 
 | 9419 | extern "C" | 
 | 9420 | { | 
 | 9421 | #endif | 
 | 9422 | /* We use char because int might match the return type of a gcc2 | 
 | 9423 |    builtin and then its argument prototype would still apply.  */ | 
 | 9424 | char $ac_func (); | 
 | 9425 | /* The GNU C library defines this for functions which it implements | 
 | 9426 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9427 |     something starting with __ and the normal name is an alias.  */ | 
 | 9428 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9429 | choke me | 
 | 9430 | #else | 
 | 9431 | char (*f) () = $ac_func; | 
 | 9432 | #endif | 
 | 9433 | #ifdef __cplusplus | 
 | 9434 | } | 
 | 9435 | #endif | 
 | 9436 |  | 
 | 9437 | int | 
 | 9438 | main () | 
 | 9439 | { | 
 | 9440 | return f != $ac_func; | 
 | 9441 |   ; | 
 | 9442 |   return 0; | 
 | 9443 | } | 
 | 9444 | _ACEOF | 
 | 9445 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9447 |   (eval $ac_link) 2>conftest.er1 | 
 | 9448 |   ac_status=$? | 
 | 9449 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9450 |   rm -f conftest.er1 | 
 | 9451 |   cat conftest.err >&5 | 
 | 9452 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9453 |   (exit $ac_status); } && | 
 | 9454 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9455 | 			 || test ! -s conftest.err' | 
 | 9456 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9457 |   (eval $ac_try) 2>&5 | 
 | 9458 |   ac_status=$? | 
 | 9459 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9460 |   (exit $ac_status); }; } && | 
 | 9461 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9462 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9463 |   (eval $ac_try) 2>&5 | 
 | 9464 |   ac_status=$? | 
 | 9465 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9466 |   (exit $ac_status); }; }; then | 
 | 9467 |   eval "$as_ac_var=yes" | 
 | 9468 | else | 
 | 9469 |   echo "$as_me: failed program was:" >&5 | 
 | 9470 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9471 |  | 
 | 9472 | eval "$as_ac_var=no" | 
 | 9473 | fi | 
 | 9474 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9475 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9476 | fi | 
 | 9477 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9478 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9479 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9480 |   cat >>confdefs.h <<_ACEOF | 
 | 9481 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9482 | _ACEOF | 
 | 9483 |  break | 
 | 9484 | fi | 
 | 9485 | done | 
 | 9486 |  | 
 | 9487 |  | 
 | 9488 |  | 
 | 9489 | for ac_func in memcpy bcopy | 
 | 9490 | do | 
 | 9491 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9492 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9493 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9494 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9495 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9496 | else | 
 | 9497 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9498 | /* confdefs.h.  */ | 
 | 9499 | _ACEOF | 
 | 9500 | cat confdefs.h >>conftest.$ac_ext | 
 | 9501 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9502 | /* end confdefs.h.  */ | 
 | 9503 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9504 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9505 | #define $ac_func innocuous_$ac_func | 
 | 9506 |  | 
 | 9507 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9508 |     which can conflict with char $ac_func (); below. | 
 | 9509 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9510 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9511 |  | 
 | 9512 | #ifdef __STDC__ | 
 | 9513 | # include <limits.h> | 
 | 9514 | #else | 
 | 9515 | # include <assert.h> | 
 | 9516 | #endif | 
 | 9517 |  | 
 | 9518 | #undef $ac_func | 
 | 9519 |  | 
 | 9520 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9521 | #ifdef __cplusplus | 
 | 9522 | extern "C" | 
 | 9523 | { | 
 | 9524 | #endif | 
 | 9525 | /* We use char because int might match the return type of a gcc2 | 
 | 9526 |    builtin and then its argument prototype would still apply.  */ | 
 | 9527 | char $ac_func (); | 
 | 9528 | /* The GNU C library defines this for functions which it implements | 
 | 9529 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9530 |     something starting with __ and the normal name is an alias.  */ | 
 | 9531 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9532 | choke me | 
 | 9533 | #else | 
 | 9534 | char (*f) () = $ac_func; | 
 | 9535 | #endif | 
 | 9536 | #ifdef __cplusplus | 
 | 9537 | } | 
 | 9538 | #endif | 
 | 9539 |  | 
 | 9540 | int | 
 | 9541 | main () | 
 | 9542 | { | 
 | 9543 | return f != $ac_func; | 
 | 9544 |   ; | 
 | 9545 |   return 0; | 
 | 9546 | } | 
 | 9547 | _ACEOF | 
 | 9548 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9550 |   (eval $ac_link) 2>conftest.er1 | 
 | 9551 |   ac_status=$? | 
 | 9552 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9553 |   rm -f conftest.er1 | 
 | 9554 |   cat conftest.err >&5 | 
 | 9555 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9556 |   (exit $ac_status); } && | 
 | 9557 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9558 | 			 || test ! -s conftest.err' | 
 | 9559 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9560 |   (eval $ac_try) 2>&5 | 
 | 9561 |   ac_status=$? | 
 | 9562 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9563 |   (exit $ac_status); }; } && | 
 | 9564 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9565 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9566 |   (eval $ac_try) 2>&5 | 
 | 9567 |   ac_status=$? | 
 | 9568 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9569 |   (exit $ac_status); }; }; then | 
 | 9570 |   eval "$as_ac_var=yes" | 
 | 9571 | else | 
 | 9572 |   echo "$as_me: failed program was:" >&5 | 
 | 9573 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9574 |  | 
 | 9575 | eval "$as_ac_var=no" | 
 | 9576 | fi | 
 | 9577 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9578 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9579 | fi | 
 | 9580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9581 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9582 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9583 |   cat >>confdefs.h <<_ACEOF | 
 | 9584 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9585 | _ACEOF | 
 | 9586 |  break | 
 | 9587 | fi | 
 | 9588 | done | 
 | 9589 |  | 
 | 9590 |  | 
 | 9591 |  | 
 | 9592 | for ac_func in memmove strcmp | 
 | 9593 | do | 
 | 9594 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9595 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9596 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9597 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9598 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9599 | else | 
 | 9600 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9601 | /* confdefs.h.  */ | 
 | 9602 | _ACEOF | 
 | 9603 | cat confdefs.h >>conftest.$ac_ext | 
 | 9604 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9605 | /* end confdefs.h.  */ | 
 | 9606 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9607 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9608 | #define $ac_func innocuous_$ac_func | 
 | 9609 |  | 
 | 9610 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9611 |     which can conflict with char $ac_func (); below. | 
 | 9612 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9613 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9614 |  | 
 | 9615 | #ifdef __STDC__ | 
 | 9616 | # include <limits.h> | 
 | 9617 | #else | 
 | 9618 | # include <assert.h> | 
 | 9619 | #endif | 
 | 9620 |  | 
 | 9621 | #undef $ac_func | 
 | 9622 |  | 
 | 9623 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9624 | #ifdef __cplusplus | 
 | 9625 | extern "C" | 
 | 9626 | { | 
 | 9627 | #endif | 
 | 9628 | /* We use char because int might match the return type of a gcc2 | 
 | 9629 |    builtin and then its argument prototype would still apply.  */ | 
 | 9630 | char $ac_func (); | 
 | 9631 | /* The GNU C library defines this for functions which it implements | 
 | 9632 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9633 |     something starting with __ and the normal name is an alias.  */ | 
 | 9634 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9635 | choke me | 
 | 9636 | #else | 
 | 9637 | char (*f) () = $ac_func; | 
 | 9638 | #endif | 
 | 9639 | #ifdef __cplusplus | 
 | 9640 | } | 
 | 9641 | #endif | 
 | 9642 |  | 
 | 9643 | int | 
 | 9644 | main () | 
 | 9645 | { | 
 | 9646 | return f != $ac_func; | 
 | 9647 |   ; | 
 | 9648 |   return 0; | 
 | 9649 | } | 
 | 9650 | _ACEOF | 
 | 9651 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9653 |   (eval $ac_link) 2>conftest.er1 | 
 | 9654 |   ac_status=$? | 
 | 9655 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9656 |   rm -f conftest.er1 | 
 | 9657 |   cat conftest.err >&5 | 
 | 9658 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9659 |   (exit $ac_status); } && | 
 | 9660 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9661 | 			 || test ! -s conftest.err' | 
 | 9662 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9663 |   (eval $ac_try) 2>&5 | 
 | 9664 |   ac_status=$? | 
 | 9665 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9666 |   (exit $ac_status); }; } && | 
 | 9667 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9668 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9669 |   (eval $ac_try) 2>&5 | 
 | 9670 |   ac_status=$? | 
 | 9671 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9672 |   (exit $ac_status); }; }; then | 
 | 9673 |   eval "$as_ac_var=yes" | 
 | 9674 | else | 
 | 9675 |   echo "$as_me: failed program was:" >&5 | 
 | 9676 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9677 |  | 
 | 9678 | eval "$as_ac_var=no" | 
 | 9679 | fi | 
 | 9680 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9681 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9682 | fi | 
 | 9683 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9684 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9685 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9686 |   cat >>confdefs.h <<_ACEOF | 
 | 9687 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9688 | _ACEOF | 
 | 9689 |  | 
 | 9690 | fi | 
 | 9691 | done | 
 | 9692 |  | 
 | 9693 |  | 
 | 9694 |  | 
 | 9695 |  | 
 | 9696 | for ac_func in closedir opendir readdir | 
 | 9697 | do | 
 | 9698 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 9699 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 9700 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 9701 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 9702 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9703 | else | 
 | 9704 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 9705 | /* confdefs.h.  */ | 
 | 9706 | _ACEOF | 
 | 9707 | cat confdefs.h >>conftest.$ac_ext | 
 | 9708 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9709 | /* end confdefs.h.  */ | 
 | 9710 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 9711 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 9712 | #define $ac_func innocuous_$ac_func | 
 | 9713 |  | 
 | 9714 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 9715 |     which can conflict with char $ac_func (); below. | 
 | 9716 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 9717 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 9718 |  | 
 | 9719 | #ifdef __STDC__ | 
 | 9720 | # include <limits.h> | 
 | 9721 | #else | 
 | 9722 | # include <assert.h> | 
 | 9723 | #endif | 
 | 9724 |  | 
 | 9725 | #undef $ac_func | 
 | 9726 |  | 
 | 9727 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 9728 | #ifdef __cplusplus | 
 | 9729 | extern "C" | 
 | 9730 | { | 
 | 9731 | #endif | 
 | 9732 | /* We use char because int might match the return type of a gcc2 | 
 | 9733 |    builtin and then its argument prototype would still apply.  */ | 
 | 9734 | char $ac_func (); | 
 | 9735 | /* The GNU C library defines this for functions which it implements | 
 | 9736 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 9737 |     something starting with __ and the normal name is an alias.  */ | 
 | 9738 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 9739 | choke me | 
 | 9740 | #else | 
 | 9741 | char (*f) () = $ac_func; | 
 | 9742 | #endif | 
 | 9743 | #ifdef __cplusplus | 
 | 9744 | } | 
 | 9745 | #endif | 
 | 9746 |  | 
 | 9747 | int | 
 | 9748 | main () | 
 | 9749 | { | 
 | 9750 | return f != $ac_func; | 
 | 9751 |   ; | 
 | 9752 |   return 0; | 
 | 9753 | } | 
 | 9754 | _ACEOF | 
 | 9755 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9757 |   (eval $ac_link) 2>conftest.er1 | 
 | 9758 |   ac_status=$? | 
 | 9759 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9760 |   rm -f conftest.er1 | 
 | 9761 |   cat conftest.err >&5 | 
 | 9762 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9763 |   (exit $ac_status); } && | 
 | 9764 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 9765 | 			 || test ! -s conftest.err' | 
 | 9766 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9767 |   (eval $ac_try) 2>&5 | 
 | 9768 |   ac_status=$? | 
 | 9769 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9770 |   (exit $ac_status); }; } && | 
 | 9771 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9772 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9773 |   (eval $ac_try) 2>&5 | 
 | 9774 |   ac_status=$? | 
 | 9775 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9776 |   (exit $ac_status); }; }; then | 
 | 9777 |   eval "$as_ac_var=yes" | 
 | 9778 | else | 
 | 9779 |   echo "$as_me: failed program was:" >&5 | 
 | 9780 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9781 |  | 
 | 9782 | eval "$as_ac_var=no" | 
 | 9783 | fi | 
 | 9784 | rm -f conftest.err conftest.$ac_objext \ | 
 | 9785 |       conftest$ac_exeext conftest.$ac_ext | 
 | 9786 | fi | 
 | 9787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 9788 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 9789 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 9790 |   cat >>confdefs.h <<_ACEOF | 
 | 9791 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 9792 | _ACEOF | 
 | 9793 |  | 
 | 9794 | fi | 
 | 9795 | done | 
 | 9796 |  | 
 | 9797 |  | 
 | 9798 | # Check whether --enable-shared or --disable-shared was given. | 
 | 9799 | if test "${enable_shared+set}" = set; then | 
 | 9800 |   enableval="$enable_shared" | 
 | 9801 |   p=${PACKAGE-default} | 
 | 9802 |     case $enableval in | 
 | 9803 |     yes) enable_shared=yes ;; | 
 | 9804 |     no) enable_shared=no ;; | 
 | 9805 |     *) | 
 | 9806 |       enable_shared=no | 
 | 9807 |       # Look at the argument we got.  We use all the common list separators. | 
 | 9808 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 9809 |       for pkg in $enableval; do | 
 | 9810 | 	IFS="$lt_save_ifs" | 
 | 9811 | 	if test "X$pkg" = "X$p"; then | 
 | 9812 | 	  enable_shared=yes | 
 | 9813 | 	fi | 
 | 9814 |       done | 
 | 9815 |       IFS="$lt_save_ifs" | 
 | 9816 |       ;; | 
 | 9817 |     esac | 
 | 9818 | else | 
 | 9819 |   enable_shared=yes | 
 | 9820 | fi; | 
 | 9821 |  | 
 | 9822 | # Check whether --enable-static or --disable-static was given. | 
 | 9823 | if test "${enable_static+set}" = set; then | 
 | 9824 |   enableval="$enable_static" | 
 | 9825 |   p=${PACKAGE-default} | 
 | 9826 |     case $enableval in | 
 | 9827 |     yes) enable_static=yes ;; | 
 | 9828 |     no) enable_static=no ;; | 
 | 9829 |     *) | 
 | 9830 |      enable_static=no | 
 | 9831 |       # Look at the argument we got.  We use all the common list separators. | 
 | 9832 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 9833 |       for pkg in $enableval; do | 
 | 9834 | 	IFS="$lt_save_ifs" | 
 | 9835 | 	if test "X$pkg" = "X$p"; then | 
 | 9836 | 	  enable_static=yes | 
 | 9837 | 	fi | 
 | 9838 |       done | 
 | 9839 |       IFS="$lt_save_ifs" | 
 | 9840 |       ;; | 
 | 9841 |     esac | 
 | 9842 | else | 
 | 9843 |   enable_static=yes | 
 | 9844 | fi; | 
 | 9845 |  | 
 | 9846 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
 | 9847 | if test "${enable_fast_install+set}" = set; then | 
 | 9848 |   enableval="$enable_fast_install" | 
 | 9849 |   p=${PACKAGE-default} | 
 | 9850 |     case $enableval in | 
 | 9851 |     yes) enable_fast_install=yes ;; | 
 | 9852 |     no) enable_fast_install=no ;; | 
 | 9853 |     *) | 
 | 9854 |       enable_fast_install=no | 
 | 9855 |       # Look at the argument we got.  We use all the common list separators. | 
 | 9856 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 9857 |       for pkg in $enableval; do | 
 | 9858 | 	IFS="$lt_save_ifs" | 
 | 9859 | 	if test "X$pkg" = "X$p"; then | 
 | 9860 | 	  enable_fast_install=yes | 
 | 9861 | 	fi | 
 | 9862 |       done | 
 | 9863 |       IFS="$lt_save_ifs" | 
 | 9864 |       ;; | 
 | 9865 |     esac | 
 | 9866 | else | 
 | 9867 |   enable_fast_install=yes | 
 | 9868 | fi; | 
 | 9869 |  | 
 | 9870 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
 | 9871 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | 
 | 9872 | if test "${lt_cv_path_SED+set}" = set; then | 
 | 9873 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9874 | else | 
 | 9875 |   # Loop through the user's path and test for sed and gsed. | 
 | 9876 | # Then use that list of sed's as ones to test for truncation. | 
 | 9877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9878 | for as_dir in $PATH | 
 | 9879 | do | 
 | 9880 |   IFS=$as_save_IFS | 
 | 9881 |   test -z "$as_dir" && as_dir=. | 
 | 9882 |   for lt_ac_prog in sed gsed; do | 
 | 9883 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9884 |       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
 | 9885 |         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
 | 9886 |       fi | 
 | 9887 |     done | 
 | 9888 |   done | 
 | 9889 | done | 
 | 9890 | lt_ac_max=0 | 
 | 9891 | lt_ac_count=0 | 
 | 9892 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
 | 9893 | # along with /bin/sed that truncates output. | 
 | 9894 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
 | 9895 |   test ! -f $lt_ac_sed && break | 
 | 9896 |   cat /dev/null > conftest.in | 
 | 9897 |   lt_ac_count=0 | 
 | 9898 |   echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
 | 9899 |   # Check for GNU sed and select it if it is found. | 
 | 9900 |   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
 | 9901 |     lt_cv_path_SED=$lt_ac_sed | 
 | 9902 |     break | 
 | 9903 |   fi | 
 | 9904 |   while true; do | 
 | 9905 |     cat conftest.in conftest.in >conftest.tmp | 
 | 9906 |     mv conftest.tmp conftest.in | 
 | 9907 |     cp conftest.in conftest.nl | 
 | 9908 |     echo >>conftest.nl | 
 | 9909 |     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
 | 9910 |     cmp -s conftest.out conftest.nl || break | 
 | 9911 |     # 10000 chars as input seems more than enough | 
 | 9912 |     test $lt_ac_count -gt 10 && break | 
 | 9913 |     lt_ac_count=`expr $lt_ac_count + 1` | 
 | 9914 |     if test $lt_ac_count -gt $lt_ac_max; then | 
 | 9915 |       lt_ac_max=$lt_ac_count | 
 | 9916 |       lt_cv_path_SED=$lt_ac_sed | 
 | 9917 |     fi | 
 | 9918 |   done | 
 | 9919 | done | 
 | 9920 |  | 
 | 9921 | fi | 
 | 9922 |  | 
 | 9923 | SED=$lt_cv_path_SED | 
 | 9924 | echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 9925 | echo "${ECHO_T}$SED" >&6 | 
 | 9926 |  | 
 | 9927 |  | 
 | 9928 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 9929 | if test "${with_gnu_ld+set}" = set; then | 
 | 9930 |   withval="$with_gnu_ld" | 
 | 9931 |   test "$withval" = no || with_gnu_ld=yes | 
 | 9932 | else | 
 | 9933 |   with_gnu_ld=no | 
 | 9934 | fi; | 
 | 9935 | ac_prog=ld | 
 | 9936 | if test "$GCC" = yes; then | 
 | 9937 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 9938 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 9939 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
 | 9940 |   case $host in | 
 | 9941 |   *-*-mingw*) | 
 | 9942 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 9943 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 9944 |   *) | 
 | 9945 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 9946 |   esac | 
 | 9947 |   case $ac_prog in | 
 | 9948 |     # Accept absolute paths. | 
 | 9949 |     [\\/]* | ?:[\\/]*) | 
 | 9950 |       re_direlt='/[^/][^/]*/\.\./' | 
 | 9951 |       # Canonicalize the pathname of ld | 
 | 9952 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 9953 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 9954 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 9955 |       done | 
 | 9956 |       test -z "$LD" && LD="$ac_prog" | 
 | 9957 |       ;; | 
 | 9958 |   "") | 
 | 9959 |     # If it fails, then pretend we aren't using GCC. | 
 | 9960 |     ac_prog=ld | 
 | 9961 |     ;; | 
 | 9962 |   *) | 
 | 9963 |     # If it is relative, then search for the first ld in PATH. | 
 | 9964 |     with_gnu_ld=unknown | 
 | 9965 |     ;; | 
 | 9966 |   esac | 
 | 9967 | elif test "$with_gnu_ld" = yes; then | 
 | 9968 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 9969 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 9970 | else | 
 | 9971 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 9972 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 9973 | fi | 
 | 9974 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 9975 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9976 | else | 
 | 9977 |   if test -z "$LD"; then | 
 | 9978 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 9979 |   for ac_dir in $PATH; do | 
 | 9980 |     IFS="$lt_save_ifs" | 
 | 9981 |     test -z "$ac_dir" && ac_dir=. | 
 | 9982 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 9983 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 9984 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 9985 |       # but apparently some GNU ld's only accept -v. | 
 | 9986 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 9987 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 9988 |       *GNU* | *'with BFD'*) | 
 | 9989 | 	test "$with_gnu_ld" != no && break | 
 | 9990 | 	;; | 
 | 9991 |       *) | 
 | 9992 | 	test "$with_gnu_ld" != yes && break | 
 | 9993 | 	;; | 
 | 9994 |       esac | 
 | 9995 |     fi | 
 | 9996 |   done | 
 | 9997 |   IFS="$lt_save_ifs" | 
 | 9998 | else | 
 | 9999 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 10000 | fi | 
 | 10001 | fi | 
 | 10002 |  | 
 | 10003 | LD="$lt_cv_path_LD" | 
 | 10004 | if test -n "$LD"; then | 
 | 10005 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 10006 | echo "${ECHO_T}$LD" >&6 | 
 | 10007 | else | 
 | 10008 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 10009 | echo "${ECHO_T}no" >&6 | 
 | 10010 | fi | 
 | 10011 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 10012 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 10013 |    { (exit 1); exit 1; }; } | 
 | 10014 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 10015 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 10016 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 10017 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10018 | else | 
 | 10019 |   # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
 | 10020 | case `$LD -v 2>&1 </dev/null` in | 
 | 10021 | *GNU* | *'with BFD'*) | 
 | 10022 |   lt_cv_prog_gnu_ld=yes | 
 | 10023 |   ;; | 
 | 10024 | *) | 
 | 10025 |   lt_cv_prog_gnu_ld=no | 
 | 10026 |   ;; | 
 | 10027 | esac | 
 | 10028 | fi | 
 | 10029 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 10030 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 10031 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 10032 |  | 
 | 10033 |  | 
 | 10034 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
 | 10035 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 
 | 10036 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
 | 10037 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10038 | else | 
 | 10039 |   lt_cv_ld_reload_flag='-r' | 
 | 10040 | fi | 
 | 10041 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
 | 10042 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 
 | 10043 | reload_flag=$lt_cv_ld_reload_flag | 
 | 10044 | case $reload_flag in | 
 | 10045 | "" | " "*) ;; | 
 | 10046 | *) reload_flag=" $reload_flag" ;; | 
 | 10047 | esac | 
 | 10048 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 10049 | case $host_os in | 
 | 10050 |   darwin*) | 
 | 10051 |     if test "$GCC" = yes; then | 
 | 10052 |       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | 
 | 10053 |     else | 
 | 10054 |       reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 10055 |     fi | 
 | 10056 |     ;; | 
 | 10057 | esac | 
 | 10058 |  | 
 | 10059 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
 | 10060 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 
 | 10061 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
 | 10062 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10063 | else | 
 | 10064 |   lt_cv_file_magic_cmd='$MAGIC_CMD' | 
 | 10065 | lt_cv_file_magic_test_file= | 
 | 10066 | lt_cv_deplibs_check_method='unknown' | 
 | 10067 | # Need to set the preceding variable on all platforms that support | 
 | 10068 | # interlibrary dependencies. | 
 | 10069 | # 'none' -- dependencies not supported. | 
 | 10070 | # `unknown' -- same as none, but documents that we really don't know. | 
 | 10071 | # 'pass_all' -- all dependencies passed with no checks. | 
 | 10072 | # 'test_compile' -- check by making test program. | 
 | 10073 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
 | 10074 | # which responds to the $file_magic_cmd with a given extended regex. | 
 | 10075 | # If you have `file' or equivalent on your system and you're not sure | 
 | 10076 | # whether `pass_all' will *always* work, you probably want this one. | 
 | 10077 |  | 
 | 10078 | case $host_os in | 
 | 10079 | aix4* | aix5*) | 
 | 10080 |   lt_cv_deplibs_check_method=pass_all | 
 | 10081 |   ;; | 
 | 10082 |  | 
 | 10083 | beos*) | 
 | 10084 |   lt_cv_deplibs_check_method=pass_all | 
 | 10085 |   ;; | 
 | 10086 |  | 
 | 10087 | bsdi[45]*) | 
 | 10088 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
 | 10089 |   lt_cv_file_magic_cmd='/usr/bin/file -L' | 
 | 10090 |   lt_cv_file_magic_test_file=/shlib/libc.so | 
 | 10091 |   ;; | 
 | 10092 |  | 
 | 10093 | cygwin*) | 
 | 10094 |   # func_win32_libid is a shell function defined in ltmain.sh | 
 | 10095 |   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
 | 10096 |   lt_cv_file_magic_cmd='func_win32_libid' | 
 | 10097 |   ;; | 
 | 10098 |  | 
 | 10099 | mingw* | pw32*) | 
 | 10100 |   # Base MSYS/MinGW do not provide the 'file' command needed by | 
 | 10101 |   # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 
 | 10102 |   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
 | 10103 |   lt_cv_file_magic_cmd='$OBJDUMP -f' | 
 | 10104 |   ;; | 
 | 10105 |  | 
 | 10106 | darwin* | rhapsody*) | 
 | 10107 |   lt_cv_deplibs_check_method=pass_all | 
 | 10108 |   ;; | 
 | 10109 |  | 
 | 10110 | freebsd* | kfreebsd*-gnu) | 
 | 10111 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 10112 |     case $host_cpu in | 
 | 10113 |     i*86 ) | 
 | 10114 |       # Not sure whether the presence of OpenBSD here was a mistake. | 
 | 10115 |       # Let's accept both of them until this is cleared up. | 
 | 10116 |       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
 | 10117 |       lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10118 |       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
 | 10119 |       ;; | 
 | 10120 |     esac | 
 | 10121 |   else | 
 | 10122 |     lt_cv_deplibs_check_method=pass_all | 
 | 10123 |   fi | 
 | 10124 |   ;; | 
 | 10125 |  | 
 | 10126 | gnu*) | 
 | 10127 |   lt_cv_deplibs_check_method=pass_all | 
 | 10128 |   ;; | 
 | 10129 |  | 
 | 10130 | hpux10.20* | hpux11*) | 
 | 10131 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10132 |   case "$host_cpu" in | 
 | 10133 |   ia64*) | 
 | 10134 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
 | 10135 |     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
 | 10136 |     ;; | 
 | 10137 |   hppa*64*) | 
 | 10138 |     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]' | 
 | 10139 |     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
 | 10140 |     ;; | 
 | 10141 |   *) | 
 | 10142 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
 | 10143 |     lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
 | 10144 |     ;; | 
 | 10145 |   esac | 
 | 10146 |   ;; | 
 | 10147 |  | 
 | 10148 | irix5* | irix6* | nonstopux*) | 
 | 10149 |   case $LD in | 
 | 10150 |   *-32|*"-32 ") libmagic=32-bit;; | 
 | 10151 |   *-n32|*"-n32 ") libmagic=N32;; | 
 | 10152 |   *-64|*"-64 ") libmagic=64-bit;; | 
 | 10153 |   *) libmagic=never-match;; | 
 | 10154 |   esac | 
 | 10155 |   lt_cv_deplibs_check_method=pass_all | 
 | 10156 |   ;; | 
 | 10157 |  | 
 | 10158 | # This must be Linux ELF. | 
 | 10159 | linux*) | 
 | 10160 |   lt_cv_deplibs_check_method=pass_all | 
 | 10161 |   ;; | 
 | 10162 |  | 
 | 10163 | netbsd*) | 
 | 10164 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 10165 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
 | 10166 |   else | 
 | 10167 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
 | 10168 |   fi | 
 | 10169 |   ;; | 
 | 10170 |  | 
 | 10171 | newos6*) | 
 | 10172 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
 | 10173 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10174 |   lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
 | 10175 |   ;; | 
 | 10176 |  | 
 | 10177 | nto-qnx*) | 
 | 10178 |   lt_cv_deplibs_check_method=unknown | 
 | 10179 |   ;; | 
 | 10180 |  | 
 | 10181 | openbsd*) | 
 | 10182 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 10183 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
 | 10184 |   else | 
 | 10185 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
 | 10186 |   fi | 
 | 10187 |   ;; | 
 | 10188 |  | 
 | 10189 | osf3* | osf4* | osf5*) | 
 | 10190 |   lt_cv_deplibs_check_method=pass_all | 
 | 10191 |   ;; | 
 | 10192 |  | 
 | 10193 | sco3.2v5*) | 
 | 10194 |   lt_cv_deplibs_check_method=pass_all | 
 | 10195 |   ;; | 
 | 10196 |  | 
 | 10197 | solaris*) | 
 | 10198 |   lt_cv_deplibs_check_method=pass_all | 
 | 10199 |   ;; | 
 | 10200 |  | 
 | 10201 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 10202 |   case $host_vendor in | 
 | 10203 |   motorola) | 
 | 10204 |     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]' | 
 | 10205 |     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
 | 10206 |     ;; | 
 | 10207 |   ncr) | 
 | 10208 |     lt_cv_deplibs_check_method=pass_all | 
 | 10209 |     ;; | 
 | 10210 |   sequent) | 
 | 10211 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 10212 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
 | 10213 |     ;; | 
 | 10214 |   sni) | 
 | 10215 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 10216 |     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
 | 10217 |     lt_cv_file_magic_test_file=/lib/libc.so | 
 | 10218 |     ;; | 
 | 10219 |   siemens) | 
 | 10220 |     lt_cv_deplibs_check_method=pass_all | 
 | 10221 |     ;; | 
 | 10222 |   esac | 
 | 10223 |   ;; | 
 | 10224 |  | 
 | 10225 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 
 | 10226 |   lt_cv_deplibs_check_method=pass_all | 
 | 10227 |   ;; | 
 | 10228 | esac | 
 | 10229 |  | 
 | 10230 | fi | 
 | 10231 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
 | 10232 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 
 | 10233 | file_magic_cmd=$lt_cv_file_magic_cmd | 
 | 10234 | deplibs_check_method=$lt_cv_deplibs_check_method | 
 | 10235 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
 | 10236 |  | 
 | 10237 |  | 
 | 10238 |  | 
 | 10239 | # If no C compiler was specified, use CC. | 
 | 10240 | LTCC=${LTCC-"$CC"} | 
 | 10241 |  | 
 | 10242 | # Allow CC to be a program name with arguments. | 
 | 10243 | compiler=$CC | 
 | 10244 |  | 
 | 10245 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 10246 | if test "${enable_libtool_lock+set}" = set; then | 
 | 10247 |   enableval="$enable_libtool_lock" | 
 | 10248 |  | 
 | 10249 | fi; | 
 | 10250 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 10251 |  | 
 | 10252 | # Some flags need to be propagated to the compiler or linker for good | 
 | 10253 | # libtool support. | 
 | 10254 | case $host in | 
 | 10255 | ia64-*-hpux*) | 
 | 10256 |   # Find out which ABI we are using. | 
 | 10257 |   echo 'int i;' > conftest.$ac_ext | 
 | 10258 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10259 |   (eval $ac_compile) 2>&5 | 
 | 10260 |   ac_status=$? | 
 | 10261 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10262 |   (exit $ac_status); }; then | 
 | 10263 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 10264 |     *ELF-32*) | 
 | 10265 |       HPUX_IA64_MODE="32" | 
 | 10266 |       ;; | 
 | 10267 |     *ELF-64*) | 
 | 10268 |       HPUX_IA64_MODE="64" | 
 | 10269 |       ;; | 
 | 10270 |     esac | 
 | 10271 |   fi | 
 | 10272 |   rm -rf conftest* | 
 | 10273 |   ;; | 
 | 10274 | *-*-irix6*) | 
 | 10275 |   # Find out which ABI we are using. | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 10276 |   echo '#line 10276 "configure"' > conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10277 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10278 |   (eval $ac_compile) 2>&5 | 
 | 10279 |   ac_status=$? | 
 | 10280 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10281 |   (exit $ac_status); }; then | 
 | 10282 |    if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 10283 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 10284 |     *32-bit*) | 
 | 10285 |       LD="${LD-ld} -melf32bsmip" | 
 | 10286 |       ;; | 
 | 10287 |     *N32*) | 
 | 10288 |       LD="${LD-ld} -melf32bmipn32" | 
 | 10289 |       ;; | 
 | 10290 |     *64-bit*) | 
 | 10291 |       LD="${LD-ld} -melf64bmip" | 
 | 10292 |       ;; | 
 | 10293 |     esac | 
 | 10294 |    else | 
 | 10295 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 10296 |     *32-bit*) | 
 | 10297 |       LD="${LD-ld} -32" | 
 | 10298 |       ;; | 
 | 10299 |     *N32*) | 
 | 10300 |       LD="${LD-ld} -n32" | 
 | 10301 |       ;; | 
 | 10302 |     *64-bit*) | 
 | 10303 |       LD="${LD-ld} -64" | 
 | 10304 |       ;; | 
 | 10305 |     esac | 
 | 10306 |    fi | 
 | 10307 |   fi | 
 | 10308 |   rm -rf conftest* | 
 | 10309 |   ;; | 
 | 10310 |  | 
 | 10311 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
 | 10312 |   # Find out which ABI we are using. | 
 | 10313 |   echo 'int i;' > conftest.$ac_ext | 
 | 10314 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10315 |   (eval $ac_compile) 2>&5 | 
 | 10316 |   ac_status=$? | 
 | 10317 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10318 |   (exit $ac_status); }; then | 
 | 10319 |     case "`/usr/bin/file conftest.o`" in | 
 | 10320 |     *32-bit*) | 
 | 10321 |       case $host in | 
 | 10322 |         x86_64-*linux*) | 
 | 10323 |           LD="${LD-ld} -m elf_i386" | 
 | 10324 |           ;; | 
 | 10325 |         ppc64-*linux*|powerpc64-*linux*) | 
 | 10326 |           LD="${LD-ld} -m elf32ppclinux" | 
 | 10327 |           ;; | 
 | 10328 |         s390x-*linux*) | 
 | 10329 |           LD="${LD-ld} -m elf_s390" | 
 | 10330 |           ;; | 
 | 10331 |         sparc64-*linux*) | 
 | 10332 |           LD="${LD-ld} -m elf32_sparc" | 
 | 10333 |           ;; | 
 | 10334 |       esac | 
 | 10335 |       ;; | 
 | 10336 |     *64-bit*) | 
 | 10337 |       case $host in | 
 | 10338 |         x86_64-*linux*) | 
 | 10339 |           LD="${LD-ld} -m elf_x86_64" | 
 | 10340 |           ;; | 
 | 10341 |         ppc*-*linux*|powerpc*-*linux*) | 
 | 10342 |           LD="${LD-ld} -m elf64ppc" | 
 | 10343 |           ;; | 
 | 10344 |         s390*-*linux*) | 
 | 10345 |           LD="${LD-ld} -m elf64_s390" | 
 | 10346 |           ;; | 
 | 10347 |         sparc*-*linux*) | 
 | 10348 |           LD="${LD-ld} -m elf64_sparc" | 
 | 10349 |           ;; | 
 | 10350 |       esac | 
 | 10351 |       ;; | 
 | 10352 |     esac | 
 | 10353 |   fi | 
 | 10354 |   rm -rf conftest* | 
 | 10355 |   ;; | 
 | 10356 |  | 
 | 10357 | *-*-sco3.2v5*) | 
 | 10358 |   # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
 | 10359 |   SAVE_CFLAGS="$CFLAGS" | 
 | 10360 |   CFLAGS="$CFLAGS -belf" | 
 | 10361 |   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
 | 10362 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 
 | 10363 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
 | 10364 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10365 | else | 
 | 10366 |   ac_ext=c | 
 | 10367 | ac_cpp='$CPP $CPPFLAGS' | 
 | 10368 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10369 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10370 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 10371 |  | 
 | 10372 |      cat >conftest.$ac_ext <<_ACEOF | 
 | 10373 | /* confdefs.h.  */ | 
 | 10374 | _ACEOF | 
 | 10375 | cat confdefs.h >>conftest.$ac_ext | 
 | 10376 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10377 | /* end confdefs.h.  */ | 
 | 10378 |  | 
 | 10379 | _ACEOF | 
 | 10380 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 10381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 10382 |   (eval $ac_link) 2>conftest.er1 | 
 | 10383 |   ac_status=$? | 
 | 10384 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10385 |   rm -f conftest.er1 | 
 | 10386 |   cat conftest.err >&5 | 
 | 10387 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10388 |   (exit $ac_status); } && | 
 | 10389 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 10390 | 			 || test ! -s conftest.err' | 
 | 10391 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10392 |   (eval $ac_try) 2>&5 | 
 | 10393 |   ac_status=$? | 
 | 10394 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10395 |   (exit $ac_status); }; } && | 
 | 10396 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10397 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10398 |   (eval $ac_try) 2>&5 | 
 | 10399 |   ac_status=$? | 
 | 10400 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10401 |   (exit $ac_status); }; }; then | 
 | 10402 |   lt_cv_cc_needs_belf=yes | 
 | 10403 | else | 
 | 10404 |   echo "$as_me: failed program was:" >&5 | 
 | 10405 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10406 |  | 
 | 10407 | lt_cv_cc_needs_belf=no | 
 | 10408 | fi | 
 | 10409 | rm -f conftest.err conftest.$ac_objext \ | 
 | 10410 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10411 |      ac_ext=c | 
 | 10412 | ac_cpp='$CPP $CPPFLAGS' | 
 | 10413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 10416 |  | 
 | 10417 | fi | 
 | 10418 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
 | 10419 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 
 | 10420 |   if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
 | 10421 |     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
 | 10422 |     CFLAGS="$SAVE_CFLAGS" | 
 | 10423 |   fi | 
 | 10424 |   ;; | 
 | 10425 |  | 
 | 10426 | esac | 
 | 10427 |  | 
 | 10428 | need_locks="$enable_libtool_lock" | 
 | 10429 |  | 
 | 10430 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10431 |  | 
 | 10432 |  | 
 | 10433 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 10434 |     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 10435 |     (test "X$CXX" != "Xg++"))) ; then | 
 | 10436 |   ac_ext=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10437 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 10438 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10439 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10440 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 10441 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
 | 10442 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 
 | 10443 | if test -z "$CXXCPP"; then | 
 | 10444 |   if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10445 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10446 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10447 |       # Double quotes because CXXCPP needs to be expanded | 
 | 10448 |     for CXXCPP in "$CXX -E" "/lib/cpp" | 
 | 10449 |     do | 
 | 10450 |       ac_preproc_ok=false | 
 | 10451 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 10452 | do | 
 | 10453 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 10454 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10455 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 10456 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10457 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 10458 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 10459 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10460 | /* confdefs.h.  */ | 
 | 10461 | _ACEOF | 
 | 10462 | cat confdefs.h >>conftest.$ac_ext | 
 | 10463 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10464 | /* end confdefs.h.  */ | 
 | 10465 | #ifdef __STDC__ | 
 | 10466 | # include <limits.h> | 
 | 10467 | #else | 
 | 10468 | # include <assert.h> | 
 | 10469 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10470 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10471 | _ACEOF | 
 | 10472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 10473 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 10474 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10475 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10476 |   rm -f conftest.er1 | 
 | 10477 |   cat conftest.err >&5 | 
 | 10478 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10479 |   (exit $ac_status); } >/dev/null; then | 
 | 10480 |   if test -s conftest.err; then | 
 | 10481 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10482 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10483 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10484 |     ac_cpp_err= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10485 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10486 | else | 
 | 10487 |   ac_cpp_err=yes | 
 | 10488 | fi | 
 | 10489 | if test -z "$ac_cpp_err"; then | 
 | 10490 |   : | 
 | 10491 | else | 
 | 10492 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10493 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10494 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10495 |   # Broken: fails on valid input. | 
 | 10496 | continue | 
 | 10497 | fi | 
 | 10498 | rm -f conftest.err conftest.$ac_ext | 
 | 10499 |  | 
 | 10500 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 10501 |   # can be detected and how. | 
 | 10502 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10503 | /* confdefs.h.  */ | 
 | 10504 | _ACEOF | 
 | 10505 | cat confdefs.h >>conftest.$ac_ext | 
 | 10506 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10507 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10508 | #include <ac_nonexistent.h> | 
 | 10509 | _ACEOF | 
 | 10510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 10511 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 10512 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10513 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10514 |   rm -f conftest.er1 | 
 | 10515 |   cat conftest.err >&5 | 
 | 10516 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10517 |   (exit $ac_status); } >/dev/null; then | 
 | 10518 |   if test -s conftest.err; then | 
 | 10519 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10520 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10521 |   else | 
 | 10522 |     ac_cpp_err= | 
 | 10523 |   fi | 
 | 10524 | else | 
 | 10525 |   ac_cpp_err=yes | 
 | 10526 | fi | 
 | 10527 | if test -z "$ac_cpp_err"; then | 
 | 10528 |   # Broken: success on invalid input. | 
 | 10529 | continue | 
 | 10530 | else | 
 | 10531 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10532 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10533 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10534 |   # Passes both tests. | 
 | 10535 | ac_preproc_ok=: | 
 | 10536 | break | 
 | 10537 | fi | 
 | 10538 | rm -f conftest.err conftest.$ac_ext | 
 | 10539 |  | 
 | 10540 | done | 
 | 10541 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 10542 | rm -f conftest.err conftest.$ac_ext | 
 | 10543 | if $ac_preproc_ok; then | 
 | 10544 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 10545 | fi | 
 | 10546 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10547 |     done | 
 | 10548 |     ac_cv_prog_CXXCPP=$CXXCPP | 
 | 10549 |  | 
 | 10550 | fi | 
 | 10551 |   CXXCPP=$ac_cv_prog_CXXCPP | 
 | 10552 | else | 
 | 10553 |   ac_cv_prog_CXXCPP=$CXXCPP | 
 | 10554 | fi | 
 | 10555 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
 | 10556 | echo "${ECHO_T}$CXXCPP" >&6 | 
 | 10557 | ac_preproc_ok=false | 
 | 10558 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 10559 | do | 
 | 10560 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 10561 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10562 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 10563 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10564 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 10565 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 10566 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10567 | /* confdefs.h.  */ | 
 | 10568 | _ACEOF | 
 | 10569 | cat confdefs.h >>conftest.$ac_ext | 
 | 10570 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10571 | /* end confdefs.h.  */ | 
 | 10572 | #ifdef __STDC__ | 
 | 10573 | # include <limits.h> | 
 | 10574 | #else | 
 | 10575 | # include <assert.h> | 
 | 10576 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10577 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10578 | _ACEOF | 
 | 10579 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 10580 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 10581 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10582 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10583 |   rm -f conftest.er1 | 
 | 10584 |   cat conftest.err >&5 | 
 | 10585 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10586 |   (exit $ac_status); } >/dev/null; then | 
 | 10587 |   if test -s conftest.err; then | 
 | 10588 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10589 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10590 |   else | 
 | 10591 |     ac_cpp_err= | 
 | 10592 |   fi | 
 | 10593 | else | 
 | 10594 |   ac_cpp_err=yes | 
 | 10595 | fi | 
 | 10596 | if test -z "$ac_cpp_err"; then | 
 | 10597 |   : | 
 | 10598 | else | 
 | 10599 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10600 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10601 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10602 |   # Broken: fails on valid input. | 
 | 10603 | continue | 
 | 10604 | fi | 
 | 10605 | rm -f conftest.err conftest.$ac_ext | 
 | 10606 |  | 
 | 10607 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 10608 |   # can be detected and how. | 
 | 10609 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10610 | /* confdefs.h.  */ | 
 | 10611 | _ACEOF | 
 | 10612 | cat confdefs.h >>conftest.$ac_ext | 
 | 10613 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10614 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10615 | #include <ac_nonexistent.h> | 
 | 10616 | _ACEOF | 
 | 10617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 10618 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 10619 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10620 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10621 |   rm -f conftest.er1 | 
 | 10622 |   cat conftest.err >&5 | 
 | 10623 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10624 |   (exit $ac_status); } >/dev/null; then | 
 | 10625 |   if test -s conftest.err; then | 
 | 10626 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10627 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10628 |   else | 
 | 10629 |     ac_cpp_err= | 
 | 10630 |   fi | 
 | 10631 | else | 
 | 10632 |   ac_cpp_err=yes | 
 | 10633 | fi | 
 | 10634 | if test -z "$ac_cpp_err"; then | 
 | 10635 |   # Broken: success on invalid input. | 
 | 10636 | continue | 
 | 10637 | else | 
 | 10638 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10639 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10640 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10641 |   # Passes both tests. | 
 | 10642 | ac_preproc_ok=: | 
 | 10643 | break | 
 | 10644 | fi | 
 | 10645 | rm -f conftest.err conftest.$ac_ext | 
 | 10646 |  | 
 | 10647 | done | 
 | 10648 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 10649 | rm -f conftest.err conftest.$ac_ext | 
 | 10650 | if $ac_preproc_ok; then | 
 | 10651 |   : | 
 | 10652 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10653 |   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 10654 | See \`config.log' for more details." >&5 | 
 | 10655 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 10656 | See \`config.log' for more details." >&2;} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10657 |    { (exit 1); exit 1; }; } | 
 | 10658 | fi | 
 | 10659 |  | 
 | 10660 | ac_ext=cc | 
 | 10661 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 10662 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10663 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10664 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 10665 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10666 | fi | 
 | 10667 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10668 |  | 
 | 10669 | ac_ext=f | 
 | 10670 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 10671 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10672 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 10673 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10674 |   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] | 10675 |   do | 
 | 10676 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 10677 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 10678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 10679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 10680 | if test "${ac_cv_prog_F77+set}" = set; then | 
 | 10681 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10682 | else | 
 | 10683 |   if test -n "$F77"; then | 
 | 10684 |   ac_cv_prog_F77="$F77" # Let the user override the test. | 
 | 10685 | else | 
 | 10686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10687 | for as_dir in $PATH | 
 | 10688 | do | 
 | 10689 |   IFS=$as_save_IFS | 
 | 10690 |   test -z "$as_dir" && as_dir=. | 
 | 10691 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10692 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 10693 |     ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
 | 10694 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10695 |     break 2 | 
 | 10696 |   fi | 
 | 10697 | done | 
 | 10698 | done | 
 | 10699 |  | 
 | 10700 | fi | 
 | 10701 | fi | 
 | 10702 | F77=$ac_cv_prog_F77 | 
 | 10703 | if test -n "$F77"; then | 
 | 10704 |   echo "$as_me:$LINENO: result: $F77" >&5 | 
 | 10705 | echo "${ECHO_T}$F77" >&6 | 
 | 10706 | else | 
 | 10707 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 10708 | echo "${ECHO_T}no" >&6 | 
 | 10709 | fi | 
 | 10710 |  | 
 | 10711 |     test -n "$F77" && break | 
 | 10712 |   done | 
 | 10713 | fi | 
 | 10714 | if test -z "$F77"; then | 
 | 10715 |   ac_ct_F77=$F77 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10716 |   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] | 10717 | do | 
 | 10718 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 10719 | set dummy $ac_prog; ac_word=$2 | 
 | 10720 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 10721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 10722 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
 | 10723 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10724 | else | 
 | 10725 |   if test -n "$ac_ct_F77"; then | 
 | 10726 |   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
 | 10727 | else | 
 | 10728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10729 | for as_dir in $PATH | 
 | 10730 | do | 
 | 10731 |   IFS=$as_save_IFS | 
 | 10732 |   test -z "$as_dir" && as_dir=. | 
 | 10733 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10734 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 10735 |     ac_cv_prog_ac_ct_F77="$ac_prog" | 
 | 10736 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10737 |     break 2 | 
 | 10738 |   fi | 
 | 10739 | done | 
 | 10740 | done | 
 | 10741 |  | 
 | 10742 | fi | 
 | 10743 | fi | 
 | 10744 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
 | 10745 | if test -n "$ac_ct_F77"; then | 
 | 10746 |   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
 | 10747 | echo "${ECHO_T}$ac_ct_F77" >&6 | 
 | 10748 | else | 
 | 10749 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 10750 | echo "${ECHO_T}no" >&6 | 
 | 10751 | fi | 
 | 10752 |  | 
 | 10753 |   test -n "$ac_ct_F77" && break | 
 | 10754 | done | 
 | 10755 |  | 
 | 10756 |   F77=$ac_ct_F77 | 
 | 10757 | fi | 
 | 10758 |  | 
 | 10759 |  | 
 | 10760 | # Provide some information about the compiler. | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 10761 | echo "$as_me:10761:" \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10762 |      "checking for Fortran 77 compiler version" >&5 | 
 | 10763 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 10764 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 10765 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 10766 |   ac_status=$? | 
 | 10767 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10768 |   (exit $ac_status); } | 
 | 10769 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 10770 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 10771 |   ac_status=$? | 
 | 10772 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10773 |   (exit $ac_status); } | 
 | 10774 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 10775 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 10776 |   ac_status=$? | 
 | 10777 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10778 |   (exit $ac_status); } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10779 | rm -f a.out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10780 |  | 
 | 10781 | # 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] | 10782 | # input file.  (Note that this only needs to work for GNU compilers.) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10783 | ac_save_ext=$ac_ext | 
 | 10784 | ac_ext=F | 
 | 10785 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
 | 10786 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 
 | 10787 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
 | 10788 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10789 | else | 
 | 10790 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 10791 |       program main | 
 | 10792 | #ifndef __GNUC__ | 
 | 10793 |        choke me | 
 | 10794 | #endif | 
 | 10795 |  | 
 | 10796 |       end | 
 | 10797 | _ACEOF | 
 | 10798 | rm -f conftest.$ac_objext | 
 | 10799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10800 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10801 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10802 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10803 |   rm -f conftest.er1 | 
 | 10804 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10805 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10806 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10807 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 10808 | 			 || test ! -s conftest.err' | 
 | 10809 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10810 |   (eval $ac_try) 2>&5 | 
 | 10811 |   ac_status=$? | 
 | 10812 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10813 |   (exit $ac_status); }; } && | 
 | 10814 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10815 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10816 |   (eval $ac_try) 2>&5 | 
 | 10817 |   ac_status=$? | 
 | 10818 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10819 |   (exit $ac_status); }; }; then | 
 | 10820 |   ac_compiler_gnu=yes | 
 | 10821 | else | 
 | 10822 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10823 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10824 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10825 | ac_compiler_gnu=no | 
 | 10826 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10828 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
 | 10829 |  | 
 | 10830 | fi | 
 | 10831 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
 | 10832 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 
 | 10833 | ac_ext=$ac_save_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10834 | ac_test_FFLAGS=${FFLAGS+set} | 
 | 10835 | ac_save_FFLAGS=$FFLAGS | 
 | 10836 | FFLAGS= | 
 | 10837 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
 | 10838 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 
 | 10839 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
 | 10840 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10841 | else | 
 | 10842 |   FFLAGS=-g | 
 | 10843 | cat >conftest.$ac_ext <<_ACEOF | 
 | 10844 |       program main | 
 | 10845 |  | 
 | 10846 |       end | 
 | 10847 | _ACEOF | 
 | 10848 | rm -f conftest.$ac_objext | 
 | 10849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10850 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10851 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10852 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10853 |   rm -f conftest.er1 | 
 | 10854 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10855 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10856 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10857 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 10858 | 			 || test ! -s conftest.err' | 
 | 10859 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10860 |   (eval $ac_try) 2>&5 | 
 | 10861 |   ac_status=$? | 
 | 10862 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10863 |   (exit $ac_status); }; } && | 
 | 10864 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10865 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 10866 |   (eval $ac_try) 2>&5 | 
 | 10867 |   ac_status=$? | 
 | 10868 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10869 |   (exit $ac_status); }; }; then | 
 | 10870 |   ac_cv_prog_f77_g=yes | 
 | 10871 | else | 
 | 10872 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 10873 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10874 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10875 | ac_cv_prog_f77_g=no | 
 | 10876 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10878 |  | 
 | 10879 | fi | 
 | 10880 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
 | 10881 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 
 | 10882 | if test "$ac_test_FFLAGS" = set; then | 
 | 10883 |   FFLAGS=$ac_save_FFLAGS | 
 | 10884 | elif test $ac_cv_prog_f77_g = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10885 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10886 |     FFLAGS="-g -O2" | 
 | 10887 |   else | 
 | 10888 |     FFLAGS="-g" | 
 | 10889 |   fi | 
 | 10890 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10891 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10892 |     FFLAGS="-O2" | 
 | 10893 |   else | 
 | 10894 |     FFLAGS= | 
 | 10895 |   fi | 
 | 10896 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10897 |  | 
 | 10898 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10899 | ac_ext=c | 
 | 10900 | ac_cpp='$CPP $CPPFLAGS' | 
 | 10901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 10904 |  | 
 | 10905 |  | 
 | 10906 |  | 
 | 10907 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
 | 10908 |  | 
 | 10909 | # find the maximum length of command line arguments | 
 | 10910 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
 | 10911 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 
 | 10912 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
 | 10913 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10914 | else | 
 | 10915 |     i=0 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10916 |   teststring="ABCD" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10917 |  | 
 | 10918 |   case $build_os in | 
 | 10919 |   msdosdjgpp*) | 
 | 10920 |     # On DJGPP, this test can blow up pretty badly due to problems in libc | 
 | 10921 |     # (any single argument exceeding 2000 bytes causes a buffer overrun | 
 | 10922 |     # during glob expansion).  Even if it were fixed, the result of this | 
 | 10923 |     # check would be larger than it should be. | 
 | 10924 |     lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
 | 10925 |     ;; | 
 | 10926 |  | 
 | 10927 |   gnu*) | 
 | 10928 |     # Under GNU Hurd, this test is not required because there is | 
 | 10929 |     # no limit to the length of command line arguments. | 
 | 10930 |     # Libtool will interpret -1 as no limit whatsoever | 
 | 10931 |     lt_cv_sys_max_cmd_len=-1; | 
 | 10932 |     ;; | 
 | 10933 |  | 
 | 10934 |   cygwin* | mingw*) | 
 | 10935 |     # On Win9x/ME, this test blows up -- it succeeds, but takes | 
 | 10936 |     # about 5 minutes as the teststring grows exponentially. | 
 | 10937 |     # Worse, since 9x/ME are not pre-emptively multitasking, | 
 | 10938 |     # you end up with a "frozen" computer, even though with patience | 
 | 10939 |     # the test eventually succeeds (with a max line length of 256k). | 
 | 10940 |     # Instead, let's just punt: use the minimum linelength reported by | 
 | 10941 |     # all of the supported platforms: 8192 (on NT/2K/XP). | 
 | 10942 |     lt_cv_sys_max_cmd_len=8192; | 
 | 10943 |     ;; | 
 | 10944 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10945 |   amigaos*) | 
 | 10946 |     # On AmigaOS with pdksh, this test takes hours, literally. | 
 | 10947 |     # So we just punt and use a minimum line length of 8192. | 
 | 10948 |     lt_cv_sys_max_cmd_len=8192; | 
 | 10949 |     ;; | 
 | 10950 |  | 
 | 10951 |   netbsd* | freebsd* | openbsd* | darwin* ) | 
 | 10952 |     # This has been around since 386BSD, at least.  Likely further. | 
 | 10953 |     if test -x /sbin/sysctl; then | 
 | 10954 |       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
 | 10955 |     elif test -x /usr/sbin/sysctl; then | 
 | 10956 |       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
 | 10957 |     else | 
 | 10958 |       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | 
 | 10959 |     fi | 
 | 10960 |     # And add a safety zone | 
 | 10961 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
 | 10962 |     ;; | 
 | 10963 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10964 |  *) | 
 | 10965 |     # If test is not a shell built-in, we'll probably end up computing a | 
 | 10966 |     # maximum length that is only half of the actual maximum length, but | 
 | 10967 |     # we can't tell. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10968 |     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
 | 10969 |     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | 
 | 10970 | 	       = "XX$teststring") >/dev/null 2>&1 && | 
 | 10971 | 	    new_result=`expr "X$teststring" : ".*" 2>&1` && | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10972 | 	    lt_cv_sys_max_cmd_len=$new_result && | 
 | 10973 | 	    test $i != 17 # 1/2 MB should be enough | 
 | 10974 |     do | 
 | 10975 |       i=`expr $i + 1` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10976 |       teststring=$teststring$teststring | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10977 |     done | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 10978 |     teststring= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10979 |     # Add a significant safety factor because C++ compilers can tack on massive | 
 | 10980 |     # amounts of additional arguments before passing them to the linker. | 
 | 10981 |     # It appears as though 1/2 is a usable value. | 
 | 10982 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
 | 10983 |     ;; | 
 | 10984 |   esac | 
 | 10985 |  | 
 | 10986 | fi | 
 | 10987 |  | 
 | 10988 | if test -n $lt_cv_sys_max_cmd_len ; then | 
 | 10989 |   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
 | 10990 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 
 | 10991 | else | 
 | 10992 |   echo "$as_me:$LINENO: result: none" >&5 | 
 | 10993 | echo "${ECHO_T}none" >&6 | 
 | 10994 | fi | 
 | 10995 |  | 
 | 10996 |  | 
 | 10997 |  | 
 | 10998 |  | 
 | 10999 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
 | 11000 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 11001 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
 | 11002 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 11003 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11004 | else | 
 | 11005 |  | 
 | 11006 | # These are sane defaults that work on at least a few old systems. | 
 | 11007 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 11008 |  | 
 | 11009 | # Character class describing NM global symbol codes. | 
 | 11010 | symcode='[BCDEGRST]' | 
 | 11011 |  | 
 | 11012 | # Regexp to match symbols that can be accessed directly from C. | 
 | 11013 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 11014 |  | 
 | 11015 | # Transform the above into a raw symbol and a C symbol. | 
 | 11016 | symxfrm='\1 \2\3 \3' | 
 | 11017 |  | 
 | 11018 | # Transform an extracted symbol line into a proper C declaration | 
 | 11019 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 11020 |  | 
 | 11021 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 11022 | 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'" | 
 | 11023 |  | 
 | 11024 | # Define system-specific variables. | 
 | 11025 | case $host_os in | 
 | 11026 | aix*) | 
 | 11027 |   symcode='[BCDT]' | 
 | 11028 |   ;; | 
 | 11029 | cygwin* | mingw* | pw32*) | 
 | 11030 |   symcode='[ABCDGISTW]' | 
 | 11031 |   ;; | 
 | 11032 | hpux*) # Its linker distinguishes data from code symbols | 
 | 11033 |   if test "$host_cpu" = ia64; then | 
 | 11034 |     symcode='[ABCDEGRST]' | 
 | 11035 |   fi | 
 | 11036 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 11037 |   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'" | 
 | 11038 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11039 | linux*) | 
 | 11040 |   if test "$host_cpu" = ia64; then | 
 | 11041 |     symcode='[ABCDGIRSTW]' | 
 | 11042 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 11043 |     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'" | 
 | 11044 |   fi | 
 | 11045 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11046 | irix* | nonstopux*) | 
 | 11047 |   symcode='[BCDEGRST]' | 
 | 11048 |   ;; | 
 | 11049 | osf*) | 
 | 11050 |   symcode='[BCDEGQRST]' | 
 | 11051 |   ;; | 
 | 11052 | solaris* | sysv5*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11053 |   symcode='[BDRT]' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11054 |   ;; | 
 | 11055 | sysv4) | 
 | 11056 |   symcode='[DFNSTU]' | 
 | 11057 |   ;; | 
 | 11058 | esac | 
 | 11059 |  | 
 | 11060 | # Handle CRLF in mingw tool chain | 
 | 11061 | opt_cr= | 
 | 11062 | case $build_os in | 
 | 11063 | mingw*) | 
 | 11064 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 11065 |   ;; | 
 | 11066 | esac | 
 | 11067 |  | 
 | 11068 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 11069 | case `$NM -V 2>&1` in | 
 | 11070 | *GNU* | *'with BFD'*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11071 |   symcode='[ABCDGIRSTW]' ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11072 | esac | 
 | 11073 |  | 
 | 11074 | # Try without a prefix undercore, then with it. | 
 | 11075 | for ac_symprfx in "" "_"; do | 
 | 11076 |  | 
 | 11077 |   # Write the raw and C identifiers. | 
 | 11078 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
 | 11079 |  | 
 | 11080 |   # Check to see that the pipe works correctly. | 
 | 11081 |   pipe_works=no | 
 | 11082 |  | 
 | 11083 |   rm -f conftest* | 
 | 11084 |   cat > conftest.$ac_ext <<EOF | 
 | 11085 | #ifdef __cplusplus | 
 | 11086 | extern "C" { | 
 | 11087 | #endif | 
 | 11088 | char nm_test_var; | 
 | 11089 | void nm_test_func(){} | 
 | 11090 | #ifdef __cplusplus | 
 | 11091 | } | 
 | 11092 | #endif | 
 | 11093 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 11094 | EOF | 
 | 11095 |  | 
 | 11096 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 11097 |   (eval $ac_compile) 2>&5 | 
 | 11098 |   ac_status=$? | 
 | 11099 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11100 |   (exit $ac_status); }; then | 
 | 11101 |     # Now try to grab the symbols. | 
 | 11102 |     nlist=conftest.nm | 
 | 11103 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 11104 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 11105 |   ac_status=$? | 
 | 11106 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11107 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 11108 |       # Try sorting and uniquifying the output. | 
 | 11109 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 11110 | 	mv -f "$nlist"T "$nlist" | 
 | 11111 |       else | 
 | 11112 | 	rm -f "$nlist"T | 
 | 11113 |       fi | 
 | 11114 |  | 
 | 11115 |       # Make sure that we snagged all the symbols we need. | 
 | 11116 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 11117 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 11118 | 	  cat <<EOF > conftest.$ac_ext | 
 | 11119 | #ifdef __cplusplus | 
 | 11120 | extern "C" { | 
 | 11121 | #endif | 
 | 11122 |  | 
 | 11123 | EOF | 
 | 11124 | 	  # Now generate the symbol file. | 
 | 11125 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 11126 |  | 
 | 11127 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 11128 | #if defined (__STDC__) && __STDC__ | 
 | 11129 | # define lt_ptr_t void * | 
 | 11130 | #else | 
 | 11131 | # define lt_ptr_t char * | 
 | 11132 | # define const | 
 | 11133 | #endif | 
 | 11134 |  | 
 | 11135 | /* The mapping between symbol names and symbols. */ | 
 | 11136 | const struct { | 
 | 11137 |   const char *name; | 
 | 11138 |   lt_ptr_t address; | 
 | 11139 | } | 
 | 11140 | lt_preloaded_symbols[] = | 
 | 11141 | { | 
 | 11142 | EOF | 
 | 11143 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 11144 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 11145 |   {0, (lt_ptr_t) 0} | 
 | 11146 | }; | 
 | 11147 |  | 
 | 11148 | #ifdef __cplusplus | 
 | 11149 | } | 
 | 11150 | #endif | 
 | 11151 | EOF | 
 | 11152 | 	  # Now try linking the two files. | 
 | 11153 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 11154 | 	  lt_save_LIBS="$LIBS" | 
 | 11155 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 11156 | 	  LIBS="conftstm.$ac_objext" | 
 | 11157 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 11158 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11159 |   (eval $ac_link) 2>&5 | 
 | 11160 |   ac_status=$? | 
 | 11161 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11162 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 11163 | 	    pipe_works=yes | 
 | 11164 | 	  fi | 
 | 11165 | 	  LIBS="$lt_save_LIBS" | 
 | 11166 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 11167 | 	else | 
 | 11168 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 11169 | 	fi | 
 | 11170 |       else | 
 | 11171 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 11172 |       fi | 
 | 11173 |     else | 
 | 11174 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 11175 |     fi | 
 | 11176 |   else | 
 | 11177 |     echo "$progname: failed program was:" >&5 | 
 | 11178 |     cat conftest.$ac_ext >&5 | 
 | 11179 |   fi | 
 | 11180 |   rm -f conftest* conftst* | 
 | 11181 |  | 
 | 11182 |   # Do not use the global_symbol_pipe unless it works. | 
 | 11183 |   if test "$pipe_works" = yes; then | 
 | 11184 |     break | 
 | 11185 |   else | 
 | 11186 |     lt_cv_sys_global_symbol_pipe= | 
 | 11187 |   fi | 
 | 11188 | done | 
 | 11189 |  | 
 | 11190 | fi | 
 | 11191 |  | 
 | 11192 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 11193 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 11194 | fi | 
 | 11195 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
 | 11196 |   echo "$as_me:$LINENO: result: failed" >&5 | 
 | 11197 | echo "${ECHO_T}failed" >&6 | 
 | 11198 | else | 
 | 11199 |   echo "$as_me:$LINENO: result: ok" >&5 | 
 | 11200 | echo "${ECHO_T}ok" >&6 | 
 | 11201 | fi | 
 | 11202 |  | 
 | 11203 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 11204 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
 | 11205 | if test "${lt_cv_objdir+set}" = set; then | 
 | 11206 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11207 | else | 
 | 11208 |   rm -f .libs 2>/dev/null | 
 | 11209 | mkdir .libs 2>/dev/null | 
 | 11210 | if test -d .libs; then | 
 | 11211 |   lt_cv_objdir=.libs | 
 | 11212 | else | 
 | 11213 |   # MS-DOS does not allow filenames that begin with a dot. | 
 | 11214 |   lt_cv_objdir=_libs | 
 | 11215 | fi | 
 | 11216 | rmdir .libs 2>/dev/null | 
 | 11217 | fi | 
 | 11218 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
 | 11219 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 
 | 11220 | objdir=$lt_cv_objdir | 
 | 11221 |  | 
 | 11222 |  | 
 | 11223 |  | 
 | 11224 |  | 
 | 11225 |  | 
 | 11226 | case $host_os in | 
 | 11227 | aix3*) | 
 | 11228 |   # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 11229 |   # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 11230 |   # vanish in a puff of smoke. | 
 | 11231 |   if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 11232 |     COLLECT_NAMES= | 
 | 11233 |     export COLLECT_NAMES | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11234 |   fi | 
 | 11235 |   ;; | 
 | 11236 | esac | 
 | 11237 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11238 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
 | 11239 | # metacharacters that are still active within double-quoted strings. | 
 | 11240 | Xsed='sed -e s/^X//' | 
 | 11241 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
 | 11242 |  | 
 | 11243 | # Same as above, but do not quote variable references. | 
 | 11244 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
 | 11245 |  | 
 | 11246 | # Sed substitution to delay expansion of an escaped shell variable in a | 
 | 11247 | # double_quote_subst'ed string. | 
 | 11248 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
 | 11249 |  | 
 | 11250 | # Sed substitution to avoid accidental globbing in evaled expressions | 
 | 11251 | no_glob_subst='s/\*/\\\*/g' | 
 | 11252 |  | 
 | 11253 | # Constants: | 
 | 11254 | rm="rm -f" | 
 | 11255 |  | 
 | 11256 | # Global variables: | 
| Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 11257 | default_ofile=mklib | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11258 | can_build_shared=yes | 
 | 11259 |  | 
 | 11260 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
 | 11261 | # which needs '.lib'). | 
 | 11262 | libext=a | 
 | 11263 | ltmain="$ac_aux_dir/ltmain.sh" | 
 | 11264 | ofile="$default_ofile" | 
 | 11265 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
 | 11266 |  | 
 | 11267 | if test -n "$ac_tool_prefix"; then | 
 | 11268 |   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
 | 11269 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
 | 11270 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11272 | if test "${ac_cv_prog_AR+set}" = set; then | 
 | 11273 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11274 | else | 
 | 11275 |   if test -n "$AR"; then | 
 | 11276 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 11277 | else | 
 | 11278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11279 | for as_dir in $PATH | 
 | 11280 | do | 
 | 11281 |   IFS=$as_save_IFS | 
 | 11282 |   test -z "$as_dir" && as_dir=. | 
 | 11283 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11284 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11285 |     ac_cv_prog_AR="${ac_tool_prefix}ar" | 
 | 11286 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11287 |     break 2 | 
 | 11288 |   fi | 
 | 11289 | done | 
 | 11290 | done | 
 | 11291 |  | 
 | 11292 | fi | 
 | 11293 | fi | 
 | 11294 | AR=$ac_cv_prog_AR | 
 | 11295 | if test -n "$AR"; then | 
 | 11296 |   echo "$as_me:$LINENO: result: $AR" >&5 | 
 | 11297 | echo "${ECHO_T}$AR" >&6 | 
 | 11298 | else | 
 | 11299 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11300 | echo "${ECHO_T}no" >&6 | 
 | 11301 | fi | 
 | 11302 |  | 
 | 11303 | fi | 
 | 11304 | if test -z "$ac_cv_prog_AR"; then | 
 | 11305 |   ac_ct_AR=$AR | 
 | 11306 |   # Extract the first word of "ar", so it can be a program name with args. | 
 | 11307 | set dummy ar; ac_word=$2 | 
 | 11308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11310 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
 | 11311 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11312 | else | 
 | 11313 |   if test -n "$ac_ct_AR"; then | 
 | 11314 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 11315 | else | 
 | 11316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11317 | for as_dir in $PATH | 
 | 11318 | do | 
 | 11319 |   IFS=$as_save_IFS | 
 | 11320 |   test -z "$as_dir" && as_dir=. | 
 | 11321 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11322 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11323 |     ac_cv_prog_ac_ct_AR="ar" | 
 | 11324 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11325 |     break 2 | 
 | 11326 |   fi | 
 | 11327 | done | 
 | 11328 | done | 
 | 11329 |  | 
 | 11330 |   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | 
 | 11331 | fi | 
 | 11332 | fi | 
 | 11333 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 11334 | if test -n "$ac_ct_AR"; then | 
 | 11335 |   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
 | 11336 | echo "${ECHO_T}$ac_ct_AR" >&6 | 
 | 11337 | else | 
 | 11338 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11339 | echo "${ECHO_T}no" >&6 | 
 | 11340 | fi | 
 | 11341 |  | 
 | 11342 |   AR=$ac_ct_AR | 
 | 11343 | else | 
 | 11344 |   AR="$ac_cv_prog_AR" | 
 | 11345 | fi | 
 | 11346 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11347 | if test -n "$ac_tool_prefix"; then | 
 | 11348 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 11349 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 11350 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11352 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 11353 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11354 | else | 
 | 11355 |   if test -n "$RANLIB"; then | 
 | 11356 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 11357 | else | 
 | 11358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11359 | for as_dir in $PATH | 
 | 11360 | do | 
 | 11361 |   IFS=$as_save_IFS | 
 | 11362 |   test -z "$as_dir" && as_dir=. | 
 | 11363 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11364 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11365 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 11366 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11367 |     break 2 | 
 | 11368 |   fi | 
 | 11369 | done | 
 | 11370 | done | 
 | 11371 |  | 
 | 11372 | fi | 
 | 11373 | fi | 
 | 11374 | RANLIB=$ac_cv_prog_RANLIB | 
 | 11375 | if test -n "$RANLIB"; then | 
 | 11376 |   echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 11377 | echo "${ECHO_T}$RANLIB" >&6 | 
 | 11378 | else | 
 | 11379 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11380 | echo "${ECHO_T}no" >&6 | 
 | 11381 | fi | 
 | 11382 |  | 
 | 11383 | fi | 
 | 11384 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 11385 |   ac_ct_RANLIB=$RANLIB | 
 | 11386 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 11387 | set dummy ranlib; ac_word=$2 | 
 | 11388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11390 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 11391 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11392 | else | 
 | 11393 |   if test -n "$ac_ct_RANLIB"; then | 
 | 11394 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 11395 | else | 
 | 11396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11397 | for as_dir in $PATH | 
 | 11398 | do | 
 | 11399 |   IFS=$as_save_IFS | 
 | 11400 |   test -z "$as_dir" && as_dir=. | 
 | 11401 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11402 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11403 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 11404 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11405 |     break 2 | 
 | 11406 |   fi | 
 | 11407 | done | 
 | 11408 | done | 
 | 11409 |  | 
 | 11410 |   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
 | 11411 | fi | 
 | 11412 | fi | 
 | 11413 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 11414 | if test -n "$ac_ct_RANLIB"; then | 
 | 11415 |   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 11416 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
 | 11417 | else | 
 | 11418 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11419 | echo "${ECHO_T}no" >&6 | 
 | 11420 | fi | 
 | 11421 |  | 
 | 11422 |   RANLIB=$ac_ct_RANLIB | 
 | 11423 | else | 
 | 11424 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 11425 | fi | 
 | 11426 |  | 
 | 11427 | if test -n "$ac_tool_prefix"; then | 
 | 11428 |   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 11429 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 11430 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11432 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
 | 11433 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11434 | else | 
 | 11435 |   if test -n "$STRIP"; then | 
 | 11436 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 11437 | else | 
 | 11438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11439 | for as_dir in $PATH | 
 | 11440 | do | 
 | 11441 |   IFS=$as_save_IFS | 
 | 11442 |   test -z "$as_dir" && as_dir=. | 
 | 11443 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11444 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11445 |     ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 11446 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11447 |     break 2 | 
 | 11448 |   fi | 
 | 11449 | done | 
 | 11450 | done | 
 | 11451 |  | 
 | 11452 | fi | 
 | 11453 | fi | 
 | 11454 | STRIP=$ac_cv_prog_STRIP | 
 | 11455 | if test -n "$STRIP"; then | 
 | 11456 |   echo "$as_me:$LINENO: result: $STRIP" >&5 | 
 | 11457 | echo "${ECHO_T}$STRIP" >&6 | 
 | 11458 | else | 
 | 11459 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11460 | echo "${ECHO_T}no" >&6 | 
 | 11461 | fi | 
 | 11462 |  | 
 | 11463 | fi | 
 | 11464 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 11465 |   ac_ct_STRIP=$STRIP | 
 | 11466 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 11467 | set dummy strip; ac_word=$2 | 
 | 11468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 11469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 11470 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
 | 11471 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11472 | else | 
 | 11473 |   if test -n "$ac_ct_STRIP"; then | 
 | 11474 |   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
 | 11475 | else | 
 | 11476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11477 | for as_dir in $PATH | 
 | 11478 | do | 
 | 11479 |   IFS=$as_save_IFS | 
 | 11480 |   test -z "$as_dir" && as_dir=. | 
 | 11481 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11482 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 11483 |     ac_cv_prog_ac_ct_STRIP="strip" | 
 | 11484 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11485 |     break 2 | 
 | 11486 |   fi | 
 | 11487 | done | 
 | 11488 | done | 
 | 11489 |  | 
 | 11490 |   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | 
 | 11491 | fi | 
 | 11492 | fi | 
 | 11493 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
 | 11494 | if test -n "$ac_ct_STRIP"; then | 
 | 11495 |   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
 | 11496 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 
 | 11497 | else | 
 | 11498 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11499 | echo "${ECHO_T}no" >&6 | 
 | 11500 | fi | 
 | 11501 |  | 
 | 11502 |   STRIP=$ac_ct_STRIP | 
 | 11503 | else | 
 | 11504 |   STRIP="$ac_cv_prog_STRIP" | 
 | 11505 | fi | 
 | 11506 |  | 
 | 11507 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11508 | old_CC="$CC" | 
 | 11509 | old_CFLAGS="$CFLAGS" | 
 | 11510 |  | 
 | 11511 | # Set sane defaults for various variables | 
 | 11512 | test -z "$AR" && AR=ar | 
 | 11513 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
 | 11514 | test -z "$AS" && AS=as | 
 | 11515 | test -z "$CC" && CC=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11516 | test -z "$LTCC" && LTCC=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11517 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
 | 11518 | test -z "$LD" && LD=ld | 
 | 11519 | test -z "$LN_S" && LN_S="ln -s" | 
 | 11520 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
 | 11521 | test -z "$NM" && NM=nm | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11522 | test -z "$SED" && SED=sed | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11523 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
 | 11524 | test -z "$RANLIB" && RANLIB=: | 
 | 11525 | test -z "$STRIP" && STRIP=: | 
 | 11526 | test -z "$ac_objext" && ac_objext=o | 
 | 11527 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11528 | # Determine commands to create old-style static archives. | 
 | 11529 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
 | 11530 | old_postinstall_cmds='chmod 644 $oldlib' | 
 | 11531 | old_postuninstall_cmds= | 
 | 11532 |  | 
 | 11533 | if test -n "$RANLIB"; then | 
 | 11534 |   case $host_os in | 
 | 11535 |   openbsd*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11536 |     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11537 |     ;; | 
 | 11538 |   *) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11539 |     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11540 |     ;; | 
 | 11541 |   esac | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 11542 |   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11543 | fi | 
 | 11544 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11545 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 11546 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11547 | # Only perform the check for file, if the check method requires it | 
 | 11548 | case $deplibs_check_method in | 
 | 11549 | file_magic*) | 
 | 11550 |   if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
 | 11551 |     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
 | 11552 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 
 | 11553 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 11554 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11555 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11556 |   case $MAGIC_CMD in | 
 | 11557 | [\\/*] |  ?:[\\/]*) | 
 | 11558 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 11559 |   ;; | 
 | 11560 | *) | 
 | 11561 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 11562 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 11563 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 11564 |   for ac_dir in $ac_dummy; do | 
 | 11565 |     IFS="$lt_save_ifs" | 
 | 11566 |     test -z "$ac_dir" && ac_dir=. | 
 | 11567 |     if test -f $ac_dir/${ac_tool_prefix}file; then | 
 | 11568 |       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
 | 11569 |       if test -n "$file_magic_test_file"; then | 
 | 11570 | 	case $deplibs_check_method in | 
 | 11571 | 	"file_magic "*) | 
 | 11572 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 11573 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 11574 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 11575 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 11576 | 	    : | 
 | 11577 | 	  else | 
 | 11578 | 	    cat <<EOF 1>&2 | 
 | 11579 |  | 
 | 11580 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 11581 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 11582 | *** The result is that libtool may fail to recognize shared libraries | 
 | 11583 | *** as such.  This will affect the creation of libtool libraries that | 
 | 11584 | *** depend on shared libraries, but programs linked with such libtool | 
 | 11585 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 11586 | *** may want to report the problem to your system manager and/or to | 
 | 11587 | *** bug-libtool@gnu.org | 
 | 11588 |  | 
 | 11589 | EOF | 
 | 11590 | 	  fi ;; | 
 | 11591 | 	esac | 
 | 11592 |       fi | 
 | 11593 |       break | 
 | 11594 |     fi | 
 | 11595 |   done | 
 | 11596 |   IFS="$lt_save_ifs" | 
 | 11597 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 11598 |   ;; | 
 | 11599 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11600 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11601 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11602 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 11603 | if test -n "$MAGIC_CMD"; then | 
 | 11604 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 11605 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 11606 | else | 
 | 11607 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11608 | echo "${ECHO_T}no" >&6 | 
 | 11609 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11610 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11611 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
 | 11612 |   if test -n "$ac_tool_prefix"; then | 
 | 11613 |     echo "$as_me:$LINENO: checking for file" >&5 | 
 | 11614 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 
 | 11615 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 11616 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11617 | else | 
 | 11618 |   case $MAGIC_CMD in | 
 | 11619 | [\\/*] |  ?:[\\/]*) | 
 | 11620 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 11621 |   ;; | 
 | 11622 | *) | 
 | 11623 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 11624 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 11625 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 11626 |   for ac_dir in $ac_dummy; do | 
 | 11627 |     IFS="$lt_save_ifs" | 
 | 11628 |     test -z "$ac_dir" && ac_dir=. | 
 | 11629 |     if test -f $ac_dir/file; then | 
 | 11630 |       lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
 | 11631 |       if test -n "$file_magic_test_file"; then | 
 | 11632 | 	case $deplibs_check_method in | 
 | 11633 | 	"file_magic "*) | 
 | 11634 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 11635 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 11636 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 11637 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 11638 | 	    : | 
 | 11639 | 	  else | 
 | 11640 | 	    cat <<EOF 1>&2 | 
 | 11641 |  | 
 | 11642 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 11643 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 11644 | *** The result is that libtool may fail to recognize shared libraries | 
 | 11645 | *** as such.  This will affect the creation of libtool libraries that | 
 | 11646 | *** depend on shared libraries, but programs linked with such libtool | 
 | 11647 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 11648 | *** may want to report the problem to your system manager and/or to | 
 | 11649 | *** bug-libtool@gnu.org | 
 | 11650 |  | 
 | 11651 | EOF | 
 | 11652 | 	  fi ;; | 
 | 11653 | 	esac | 
 | 11654 |       fi | 
 | 11655 |       break | 
 | 11656 |     fi | 
 | 11657 |   done | 
 | 11658 |   IFS="$lt_save_ifs" | 
 | 11659 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 11660 |   ;; | 
 | 11661 | esac | 
 | 11662 | fi | 
 | 11663 |  | 
 | 11664 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 11665 | if test -n "$MAGIC_CMD"; then | 
 | 11666 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 11667 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 11668 | else | 
 | 11669 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 11670 | echo "${ECHO_T}no" >&6 | 
 | 11671 | fi | 
 | 11672 |  | 
 | 11673 |   else | 
 | 11674 |     MAGIC_CMD=: | 
 | 11675 |   fi | 
 | 11676 | fi | 
 | 11677 |  | 
 | 11678 |   fi | 
 | 11679 |   ;; | 
 | 11680 | esac | 
 | 11681 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 11682 | enable_dlopen=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11683 | enable_win32_dll=no | 
 | 11684 |  | 
 | 11685 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 11686 | if test "${enable_libtool_lock+set}" = set; then | 
 | 11687 |   enableval="$enable_libtool_lock" | 
 | 11688 |  | 
 | 11689 | fi; | 
 | 11690 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 11691 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11692 |  | 
 | 11693 | # Check whether --with-pic or --without-pic was given. | 
 | 11694 | if test "${with_pic+set}" = set; then | 
 | 11695 |   withval="$with_pic" | 
 | 11696 |   pic_mode="$withval" | 
 | 11697 | else | 
 | 11698 |   pic_mode=default | 
 | 11699 | fi; | 
 | 11700 | test -z "$pic_mode" && pic_mode=default | 
 | 11701 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11702 | # Use C for the default configuration in the libtool script | 
 | 11703 | tagname= | 
 | 11704 | lt_save_CC="$CC" | 
 | 11705 | ac_ext=c | 
 | 11706 | ac_cpp='$CPP $CPPFLAGS' | 
 | 11707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 11708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 11709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 11710 |  | 
 | 11711 |  | 
 | 11712 | # Source file extension for C test sources. | 
 | 11713 | ac_ext=c | 
 | 11714 |  | 
 | 11715 | # Object file extension for compiled C test sources. | 
 | 11716 | objext=o | 
 | 11717 | objext=$objext | 
 | 11718 |  | 
 | 11719 | # Code to be used in simple compile tests | 
 | 11720 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 11721 |  | 
 | 11722 | # Code to be used in simple link tests | 
 | 11723 | lt_simple_link_test_code='int main(){return(0);}\n' | 
 | 11724 |  | 
 | 11725 |  | 
 | 11726 | # If no C compiler was specified, use CC. | 
 | 11727 | LTCC=${LTCC-"$CC"} | 
 | 11728 |  | 
 | 11729 | # Allow CC to be a program name with arguments. | 
 | 11730 | compiler=$CC | 
 | 11731 |  | 
 | 11732 |  | 
 | 11733 | # | 
 | 11734 | # Check for any special shared library compilation flags. | 
 | 11735 | # | 
 | 11736 | lt_prog_cc_shlib= | 
 | 11737 | if test "$GCC" = no; then | 
 | 11738 |   case $host_os in | 
 | 11739 |   sco3.2v5*) | 
 | 11740 |     lt_prog_cc_shlib='-belf' | 
 | 11741 |     ;; | 
 | 11742 |   esac | 
 | 11743 | fi | 
 | 11744 | if test -n "$lt_prog_cc_shlib"; then | 
 | 11745 |   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | 
 | 11746 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | 
 | 11747 |   if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then : | 
 | 11748 |   else | 
 | 11749 |     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | 
 | 11750 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | 
 | 11751 |     lt_cv_prog_cc_can_build_shared=no | 
 | 11752 |   fi | 
 | 11753 | fi | 
 | 11754 |  | 
 | 11755 |  | 
 | 11756 | # | 
 | 11757 | # Check to make sure the static flag actually works. | 
 | 11758 | # | 
 | 11759 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | 
 | 11760 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | 
 | 11761 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11762 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11763 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11764 |   lt_prog_compiler_static_works=no | 
 | 11765 |    save_LDFLAGS="$LDFLAGS" | 
 | 11766 |    LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | 
 | 11767 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 11768 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 11769 |      # The compiler can only warn and ignore the option if not recognized | 
 | 11770 |      # So say no if there are warnings | 
 | 11771 |      if test -s conftest.err; then | 
 | 11772 |        # Append any errors to the config.log. | 
 | 11773 |        cat conftest.err 1>&5 | 
 | 11774 |      else | 
 | 11775 |        lt_prog_compiler_static_works=yes | 
 | 11776 |      fi | 
 | 11777 |    fi | 
 | 11778 |    $rm conftest* | 
 | 11779 |    LDFLAGS="$save_LDFLAGS" | 
 | 11780 |  | 
 | 11781 | fi | 
 | 11782 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
 | 11783 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | 
 | 11784 |  | 
 | 11785 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
 | 11786 |     : | 
 | 11787 | else | 
 | 11788 |     lt_prog_compiler_static= | 
 | 11789 | fi | 
 | 11790 |  | 
 | 11791 |  | 
 | 11792 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11793 |  | 
 | 11794 | lt_prog_compiler_no_builtin_flag= | 
 | 11795 |  | 
 | 11796 | if test "$GCC" = yes; then | 
 | 11797 |   lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
 | 11798 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11799 |  | 
 | 11800 | 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] | 11801 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 11802 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 11803 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11804 | else | 
 | 11805 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 11806 |   ac_outfile=conftest.$ac_objext | 
 | 11807 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 11808 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 11809 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 11810 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 11811 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 11812 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 11813 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 11814 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 11815 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 11816 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 11817 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 11818 |    (eval echo "\"\$as_me:11818: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11819 |    (eval "$lt_compile" 2>conftest.err) | 
 | 11820 |    ac_status=$? | 
 | 11821 |    cat conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 11822 |    echo "$as_me:11822: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11823 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 11824 |      # The compiler can only warn and ignore the option if not recognized | 
 | 11825 |      # So say no if there are warnings | 
 | 11826 |      if test ! -s conftest.err; then | 
 | 11827 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 11828 |      fi | 
 | 11829 |    fi | 
 | 11830 |    $rm conftest* | 
 | 11831 |  | 
 | 11832 | fi | 
 | 11833 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 11834 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 11835 |  | 
 | 11836 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 11837 |     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
 | 11838 | else | 
 | 11839 |     : | 
 | 11840 | fi | 
 | 11841 |  | 
 | 11842 | fi | 
 | 11843 |  | 
 | 11844 | lt_prog_compiler_wl= | 
 | 11845 | lt_prog_compiler_pic= | 
 | 11846 | lt_prog_compiler_static= | 
 | 11847 |  | 
 | 11848 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 11849 | 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] | 11850 |  | 
 | 11851 |   if test "$GCC" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11852 |     lt_prog_compiler_wl='-Wl,' | 
 | 11853 |     lt_prog_compiler_static='-static' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11854 |  | 
 | 11855 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11856 |       aix*) | 
 | 11857 |       # All AIX code is PIC. | 
 | 11858 |       if test "$host_cpu" = ia64; then | 
 | 11859 | 	# AIX 5 now supports IA64 processor | 
 | 11860 | 	lt_prog_compiler_static='-Bstatic' | 
 | 11861 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11862 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11863 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11864 |     amigaos*) | 
 | 11865 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 11866 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 11867 |       # like `-m68040'. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11868 |       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11869 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11870 |  | 
 | 11871 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11872 |       # PIC is the default for these OSes. | 
 | 11873 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11874 |  | 
 | 11875 |     mingw* | pw32* | os2*) | 
 | 11876 |       # This hack is so that the source file can tell whether it is being | 
 | 11877 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 11878 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 11879 |       ;; | 
 | 11880 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11881 |     darwin* | rhapsody*) | 
 | 11882 |       # PIC is the default on this platform | 
 | 11883 |       # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11884 |       lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11885 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11886 |  | 
 | 11887 |     msdosdjgpp*) | 
 | 11888 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 11889 |       # on systems that don't support them. | 
 | 11890 |       lt_prog_compiler_can_build_shared=no | 
 | 11891 |       enable_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11892 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11893 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11894 |     sysv4*MP*) | 
 | 11895 |       if test -d /usr/nec; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11896 | 	lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11897 |       fi | 
 | 11898 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11899 |  | 
 | 11900 |     hpux*) | 
 | 11901 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 11902 |       # not for PA HP-UX. | 
 | 11903 |       case "$host_cpu" in | 
 | 11904 |       hppa*64*|ia64*) | 
 | 11905 | 	# +Z the default | 
 | 11906 | 	;; | 
 | 11907 |       *) | 
 | 11908 | 	lt_prog_compiler_pic='-fPIC' | 
 | 11909 | 	;; | 
 | 11910 |       esac | 
 | 11911 |       ;; | 
 | 11912 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11913 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11914 |       lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11915 |       ;; | 
 | 11916 |     esac | 
 | 11917 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11918 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11919 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11920 |     aix*) | 
 | 11921 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11922 |       if test "$host_cpu" = ia64; then | 
 | 11923 | 	# AIX 5 now supports IA64 processor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11924 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11925 |       else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11926 | 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11927 |       fi | 
 | 11928 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11929 |       darwin*) | 
 | 11930 |         # PIC is the default on this platform | 
 | 11931 |         # Common symbols not allowed in MH_DYLIB files | 
 | 11932 |        case "$cc_basename" in | 
 | 11933 |          xlc*) | 
 | 11934 |          lt_prog_compiler_pic='-qnocommon' | 
 | 11935 |          lt_prog_compiler_wl='-Wl,' | 
 | 11936 |          ;; | 
 | 11937 |        esac | 
 | 11938 |        ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11939 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11940 |     mingw* | pw32* | os2*) | 
 | 11941 |       # This hack is so that the source file can tell whether it is being | 
 | 11942 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 11943 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 11944 |       ;; | 
 | 11945 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11946 |     hpux9* | hpux10* | hpux11*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11947 |       lt_prog_compiler_wl='-Wl,' | 
 | 11948 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 11949 |       # not for PA HP-UX. | 
 | 11950 |       case "$host_cpu" in | 
 | 11951 |       hppa*64*|ia64*) | 
 | 11952 | 	# +Z the default | 
 | 11953 | 	;; | 
 | 11954 |       *) | 
 | 11955 | 	lt_prog_compiler_pic='+Z' | 
 | 11956 | 	;; | 
 | 11957 |       esac | 
 | 11958 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 11959 |       lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11960 |       ;; | 
 | 11961 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11962 |     irix5* | irix6* | nonstopux*) | 
 | 11963 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11964 |       # PIC (with -KPIC) is the default. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11965 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11966 |       ;; | 
 | 11967 |  | 
 | 11968 |     newsos6) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11969 |       lt_prog_compiler_pic='-KPIC' | 
 | 11970 |       lt_prog_compiler_static='-Bstatic' | 
 | 11971 |       ;; | 
 | 11972 |  | 
 | 11973 |     linux*) | 
 | 11974 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11975 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11976 | 	lt_prog_compiler_wl='-Wl,' | 
 | 11977 | 	lt_prog_compiler_pic='-KPIC' | 
 | 11978 | 	lt_prog_compiler_static='-static' | 
 | 11979 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11980 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11981 |         lt_prog_compiler_wl='-Wl,' | 
 | 11982 |         # All Alpha code is PIC. | 
 | 11983 |         lt_prog_compiler_static='-non_shared' | 
 | 11984 |         ;; | 
 | 11985 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11986 |       ;; | 
 | 11987 |  | 
 | 11988 |     osf3* | osf4* | osf5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11989 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11990 |       # All OSF/1 code is PIC. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11991 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11992 |       ;; | 
 | 11993 |  | 
 | 11994 |     sco3.2v5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11995 |       lt_prog_compiler_pic='-Kpic' | 
 | 11996 |       lt_prog_compiler_static='-dn' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 11997 |       ;; | 
 | 11998 |  | 
 | 11999 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12000 |       lt_prog_compiler_wl='-Wl,' | 
 | 12001 |       lt_prog_compiler_pic='-KPIC' | 
 | 12002 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12003 |       ;; | 
 | 12004 |  | 
 | 12005 |     sunos4*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12006 |       lt_prog_compiler_wl='-Qoption ld ' | 
 | 12007 |       lt_prog_compiler_pic='-PIC' | 
 | 12008 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12009 |       ;; | 
 | 12010 |  | 
 | 12011 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12012 |       lt_prog_compiler_wl='-Wl,' | 
 | 12013 |       lt_prog_compiler_pic='-KPIC' | 
 | 12014 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12015 |       ;; | 
 | 12016 |  | 
 | 12017 |     sysv4*MP*) | 
 | 12018 |       if test -d /usr/nec ;then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12019 | 	lt_prog_compiler_pic='-Kconform_pic' | 
 | 12020 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12021 |       fi | 
 | 12022 |       ;; | 
 | 12023 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12024 |     uts4*) | 
 | 12025 |       lt_prog_compiler_pic='-pic' | 
 | 12026 |       lt_prog_compiler_static='-Bstatic' | 
 | 12027 |       ;; | 
 | 12028 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12029 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12030 |       lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12031 |       ;; | 
 | 12032 |     esac | 
 | 12033 |   fi | 
 | 12034 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12035 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
 | 12036 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12037 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12038 | # | 
 | 12039 | # Check to make sure the PIC flag actually works. | 
 | 12040 | # | 
 | 12041 | if test -n "$lt_prog_compiler_pic"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12042 |  | 
 | 12043 | 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] | 12044 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 
 | 12045 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12046 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12047 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12048 |   lt_prog_compiler_pic_works=no | 
 | 12049 |   ac_outfile=conftest.$ac_objext | 
 | 12050 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 12051 |    lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
 | 12052 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 12053 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 12054 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 12055 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 12056 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 12057 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 12058 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 12059 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 12060 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 12061 |    (eval echo "\"\$as_me:12061: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12062 |    (eval "$lt_compile" 2>conftest.err) | 
 | 12063 |    ac_status=$? | 
 | 12064 |    cat conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 12065 |    echo "$as_me:12065: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12066 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 12067 |      # The compiler can only warn and ignore the option if not recognized | 
 | 12068 |      # So say no if there are warnings | 
 | 12069 |      if test ! -s conftest.err; then | 
 | 12070 |        lt_prog_compiler_pic_works=yes | 
 | 12071 |      fi | 
 | 12072 |    fi | 
 | 12073 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12074 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12075 | fi | 
 | 12076 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
 | 12077 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12078 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12079 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
 | 12080 |     case $lt_prog_compiler_pic in | 
 | 12081 |      "" | " "*) ;; | 
 | 12082 |      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
 | 12083 |      esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12084 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12085 |     lt_prog_compiler_pic= | 
 | 12086 |      lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12087 | fi | 
 | 12088 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12089 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12090 | case "$host_os" in | 
 | 12091 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 12092 |   *djgpp*) | 
 | 12093 |     lt_prog_compiler_pic= | 
 | 12094 |     ;; | 
 | 12095 |   *) | 
 | 12096 |     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
 | 12097 |     ;; | 
 | 12098 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12099 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12100 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 12101 | 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] | 12102 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12103 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12104 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12105 |   lt_cv_prog_compiler_c_o=no | 
 | 12106 |    $rm -r conftest 2>/dev/null | 
 | 12107 |    mkdir conftest | 
 | 12108 |    cd conftest | 
 | 12109 |    mkdir out | 
 | 12110 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12111 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12112 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 12113 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 12114 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 12115 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 12116 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 12117 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 12118 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 12119 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 12120 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 12121 |    (eval echo "\"\$as_me:12121: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12122 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 12123 |    ac_status=$? | 
 | 12124 |    cat out/conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 12125 |    echo "$as_me:12125: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12126 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 12127 |    then | 
 | 12128 |      # The compiler can only warn and ignore the option if not recognized | 
 | 12129 |      # So say no if there are warnings | 
 | 12130 |      if test ! -s out/conftest.err; then | 
 | 12131 |        lt_cv_prog_compiler_c_o=yes | 
 | 12132 |      fi | 
 | 12133 |    fi | 
 | 12134 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12135 |    $rm conftest* | 
 | 12136 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 12137 |    # template instantiation | 
 | 12138 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 12139 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12140 |    cd .. | 
 | 12141 |    rmdir conftest | 
 | 12142 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12143 |  | 
 | 12144 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12145 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
 | 12146 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12147 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12148 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12149 | hard_links="nottested" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12150 | 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] | 12151 |   # do not overwrite the value of need_locks provided by the user | 
 | 12152 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 12153 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 12154 |   hard_links=yes | 
 | 12155 |   $rm conftest* | 
 | 12156 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 12157 |   touch conftest.a | 
 | 12158 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 12159 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 12160 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 12161 | echo "${ECHO_T}$hard_links" >&6 | 
 | 12162 |   if test "$hard_links" = no; then | 
 | 12163 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 12164 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 12165 |     need_locks=warn | 
 | 12166 |   fi | 
 | 12167 | else | 
 | 12168 |   need_locks=no | 
 | 12169 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12170 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12171 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 12172 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 12173 |  | 
 | 12174 |   runpath_var= | 
 | 12175 |   allow_undefined_flag= | 
 | 12176 |   enable_shared_with_static_runtimes=no | 
 | 12177 |   archive_cmds= | 
 | 12178 |   archive_expsym_cmds= | 
 | 12179 |   old_archive_From_new_cmds= | 
 | 12180 |   old_archive_from_expsyms_cmds= | 
 | 12181 |   export_dynamic_flag_spec= | 
 | 12182 |   whole_archive_flag_spec= | 
 | 12183 |   thread_safe_flag_spec= | 
 | 12184 |   hardcode_libdir_flag_spec= | 
 | 12185 |   hardcode_libdir_flag_spec_ld= | 
 | 12186 |   hardcode_libdir_separator= | 
 | 12187 |   hardcode_direct=no | 
 | 12188 |   hardcode_minus_L=no | 
 | 12189 |   hardcode_shlibpath_var=unsupported | 
 | 12190 |   link_all_deplibs=unknown | 
 | 12191 |   hardcode_automatic=no | 
 | 12192 |   module_cmds= | 
 | 12193 |   module_expsym_cmds= | 
 | 12194 |   always_export_symbols=no | 
 | 12195 |   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 12196 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 12197 |   # included in the symbol list | 
 | 12198 |   include_expsyms= | 
 | 12199 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 12200 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 12201 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 12202 |   # as well as any symbol that contains `d'. | 
 | 12203 |   exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
 | 12204 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 12205 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 12206 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 12207 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 12208 |   # preloaded symbol tables. | 
 | 12209 |   extract_expsyms_cmds= | 
 | 12210 |  | 
 | 12211 |   case $host_os in | 
 | 12212 |   cygwin* | mingw* | pw32*) | 
 | 12213 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 12214 |     # When not using gcc, we currently assume that we are using | 
 | 12215 |     # Microsoft Visual C++. | 
 | 12216 |     if test "$GCC" != yes; then | 
 | 12217 |       with_gnu_ld=no | 
 | 12218 |     fi | 
 | 12219 |     ;; | 
 | 12220 |   openbsd*) | 
 | 12221 |     with_gnu_ld=no | 
 | 12222 |     ;; | 
 | 12223 |   esac | 
 | 12224 |  | 
 | 12225 |   ld_shlibs=yes | 
 | 12226 |   if test "$with_gnu_ld" = yes; then | 
 | 12227 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 12228 |     wlarc='${wl}' | 
 | 12229 |  | 
 | 12230 |     # See if GNU ld supports shared libraries. | 
 | 12231 |     case $host_os in | 
 | 12232 |     aix3* | aix4* | aix5*) | 
 | 12233 |       # On AIX/PPC, the GNU linker is very broken | 
 | 12234 |       if test "$host_cpu" != ia64; then | 
 | 12235 | 	ld_shlibs=no | 
 | 12236 | 	cat <<EOF 1>&2 | 
 | 12237 |  | 
 | 12238 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 12239 | *** to be unable to reliably create shared libraries on AIX. | 
 | 12240 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 12241 | *** really care for shared libraries, you may want to modify your PATH | 
 | 12242 | *** so that a non-GNU linker is found, and then restart. | 
 | 12243 |  | 
 | 12244 | EOF | 
 | 12245 |       fi | 
 | 12246 |       ;; | 
 | 12247 |  | 
 | 12248 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12249 |       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] | 12250 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12251 |       hardcode_minus_L=yes | 
 | 12252 |  | 
 | 12253 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 12254 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 12255 |       # to version 4, is to share data among multiple programs linked | 
 | 12256 |       # with the same dynamic library.  Since this doesn't match the | 
 | 12257 |       # behavior of shared libraries on other platforms, we can't use | 
 | 12258 |       # them. | 
 | 12259 |       ld_shlibs=no | 
 | 12260 |       ;; | 
 | 12261 |  | 
 | 12262 |     beos*) | 
 | 12263 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12264 | 	allow_undefined_flag=unsupported | 
 | 12265 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 12266 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 12267 | 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12268 |       else | 
 | 12269 | 	ld_shlibs=no | 
 | 12270 |       fi | 
 | 12271 |       ;; | 
 | 12272 |  | 
 | 12273 |     cygwin* | mingw* | pw32*) | 
 | 12274 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
 | 12275 |       # as there is no search path for DLLs. | 
 | 12276 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12277 |       allow_undefined_flag=unsupported | 
 | 12278 |       always_export_symbols=no | 
 | 12279 |       enable_shared_with_static_runtimes=yes | 
 | 12280 |       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 12281 |  | 
 | 12282 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 12283 |         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 12284 | 	# If the export-symbols file already is a .def file (1st line | 
 | 12285 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 12286 | 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 12287 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 12288 | 	else | 
 | 12289 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 12290 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12291 | 	fi~ | 
 | 12292 | 	$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] | 12293 |       else | 
 | 12294 | 	ld_shlibs=no | 
 | 12295 |       fi | 
 | 12296 |       ;; | 
 | 12297 |  | 
 | 12298 |     netbsd*) | 
 | 12299 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 12300 | 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 12301 | 	wlarc= | 
 | 12302 |       else | 
 | 12303 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12304 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12305 |       fi | 
 | 12306 |       ;; | 
 | 12307 |  | 
 | 12308 |     solaris* | sysv5*) | 
 | 12309 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 12310 | 	ld_shlibs=no | 
 | 12311 | 	cat <<EOF 1>&2 | 
 | 12312 |  | 
 | 12313 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 12314 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 12315 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 12316 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 12317 | *** your PATH or compiler configuration so that the native linker is | 
 | 12318 | *** used, and then restart. | 
 | 12319 |  | 
 | 12320 | EOF | 
 | 12321 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12322 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12323 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12324 |       else | 
 | 12325 | 	ld_shlibs=no | 
 | 12326 |       fi | 
 | 12327 |       ;; | 
 | 12328 |  | 
 | 12329 |     sunos4*) | 
 | 12330 |       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 12331 |       wlarc= | 
 | 12332 |       hardcode_direct=yes | 
 | 12333 |       hardcode_shlibpath_var=no | 
 | 12334 |       ;; | 
 | 12335 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12336 |   linux*) | 
 | 12337 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12338 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12339 | 	archive_cmds="$tmp_archive_cmds" | 
 | 12340 |       supports_anon_versioning=no | 
 | 12341 |       case `$LD -v 2>/dev/null` in | 
 | 12342 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 12343 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 12344 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 12345 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 12346 |         *) supports_anon_versioning=yes ;; | 
 | 12347 |       esac | 
 | 12348 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12349 |         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 12350 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 12351 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12352 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 12353 |       else | 
 | 12354 |         archive_expsym_cmds="$tmp_archive_cmds" | 
 | 12355 |       fi | 
 | 12356 |     else | 
 | 12357 |       ld_shlibs=no | 
 | 12358 |     fi | 
 | 12359 |     ;; | 
 | 12360 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12361 |     *) | 
 | 12362 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12363 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12364 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12365 |       else | 
 | 12366 | 	ld_shlibs=no | 
 | 12367 |       fi | 
 | 12368 |       ;; | 
 | 12369 |     esac | 
 | 12370 |  | 
 | 12371 |     if test "$ld_shlibs" = yes; then | 
 | 12372 |       runpath_var=LD_RUN_PATH | 
 | 12373 |       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
 | 12374 |       export_dynamic_flag_spec='${wl}--export-dynamic' | 
 | 12375 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 12376 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 12377 |  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 12378 |       else | 
 | 12379 |   	whole_archive_flag_spec= | 
 | 12380 |       fi | 
 | 12381 |     fi | 
 | 12382 |   else | 
 | 12383 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 12384 |     case $host_os in | 
 | 12385 |     aix3*) | 
 | 12386 |       allow_undefined_flag=unsupported | 
 | 12387 |       always_export_symbols=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12388 |       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] | 12389 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 12390 |       # are no directories specified by -L. | 
 | 12391 |       hardcode_minus_L=yes | 
 | 12392 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 12393 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 12394 | 	# broken collect2. | 
 | 12395 | 	hardcode_direct=unsupported | 
 | 12396 |       fi | 
 | 12397 |       ;; | 
 | 12398 |  | 
 | 12399 |     aix4* | aix5*) | 
 | 12400 |       if test "$host_cpu" = ia64; then | 
 | 12401 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 12402 | 	# have to do anything special. | 
 | 12403 | 	aix_use_runtimelinking=no | 
 | 12404 | 	exp_sym_flag='-Bexport' | 
 | 12405 | 	no_entry_flag="" | 
 | 12406 |       else | 
 | 12407 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 12408 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 12409 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 12410 | 	  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' | 
 | 12411 | 	else | 
 | 12412 | 	  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' | 
 | 12413 | 	fi | 
 | 12414 | 	aix_use_runtimelinking=no | 
 | 12415 |  | 
 | 12416 | 	# Test if we are trying to use run time linking or normal | 
 | 12417 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 12418 | 	# need to do runtime linking. | 
 | 12419 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 12420 | 	  for ld_flag in $LDFLAGS; do | 
 | 12421 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 12422 |   	    aix_use_runtimelinking=yes | 
 | 12423 |   	    break | 
 | 12424 |   	  fi | 
 | 12425 | 	  done | 
 | 12426 | 	esac | 
 | 12427 |  | 
 | 12428 | 	exp_sym_flag='-bexport' | 
 | 12429 | 	no_entry_flag='-bnoentry' | 
 | 12430 |       fi | 
 | 12431 |  | 
 | 12432 |       # When large executables or shared objects are built, AIX ld can | 
 | 12433 |       # have problems creating the table of contents.  If linking a library | 
 | 12434 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 12435 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 12436 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 12437 |  | 
 | 12438 |       archive_cmds='' | 
 | 12439 |       hardcode_direct=yes | 
 | 12440 |       hardcode_libdir_separator=':' | 
 | 12441 |       link_all_deplibs=yes | 
 | 12442 |  | 
 | 12443 |       if test "$GCC" = yes; then | 
 | 12444 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 12445 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 12446 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 12447 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 12448 | 	  if test -f "$collect2name" && \ | 
 | 12449 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 12450 | 	  then | 
 | 12451 |   	  # We have reworked collect2 | 
 | 12452 |   	  hardcode_direct=yes | 
 | 12453 | 	  else | 
 | 12454 |   	  # We have old collect2 | 
 | 12455 |   	  hardcode_direct=unsupported | 
 | 12456 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 12457 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 12458 |   	  # to unsupported forces relinking | 
 | 12459 |   	  hardcode_minus_L=yes | 
 | 12460 |   	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 12461 |   	  hardcode_libdir_separator= | 
 | 12462 | 	  fi | 
 | 12463 | 	esac | 
 | 12464 | 	shared_flag='-shared' | 
 | 12465 |       else | 
 | 12466 | 	# not using gcc | 
 | 12467 | 	if test "$host_cpu" = ia64; then | 
 | 12468 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 12469 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 12470 | 	  shared_flag='-G' | 
 | 12471 | 	else | 
 | 12472 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 12473 | 	    shared_flag='${wl}-G' | 
 | 12474 | 	  else | 
 | 12475 | 	    shared_flag='${wl}-bM:SRE' | 
 | 12476 |   	fi | 
 | 12477 | 	fi | 
 | 12478 |       fi | 
 | 12479 |  | 
 | 12480 |       # It seems that -bexpall does not export symbols beginning with | 
 | 12481 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 12482 |       always_export_symbols=yes | 
 | 12483 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 12484 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 12485 | 	# -berok will link without error, but may produce a broken library. | 
 | 12486 | 	allow_undefined_flag='-berok' | 
 | 12487 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 12488 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12489 | /* confdefs.h.  */ | 
 | 12490 | _ACEOF | 
 | 12491 | cat confdefs.h >>conftest.$ac_ext | 
 | 12492 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12493 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12494 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12495 | int | 
 | 12496 | main () | 
 | 12497 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12498 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12499 |   ; | 
 | 12500 |   return 0; | 
 | 12501 | } | 
 | 12502 | _ACEOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12503 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12505 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12506 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12507 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12508 |   rm -f conftest.er1 | 
 | 12509 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12510 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12511 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12512 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 12513 | 			 || test ! -s conftest.err' | 
 | 12514 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12515 |   (eval $ac_try) 2>&5 | 
 | 12516 |   ac_status=$? | 
 | 12517 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12518 |   (exit $ac_status); }; } && | 
 | 12519 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12520 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12521 |   (eval $ac_try) 2>&5 | 
 | 12522 |   ac_status=$? | 
 | 12523 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12524 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12525 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12526 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 12527 | }'` | 
 | 12528 | # Check for a 64-bit object if we didn't find anything. | 
 | 12529 | 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; } | 
 | 12530 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12531 | else | 
 | 12532 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12533 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12534 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12535 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12536 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12537 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12538 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12539 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12540 |        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 12541 | 	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" | 
 | 12542 |        else | 
 | 12543 | 	if test "$host_cpu" = ia64; then | 
 | 12544 | 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
 | 12545 | 	  allow_undefined_flag="-z nodefs" | 
 | 12546 | 	  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" | 
 | 12547 | 	else | 
 | 12548 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 12549 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12550 | /* confdefs.h.  */ | 
 | 12551 | _ACEOF | 
 | 12552 | cat confdefs.h >>conftest.$ac_ext | 
 | 12553 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12554 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12555 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12556 | int | 
 | 12557 | main () | 
 | 12558 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12559 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12560 |   ; | 
 | 12561 |   return 0; | 
 | 12562 | } | 
 | 12563 | _ACEOF | 
 | 12564 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 12565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12566 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12567 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12568 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12569 |   rm -f conftest.er1 | 
 | 12570 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12571 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12572 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12573 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 12574 | 			 || test ! -s conftest.err' | 
 | 12575 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12576 |   (eval $ac_try) 2>&5 | 
 | 12577 |   ac_status=$? | 
 | 12578 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12579 |   (exit $ac_status); }; } && | 
 | 12580 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12581 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 12582 |   (eval $ac_try) 2>&5 | 
 | 12583 |   ac_status=$? | 
 | 12584 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12585 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12586 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12587 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 12588 | }'` | 
 | 12589 | # Check for a 64-bit object if we didn't find anything. | 
 | 12590 | 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; } | 
 | 12591 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12592 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12593 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12594 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12595 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12596 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12597 | rm -f conftest.err conftest.$ac_objext \ | 
 | 12598 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12599 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12600 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12601 | 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 12602 | 	  # Warning - without using the other run time loading flags, | 
 | 12603 | 	  # -berok will link without error, but may produce a broken library. | 
 | 12604 | 	  no_undefined_flag=' ${wl}-bernotok' | 
 | 12605 | 	  allow_undefined_flag=' ${wl}-berok' | 
 | 12606 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 12607 | 	  always_export_symbols=yes | 
 | 12608 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 12609 | 	  whole_archive_flag_spec=' ' | 
 | 12610 | 	  archive_cmds_need_lc=yes | 
 | 12611 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12612 | 	  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] | 12613 | 	fi | 
 | 12614 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12615 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12616 |  | 
 | 12617 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12618 |       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] | 12619 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12620 |       hardcode_minus_L=yes | 
 | 12621 |       # see comment about different semantics on the GNU ld section | 
 | 12622 |       ld_shlibs=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12623 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12624 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12625 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12626 |       export_dynamic_flag_spec=-rdynamic | 
 | 12627 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12628 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12629 |     cygwin* | mingw* | pw32*) | 
 | 12630 |       # When not using gcc, we currently assume that we are using | 
 | 12631 |       # Microsoft Visual C++. | 
 | 12632 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 12633 |       # no search path for DLLs. | 
 | 12634 |       hardcode_libdir_flag_spec=' ' | 
 | 12635 |       allow_undefined_flag=unsupported | 
 | 12636 |       # Tell ltmain to make .lib files, not .a files. | 
 | 12637 |       libext=lib | 
 | 12638 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12639 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12640 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12641 |       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] | 12642 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 12643 |       old_archive_From_new_cmds='true' | 
 | 12644 |       # FIXME: Should let the user specify the lib program. | 
 | 12645 |       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 12646 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 12647 |       enable_shared_with_static_runtimes=yes | 
 | 12648 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12649 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12650 |     darwin* | rhapsody*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12651 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12652 |         rhapsody* | darwin1.[012]) | 
 | 12653 |          allow_undefined_flag='${wl}-undefined ${wl}suppress' | 
 | 12654 |          ;; | 
 | 12655 |        *) # Darwin 1.3 on | 
 | 12656 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 12657 |            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 12658 |          else | 
 | 12659 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 12660 |              10.[012]) | 
 | 12661 |                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 12662 |                ;; | 
 | 12663 |              10.*) | 
 | 12664 |                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | 
 | 12665 |                ;; | 
 | 12666 |            esac | 
 | 12667 |          fi | 
 | 12668 |          ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12669 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12670 |       archive_cmds_need_lc=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12671 |       hardcode_direct=no | 
 | 12672 |       hardcode_automatic=yes | 
 | 12673 |       hardcode_shlibpath_var=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12674 |       whole_archive_flag_spec='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12675 |       link_all_deplibs=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12676 |     if test "$GCC" = yes ; then | 
 | 12677 |     	output_verbose_link_cmd='echo' | 
 | 12678 |         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 12679 |       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 12680 |       # 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] | 12681 |       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}' | 
 | 12682 |       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] | 12683 |     else | 
 | 12684 |       case "$cc_basename" in | 
 | 12685 |         xlc*) | 
 | 12686 |          output_verbose_link_cmd='echo' | 
 | 12687 |          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 12688 |          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 12689 |           # 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] | 12690 |          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}' | 
 | 12691 |           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] | 12692 |           ;; | 
 | 12693 |        *) | 
 | 12694 |          ld_shlibs=no | 
 | 12695 |           ;; | 
 | 12696 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12697 |     fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12698 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12699 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12700 |     dgux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12701 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12702 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12703 |       hardcode_shlibpath_var=no | 
 | 12704 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12705 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12706 |     freebsd1*) | 
 | 12707 |       ld_shlibs=no | 
 | 12708 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12709 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12710 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 12711 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 12712 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 12713 |     # extra space). | 
 | 12714 |     freebsd2.2*) | 
 | 12715 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 12716 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 12717 |       hardcode_direct=yes | 
 | 12718 |       hardcode_shlibpath_var=no | 
 | 12719 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12720 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12721 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 12722 |     freebsd2*) | 
 | 12723 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 12724 |       hardcode_direct=yes | 
 | 12725 |       hardcode_minus_L=yes | 
 | 12726 |       hardcode_shlibpath_var=no | 
 | 12727 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12728 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12729 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12730 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12731 |       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12732 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 12733 |       hardcode_direct=yes | 
 | 12734 |       hardcode_shlibpath_var=no | 
 | 12735 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12736 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12737 |     hpux9*) | 
 | 12738 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12739 | 	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] | 12740 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12741 | 	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] | 12742 |       fi | 
 | 12743 |       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 12744 |       hardcode_libdir_separator=: | 
 | 12745 |       hardcode_direct=yes | 
 | 12746 |  | 
 | 12747 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 12748 |       # but as the default location of the library. | 
 | 12749 |       hardcode_minus_L=yes | 
 | 12750 |       export_dynamic_flag_spec='${wl}-E' | 
 | 12751 |       ;; | 
 | 12752 |  | 
 | 12753 |     hpux10* | hpux11*) | 
 | 12754 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 12755 | 	case "$host_cpu" in | 
 | 12756 | 	hppa*64*|ia64*) | 
 | 12757 | 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12758 | 	  ;; | 
 | 12759 | 	*) | 
 | 12760 | 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12761 | 	  ;; | 
 | 12762 | 	esac | 
 | 12763 |       else | 
 | 12764 | 	case "$host_cpu" in | 
 | 12765 | 	hppa*64*|ia64*) | 
 | 12766 | 	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 12767 | 	  ;; | 
 | 12768 | 	*) | 
 | 12769 | 	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 12770 | 	  ;; | 
 | 12771 | 	esac | 
 | 12772 |       fi | 
 | 12773 |       if test "$with_gnu_ld" = no; then | 
 | 12774 | 	case "$host_cpu" in | 
 | 12775 | 	hppa*64*) | 
 | 12776 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 12777 | 	  hardcode_libdir_flag_spec_ld='+b $libdir' | 
 | 12778 | 	  hardcode_libdir_separator=: | 
 | 12779 | 	  hardcode_direct=no | 
 | 12780 | 	  hardcode_shlibpath_var=no | 
 | 12781 | 	  ;; | 
 | 12782 | 	ia64*) | 
 | 12783 | 	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 12784 | 	  hardcode_direct=no | 
 | 12785 | 	  hardcode_shlibpath_var=no | 
 | 12786 |  | 
 | 12787 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 12788 | 	  # but as the default location of the library. | 
 | 12789 | 	  hardcode_minus_L=yes | 
 | 12790 | 	  ;; | 
 | 12791 | 	*) | 
 | 12792 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 12793 | 	  hardcode_libdir_separator=: | 
 | 12794 | 	  hardcode_direct=yes | 
 | 12795 | 	  export_dynamic_flag_spec='${wl}-E' | 
 | 12796 |  | 
 | 12797 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 12798 | 	  # but as the default location of the library. | 
 | 12799 | 	  hardcode_minus_L=yes | 
 | 12800 | 	  ;; | 
 | 12801 | 	esac | 
 | 12802 |       fi | 
 | 12803 |       ;; | 
 | 12804 |  | 
 | 12805 |     irix5* | irix6* | nonstopux*) | 
 | 12806 |       if test "$GCC" = yes; then | 
 | 12807 | 	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' | 
 | 12808 |       else | 
 | 12809 | 	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' | 
 | 12810 | 	hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
 | 12811 |       fi | 
 | 12812 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 12813 |       hardcode_libdir_separator=: | 
 | 12814 |       link_all_deplibs=yes | 
 | 12815 |       ;; | 
 | 12816 |  | 
 | 12817 |     netbsd*) | 
 | 12818 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 12819 | 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 12820 |       else | 
 | 12821 | 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 12822 |       fi | 
 | 12823 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 12824 |       hardcode_direct=yes | 
 | 12825 |       hardcode_shlibpath_var=no | 
 | 12826 |       ;; | 
 | 12827 |  | 
 | 12828 |     newsos6) | 
 | 12829 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 12830 |       hardcode_direct=yes | 
 | 12831 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 12832 |       hardcode_libdir_separator=: | 
 | 12833 |       hardcode_shlibpath_var=no | 
 | 12834 |       ;; | 
 | 12835 |  | 
 | 12836 |     openbsd*) | 
 | 12837 |       hardcode_direct=yes | 
 | 12838 |       hardcode_shlibpath_var=no | 
 | 12839 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 12840 | 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12841 | 	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] | 12842 | 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 12843 | 	export_dynamic_flag_spec='${wl}-E' | 
 | 12844 |       else | 
 | 12845 |        case $host_os in | 
 | 12846 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 12847 | 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 12848 | 	   hardcode_libdir_flag_spec='-R$libdir' | 
 | 12849 | 	   ;; | 
 | 12850 | 	 *) | 
 | 12851 | 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12852 | 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 12853 | 	   ;; | 
 | 12854 |        esac | 
 | 12855 |       fi | 
 | 12856 |       ;; | 
 | 12857 |  | 
 | 12858 |     os2*) | 
 | 12859 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12860 |       hardcode_minus_L=yes | 
 | 12861 |       allow_undefined_flag=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 12862 |       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] | 12863 |       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 12864 |       ;; | 
 | 12865 |  | 
 | 12866 |     osf3*) | 
 | 12867 |       if test "$GCC" = yes; then | 
 | 12868 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 12869 | 	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' | 
 | 12870 |       else | 
 | 12871 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 12872 | 	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' | 
 | 12873 |       fi | 
 | 12874 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 12875 |       hardcode_libdir_separator=: | 
 | 12876 |       ;; | 
 | 12877 |  | 
 | 12878 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 12879 |       if test "$GCC" = yes; then | 
 | 12880 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 12881 | 	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' | 
 | 12882 | 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 12883 |       else | 
 | 12884 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 12885 | 	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] | 12886 | 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
 | 12887 | 	$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' | 
 | 12888 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12889 | 	# Both c and cxx compiler support -rpath directly | 
 | 12890 | 	hardcode_libdir_flag_spec='-rpath $libdir' | 
 | 12891 |       fi | 
 | 12892 |       hardcode_libdir_separator=: | 
 | 12893 |       ;; | 
 | 12894 |  | 
 | 12895 |     sco3.2v5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12896 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 12897 |       hardcode_shlibpath_var=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12898 |       export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12899 |       runpath_var=LD_RUN_PATH | 
 | 12900 |       hardcode_runpath_var=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12901 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12902 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12903 |     solaris*) | 
 | 12904 |       no_undefined_flag=' -z text' | 
 | 12905 |       if test "$GCC" = yes; then | 
 | 12906 | 	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] | 12907 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 12908 | 	  $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] | 12909 |       else | 
 | 12910 | 	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] | 12911 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 12912 |   	$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] | 12913 |       fi | 
 | 12914 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 12915 |       hardcode_shlibpath_var=no | 
 | 12916 |       case $host_os in | 
 | 12917 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 12918 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 12919 | 	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
 | 12920 |       esac | 
 | 12921 |       link_all_deplibs=yes | 
 | 12922 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12923 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12924 |     sunos4*) | 
 | 12925 |       if test "x$host_vendor" = xsequent; then | 
 | 12926 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 12927 | 	# files that make .init and .fini sections work. | 
 | 12928 | 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12929 |       else | 
 | 12930 | 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 12931 |       fi | 
 | 12932 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 12933 |       hardcode_direct=yes | 
 | 12934 |       hardcode_minus_L=yes | 
 | 12935 |       hardcode_shlibpath_var=no | 
 | 12936 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12937 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12938 |     sysv4) | 
 | 12939 |       case $host_vendor in | 
 | 12940 | 	sni) | 
 | 12941 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 12942 | 	  hardcode_direct=yes # is this really true??? | 
 | 12943 | 	;; | 
 | 12944 | 	siemens) | 
 | 12945 | 	  ## LD is ld it makes a PLAMLIB | 
 | 12946 | 	  ## CC just makes a GrossModule. | 
 | 12947 | 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 12948 | 	  reload_cmds='$CC -r -o $output$reload_objs' | 
 | 12949 | 	  hardcode_direct=no | 
 | 12950 |         ;; | 
 | 12951 | 	motorola) | 
 | 12952 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 12953 | 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
 | 12954 | 	;; | 
 | 12955 |       esac | 
 | 12956 |       runpath_var='LD_RUN_PATH' | 
 | 12957 |       hardcode_shlibpath_var=no | 
 | 12958 |       ;; | 
 | 12959 |  | 
 | 12960 |     sysv4.3*) | 
 | 12961 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 12962 |       hardcode_shlibpath_var=no | 
 | 12963 |       export_dynamic_flag_spec='-Bexport' | 
 | 12964 |       ;; | 
 | 12965 |  | 
 | 12966 |     sysv4*MP*) | 
 | 12967 |       if test -d /usr/nec; then | 
 | 12968 | 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 12969 | 	hardcode_shlibpath_var=no | 
 | 12970 | 	runpath_var=LD_RUN_PATH | 
 | 12971 | 	hardcode_runpath_var=yes | 
 | 12972 | 	ld_shlibs=yes | 
 | 12973 |       fi | 
 | 12974 |       ;; | 
 | 12975 |  | 
 | 12976 |     sysv4.2uw2*) | 
 | 12977 |       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 12978 |       hardcode_direct=yes | 
 | 12979 |       hardcode_minus_L=no | 
 | 12980 |       hardcode_shlibpath_var=no | 
 | 12981 |       hardcode_runpath_var=yes | 
 | 12982 |       runpath_var=LD_RUN_PATH | 
 | 12983 |       ;; | 
 | 12984 |  | 
 | 12985 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 12986 |       no_undefined_flag='${wl}-z ${wl}text' | 
 | 12987 |       if test "$GCC" = yes; then | 
 | 12988 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12989 |       else | 
 | 12990 | 	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 12991 |       fi | 
 | 12992 |       runpath_var='LD_RUN_PATH' | 
 | 12993 |       hardcode_shlibpath_var=no | 
 | 12994 |       ;; | 
 | 12995 |  | 
 | 12996 |     sysv5*) | 
 | 12997 |       no_undefined_flag=' -z text' | 
 | 12998 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 12999 |       # object files and a static libstdc++, better avoid it by now | 
 | 13000 |       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] | 13001 |       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 13002 |   		$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] | 13003 |       hardcode_libdir_flag_spec= | 
 | 13004 |       hardcode_shlibpath_var=no | 
 | 13005 |       runpath_var='LD_RUN_PATH' | 
 | 13006 |       ;; | 
 | 13007 |  | 
 | 13008 |     uts4*) | 
 | 13009 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13010 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 13011 |       hardcode_shlibpath_var=no | 
 | 13012 |       ;; | 
 | 13013 |  | 
 | 13014 |     *) | 
 | 13015 |       ld_shlibs=no | 
 | 13016 |       ;; | 
 | 13017 |     esac | 
 | 13018 |   fi | 
 | 13019 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13020 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
 | 13021 | echo "${ECHO_T}$ld_shlibs" >&6 | 
 | 13022 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13023 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13024 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 13025 | if test "$GCC" = yes; then | 
 | 13026 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 13027 | fi | 
 | 13028 |  | 
 | 13029 | # | 
 | 13030 | # Do we need to explicitly link libc? | 
 | 13031 | # | 
 | 13032 | case "x$archive_cmds_need_lc" in | 
 | 13033 | x|xyes) | 
 | 13034 |   # Assume -lc should be added | 
 | 13035 |   archive_cmds_need_lc=yes | 
 | 13036 |  | 
 | 13037 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 13038 |     case $archive_cmds in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13039 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13040 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 13041 |       ;; | 
 | 13042 |     '$CC '*) | 
 | 13043 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 13044 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 13045 |       # to ld, don't add -lc before -lgcc. | 
 | 13046 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 13047 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 13048 |       $rm conftest* | 
 | 13049 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13050 |  | 
 | 13051 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 13052 |   (eval $ac_compile) 2>&5 | 
 | 13053 |   ac_status=$? | 
 | 13054 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13055 |   (exit $ac_status); } 2>conftest.err; then | 
 | 13056 |         soname=conftest | 
 | 13057 |         lib=conftest | 
 | 13058 |         libobjs=conftest.$ac_objext | 
 | 13059 |         deplibs= | 
 | 13060 |         wl=$lt_prog_compiler_wl | 
 | 13061 |         compiler_flags=-v | 
 | 13062 |         linker_flags=-v | 
 | 13063 |         verstring= | 
 | 13064 |         output_objdir=. | 
 | 13065 |         libname=conftest | 
 | 13066 |         lt_save_allow_undefined_flag=$allow_undefined_flag | 
 | 13067 |         allow_undefined_flag= | 
 | 13068 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 13069 |   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 13070 |   ac_status=$? | 
 | 13071 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13072 |   (exit $ac_status); } | 
 | 13073 |         then | 
 | 13074 | 	  archive_cmds_need_lc=no | 
 | 13075 |         else | 
 | 13076 | 	  archive_cmds_need_lc=yes | 
 | 13077 |         fi | 
 | 13078 |         allow_undefined_flag=$lt_save_allow_undefined_flag | 
 | 13079 |       else | 
 | 13080 |         cat conftest.err 1>&5 | 
 | 13081 |       fi | 
 | 13082 |       $rm conftest* | 
 | 13083 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
 | 13084 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 
 | 13085 |       ;; | 
 | 13086 |     esac | 
 | 13087 |   fi | 
 | 13088 |   ;; | 
 | 13089 | esac | 
 | 13090 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13091 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 13092 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 13093 | library_names_spec= | 
 | 13094 | libname_spec='lib$name' | 
 | 13095 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13096 | shrext_cmds=".so" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13097 | postinstall_cmds= | 
 | 13098 | postuninstall_cmds= | 
 | 13099 | finish_cmds= | 
 | 13100 | finish_eval= | 
 | 13101 | shlibpath_var= | 
 | 13102 | shlibpath_overrides_runpath=unknown | 
 | 13103 | version_type=none | 
 | 13104 | dynamic_linker="$host_os ld.so" | 
 | 13105 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13106 | if test "$GCC" = yes; then | 
 | 13107 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 13108 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 13109 |     # if the path contains ";" then we assume it to be the separator | 
 | 13110 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 13111 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 13112 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 13113 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 13114 |   else | 
 | 13115 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 13116 |   fi | 
 | 13117 | else | 
 | 13118 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 13119 | fi | 
 | 13120 | need_lib_prefix=unknown | 
 | 13121 | hardcode_into_libs=no | 
 | 13122 |  | 
 | 13123 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 13124 | # flags to be left without arguments | 
 | 13125 | need_version=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13126 |  | 
 | 13127 | case $host_os in | 
 | 13128 | aix3*) | 
 | 13129 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13130 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13131 |   shlibpath_var=LIBPATH | 
 | 13132 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13133 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 13134 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13135 |   ;; | 
 | 13136 |  | 
 | 13137 | aix4* | aix5*) | 
 | 13138 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13139 |   need_lib_prefix=no | 
 | 13140 |   need_version=no | 
 | 13141 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13142 |   if test "$host_cpu" = ia64; then | 
 | 13143 |     # AIX 5 supports IA64 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13144 |     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] | 13145 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 13146 |   else | 
 | 13147 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 13148 |     # for dependence libraries.  The import file would start with | 
 | 13149 |     # the line `#! .'.  This would cause the generated library to | 
 | 13150 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 13151 |     # development snapshots of GCC prior to 3.0. | 
 | 13152 |     case $host_os in | 
 | 13153 |       aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13154 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 13155 | 	   echo ' yes ' | 
 | 13156 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 13157 | 	: | 
 | 13158 |       else | 
 | 13159 | 	can_build_shared=no | 
 | 13160 |       fi | 
 | 13161 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13162 |     esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13163 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 13164 |     # soname into executable. Probably we can add versioning support to | 
 | 13165 |     # collect2, so additional links can be useful in future. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13166 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 13167 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 13168 |       # instead of lib<name>.a to let people know that these are not | 
 | 13169 |       # typical AIX shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13170 |       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] | 13171 |     else | 
 | 13172 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 13173 |       # and later when we are not doing run time linking. | 
 | 13174 |       library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13175 |       soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13176 |     fi | 
 | 13177 |     shlibpath_var=LIBPATH | 
 | 13178 |   fi | 
 | 13179 |   ;; | 
 | 13180 |  | 
 | 13181 | amigaos*) | 
 | 13182 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 13183 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13184 |   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] | 13185 |   ;; | 
 | 13186 |  | 
 | 13187 | beos*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13188 |   library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13189 |   dynamic_linker="$host_os ld.so" | 
 | 13190 |   shlibpath_var=LIBRARY_PATH | 
 | 13191 |   ;; | 
 | 13192 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13193 | bsdi[45]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13194 |   version_type=linux | 
 | 13195 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13196 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13197 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13198 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 13199 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13200 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 13201 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13202 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 13203 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 13204 |   # libtool to hard-code these into programs | 
 | 13205 |   ;; | 
 | 13206 |  | 
 | 13207 | cygwin* | mingw* | pw32*) | 
 | 13208 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13209 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13210 |   need_version=no | 
 | 13211 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13212 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13213 |   case $GCC,$host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13214 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13215 |     library_names_spec='$libname.dll.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13216 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13217 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 13218 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 13219 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 13220 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13221 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13222 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 13223 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13224 |        $rm \$dlpath' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13225 |     shlibpath_overrides_runpath=yes | 
 | 13226 |  | 
 | 13227 |     case $host_os in | 
 | 13228 |     cygwin*) | 
 | 13229 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 13230 |       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] | 13231 |       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] | 13232 |       ;; | 
 | 13233 |     mingw*) | 
 | 13234 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 13235 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 13236 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 13237 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 13238 |         # It is most probably a Windows format PATH printed by | 
 | 13239 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 13240 |         # path with ; separators, and with drive letters. We can handle the | 
 | 13241 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 13242 |         # especially as we might pass files found there to a mingw objdump, | 
 | 13243 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 13244 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 13245 |       else | 
 | 13246 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 13247 |       fi | 
 | 13248 |       ;; | 
 | 13249 |     pw32*) | 
 | 13250 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 13251 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 13252 |       ;; | 
 | 13253 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13254 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13255 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13256 |   *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13257 |     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] | 13258 |     ;; | 
 | 13259 |   esac | 
 | 13260 |   dynamic_linker='Win32 ld.exe' | 
 | 13261 |   # FIXME: first we should search . and the directory the executable is in | 
 | 13262 |   shlibpath_var=PATH | 
 | 13263 |   ;; | 
 | 13264 |  | 
 | 13265 | darwin* | rhapsody*) | 
 | 13266 |   dynamic_linker="$host_os dyld" | 
 | 13267 |   version_type=darwin | 
 | 13268 |   need_lib_prefix=no | 
 | 13269 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13270 |   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] | 13271 |   soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13272 |   shlibpath_overrides_runpath=yes | 
 | 13273 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13274 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13275 |   # 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] | 13276 |   if test "$GCC" = yes; then | 
 | 13277 |     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"` | 
 | 13278 |   else | 
 | 13279 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13280 |   fi | 
 | 13281 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 13282 |   ;; | 
 | 13283 |  | 
 | 13284 | dgux*) | 
 | 13285 |   version_type=linux | 
 | 13286 |   need_lib_prefix=no | 
 | 13287 |   need_version=no | 
 | 13288 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 13289 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13290 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13291 |   ;; | 
 | 13292 |  | 
 | 13293 | freebsd1*) | 
 | 13294 |   dynamic_linker=no | 
 | 13295 |   ;; | 
 | 13296 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13297 | kfreebsd*-gnu) | 
 | 13298 |   version_type=linux | 
 | 13299 |   need_lib_prefix=no | 
 | 13300 |   need_version=no | 
 | 13301 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 13302 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13303 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13304 |   shlibpath_overrides_runpath=no | 
 | 13305 |   hardcode_into_libs=yes | 
 | 13306 |   dynamic_linker='GNU ld.so' | 
 | 13307 |   ;; | 
 | 13308 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13309 | freebsd*) | 
 | 13310 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 13311 |   version_type=freebsd-$objformat | 
 | 13312 |   case $version_type in | 
 | 13313 |     freebsd-elf*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13314 |       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] | 13315 |       need_version=no | 
 | 13316 |       need_lib_prefix=no | 
 | 13317 |       ;; | 
 | 13318 |     freebsd-*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13319 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13320 |       need_version=yes | 
 | 13321 |       ;; | 
 | 13322 |   esac | 
 | 13323 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13324 |   case $host_os in | 
 | 13325 |   freebsd2*) | 
 | 13326 |     shlibpath_overrides_runpath=yes | 
 | 13327 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13328 |   freebsd3.01* | freebsdelf3.01*) | 
 | 13329 |     shlibpath_overrides_runpath=yes | 
 | 13330 |     hardcode_into_libs=yes | 
 | 13331 |     ;; | 
 | 13332 |   *) # from 3.2 on | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13333 |     shlibpath_overrides_runpath=no | 
 | 13334 |     hardcode_into_libs=yes | 
 | 13335 |     ;; | 
 | 13336 |   esac | 
 | 13337 |   ;; | 
 | 13338 |  | 
 | 13339 | gnu*) | 
 | 13340 |   version_type=linux | 
 | 13341 |   need_lib_prefix=no | 
 | 13342 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13343 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 13344 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13345 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13346 |   hardcode_into_libs=yes | 
 | 13347 |   ;; | 
 | 13348 |  | 
 | 13349 | hpux9* | hpux10* | hpux11*) | 
 | 13350 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 13351 |   # link against other versions. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13352 |   version_type=sunos | 
 | 13353 |   need_lib_prefix=no | 
 | 13354 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13355 |   case "$host_cpu" in | 
 | 13356 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13357 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13358 |     hardcode_into_libs=yes | 
 | 13359 |     dynamic_linker="$host_os dld.so" | 
 | 13360 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 13361 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 13362 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13363 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13364 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 13365 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 13366 |     else | 
 | 13367 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 13368 |     fi | 
 | 13369 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 13370 |     ;; | 
 | 13371 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13372 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13373 |      hardcode_into_libs=yes | 
 | 13374 |      dynamic_linker="$host_os dld.sl" | 
 | 13375 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 13376 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 13377 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13378 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13379 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 13380 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 13381 |      ;; | 
 | 13382 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13383 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13384 |     dynamic_linker="$host_os dld.sl" | 
 | 13385 |     shlibpath_var=SHLIB_PATH | 
 | 13386 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 13387 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13388 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13389 |     ;; | 
 | 13390 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13391 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 13392 |   postinstall_cmds='chmod 555 $lib' | 
 | 13393 |   ;; | 
 | 13394 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13395 | irix5* | irix6* | nonstopux*) | 
 | 13396 |   case $host_os in | 
 | 13397 |     nonstopux*) version_type=nonstopux ;; | 
 | 13398 |     *) | 
 | 13399 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 13400 | 		version_type=linux | 
 | 13401 | 	else | 
 | 13402 | 		version_type=irix | 
 | 13403 | 	fi ;; | 
 | 13404 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13405 |   need_lib_prefix=no | 
 | 13406 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13407 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13408 |   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] | 13409 |   case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13410 |   irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13411 |     libsuff= shlibsuff= | 
 | 13412 |     ;; | 
 | 13413 |   *) | 
 | 13414 |     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] | 13415 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 13416 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 13417 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 13418 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 13419 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 13420 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13421 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 13422 |     esac | 
 | 13423 |     ;; | 
 | 13424 |   esac | 
 | 13425 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 13426 |   shlibpath_overrides_runpath=no | 
 | 13427 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 13428 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13429 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13430 |   ;; | 
 | 13431 |  | 
 | 13432 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13433 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13434 |   dynamic_linker=no | 
 | 13435 |   ;; | 
 | 13436 |  | 
 | 13437 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13438 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13439 |   version_type=linux | 
 | 13440 |   need_lib_prefix=no | 
 | 13441 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13442 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13443 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13444 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 13445 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13446 |   shlibpath_overrides_runpath=no | 
 | 13447 |   # This implies no fast_install, which is unacceptable. | 
 | 13448 |   # Some rework will be needed to allow for fast_install | 
 | 13449 |   # before this can be enabled. | 
 | 13450 |   hardcode_into_libs=yes | 
 | 13451 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13452 |   # Append ld.so.conf contents to the search path | 
 | 13453 |   if test -f /etc/ld.so.conf; then | 
 | 13454 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 13455 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 13456 |   fi | 
 | 13457 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13458 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 13459 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 13460 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 13461 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 13462 |   # people can always --disable-shared, the test was removed, and we | 
 | 13463 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 13464 |   dynamic_linker='GNU/Linux ld.so' | 
 | 13465 |   ;; | 
 | 13466 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13467 | knetbsd*-gnu) | 
 | 13468 |   version_type=linux | 
 | 13469 |   need_lib_prefix=no | 
 | 13470 |   need_version=no | 
 | 13471 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 13472 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13473 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13474 |   shlibpath_overrides_runpath=no | 
 | 13475 |   hardcode_into_libs=yes | 
 | 13476 |   dynamic_linker='GNU ld.so' | 
 | 13477 |   ;; | 
 | 13478 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13479 | netbsd*) | 
 | 13480 |   version_type=sunos | 
 | 13481 |   need_lib_prefix=no | 
 | 13482 |   need_version=no | 
 | 13483 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13484 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13485 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 13486 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 13487 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13488 |     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] | 13489 |     soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13490 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 13491 |   fi | 
 | 13492 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13493 |   shlibpath_overrides_runpath=yes | 
 | 13494 |   hardcode_into_libs=yes | 
 | 13495 |   ;; | 
 | 13496 |  | 
 | 13497 | newsos6) | 
 | 13498 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13499 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13500 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13501 |   shlibpath_overrides_runpath=yes | 
 | 13502 |   ;; | 
 | 13503 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13504 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13505 |   version_type=linux | 
 | 13506 |   need_lib_prefix=no | 
 | 13507 |   need_version=no | 
 | 13508 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13509 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13510 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13511 |   shlibpath_overrides_runpath=yes | 
 | 13512 |   ;; | 
 | 13513 |  | 
 | 13514 | openbsd*) | 
 | 13515 |   version_type=sunos | 
 | 13516 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 13517 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13518 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 13519 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 13520 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13521 |   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] | 13522 |     case $host_os in | 
 | 13523 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 13524 | 	shlibpath_overrides_runpath=no | 
 | 13525 | 	;; | 
 | 13526 |       *) | 
 | 13527 | 	shlibpath_overrides_runpath=yes | 
 | 13528 | 	;; | 
 | 13529 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13530 |   else | 
 | 13531 |     shlibpath_overrides_runpath=yes | 
 | 13532 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13533 |   ;; | 
 | 13534 |  | 
 | 13535 | os2*) | 
 | 13536 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13537 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13538 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13539 |   library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13540 |   dynamic_linker='OS/2 ld.exe' | 
 | 13541 |   shlibpath_var=LIBPATH | 
 | 13542 |   ;; | 
 | 13543 |  | 
 | 13544 | osf3* | osf4* | osf5*) | 
 | 13545 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13546 |   need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13547 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13548 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13549 |   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] | 13550 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13551 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 13552 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 13553 |   ;; | 
 | 13554 |  | 
 | 13555 | sco3.2v5*) | 
 | 13556 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13557 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13558 |   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] | 13559 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13560 |   ;; | 
 | 13561 |  | 
 | 13562 | solaris*) | 
 | 13563 |   version_type=linux | 
 | 13564 |   need_lib_prefix=no | 
 | 13565 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13566 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13567 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13568 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13569 |   shlibpath_overrides_runpath=yes | 
 | 13570 |   hardcode_into_libs=yes | 
 | 13571 |   # ldd complains unless libraries are executable | 
 | 13572 |   postinstall_cmds='chmod +x $lib' | 
 | 13573 |   ;; | 
 | 13574 |  | 
 | 13575 | sunos4*) | 
 | 13576 |   version_type=sunos | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13577 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13578 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 13579 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13580 |   shlibpath_overrides_runpath=yes | 
 | 13581 |   if test "$with_gnu_ld" = yes; then | 
 | 13582 |     need_lib_prefix=no | 
 | 13583 |   fi | 
 | 13584 |   need_version=yes | 
 | 13585 |   ;; | 
 | 13586 |  | 
 | 13587 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 13588 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13589 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13590 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13591 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13592 |   case $host_vendor in | 
 | 13593 |     sni) | 
 | 13594 |       shlibpath_overrides_runpath=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13595 |       need_lib_prefix=no | 
 | 13596 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 13597 |       runpath_var=LD_RUN_PATH | 
 | 13598 |       ;; | 
 | 13599 |     siemens) | 
 | 13600 |       need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13601 |       ;; | 
 | 13602 |     motorola) | 
 | 13603 |       need_lib_prefix=no | 
 | 13604 |       need_version=no | 
 | 13605 |       shlibpath_overrides_runpath=no | 
 | 13606 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 13607 |       ;; | 
 | 13608 |   esac | 
 | 13609 |   ;; | 
 | 13610 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13611 | sysv4*MP*) | 
 | 13612 |   if test -d /usr/nec ;then | 
 | 13613 |     version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13614 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 13615 |     soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13616 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 13617 |   fi | 
 | 13618 |   ;; | 
 | 13619 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13620 | uts4*) | 
 | 13621 |   version_type=linux | 
 | 13622 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13623 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13624 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13625 |   ;; | 
 | 13626 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13627 | *) | 
 | 13628 |   dynamic_linker=no | 
 | 13629 |   ;; | 
 | 13630 | esac | 
 | 13631 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 13632 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 13633 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13634 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13635 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 13636 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 13637 | hardcode_action= | 
 | 13638 | if test -n "$hardcode_libdir_flag_spec" || \ | 
 | 13639 |    test -n "$runpath_var" || \ | 
 | 13640 |    test "X$hardcode_automatic" = "Xyes" ; then | 
 | 13641 |  | 
 | 13642 |   # We can hardcode non-existant directories. | 
 | 13643 |   if test "$hardcode_direct" != no && | 
 | 13644 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 13645 |      # have to relink, otherwise we might link with an installed library | 
 | 13646 |      # when we should be linking with a yet-to-be-installed one | 
 | 13647 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
 | 13648 |      test "$hardcode_minus_L" != no; then | 
 | 13649 |     # Linking always hardcodes the temporary library directory. | 
 | 13650 |     hardcode_action=relink | 
 | 13651 |   else | 
 | 13652 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 13653 |     hardcode_action=immediate | 
 | 13654 |   fi | 
 | 13655 | else | 
 | 13656 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 13657 |   # directories. | 
 | 13658 |   hardcode_action=unsupported | 
 | 13659 | fi | 
 | 13660 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
 | 13661 | echo "${ECHO_T}$hardcode_action" >&6 | 
 | 13662 |  | 
 | 13663 | if test "$hardcode_action" = relink; then | 
 | 13664 |   # Fast installation is not supported | 
 | 13665 |   enable_fast_install=no | 
 | 13666 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 13667 |      test "$enable_shared" = no; then | 
 | 13668 |   # Fast installation is not necessary | 
 | 13669 |   enable_fast_install=needless | 
 | 13670 | fi | 
 | 13671 |  | 
 | 13672 | striplib= | 
 | 13673 | old_striplib= | 
 | 13674 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 13675 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 13676 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 13677 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 13678 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 13679 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 13680 | echo "${ECHO_T}yes" >&6 | 
 | 13681 | else | 
 | 13682 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 13683 |   case $host_os in | 
 | 13684 |    darwin*) | 
 | 13685 |        if test -n "$STRIP" ; then | 
 | 13686 |          striplib="$STRIP -x" | 
 | 13687 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 13688 | echo "${ECHO_T}yes" >&6 | 
 | 13689 |        else | 
 | 13690 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 13691 | echo "${ECHO_T}no" >&6 | 
 | 13692 | fi | 
 | 13693 |        ;; | 
 | 13694 |    *) | 
 | 13695 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 13696 | echo "${ECHO_T}no" >&6 | 
 | 13697 |     ;; | 
 | 13698 |   esac | 
 | 13699 | fi | 
 | 13700 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13701 | if test "x$enable_dlopen" != xyes; then | 
 | 13702 |   enable_dlopen=unknown | 
 | 13703 |   enable_dlopen_self=unknown | 
 | 13704 |   enable_dlopen_self_static=unknown | 
 | 13705 | else | 
 | 13706 |   lt_cv_dlopen=no | 
 | 13707 |   lt_cv_dlopen_libs= | 
 | 13708 |  | 
 | 13709 |   case $host_os in | 
 | 13710 |   beos*) | 
 | 13711 |     lt_cv_dlopen="load_add_on" | 
 | 13712 |     lt_cv_dlopen_libs= | 
 | 13713 |     lt_cv_dlopen_self=yes | 
 | 13714 |     ;; | 
 | 13715 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13716 |   mingw* | pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13717 |     lt_cv_dlopen="LoadLibrary" | 
 | 13718 |     lt_cv_dlopen_libs= | 
 | 13719 |    ;; | 
 | 13720 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13721 |   cygwin*) | 
 | 13722 |     lt_cv_dlopen="dlopen" | 
 | 13723 |     lt_cv_dlopen_libs= | 
 | 13724 |    ;; | 
 | 13725 |  | 
 | 13726 |   darwin*) | 
 | 13727 |   # if libdl is installed we need to link against it | 
 | 13728 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 13729 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 13730 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 13731 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13732 | else | 
 | 13733 |   ac_check_lib_save_LIBS=$LIBS | 
 | 13734 | LIBS="-ldl  $LIBS" | 
 | 13735 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13736 | /* confdefs.h.  */ | 
 | 13737 | _ACEOF | 
 | 13738 | cat confdefs.h >>conftest.$ac_ext | 
 | 13739 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13740 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13741 |  | 
 | 13742 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 13743 | #ifdef __cplusplus | 
 | 13744 | extern "C" | 
 | 13745 | #endif | 
 | 13746 | /* We use char because int might match the return type of a gcc2 | 
 | 13747 |    builtin and then its argument prototype would still apply.  */ | 
 | 13748 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13749 | int | 
 | 13750 | main () | 
 | 13751 | { | 
 | 13752 | dlopen (); | 
 | 13753 |   ; | 
 | 13754 |   return 0; | 
 | 13755 | } | 
 | 13756 | _ACEOF | 
 | 13757 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13759 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13760 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13761 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13762 |   rm -f conftest.er1 | 
 | 13763 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13764 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13765 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13766 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 13767 | 			 || test ! -s conftest.err' | 
 | 13768 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13769 |   (eval $ac_try) 2>&5 | 
 | 13770 |   ac_status=$? | 
 | 13771 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13772 |   (exit $ac_status); }; } && | 
 | 13773 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13774 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13775 |   (eval $ac_try) 2>&5 | 
 | 13776 |   ac_status=$? | 
 | 13777 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13778 |   (exit $ac_status); }; }; then | 
 | 13779 |   ac_cv_lib_dl_dlopen=yes | 
 | 13780 | else | 
 | 13781 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13782 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13783 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13784 | ac_cv_lib_dl_dlopen=no | 
 | 13785 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13786 | rm -f conftest.err conftest.$ac_objext \ | 
 | 13787 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13788 | LIBS=$ac_check_lib_save_LIBS | 
 | 13789 | fi | 
 | 13790 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 13791 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 13792 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 13793 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 13794 | else | 
 | 13795 |  | 
 | 13796 |     lt_cv_dlopen="dyld" | 
 | 13797 |     lt_cv_dlopen_libs= | 
 | 13798 |     lt_cv_dlopen_self=yes | 
 | 13799 |  | 
 | 13800 | fi | 
 | 13801 |  | 
 | 13802 |    ;; | 
 | 13803 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13804 |   *) | 
 | 13805 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 13806 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 13807 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 13808 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13809 | else | 
 | 13810 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13811 | /* confdefs.h.  */ | 
 | 13812 | _ACEOF | 
 | 13813 | cat confdefs.h >>conftest.$ac_ext | 
 | 13814 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13815 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13816 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 13817 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 13818 | #define shl_load innocuous_shl_load | 
 | 13819 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13820 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13821 |     which can conflict with char shl_load (); below. | 
 | 13822 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 13823 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13824 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13825 | #ifdef __STDC__ | 
 | 13826 | # include <limits.h> | 
 | 13827 | #else | 
 | 13828 | # include <assert.h> | 
 | 13829 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13830 |  | 
 | 13831 | #undef shl_load | 
 | 13832 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13833 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 13834 | #ifdef __cplusplus | 
 | 13835 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13836 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13837 | #endif | 
 | 13838 | /* We use char because int might match the return type of a gcc2 | 
 | 13839 |    builtin and then its argument prototype would still apply.  */ | 
 | 13840 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13841 | /* The GNU C library defines this for functions which it implements | 
 | 13842 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 13843 |     something starting with __ and the normal name is an alias.  */ | 
 | 13844 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 13845 | choke me | 
 | 13846 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13847 | char (*f) () = shl_load; | 
 | 13848 | #endif | 
 | 13849 | #ifdef __cplusplus | 
 | 13850 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13851 | #endif | 
 | 13852 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13853 | int | 
 | 13854 | main () | 
 | 13855 | { | 
 | 13856 | return f != shl_load; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13857 |   ; | 
 | 13858 |   return 0; | 
 | 13859 | } | 
 | 13860 | _ACEOF | 
 | 13861 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13863 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13864 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13865 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13866 |   rm -f conftest.er1 | 
 | 13867 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13868 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13869 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13870 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 13871 | 			 || test ! -s conftest.err' | 
 | 13872 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13873 |   (eval $ac_try) 2>&5 | 
 | 13874 |   ac_status=$? | 
 | 13875 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13876 |   (exit $ac_status); }; } && | 
 | 13877 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13878 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13879 |   (eval $ac_try) 2>&5 | 
 | 13880 |   ac_status=$? | 
 | 13881 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13882 |   (exit $ac_status); }; }; then | 
 | 13883 |   ac_cv_func_shl_load=yes | 
 | 13884 | else | 
 | 13885 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13886 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13887 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13888 | ac_cv_func_shl_load=no | 
 | 13889 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13890 | rm -f conftest.err conftest.$ac_objext \ | 
 | 13891 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13892 | fi | 
 | 13893 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 13894 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 13895 | if test $ac_cv_func_shl_load = yes; then | 
 | 13896 |   lt_cv_dlopen="shl_load" | 
 | 13897 | else | 
 | 13898 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 13899 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 13900 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 13901 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13902 | else | 
 | 13903 |   ac_check_lib_save_LIBS=$LIBS | 
 | 13904 | LIBS="-ldld  $LIBS" | 
 | 13905 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13906 | /* confdefs.h.  */ | 
 | 13907 | _ACEOF | 
 | 13908 | cat confdefs.h >>conftest.$ac_ext | 
 | 13909 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13910 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13911 |  | 
 | 13912 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 13913 | #ifdef __cplusplus | 
 | 13914 | extern "C" | 
 | 13915 | #endif | 
 | 13916 | /* We use char because int might match the return type of a gcc2 | 
 | 13917 |    builtin and then its argument prototype would still apply.  */ | 
 | 13918 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13919 | int | 
 | 13920 | main () | 
 | 13921 | { | 
 | 13922 | shl_load (); | 
 | 13923 |   ; | 
 | 13924 |   return 0; | 
 | 13925 | } | 
 | 13926 | _ACEOF | 
 | 13927 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13929 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13930 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13931 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13932 |   rm -f conftest.er1 | 
 | 13933 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13934 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13935 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13936 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 13937 | 			 || test ! -s conftest.err' | 
 | 13938 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13939 |   (eval $ac_try) 2>&5 | 
 | 13940 |   ac_status=$? | 
 | 13941 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13942 |   (exit $ac_status); }; } && | 
 | 13943 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13944 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13945 |   (eval $ac_try) 2>&5 | 
 | 13946 |   ac_status=$? | 
 | 13947 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13948 |   (exit $ac_status); }; }; then | 
 | 13949 |   ac_cv_lib_dld_shl_load=yes | 
 | 13950 | else | 
 | 13951 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13952 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13953 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13954 | ac_cv_lib_dld_shl_load=no | 
 | 13955 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13956 | rm -f conftest.err conftest.$ac_objext \ | 
 | 13957 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13958 | LIBS=$ac_check_lib_save_LIBS | 
 | 13959 | fi | 
 | 13960 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 13961 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 13962 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 13963 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 13964 | else | 
 | 13965 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 13966 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 13967 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 13968 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13969 | else | 
 | 13970 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13971 | /* confdefs.h.  */ | 
 | 13972 | _ACEOF | 
 | 13973 | cat confdefs.h >>conftest.$ac_ext | 
 | 13974 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13975 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13976 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 13977 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 13978 | #define dlopen innocuous_dlopen | 
 | 13979 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13980 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13981 |     which can conflict with char dlopen (); below. | 
 | 13982 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 13983 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13984 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13985 | #ifdef __STDC__ | 
 | 13986 | # include <limits.h> | 
 | 13987 | #else | 
 | 13988 | # include <assert.h> | 
 | 13989 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13990 |  | 
 | 13991 | #undef dlopen | 
 | 13992 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13993 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 13994 | #ifdef __cplusplus | 
 | 13995 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13996 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13997 | #endif | 
 | 13998 | /* We use char because int might match the return type of a gcc2 | 
 | 13999 |    builtin and then its argument prototype would still apply.  */ | 
 | 14000 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14001 | /* The GNU C library defines this for functions which it implements | 
 | 14002 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 14003 |     something starting with __ and the normal name is an alias.  */ | 
 | 14004 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 14005 | choke me | 
 | 14006 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14007 | char (*f) () = dlopen; | 
 | 14008 | #endif | 
 | 14009 | #ifdef __cplusplus | 
 | 14010 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14011 | #endif | 
 | 14012 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14013 | int | 
 | 14014 | main () | 
 | 14015 | { | 
 | 14016 | return f != dlopen; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14017 |   ; | 
 | 14018 |   return 0; | 
 | 14019 | } | 
 | 14020 | _ACEOF | 
 | 14021 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14023 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14024 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14025 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14026 |   rm -f conftest.er1 | 
 | 14027 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14028 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14029 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14030 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14031 | 			 || test ! -s conftest.err' | 
 | 14032 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14033 |   (eval $ac_try) 2>&5 | 
 | 14034 |   ac_status=$? | 
 | 14035 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14036 |   (exit $ac_status); }; } && | 
 | 14037 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14038 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14039 |   (eval $ac_try) 2>&5 | 
 | 14040 |   ac_status=$? | 
 | 14041 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14042 |   (exit $ac_status); }; }; then | 
 | 14043 |   ac_cv_func_dlopen=yes | 
 | 14044 | else | 
 | 14045 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14046 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14047 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14048 | ac_cv_func_dlopen=no | 
 | 14049 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14050 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14051 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14052 | fi | 
 | 14053 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 14054 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 14055 | if test $ac_cv_func_dlopen = yes; then | 
 | 14056 |   lt_cv_dlopen="dlopen" | 
 | 14057 | else | 
 | 14058 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 14059 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 14060 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 14061 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14062 | else | 
 | 14063 |   ac_check_lib_save_LIBS=$LIBS | 
 | 14064 | LIBS="-ldl  $LIBS" | 
 | 14065 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14066 | /* confdefs.h.  */ | 
 | 14067 | _ACEOF | 
 | 14068 | cat confdefs.h >>conftest.$ac_ext | 
 | 14069 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14070 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14071 |  | 
 | 14072 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14073 | #ifdef __cplusplus | 
 | 14074 | extern "C" | 
 | 14075 | #endif | 
 | 14076 | /* We use char because int might match the return type of a gcc2 | 
 | 14077 |    builtin and then its argument prototype would still apply.  */ | 
 | 14078 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14079 | int | 
 | 14080 | main () | 
 | 14081 | { | 
 | 14082 | dlopen (); | 
 | 14083 |   ; | 
 | 14084 |   return 0; | 
 | 14085 | } | 
 | 14086 | _ACEOF | 
 | 14087 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14089 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14090 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14091 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14092 |   rm -f conftest.er1 | 
 | 14093 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14094 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14095 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14096 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14097 | 			 || test ! -s conftest.err' | 
 | 14098 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14099 |   (eval $ac_try) 2>&5 | 
 | 14100 |   ac_status=$? | 
 | 14101 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14102 |   (exit $ac_status); }; } && | 
 | 14103 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14104 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14105 |   (eval $ac_try) 2>&5 | 
 | 14106 |   ac_status=$? | 
 | 14107 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14108 |   (exit $ac_status); }; }; then | 
 | 14109 |   ac_cv_lib_dl_dlopen=yes | 
 | 14110 | else | 
 | 14111 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14112 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14113 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14114 | ac_cv_lib_dl_dlopen=no | 
 | 14115 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14116 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14117 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14118 | LIBS=$ac_check_lib_save_LIBS | 
 | 14119 | fi | 
 | 14120 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 14121 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 14122 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 14123 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 14124 | else | 
 | 14125 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 14126 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 14127 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 14128 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14129 | else | 
 | 14130 |   ac_check_lib_save_LIBS=$LIBS | 
 | 14131 | LIBS="-lsvld  $LIBS" | 
 | 14132 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14133 | /* confdefs.h.  */ | 
 | 14134 | _ACEOF | 
 | 14135 | cat confdefs.h >>conftest.$ac_ext | 
 | 14136 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14137 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14138 |  | 
 | 14139 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14140 | #ifdef __cplusplus | 
 | 14141 | extern "C" | 
 | 14142 | #endif | 
 | 14143 | /* We use char because int might match the return type of a gcc2 | 
 | 14144 |    builtin and then its argument prototype would still apply.  */ | 
 | 14145 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14146 | int | 
 | 14147 | main () | 
 | 14148 | { | 
 | 14149 | dlopen (); | 
 | 14150 |   ; | 
 | 14151 |   return 0; | 
 | 14152 | } | 
 | 14153 | _ACEOF | 
 | 14154 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14156 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14157 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14158 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14159 |   rm -f conftest.er1 | 
 | 14160 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14161 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14162 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14163 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14164 | 			 || test ! -s conftest.err' | 
 | 14165 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14166 |   (eval $ac_try) 2>&5 | 
 | 14167 |   ac_status=$? | 
 | 14168 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14169 |   (exit $ac_status); }; } && | 
 | 14170 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14171 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14172 |   (eval $ac_try) 2>&5 | 
 | 14173 |   ac_status=$? | 
 | 14174 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14175 |   (exit $ac_status); }; }; then | 
 | 14176 |   ac_cv_lib_svld_dlopen=yes | 
 | 14177 | else | 
 | 14178 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14179 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14180 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14181 | ac_cv_lib_svld_dlopen=no | 
 | 14182 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14183 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14184 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14185 | LIBS=$ac_check_lib_save_LIBS | 
 | 14186 | fi | 
 | 14187 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 14188 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 14189 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 14190 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 14191 | else | 
 | 14192 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 14193 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 14194 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 14195 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14196 | else | 
 | 14197 |   ac_check_lib_save_LIBS=$LIBS | 
 | 14198 | LIBS="-ldld  $LIBS" | 
 | 14199 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14200 | /* confdefs.h.  */ | 
 | 14201 | _ACEOF | 
 | 14202 | cat confdefs.h >>conftest.$ac_ext | 
 | 14203 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 14204 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14205 |  | 
 | 14206 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 14207 | #ifdef __cplusplus | 
 | 14208 | extern "C" | 
 | 14209 | #endif | 
 | 14210 | /* We use char because int might match the return type of a gcc2 | 
 | 14211 |    builtin and then its argument prototype would still apply.  */ | 
 | 14212 | char dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14213 | int | 
 | 14214 | main () | 
 | 14215 | { | 
 | 14216 | dld_link (); | 
 | 14217 |   ; | 
 | 14218 |   return 0; | 
 | 14219 | } | 
 | 14220 | _ACEOF | 
 | 14221 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 14222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14223 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14224 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14225 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 14226 |   rm -f conftest.er1 | 
 | 14227 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14228 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14229 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14230 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 14231 | 			 || test ! -s conftest.err' | 
 | 14232 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14233 |   (eval $ac_try) 2>&5 | 
 | 14234 |   ac_status=$? | 
 | 14235 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14236 |   (exit $ac_status); }; } && | 
 | 14237 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14238 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 14239 |   (eval $ac_try) 2>&5 | 
 | 14240 |   ac_status=$? | 
 | 14241 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14242 |   (exit $ac_status); }; }; then | 
 | 14243 |   ac_cv_lib_dld_dld_link=yes | 
 | 14244 | else | 
 | 14245 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14246 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 14247 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14248 | ac_cv_lib_dld_dld_link=no | 
 | 14249 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14250 | rm -f conftest.err conftest.$ac_objext \ | 
 | 14251 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14252 | LIBS=$ac_check_lib_save_LIBS | 
 | 14253 | fi | 
 | 14254 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 14255 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 14256 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 14257 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 14258 | fi | 
 | 14259 |  | 
 | 14260 |  | 
 | 14261 | fi | 
 | 14262 |  | 
 | 14263 |  | 
 | 14264 | fi | 
 | 14265 |  | 
 | 14266 |  | 
 | 14267 | fi | 
 | 14268 |  | 
 | 14269 |  | 
 | 14270 | fi | 
 | 14271 |  | 
 | 14272 |  | 
 | 14273 | fi | 
 | 14274 |  | 
 | 14275 |     ;; | 
 | 14276 |   esac | 
 | 14277 |  | 
 | 14278 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 14279 |     enable_dlopen=yes | 
 | 14280 |   else | 
 | 14281 |     enable_dlopen=no | 
 | 14282 |   fi | 
 | 14283 |  | 
 | 14284 |   case $lt_cv_dlopen in | 
 | 14285 |   dlopen) | 
 | 14286 |     save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14287 |     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] | 14288 |  | 
 | 14289 |     save_LDFLAGS="$LDFLAGS" | 
 | 14290 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 14291 |  | 
 | 14292 |     save_LIBS="$LIBS" | 
 | 14293 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 14294 |  | 
 | 14295 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 14296 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 14297 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 14298 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14299 | else | 
 | 14300 |   	  if test "$cross_compiling" = yes; then : | 
 | 14301 |   lt_cv_dlopen_self=cross | 
 | 14302 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14303 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14304 |   lt_status=$lt_dlunknown | 
 | 14305 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 14306 | #line 14306 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14307 | #include "confdefs.h" | 
 | 14308 |  | 
 | 14309 | #if HAVE_DLFCN_H | 
 | 14310 | #include <dlfcn.h> | 
 | 14311 | #endif | 
 | 14312 |  | 
 | 14313 | #include <stdio.h> | 
 | 14314 |  | 
 | 14315 | #ifdef RTLD_GLOBAL | 
 | 14316 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 14317 | #else | 
 | 14318 | #  ifdef DL_GLOBAL | 
 | 14319 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 14320 | #  else | 
 | 14321 | #    define LT_DLGLOBAL		0 | 
 | 14322 | #  endif | 
 | 14323 | #endif | 
 | 14324 |  | 
 | 14325 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 14326 |    find out it does not work in some platform. */ | 
 | 14327 | #ifndef LT_DLLAZY_OR_NOW | 
 | 14328 | #  ifdef RTLD_LAZY | 
 | 14329 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 14330 | #  else | 
 | 14331 | #    ifdef DL_LAZY | 
 | 14332 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 14333 | #    else | 
 | 14334 | #      ifdef RTLD_NOW | 
 | 14335 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 14336 | #      else | 
 | 14337 | #        ifdef DL_NOW | 
 | 14338 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 14339 | #        else | 
 | 14340 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 14341 | #        endif | 
 | 14342 | #      endif | 
 | 14343 | #    endif | 
 | 14344 | #  endif | 
 | 14345 | #endif | 
 | 14346 |  | 
 | 14347 | #ifdef __cplusplus | 
 | 14348 | extern "C" void exit (int); | 
 | 14349 | #endif | 
 | 14350 |  | 
 | 14351 | void fnord() { int i=42;} | 
 | 14352 | int main () | 
 | 14353 | { | 
 | 14354 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 14355 |   int status = $lt_dlunknown; | 
 | 14356 |  | 
 | 14357 |   if (self) | 
 | 14358 |     { | 
 | 14359 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 14360 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 14361 |       /* dlclose (self); */ | 
 | 14362 |     } | 
 | 14363 |  | 
 | 14364 |     exit (status); | 
 | 14365 | } | 
 | 14366 | EOF | 
 | 14367 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 14368 |   (eval $ac_link) 2>&5 | 
 | 14369 |   ac_status=$? | 
 | 14370 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14371 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 14372 |     (./conftest; exit; ) 2>/dev/null | 
 | 14373 |     lt_status=$? | 
 | 14374 |     case x$lt_status in | 
 | 14375 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 14376 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 14377 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 14378 |     esac | 
 | 14379 |   else : | 
 | 14380 |     # compilation failed | 
 | 14381 |     lt_cv_dlopen_self=no | 
 | 14382 |   fi | 
 | 14383 | fi | 
 | 14384 | rm -fr conftest* | 
 | 14385 |  | 
 | 14386 |  | 
 | 14387 | fi | 
 | 14388 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 14389 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 14390 |  | 
 | 14391 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 14392 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 14393 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 14394 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 14395 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 14396 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14397 | else | 
 | 14398 |   	  if test "$cross_compiling" = yes; then : | 
 | 14399 |   lt_cv_dlopen_self_static=cross | 
 | 14400 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14401 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14402 |   lt_status=$lt_dlunknown | 
 | 14403 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 14404 | #line 14404 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14405 | #include "confdefs.h" | 
 | 14406 |  | 
 | 14407 | #if HAVE_DLFCN_H | 
 | 14408 | #include <dlfcn.h> | 
 | 14409 | #endif | 
 | 14410 |  | 
 | 14411 | #include <stdio.h> | 
 | 14412 |  | 
 | 14413 | #ifdef RTLD_GLOBAL | 
 | 14414 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 14415 | #else | 
 | 14416 | #  ifdef DL_GLOBAL | 
 | 14417 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 14418 | #  else | 
 | 14419 | #    define LT_DLGLOBAL		0 | 
 | 14420 | #  endif | 
 | 14421 | #endif | 
 | 14422 |  | 
 | 14423 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 14424 |    find out it does not work in some platform. */ | 
 | 14425 | #ifndef LT_DLLAZY_OR_NOW | 
 | 14426 | #  ifdef RTLD_LAZY | 
 | 14427 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 14428 | #  else | 
 | 14429 | #    ifdef DL_LAZY | 
 | 14430 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 14431 | #    else | 
 | 14432 | #      ifdef RTLD_NOW | 
 | 14433 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 14434 | #      else | 
 | 14435 | #        ifdef DL_NOW | 
 | 14436 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 14437 | #        else | 
 | 14438 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 14439 | #        endif | 
 | 14440 | #      endif | 
 | 14441 | #    endif | 
 | 14442 | #  endif | 
 | 14443 | #endif | 
 | 14444 |  | 
 | 14445 | #ifdef __cplusplus | 
 | 14446 | extern "C" void exit (int); | 
 | 14447 | #endif | 
 | 14448 |  | 
 | 14449 | void fnord() { int i=42;} | 
 | 14450 | int main () | 
 | 14451 | { | 
 | 14452 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 14453 |   int status = $lt_dlunknown; | 
 | 14454 |  | 
 | 14455 |   if (self) | 
 | 14456 |     { | 
 | 14457 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 14458 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 14459 |       /* dlclose (self); */ | 
 | 14460 |     } | 
 | 14461 |  | 
 | 14462 |     exit (status); | 
 | 14463 | } | 
 | 14464 | EOF | 
 | 14465 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 14466 |   (eval $ac_link) 2>&5 | 
 | 14467 |   ac_status=$? | 
 | 14468 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14469 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 14470 |     (./conftest; exit; ) 2>/dev/null | 
 | 14471 |     lt_status=$? | 
 | 14472 |     case x$lt_status in | 
 | 14473 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 14474 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 14475 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 14476 |     esac | 
 | 14477 |   else : | 
 | 14478 |     # compilation failed | 
 | 14479 |     lt_cv_dlopen_self_static=no | 
 | 14480 |   fi | 
 | 14481 | fi | 
 | 14482 | rm -fr conftest* | 
 | 14483 |  | 
 | 14484 |  | 
 | 14485 | fi | 
 | 14486 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 14487 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 14488 |     fi | 
 | 14489 |  | 
 | 14490 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 14491 |     LDFLAGS="$save_LDFLAGS" | 
 | 14492 |     LIBS="$save_LIBS" | 
 | 14493 |     ;; | 
 | 14494 |   esac | 
 | 14495 |  | 
 | 14496 |   case $lt_cv_dlopen_self in | 
 | 14497 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 14498 |   *) enable_dlopen_self=unknown ;; | 
 | 14499 |   esac | 
 | 14500 |  | 
 | 14501 |   case $lt_cv_dlopen_self_static in | 
 | 14502 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 14503 |   *) enable_dlopen_self_static=unknown ;; | 
 | 14504 |   esac | 
 | 14505 | fi | 
 | 14506 |  | 
 | 14507 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14508 | # Report which librarie types wil actually be built | 
 | 14509 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 14510 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 14511 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 14512 | echo "${ECHO_T}$can_build_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14513 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14514 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 14515 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 14516 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 14517 |  | 
 | 14518 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 14519 | # are all built from PIC. | 
 | 14520 | case "$host_os" in | 
 | 14521 | aix3*) | 
 | 14522 |   test "$enable_shared" = yes && enable_static=no | 
 | 14523 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14524 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14525 |     postinstall_cmds='$RANLIB $lib' | 
 | 14526 |   fi | 
 | 14527 |   ;; | 
 | 14528 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14529 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14530 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
 | 14531 |     test "$enable_shared" = yes && enable_static=no | 
 | 14532 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14533 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14534 | esac | 
 | 14535 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 14536 | echo "${ECHO_T}$enable_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14537 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14538 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 14539 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 14540 | # Make sure either enable_shared or enable_static is yes. | 
 | 14541 | test "$enable_shared" = yes || enable_static=yes | 
 | 14542 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 14543 | echo "${ECHO_T}$enable_static" >&6 | 
 | 14544 |  | 
 | 14545 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14546 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 14547 | # with your package, and you will get complaints that there are | 
 | 14548 | # no rules to generate ltmain.sh. | 
 | 14549 | if test -f "$ltmain"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14550 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 14551 |   # without removal of \ escapes. | 
 | 14552 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 14553 |     setopt NO_GLOB_SUBST | 
 | 14554 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14555 |   # Now quote all the things that may contain metacharacters while being | 
 | 14556 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 14557 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14558 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 14559 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14560 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 14561 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 14562 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 14563 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 14564 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14565 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14566 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 14567 |     compiler \ | 
 | 14568 |     CC \ | 
 | 14569 |     LD \ | 
 | 14570 |     lt_prog_compiler_wl \ | 
 | 14571 |     lt_prog_compiler_pic \ | 
 | 14572 |     lt_prog_compiler_static \ | 
 | 14573 |     lt_prog_compiler_no_builtin_flag \ | 
 | 14574 |     export_dynamic_flag_spec \ | 
 | 14575 |     thread_safe_flag_spec \ | 
 | 14576 |     whole_archive_flag_spec \ | 
 | 14577 |     enable_shared_with_static_runtimes \ | 
 | 14578 |     old_archive_cmds \ | 
 | 14579 |     old_archive_from_new_cmds \ | 
 | 14580 |     predep_objects \ | 
 | 14581 |     postdep_objects \ | 
 | 14582 |     predeps \ | 
 | 14583 |     postdeps \ | 
 | 14584 |     compiler_lib_search_path \ | 
 | 14585 |     archive_cmds \ | 
 | 14586 |     archive_expsym_cmds \ | 
 | 14587 |     postinstall_cmds \ | 
 | 14588 |     postuninstall_cmds \ | 
 | 14589 |     old_archive_from_expsyms_cmds \ | 
 | 14590 |     allow_undefined_flag \ | 
 | 14591 |     no_undefined_flag \ | 
 | 14592 |     export_symbols_cmds \ | 
 | 14593 |     hardcode_libdir_flag_spec \ | 
 | 14594 |     hardcode_libdir_flag_spec_ld \ | 
 | 14595 |     hardcode_libdir_separator \ | 
 | 14596 |     hardcode_automatic \ | 
 | 14597 |     module_cmds \ | 
 | 14598 |     module_expsym_cmds \ | 
 | 14599 |     lt_cv_prog_compiler_c_o \ | 
 | 14600 |     exclude_expsyms \ | 
 | 14601 |     include_expsyms; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14602 |  | 
 | 14603 |     case $var in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14604 |     old_archive_cmds | \ | 
 | 14605 |     old_archive_from_new_cmds | \ | 
 | 14606 |     archive_cmds | \ | 
 | 14607 |     archive_expsym_cmds | \ | 
 | 14608 |     module_cmds | \ | 
 | 14609 |     module_expsym_cmds | \ | 
 | 14610 |     old_archive_from_expsyms_cmds | \ | 
 | 14611 |     export_symbols_cmds | \ | 
 | 14612 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14613 |     postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14614 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 14615 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14616 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14617 |       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] | 14618 |       ;; | 
 | 14619 |     *) | 
 | 14620 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 14621 |       ;; | 
 | 14622 |     esac | 
 | 14623 |   done | 
 | 14624 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14625 |   case $lt_echo in | 
 | 14626 |   *'\$0 --fallback-echo"') | 
 | 14627 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 14628 |     ;; | 
 | 14629 |   esac | 
 | 14630 |  | 
 | 14631 | cfgfile="${ofile}T" | 
 | 14632 |   trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
 | 14633 |   $rm -f "$cfgfile" | 
 | 14634 |   { echo "$as_me:$LINENO: creating $ofile" >&5 | 
 | 14635 | echo "$as_me: creating $ofile" >&6;} | 
 | 14636 |  | 
 | 14637 |   cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14638 | #! $SHELL | 
 | 14639 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14640 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14641 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
 | 14642 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
 | 14643 | # | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14644 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
 | 14645 | # Free Software Foundation, Inc. | 
 | 14646 | # | 
 | 14647 | # This file is part of GNU Libtool: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14648 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
 | 14649 | # | 
 | 14650 | # This program is free software; you can redistribute it and/or modify | 
 | 14651 | # it under the terms of the GNU General Public License as published by | 
 | 14652 | # the Free Software Foundation; either version 2 of the License, or | 
 | 14653 | # (at your option) any later version. | 
 | 14654 | # | 
 | 14655 | # This program is distributed in the hope that it will be useful, but | 
 | 14656 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 14657 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
 | 14658 | # General Public License for more details. | 
 | 14659 | # | 
 | 14660 | # You should have received a copy of the GNU General Public License | 
 | 14661 | # along with this program; if not, write to the Free Software | 
 | 14662 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
 | 14663 | # | 
 | 14664 | # As a special exception to the GNU General Public License, if you | 
 | 14665 | # distribute this file as part of a program that contains a | 
 | 14666 | # configuration script generated by Autoconf, you may include it under | 
 | 14667 | # the same distribution terms that you use for the rest of that program. | 
 | 14668 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14669 | # A sed program that does not truncate output. | 
 | 14670 | SED=$lt_SED | 
 | 14671 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14672 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14673 | Xsed="$SED -e s/^X//" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14674 |  | 
 | 14675 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 14676 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14677 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14678 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14679 | # The names of the tagged configurations supported by this script. | 
 | 14680 | available_tags= | 
 | 14681 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14682 | # ### BEGIN LIBTOOL CONFIG | 
 | 14683 |  | 
 | 14684 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 14685 |  | 
 | 14686 | # Shell to use when invoking shell scripts. | 
 | 14687 | SHELL=$lt_SHELL | 
 | 14688 |  | 
 | 14689 | # Whether or not to build shared libraries. | 
 | 14690 | build_libtool_libs=$enable_shared | 
 | 14691 |  | 
 | 14692 | # Whether or not to build static libraries. | 
 | 14693 | build_old_libs=$enable_static | 
 | 14694 |  | 
 | 14695 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14696 | build_libtool_need_lc=$archive_cmds_need_lc | 
 | 14697 |  | 
 | 14698 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 14699 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14700 |  | 
 | 14701 | # Whether or not to optimize for fast installation. | 
 | 14702 | fast_install=$enable_fast_install | 
 | 14703 |  | 
 | 14704 | # The host system. | 
 | 14705 | host_alias=$host_alias | 
 | 14706 | host=$host | 
 | 14707 |  | 
 | 14708 | # An echo program that does not interpret backslashes. | 
 | 14709 | echo=$lt_echo | 
 | 14710 |  | 
 | 14711 | # The archiver. | 
 | 14712 | AR=$lt_AR | 
 | 14713 | AR_FLAGS=$lt_AR_FLAGS | 
 | 14714 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14715 | # A C compiler. | 
 | 14716 | LTCC=$lt_LTCC | 
 | 14717 |  | 
 | 14718 | # A language-specific compiler. | 
 | 14719 | CC=$lt_compiler | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14720 |  | 
 | 14721 | # Is the compiler the GNU C compiler? | 
 | 14722 | with_gcc=$GCC | 
 | 14723 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14724 | # An ERE matcher. | 
 | 14725 | EGREP=$lt_EGREP | 
 | 14726 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14727 | # The linker used to build libraries. | 
 | 14728 | LD=$lt_LD | 
 | 14729 |  | 
 | 14730 | # Whether we need hard or soft links. | 
 | 14731 | LN_S=$lt_LN_S | 
 | 14732 |  | 
 | 14733 | # A BSD-compatible nm program. | 
 | 14734 | NM=$lt_NM | 
 | 14735 |  | 
 | 14736 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14737 | STRIP=$lt_STRIP | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14738 |  | 
 | 14739 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 14740 | MAGIC_CMD=$MAGIC_CMD | 
 | 14741 |  | 
 | 14742 | # Used on cygwin: DLL creation program. | 
 | 14743 | DLLTOOL="$DLLTOOL" | 
 | 14744 |  | 
 | 14745 | # Used on cygwin: object dumper. | 
 | 14746 | OBJDUMP="$OBJDUMP" | 
 | 14747 |  | 
 | 14748 | # Used on cygwin: assembler. | 
 | 14749 | AS="$AS" | 
 | 14750 |  | 
 | 14751 | # The name of the directory that contains temporary libtool files. | 
 | 14752 | objdir=$objdir | 
 | 14753 |  | 
 | 14754 | # How to create reloadable object files. | 
 | 14755 | reload_flag=$lt_reload_flag | 
 | 14756 | reload_cmds=$lt_reload_cmds | 
 | 14757 |  | 
 | 14758 | # How to pass a linker flag through the compiler. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14759 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14760 |  | 
 | 14761 | # Object file suffix (normally "o"). | 
 | 14762 | objext="$ac_objext" | 
 | 14763 |  | 
 | 14764 | # Old archive suffix (normally "a"). | 
 | 14765 | libext="$libext" | 
 | 14766 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14767 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14768 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14769 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14770 | # Executable file suffix (normally ""). | 
 | 14771 | exeext="$exeext" | 
 | 14772 |  | 
 | 14773 | # Additional compiler flags for building library objects. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14774 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14775 | pic_mode=$pic_mode | 
 | 14776 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14777 | # What is the maximum length of a command? | 
 | 14778 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14779 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14780 | # Does compiler simultaneously support -c and -o options? | 
 | 14781 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14782 |  | 
 | 14783 | # Must we lock files when doing compilation ? | 
 | 14784 | need_locks=$lt_need_locks | 
 | 14785 |  | 
 | 14786 | # Do we need the lib prefix for modules? | 
 | 14787 | need_lib_prefix=$need_lib_prefix | 
 | 14788 |  | 
 | 14789 | # Do we need a version for libraries? | 
 | 14790 | need_version=$need_version | 
 | 14791 |  | 
 | 14792 | # Whether dlopen is supported. | 
 | 14793 | dlopen_support=$enable_dlopen | 
 | 14794 |  | 
 | 14795 | # Whether dlopen of programs is supported. | 
 | 14796 | dlopen_self=$enable_dlopen_self | 
 | 14797 |  | 
 | 14798 | # Whether dlopen of statically linked programs is supported. | 
 | 14799 | dlopen_self_static=$enable_dlopen_self_static | 
 | 14800 |  | 
 | 14801 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14802 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14803 |  | 
 | 14804 | # Compiler flag to turn off builtin functions. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14805 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14806 |  | 
 | 14807 | # Compiler flag to allow reflexive dlopens. | 
 | 14808 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
 | 14809 |  | 
 | 14810 | # Compiler flag to generate shared objects directly from archives. | 
 | 14811 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
 | 14812 |  | 
 | 14813 | # Compiler flag to generate thread-safe objects. | 
 | 14814 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
 | 14815 |  | 
 | 14816 | # Library versioning type. | 
 | 14817 | version_type=$version_type | 
 | 14818 |  | 
 | 14819 | # Format of library name prefix. | 
 | 14820 | libname_spec=$lt_libname_spec | 
 | 14821 |  | 
 | 14822 | # List of archive names.  First name is the real one, the rest are links. | 
 | 14823 | # The last name is the one that the linker finds with -lNAME. | 
 | 14824 | library_names_spec=$lt_library_names_spec | 
 | 14825 |  | 
 | 14826 | # The coded name of the library, if different from the real name. | 
 | 14827 | soname_spec=$lt_soname_spec | 
 | 14828 |  | 
 | 14829 | # Commands used to build and install an old-style archive. | 
 | 14830 | RANLIB=$lt_RANLIB | 
 | 14831 | old_archive_cmds=$lt_old_archive_cmds | 
 | 14832 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 14833 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 14834 |  | 
 | 14835 | # Create an old-style archive from a shared archive. | 
 | 14836 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
 | 14837 |  | 
 | 14838 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 14839 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
 | 14840 |  | 
 | 14841 | # Commands used to build and install a shared archive. | 
 | 14842 | archive_cmds=$lt_archive_cmds | 
 | 14843 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
 | 14844 | postinstall_cmds=$lt_postinstall_cmds | 
 | 14845 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 14846 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14847 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 14848 | module_cmds=$lt_module_cmds | 
 | 14849 | module_expsym_cmds=$lt_module_expsym_cmds | 
 | 14850 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14851 | # Commands to strip libraries. | 
 | 14852 | old_striplib=$lt_old_striplib | 
 | 14853 | striplib=$lt_striplib | 
 | 14854 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14855 | # Dependencies to place before the objects being linked to create a | 
 | 14856 | # shared library. | 
 | 14857 | predep_objects=$lt_predep_objects | 
 | 14858 |  | 
 | 14859 | # Dependencies to place after the objects being linked to create a | 
 | 14860 | # shared library. | 
 | 14861 | postdep_objects=$lt_postdep_objects | 
 | 14862 |  | 
 | 14863 | # Dependencies to place before the objects being linked to create a | 
 | 14864 | # shared library. | 
 | 14865 | predeps=$lt_predeps | 
 | 14866 |  | 
 | 14867 | # Dependencies to place after the objects being linked to create a | 
 | 14868 | # shared library. | 
 | 14869 | postdeps=$lt_postdeps | 
 | 14870 |  | 
 | 14871 | # The library search path used internally by the compiler when linking | 
 | 14872 | # a shared library. | 
 | 14873 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
 | 14874 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14875 | # Method to check whether dependent libraries are shared objects. | 
 | 14876 | deplibs_check_method=$lt_deplibs_check_method | 
 | 14877 |  | 
 | 14878 | # Command to use when deplibs_check_method == file_magic. | 
 | 14879 | file_magic_cmd=$lt_file_magic_cmd | 
 | 14880 |  | 
 | 14881 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 14882 | allow_undefined_flag=$lt_allow_undefined_flag | 
 | 14883 |  | 
 | 14884 | # Flag that forces no undefined symbols. | 
 | 14885 | no_undefined_flag=$lt_no_undefined_flag | 
 | 14886 |  | 
 | 14887 | # Commands used to finish a libtool library installation in a directory. | 
 | 14888 | finish_cmds=$lt_finish_cmds | 
 | 14889 |  | 
 | 14890 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 14891 | finish_eval=$lt_finish_eval | 
 | 14892 |  | 
 | 14893 | # 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] | 14894 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14895 |  | 
 | 14896 | # Transform the output of nm in a proper C declaration | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14897 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14898 |  | 
 | 14899 | # Transform the output of nm in a C name address pair | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14900 | 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] | 14901 |  | 
 | 14902 | # This is the shared library runtime path variable. | 
 | 14903 | runpath_var=$runpath_var | 
 | 14904 |  | 
 | 14905 | # This is the shared library path variable. | 
 | 14906 | shlibpath_var=$shlibpath_var | 
 | 14907 |  | 
 | 14908 | # Is shlibpath searched before the hard-coded library search path? | 
 | 14909 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 14910 |  | 
 | 14911 | # How to hardcode a shared library path into an executable. | 
 | 14912 | hardcode_action=$hardcode_action | 
 | 14913 |  | 
 | 14914 | # Whether we should hardcode library paths into libraries. | 
 | 14915 | hardcode_into_libs=$hardcode_into_libs | 
 | 14916 |  | 
 | 14917 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 14918 | # This must work even if \$libdir does not exist. | 
 | 14919 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
 | 14920 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14921 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 14922 | # a binary during linking. This must work even if \$libdir does | 
 | 14923 | # not exist. | 
 | 14924 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
 | 14925 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14926 | # Whether we need a single -rpath flag with a separated argument. | 
 | 14927 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
 | 14928 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14929 | # 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] | 14930 | # resulting binary. | 
 | 14931 | hardcode_direct=$hardcode_direct | 
 | 14932 |  | 
 | 14933 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 14934 | # resulting binary. | 
 | 14935 | hardcode_minus_L=$hardcode_minus_L | 
 | 14936 |  | 
 | 14937 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 14938 | # the resulting binary. | 
 | 14939 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
 | 14940 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14941 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 14942 | # and all subsequent libraries and executables linked against it. | 
 | 14943 | hardcode_automatic=$hardcode_automatic | 
 | 14944 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14945 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 14946 | # restored at relink time. | 
 | 14947 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 14948 |  | 
 | 14949 | # Whether libtool must link a program against all its dependency libraries. | 
 | 14950 | link_all_deplibs=$link_all_deplibs | 
 | 14951 |  | 
 | 14952 | # Compile-time system search path for libraries | 
 | 14953 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 14954 |  | 
 | 14955 | # Run-time system search path for libraries | 
 | 14956 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 14957 |  | 
 | 14958 | # Fix the shell variable \$srcfile for the compiler. | 
 | 14959 | fix_srcfile_path="$fix_srcfile_path" | 
 | 14960 |  | 
 | 14961 | # Set to yes if exported symbols are required. | 
 | 14962 | always_export_symbols=$always_export_symbols | 
 | 14963 |  | 
 | 14964 | # The commands to list exported symbols. | 
 | 14965 | export_symbols_cmds=$lt_export_symbols_cmds | 
 | 14966 |  | 
 | 14967 | # The commands to extract the exported symbol list from a shared archive. | 
 | 14968 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 14969 |  | 
 | 14970 | # Symbols that should not be listed in the preloaded symbols. | 
 | 14971 | exclude_expsyms=$lt_exclude_expsyms | 
 | 14972 |  | 
 | 14973 | # Symbols that must always be exported. | 
 | 14974 | include_expsyms=$lt_include_expsyms | 
 | 14975 |  | 
 | 14976 | # ### END LIBTOOL CONFIG | 
 | 14977 |  | 
 | 14978 | __EOF__ | 
 | 14979 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14980 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14981 |   case $host_os in | 
 | 14982 |   aix3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14983 |     cat <<\EOF >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14984 |  | 
 | 14985 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 14986 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 14987 | # vanish in a puff of smoke. | 
 | 14988 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 14989 |   COLLECT_NAMES= | 
 | 14990 |   export COLLECT_NAMES | 
 | 14991 | fi | 
 | 14992 | EOF | 
 | 14993 |     ;; | 
 | 14994 |   esac | 
 | 14995 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14996 |   # We use sed instead of cat because bash on DJGPP gets confused if | 
 | 14997 |   # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
 | 14998 |   # text mode, it properly converts lines to CR/LF.  This bash problem | 
 | 14999 |   # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15000 |   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15001 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15002 |   mv -f "$cfgfile" "$ofile" || \ | 
 | 15003 |     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15004 |   chmod +x "$ofile" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15005 |  | 
 | 15006 | else | 
 | 15007 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 15008 |   # `config.status --recheck' to rerun these tests and create the | 
 | 15009 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15010 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 15011 |   if test -f "$ltmain_in"; then | 
 | 15012 |     test -f Makefile && make "$ltmain" | 
 | 15013 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15014 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15015 |  | 
 | 15016 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15017 | ac_ext=c | 
 | 15018 | ac_cpp='$CPP $CPPFLAGS' | 
 | 15019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 15020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 15021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 15022 |  | 
 | 15023 | CC="$lt_save_CC" | 
 | 15024 |  | 
 | 15025 |  | 
 | 15026 | # Check whether --with-tags or --without-tags was given. | 
 | 15027 | if test "${with_tags+set}" = set; then | 
 | 15028 |   withval="$with_tags" | 
 | 15029 |   tagnames="$withval" | 
 | 15030 | fi; | 
 | 15031 |  | 
 | 15032 | if test -f "$ltmain" && test -n "$tagnames"; then | 
 | 15033 |   if test ! -f "${ofile}"; then | 
 | 15034 |     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
 | 15035 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
 | 15036 |   fi | 
 | 15037 |  | 
 | 15038 |   if test -z "$LTCC"; then | 
 | 15039 |     eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
 | 15040 |     if test -z "$LTCC"; then | 
 | 15041 |       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
 | 15042 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
 | 15043 |     else | 
 | 15044 |       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
 | 15045 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
 | 15046 |     fi | 
 | 15047 |   fi | 
 | 15048 |  | 
 | 15049 |   # Extract list of available tagged configurations in $ofile. | 
 | 15050 |   # Note that this assumes the entire list is on one line. | 
 | 15051 |   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
 | 15052 |  | 
 | 15053 |   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 15054 |   for tagname in $tagnames; do | 
 | 15055 |     IFS="$lt_save_ifs" | 
 | 15056 |     # Check whether tagname contains only valid characters | 
 | 15057 |     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
 | 15058 |     "") ;; | 
 | 15059 |     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
 | 15060 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
 | 15061 |    { (exit 1); exit 1; }; } | 
 | 15062 | 	;; | 
 | 15063 |     esac | 
 | 15064 |  | 
 | 15065 |     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
 | 15066 |     then | 
 | 15067 |       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
 | 15068 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
 | 15069 |    { (exit 1); exit 1; }; } | 
 | 15070 |     fi | 
 | 15071 |  | 
 | 15072 |     # Update the list of available tags. | 
 | 15073 |     if test -n "$tagname"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15074 |       echo appending configuration tag "$tagname" to $ofile | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15075 |  | 
 | 15076 |       case $tagname in | 
 | 15077 |       CXX) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15078 | 	if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 15079 | 	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 15080 | 	    (test "X$CXX" != "Xg++"))) ; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15081 | 	  ac_ext=cc | 
 | 15082 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 15083 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 15084 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 15085 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 15086 |  | 
 | 15087 |  | 
 | 15088 |  | 
 | 15089 |  | 
 | 15090 | archive_cmds_need_lc_CXX=no | 
 | 15091 | allow_undefined_flag_CXX= | 
 | 15092 | always_export_symbols_CXX=no | 
 | 15093 | archive_expsym_cmds_CXX= | 
 | 15094 | export_dynamic_flag_spec_CXX= | 
 | 15095 | hardcode_direct_CXX=no | 
 | 15096 | hardcode_libdir_flag_spec_CXX= | 
 | 15097 | hardcode_libdir_flag_spec_ld_CXX= | 
 | 15098 | hardcode_libdir_separator_CXX= | 
 | 15099 | hardcode_minus_L_CXX=no | 
 | 15100 | hardcode_automatic_CXX=no | 
 | 15101 | module_cmds_CXX= | 
 | 15102 | module_expsym_cmds_CXX= | 
 | 15103 | link_all_deplibs_CXX=unknown | 
 | 15104 | old_archive_cmds_CXX=$old_archive_cmds | 
 | 15105 | no_undefined_flag_CXX= | 
 | 15106 | whole_archive_flag_spec_CXX= | 
 | 15107 | enable_shared_with_static_runtimes_CXX=no | 
 | 15108 |  | 
 | 15109 | # Dependencies to place before and after the object being linked: | 
 | 15110 | predep_objects_CXX= | 
 | 15111 | postdep_objects_CXX= | 
 | 15112 | predeps_CXX= | 
 | 15113 | postdeps_CXX= | 
 | 15114 | compiler_lib_search_path_CXX= | 
 | 15115 |  | 
 | 15116 | # Source file extension for C++ test sources. | 
 | 15117 | ac_ext=cc | 
 | 15118 |  | 
 | 15119 | # Object file extension for compiled C++ test sources. | 
 | 15120 | objext=o | 
 | 15121 | objext_CXX=$objext | 
 | 15122 |  | 
 | 15123 | # Code to be used in simple compile tests | 
 | 15124 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 15125 |  | 
 | 15126 | # Code to be used in simple link tests | 
 | 15127 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 
 | 15128 |  | 
 | 15129 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 15130 |  | 
 | 15131 | # If no C compiler was specified, use CC. | 
 | 15132 | LTCC=${LTCC-"$CC"} | 
 | 15133 |  | 
 | 15134 | # Allow CC to be a program name with arguments. | 
 | 15135 | compiler=$CC | 
 | 15136 |  | 
 | 15137 |  | 
 | 15138 | # Allow CC to be a program name with arguments. | 
 | 15139 | lt_save_CC=$CC | 
 | 15140 | lt_save_LD=$LD | 
 | 15141 | lt_save_GCC=$GCC | 
 | 15142 | GCC=$GXX | 
 | 15143 | lt_save_with_gnu_ld=$with_gnu_ld | 
 | 15144 | lt_save_path_LD=$lt_cv_path_LD | 
 | 15145 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
 | 15146 |   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
 | 15147 | else | 
 | 15148 |   unset lt_cv_prog_gnu_ld | 
 | 15149 | fi | 
 | 15150 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
 | 15151 |   lt_cv_path_LD=$lt_cv_path_LDCXX | 
 | 15152 | else | 
 | 15153 |   unset lt_cv_path_LD | 
 | 15154 | fi | 
 | 15155 | test -z "${LDCXX+set}" || LD=$LDCXX | 
 | 15156 | CC=${CXX-"c++"} | 
 | 15157 | compiler=$CC | 
 | 15158 | compiler_CXX=$CC | 
 | 15159 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 15160 |  | 
 | 15161 | # We don't want -fno-exception wen compiling C++ code, so set the | 
 | 15162 | # no_builtin_flag separately | 
 | 15163 | if test "$GXX" = yes; then | 
 | 15164 |   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
 | 15165 | else | 
 | 15166 |   lt_prog_compiler_no_builtin_flag_CXX= | 
 | 15167 | fi | 
 | 15168 |  | 
 | 15169 | if test "$GXX" = yes; then | 
 | 15170 |   # Set up default GNU C++ configuration | 
 | 15171 |  | 
 | 15172 |  | 
 | 15173 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 15174 | if test "${with_gnu_ld+set}" = set; then | 
 | 15175 |   withval="$with_gnu_ld" | 
 | 15176 |   test "$withval" = no || with_gnu_ld=yes | 
 | 15177 | else | 
 | 15178 |   with_gnu_ld=no | 
 | 15179 | fi; | 
 | 15180 | ac_prog=ld | 
 | 15181 | if test "$GCC" = yes; then | 
 | 15182 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 15183 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 15184 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
 | 15185 |   case $host in | 
 | 15186 |   *-*-mingw*) | 
 | 15187 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 15188 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 15189 |   *) | 
 | 15190 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 15191 |   esac | 
 | 15192 |   case $ac_prog in | 
 | 15193 |     # Accept absolute paths. | 
 | 15194 |     [\\/]* | ?:[\\/]*) | 
 | 15195 |       re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15196 |       # Canonicalize the pathname of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15197 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 15198 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 15199 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 15200 |       done | 
 | 15201 |       test -z "$LD" && LD="$ac_prog" | 
 | 15202 |       ;; | 
 | 15203 |   "") | 
 | 15204 |     # If it fails, then pretend we aren't using GCC. | 
 | 15205 |     ac_prog=ld | 
 | 15206 |     ;; | 
 | 15207 |   *) | 
 | 15208 |     # If it is relative, then search for the first ld in PATH. | 
 | 15209 |     with_gnu_ld=unknown | 
 | 15210 |     ;; | 
 | 15211 |   esac | 
 | 15212 | elif test "$with_gnu_ld" = yes; then | 
 | 15213 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 15214 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 15215 | else | 
 | 15216 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 15217 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 15218 | fi | 
 | 15219 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 15220 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15221 | else | 
 | 15222 |   if test -z "$LD"; then | 
 | 15223 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 15224 |   for ac_dir in $PATH; do | 
 | 15225 |     IFS="$lt_save_ifs" | 
 | 15226 |     test -z "$ac_dir" && ac_dir=. | 
 | 15227 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 15228 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 15229 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 15230 |       # but apparently some GNU ld's only accept -v. | 
 | 15231 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 15232 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 15233 |       *GNU* | *'with BFD'*) | 
 | 15234 | 	test "$with_gnu_ld" != no && break | 
 | 15235 | 	;; | 
 | 15236 |       *) | 
 | 15237 | 	test "$with_gnu_ld" != yes && break | 
 | 15238 | 	;; | 
 | 15239 |       esac | 
 | 15240 |     fi | 
 | 15241 |   done | 
 | 15242 |   IFS="$lt_save_ifs" | 
 | 15243 | else | 
 | 15244 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 15245 | fi | 
 | 15246 | fi | 
 | 15247 |  | 
 | 15248 | LD="$lt_cv_path_LD" | 
 | 15249 | if test -n "$LD"; then | 
 | 15250 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 15251 | echo "${ECHO_T}$LD" >&6 | 
 | 15252 | else | 
 | 15253 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 15254 | echo "${ECHO_T}no" >&6 | 
 | 15255 | fi | 
 | 15256 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 15257 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 15258 |    { (exit 1); exit 1; }; } | 
 | 15259 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 15260 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 15261 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 15262 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15263 | else | 
 | 15264 |   # 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] | 15265 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15266 | *GNU* | *'with BFD'*) | 
 | 15267 |   lt_cv_prog_gnu_ld=yes | 
 | 15268 |   ;; | 
 | 15269 | *) | 
 | 15270 |   lt_cv_prog_gnu_ld=no | 
 | 15271 |   ;; | 
 | 15272 | esac | 
 | 15273 | fi | 
 | 15274 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 15275 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 15276 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 15277 |  | 
 | 15278 |  | 
 | 15279 |  | 
 | 15280 |   # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
 | 15281 |   # archiving commands below assume that GNU ld is being used. | 
 | 15282 |   if test "$with_gnu_ld" = yes; then | 
 | 15283 |     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15284 |     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' | 
 | 15285 |  | 
 | 15286 |     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
 | 15287 |     export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 15288 |  | 
 | 15289 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 15290 |     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
 | 15291 |     #     investigate it a little bit more. (MM) | 
 | 15292 |     wlarc='${wl}' | 
 | 15293 |  | 
 | 15294 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 15295 |     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
 | 15296 | 	grep 'no-whole-archive' > /dev/null; then | 
 | 15297 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 15298 |     else | 
 | 15299 |       whole_archive_flag_spec_CXX= | 
 | 15300 |     fi | 
 | 15301 |   else | 
 | 15302 |     with_gnu_ld=no | 
 | 15303 |     wlarc= | 
 | 15304 |  | 
 | 15305 |     # A generic and very simple default shared library creation | 
 | 15306 |     # command for GNU C++ for the case where it uses the native | 
 | 15307 |     # linker, instead of GNU ld.  If possible, this setting should | 
 | 15308 |     # overridden to take advantage of the native linker features on | 
 | 15309 |     # the platform it is being used on. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15310 |     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] | 15311 |   fi | 
 | 15312 |  | 
 | 15313 |   # Commands to make compiler produce verbose output that lists | 
 | 15314 |   # what "hidden" libraries, object files and flags are used when | 
 | 15315 |   # linking a shared library. | 
 | 15316 |   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 15317 |  | 
 | 15318 | else | 
 | 15319 |   GXX=no | 
 | 15320 |   with_gnu_ld=no | 
 | 15321 |   wlarc= | 
 | 15322 | fi | 
 | 15323 |  | 
 | 15324 | # PORTME: fill in a description of your system's C++ link characteristics | 
 | 15325 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 15326 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 15327 | ld_shlibs_CXX=yes | 
 | 15328 | case $host_os in | 
 | 15329 |   aix3*) | 
 | 15330 |     # FIXME: insert proper C++ library support | 
 | 15331 |     ld_shlibs_CXX=no | 
 | 15332 |     ;; | 
 | 15333 |   aix4* | aix5*) | 
 | 15334 |     if test "$host_cpu" = ia64; then | 
 | 15335 |       # On IA64, the linker does run time linking by default, so we don't | 
 | 15336 |       # have to do anything special. | 
 | 15337 |       aix_use_runtimelinking=no | 
 | 15338 |       exp_sym_flag='-Bexport' | 
 | 15339 |       no_entry_flag="" | 
 | 15340 |     else | 
 | 15341 |       aix_use_runtimelinking=no | 
 | 15342 |  | 
 | 15343 |       # Test if we are trying to use run time linking or normal | 
 | 15344 |       # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 15345 |       # need to do runtime linking. | 
 | 15346 |       case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 15347 | 	for ld_flag in $LDFLAGS; do | 
 | 15348 | 	  case $ld_flag in | 
 | 15349 | 	  *-brtl*) | 
 | 15350 | 	    aix_use_runtimelinking=yes | 
 | 15351 | 	    break | 
 | 15352 | 	    ;; | 
 | 15353 | 	  esac | 
 | 15354 | 	done | 
 | 15355 |       esac | 
 | 15356 |  | 
 | 15357 |       exp_sym_flag='-bexport' | 
 | 15358 |       no_entry_flag='-bnoentry' | 
 | 15359 |     fi | 
 | 15360 |  | 
 | 15361 |     # When large executables or shared objects are built, AIX ld can | 
 | 15362 |     # have problems creating the table of contents.  If linking a library | 
 | 15363 |     # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 15364 |     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 15365 |     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 15366 |  | 
 | 15367 |     archive_cmds_CXX='' | 
 | 15368 |     hardcode_direct_CXX=yes | 
 | 15369 |     hardcode_libdir_separator_CXX=':' | 
 | 15370 |     link_all_deplibs_CXX=yes | 
 | 15371 |  | 
 | 15372 |     if test "$GXX" = yes; then | 
 | 15373 |       case $host_os in aix4.012|aix4.012.*) | 
 | 15374 |       # We only want to do this on AIX 4.2 and lower, the check | 
 | 15375 |       # below for broken collect2 doesn't work under 4.3+ | 
 | 15376 | 	collect2name=`${CC} -print-prog-name=collect2` | 
 | 15377 | 	if test -f "$collect2name" && \ | 
 | 15378 | 	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 15379 | 	then | 
 | 15380 | 	  # We have reworked collect2 | 
 | 15381 | 	  hardcode_direct_CXX=yes | 
 | 15382 | 	else | 
 | 15383 | 	  # We have old collect2 | 
 | 15384 | 	  hardcode_direct_CXX=unsupported | 
 | 15385 | 	  # It fails to find uninstalled libraries when the uninstalled | 
 | 15386 | 	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 15387 | 	  # to unsupported forces relinking | 
 | 15388 | 	  hardcode_minus_L_CXX=yes | 
 | 15389 | 	  hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 15390 | 	  hardcode_libdir_separator_CXX= | 
 | 15391 | 	fi | 
 | 15392 |       esac | 
 | 15393 |       shared_flag='-shared' | 
 | 15394 |     else | 
 | 15395 |       # not using gcc | 
 | 15396 |       if test "$host_cpu" = ia64; then | 
 | 15397 | 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 15398 | 	# chokes on -Wl,-G. The following line is correct: | 
 | 15399 | 	shared_flag='-G' | 
 | 15400 |       else | 
 | 15401 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 15402 | 	  shared_flag='${wl}-G' | 
 | 15403 | 	else | 
 | 15404 | 	  shared_flag='${wl}-bM:SRE' | 
 | 15405 | 	fi | 
 | 15406 |       fi | 
 | 15407 |     fi | 
 | 15408 |  | 
 | 15409 |     # It seems that -bexpall does not export symbols beginning with | 
 | 15410 |     # underscore (_), so it is better to generate a list of symbols to export. | 
 | 15411 |     always_export_symbols_CXX=yes | 
 | 15412 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 15413 |       # Warning - without using the other runtime loading flags (-brtl), | 
 | 15414 |       # -berok will link without error, but may produce a broken library. | 
 | 15415 |       allow_undefined_flag_CXX='-berok' | 
 | 15416 |       # Determine the default libpath from the value encoded in an empty executable. | 
 | 15417 |       cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15418 | /* confdefs.h.  */ | 
 | 15419 | _ACEOF | 
 | 15420 | cat confdefs.h >>conftest.$ac_ext | 
 | 15421 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 15422 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15423 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15424 | int | 
 | 15425 | main () | 
 | 15426 | { | 
 | 15427 |  | 
 | 15428 |   ; | 
 | 15429 |   return 0; | 
 | 15430 | } | 
 | 15431 | _ACEOF | 
 | 15432 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 15433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15434 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15435 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15436 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 15437 |   rm -f conftest.er1 | 
 | 15438 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15439 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15440 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15441 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 15442 | 			 || test ! -s conftest.err' | 
 | 15443 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15444 |   (eval $ac_try) 2>&5 | 
 | 15445 |   ac_status=$? | 
 | 15446 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15447 |   (exit $ac_status); }; } && | 
 | 15448 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15449 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15450 |   (eval $ac_try) 2>&5 | 
 | 15451 |   ac_status=$? | 
 | 15452 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15453 |   (exit $ac_status); }; }; then | 
 | 15454 |  | 
 | 15455 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 15456 | }'` | 
 | 15457 | # Check for a 64-bit object if we didn't find anything. | 
 | 15458 | 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; } | 
 | 15459 | }'`; fi | 
 | 15460 | else | 
 | 15461 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15462 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 15463 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15464 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15465 | rm -f conftest.err conftest.$ac_objext \ | 
 | 15466 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15467 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 15468 |  | 
 | 15469 |       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 15470 |  | 
 | 15471 |       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" | 
 | 15472 |      else | 
 | 15473 |       if test "$host_cpu" = ia64; then | 
 | 15474 | 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
 | 15475 | 	allow_undefined_flag_CXX="-z nodefs" | 
 | 15476 | 	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" | 
 | 15477 |       else | 
 | 15478 | 	# Determine the default libpath from the value encoded in an empty executable. | 
 | 15479 | 	cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15480 | /* confdefs.h.  */ | 
 | 15481 | _ACEOF | 
 | 15482 | cat confdefs.h >>conftest.$ac_ext | 
 | 15483 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 15484 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15485 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15486 | int | 
 | 15487 | main () | 
 | 15488 | { | 
 | 15489 |  | 
 | 15490 |   ; | 
 | 15491 |   return 0; | 
 | 15492 | } | 
 | 15493 | _ACEOF | 
 | 15494 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 15495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15496 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15497 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15498 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 15499 |   rm -f conftest.er1 | 
 | 15500 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15501 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15502 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15503 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 15504 | 			 || test ! -s conftest.err' | 
 | 15505 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15506 |   (eval $ac_try) 2>&5 | 
 | 15507 |   ac_status=$? | 
 | 15508 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15509 |   (exit $ac_status); }; } && | 
 | 15510 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15511 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15512 |   (eval $ac_try) 2>&5 | 
 | 15513 |   ac_status=$? | 
 | 15514 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15515 |   (exit $ac_status); }; }; then | 
 | 15516 |  | 
 | 15517 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 15518 | }'` | 
 | 15519 | # Check for a 64-bit object if we didn't find anything. | 
 | 15520 | 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; } | 
 | 15521 | }'`; fi | 
 | 15522 | else | 
 | 15523 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15524 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 15525 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15526 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15527 | rm -f conftest.err conftest.$ac_objext \ | 
 | 15528 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15529 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 15530 |  | 
 | 15531 | 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 15532 | 	# Warning - without using the other run time loading flags, | 
 | 15533 | 	# -berok will link without error, but may produce a broken library. | 
 | 15534 | 	no_undefined_flag_CXX=' ${wl}-bernotok' | 
 | 15535 | 	allow_undefined_flag_CXX=' ${wl}-berok' | 
 | 15536 | 	# -bexpall does not export symbols beginning with underscore (_) | 
 | 15537 | 	always_export_symbols_CXX=yes | 
 | 15538 | 	# Exported symbols can be pulled into shared objects from archives | 
 | 15539 | 	whole_archive_flag_spec_CXX=' ' | 
 | 15540 | 	archive_cmds_need_lc_CXX=yes | 
 | 15541 | 	# This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15542 | 	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] | 15543 |       fi | 
 | 15544 |     fi | 
 | 15545 |     ;; | 
 | 15546 |   chorus*) | 
 | 15547 |     case $cc_basename in | 
 | 15548 |       *) | 
 | 15549 | 	# FIXME: insert proper C++ library support | 
 | 15550 | 	ld_shlibs_CXX=no | 
 | 15551 | 	;; | 
 | 15552 |     esac | 
 | 15553 |     ;; | 
 | 15554 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15555 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15556 |   cygwin* | mingw* | pw32*) | 
 | 15557 |     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
 | 15558 |     # as there is no search path for DLLs. | 
 | 15559 |     hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 15560 |     allow_undefined_flag_CXX=unsupported | 
 | 15561 |     always_export_symbols_CXX=no | 
 | 15562 |     enable_shared_with_static_runtimes_CXX=yes | 
 | 15563 |  | 
 | 15564 |     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 15565 |       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' | 
 | 15566 |       # If the export-symbols file already is a .def file (1st line | 
 | 15567 |       # is EXPORTS), use it as is; otherwise, prepend... | 
 | 15568 |       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 15569 | 	cp $export_symbols $output_objdir/$soname.def; | 
 | 15570 |       else | 
 | 15571 | 	echo EXPORTS > $output_objdir/$soname.def; | 
 | 15572 | 	cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15573 |       fi~ | 
 | 15574 |       $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] | 15575 |     else | 
 | 15576 |       ld_shlibs_CXX=no | 
 | 15577 |     fi | 
 | 15578 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15579 |       darwin* | rhapsody*) | 
 | 15580 |         case "$host_os" in | 
 | 15581 |         rhapsody* | darwin1.[012]) | 
 | 15582 |          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | 
 | 15583 |          ;; | 
 | 15584 |        *) # Darwin 1.3 on | 
 | 15585 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 15586 |            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 15587 |          else | 
 | 15588 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 15589 |              10.[012]) | 
 | 15590 |                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 15591 |                ;; | 
 | 15592 |              10.*) | 
 | 15593 |                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | 
 | 15594 |                ;; | 
 | 15595 |            esac | 
 | 15596 |          fi | 
 | 15597 |          ;; | 
 | 15598 |         esac | 
 | 15599 |       archive_cmds_need_lc_CXX=no | 
 | 15600 |       hardcode_direct_CXX=no | 
 | 15601 |       hardcode_automatic_CXX=yes | 
 | 15602 |       hardcode_shlibpath_var_CXX=unsupported | 
 | 15603 |       whole_archive_flag_spec_CXX='' | 
 | 15604 |       link_all_deplibs_CXX=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15605 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15606 |     if test "$GXX" = yes ; then | 
 | 15607 |       lt_int_apple_cc_single_mod=no | 
 | 15608 |       output_verbose_link_cmd='echo' | 
 | 15609 |       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | 
 | 15610 |        lt_int_apple_cc_single_mod=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15611 |       fi | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15612 |       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15613 |        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] | 15614 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15615 |           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] | 15616 |         fi | 
 | 15617 |         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 15618 |         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 15619 |           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15620 |             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] | 15621 |           else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15622 |             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] | 15623 |           fi | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15624 |             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] | 15625 |       else | 
 | 15626 |       case "$cc_basename" in | 
 | 15627 |         xlc*) | 
 | 15628 |          output_verbose_link_cmd='echo' | 
 | 15629 |           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' | 
 | 15630 |           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 15631 |           # 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] | 15632 |           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}' | 
 | 15633 |           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] | 15634 |           ;; | 
 | 15635 |        *) | 
 | 15636 |          ld_shlibs_CXX=no | 
 | 15637 |           ;; | 
 | 15638 |       esac | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 15639 |       fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15640 |         ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15641 |  | 
 | 15642 |   dgux*) | 
 | 15643 |     case $cc_basename in | 
 | 15644 |       ec++) | 
 | 15645 | 	# FIXME: insert proper C++ library support | 
 | 15646 | 	ld_shlibs_CXX=no | 
 | 15647 | 	;; | 
 | 15648 |       ghcx) | 
 | 15649 | 	# Green Hills C++ Compiler | 
 | 15650 | 	# FIXME: insert proper C++ library support | 
 | 15651 | 	ld_shlibs_CXX=no | 
 | 15652 | 	;; | 
 | 15653 |       *) | 
 | 15654 | 	# FIXME: insert proper C++ library support | 
 | 15655 | 	ld_shlibs_CXX=no | 
 | 15656 | 	;; | 
 | 15657 |     esac | 
 | 15658 |     ;; | 
 | 15659 |   freebsd12*) | 
 | 15660 |     # C++ shared libraries reported to be fairly broken before switch to ELF | 
 | 15661 |     ld_shlibs_CXX=no | 
 | 15662 |     ;; | 
 | 15663 |   freebsd-elf*) | 
 | 15664 |     archive_cmds_need_lc_CXX=no | 
 | 15665 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15666 |   freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15667 |     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
 | 15668 |     # conventions | 
 | 15669 |     ld_shlibs_CXX=yes | 
 | 15670 |     ;; | 
 | 15671 |   gnu*) | 
 | 15672 |     ;; | 
 | 15673 |   hpux9*) | 
 | 15674 |     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 15675 |     hardcode_libdir_separator_CXX=: | 
 | 15676 |     export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 15677 |     hardcode_direct_CXX=yes | 
 | 15678 |     hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 15679 | 				# but as the default | 
 | 15680 | 				# location of the library. | 
 | 15681 |  | 
 | 15682 |     case $cc_basename in | 
 | 15683 |     CC) | 
 | 15684 |       # FIXME: insert proper C++ library support | 
 | 15685 |       ld_shlibs_CXX=no | 
 | 15686 |       ;; | 
 | 15687 |     aCC) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15688 |       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] | 15689 |       # Commands to make compiler produce verbose output that lists | 
 | 15690 |       # what "hidden" libraries, object files and flags are used when | 
 | 15691 |       # linking a shared library. | 
 | 15692 |       # | 
 | 15693 |       # There doesn't appear to be a way to prevent this compiler from | 
 | 15694 |       # explicitly linking system object files so we need to strip them | 
 | 15695 |       # from the output so that they don't get included in the library | 
 | 15696 |       # dependencies. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15697 |       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] | 15698 |       ;; | 
 | 15699 |     *) | 
 | 15700 |       if test "$GXX" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15701 |         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] | 15702 |       else | 
 | 15703 |         # FIXME: insert proper C++ library support | 
 | 15704 |         ld_shlibs_CXX=no | 
 | 15705 |       fi | 
 | 15706 |       ;; | 
 | 15707 |     esac | 
 | 15708 |     ;; | 
 | 15709 |   hpux10*|hpux11*) | 
 | 15710 |     if test $with_gnu_ld = no; then | 
 | 15711 |       case "$host_cpu" in | 
 | 15712 |       hppa*64*) | 
 | 15713 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 15714 | 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
 | 15715 | 	hardcode_libdir_separator_CXX=: | 
 | 15716 |         ;; | 
 | 15717 |       ia64*) | 
 | 15718 | 	hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 15719 |         ;; | 
 | 15720 |       *) | 
 | 15721 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 15722 | 	hardcode_libdir_separator_CXX=: | 
 | 15723 | 	export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 15724 |         ;; | 
 | 15725 |       esac | 
 | 15726 |     fi | 
 | 15727 |     case "$host_cpu" in | 
 | 15728 |     hppa*64*) | 
 | 15729 |       hardcode_direct_CXX=no | 
 | 15730 |       hardcode_shlibpath_var_CXX=no | 
 | 15731 |       ;; | 
 | 15732 |     ia64*) | 
 | 15733 |       hardcode_direct_CXX=no | 
 | 15734 |       hardcode_shlibpath_var_CXX=no | 
 | 15735 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 15736 | 					      # but as the default | 
 | 15737 | 					      # location of the library. | 
 | 15738 |       ;; | 
 | 15739 |     *) | 
 | 15740 |       hardcode_direct_CXX=yes | 
 | 15741 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 15742 | 					      # but as the default | 
 | 15743 | 					      # location of the library. | 
 | 15744 |       ;; | 
 | 15745 |     esac | 
 | 15746 |  | 
 | 15747 |     case $cc_basename in | 
 | 15748 |       CC) | 
 | 15749 | 	# FIXME: insert proper C++ library support | 
 | 15750 | 	ld_shlibs_CXX=no | 
 | 15751 | 	;; | 
 | 15752 |       aCC) | 
 | 15753 | 	case "$host_cpu" in | 
 | 15754 | 	hppa*64*|ia64*) | 
 | 15755 | 	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 15756 | 	  ;; | 
 | 15757 | 	*) | 
 | 15758 | 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 15759 | 	  ;; | 
 | 15760 | 	esac | 
 | 15761 | 	# Commands to make compiler produce verbose output that lists | 
 | 15762 | 	# what "hidden" libraries, object files and flags are used when | 
 | 15763 | 	# linking a shared library. | 
 | 15764 | 	# | 
 | 15765 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 15766 | 	# explicitly linking system object files so we need to strip them | 
 | 15767 | 	# from the output so that they don't get included in the library | 
 | 15768 | 	# dependencies. | 
 | 15769 | 	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' | 
 | 15770 | 	;; | 
 | 15771 |       *) | 
 | 15772 | 	if test "$GXX" = yes; then | 
 | 15773 | 	  if test $with_gnu_ld = no; then | 
 | 15774 | 	    case "$host_cpu" in | 
 | 15775 | 	    ia64*|hppa*64*) | 
 | 15776 | 	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 15777 | 	      ;; | 
 | 15778 | 	    *) | 
 | 15779 | 	      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' | 
 | 15780 | 	      ;; | 
 | 15781 | 	    esac | 
 | 15782 | 	  fi | 
 | 15783 | 	else | 
 | 15784 | 	  # FIXME: insert proper C++ library support | 
 | 15785 | 	  ld_shlibs_CXX=no | 
 | 15786 | 	fi | 
 | 15787 | 	;; | 
 | 15788 |     esac | 
 | 15789 |     ;; | 
 | 15790 |   irix5* | irix6*) | 
 | 15791 |     case $cc_basename in | 
 | 15792 |       CC) | 
 | 15793 | 	# SGI C++ | 
 | 15794 | 	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' | 
 | 15795 |  | 
 | 15796 | 	# Archives containing C++ object files must be created using | 
 | 15797 | 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
 | 15798 | 	# necessary to make sure instantiated templates are included | 
 | 15799 | 	# in the archive. | 
 | 15800 | 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
 | 15801 | 	;; | 
 | 15802 |       *) | 
 | 15803 | 	if test "$GXX" = yes; then | 
 | 15804 | 	  if test "$with_gnu_ld" = no; then | 
 | 15805 | 	    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' | 
 | 15806 | 	  else | 
 | 15807 | 	    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' | 
 | 15808 | 	  fi | 
 | 15809 | 	fi | 
 | 15810 | 	link_all_deplibs_CXX=yes | 
 | 15811 | 	;; | 
 | 15812 |     esac | 
 | 15813 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 15814 |     hardcode_libdir_separator_CXX=: | 
 | 15815 |     ;; | 
 | 15816 |   linux*) | 
 | 15817 |     case $cc_basename in | 
 | 15818 |       KCC) | 
 | 15819 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 15820 |  | 
 | 15821 | 	# KCC will only create a shared library if the output file | 
 | 15822 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 15823 | 	# to its proper name (with version) after linking. | 
 | 15824 | 	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' | 
 | 15825 | 	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' | 
 | 15826 | 	# Commands to make compiler produce verbose output that lists | 
 | 15827 | 	# what "hidden" libraries, object files and flags are used when | 
 | 15828 | 	# linking a shared library. | 
 | 15829 | 	# | 
 | 15830 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 15831 | 	# explicitly linking system object files so we need to strip them | 
 | 15832 | 	# from the output so that they don't get included in the library | 
 | 15833 | 	# dependencies. | 
 | 15834 | 	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' | 
 | 15835 |  | 
 | 15836 | 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
 | 15837 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 15838 |  | 
 | 15839 | 	# Archives containing C++ object files must be created using | 
 | 15840 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 15841 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 15842 | 	;; | 
 | 15843 |       icpc) | 
 | 15844 | 	# Intel C++ | 
 | 15845 | 	with_gnu_ld=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15846 | 	# version 8.0 and above of icpc choke on multiply defined symbols | 
 | 15847 | 	# if we add $predep_objects and $postdep_objects, however 7.1 and | 
 | 15848 | 	# earlier do not add the objects themselves. | 
 | 15849 | 	case `$CC -V 2>&1` in | 
 | 15850 | 	*"Version 7."*) | 
 | 15851 |   	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15852 |   	  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' | 
 | 15853 | 	  ;; | 
 | 15854 | 	*)  # Version 8.0 or newer | 
 | 15855 |   	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15856 |   	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15857 | 	  ;; | 
 | 15858 | 	esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15859 | 	archive_cmds_need_lc_CXX=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15860 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 15861 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 15862 | 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 15863 | 	;; | 
 | 15864 |       cxx) | 
 | 15865 | 	# Compaq C++ | 
 | 15866 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15867 | 	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' | 
 | 15868 |  | 
 | 15869 | 	runpath_var=LD_RUN_PATH | 
 | 15870 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 15871 | 	hardcode_libdir_separator_CXX=: | 
 | 15872 |  | 
 | 15873 | 	# Commands to make compiler produce verbose output that lists | 
 | 15874 | 	# what "hidden" libraries, object files and flags are used when | 
 | 15875 | 	# linking a shared library. | 
 | 15876 | 	# | 
 | 15877 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 15878 | 	# explicitly linking system object files so we need to strip them | 
 | 15879 | 	# from the output so that they don't get included in the library | 
 | 15880 | 	# dependencies. | 
 | 15881 | 	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' | 
 | 15882 | 	;; | 
 | 15883 |     esac | 
 | 15884 |     ;; | 
 | 15885 |   lynxos*) | 
 | 15886 |     # FIXME: insert proper C++ library support | 
 | 15887 |     ld_shlibs_CXX=no | 
 | 15888 |     ;; | 
 | 15889 |   m88k*) | 
 | 15890 |     # FIXME: insert proper C++ library support | 
 | 15891 |     ld_shlibs_CXX=no | 
 | 15892 |     ;; | 
 | 15893 |   mvs*) | 
 | 15894 |     case $cc_basename in | 
 | 15895 |       cxx) | 
 | 15896 | 	# FIXME: insert proper C++ library support | 
 | 15897 | 	ld_shlibs_CXX=no | 
 | 15898 | 	;; | 
 | 15899 |       *) | 
 | 15900 | 	# FIXME: insert proper C++ library support | 
 | 15901 | 	ld_shlibs_CXX=no | 
 | 15902 | 	;; | 
 | 15903 |     esac | 
 | 15904 |     ;; | 
 | 15905 |   netbsd*) | 
 | 15906 |     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 15907 |       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
 | 15908 |       wlarc= | 
 | 15909 |       hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 15910 |       hardcode_direct_CXX=yes | 
 | 15911 |       hardcode_shlibpath_var_CXX=no | 
 | 15912 |     fi | 
 | 15913 |     # Workaround some broken pre-1.5 toolchains | 
 | 15914 |     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
 | 15915 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15916 |   openbsd2*) | 
 | 15917 |     # C++ shared libraries are fairly broken | 
 | 15918 |     ld_shlibs_CXX=no | 
 | 15919 |     ;; | 
 | 15920 |   openbsd*) | 
 | 15921 |     hardcode_direct_CXX=yes | 
 | 15922 |     hardcode_shlibpath_var_CXX=no | 
 | 15923 |     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
 | 15924 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 15925 |     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 15926 |       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
 | 15927 |       export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 15928 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 15929 |     fi | 
 | 15930 |     output_verbose_link_cmd='echo' | 
 | 15931 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15932 |   osf3*) | 
 | 15933 |     case $cc_basename in | 
 | 15934 |       KCC) | 
 | 15935 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 15936 |  | 
 | 15937 | 	# KCC will only create a shared library if the output file | 
 | 15938 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 15939 | 	# to its proper name (with version) after linking. | 
 | 15940 | 	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' | 
 | 15941 |  | 
 | 15942 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 15943 | 	hardcode_libdir_separator_CXX=: | 
 | 15944 |  | 
 | 15945 | 	# Archives containing C++ object files must be created using | 
 | 15946 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 15947 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 15948 |  | 
 | 15949 | 	;; | 
 | 15950 |       RCC) | 
 | 15951 | 	# Rational C++ 2.4.1 | 
 | 15952 | 	# FIXME: insert proper C++ library support | 
 | 15953 | 	ld_shlibs_CXX=no | 
 | 15954 | 	;; | 
 | 15955 |       cxx) | 
 | 15956 | 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 15957 | 	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' | 
 | 15958 |  | 
 | 15959 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 15960 | 	hardcode_libdir_separator_CXX=: | 
 | 15961 |  | 
 | 15962 | 	# Commands to make compiler produce verbose output that lists | 
 | 15963 | 	# what "hidden" libraries, object files and flags are used when | 
 | 15964 | 	# linking a shared library. | 
 | 15965 | 	# | 
 | 15966 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 15967 | 	# explicitly linking system object files so we need to strip them | 
 | 15968 | 	# from the output so that they don't get included in the library | 
 | 15969 | 	# dependencies. | 
 | 15970 | 	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' | 
 | 15971 | 	;; | 
 | 15972 |       *) | 
 | 15973 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 15974 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 15975 | 	  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' | 
 | 15976 |  | 
 | 15977 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 15978 | 	  hardcode_libdir_separator_CXX=: | 
 | 15979 |  | 
 | 15980 | 	  # Commands to make compiler produce verbose output that lists | 
 | 15981 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 15982 | 	  # linking a shared library. | 
 | 15983 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 15984 |  | 
 | 15985 | 	else | 
 | 15986 | 	  # FIXME: insert proper C++ library support | 
 | 15987 | 	  ld_shlibs_CXX=no | 
 | 15988 | 	fi | 
 | 15989 | 	;; | 
 | 15990 |     esac | 
 | 15991 |     ;; | 
 | 15992 |   osf4* | osf5*) | 
 | 15993 |     case $cc_basename in | 
 | 15994 |       KCC) | 
 | 15995 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 15996 |  | 
 | 15997 | 	# KCC will only create a shared library if the output file | 
 | 15998 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 15999 | 	# to its proper name (with version) after linking. | 
 | 16000 | 	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' | 
 | 16001 |  | 
 | 16002 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 16003 | 	hardcode_libdir_separator_CXX=: | 
 | 16004 |  | 
 | 16005 | 	# Archives containing C++ object files must be created using | 
 | 16006 | 	# the KAI C++ compiler. | 
 | 16007 | 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
 | 16008 | 	;; | 
 | 16009 |       RCC) | 
 | 16010 | 	# Rational C++ 2.4.1 | 
 | 16011 | 	# FIXME: insert proper C++ library support | 
 | 16012 | 	ld_shlibs_CXX=no | 
 | 16013 | 	;; | 
 | 16014 |       cxx) | 
 | 16015 | 	allow_undefined_flag_CXX=' -expect_unresolved \*' | 
 | 16016 | 	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] | 16017 | 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
 | 16018 | 	  echo "-hidden">> $lib.exp~ | 
 | 16019 | 	  $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~ | 
 | 16020 | 	  $rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16021 |  | 
 | 16022 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 16023 | 	hardcode_libdir_separator_CXX=: | 
 | 16024 |  | 
 | 16025 | 	# Commands to make compiler produce verbose output that lists | 
 | 16026 | 	# what "hidden" libraries, object files and flags are used when | 
 | 16027 | 	# linking a shared library. | 
 | 16028 | 	# | 
 | 16029 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 16030 | 	# explicitly linking system object files so we need to strip them | 
 | 16031 | 	# from the output so that they don't get included in the library | 
 | 16032 | 	# dependencies. | 
 | 16033 | 	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' | 
 | 16034 | 	;; | 
 | 16035 |       *) | 
 | 16036 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 16037 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16038 | 	 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' | 
 | 16039 |  | 
 | 16040 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 16041 | 	  hardcode_libdir_separator_CXX=: | 
 | 16042 |  | 
 | 16043 | 	  # Commands to make compiler produce verbose output that lists | 
 | 16044 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 16045 | 	  # linking a shared library. | 
 | 16046 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 16047 |  | 
 | 16048 | 	else | 
 | 16049 | 	  # FIXME: insert proper C++ library support | 
 | 16050 | 	  ld_shlibs_CXX=no | 
 | 16051 | 	fi | 
 | 16052 | 	;; | 
 | 16053 |     esac | 
 | 16054 |     ;; | 
 | 16055 |   psos*) | 
 | 16056 |     # FIXME: insert proper C++ library support | 
 | 16057 |     ld_shlibs_CXX=no | 
 | 16058 |     ;; | 
 | 16059 |   sco*) | 
 | 16060 |     archive_cmds_need_lc_CXX=no | 
 | 16061 |     case $cc_basename in | 
 | 16062 |       CC) | 
 | 16063 | 	# FIXME: insert proper C++ library support | 
 | 16064 | 	ld_shlibs_CXX=no | 
 | 16065 | 	;; | 
 | 16066 |       *) | 
 | 16067 | 	# FIXME: insert proper C++ library support | 
 | 16068 | 	ld_shlibs_CXX=no | 
 | 16069 | 	;; | 
 | 16070 |     esac | 
 | 16071 |     ;; | 
 | 16072 |   sunos4*) | 
 | 16073 |     case $cc_basename in | 
 | 16074 |       CC) | 
 | 16075 | 	# Sun C++ 4.x | 
 | 16076 | 	# FIXME: insert proper C++ library support | 
 | 16077 | 	ld_shlibs_CXX=no | 
 | 16078 | 	;; | 
 | 16079 |       lcc) | 
 | 16080 | 	# Lucid | 
 | 16081 | 	# FIXME: insert proper C++ library support | 
 | 16082 | 	ld_shlibs_CXX=no | 
 | 16083 | 	;; | 
 | 16084 |       *) | 
 | 16085 | 	# FIXME: insert proper C++ library support | 
 | 16086 | 	ld_shlibs_CXX=no | 
 | 16087 | 	;; | 
 | 16088 |     esac | 
 | 16089 |     ;; | 
 | 16090 |   solaris*) | 
 | 16091 |     case $cc_basename in | 
 | 16092 |       CC) | 
 | 16093 | 	# Sun C++ 4.2, 5.x and Centerline C++ | 
 | 16094 | 	no_undefined_flag_CXX=' -zdefs' | 
 | 16095 | 	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] | 16096 | 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16097 | 	$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] | 16098 |  | 
 | 16099 | 	hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 16100 | 	hardcode_shlibpath_var_CXX=no | 
 | 16101 | 	case $host_os in | 
 | 16102 | 	  solaris2.0-5 | solaris2.0-5.*) ;; | 
 | 16103 | 	  *) | 
 | 16104 | 	    # The C++ compiler is used as linker so we must use $wl | 
 | 16105 | 	    # flag to pass the commands to the underlying system | 
 | 16106 | 	    # linker. | 
 | 16107 | 	    # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 16108 | 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
 | 16109 | 	    ;; | 
 | 16110 | 	esac | 
 | 16111 | 	link_all_deplibs_CXX=yes | 
 | 16112 |  | 
 | 16113 | 	# Commands to make compiler produce verbose output that lists | 
 | 16114 | 	# what "hidden" libraries, object files and flags are used when | 
 | 16115 | 	# linking a shared library. | 
 | 16116 | 	# | 
 | 16117 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 16118 | 	# explicitly linking system object files so we need to strip them | 
 | 16119 | 	# from the output so that they don't get included in the library | 
 | 16120 | 	# dependencies. | 
 | 16121 | 	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' | 
 | 16122 |  | 
 | 16123 | 	# Archives containing C++ object files must be created using | 
 | 16124 | 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
 | 16125 | 	# necessary to make sure instantiated templates are included | 
 | 16126 | 	# in the archive. | 
 | 16127 | 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
 | 16128 | 	;; | 
 | 16129 |       gcx) | 
 | 16130 | 	# Green Hills C++ Compiler | 
 | 16131 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 16132 |  | 
 | 16133 | 	# The C++ compiler must be used to create the archive. | 
 | 16134 | 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
 | 16135 | 	;; | 
 | 16136 |       *) | 
 | 16137 | 	# GNU C++ compiler with Solaris linker | 
 | 16138 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 16139 | 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
 | 16140 | 	  if $CC --version | grep -v '^2\.7' > /dev/null; then | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16141 | 	    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] | 16142 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16143 | 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
 | 16144 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16145 | 	    # Commands to make compiler produce verbose output that lists | 
 | 16146 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 16147 | 	    # linking a shared library. | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 16148 | 	    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] | 16149 | 	  else | 
 | 16150 | 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
 | 16151 | 	    # platform. | 
 | 16152 | 	    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] | 16153 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16154 | 		$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] | 16155 |  | 
 | 16156 | 	    # Commands to make compiler produce verbose output that lists | 
 | 16157 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 16158 | 	    # linking a shared library. | 
 | 16159 | 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
 | 16160 | 	  fi | 
 | 16161 |  | 
 | 16162 | 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
 | 16163 | 	fi | 
 | 16164 | 	;; | 
 | 16165 |     esac | 
 | 16166 |     ;; | 
 | 16167 |   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 
 | 16168 |     archive_cmds_need_lc_CXX=no | 
 | 16169 |     ;; | 
 | 16170 |   tandem*) | 
 | 16171 |     case $cc_basename in | 
 | 16172 |       NCC) | 
 | 16173 | 	# NonStop-UX NCC 3.20 | 
 | 16174 | 	# FIXME: insert proper C++ library support | 
 | 16175 | 	ld_shlibs_CXX=no | 
 | 16176 | 	;; | 
 | 16177 |       *) | 
 | 16178 | 	# FIXME: insert proper C++ library support | 
 | 16179 | 	ld_shlibs_CXX=no | 
 | 16180 | 	;; | 
 | 16181 |     esac | 
 | 16182 |     ;; | 
 | 16183 |   vxworks*) | 
 | 16184 |     # FIXME: insert proper C++ library support | 
 | 16185 |     ld_shlibs_CXX=no | 
 | 16186 |     ;; | 
 | 16187 |   *) | 
 | 16188 |     # FIXME: insert proper C++ library support | 
 | 16189 |     ld_shlibs_CXX=no | 
 | 16190 |     ;; | 
 | 16191 | esac | 
 | 16192 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 16193 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 16194 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 16195 |  | 
 | 16196 | GCC_CXX="$GXX" | 
 | 16197 | LD_CXX="$LD" | 
 | 16198 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16199 |  | 
 | 16200 | cat > conftest.$ac_ext <<EOF | 
 | 16201 | class Foo | 
 | 16202 | { | 
 | 16203 | public: | 
 | 16204 |   Foo (void) { a = 0; } | 
 | 16205 | private: | 
 | 16206 |   int a; | 
 | 16207 | }; | 
 | 16208 | EOF | 
 | 16209 |  | 
 | 16210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 16211 |   (eval $ac_compile) 2>&5 | 
 | 16212 |   ac_status=$? | 
 | 16213 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16214 |   (exit $ac_status); }; then | 
 | 16215 |   # Parse the compiler output and extract the necessary | 
 | 16216 |   # objects, libraries and library flags. | 
 | 16217 |  | 
 | 16218 |   # Sentinel used to keep track of whether or not we are before | 
 | 16219 |   # the conftest object file. | 
 | 16220 |   pre_test_object_deps_done=no | 
 | 16221 |  | 
 | 16222 |   # The `*' in the case matches for architectures that use `case' in | 
 | 16223 |   # $output_verbose_cmd can trigger glob expansion during the loop | 
 | 16224 |   # eval without this substitution. | 
 | 16225 |   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 
 | 16226 |  | 
 | 16227 |   for p in `eval $output_verbose_link_cmd`; do | 
 | 16228 |     case $p in | 
 | 16229 |  | 
 | 16230 |     -L* | -R* | -l*) | 
 | 16231 |        # Some compilers place space between "-{L,R}" and the path. | 
 | 16232 |        # Remove the space. | 
 | 16233 |        if test $p = "-L" \ | 
 | 16234 | 	  || test $p = "-R"; then | 
 | 16235 | 	 prev=$p | 
 | 16236 | 	 continue | 
 | 16237 |        else | 
 | 16238 | 	 prev= | 
 | 16239 |        fi | 
 | 16240 |  | 
 | 16241 |        if test "$pre_test_object_deps_done" = no; then | 
 | 16242 | 	 case $p in | 
 | 16243 | 	 -L* | -R*) | 
 | 16244 | 	   # Internal compiler library paths should come after those | 
 | 16245 | 	   # provided the user.  The postdeps already come after the | 
 | 16246 | 	   # user supplied libs so there is no need to process them. | 
 | 16247 | 	   if test -z "$compiler_lib_search_path_CXX"; then | 
 | 16248 | 	     compiler_lib_search_path_CXX="${prev}${p}" | 
 | 16249 | 	   else | 
 | 16250 | 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
 | 16251 | 	   fi | 
 | 16252 | 	   ;; | 
 | 16253 | 	 # The "-l" case would never come before the object being | 
 | 16254 | 	 # linked, so don't bother handling this case. | 
 | 16255 | 	 esac | 
 | 16256 |        else | 
 | 16257 | 	 if test -z "$postdeps_CXX"; then | 
 | 16258 | 	   postdeps_CXX="${prev}${p}" | 
 | 16259 | 	 else | 
 | 16260 | 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
 | 16261 | 	 fi | 
 | 16262 |        fi | 
 | 16263 |        ;; | 
 | 16264 |  | 
 | 16265 |     *.$objext) | 
 | 16266 |        # This assumes that the test object file only shows up | 
 | 16267 |        # once in the compiler output. | 
 | 16268 |        if test "$p" = "conftest.$objext"; then | 
 | 16269 | 	 pre_test_object_deps_done=yes | 
 | 16270 | 	 continue | 
 | 16271 |        fi | 
 | 16272 |  | 
 | 16273 |        if test "$pre_test_object_deps_done" = no; then | 
 | 16274 | 	 if test -z "$predep_objects_CXX"; then | 
 | 16275 | 	   predep_objects_CXX="$p" | 
 | 16276 | 	 else | 
 | 16277 | 	   predep_objects_CXX="$predep_objects_CXX $p" | 
 | 16278 | 	 fi | 
 | 16279 |        else | 
 | 16280 | 	 if test -z "$postdep_objects_CXX"; then | 
 | 16281 | 	   postdep_objects_CXX="$p" | 
 | 16282 | 	 else | 
 | 16283 | 	   postdep_objects_CXX="$postdep_objects_CXX $p" | 
 | 16284 | 	 fi | 
 | 16285 |        fi | 
 | 16286 |        ;; | 
 | 16287 |  | 
 | 16288 |     *) ;; # Ignore the rest. | 
 | 16289 |  | 
 | 16290 |     esac | 
 | 16291 |   done | 
 | 16292 |  | 
 | 16293 |   # Clean up. | 
 | 16294 |   rm -f a.out a.exe | 
 | 16295 | else | 
 | 16296 |   echo "libtool.m4: error: problem compiling CXX test program" | 
 | 16297 | fi | 
 | 16298 |  | 
 | 16299 | $rm -f confest.$objext | 
 | 16300 |  | 
 | 16301 | case " $postdeps_CXX " in | 
 | 16302 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
 | 16303 | esac | 
 | 16304 |  | 
 | 16305 | lt_prog_compiler_wl_CXX= | 
 | 16306 | lt_prog_compiler_pic_CXX= | 
 | 16307 | lt_prog_compiler_static_CXX= | 
 | 16308 |  | 
 | 16309 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 16310 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 16311 |  | 
 | 16312 |   # C++ specific cases for pic, static, wl, etc. | 
 | 16313 |   if test "$GXX" = yes; then | 
 | 16314 |     lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16315 |     lt_prog_compiler_static_CXX='-static' | 
 | 16316 |  | 
 | 16317 |     case $host_os in | 
 | 16318 |     aix*) | 
 | 16319 |       # All AIX code is PIC. | 
 | 16320 |       if test "$host_cpu" = ia64; then | 
 | 16321 | 	# AIX 5 now supports IA64 processor | 
 | 16322 | 	lt_prog_compiler_static_CXX='-Bstatic' | 
 | 16323 |       fi | 
 | 16324 |       ;; | 
 | 16325 |     amigaos*) | 
 | 16326 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 16327 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 16328 |       # like `-m68040'. | 
 | 16329 |       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
 | 16330 |       ;; | 
 | 16331 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 16332 |       # PIC is the default for these OSes. | 
 | 16333 |       ;; | 
 | 16334 |     mingw* | os2* | pw32*) | 
 | 16335 |       # This hack is so that the source file can tell whether it is being | 
 | 16336 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 16337 |       lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
 | 16338 |       ;; | 
 | 16339 |     darwin* | rhapsody*) | 
 | 16340 |       # PIC is the default on this platform | 
 | 16341 |       # Common symbols not allowed in MH_DYLIB files | 
 | 16342 |       lt_prog_compiler_pic_CXX='-fno-common' | 
 | 16343 |       ;; | 
 | 16344 |     *djgpp*) | 
 | 16345 |       # DJGPP does not support shared libraries at all | 
 | 16346 |       lt_prog_compiler_pic_CXX= | 
 | 16347 |       ;; | 
 | 16348 |     sysv4*MP*) | 
 | 16349 |       if test -d /usr/nec; then | 
 | 16350 | 	lt_prog_compiler_pic_CXX=-Kconform_pic | 
 | 16351 |       fi | 
 | 16352 |       ;; | 
 | 16353 |     hpux*) | 
 | 16354 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 16355 |       # not for PA HP-UX. | 
 | 16356 |       case "$host_cpu" in | 
 | 16357 |       hppa*64*|ia64*) | 
 | 16358 | 	;; | 
 | 16359 |       *) | 
 | 16360 | 	lt_prog_compiler_pic_CXX='-fPIC' | 
 | 16361 | 	;; | 
 | 16362 |       esac | 
 | 16363 |       ;; | 
 | 16364 |     *) | 
 | 16365 |       lt_prog_compiler_pic_CXX='-fPIC' | 
 | 16366 |       ;; | 
 | 16367 |     esac | 
 | 16368 |   else | 
 | 16369 |     case $host_os in | 
 | 16370 |       aix4* | aix5*) | 
 | 16371 | 	# All AIX code is PIC. | 
 | 16372 | 	if test "$host_cpu" = ia64; then | 
 | 16373 | 	  # AIX 5 now supports IA64 processor | 
 | 16374 | 	  lt_prog_compiler_static_CXX='-Bstatic' | 
 | 16375 | 	else | 
 | 16376 | 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
 | 16377 | 	fi | 
 | 16378 | 	;; | 
 | 16379 |       chorus*) | 
 | 16380 | 	case $cc_basename in | 
 | 16381 | 	cxch68) | 
 | 16382 | 	  # Green Hills C++ Compiler | 
 | 16383 | 	  # _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" | 
 | 16384 | 	  ;; | 
 | 16385 | 	esac | 
 | 16386 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16387 |        darwin*) | 
 | 16388 |          # PIC is the default on this platform | 
 | 16389 |          # Common symbols not allowed in MH_DYLIB files | 
 | 16390 |          case "$cc_basename" in | 
 | 16391 |            xlc*) | 
 | 16392 |            lt_prog_compiler_pic_CXX='-qnocommon' | 
 | 16393 |            lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16394 |            ;; | 
 | 16395 |          esac | 
 | 16396 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16397 |       dgux*) | 
 | 16398 | 	case $cc_basename in | 
 | 16399 | 	  ec++) | 
 | 16400 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 16401 | 	    ;; | 
 | 16402 | 	  ghcx) | 
 | 16403 | 	    # Green Hills C++ Compiler | 
 | 16404 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 16405 | 	    ;; | 
 | 16406 | 	  *) | 
 | 16407 | 	    ;; | 
 | 16408 | 	esac | 
 | 16409 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16410 |       freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16411 | 	# FreeBSD uses GNU C++ | 
 | 16412 | 	;; | 
 | 16413 |       hpux9* | hpux10* | hpux11*) | 
 | 16414 | 	case $cc_basename in | 
 | 16415 | 	  CC) | 
 | 16416 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16417 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 16418 | 	    if test "$host_cpu" != ia64; then | 
 | 16419 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 16420 | 	    fi | 
 | 16421 | 	    ;; | 
 | 16422 | 	  aCC) | 
 | 16423 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16424 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 16425 | 	    case "$host_cpu" in | 
 | 16426 | 	    hppa*64*|ia64*) | 
 | 16427 | 	      # +Z the default | 
 | 16428 | 	      ;; | 
 | 16429 | 	    *) | 
 | 16430 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 16431 | 	      ;; | 
 | 16432 | 	    esac | 
 | 16433 | 	    ;; | 
 | 16434 | 	  *) | 
 | 16435 | 	    ;; | 
 | 16436 | 	esac | 
 | 16437 | 	;; | 
 | 16438 |       irix5* | irix6* | nonstopux*) | 
 | 16439 | 	case $cc_basename in | 
 | 16440 | 	  CC) | 
 | 16441 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16442 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 16443 | 	    # CC pic flag -KPIC is the default. | 
 | 16444 | 	    ;; | 
 | 16445 | 	  *) | 
 | 16446 | 	    ;; | 
 | 16447 | 	esac | 
 | 16448 | 	;; | 
 | 16449 |       linux*) | 
 | 16450 | 	case $cc_basename in | 
 | 16451 | 	  KCC) | 
 | 16452 | 	    # KAI C++ Compiler | 
 | 16453 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 16454 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 16455 | 	    ;; | 
 | 16456 | 	  icpc) | 
 | 16457 | 	    # Intel C++ | 
 | 16458 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16459 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 16460 | 	    lt_prog_compiler_static_CXX='-static' | 
 | 16461 | 	    ;; | 
 | 16462 | 	  cxx) | 
 | 16463 | 	    # Compaq C++ | 
 | 16464 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 16465 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 16466 | 	    lt_prog_compiler_pic_CXX= | 
 | 16467 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 16468 | 	    ;; | 
 | 16469 | 	  *) | 
 | 16470 | 	    ;; | 
 | 16471 | 	esac | 
 | 16472 | 	;; | 
 | 16473 |       lynxos*) | 
 | 16474 | 	;; | 
 | 16475 |       m88k*) | 
 | 16476 | 	;; | 
 | 16477 |       mvs*) | 
 | 16478 | 	case $cc_basename in | 
 | 16479 | 	  cxx) | 
 | 16480 | 	    lt_prog_compiler_pic_CXX='-W c,exportall' | 
 | 16481 | 	    ;; | 
 | 16482 | 	  *) | 
 | 16483 | 	    ;; | 
 | 16484 | 	esac | 
 | 16485 | 	;; | 
 | 16486 |       netbsd*) | 
 | 16487 | 	;; | 
 | 16488 |       osf3* | osf4* | osf5*) | 
 | 16489 | 	case $cc_basename in | 
 | 16490 | 	  KCC) | 
 | 16491 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 16492 | 	    ;; | 
 | 16493 | 	  RCC) | 
 | 16494 | 	    # Rational C++ 2.4.1 | 
 | 16495 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 16496 | 	    ;; | 
 | 16497 | 	  cxx) | 
 | 16498 | 	    # Digital/Compaq C++ | 
 | 16499 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 16500 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 16501 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 16502 | 	    lt_prog_compiler_pic_CXX= | 
 | 16503 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 16504 | 	    ;; | 
 | 16505 | 	  *) | 
 | 16506 | 	    ;; | 
 | 16507 | 	esac | 
 | 16508 | 	;; | 
 | 16509 |       psos*) | 
 | 16510 | 	;; | 
 | 16511 |       sco*) | 
 | 16512 | 	case $cc_basename in | 
 | 16513 | 	  CC) | 
 | 16514 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 16515 | 	    ;; | 
 | 16516 | 	  *) | 
 | 16517 | 	    ;; | 
 | 16518 | 	esac | 
 | 16519 | 	;; | 
 | 16520 |       solaris*) | 
 | 16521 | 	case $cc_basename in | 
 | 16522 | 	  CC) | 
 | 16523 | 	    # Sun C++ 4.2, 5.x and Centerline C++ | 
 | 16524 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 16525 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 16526 | 	    lt_prog_compiler_wl_CXX='-Qoption ld ' | 
 | 16527 | 	    ;; | 
 | 16528 | 	  gcx) | 
 | 16529 | 	    # Green Hills C++ Compiler | 
 | 16530 | 	    lt_prog_compiler_pic_CXX='-PIC' | 
 | 16531 | 	    ;; | 
 | 16532 | 	  *) | 
 | 16533 | 	    ;; | 
 | 16534 | 	esac | 
 | 16535 | 	;; | 
 | 16536 |       sunos4*) | 
 | 16537 | 	case $cc_basename in | 
 | 16538 | 	  CC) | 
 | 16539 | 	    # Sun C++ 4.x | 
 | 16540 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 16541 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 16542 | 	    ;; | 
 | 16543 | 	  lcc) | 
 | 16544 | 	    # Lucid | 
 | 16545 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 16546 | 	    ;; | 
 | 16547 | 	  *) | 
 | 16548 | 	    ;; | 
 | 16549 | 	esac | 
 | 16550 | 	;; | 
 | 16551 |       tandem*) | 
 | 16552 | 	case $cc_basename in | 
 | 16553 | 	  NCC) | 
 | 16554 | 	    # NonStop-UX NCC 3.20 | 
 | 16555 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 16556 | 	    ;; | 
 | 16557 | 	  *) | 
 | 16558 | 	    ;; | 
 | 16559 | 	esac | 
 | 16560 | 	;; | 
 | 16561 |       unixware*) | 
 | 16562 | 	;; | 
 | 16563 |       vxworks*) | 
 | 16564 | 	;; | 
 | 16565 |       *) | 
 | 16566 | 	lt_prog_compiler_can_build_shared_CXX=no | 
 | 16567 | 	;; | 
 | 16568 |     esac | 
 | 16569 |   fi | 
 | 16570 |  | 
 | 16571 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
 | 16572 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 
 | 16573 |  | 
 | 16574 | # | 
 | 16575 | # Check to make sure the PIC flag actually works. | 
 | 16576 | # | 
 | 16577 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16578 |  | 
 | 16579 | 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] | 16580 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 
 | 16581 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
 | 16582 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16583 | else | 
 | 16584 |   lt_prog_compiler_pic_works_CXX=no | 
 | 16585 |   ac_outfile=conftest.$ac_objext | 
 | 16586 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16587 |    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 16588 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 16589 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 16590 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 16591 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 16592 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 16593 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 16594 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 16595 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 16596 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 16597 |    (eval echo "\"\$as_me:16597: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16598 |    (eval "$lt_compile" 2>conftest.err) | 
 | 16599 |    ac_status=$? | 
 | 16600 |    cat conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 16601 |    echo "$as_me:16601: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16602 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 16603 |      # The compiler can only warn and ignore the option if not recognized | 
 | 16604 |      # So say no if there are warnings | 
 | 16605 |      if test ! -s conftest.err; then | 
 | 16606 |        lt_prog_compiler_pic_works_CXX=yes | 
 | 16607 |      fi | 
 | 16608 |    fi | 
 | 16609 |    $rm conftest* | 
 | 16610 |  | 
 | 16611 | fi | 
 | 16612 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
 | 16613 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 
 | 16614 |  | 
 | 16615 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
 | 16616 |     case $lt_prog_compiler_pic_CXX in | 
 | 16617 |      "" | " "*) ;; | 
 | 16618 |      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
 | 16619 |      esac | 
 | 16620 | else | 
 | 16621 |     lt_prog_compiler_pic_CXX= | 
 | 16622 |      lt_prog_compiler_can_build_shared_CXX=no | 
 | 16623 | fi | 
 | 16624 |  | 
 | 16625 | fi | 
 | 16626 | case "$host_os" in | 
 | 16627 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 16628 |   *djgpp*) | 
 | 16629 |     lt_prog_compiler_pic_CXX= | 
 | 16630 |     ;; | 
 | 16631 |   *) | 
 | 16632 |     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 16633 |     ;; | 
 | 16634 | esac | 
 | 16635 |  | 
 | 16636 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 16637 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 16638 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
 | 16639 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16640 | else | 
 | 16641 |   lt_cv_prog_compiler_c_o_CXX=no | 
 | 16642 |    $rm -r conftest 2>/dev/null | 
 | 16643 |    mkdir conftest | 
 | 16644 |    cd conftest | 
 | 16645 |    mkdir out | 
 | 16646 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16647 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16648 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 16649 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 16650 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 16651 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 16652 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 16653 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 16654 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 16655 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 16656 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 16657 |    (eval echo "\"\$as_me:16657: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16658 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 16659 |    ac_status=$? | 
 | 16660 |    cat out/conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 16661 |    echo "$as_me:16661: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16662 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 16663 |    then | 
 | 16664 |      # The compiler can only warn and ignore the option if not recognized | 
 | 16665 |      # So say no if there are warnings | 
 | 16666 |      if test ! -s out/conftest.err; then | 
 | 16667 |        lt_cv_prog_compiler_c_o_CXX=yes | 
 | 16668 |      fi | 
 | 16669 |    fi | 
 | 16670 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16671 |    $rm conftest* | 
 | 16672 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 16673 |    # template instantiation | 
 | 16674 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 16675 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16676 |    cd .. | 
 | 16677 |    rmdir conftest | 
 | 16678 |    $rm conftest* | 
 | 16679 |  | 
 | 16680 | fi | 
 | 16681 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
 | 16682 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 
 | 16683 |  | 
 | 16684 |  | 
 | 16685 | hard_links="nottested" | 
 | 16686 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
 | 16687 |   # do not overwrite the value of need_locks provided by the user | 
 | 16688 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 16689 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 16690 |   hard_links=yes | 
 | 16691 |   $rm conftest* | 
 | 16692 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 16693 |   touch conftest.a | 
 | 16694 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 16695 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 16696 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 16697 | echo "${ECHO_T}$hard_links" >&6 | 
 | 16698 |   if test "$hard_links" = no; then | 
 | 16699 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 16700 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 16701 |     need_locks=warn | 
 | 16702 |   fi | 
 | 16703 | else | 
 | 16704 |   need_locks=no | 
 | 16705 | fi | 
 | 16706 |  | 
 | 16707 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 16708 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 16709 |  | 
 | 16710 |   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 16711 |   case $host_os in | 
 | 16712 |   aix4* | aix5*) | 
 | 16713 |     # If we're using GNU nm, then we don't want the "-C" option. | 
 | 16714 |     # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 16715 |     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 16716 |       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' | 
 | 16717 |     else | 
 | 16718 |       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' | 
 | 16719 |     fi | 
 | 16720 |     ;; | 
 | 16721 |   pw32*) | 
 | 16722 |     export_symbols_cmds_CXX="$ltdll_cmds" | 
 | 16723 |   ;; | 
 | 16724 |   cygwin* | mingw*) | 
 | 16725 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 16726 |   ;; | 
 | 16727 |   *) | 
 | 16728 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 16729 |   ;; | 
 | 16730 |   esac | 
 | 16731 |  | 
 | 16732 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 16733 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 16734 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 16735 |  | 
 | 16736 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 16737 | if test "$GCC" = yes; then | 
 | 16738 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 16739 | fi | 
 | 16740 |  | 
 | 16741 | # | 
 | 16742 | # Do we need to explicitly link libc? | 
 | 16743 | # | 
 | 16744 | case "x$archive_cmds_need_lc_CXX" in | 
 | 16745 | x|xyes) | 
 | 16746 |   # Assume -lc should be added | 
 | 16747 |   archive_cmds_need_lc_CXX=yes | 
 | 16748 |  | 
 | 16749 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 16750 |     case $archive_cmds_CXX in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16751 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16752 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 16753 |       ;; | 
 | 16754 |     '$CC '*) | 
 | 16755 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 16756 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 16757 |       # to ld, don't add -lc before -lgcc. | 
 | 16758 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 16759 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 16760 |       $rm conftest* | 
 | 16761 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16762 |  | 
 | 16763 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 16764 |   (eval $ac_compile) 2>&5 | 
 | 16765 |   ac_status=$? | 
 | 16766 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16767 |   (exit $ac_status); } 2>conftest.err; then | 
 | 16768 |         soname=conftest | 
 | 16769 |         lib=conftest | 
 | 16770 |         libobjs=conftest.$ac_objext | 
 | 16771 |         deplibs= | 
 | 16772 |         wl=$lt_prog_compiler_wl_CXX | 
 | 16773 |         compiler_flags=-v | 
 | 16774 |         linker_flags=-v | 
 | 16775 |         verstring= | 
 | 16776 |         output_objdir=. | 
 | 16777 |         libname=conftest | 
 | 16778 |         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
 | 16779 |         allow_undefined_flag_CXX= | 
 | 16780 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 16781 |   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 16782 |   ac_status=$? | 
 | 16783 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16784 |   (exit $ac_status); } | 
 | 16785 |         then | 
 | 16786 | 	  archive_cmds_need_lc_CXX=no | 
 | 16787 |         else | 
 | 16788 | 	  archive_cmds_need_lc_CXX=yes | 
 | 16789 |         fi | 
 | 16790 |         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
 | 16791 |       else | 
 | 16792 |         cat conftest.err 1>&5 | 
 | 16793 |       fi | 
 | 16794 |       $rm conftest* | 
 | 16795 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
 | 16796 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 
 | 16797 |       ;; | 
 | 16798 |     esac | 
 | 16799 |   fi | 
 | 16800 |   ;; | 
 | 16801 | esac | 
 | 16802 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16803 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 16804 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 16805 | library_names_spec= | 
 | 16806 | libname_spec='lib$name' | 
 | 16807 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16808 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16809 | postinstall_cmds= | 
 | 16810 | postuninstall_cmds= | 
 | 16811 | finish_cmds= | 
 | 16812 | finish_eval= | 
 | 16813 | shlibpath_var= | 
 | 16814 | shlibpath_overrides_runpath=unknown | 
 | 16815 | version_type=none | 
 | 16816 | dynamic_linker="$host_os ld.so" | 
 | 16817 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 16818 | if test "$GCC" = yes; then | 
 | 16819 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16820 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 16821 |     # if the path contains ";" then we assume it to be the separator | 
 | 16822 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 16823 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 16824 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 16825 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16826 |   else | 
 | 16827 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16828 |   fi | 
 | 16829 | else | 
 | 16830 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 16831 | fi | 
 | 16832 | need_lib_prefix=unknown | 
 | 16833 | hardcode_into_libs=no | 
 | 16834 |  | 
 | 16835 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 16836 | # flags to be left without arguments | 
 | 16837 | need_version=unknown | 
 | 16838 |  | 
 | 16839 | case $host_os in | 
 | 16840 | aix3*) | 
 | 16841 |   version_type=linux | 
 | 16842 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 16843 |   shlibpath_var=LIBPATH | 
 | 16844 |  | 
 | 16845 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 16846 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16847 |   ;; | 
 | 16848 |  | 
 | 16849 | aix4* | aix5*) | 
 | 16850 |   version_type=linux | 
 | 16851 |   need_lib_prefix=no | 
 | 16852 |   need_version=no | 
 | 16853 |   hardcode_into_libs=yes | 
 | 16854 |   if test "$host_cpu" = ia64; then | 
 | 16855 |     # AIX 5 supports IA64 | 
 | 16856 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 16857 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16858 |   else | 
 | 16859 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 16860 |     # for dependence libraries.  The import file would start with | 
 | 16861 |     # the line `#! .'.  This would cause the generated library to | 
 | 16862 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 16863 |     # development snapshots of GCC prior to 3.0. | 
 | 16864 |     case $host_os in | 
 | 16865 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 16866 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 16867 | 	   echo ' yes ' | 
 | 16868 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 16869 | 	: | 
 | 16870 |       else | 
 | 16871 | 	can_build_shared=no | 
 | 16872 |       fi | 
 | 16873 |       ;; | 
 | 16874 |     esac | 
 | 16875 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 16876 |     # soname into executable. Probably we can add versioning support to | 
 | 16877 |     # collect2, so additional links can be useful in future. | 
 | 16878 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 16879 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 16880 |       # instead of lib<name>.a to let people know that these are not | 
 | 16881 |       # typical AIX shared libraries. | 
 | 16882 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16883 |     else | 
 | 16884 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 16885 |       # and later when we are not doing run time linking. | 
 | 16886 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 16887 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16888 |     fi | 
 | 16889 |     shlibpath_var=LIBPATH | 
 | 16890 |   fi | 
 | 16891 |   ;; | 
 | 16892 |  | 
 | 16893 | amigaos*) | 
 | 16894 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 16895 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16896 |   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] | 16897 |   ;; | 
 | 16898 |  | 
 | 16899 | beos*) | 
 | 16900 |   library_names_spec='${libname}${shared_ext}' | 
 | 16901 |   dynamic_linker="$host_os ld.so" | 
 | 16902 |   shlibpath_var=LIBRARY_PATH | 
 | 16903 |   ;; | 
 | 16904 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16905 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16906 |   version_type=linux | 
 | 16907 |   need_version=no | 
 | 16908 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16909 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16910 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 16911 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16912 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 16913 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 16914 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 16915 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 16916 |   # libtool to hard-code these into programs | 
 | 16917 |   ;; | 
 | 16918 |  | 
 | 16919 | cygwin* | mingw* | pw32*) | 
 | 16920 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16921 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16922 |   need_version=no | 
 | 16923 |   need_lib_prefix=no | 
 | 16924 |  | 
 | 16925 |   case $GCC,$host_os in | 
 | 16926 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 16927 |     library_names_spec='$libname.dll.a' | 
 | 16928 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16929 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 16930 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 16931 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 16932 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16933 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16934 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 16935 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16936 |        $rm \$dlpath' | 
 | 16937 |     shlibpath_overrides_runpath=yes | 
 | 16938 |  | 
 | 16939 |     case $host_os in | 
 | 16940 |     cygwin*) | 
 | 16941 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 16942 |       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] | 16943 |       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] | 16944 |       ;; | 
 | 16945 |     mingw*) | 
 | 16946 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 16947 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 16948 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16949 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 16950 |         # It is most probably a Windows format PATH printed by | 
 | 16951 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 16952 |         # path with ; separators, and with drive letters. We can handle the | 
 | 16953 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 16954 |         # especially as we might pass files found there to a mingw objdump, | 
 | 16955 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 16956 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16957 |       else | 
 | 16958 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16959 |       fi | 
 | 16960 |       ;; | 
 | 16961 |     pw32*) | 
 | 16962 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 16963 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 16964 |       ;; | 
 | 16965 |     esac | 
 | 16966 |     ;; | 
 | 16967 |  | 
 | 16968 |   *) | 
 | 16969 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 16970 |     ;; | 
 | 16971 |   esac | 
 | 16972 |   dynamic_linker='Win32 ld.exe' | 
 | 16973 |   # FIXME: first we should search . and the directory the executable is in | 
 | 16974 |   shlibpath_var=PATH | 
 | 16975 |   ;; | 
 | 16976 |  | 
 | 16977 | darwin* | rhapsody*) | 
 | 16978 |   dynamic_linker="$host_os dyld" | 
 | 16979 |   version_type=darwin | 
 | 16980 |   need_lib_prefix=no | 
 | 16981 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16982 |   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] | 16983 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 16984 |   shlibpath_overrides_runpath=yes | 
 | 16985 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16986 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16987 |   # 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] | 16988 |   if test "$GCC" = yes; then | 
 | 16989 |     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"` | 
 | 16990 |   else | 
 | 16991 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16992 |   fi | 
 | 16993 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 16994 |   ;; | 
 | 16995 |  | 
 | 16996 | dgux*) | 
 | 16997 |   version_type=linux | 
 | 16998 |   need_lib_prefix=no | 
 | 16999 |   need_version=no | 
 | 17000 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 17001 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17002 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17003 |   ;; | 
 | 17004 |  | 
 | 17005 | freebsd1*) | 
 | 17006 |   dynamic_linker=no | 
 | 17007 |   ;; | 
 | 17008 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17009 | kfreebsd*-gnu) | 
 | 17010 |   version_type=linux | 
 | 17011 |   need_lib_prefix=no | 
 | 17012 |   need_version=no | 
 | 17013 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 17014 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17015 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17016 |   shlibpath_overrides_runpath=no | 
 | 17017 |   hardcode_into_libs=yes | 
 | 17018 |   dynamic_linker='GNU ld.so' | 
 | 17019 |   ;; | 
 | 17020 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17021 | freebsd*) | 
 | 17022 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 17023 |   version_type=freebsd-$objformat | 
 | 17024 |   case $version_type in | 
 | 17025 |     freebsd-elf*) | 
 | 17026 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 17027 |       need_version=no | 
 | 17028 |       need_lib_prefix=no | 
 | 17029 |       ;; | 
 | 17030 |     freebsd-*) | 
 | 17031 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 17032 |       need_version=yes | 
 | 17033 |       ;; | 
 | 17034 |   esac | 
 | 17035 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17036 |   case $host_os in | 
 | 17037 |   freebsd2*) | 
 | 17038 |     shlibpath_overrides_runpath=yes | 
 | 17039 |     ;; | 
 | 17040 |   freebsd3.01* | freebsdelf3.01*) | 
 | 17041 |     shlibpath_overrides_runpath=yes | 
 | 17042 |     hardcode_into_libs=yes | 
 | 17043 |     ;; | 
 | 17044 |   *) # from 3.2 on | 
 | 17045 |     shlibpath_overrides_runpath=no | 
 | 17046 |     hardcode_into_libs=yes | 
 | 17047 |     ;; | 
 | 17048 |   esac | 
 | 17049 |   ;; | 
 | 17050 |  | 
 | 17051 | gnu*) | 
 | 17052 |   version_type=linux | 
 | 17053 |   need_lib_prefix=no | 
 | 17054 |   need_version=no | 
 | 17055 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 17056 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17057 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17058 |   hardcode_into_libs=yes | 
 | 17059 |   ;; | 
 | 17060 |  | 
 | 17061 | hpux9* | hpux10* | hpux11*) | 
 | 17062 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 17063 |   # link against other versions. | 
 | 17064 |   version_type=sunos | 
 | 17065 |   need_lib_prefix=no | 
 | 17066 |   need_version=no | 
 | 17067 |   case "$host_cpu" in | 
 | 17068 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17069 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17070 |     hardcode_into_libs=yes | 
 | 17071 |     dynamic_linker="$host_os dld.so" | 
 | 17072 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 17073 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 17074 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17075 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17076 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 17077 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 17078 |     else | 
 | 17079 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 17080 |     fi | 
 | 17081 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 17082 |     ;; | 
 | 17083 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17084 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17085 |      hardcode_into_libs=yes | 
 | 17086 |      dynamic_linker="$host_os dld.sl" | 
 | 17087 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 17088 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 17089 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17090 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17091 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 17092 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 17093 |      ;; | 
 | 17094 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17095 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17096 |     dynamic_linker="$host_os dld.sl" | 
 | 17097 |     shlibpath_var=SHLIB_PATH | 
 | 17098 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 17099 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17100 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17101 |     ;; | 
 | 17102 |   esac | 
 | 17103 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 17104 |   postinstall_cmds='chmod 555 $lib' | 
 | 17105 |   ;; | 
 | 17106 |  | 
 | 17107 | irix5* | irix6* | nonstopux*) | 
 | 17108 |   case $host_os in | 
 | 17109 |     nonstopux*) version_type=nonstopux ;; | 
 | 17110 |     *) | 
 | 17111 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 17112 | 		version_type=linux | 
 | 17113 | 	else | 
 | 17114 | 		version_type=irix | 
 | 17115 | 	fi ;; | 
 | 17116 |   esac | 
 | 17117 |   need_lib_prefix=no | 
 | 17118 |   need_version=no | 
 | 17119 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17120 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 17121 |   case $host_os in | 
 | 17122 |   irix5* | nonstopux*) | 
 | 17123 |     libsuff= shlibsuff= | 
 | 17124 |     ;; | 
 | 17125 |   *) | 
 | 17126 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 17127 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 17128 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 17129 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 17130 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 17131 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 17132 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 17133 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 17134 |     esac | 
 | 17135 |     ;; | 
 | 17136 |   esac | 
 | 17137 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 17138 |   shlibpath_overrides_runpath=no | 
 | 17139 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 17140 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 17141 |   hardcode_into_libs=yes | 
 | 17142 |   ;; | 
 | 17143 |  | 
 | 17144 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 17145 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 17146 |   dynamic_linker=no | 
 | 17147 |   ;; | 
 | 17148 |  | 
 | 17149 | # This must be Linux ELF. | 
 | 17150 | linux*) | 
 | 17151 |   version_type=linux | 
 | 17152 |   need_lib_prefix=no | 
 | 17153 |   need_version=no | 
 | 17154 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17155 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17156 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 17157 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17158 |   shlibpath_overrides_runpath=no | 
 | 17159 |   # This implies no fast_install, which is unacceptable. | 
 | 17160 |   # Some rework will be needed to allow for fast_install | 
 | 17161 |   # before this can be enabled. | 
 | 17162 |   hardcode_into_libs=yes | 
 | 17163 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17164 |   # Append ld.so.conf contents to the search path | 
 | 17165 |   if test -f /etc/ld.so.conf; then | 
 | 17166 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 17167 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 17168 |   fi | 
 | 17169 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17170 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 17171 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 17172 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 17173 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 17174 |   # people can always --disable-shared, the test was removed, and we | 
 | 17175 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 17176 |   dynamic_linker='GNU/Linux ld.so' | 
 | 17177 |   ;; | 
 | 17178 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17179 | knetbsd*-gnu) | 
 | 17180 |   version_type=linux | 
 | 17181 |   need_lib_prefix=no | 
 | 17182 |   need_version=no | 
 | 17183 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 17184 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17185 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17186 |   shlibpath_overrides_runpath=no | 
 | 17187 |   hardcode_into_libs=yes | 
 | 17188 |   dynamic_linker='GNU ld.so' | 
 | 17189 |   ;; | 
 | 17190 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17191 | netbsd*) | 
 | 17192 |   version_type=sunos | 
 | 17193 |   need_lib_prefix=no | 
 | 17194 |   need_version=no | 
 | 17195 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 17196 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17197 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 17198 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 17199 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17200 |     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] | 17201 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17202 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 17203 |   fi | 
 | 17204 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17205 |   shlibpath_overrides_runpath=yes | 
 | 17206 |   hardcode_into_libs=yes | 
 | 17207 |   ;; | 
 | 17208 |  | 
 | 17209 | newsos6) | 
 | 17210 |   version_type=linux | 
 | 17211 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17212 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17213 |   shlibpath_overrides_runpath=yes | 
 | 17214 |   ;; | 
 | 17215 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17216 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17217 |   version_type=linux | 
 | 17218 |   need_lib_prefix=no | 
 | 17219 |   need_version=no | 
 | 17220 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17221 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17222 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17223 |   shlibpath_overrides_runpath=yes | 
 | 17224 |   ;; | 
 | 17225 |  | 
 | 17226 | openbsd*) | 
 | 17227 |   version_type=sunos | 
 | 17228 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17229 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17230 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17231 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 17232 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17233 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 17234 |     case $host_os in | 
 | 17235 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 17236 | 	shlibpath_overrides_runpath=no | 
 | 17237 | 	;; | 
 | 17238 |       *) | 
 | 17239 | 	shlibpath_overrides_runpath=yes | 
 | 17240 | 	;; | 
 | 17241 |       esac | 
 | 17242 |   else | 
 | 17243 |     shlibpath_overrides_runpath=yes | 
 | 17244 |   fi | 
 | 17245 |   ;; | 
 | 17246 |  | 
 | 17247 | os2*) | 
 | 17248 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17249 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17250 |   need_lib_prefix=no | 
 | 17251 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 17252 |   dynamic_linker='OS/2 ld.exe' | 
 | 17253 |   shlibpath_var=LIBPATH | 
 | 17254 |   ;; | 
 | 17255 |  | 
 | 17256 | osf3* | osf4* | osf5*) | 
 | 17257 |   version_type=osf | 
 | 17258 |   need_lib_prefix=no | 
 | 17259 |   need_version=no | 
 | 17260 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17261 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17262 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17263 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 17264 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 17265 |   ;; | 
 | 17266 |  | 
 | 17267 | sco3.2v5*) | 
 | 17268 |   version_type=osf | 
 | 17269 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17270 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17271 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17272 |   ;; | 
 | 17273 |  | 
 | 17274 | solaris*) | 
 | 17275 |   version_type=linux | 
 | 17276 |   need_lib_prefix=no | 
 | 17277 |   need_version=no | 
 | 17278 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17279 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17280 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17281 |   shlibpath_overrides_runpath=yes | 
 | 17282 |   hardcode_into_libs=yes | 
 | 17283 |   # ldd complains unless libraries are executable | 
 | 17284 |   postinstall_cmds='chmod +x $lib' | 
 | 17285 |   ;; | 
 | 17286 |  | 
 | 17287 | sunos4*) | 
 | 17288 |   version_type=sunos | 
 | 17289 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 17290 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 17291 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17292 |   shlibpath_overrides_runpath=yes | 
 | 17293 |   if test "$with_gnu_ld" = yes; then | 
 | 17294 |     need_lib_prefix=no | 
 | 17295 |   fi | 
 | 17296 |   need_version=yes | 
 | 17297 |   ;; | 
 | 17298 |  | 
 | 17299 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 17300 |   version_type=linux | 
 | 17301 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17302 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17303 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17304 |   case $host_vendor in | 
 | 17305 |     sni) | 
 | 17306 |       shlibpath_overrides_runpath=no | 
 | 17307 |       need_lib_prefix=no | 
 | 17308 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 17309 |       runpath_var=LD_RUN_PATH | 
 | 17310 |       ;; | 
 | 17311 |     siemens) | 
 | 17312 |       need_lib_prefix=no | 
 | 17313 |       ;; | 
 | 17314 |     motorola) | 
 | 17315 |       need_lib_prefix=no | 
 | 17316 |       need_version=no | 
 | 17317 |       shlibpath_overrides_runpath=no | 
 | 17318 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 17319 |       ;; | 
 | 17320 |   esac | 
 | 17321 |   ;; | 
 | 17322 |  | 
 | 17323 | sysv4*MP*) | 
 | 17324 |   if test -d /usr/nec ;then | 
 | 17325 |     version_type=linux | 
 | 17326 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 17327 |     soname_spec='$libname${shared_ext}.$major' | 
 | 17328 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 17329 |   fi | 
 | 17330 |   ;; | 
 | 17331 |  | 
 | 17332 | uts4*) | 
 | 17333 |   version_type=linux | 
 | 17334 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17335 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17336 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17337 |   ;; | 
 | 17338 |  | 
 | 17339 | *) | 
 | 17340 |   dynamic_linker=no | 
 | 17341 |   ;; | 
 | 17342 | esac | 
 | 17343 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 17344 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 17345 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 17346 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17347 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 17348 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 17349 | hardcode_action_CXX= | 
 | 17350 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
 | 17351 |    test -n "$runpath_var_CXX" || \ | 
 | 17352 |    test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
 | 17353 |  | 
 | 17354 |   # We can hardcode non-existant directories. | 
 | 17355 |   if test "$hardcode_direct_CXX" != no && | 
 | 17356 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 17357 |      # have to relink, otherwise we might link with an installed library | 
 | 17358 |      # when we should be linking with a yet-to-be-installed one | 
 | 17359 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
 | 17360 |      test "$hardcode_minus_L_CXX" != no; then | 
 | 17361 |     # Linking always hardcodes the temporary library directory. | 
 | 17362 |     hardcode_action_CXX=relink | 
 | 17363 |   else | 
 | 17364 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 17365 |     hardcode_action_CXX=immediate | 
 | 17366 |   fi | 
 | 17367 | else | 
 | 17368 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 17369 |   # directories. | 
 | 17370 |   hardcode_action_CXX=unsupported | 
 | 17371 | fi | 
 | 17372 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
 | 17373 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 
 | 17374 |  | 
 | 17375 | if test "$hardcode_action_CXX" = relink; then | 
 | 17376 |   # Fast installation is not supported | 
 | 17377 |   enable_fast_install=no | 
 | 17378 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 17379 |      test "$enable_shared" = no; then | 
 | 17380 |   # Fast installation is not necessary | 
 | 17381 |   enable_fast_install=needless | 
 | 17382 | fi | 
 | 17383 |  | 
 | 17384 | striplib= | 
 | 17385 | old_striplib= | 
 | 17386 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 17387 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 17388 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 17389 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 17390 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 17391 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17392 | echo "${ECHO_T}yes" >&6 | 
 | 17393 | else | 
 | 17394 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 17395 |   case $host_os in | 
 | 17396 |    darwin*) | 
 | 17397 |        if test -n "$STRIP" ; then | 
 | 17398 |          striplib="$STRIP -x" | 
 | 17399 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17400 | echo "${ECHO_T}yes" >&6 | 
 | 17401 |        else | 
 | 17402 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 17403 | echo "${ECHO_T}no" >&6 | 
 | 17404 | fi | 
 | 17405 |        ;; | 
 | 17406 |    *) | 
 | 17407 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 17408 | echo "${ECHO_T}no" >&6 | 
 | 17409 |     ;; | 
 | 17410 |   esac | 
 | 17411 | fi | 
 | 17412 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17413 | if test "x$enable_dlopen" != xyes; then | 
 | 17414 |   enable_dlopen=unknown | 
 | 17415 |   enable_dlopen_self=unknown | 
 | 17416 |   enable_dlopen_self_static=unknown | 
 | 17417 | else | 
 | 17418 |   lt_cv_dlopen=no | 
 | 17419 |   lt_cv_dlopen_libs= | 
 | 17420 |  | 
 | 17421 |   case $host_os in | 
 | 17422 |   beos*) | 
 | 17423 |     lt_cv_dlopen="load_add_on" | 
 | 17424 |     lt_cv_dlopen_libs= | 
 | 17425 |     lt_cv_dlopen_self=yes | 
 | 17426 |     ;; | 
 | 17427 |  | 
 | 17428 |   mingw* | pw32*) | 
 | 17429 |     lt_cv_dlopen="LoadLibrary" | 
 | 17430 |     lt_cv_dlopen_libs= | 
 | 17431 |    ;; | 
 | 17432 |  | 
 | 17433 |   cygwin*) | 
 | 17434 |     lt_cv_dlopen="dlopen" | 
 | 17435 |     lt_cv_dlopen_libs= | 
 | 17436 |    ;; | 
 | 17437 |  | 
 | 17438 |   darwin*) | 
 | 17439 |   # if libdl is installed we need to link against it | 
 | 17440 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17441 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 17442 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17443 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17444 | else | 
 | 17445 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17446 | LIBS="-ldl  $LIBS" | 
 | 17447 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17448 | /* confdefs.h.  */ | 
 | 17449 | _ACEOF | 
 | 17450 | cat confdefs.h >>conftest.$ac_ext | 
 | 17451 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17452 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17453 |  | 
 | 17454 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17455 | #ifdef __cplusplus | 
 | 17456 | extern "C" | 
 | 17457 | #endif | 
 | 17458 | /* We use char because int might match the return type of a gcc2 | 
 | 17459 |    builtin and then its argument prototype would still apply.  */ | 
 | 17460 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17461 | int | 
 | 17462 | main () | 
 | 17463 | { | 
 | 17464 | dlopen (); | 
 | 17465 |   ; | 
 | 17466 |   return 0; | 
 | 17467 | } | 
 | 17468 | _ACEOF | 
 | 17469 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17471 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17472 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17473 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17474 |   rm -f conftest.er1 | 
 | 17475 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17476 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17477 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17478 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17479 | 			 || test ! -s conftest.err' | 
 | 17480 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17481 |   (eval $ac_try) 2>&5 | 
 | 17482 |   ac_status=$? | 
 | 17483 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17484 |   (exit $ac_status); }; } && | 
 | 17485 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17486 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17487 |   (eval $ac_try) 2>&5 | 
 | 17488 |   ac_status=$? | 
 | 17489 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17490 |   (exit $ac_status); }; }; then | 
 | 17491 |   ac_cv_lib_dl_dlopen=yes | 
 | 17492 | else | 
 | 17493 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17494 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17495 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17496 | ac_cv_lib_dl_dlopen=no | 
 | 17497 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17498 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17499 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17500 | LIBS=$ac_check_lib_save_LIBS | 
 | 17501 | fi | 
 | 17502 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17503 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 17504 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17505 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17506 | else | 
 | 17507 |  | 
 | 17508 |     lt_cv_dlopen="dyld" | 
 | 17509 |     lt_cv_dlopen_libs= | 
 | 17510 |     lt_cv_dlopen_self=yes | 
 | 17511 |  | 
 | 17512 | fi | 
 | 17513 |  | 
 | 17514 |    ;; | 
 | 17515 |  | 
 | 17516 |   *) | 
 | 17517 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 17518 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 17519 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 17520 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17521 | else | 
 | 17522 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17523 | /* confdefs.h.  */ | 
 | 17524 | _ACEOF | 
 | 17525 | cat confdefs.h >>conftest.$ac_ext | 
 | 17526 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17527 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17528 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 17529 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17530 | #define shl_load innocuous_shl_load | 
 | 17531 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17532 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17533 |     which can conflict with char shl_load (); below. | 
 | 17534 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17535 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17536 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17537 | #ifdef __STDC__ | 
 | 17538 | # include <limits.h> | 
 | 17539 | #else | 
 | 17540 | # include <assert.h> | 
 | 17541 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17542 |  | 
 | 17543 | #undef shl_load | 
 | 17544 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17545 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17546 | #ifdef __cplusplus | 
 | 17547 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17548 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17549 | #endif | 
 | 17550 | /* We use char because int might match the return type of a gcc2 | 
 | 17551 |    builtin and then its argument prototype would still apply.  */ | 
 | 17552 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17553 | /* The GNU C library defines this for functions which it implements | 
 | 17554 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17555 |     something starting with __ and the normal name is an alias.  */ | 
 | 17556 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 17557 | choke me | 
 | 17558 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17559 | char (*f) () = shl_load; | 
 | 17560 | #endif | 
 | 17561 | #ifdef __cplusplus | 
 | 17562 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17563 | #endif | 
 | 17564 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17565 | int | 
 | 17566 | main () | 
 | 17567 | { | 
 | 17568 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17569 |   ; | 
 | 17570 |   return 0; | 
 | 17571 | } | 
 | 17572 | _ACEOF | 
 | 17573 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17575 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17576 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17577 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17578 |   rm -f conftest.er1 | 
 | 17579 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17580 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17581 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17582 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17583 | 			 || test ! -s conftest.err' | 
 | 17584 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17585 |   (eval $ac_try) 2>&5 | 
 | 17586 |   ac_status=$? | 
 | 17587 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17588 |   (exit $ac_status); }; } && | 
 | 17589 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17590 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17591 |   (eval $ac_try) 2>&5 | 
 | 17592 |   ac_status=$? | 
 | 17593 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17594 |   (exit $ac_status); }; }; then | 
 | 17595 |   ac_cv_func_shl_load=yes | 
 | 17596 | else | 
 | 17597 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17599 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17600 | ac_cv_func_shl_load=no | 
 | 17601 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17602 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17603 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17604 | fi | 
 | 17605 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 17606 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 17607 | if test $ac_cv_func_shl_load = yes; then | 
 | 17608 |   lt_cv_dlopen="shl_load" | 
 | 17609 | else | 
 | 17610 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 17611 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 17612 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 17613 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17614 | else | 
 | 17615 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17616 | LIBS="-ldld  $LIBS" | 
 | 17617 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17618 | /* confdefs.h.  */ | 
 | 17619 | _ACEOF | 
 | 17620 | cat confdefs.h >>conftest.$ac_ext | 
 | 17621 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17622 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17623 |  | 
 | 17624 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17625 | #ifdef __cplusplus | 
 | 17626 | extern "C" | 
 | 17627 | #endif | 
 | 17628 | /* We use char because int might match the return type of a gcc2 | 
 | 17629 |    builtin and then its argument prototype would still apply.  */ | 
 | 17630 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17631 | int | 
 | 17632 | main () | 
 | 17633 | { | 
 | 17634 | shl_load (); | 
 | 17635 |   ; | 
 | 17636 |   return 0; | 
 | 17637 | } | 
 | 17638 | _ACEOF | 
 | 17639 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17641 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17642 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17643 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17644 |   rm -f conftest.er1 | 
 | 17645 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17646 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17647 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17648 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17649 | 			 || test ! -s conftest.err' | 
 | 17650 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17651 |   (eval $ac_try) 2>&5 | 
 | 17652 |   ac_status=$? | 
 | 17653 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17654 |   (exit $ac_status); }; } && | 
 | 17655 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17656 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17657 |   (eval $ac_try) 2>&5 | 
 | 17658 |   ac_status=$? | 
 | 17659 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17660 |   (exit $ac_status); }; }; then | 
 | 17661 |   ac_cv_lib_dld_shl_load=yes | 
 | 17662 | else | 
 | 17663 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17664 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17665 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17666 | ac_cv_lib_dld_shl_load=no | 
 | 17667 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17668 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17669 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17670 | LIBS=$ac_check_lib_save_LIBS | 
 | 17671 | fi | 
 | 17672 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 17673 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 17674 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 17675 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 17676 | else | 
 | 17677 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 17678 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 17679 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 17680 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17681 | else | 
 | 17682 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17683 | /* confdefs.h.  */ | 
 | 17684 | _ACEOF | 
 | 17685 | cat confdefs.h >>conftest.$ac_ext | 
 | 17686 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17687 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17688 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 17689 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17690 | #define dlopen innocuous_dlopen | 
 | 17691 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17692 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17693 |     which can conflict with char dlopen (); below. | 
 | 17694 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17695 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17696 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17697 | #ifdef __STDC__ | 
 | 17698 | # include <limits.h> | 
 | 17699 | #else | 
 | 17700 | # include <assert.h> | 
 | 17701 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17702 |  | 
 | 17703 | #undef dlopen | 
 | 17704 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17705 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17706 | #ifdef __cplusplus | 
 | 17707 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17708 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17709 | #endif | 
 | 17710 | /* We use char because int might match the return type of a gcc2 | 
 | 17711 |    builtin and then its argument prototype would still apply.  */ | 
 | 17712 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17713 | /* The GNU C library defines this for functions which it implements | 
 | 17714 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17715 |     something starting with __ and the normal name is an alias.  */ | 
 | 17716 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 17717 | choke me | 
 | 17718 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17719 | char (*f) () = dlopen; | 
 | 17720 | #endif | 
 | 17721 | #ifdef __cplusplus | 
 | 17722 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17723 | #endif | 
 | 17724 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17725 | int | 
 | 17726 | main () | 
 | 17727 | { | 
 | 17728 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17729 |   ; | 
 | 17730 |   return 0; | 
 | 17731 | } | 
 | 17732 | _ACEOF | 
 | 17733 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17735 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17736 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17737 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17738 |   rm -f conftest.er1 | 
 | 17739 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17740 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17741 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17742 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17743 | 			 || test ! -s conftest.err' | 
 | 17744 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17745 |   (eval $ac_try) 2>&5 | 
 | 17746 |   ac_status=$? | 
 | 17747 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17748 |   (exit $ac_status); }; } && | 
 | 17749 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17750 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17751 |   (eval $ac_try) 2>&5 | 
 | 17752 |   ac_status=$? | 
 | 17753 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17754 |   (exit $ac_status); }; }; then | 
 | 17755 |   ac_cv_func_dlopen=yes | 
 | 17756 | else | 
 | 17757 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17758 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17759 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17760 | ac_cv_func_dlopen=no | 
 | 17761 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17762 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17763 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17764 | fi | 
 | 17765 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 17766 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 17767 | if test $ac_cv_func_dlopen = yes; then | 
 | 17768 |   lt_cv_dlopen="dlopen" | 
 | 17769 | else | 
 | 17770 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17771 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 17772 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17773 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17774 | else | 
 | 17775 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17776 | LIBS="-ldl  $LIBS" | 
 | 17777 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17778 | /* confdefs.h.  */ | 
 | 17779 | _ACEOF | 
 | 17780 | cat confdefs.h >>conftest.$ac_ext | 
 | 17781 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17782 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17783 |  | 
 | 17784 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17785 | #ifdef __cplusplus | 
 | 17786 | extern "C" | 
 | 17787 | #endif | 
 | 17788 | /* We use char because int might match the return type of a gcc2 | 
 | 17789 |    builtin and then its argument prototype would still apply.  */ | 
 | 17790 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17791 | int | 
 | 17792 | main () | 
 | 17793 | { | 
 | 17794 | dlopen (); | 
 | 17795 |   ; | 
 | 17796 |   return 0; | 
 | 17797 | } | 
 | 17798 | _ACEOF | 
 | 17799 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17801 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17802 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17803 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17804 |   rm -f conftest.er1 | 
 | 17805 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17806 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17807 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17808 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17809 | 			 || test ! -s conftest.err' | 
 | 17810 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17811 |   (eval $ac_try) 2>&5 | 
 | 17812 |   ac_status=$? | 
 | 17813 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17814 |   (exit $ac_status); }; } && | 
 | 17815 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17816 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17817 |   (eval $ac_try) 2>&5 | 
 | 17818 |   ac_status=$? | 
 | 17819 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17820 |   (exit $ac_status); }; }; then | 
 | 17821 |   ac_cv_lib_dl_dlopen=yes | 
 | 17822 | else | 
 | 17823 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17824 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17825 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17826 | ac_cv_lib_dl_dlopen=no | 
 | 17827 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17828 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17829 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17830 | LIBS=$ac_check_lib_save_LIBS | 
 | 17831 | fi | 
 | 17832 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17833 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 17834 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17835 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17836 | else | 
 | 17837 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 17838 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 17839 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 17840 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17841 | else | 
 | 17842 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17843 | LIBS="-lsvld  $LIBS" | 
 | 17844 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17845 | /* confdefs.h.  */ | 
 | 17846 | _ACEOF | 
 | 17847 | cat confdefs.h >>conftest.$ac_ext | 
 | 17848 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17849 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17850 |  | 
 | 17851 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17852 | #ifdef __cplusplus | 
 | 17853 | extern "C" | 
 | 17854 | #endif | 
 | 17855 | /* We use char because int might match the return type of a gcc2 | 
 | 17856 |    builtin and then its argument prototype would still apply.  */ | 
 | 17857 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17858 | int | 
 | 17859 | main () | 
 | 17860 | { | 
 | 17861 | dlopen (); | 
 | 17862 |   ; | 
 | 17863 |   return 0; | 
 | 17864 | } | 
 | 17865 | _ACEOF | 
 | 17866 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17868 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17869 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17870 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17871 |   rm -f conftest.er1 | 
 | 17872 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17873 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17874 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17875 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17876 | 			 || test ! -s conftest.err' | 
 | 17877 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17878 |   (eval $ac_try) 2>&5 | 
 | 17879 |   ac_status=$? | 
 | 17880 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17881 |   (exit $ac_status); }; } && | 
 | 17882 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17883 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17884 |   (eval $ac_try) 2>&5 | 
 | 17885 |   ac_status=$? | 
 | 17886 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17887 |   (exit $ac_status); }; }; then | 
 | 17888 |   ac_cv_lib_svld_dlopen=yes | 
 | 17889 | else | 
 | 17890 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17891 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17892 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17893 | ac_cv_lib_svld_dlopen=no | 
 | 17894 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17895 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17896 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17897 | LIBS=$ac_check_lib_save_LIBS | 
 | 17898 | fi | 
 | 17899 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 17900 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 17901 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 17902 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 17903 | else | 
 | 17904 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 17905 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 17906 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 17907 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17908 | else | 
 | 17909 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17910 | LIBS="-ldld  $LIBS" | 
 | 17911 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17912 | /* confdefs.h.  */ | 
 | 17913 | _ACEOF | 
 | 17914 | cat confdefs.h >>conftest.$ac_ext | 
 | 17915 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17916 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17917 |  | 
 | 17918 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 17919 | #ifdef __cplusplus | 
 | 17920 | extern "C" | 
 | 17921 | #endif | 
 | 17922 | /* We use char because int might match the return type of a gcc2 | 
 | 17923 |    builtin and then its argument prototype would still apply.  */ | 
 | 17924 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17925 | int | 
 | 17926 | main () | 
 | 17927 | { | 
 | 17928 | dld_link (); | 
 | 17929 |   ; | 
 | 17930 |   return 0; | 
 | 17931 | } | 
 | 17932 | _ACEOF | 
 | 17933 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 17934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17935 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17936 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17937 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17938 |   rm -f conftest.er1 | 
 | 17939 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17940 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17941 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17942 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 17943 | 			 || test ! -s conftest.err' | 
 | 17944 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17945 |   (eval $ac_try) 2>&5 | 
 | 17946 |   ac_status=$? | 
 | 17947 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17948 |   (exit $ac_status); }; } && | 
 | 17949 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17950 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 17951 |   (eval $ac_try) 2>&5 | 
 | 17952 |   ac_status=$? | 
 | 17953 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17954 |   (exit $ac_status); }; }; then | 
 | 17955 |   ac_cv_lib_dld_dld_link=yes | 
 | 17956 | else | 
 | 17957 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17958 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17959 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17960 | ac_cv_lib_dld_dld_link=no | 
 | 17961 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17962 | rm -f conftest.err conftest.$ac_objext \ | 
 | 17963 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17964 | LIBS=$ac_check_lib_save_LIBS | 
 | 17965 | fi | 
 | 17966 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 17967 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 17968 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 17969 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 17970 | fi | 
 | 17971 |  | 
 | 17972 |  | 
 | 17973 | fi | 
 | 17974 |  | 
 | 17975 |  | 
 | 17976 | fi | 
 | 17977 |  | 
 | 17978 |  | 
 | 17979 | fi | 
 | 17980 |  | 
 | 17981 |  | 
 | 17982 | fi | 
 | 17983 |  | 
 | 17984 |  | 
 | 17985 | fi | 
 | 17986 |  | 
 | 17987 |     ;; | 
 | 17988 |   esac | 
 | 17989 |  | 
 | 17990 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 17991 |     enable_dlopen=yes | 
 | 17992 |   else | 
 | 17993 |     enable_dlopen=no | 
 | 17994 |   fi | 
 | 17995 |  | 
 | 17996 |   case $lt_cv_dlopen in | 
 | 17997 |   dlopen) | 
 | 17998 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 17999 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 18000 |  | 
 | 18001 |     save_LDFLAGS="$LDFLAGS" | 
 | 18002 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 18003 |  | 
 | 18004 |     save_LIBS="$LIBS" | 
 | 18005 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 18006 |  | 
 | 18007 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 18008 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 18009 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 18010 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18011 | else | 
 | 18012 |   	  if test "$cross_compiling" = yes; then : | 
 | 18013 |   lt_cv_dlopen_self=cross | 
 | 18014 | else | 
 | 18015 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 18016 |   lt_status=$lt_dlunknown | 
 | 18017 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 18018 | #line 18018 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18019 | #include "confdefs.h" | 
 | 18020 |  | 
 | 18021 | #if HAVE_DLFCN_H | 
 | 18022 | #include <dlfcn.h> | 
 | 18023 | #endif | 
 | 18024 |  | 
 | 18025 | #include <stdio.h> | 
 | 18026 |  | 
 | 18027 | #ifdef RTLD_GLOBAL | 
 | 18028 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 18029 | #else | 
 | 18030 | #  ifdef DL_GLOBAL | 
 | 18031 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 18032 | #  else | 
 | 18033 | #    define LT_DLGLOBAL		0 | 
 | 18034 | #  endif | 
 | 18035 | #endif | 
 | 18036 |  | 
 | 18037 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 18038 |    find out it does not work in some platform. */ | 
 | 18039 | #ifndef LT_DLLAZY_OR_NOW | 
 | 18040 | #  ifdef RTLD_LAZY | 
 | 18041 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 18042 | #  else | 
 | 18043 | #    ifdef DL_LAZY | 
 | 18044 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 18045 | #    else | 
 | 18046 | #      ifdef RTLD_NOW | 
 | 18047 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 18048 | #      else | 
 | 18049 | #        ifdef DL_NOW | 
 | 18050 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 18051 | #        else | 
 | 18052 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 18053 | #        endif | 
 | 18054 | #      endif | 
 | 18055 | #    endif | 
 | 18056 | #  endif | 
 | 18057 | #endif | 
 | 18058 |  | 
 | 18059 | #ifdef __cplusplus | 
 | 18060 | extern "C" void exit (int); | 
 | 18061 | #endif | 
 | 18062 |  | 
 | 18063 | void fnord() { int i=42;} | 
 | 18064 | int main () | 
 | 18065 | { | 
 | 18066 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 18067 |   int status = $lt_dlunknown; | 
 | 18068 |  | 
 | 18069 |   if (self) | 
 | 18070 |     { | 
 | 18071 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 18072 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 18073 |       /* dlclose (self); */ | 
 | 18074 |     } | 
 | 18075 |  | 
 | 18076 |     exit (status); | 
 | 18077 | } | 
 | 18078 | EOF | 
 | 18079 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18080 |   (eval $ac_link) 2>&5 | 
 | 18081 |   ac_status=$? | 
 | 18082 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18083 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 18084 |     (./conftest; exit; ) 2>/dev/null | 
 | 18085 |     lt_status=$? | 
 | 18086 |     case x$lt_status in | 
 | 18087 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 18088 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 18089 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 18090 |     esac | 
 | 18091 |   else : | 
 | 18092 |     # compilation failed | 
 | 18093 |     lt_cv_dlopen_self=no | 
 | 18094 |   fi | 
 | 18095 | fi | 
 | 18096 | rm -fr conftest* | 
 | 18097 |  | 
 | 18098 |  | 
 | 18099 | fi | 
 | 18100 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 18101 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 18102 |  | 
 | 18103 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 18104 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 18105 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 18106 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 18107 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 18108 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18109 | else | 
 | 18110 |   	  if test "$cross_compiling" = yes; then : | 
 | 18111 |   lt_cv_dlopen_self_static=cross | 
 | 18112 | else | 
 | 18113 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 18114 |   lt_status=$lt_dlunknown | 
 | 18115 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 18116 | #line 18116 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18117 | #include "confdefs.h" | 
 | 18118 |  | 
 | 18119 | #if HAVE_DLFCN_H | 
 | 18120 | #include <dlfcn.h> | 
 | 18121 | #endif | 
 | 18122 |  | 
 | 18123 | #include <stdio.h> | 
 | 18124 |  | 
 | 18125 | #ifdef RTLD_GLOBAL | 
 | 18126 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 18127 | #else | 
 | 18128 | #  ifdef DL_GLOBAL | 
 | 18129 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 18130 | #  else | 
 | 18131 | #    define LT_DLGLOBAL		0 | 
 | 18132 | #  endif | 
 | 18133 | #endif | 
 | 18134 |  | 
 | 18135 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 18136 |    find out it does not work in some platform. */ | 
 | 18137 | #ifndef LT_DLLAZY_OR_NOW | 
 | 18138 | #  ifdef RTLD_LAZY | 
 | 18139 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 18140 | #  else | 
 | 18141 | #    ifdef DL_LAZY | 
 | 18142 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 18143 | #    else | 
 | 18144 | #      ifdef RTLD_NOW | 
 | 18145 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 18146 | #      else | 
 | 18147 | #        ifdef DL_NOW | 
 | 18148 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 18149 | #        else | 
 | 18150 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 18151 | #        endif | 
 | 18152 | #      endif | 
 | 18153 | #    endif | 
 | 18154 | #  endif | 
 | 18155 | #endif | 
 | 18156 |  | 
 | 18157 | #ifdef __cplusplus | 
 | 18158 | extern "C" void exit (int); | 
 | 18159 | #endif | 
 | 18160 |  | 
 | 18161 | void fnord() { int i=42;} | 
 | 18162 | int main () | 
 | 18163 | { | 
 | 18164 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 18165 |   int status = $lt_dlunknown; | 
 | 18166 |  | 
 | 18167 |   if (self) | 
 | 18168 |     { | 
 | 18169 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 18170 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 18171 |       /* dlclose (self); */ | 
 | 18172 |     } | 
 | 18173 |  | 
 | 18174 |     exit (status); | 
 | 18175 | } | 
 | 18176 | EOF | 
 | 18177 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18178 |   (eval $ac_link) 2>&5 | 
 | 18179 |   ac_status=$? | 
 | 18180 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18181 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 18182 |     (./conftest; exit; ) 2>/dev/null | 
 | 18183 |     lt_status=$? | 
 | 18184 |     case x$lt_status in | 
 | 18185 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 18186 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 18187 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 18188 |     esac | 
 | 18189 |   else : | 
 | 18190 |     # compilation failed | 
 | 18191 |     lt_cv_dlopen_self_static=no | 
 | 18192 |   fi | 
 | 18193 | fi | 
 | 18194 | rm -fr conftest* | 
 | 18195 |  | 
 | 18196 |  | 
 | 18197 | fi | 
 | 18198 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 18199 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 18200 |     fi | 
 | 18201 |  | 
 | 18202 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 18203 |     LDFLAGS="$save_LDFLAGS" | 
 | 18204 |     LIBS="$save_LIBS" | 
 | 18205 |     ;; | 
 | 18206 |   esac | 
 | 18207 |  | 
 | 18208 |   case $lt_cv_dlopen_self in | 
 | 18209 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 18210 |   *) enable_dlopen_self=unknown ;; | 
 | 18211 |   esac | 
 | 18212 |  | 
 | 18213 |   case $lt_cv_dlopen_self_static in | 
 | 18214 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 18215 |   *) enable_dlopen_self_static=unknown ;; | 
 | 18216 |   esac | 
 | 18217 | fi | 
 | 18218 |  | 
 | 18219 |  | 
 | 18220 | # The else clause should only fire when bootstrapping the | 
 | 18221 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 18222 | # with your package, and you will get complaints that there are | 
 | 18223 | # no rules to generate ltmain.sh. | 
 | 18224 | if test -f "$ltmain"; then | 
 | 18225 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 18226 |   # without removal of \ escapes. | 
 | 18227 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 18228 |     setopt NO_GLOB_SUBST | 
 | 18229 |   fi | 
 | 18230 |   # Now quote all the things that may contain metacharacters while being | 
 | 18231 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 18232 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18233 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 18234 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18235 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 18236 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 18237 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 18238 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 18239 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 18240 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 18241 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 18242 |     compiler_CXX \ | 
 | 18243 |     CC_CXX \ | 
 | 18244 |     LD_CXX \ | 
 | 18245 |     lt_prog_compiler_wl_CXX \ | 
 | 18246 |     lt_prog_compiler_pic_CXX \ | 
 | 18247 |     lt_prog_compiler_static_CXX \ | 
 | 18248 |     lt_prog_compiler_no_builtin_flag_CXX \ | 
 | 18249 |     export_dynamic_flag_spec_CXX \ | 
 | 18250 |     thread_safe_flag_spec_CXX \ | 
 | 18251 |     whole_archive_flag_spec_CXX \ | 
 | 18252 |     enable_shared_with_static_runtimes_CXX \ | 
 | 18253 |     old_archive_cmds_CXX \ | 
 | 18254 |     old_archive_from_new_cmds_CXX \ | 
 | 18255 |     predep_objects_CXX \ | 
 | 18256 |     postdep_objects_CXX \ | 
 | 18257 |     predeps_CXX \ | 
 | 18258 |     postdeps_CXX \ | 
 | 18259 |     compiler_lib_search_path_CXX \ | 
 | 18260 |     archive_cmds_CXX \ | 
 | 18261 |     archive_expsym_cmds_CXX \ | 
 | 18262 |     postinstall_cmds_CXX \ | 
 | 18263 |     postuninstall_cmds_CXX \ | 
 | 18264 |     old_archive_from_expsyms_cmds_CXX \ | 
 | 18265 |     allow_undefined_flag_CXX \ | 
 | 18266 |     no_undefined_flag_CXX \ | 
 | 18267 |     export_symbols_cmds_CXX \ | 
 | 18268 |     hardcode_libdir_flag_spec_CXX \ | 
 | 18269 |     hardcode_libdir_flag_spec_ld_CXX \ | 
 | 18270 |     hardcode_libdir_separator_CXX \ | 
 | 18271 |     hardcode_automatic_CXX \ | 
 | 18272 |     module_cmds_CXX \ | 
 | 18273 |     module_expsym_cmds_CXX \ | 
 | 18274 |     lt_cv_prog_compiler_c_o_CXX \ | 
 | 18275 |     exclude_expsyms_CXX \ | 
 | 18276 |     include_expsyms_CXX; do | 
 | 18277 |  | 
 | 18278 |     case $var in | 
 | 18279 |     old_archive_cmds_CXX | \ | 
 | 18280 |     old_archive_from_new_cmds_CXX | \ | 
 | 18281 |     archive_cmds_CXX | \ | 
 | 18282 |     archive_expsym_cmds_CXX | \ | 
 | 18283 |     module_cmds_CXX | \ | 
 | 18284 |     module_expsym_cmds_CXX | \ | 
 | 18285 |     old_archive_from_expsyms_cmds_CXX | \ | 
 | 18286 |     export_symbols_cmds_CXX | \ | 
 | 18287 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 18288 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 18289 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 18290 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 18291 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18292 |       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] | 18293 |       ;; | 
 | 18294 |     *) | 
 | 18295 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 18296 |       ;; | 
 | 18297 |     esac | 
 | 18298 |   done | 
 | 18299 |  | 
 | 18300 |   case $lt_echo in | 
 | 18301 |   *'\$0 --fallback-echo"') | 
 | 18302 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 18303 |     ;; | 
 | 18304 |   esac | 
 | 18305 |  | 
 | 18306 | cfgfile="$ofile" | 
 | 18307 |  | 
 | 18308 |   cat <<__EOF__ >> "$cfgfile" | 
 | 18309 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 18310 |  | 
 | 18311 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 18312 |  | 
 | 18313 | # Shell to use when invoking shell scripts. | 
 | 18314 | SHELL=$lt_SHELL | 
 | 18315 |  | 
 | 18316 | # Whether or not to build shared libraries. | 
 | 18317 | build_libtool_libs=$enable_shared | 
 | 18318 |  | 
 | 18319 | # Whether or not to build static libraries. | 
 | 18320 | build_old_libs=$enable_static | 
 | 18321 |  | 
 | 18322 | # Whether or not to add -lc for building shared libraries. | 
 | 18323 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
 | 18324 |  | 
 | 18325 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 18326 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
 | 18327 |  | 
 | 18328 | # Whether or not to optimize for fast installation. | 
 | 18329 | fast_install=$enable_fast_install | 
 | 18330 |  | 
 | 18331 | # The host system. | 
 | 18332 | host_alias=$host_alias | 
 | 18333 | host=$host | 
 | 18334 |  | 
 | 18335 | # An echo program that does not interpret backslashes. | 
 | 18336 | echo=$lt_echo | 
 | 18337 |  | 
 | 18338 | # The archiver. | 
 | 18339 | AR=$lt_AR | 
 | 18340 | AR_FLAGS=$lt_AR_FLAGS | 
 | 18341 |  | 
 | 18342 | # A C compiler. | 
 | 18343 | LTCC=$lt_LTCC | 
 | 18344 |  | 
 | 18345 | # A language-specific compiler. | 
 | 18346 | CC=$lt_compiler_CXX | 
 | 18347 |  | 
 | 18348 | # Is the compiler the GNU C compiler? | 
 | 18349 | with_gcc=$GCC_CXX | 
 | 18350 |  | 
 | 18351 | # An ERE matcher. | 
 | 18352 | EGREP=$lt_EGREP | 
 | 18353 |  | 
 | 18354 | # The linker used to build libraries. | 
 | 18355 | LD=$lt_LD_CXX | 
 | 18356 |  | 
 | 18357 | # Whether we need hard or soft links. | 
 | 18358 | LN_S=$lt_LN_S | 
 | 18359 |  | 
 | 18360 | # A BSD-compatible nm program. | 
 | 18361 | NM=$lt_NM | 
 | 18362 |  | 
 | 18363 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18364 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18365 |  | 
 | 18366 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 18367 | MAGIC_CMD=$MAGIC_CMD | 
 | 18368 |  | 
 | 18369 | # Used on cygwin: DLL creation program. | 
 | 18370 | DLLTOOL="$DLLTOOL" | 
 | 18371 |  | 
 | 18372 | # Used on cygwin: object dumper. | 
 | 18373 | OBJDUMP="$OBJDUMP" | 
 | 18374 |  | 
 | 18375 | # Used on cygwin: assembler. | 
 | 18376 | AS="$AS" | 
 | 18377 |  | 
 | 18378 | # The name of the directory that contains temporary libtool files. | 
 | 18379 | objdir=$objdir | 
 | 18380 |  | 
 | 18381 | # How to create reloadable object files. | 
 | 18382 | reload_flag=$lt_reload_flag | 
 | 18383 | reload_cmds=$lt_reload_cmds | 
 | 18384 |  | 
 | 18385 | # How to pass a linker flag through the compiler. | 
 | 18386 | wl=$lt_lt_prog_compiler_wl_CXX | 
 | 18387 |  | 
 | 18388 | # Object file suffix (normally "o"). | 
 | 18389 | objext="$ac_objext" | 
 | 18390 |  | 
 | 18391 | # Old archive suffix (normally "a"). | 
 | 18392 | libext="$libext" | 
 | 18393 |  | 
 | 18394 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18395 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18396 |  | 
 | 18397 | # Executable file suffix (normally ""). | 
 | 18398 | exeext="$exeext" | 
 | 18399 |  | 
 | 18400 | # Additional compiler flags for building library objects. | 
 | 18401 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
 | 18402 | pic_mode=$pic_mode | 
 | 18403 |  | 
 | 18404 | # What is the maximum length of a command? | 
 | 18405 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 18406 |  | 
 | 18407 | # Does compiler simultaneously support -c and -o options? | 
 | 18408 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
 | 18409 |  | 
 | 18410 | # Must we lock files when doing compilation ? | 
 | 18411 | need_locks=$lt_need_locks | 
 | 18412 |  | 
 | 18413 | # Do we need the lib prefix for modules? | 
 | 18414 | need_lib_prefix=$need_lib_prefix | 
 | 18415 |  | 
 | 18416 | # Do we need a version for libraries? | 
 | 18417 | need_version=$need_version | 
 | 18418 |  | 
 | 18419 | # Whether dlopen is supported. | 
 | 18420 | dlopen_support=$enable_dlopen | 
 | 18421 |  | 
 | 18422 | # Whether dlopen of programs is supported. | 
 | 18423 | dlopen_self=$enable_dlopen_self | 
 | 18424 |  | 
 | 18425 | # Whether dlopen of statically linked programs is supported. | 
 | 18426 | dlopen_self_static=$enable_dlopen_self_static | 
 | 18427 |  | 
 | 18428 | # Compiler flag to prevent dynamic linking. | 
 | 18429 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
 | 18430 |  | 
 | 18431 | # Compiler flag to turn off builtin functions. | 
 | 18432 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
 | 18433 |  | 
 | 18434 | # Compiler flag to allow reflexive dlopens. | 
 | 18435 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
 | 18436 |  | 
 | 18437 | # Compiler flag to generate shared objects directly from archives. | 
 | 18438 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
 | 18439 |  | 
 | 18440 | # Compiler flag to generate thread-safe objects. | 
 | 18441 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
 | 18442 |  | 
 | 18443 | # Library versioning type. | 
 | 18444 | version_type=$version_type | 
 | 18445 |  | 
 | 18446 | # Format of library name prefix. | 
 | 18447 | libname_spec=$lt_libname_spec | 
 | 18448 |  | 
 | 18449 | # List of archive names.  First name is the real one, the rest are links. | 
 | 18450 | # The last name is the one that the linker finds with -lNAME. | 
 | 18451 | library_names_spec=$lt_library_names_spec | 
 | 18452 |  | 
 | 18453 | # The coded name of the library, if different from the real name. | 
 | 18454 | soname_spec=$lt_soname_spec | 
 | 18455 |  | 
 | 18456 | # Commands used to build and install an old-style archive. | 
 | 18457 | RANLIB=$lt_RANLIB | 
 | 18458 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
 | 18459 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 18460 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 18461 |  | 
 | 18462 | # Create an old-style archive from a shared archive. | 
 | 18463 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
 | 18464 |  | 
 | 18465 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 18466 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
 | 18467 |  | 
 | 18468 | # Commands used to build and install a shared archive. | 
 | 18469 | archive_cmds=$lt_archive_cmds_CXX | 
 | 18470 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
 | 18471 | postinstall_cmds=$lt_postinstall_cmds | 
 | 18472 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 18473 |  | 
 | 18474 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 18475 | module_cmds=$lt_module_cmds_CXX | 
 | 18476 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
 | 18477 |  | 
 | 18478 | # Commands to strip libraries. | 
 | 18479 | old_striplib=$lt_old_striplib | 
 | 18480 | striplib=$lt_striplib | 
 | 18481 |  | 
 | 18482 | # Dependencies to place before the objects being linked to create a | 
 | 18483 | # shared library. | 
 | 18484 | predep_objects=$lt_predep_objects_CXX | 
 | 18485 |  | 
 | 18486 | # Dependencies to place after the objects being linked to create a | 
 | 18487 | # shared library. | 
 | 18488 | postdep_objects=$lt_postdep_objects_CXX | 
 | 18489 |  | 
 | 18490 | # Dependencies to place before the objects being linked to create a | 
 | 18491 | # shared library. | 
 | 18492 | predeps=$lt_predeps_CXX | 
 | 18493 |  | 
 | 18494 | # Dependencies to place after the objects being linked to create a | 
 | 18495 | # shared library. | 
 | 18496 | postdeps=$lt_postdeps_CXX | 
 | 18497 |  | 
 | 18498 | # The library search path used internally by the compiler when linking | 
 | 18499 | # a shared library. | 
 | 18500 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
 | 18501 |  | 
 | 18502 | # Method to check whether dependent libraries are shared objects. | 
 | 18503 | deplibs_check_method=$lt_deplibs_check_method | 
 | 18504 |  | 
 | 18505 | # Command to use when deplibs_check_method == file_magic. | 
 | 18506 | file_magic_cmd=$lt_file_magic_cmd | 
 | 18507 |  | 
 | 18508 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 18509 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
 | 18510 |  | 
 | 18511 | # Flag that forces no undefined symbols. | 
 | 18512 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
 | 18513 |  | 
 | 18514 | # Commands used to finish a libtool library installation in a directory. | 
 | 18515 | finish_cmds=$lt_finish_cmds | 
 | 18516 |  | 
 | 18517 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 18518 | finish_eval=$lt_finish_eval | 
 | 18519 |  | 
 | 18520 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 18521 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 18522 |  | 
 | 18523 | # Transform the output of nm in a proper C declaration | 
 | 18524 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 18525 |  | 
 | 18526 | # Transform the output of nm in a C name address pair | 
 | 18527 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 18528 |  | 
 | 18529 | # This is the shared library runtime path variable. | 
 | 18530 | runpath_var=$runpath_var | 
 | 18531 |  | 
 | 18532 | # This is the shared library path variable. | 
 | 18533 | shlibpath_var=$shlibpath_var | 
 | 18534 |  | 
 | 18535 | # Is shlibpath searched before the hard-coded library search path? | 
 | 18536 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 18537 |  | 
 | 18538 | # How to hardcode a shared library path into an executable. | 
 | 18539 | hardcode_action=$hardcode_action_CXX | 
 | 18540 |  | 
 | 18541 | # Whether we should hardcode library paths into libraries. | 
 | 18542 | hardcode_into_libs=$hardcode_into_libs | 
 | 18543 |  | 
 | 18544 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 18545 | # This must work even if \$libdir does not exist. | 
 | 18546 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
 | 18547 |  | 
 | 18548 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 18549 | # a binary during linking. This must work even if \$libdir does | 
 | 18550 | # not exist. | 
 | 18551 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
 | 18552 |  | 
 | 18553 | # Whether we need a single -rpath flag with a separated argument. | 
 | 18554 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
 | 18555 |  | 
 | 18556 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 18557 | # resulting binary. | 
 | 18558 | hardcode_direct=$hardcode_direct_CXX | 
 | 18559 |  | 
 | 18560 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 18561 | # resulting binary. | 
 | 18562 | hardcode_minus_L=$hardcode_minus_L_CXX | 
 | 18563 |  | 
 | 18564 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 18565 | # the resulting binary. | 
 | 18566 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
 | 18567 |  | 
 | 18568 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 18569 | # and all subsequent libraries and executables linked against it. | 
 | 18570 | hardcode_automatic=$hardcode_automatic_CXX | 
 | 18571 |  | 
 | 18572 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 18573 | # restored at relink time. | 
 | 18574 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 18575 |  | 
 | 18576 | # Whether libtool must link a program against all its dependency libraries. | 
 | 18577 | link_all_deplibs=$link_all_deplibs_CXX | 
 | 18578 |  | 
 | 18579 | # Compile-time system search path for libraries | 
 | 18580 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 18581 |  | 
 | 18582 | # Run-time system search path for libraries | 
 | 18583 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 18584 |  | 
 | 18585 | # Fix the shell variable \$srcfile for the compiler. | 
 | 18586 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
 | 18587 |  | 
 | 18588 | # Set to yes if exported symbols are required. | 
 | 18589 | always_export_symbols=$always_export_symbols_CXX | 
 | 18590 |  | 
 | 18591 | # The commands to list exported symbols. | 
 | 18592 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
 | 18593 |  | 
 | 18594 | # The commands to extract the exported symbol list from a shared archive. | 
 | 18595 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 18596 |  | 
 | 18597 | # Symbols that should not be listed in the preloaded symbols. | 
 | 18598 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
 | 18599 |  | 
 | 18600 | # Symbols that must always be exported. | 
 | 18601 | include_expsyms=$lt_include_expsyms_CXX | 
 | 18602 |  | 
 | 18603 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 18604 |  | 
 | 18605 | __EOF__ | 
 | 18606 |  | 
 | 18607 |  | 
 | 18608 | else | 
 | 18609 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 18610 |   # `config.status --recheck' to rerun these tests and create the | 
 | 18611 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18612 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 18613 |   if test -f "$ltmain_in"; then | 
 | 18614 |     test -f Makefile && make "$ltmain" | 
 | 18615 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18616 | fi | 
 | 18617 |  | 
 | 18618 |  | 
 | 18619 | ac_ext=c | 
 | 18620 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 18624 |  | 
 | 18625 | CC=$lt_save_CC | 
 | 18626 | LDCXX=$LD | 
 | 18627 | LD=$lt_save_LD | 
 | 18628 | GCC=$lt_save_GCC | 
 | 18629 | with_gnu_ldcxx=$with_gnu_ld | 
 | 18630 | with_gnu_ld=$lt_save_with_gnu_ld | 
 | 18631 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
 | 18632 | lt_cv_path_LD=$lt_save_path_LD | 
 | 18633 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
 | 18634 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
 | 18635 |  | 
 | 18636 | 	else | 
 | 18637 | 	  tagname="" | 
 | 18638 | 	fi | 
 | 18639 | 	;; | 
 | 18640 |  | 
 | 18641 |       F77) | 
 | 18642 | 	if test -n "$F77" && test "X$F77" != "Xno"; then | 
 | 18643 |  | 
 | 18644 | ac_ext=f | 
 | 18645 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 18646 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18647 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 18648 |  | 
 | 18649 |  | 
 | 18650 | archive_cmds_need_lc_F77=no | 
 | 18651 | allow_undefined_flag_F77= | 
 | 18652 | always_export_symbols_F77=no | 
 | 18653 | archive_expsym_cmds_F77= | 
 | 18654 | export_dynamic_flag_spec_F77= | 
 | 18655 | hardcode_direct_F77=no | 
 | 18656 | hardcode_libdir_flag_spec_F77= | 
 | 18657 | hardcode_libdir_flag_spec_ld_F77= | 
 | 18658 | hardcode_libdir_separator_F77= | 
 | 18659 | hardcode_minus_L_F77=no | 
 | 18660 | hardcode_automatic_F77=no | 
 | 18661 | module_cmds_F77= | 
 | 18662 | module_expsym_cmds_F77= | 
 | 18663 | link_all_deplibs_F77=unknown | 
 | 18664 | old_archive_cmds_F77=$old_archive_cmds | 
 | 18665 | no_undefined_flag_F77= | 
 | 18666 | whole_archive_flag_spec_F77= | 
 | 18667 | enable_shared_with_static_runtimes_F77=no | 
 | 18668 |  | 
 | 18669 | # Source file extension for f77 test sources. | 
 | 18670 | ac_ext=f | 
 | 18671 |  | 
 | 18672 | # Object file extension for compiled f77 test sources. | 
 | 18673 | objext=o | 
 | 18674 | objext_F77=$objext | 
 | 18675 |  | 
 | 18676 | # Code to be used in simple compile tests | 
 | 18677 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
 | 18678 |  | 
 | 18679 | # Code to be used in simple link tests | 
 | 18680 | lt_simple_link_test_code="      program t\n      end\n" | 
 | 18681 |  | 
 | 18682 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 18683 |  | 
 | 18684 | # If no C compiler was specified, use CC. | 
 | 18685 | LTCC=${LTCC-"$CC"} | 
 | 18686 |  | 
 | 18687 | # Allow CC to be a program name with arguments. | 
 | 18688 | compiler=$CC | 
 | 18689 |  | 
 | 18690 |  | 
 | 18691 | # Allow CC to be a program name with arguments. | 
 | 18692 | lt_save_CC="$CC" | 
 | 18693 | CC=${F77-"f77"} | 
 | 18694 | compiler=$CC | 
 | 18695 | compiler_F77=$CC | 
 | 18696 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 18697 |  | 
 | 18698 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 18699 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 18700 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 18701 | echo "${ECHO_T}$can_build_shared" >&6 | 
 | 18702 |  | 
 | 18703 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 18704 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 18705 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 18706 |  | 
 | 18707 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 18708 | # are all built from PIC. | 
 | 18709 | case "$host_os" in | 
 | 18710 | aix3*) | 
 | 18711 |   test "$enable_shared" = yes && enable_static=no | 
 | 18712 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18713 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18714 |     postinstall_cmds='$RANLIB $lib' | 
 | 18715 |   fi | 
 | 18716 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18717 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18718 |   test "$enable_shared" = yes && enable_static=no | 
 | 18719 |   ;; | 
 | 18720 | esac | 
 | 18721 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 18722 | echo "${ECHO_T}$enable_shared" >&6 | 
 | 18723 |  | 
 | 18724 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 18725 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 18726 | # Make sure either enable_shared or enable_static is yes. | 
 | 18727 | test "$enable_shared" = yes || enable_static=yes | 
 | 18728 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 18729 | echo "${ECHO_T}$enable_static" >&6 | 
 | 18730 |  | 
 | 18731 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 18732 |  | 
 | 18733 | GCC_F77="$G77" | 
 | 18734 | LD_F77="$LD" | 
 | 18735 |  | 
 | 18736 | lt_prog_compiler_wl_F77= | 
 | 18737 | lt_prog_compiler_pic_F77= | 
 | 18738 | lt_prog_compiler_static_F77= | 
 | 18739 |  | 
 | 18740 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 18741 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 18742 |  | 
 | 18743 |   if test "$GCC" = yes; then | 
 | 18744 |     lt_prog_compiler_wl_F77='-Wl,' | 
 | 18745 |     lt_prog_compiler_static_F77='-static' | 
 | 18746 |  | 
 | 18747 |     case $host_os in | 
 | 18748 |       aix*) | 
 | 18749 |       # All AIX code is PIC. | 
 | 18750 |       if test "$host_cpu" = ia64; then | 
 | 18751 | 	# AIX 5 now supports IA64 processor | 
 | 18752 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 18753 |       fi | 
 | 18754 |       ;; | 
 | 18755 |  | 
 | 18756 |     amigaos*) | 
 | 18757 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 18758 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 18759 |       # like `-m68040'. | 
 | 18760 |       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
 | 18761 |       ;; | 
 | 18762 |  | 
 | 18763 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 18764 |       # PIC is the default for these OSes. | 
 | 18765 |       ;; | 
 | 18766 |  | 
 | 18767 |     mingw* | pw32* | os2*) | 
 | 18768 |       # This hack is so that the source file can tell whether it is being | 
 | 18769 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 18770 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 18771 |       ;; | 
 | 18772 |  | 
 | 18773 |     darwin* | rhapsody*) | 
 | 18774 |       # PIC is the default on this platform | 
 | 18775 |       # Common symbols not allowed in MH_DYLIB files | 
 | 18776 |       lt_prog_compiler_pic_F77='-fno-common' | 
 | 18777 |       ;; | 
 | 18778 |  | 
 | 18779 |     msdosdjgpp*) | 
 | 18780 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 18781 |       # on systems that don't support them. | 
 | 18782 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 18783 |       enable_shared=no | 
 | 18784 |       ;; | 
 | 18785 |  | 
 | 18786 |     sysv4*MP*) | 
 | 18787 |       if test -d /usr/nec; then | 
 | 18788 | 	lt_prog_compiler_pic_F77=-Kconform_pic | 
 | 18789 |       fi | 
 | 18790 |       ;; | 
 | 18791 |  | 
 | 18792 |     hpux*) | 
 | 18793 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 18794 |       # not for PA HP-UX. | 
 | 18795 |       case "$host_cpu" in | 
 | 18796 |       hppa*64*|ia64*) | 
 | 18797 | 	# +Z the default | 
 | 18798 | 	;; | 
 | 18799 |       *) | 
 | 18800 | 	lt_prog_compiler_pic_F77='-fPIC' | 
 | 18801 | 	;; | 
 | 18802 |       esac | 
 | 18803 |       ;; | 
 | 18804 |  | 
 | 18805 |     *) | 
 | 18806 |       lt_prog_compiler_pic_F77='-fPIC' | 
 | 18807 |       ;; | 
 | 18808 |     esac | 
 | 18809 |   else | 
 | 18810 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 18811 |     case $host_os in | 
 | 18812 |     aix*) | 
 | 18813 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 18814 |       if test "$host_cpu" = ia64; then | 
 | 18815 | 	# AIX 5 now supports IA64 processor | 
 | 18816 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 18817 |       else | 
 | 18818 | 	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
 | 18819 |       fi | 
 | 18820 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18821 |       darwin*) | 
 | 18822 |         # PIC is the default on this platform | 
 | 18823 |         # Common symbols not allowed in MH_DYLIB files | 
 | 18824 |        case "$cc_basename" in | 
 | 18825 |          xlc*) | 
 | 18826 |          lt_prog_compiler_pic_F77='-qnocommon' | 
 | 18827 |          lt_prog_compiler_wl_F77='-Wl,' | 
 | 18828 |          ;; | 
 | 18829 |        esac | 
 | 18830 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18831 |  | 
 | 18832 |     mingw* | pw32* | os2*) | 
 | 18833 |       # This hack is so that the source file can tell whether it is being | 
 | 18834 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 18835 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 18836 |       ;; | 
 | 18837 |  | 
 | 18838 |     hpux9* | hpux10* | hpux11*) | 
 | 18839 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 18840 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 18841 |       # not for PA HP-UX. | 
 | 18842 |       case "$host_cpu" in | 
 | 18843 |       hppa*64*|ia64*) | 
 | 18844 | 	# +Z the default | 
 | 18845 | 	;; | 
 | 18846 |       *) | 
 | 18847 | 	lt_prog_compiler_pic_F77='+Z' | 
 | 18848 | 	;; | 
 | 18849 |       esac | 
 | 18850 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 18851 |       lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
 | 18852 |       ;; | 
 | 18853 |  | 
 | 18854 |     irix5* | irix6* | nonstopux*) | 
 | 18855 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 18856 |       # PIC (with -KPIC) is the default. | 
 | 18857 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 18858 |       ;; | 
 | 18859 |  | 
 | 18860 |     newsos6) | 
 | 18861 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 18862 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 18863 |       ;; | 
 | 18864 |  | 
 | 18865 |     linux*) | 
 | 18866 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18867 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18868 | 	lt_prog_compiler_wl_F77='-Wl,' | 
 | 18869 | 	lt_prog_compiler_pic_F77='-KPIC' | 
 | 18870 | 	lt_prog_compiler_static_F77='-static' | 
 | 18871 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18872 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18873 |         lt_prog_compiler_wl_F77='-Wl,' | 
 | 18874 |         # All Alpha code is PIC. | 
 | 18875 |         lt_prog_compiler_static_F77='-non_shared' | 
 | 18876 |         ;; | 
 | 18877 |       esac | 
 | 18878 |       ;; | 
 | 18879 |  | 
 | 18880 |     osf3* | osf4* | osf5*) | 
 | 18881 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 18882 |       # All OSF/1 code is PIC. | 
 | 18883 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 18884 |       ;; | 
 | 18885 |  | 
 | 18886 |     sco3.2v5*) | 
 | 18887 |       lt_prog_compiler_pic_F77='-Kpic' | 
 | 18888 |       lt_prog_compiler_static_F77='-dn' | 
 | 18889 |       ;; | 
 | 18890 |  | 
 | 18891 |     solaris*) | 
 | 18892 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 18893 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 18894 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 18895 |       ;; | 
 | 18896 |  | 
 | 18897 |     sunos4*) | 
 | 18898 |       lt_prog_compiler_wl_F77='-Qoption ld ' | 
 | 18899 |       lt_prog_compiler_pic_F77='-PIC' | 
 | 18900 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 18901 |       ;; | 
 | 18902 |  | 
 | 18903 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 18904 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 18905 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 18906 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 18907 |       ;; | 
 | 18908 |  | 
 | 18909 |     sysv4*MP*) | 
 | 18910 |       if test -d /usr/nec ;then | 
 | 18911 | 	lt_prog_compiler_pic_F77='-Kconform_pic' | 
 | 18912 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 18913 |       fi | 
 | 18914 |       ;; | 
 | 18915 |  | 
 | 18916 |     uts4*) | 
 | 18917 |       lt_prog_compiler_pic_F77='-pic' | 
 | 18918 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 18919 |       ;; | 
 | 18920 |  | 
 | 18921 |     *) | 
 | 18922 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 18923 |       ;; | 
 | 18924 |     esac | 
 | 18925 |   fi | 
 | 18926 |  | 
 | 18927 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
 | 18928 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 
 | 18929 |  | 
 | 18930 | # | 
 | 18931 | # Check to make sure the PIC flag actually works. | 
 | 18932 | # | 
 | 18933 | if test -n "$lt_prog_compiler_pic_F77"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18934 |  | 
 | 18935 | 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] | 18936 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 
 | 18937 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
 | 18938 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18939 | else | 
 | 18940 |   lt_prog_compiler_pic_works_F77=no | 
 | 18941 |   ac_outfile=conftest.$ac_objext | 
 | 18942 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 18943 |    lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
 | 18944 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 18945 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 18946 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 18947 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 18948 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 18949 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 18950 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 18951 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 18952 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 18953 |    (eval echo "\"\$as_me:18953: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18954 |    (eval "$lt_compile" 2>conftest.err) | 
 | 18955 |    ac_status=$? | 
 | 18956 |    cat conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 18957 |    echo "$as_me:18957: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18958 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 18959 |      # The compiler can only warn and ignore the option if not recognized | 
 | 18960 |      # So say no if there are warnings | 
 | 18961 |      if test ! -s conftest.err; then | 
 | 18962 |        lt_prog_compiler_pic_works_F77=yes | 
 | 18963 |      fi | 
 | 18964 |    fi | 
 | 18965 |    $rm conftest* | 
 | 18966 |  | 
 | 18967 | fi | 
 | 18968 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
 | 18969 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 
 | 18970 |  | 
 | 18971 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
 | 18972 |     case $lt_prog_compiler_pic_F77 in | 
 | 18973 |      "" | " "*) ;; | 
 | 18974 |      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
 | 18975 |      esac | 
 | 18976 | else | 
 | 18977 |     lt_prog_compiler_pic_F77= | 
 | 18978 |      lt_prog_compiler_can_build_shared_F77=no | 
 | 18979 | fi | 
 | 18980 |  | 
 | 18981 | fi | 
 | 18982 | case "$host_os" in | 
 | 18983 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 18984 |   *djgpp*) | 
 | 18985 |     lt_prog_compiler_pic_F77= | 
 | 18986 |     ;; | 
 | 18987 |   *) | 
 | 18988 |     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
 | 18989 |     ;; | 
 | 18990 | esac | 
 | 18991 |  | 
 | 18992 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 18993 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 18994 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
 | 18995 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18996 | else | 
 | 18997 |   lt_cv_prog_compiler_c_o_F77=no | 
 | 18998 |    $rm -r conftest 2>/dev/null | 
 | 18999 |    mkdir conftest | 
 | 19000 |    cd conftest | 
 | 19001 |    mkdir out | 
 | 19002 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 19003 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19004 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 19005 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 19006 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 19007 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 19008 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 19009 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 19010 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 19011 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 19012 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 19013 |    (eval echo "\"\$as_me:19013: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19014 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 19015 |    ac_status=$? | 
 | 19016 |    cat out/conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 19017 |    echo "$as_me:19017: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19018 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 19019 |    then | 
 | 19020 |      # The compiler can only warn and ignore the option if not recognized | 
 | 19021 |      # So say no if there are warnings | 
 | 19022 |      if test ! -s out/conftest.err; then | 
 | 19023 |        lt_cv_prog_compiler_c_o_F77=yes | 
 | 19024 |      fi | 
 | 19025 |    fi | 
 | 19026 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19027 |    $rm conftest* | 
 | 19028 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 19029 |    # template instantiation | 
 | 19030 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 19031 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19032 |    cd .. | 
 | 19033 |    rmdir conftest | 
 | 19034 |    $rm conftest* | 
 | 19035 |  | 
 | 19036 | fi | 
 | 19037 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
 | 19038 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 
 | 19039 |  | 
 | 19040 |  | 
 | 19041 | hard_links="nottested" | 
 | 19042 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
 | 19043 |   # do not overwrite the value of need_locks provided by the user | 
 | 19044 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 19045 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 19046 |   hard_links=yes | 
 | 19047 |   $rm conftest* | 
 | 19048 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 19049 |   touch conftest.a | 
 | 19050 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 19051 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 19052 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 19053 | echo "${ECHO_T}$hard_links" >&6 | 
 | 19054 |   if test "$hard_links" = no; then | 
 | 19055 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 19056 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 19057 |     need_locks=warn | 
 | 19058 |   fi | 
 | 19059 | else | 
 | 19060 |   need_locks=no | 
 | 19061 | fi | 
 | 19062 |  | 
 | 19063 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 19064 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 19065 |  | 
 | 19066 |   runpath_var= | 
 | 19067 |   allow_undefined_flag_F77= | 
 | 19068 |   enable_shared_with_static_runtimes_F77=no | 
 | 19069 |   archive_cmds_F77= | 
 | 19070 |   archive_expsym_cmds_F77= | 
 | 19071 |   old_archive_From_new_cmds_F77= | 
 | 19072 |   old_archive_from_expsyms_cmds_F77= | 
 | 19073 |   export_dynamic_flag_spec_F77= | 
 | 19074 |   whole_archive_flag_spec_F77= | 
 | 19075 |   thread_safe_flag_spec_F77= | 
 | 19076 |   hardcode_libdir_flag_spec_F77= | 
 | 19077 |   hardcode_libdir_flag_spec_ld_F77= | 
 | 19078 |   hardcode_libdir_separator_F77= | 
 | 19079 |   hardcode_direct_F77=no | 
 | 19080 |   hardcode_minus_L_F77=no | 
 | 19081 |   hardcode_shlibpath_var_F77=unsupported | 
 | 19082 |   link_all_deplibs_F77=unknown | 
 | 19083 |   hardcode_automatic_F77=no | 
 | 19084 |   module_cmds_F77= | 
 | 19085 |   module_expsym_cmds_F77= | 
 | 19086 |   always_export_symbols_F77=no | 
 | 19087 |   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 19088 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 19089 |   # included in the symbol list | 
 | 19090 |   include_expsyms_F77= | 
 | 19091 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 19092 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 19093 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 19094 |   # as well as any symbol that contains `d'. | 
 | 19095 |   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
 | 19096 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 19097 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 19098 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 19099 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 19100 |   # preloaded symbol tables. | 
 | 19101 |   extract_expsyms_cmds= | 
 | 19102 |  | 
 | 19103 |   case $host_os in | 
 | 19104 |   cygwin* | mingw* | pw32*) | 
 | 19105 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 19106 |     # When not using gcc, we currently assume that we are using | 
 | 19107 |     # Microsoft Visual C++. | 
 | 19108 |     if test "$GCC" != yes; then | 
 | 19109 |       with_gnu_ld=no | 
 | 19110 |     fi | 
 | 19111 |     ;; | 
 | 19112 |   openbsd*) | 
 | 19113 |     with_gnu_ld=no | 
 | 19114 |     ;; | 
 | 19115 |   esac | 
 | 19116 |  | 
 | 19117 |   ld_shlibs_F77=yes | 
 | 19118 |   if test "$with_gnu_ld" = yes; then | 
 | 19119 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 19120 |     wlarc='${wl}' | 
 | 19121 |  | 
 | 19122 |     # See if GNU ld supports shared libraries. | 
 | 19123 |     case $host_os in | 
 | 19124 |     aix3* | aix4* | aix5*) | 
 | 19125 |       # On AIX/PPC, the GNU linker is very broken | 
 | 19126 |       if test "$host_cpu" != ia64; then | 
 | 19127 | 	ld_shlibs_F77=no | 
 | 19128 | 	cat <<EOF 1>&2 | 
 | 19129 |  | 
 | 19130 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 19131 | *** to be unable to reliably create shared libraries on AIX. | 
 | 19132 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 19133 | *** really care for shared libraries, you may want to modify your PATH | 
 | 19134 | *** so that a non-GNU linker is found, and then restart. | 
 | 19135 |  | 
 | 19136 | EOF | 
 | 19137 |       fi | 
 | 19138 |       ;; | 
 | 19139 |  | 
 | 19140 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19141 |       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] | 19142 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19143 |       hardcode_minus_L_F77=yes | 
 | 19144 |  | 
 | 19145 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 19146 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 19147 |       # to version 4, is to share data among multiple programs linked | 
 | 19148 |       # with the same dynamic library.  Since this doesn't match the | 
 | 19149 |       # behavior of shared libraries on other platforms, we can't use | 
 | 19150 |       # them. | 
 | 19151 |       ld_shlibs_F77=no | 
 | 19152 |       ;; | 
 | 19153 |  | 
 | 19154 |     beos*) | 
 | 19155 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19156 | 	allow_undefined_flag_F77=unsupported | 
 | 19157 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 19158 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 19159 | 	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19160 |       else | 
 | 19161 | 	ld_shlibs_F77=no | 
 | 19162 |       fi | 
 | 19163 |       ;; | 
 | 19164 |  | 
 | 19165 |     cygwin* | mingw* | pw32*) | 
 | 19166 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
 | 19167 |       # as there is no search path for DLLs. | 
 | 19168 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19169 |       allow_undefined_flag_F77=unsupported | 
 | 19170 |       always_export_symbols_F77=no | 
 | 19171 |       enable_shared_with_static_runtimes_F77=yes | 
 | 19172 |       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 19173 |  | 
 | 19174 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 19175 |         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 19176 | 	# If the export-symbols file already is a .def file (1st line | 
 | 19177 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 19178 | 	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 19179 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 19180 | 	else | 
 | 19181 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 19182 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19183 | 	fi~ | 
 | 19184 | 	$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] | 19185 |       else | 
 | 19186 | 	ld_shlibs=no | 
 | 19187 |       fi | 
 | 19188 |       ;; | 
 | 19189 |  | 
 | 19190 |     netbsd*) | 
 | 19191 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 19192 | 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 19193 | 	wlarc= | 
 | 19194 |       else | 
 | 19195 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19196 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 19197 |       fi | 
 | 19198 |       ;; | 
 | 19199 |  | 
 | 19200 |     solaris* | sysv5*) | 
 | 19201 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 19202 | 	ld_shlibs_F77=no | 
 | 19203 | 	cat <<EOF 1>&2 | 
 | 19204 |  | 
 | 19205 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 19206 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 19207 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 19208 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 19209 | *** your PATH or compiler configuration so that the native linker is | 
 | 19210 | *** used, and then restart. | 
 | 19211 |  | 
 | 19212 | EOF | 
 | 19213 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19214 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19215 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 19216 |       else | 
 | 19217 | 	ld_shlibs_F77=no | 
 | 19218 |       fi | 
 | 19219 |       ;; | 
 | 19220 |  | 
 | 19221 |     sunos4*) | 
 | 19222 |       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 19223 |       wlarc= | 
 | 19224 |       hardcode_direct_F77=yes | 
 | 19225 |       hardcode_shlibpath_var_F77=no | 
 | 19226 |       ;; | 
 | 19227 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19228 |   linux*) | 
 | 19229 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19230 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19231 | 	archive_cmds_F77="$tmp_archive_cmds" | 
 | 19232 |       supports_anon_versioning=no | 
 | 19233 |       case `$LD -v 2>/dev/null` in | 
 | 19234 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 19235 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 19236 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 19237 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 19238 |         *) supports_anon_versioning=yes ;; | 
 | 19239 |       esac | 
 | 19240 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19241 |         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 19242 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 19243 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19244 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 19245 |       else | 
 | 19246 |         archive_expsym_cmds_F77="$tmp_archive_cmds" | 
 | 19247 |       fi | 
 | 19248 |     else | 
 | 19249 |       ld_shlibs_F77=no | 
 | 19250 |     fi | 
 | 19251 |     ;; | 
 | 19252 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19253 |     *) | 
 | 19254 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19255 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19256 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 19257 |       else | 
 | 19258 | 	ld_shlibs_F77=no | 
 | 19259 |       fi | 
 | 19260 |       ;; | 
 | 19261 |     esac | 
 | 19262 |  | 
 | 19263 |     if test "$ld_shlibs_F77" = yes; then | 
 | 19264 |       runpath_var=LD_RUN_PATH | 
 | 19265 |       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
 | 19266 |       export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
 | 19267 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 19268 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 19269 |  	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 19270 |       else | 
 | 19271 |   	whole_archive_flag_spec_F77= | 
 | 19272 |       fi | 
 | 19273 |     fi | 
 | 19274 |   else | 
 | 19275 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 19276 |     case $host_os in | 
 | 19277 |     aix3*) | 
 | 19278 |       allow_undefined_flag_F77=unsupported | 
 | 19279 |       always_export_symbols_F77=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19280 |       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] | 19281 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 19282 |       # are no directories specified by -L. | 
 | 19283 |       hardcode_minus_L_F77=yes | 
 | 19284 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 19285 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 19286 | 	# broken collect2. | 
 | 19287 | 	hardcode_direct_F77=unsupported | 
 | 19288 |       fi | 
 | 19289 |       ;; | 
 | 19290 |  | 
 | 19291 |     aix4* | aix5*) | 
 | 19292 |       if test "$host_cpu" = ia64; then | 
 | 19293 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 19294 | 	# have to do anything special. | 
 | 19295 | 	aix_use_runtimelinking=no | 
 | 19296 | 	exp_sym_flag='-Bexport' | 
 | 19297 | 	no_entry_flag="" | 
 | 19298 |       else | 
 | 19299 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 19300 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 19301 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 19302 | 	  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' | 
 | 19303 | 	else | 
 | 19304 | 	  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' | 
 | 19305 | 	fi | 
 | 19306 | 	aix_use_runtimelinking=no | 
 | 19307 |  | 
 | 19308 | 	# Test if we are trying to use run time linking or normal | 
 | 19309 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 19310 | 	# need to do runtime linking. | 
 | 19311 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 19312 | 	  for ld_flag in $LDFLAGS; do | 
 | 19313 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 19314 |   	    aix_use_runtimelinking=yes | 
 | 19315 |   	    break | 
 | 19316 |   	  fi | 
 | 19317 | 	  done | 
 | 19318 | 	esac | 
 | 19319 |  | 
 | 19320 | 	exp_sym_flag='-bexport' | 
 | 19321 | 	no_entry_flag='-bnoentry' | 
 | 19322 |       fi | 
 | 19323 |  | 
 | 19324 |       # When large executables or shared objects are built, AIX ld can | 
 | 19325 |       # have problems creating the table of contents.  If linking a library | 
 | 19326 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 19327 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 19328 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 19329 |  | 
 | 19330 |       archive_cmds_F77='' | 
 | 19331 |       hardcode_direct_F77=yes | 
 | 19332 |       hardcode_libdir_separator_F77=':' | 
 | 19333 |       link_all_deplibs_F77=yes | 
 | 19334 |  | 
 | 19335 |       if test "$GCC" = yes; then | 
 | 19336 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 19337 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 19338 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 19339 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 19340 | 	  if test -f "$collect2name" && \ | 
 | 19341 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 19342 | 	  then | 
 | 19343 |   	  # We have reworked collect2 | 
 | 19344 |   	  hardcode_direct_F77=yes | 
 | 19345 | 	  else | 
 | 19346 |   	  # We have old collect2 | 
 | 19347 |   	  hardcode_direct_F77=unsupported | 
 | 19348 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 19349 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 19350 |   	  # to unsupported forces relinking | 
 | 19351 |   	  hardcode_minus_L_F77=yes | 
 | 19352 |   	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19353 |   	  hardcode_libdir_separator_F77= | 
 | 19354 | 	  fi | 
 | 19355 | 	esac | 
 | 19356 | 	shared_flag='-shared' | 
 | 19357 |       else | 
 | 19358 | 	# not using gcc | 
 | 19359 | 	if test "$host_cpu" = ia64; then | 
 | 19360 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 19361 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 19362 | 	  shared_flag='-G' | 
 | 19363 | 	else | 
 | 19364 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 19365 | 	    shared_flag='${wl}-G' | 
 | 19366 | 	  else | 
 | 19367 | 	    shared_flag='${wl}-bM:SRE' | 
 | 19368 |   	fi | 
 | 19369 | 	fi | 
 | 19370 |       fi | 
 | 19371 |  | 
 | 19372 |       # It seems that -bexpall does not export symbols beginning with | 
 | 19373 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 19374 |       always_export_symbols_F77=yes | 
 | 19375 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 19376 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 19377 | 	# -berok will link without error, but may produce a broken library. | 
 | 19378 | 	allow_undefined_flag_F77='-berok' | 
 | 19379 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 19380 |        cat >conftest.$ac_ext <<_ACEOF | 
 | 19381 |       program main | 
 | 19382 |  | 
 | 19383 |       end | 
 | 19384 | _ACEOF | 
 | 19385 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19387 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19388 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19389 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19390 |   rm -f conftest.er1 | 
 | 19391 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19392 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19393 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19394 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 19395 | 			 || test ! -s conftest.err' | 
 | 19396 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19397 |   (eval $ac_try) 2>&5 | 
 | 19398 |   ac_status=$? | 
 | 19399 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19400 |   (exit $ac_status); }; } && | 
 | 19401 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19402 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19403 |   (eval $ac_try) 2>&5 | 
 | 19404 |   ac_status=$? | 
 | 19405 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19406 |   (exit $ac_status); }; }; then | 
 | 19407 |  | 
 | 19408 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 19409 | }'` | 
 | 19410 | # Check for a 64-bit object if we didn't find anything. | 
 | 19411 | 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; } | 
 | 19412 | }'`; fi | 
 | 19413 | else | 
 | 19414 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19415 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19416 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19417 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19418 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19419 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19420 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 19421 |  | 
 | 19422 |        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 19423 | 	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" | 
 | 19424 |        else | 
 | 19425 | 	if test "$host_cpu" = ia64; then | 
 | 19426 | 	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
 | 19427 | 	  allow_undefined_flag_F77="-z nodefs" | 
 | 19428 | 	  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" | 
 | 19429 | 	else | 
 | 19430 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 19431 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 19432 |       program main | 
 | 19433 |  | 
 | 19434 |       end | 
 | 19435 | _ACEOF | 
 | 19436 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 19437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19438 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19439 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19440 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19441 |   rm -f conftest.er1 | 
 | 19442 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19443 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19444 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19445 | 	 { ac_try='test -z "$ac_f77_werror_flag" | 
 | 19446 | 			 || test ! -s conftest.err' | 
 | 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); }; } && | 
 | 19452 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19453 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19454 |   (eval $ac_try) 2>&5 | 
 | 19455 |   ac_status=$? | 
 | 19456 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19457 |   (exit $ac_status); }; }; then | 
 | 19458 |  | 
 | 19459 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 19460 | }'` | 
 | 19461 | # Check for a 64-bit object if we didn't find anything. | 
 | 19462 | 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; } | 
 | 19463 | }'`; fi | 
 | 19464 | else | 
 | 19465 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19466 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19467 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19468 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19469 | rm -f conftest.err conftest.$ac_objext \ | 
 | 19470 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19471 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 19472 |  | 
 | 19473 | 	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 19474 | 	  # Warning - without using the other run time loading flags, | 
 | 19475 | 	  # -berok will link without error, but may produce a broken library. | 
 | 19476 | 	  no_undefined_flag_F77=' ${wl}-bernotok' | 
 | 19477 | 	  allow_undefined_flag_F77=' ${wl}-berok' | 
 | 19478 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 19479 | 	  always_export_symbols_F77=yes | 
 | 19480 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 19481 | 	  whole_archive_flag_spec_F77=' ' | 
 | 19482 | 	  archive_cmds_need_lc_F77=yes | 
 | 19483 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19484 | 	  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] | 19485 | 	fi | 
 | 19486 |       fi | 
 | 19487 |       ;; | 
 | 19488 |  | 
 | 19489 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19490 |       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] | 19491 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19492 |       hardcode_minus_L_F77=yes | 
 | 19493 |       # see comment about different semantics on the GNU ld section | 
 | 19494 |       ld_shlibs_F77=no | 
 | 19495 |       ;; | 
 | 19496 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19497 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19498 |       export_dynamic_flag_spec_F77=-rdynamic | 
 | 19499 |       ;; | 
 | 19500 |  | 
 | 19501 |     cygwin* | mingw* | pw32*) | 
 | 19502 |       # When not using gcc, we currently assume that we are using | 
 | 19503 |       # Microsoft Visual C++. | 
 | 19504 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 19505 |       # no search path for DLLs. | 
 | 19506 |       hardcode_libdir_flag_spec_F77=' ' | 
 | 19507 |       allow_undefined_flag_F77=unsupported | 
 | 19508 |       # Tell ltmain to make .lib files, not .a files. | 
 | 19509 |       libext=lib | 
 | 19510 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19511 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19512 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19513 |       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] | 19514 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 19515 |       old_archive_From_new_cmds_F77='true' | 
 | 19516 |       # FIXME: Should let the user specify the lib program. | 
 | 19517 |       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 19518 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 19519 |       enable_shared_with_static_runtimes_F77=yes | 
 | 19520 |       ;; | 
 | 19521 |  | 
 | 19522 |     darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19523 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19524 |         rhapsody* | darwin1.[012]) | 
 | 19525 |          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | 
 | 19526 |          ;; | 
 | 19527 |        *) # Darwin 1.3 on | 
 | 19528 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 19529 |            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 19530 |          else | 
 | 19531 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 19532 |              10.[012]) | 
 | 19533 |                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 19534 |                ;; | 
 | 19535 |              10.*) | 
 | 19536 |                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | 
 | 19537 |                ;; | 
 | 19538 |            esac | 
 | 19539 |          fi | 
 | 19540 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19541 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19542 |       archive_cmds_need_lc_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19543 |       hardcode_direct_F77=no | 
 | 19544 |       hardcode_automatic_F77=yes | 
 | 19545 |       hardcode_shlibpath_var_F77=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19546 |       whole_archive_flag_spec_F77='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19547 |       link_all_deplibs_F77=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19548 |     if test "$GCC" = yes ; then | 
 | 19549 |     	output_verbose_link_cmd='echo' | 
 | 19550 |         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 19551 |       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 19552 |       # 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] | 19553 |       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}' | 
 | 19554 |       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] | 19555 |     else | 
 | 19556 |       case "$cc_basename" in | 
 | 19557 |         xlc*) | 
 | 19558 |          output_verbose_link_cmd='echo' | 
 | 19559 |          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 19560 |          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 19561 |           # 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] | 19562 |          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}' | 
 | 19563 |           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] | 19564 |           ;; | 
 | 19565 |        *) | 
 | 19566 |          ld_shlibs_F77=no | 
 | 19567 |           ;; | 
 | 19568 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19569 |     fi | 
 | 19570 |       ;; | 
 | 19571 |  | 
 | 19572 |     dgux*) | 
 | 19573 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19574 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19575 |       hardcode_shlibpath_var_F77=no | 
 | 19576 |       ;; | 
 | 19577 |  | 
 | 19578 |     freebsd1*) | 
 | 19579 |       ld_shlibs_F77=no | 
 | 19580 |       ;; | 
 | 19581 |  | 
 | 19582 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 19583 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 19584 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 19585 |     # extra space). | 
 | 19586 |     freebsd2.2*) | 
 | 19587 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 19588 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19589 |       hardcode_direct_F77=yes | 
 | 19590 |       hardcode_shlibpath_var_F77=no | 
 | 19591 |       ;; | 
 | 19592 |  | 
 | 19593 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 19594 |     freebsd2*) | 
 | 19595 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 19596 |       hardcode_direct_F77=yes | 
 | 19597 |       hardcode_minus_L_F77=yes | 
 | 19598 |       hardcode_shlibpath_var_F77=no | 
 | 19599 |       ;; | 
 | 19600 |  | 
 | 19601 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19602 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19603 |       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19604 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19605 |       hardcode_direct_F77=yes | 
 | 19606 |       hardcode_shlibpath_var_F77=no | 
 | 19607 |       ;; | 
 | 19608 |  | 
 | 19609 |     hpux9*) | 
 | 19610 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19611 | 	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] | 19612 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19613 | 	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] | 19614 |       fi | 
 | 19615 |       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 19616 |       hardcode_libdir_separator_F77=: | 
 | 19617 |       hardcode_direct_F77=yes | 
 | 19618 |  | 
 | 19619 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 19620 |       # but as the default location of the library. | 
 | 19621 |       hardcode_minus_L_F77=yes | 
 | 19622 |       export_dynamic_flag_spec_F77='${wl}-E' | 
 | 19623 |       ;; | 
 | 19624 |  | 
 | 19625 |     hpux10* | hpux11*) | 
 | 19626 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 19627 | 	case "$host_cpu" in | 
 | 19628 | 	hppa*64*|ia64*) | 
 | 19629 | 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19630 | 	  ;; | 
 | 19631 | 	*) | 
 | 19632 | 	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19633 | 	  ;; | 
 | 19634 | 	esac | 
 | 19635 |       else | 
 | 19636 | 	case "$host_cpu" in | 
 | 19637 | 	hppa*64*|ia64*) | 
 | 19638 | 	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19639 | 	  ;; | 
 | 19640 | 	*) | 
 | 19641 | 	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 19642 | 	  ;; | 
 | 19643 | 	esac | 
 | 19644 |       fi | 
 | 19645 |       if test "$with_gnu_ld" = no; then | 
 | 19646 | 	case "$host_cpu" in | 
 | 19647 | 	hppa*64*) | 
 | 19648 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 19649 | 	  hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
 | 19650 | 	  hardcode_libdir_separator_F77=: | 
 | 19651 | 	  hardcode_direct_F77=no | 
 | 19652 | 	  hardcode_shlibpath_var_F77=no | 
 | 19653 | 	  ;; | 
 | 19654 | 	ia64*) | 
 | 19655 | 	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19656 | 	  hardcode_direct_F77=no | 
 | 19657 | 	  hardcode_shlibpath_var_F77=no | 
 | 19658 |  | 
 | 19659 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 19660 | 	  # but as the default location of the library. | 
 | 19661 | 	  hardcode_minus_L_F77=yes | 
 | 19662 | 	  ;; | 
 | 19663 | 	*) | 
 | 19664 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 19665 | 	  hardcode_libdir_separator_F77=: | 
 | 19666 | 	  hardcode_direct_F77=yes | 
 | 19667 | 	  export_dynamic_flag_spec_F77='${wl}-E' | 
 | 19668 |  | 
 | 19669 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 19670 | 	  # but as the default location of the library. | 
 | 19671 | 	  hardcode_minus_L_F77=yes | 
 | 19672 | 	  ;; | 
 | 19673 | 	esac | 
 | 19674 |       fi | 
 | 19675 |       ;; | 
 | 19676 |  | 
 | 19677 |     irix5* | irix6* | nonstopux*) | 
 | 19678 |       if test "$GCC" = yes; then | 
 | 19679 | 	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' | 
 | 19680 |       else | 
 | 19681 | 	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' | 
 | 19682 | 	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
 | 19683 |       fi | 
 | 19684 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 19685 |       hardcode_libdir_separator_F77=: | 
 | 19686 |       link_all_deplibs_F77=yes | 
 | 19687 |       ;; | 
 | 19688 |  | 
 | 19689 |     netbsd*) | 
 | 19690 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 19691 | 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 19692 |       else | 
 | 19693 | 	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 19694 |       fi | 
 | 19695 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19696 |       hardcode_direct_F77=yes | 
 | 19697 |       hardcode_shlibpath_var_F77=no | 
 | 19698 |       ;; | 
 | 19699 |  | 
 | 19700 |     newsos6) | 
 | 19701 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19702 |       hardcode_direct_F77=yes | 
 | 19703 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 19704 |       hardcode_libdir_separator_F77=: | 
 | 19705 |       hardcode_shlibpath_var_F77=no | 
 | 19706 |       ;; | 
 | 19707 |  | 
 | 19708 |     openbsd*) | 
 | 19709 |       hardcode_direct_F77=yes | 
 | 19710 |       hardcode_shlibpath_var_F77=no | 
 | 19711 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 19712 | 	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] | 19713 | 	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] | 19714 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 19715 | 	export_dynamic_flag_spec_F77='${wl}-E' | 
 | 19716 |       else | 
 | 19717 |        case $host_os in | 
 | 19718 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 19719 | 	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 19720 | 	   hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19721 | 	   ;; | 
 | 19722 | 	 *) | 
 | 19723 | 	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19724 | 	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 19725 | 	   ;; | 
 | 19726 |        esac | 
 | 19727 |       fi | 
 | 19728 |       ;; | 
 | 19729 |  | 
 | 19730 |     os2*) | 
 | 19731 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19732 |       hardcode_minus_L_F77=yes | 
 | 19733 |       allow_undefined_flag_F77=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19734 |       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] | 19735 |       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 19736 |       ;; | 
 | 19737 |  | 
 | 19738 |     osf3*) | 
 | 19739 |       if test "$GCC" = yes; then | 
 | 19740 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 19741 | 	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' | 
 | 19742 |       else | 
 | 19743 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 19744 | 	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' | 
 | 19745 |       fi | 
 | 19746 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 19747 |       hardcode_libdir_separator_F77=: | 
 | 19748 |       ;; | 
 | 19749 |  | 
 | 19750 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 19751 |       if test "$GCC" = yes; then | 
 | 19752 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 19753 | 	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' | 
 | 19754 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 19755 |       else | 
 | 19756 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 19757 | 	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] | 19758 | 	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~ | 
 | 19759 | 	$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' | 
 | 19760 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19761 | 	# Both c and cxx compiler support -rpath directly | 
 | 19762 | 	hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
 | 19763 |       fi | 
 | 19764 |       hardcode_libdir_separator_F77=: | 
 | 19765 |       ;; | 
 | 19766 |  | 
 | 19767 |     sco3.2v5*) | 
 | 19768 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19769 |       hardcode_shlibpath_var_F77=no | 
 | 19770 |       export_dynamic_flag_spec_F77='${wl}-Bexport' | 
 | 19771 |       runpath_var=LD_RUN_PATH | 
 | 19772 |       hardcode_runpath_var=yes | 
 | 19773 |       ;; | 
 | 19774 |  | 
 | 19775 |     solaris*) | 
 | 19776 |       no_undefined_flag_F77=' -z text' | 
 | 19777 |       if test "$GCC" = yes; then | 
 | 19778 | 	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] | 19779 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 19780 | 	  $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] | 19781 |       else | 
 | 19782 | 	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] | 19783 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 19784 |   	$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] | 19785 |       fi | 
 | 19786 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 19787 |       hardcode_shlibpath_var_F77=no | 
 | 19788 |       case $host_os in | 
 | 19789 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 19790 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 19791 | 	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
 | 19792 |       esac | 
 | 19793 |       link_all_deplibs_F77=yes | 
 | 19794 |       ;; | 
 | 19795 |  | 
 | 19796 |     sunos4*) | 
 | 19797 |       if test "x$host_vendor" = xsequent; then | 
 | 19798 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 19799 | 	# files that make .init and .fini sections work. | 
 | 19800 | 	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19801 |       else | 
 | 19802 | 	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 19803 |       fi | 
 | 19804 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19805 |       hardcode_direct_F77=yes | 
 | 19806 |       hardcode_minus_L_F77=yes | 
 | 19807 |       hardcode_shlibpath_var_F77=no | 
 | 19808 |       ;; | 
 | 19809 |  | 
 | 19810 |     sysv4) | 
 | 19811 |       case $host_vendor in | 
 | 19812 | 	sni) | 
 | 19813 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19814 | 	  hardcode_direct_F77=yes # is this really true??? | 
 | 19815 | 	;; | 
 | 19816 | 	siemens) | 
 | 19817 | 	  ## LD is ld it makes a PLAMLIB | 
 | 19818 | 	  ## CC just makes a GrossModule. | 
 | 19819 | 	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 19820 | 	  reload_cmds_F77='$CC -r -o $output$reload_objs' | 
 | 19821 | 	  hardcode_direct_F77=no | 
 | 19822 |         ;; | 
 | 19823 | 	motorola) | 
 | 19824 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19825 | 	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
 | 19826 | 	;; | 
 | 19827 |       esac | 
 | 19828 |       runpath_var='LD_RUN_PATH' | 
 | 19829 |       hardcode_shlibpath_var_F77=no | 
 | 19830 |       ;; | 
 | 19831 |  | 
 | 19832 |     sysv4.3*) | 
 | 19833 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19834 |       hardcode_shlibpath_var_F77=no | 
 | 19835 |       export_dynamic_flag_spec_F77='-Bexport' | 
 | 19836 |       ;; | 
 | 19837 |  | 
 | 19838 |     sysv4*MP*) | 
 | 19839 |       if test -d /usr/nec; then | 
 | 19840 | 	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19841 | 	hardcode_shlibpath_var_F77=no | 
 | 19842 | 	runpath_var=LD_RUN_PATH | 
 | 19843 | 	hardcode_runpath_var=yes | 
 | 19844 | 	ld_shlibs_F77=yes | 
 | 19845 |       fi | 
 | 19846 |       ;; | 
 | 19847 |  | 
 | 19848 |     sysv4.2uw2*) | 
 | 19849 |       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 19850 |       hardcode_direct_F77=yes | 
 | 19851 |       hardcode_minus_L_F77=no | 
 | 19852 |       hardcode_shlibpath_var_F77=no | 
 | 19853 |       hardcode_runpath_var=yes | 
 | 19854 |       runpath_var=LD_RUN_PATH | 
 | 19855 |       ;; | 
 | 19856 |  | 
 | 19857 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 19858 |       no_undefined_flag_F77='${wl}-z ${wl}text' | 
 | 19859 |       if test "$GCC" = yes; then | 
 | 19860 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19861 |       else | 
 | 19862 | 	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19863 |       fi | 
 | 19864 |       runpath_var='LD_RUN_PATH' | 
 | 19865 |       hardcode_shlibpath_var_F77=no | 
 | 19866 |       ;; | 
 | 19867 |  | 
 | 19868 |     sysv5*) | 
 | 19869 |       no_undefined_flag_F77=' -z text' | 
 | 19870 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 19871 |       # object files and a static libstdc++, better avoid it by now | 
 | 19872 |       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] | 19873 |       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 19874 |   		$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] | 19875 |       hardcode_libdir_flag_spec_F77= | 
 | 19876 |       hardcode_shlibpath_var_F77=no | 
 | 19877 |       runpath_var='LD_RUN_PATH' | 
 | 19878 |       ;; | 
 | 19879 |  | 
 | 19880 |     uts4*) | 
 | 19881 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 19882 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 19883 |       hardcode_shlibpath_var_F77=no | 
 | 19884 |       ;; | 
 | 19885 |  | 
 | 19886 |     *) | 
 | 19887 |       ld_shlibs_F77=no | 
 | 19888 |       ;; | 
 | 19889 |     esac | 
 | 19890 |   fi | 
 | 19891 |  | 
 | 19892 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
 | 19893 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 
 | 19894 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 19895 |  | 
 | 19896 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 19897 | if test "$GCC" = yes; then | 
 | 19898 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 19899 | fi | 
 | 19900 |  | 
 | 19901 | # | 
 | 19902 | # Do we need to explicitly link libc? | 
 | 19903 | # | 
 | 19904 | case "x$archive_cmds_need_lc_F77" in | 
 | 19905 | x|xyes) | 
 | 19906 |   # Assume -lc should be added | 
 | 19907 |   archive_cmds_need_lc_F77=yes | 
 | 19908 |  | 
 | 19909 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 19910 |     case $archive_cmds_F77 in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19911 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19912 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 19913 |       ;; | 
 | 19914 |     '$CC '*) | 
 | 19915 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 19916 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 19917 |       # to ld, don't add -lc before -lgcc. | 
 | 19918 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 19919 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 19920 |       $rm conftest* | 
 | 19921 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 19922 |  | 
 | 19923 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19924 |   (eval $ac_compile) 2>&5 | 
 | 19925 |   ac_status=$? | 
 | 19926 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19927 |   (exit $ac_status); } 2>conftest.err; then | 
 | 19928 |         soname=conftest | 
 | 19929 |         lib=conftest | 
 | 19930 |         libobjs=conftest.$ac_objext | 
 | 19931 |         deplibs= | 
 | 19932 |         wl=$lt_prog_compiler_wl_F77 | 
 | 19933 |         compiler_flags=-v | 
 | 19934 |         linker_flags=-v | 
 | 19935 |         verstring= | 
 | 19936 |         output_objdir=. | 
 | 19937 |         libname=conftest | 
 | 19938 |         lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
 | 19939 |         allow_undefined_flag_F77= | 
 | 19940 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 19941 |   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 19942 |   ac_status=$? | 
 | 19943 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19944 |   (exit $ac_status); } | 
 | 19945 |         then | 
 | 19946 | 	  archive_cmds_need_lc_F77=no | 
 | 19947 |         else | 
 | 19948 | 	  archive_cmds_need_lc_F77=yes | 
 | 19949 |         fi | 
 | 19950 |         allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
 | 19951 |       else | 
 | 19952 |         cat conftest.err 1>&5 | 
 | 19953 |       fi | 
 | 19954 |       $rm conftest* | 
 | 19955 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
 | 19956 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 
 | 19957 |       ;; | 
 | 19958 |     esac | 
 | 19959 |   fi | 
 | 19960 |   ;; | 
 | 19961 | esac | 
 | 19962 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19963 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 19964 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 19965 | library_names_spec= | 
 | 19966 | libname_spec='lib$name' | 
 | 19967 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19968 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19969 | postinstall_cmds= | 
 | 19970 | postuninstall_cmds= | 
 | 19971 | finish_cmds= | 
 | 19972 | finish_eval= | 
 | 19973 | shlibpath_var= | 
 | 19974 | shlibpath_overrides_runpath=unknown | 
 | 19975 | version_type=none | 
 | 19976 | dynamic_linker="$host_os ld.so" | 
 | 19977 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 19978 | if test "$GCC" = yes; then | 
 | 19979 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 19980 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 19981 |     # if the path contains ";" then we assume it to be the separator | 
 | 19982 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 19983 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 19984 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 19985 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 19986 |   else | 
 | 19987 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 19988 |   fi | 
 | 19989 | else | 
 | 19990 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 19991 | fi | 
 | 19992 | need_lib_prefix=unknown | 
 | 19993 | hardcode_into_libs=no | 
 | 19994 |  | 
 | 19995 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 19996 | # flags to be left without arguments | 
 | 19997 | need_version=unknown | 
 | 19998 |  | 
 | 19999 | case $host_os in | 
 | 20000 | aix3*) | 
 | 20001 |   version_type=linux | 
 | 20002 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 20003 |   shlibpath_var=LIBPATH | 
 | 20004 |  | 
 | 20005 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 20006 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20007 |   ;; | 
 | 20008 |  | 
 | 20009 | aix4* | aix5*) | 
 | 20010 |   version_type=linux | 
 | 20011 |   need_lib_prefix=no | 
 | 20012 |   need_version=no | 
 | 20013 |   hardcode_into_libs=yes | 
 | 20014 |   if test "$host_cpu" = ia64; then | 
 | 20015 |     # AIX 5 supports IA64 | 
 | 20016 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 20017 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 20018 |   else | 
 | 20019 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 20020 |     # for dependence libraries.  The import file would start with | 
 | 20021 |     # the line `#! .'.  This would cause the generated library to | 
 | 20022 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 20023 |     # development snapshots of GCC prior to 3.0. | 
 | 20024 |     case $host_os in | 
 | 20025 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 20026 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 20027 | 	   echo ' yes ' | 
 | 20028 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 20029 | 	: | 
 | 20030 |       else | 
 | 20031 | 	can_build_shared=no | 
 | 20032 |       fi | 
 | 20033 |       ;; | 
 | 20034 |     esac | 
 | 20035 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 20036 |     # soname into executable. Probably we can add versioning support to | 
 | 20037 |     # collect2, so additional links can be useful in future. | 
 | 20038 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 20039 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 20040 |       # instead of lib<name>.a to let people know that these are not | 
 | 20041 |       # typical AIX shared libraries. | 
 | 20042 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20043 |     else | 
 | 20044 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 20045 |       # and later when we are not doing run time linking. | 
 | 20046 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 20047 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20048 |     fi | 
 | 20049 |     shlibpath_var=LIBPATH | 
 | 20050 |   fi | 
 | 20051 |   ;; | 
 | 20052 |  | 
 | 20053 | amigaos*) | 
 | 20054 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 20055 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20056 |   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] | 20057 |   ;; | 
 | 20058 |  | 
 | 20059 | beos*) | 
 | 20060 |   library_names_spec='${libname}${shared_ext}' | 
 | 20061 |   dynamic_linker="$host_os ld.so" | 
 | 20062 |   shlibpath_var=LIBRARY_PATH | 
 | 20063 |   ;; | 
 | 20064 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20065 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20066 |   version_type=linux | 
 | 20067 |   need_version=no | 
 | 20068 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20069 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20070 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 20071 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20072 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 20073 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 20074 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 20075 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 20076 |   # libtool to hard-code these into programs | 
 | 20077 |   ;; | 
 | 20078 |  | 
 | 20079 | cygwin* | mingw* | pw32*) | 
 | 20080 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20081 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20082 |   need_version=no | 
 | 20083 |   need_lib_prefix=no | 
 | 20084 |  | 
 | 20085 |   case $GCC,$host_os in | 
 | 20086 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 20087 |     library_names_spec='$libname.dll.a' | 
 | 20088 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20089 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 20090 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 20091 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 20092 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20093 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20094 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 20095 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20096 |        $rm \$dlpath' | 
 | 20097 |     shlibpath_overrides_runpath=yes | 
 | 20098 |  | 
 | 20099 |     case $host_os in | 
 | 20100 |     cygwin*) | 
 | 20101 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 20102 |       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] | 20103 |       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] | 20104 |       ;; | 
 | 20105 |     mingw*) | 
 | 20106 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 20107 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 20108 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 20109 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 20110 |         # It is most probably a Windows format PATH printed by | 
 | 20111 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 20112 |         # path with ; separators, and with drive letters. We can handle the | 
 | 20113 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 20114 |         # especially as we might pass files found there to a mingw objdump, | 
 | 20115 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 20116 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 20117 |       else | 
 | 20118 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 20119 |       fi | 
 | 20120 |       ;; | 
 | 20121 |     pw32*) | 
 | 20122 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 20123 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 20124 |       ;; | 
 | 20125 |     esac | 
 | 20126 |     ;; | 
 | 20127 |  | 
 | 20128 |   *) | 
 | 20129 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 20130 |     ;; | 
 | 20131 |   esac | 
 | 20132 |   dynamic_linker='Win32 ld.exe' | 
 | 20133 |   # FIXME: first we should search . and the directory the executable is in | 
 | 20134 |   shlibpath_var=PATH | 
 | 20135 |   ;; | 
 | 20136 |  | 
 | 20137 | darwin* | rhapsody*) | 
 | 20138 |   dynamic_linker="$host_os dyld" | 
 | 20139 |   version_type=darwin | 
 | 20140 |   need_lib_prefix=no | 
 | 20141 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20142 |   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] | 20143 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 20144 |   shlibpath_overrides_runpath=yes | 
 | 20145 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20146 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20147 |   # 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] | 20148 |   if test "$GCC" = yes; then | 
 | 20149 |     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"` | 
 | 20150 |   else | 
 | 20151 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20152 |   fi | 
 | 20153 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 20154 |   ;; | 
 | 20155 |  | 
 | 20156 | dgux*) | 
 | 20157 |   version_type=linux | 
 | 20158 |   need_lib_prefix=no | 
 | 20159 |   need_version=no | 
 | 20160 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 20161 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20162 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20163 |   ;; | 
 | 20164 |  | 
 | 20165 | freebsd1*) | 
 | 20166 |   dynamic_linker=no | 
 | 20167 |   ;; | 
 | 20168 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20169 | kfreebsd*-gnu) | 
 | 20170 |   version_type=linux | 
 | 20171 |   need_lib_prefix=no | 
 | 20172 |   need_version=no | 
 | 20173 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 20174 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20175 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20176 |   shlibpath_overrides_runpath=no | 
 | 20177 |   hardcode_into_libs=yes | 
 | 20178 |   dynamic_linker='GNU ld.so' | 
 | 20179 |   ;; | 
 | 20180 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20181 | freebsd*) | 
 | 20182 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 20183 |   version_type=freebsd-$objformat | 
 | 20184 |   case $version_type in | 
 | 20185 |     freebsd-elf*) | 
 | 20186 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 20187 |       need_version=no | 
 | 20188 |       need_lib_prefix=no | 
 | 20189 |       ;; | 
 | 20190 |     freebsd-*) | 
 | 20191 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 20192 |       need_version=yes | 
 | 20193 |       ;; | 
 | 20194 |   esac | 
 | 20195 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20196 |   case $host_os in | 
 | 20197 |   freebsd2*) | 
 | 20198 |     shlibpath_overrides_runpath=yes | 
 | 20199 |     ;; | 
 | 20200 |   freebsd3.01* | freebsdelf3.01*) | 
 | 20201 |     shlibpath_overrides_runpath=yes | 
 | 20202 |     hardcode_into_libs=yes | 
 | 20203 |     ;; | 
 | 20204 |   *) # from 3.2 on | 
 | 20205 |     shlibpath_overrides_runpath=no | 
 | 20206 |     hardcode_into_libs=yes | 
 | 20207 |     ;; | 
 | 20208 |   esac | 
 | 20209 |   ;; | 
 | 20210 |  | 
 | 20211 | gnu*) | 
 | 20212 |   version_type=linux | 
 | 20213 |   need_lib_prefix=no | 
 | 20214 |   need_version=no | 
 | 20215 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 20216 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20217 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20218 |   hardcode_into_libs=yes | 
 | 20219 |   ;; | 
 | 20220 |  | 
 | 20221 | hpux9* | hpux10* | hpux11*) | 
 | 20222 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 20223 |   # link against other versions. | 
 | 20224 |   version_type=sunos | 
 | 20225 |   need_lib_prefix=no | 
 | 20226 |   need_version=no | 
 | 20227 |   case "$host_cpu" in | 
 | 20228 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20229 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20230 |     hardcode_into_libs=yes | 
 | 20231 |     dynamic_linker="$host_os dld.so" | 
 | 20232 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 20233 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 20234 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20235 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20236 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 20237 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 20238 |     else | 
 | 20239 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 20240 |     fi | 
 | 20241 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 20242 |     ;; | 
 | 20243 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20244 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20245 |      hardcode_into_libs=yes | 
 | 20246 |      dynamic_linker="$host_os dld.sl" | 
 | 20247 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 20248 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 20249 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20250 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20251 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 20252 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 20253 |      ;; | 
 | 20254 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20255 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20256 |     dynamic_linker="$host_os dld.sl" | 
 | 20257 |     shlibpath_var=SHLIB_PATH | 
 | 20258 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 20259 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20260 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20261 |     ;; | 
 | 20262 |   esac | 
 | 20263 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 20264 |   postinstall_cmds='chmod 555 $lib' | 
 | 20265 |   ;; | 
 | 20266 |  | 
 | 20267 | irix5* | irix6* | nonstopux*) | 
 | 20268 |   case $host_os in | 
 | 20269 |     nonstopux*) version_type=nonstopux ;; | 
 | 20270 |     *) | 
 | 20271 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 20272 | 		version_type=linux | 
 | 20273 | 	else | 
 | 20274 | 		version_type=irix | 
 | 20275 | 	fi ;; | 
 | 20276 |   esac | 
 | 20277 |   need_lib_prefix=no | 
 | 20278 |   need_version=no | 
 | 20279 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20280 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 20281 |   case $host_os in | 
 | 20282 |   irix5* | nonstopux*) | 
 | 20283 |     libsuff= shlibsuff= | 
 | 20284 |     ;; | 
 | 20285 |   *) | 
 | 20286 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 20287 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 20288 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 20289 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 20290 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 20291 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 20292 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 20293 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 20294 |     esac | 
 | 20295 |     ;; | 
 | 20296 |   esac | 
 | 20297 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 20298 |   shlibpath_overrides_runpath=no | 
 | 20299 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 20300 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 20301 |   hardcode_into_libs=yes | 
 | 20302 |   ;; | 
 | 20303 |  | 
 | 20304 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 20305 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 20306 |   dynamic_linker=no | 
 | 20307 |   ;; | 
 | 20308 |  | 
 | 20309 | # This must be Linux ELF. | 
 | 20310 | linux*) | 
 | 20311 |   version_type=linux | 
 | 20312 |   need_lib_prefix=no | 
 | 20313 |   need_version=no | 
 | 20314 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20315 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20316 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 20317 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20318 |   shlibpath_overrides_runpath=no | 
 | 20319 |   # This implies no fast_install, which is unacceptable. | 
 | 20320 |   # Some rework will be needed to allow for fast_install | 
 | 20321 |   # before this can be enabled. | 
 | 20322 |   hardcode_into_libs=yes | 
 | 20323 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20324 |   # Append ld.so.conf contents to the search path | 
 | 20325 |   if test -f /etc/ld.so.conf; then | 
 | 20326 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 20327 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 20328 |   fi | 
 | 20329 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20330 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 20331 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 20332 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 20333 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 20334 |   # people can always --disable-shared, the test was removed, and we | 
 | 20335 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 20336 |   dynamic_linker='GNU/Linux ld.so' | 
 | 20337 |   ;; | 
 | 20338 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20339 | knetbsd*-gnu) | 
 | 20340 |   version_type=linux | 
 | 20341 |   need_lib_prefix=no | 
 | 20342 |   need_version=no | 
 | 20343 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 20344 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20345 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20346 |   shlibpath_overrides_runpath=no | 
 | 20347 |   hardcode_into_libs=yes | 
 | 20348 |   dynamic_linker='GNU ld.so' | 
 | 20349 |   ;; | 
 | 20350 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20351 | netbsd*) | 
 | 20352 |   version_type=sunos | 
 | 20353 |   need_lib_prefix=no | 
 | 20354 |   need_version=no | 
 | 20355 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 20356 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 20357 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 20358 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 20359 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20360 |     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] | 20361 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20362 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 20363 |   fi | 
 | 20364 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20365 |   shlibpath_overrides_runpath=yes | 
 | 20366 |   hardcode_into_libs=yes | 
 | 20367 |   ;; | 
 | 20368 |  | 
 | 20369 | newsos6) | 
 | 20370 |   version_type=linux | 
 | 20371 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20372 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20373 |   shlibpath_overrides_runpath=yes | 
 | 20374 |   ;; | 
 | 20375 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20376 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20377 |   version_type=linux | 
 | 20378 |   need_lib_prefix=no | 
 | 20379 |   need_version=no | 
 | 20380 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20381 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20382 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20383 |   shlibpath_overrides_runpath=yes | 
 | 20384 |   ;; | 
 | 20385 |  | 
 | 20386 | openbsd*) | 
 | 20387 |   version_type=sunos | 
 | 20388 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 20389 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20390 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 20391 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 20392 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20393 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 20394 |     case $host_os in | 
 | 20395 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 20396 | 	shlibpath_overrides_runpath=no | 
 | 20397 | 	;; | 
 | 20398 |       *) | 
 | 20399 | 	shlibpath_overrides_runpath=yes | 
 | 20400 | 	;; | 
 | 20401 |       esac | 
 | 20402 |   else | 
 | 20403 |     shlibpath_overrides_runpath=yes | 
 | 20404 |   fi | 
 | 20405 |   ;; | 
 | 20406 |  | 
 | 20407 | os2*) | 
 | 20408 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20409 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20410 |   need_lib_prefix=no | 
 | 20411 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 20412 |   dynamic_linker='OS/2 ld.exe' | 
 | 20413 |   shlibpath_var=LIBPATH | 
 | 20414 |   ;; | 
 | 20415 |  | 
 | 20416 | osf3* | osf4* | osf5*) | 
 | 20417 |   version_type=osf | 
 | 20418 |   need_lib_prefix=no | 
 | 20419 |   need_version=no | 
 | 20420 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20421 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20422 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20423 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 20424 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 20425 |   ;; | 
 | 20426 |  | 
 | 20427 | sco3.2v5*) | 
 | 20428 |   version_type=osf | 
 | 20429 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20430 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20431 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20432 |   ;; | 
 | 20433 |  | 
 | 20434 | solaris*) | 
 | 20435 |   version_type=linux | 
 | 20436 |   need_lib_prefix=no | 
 | 20437 |   need_version=no | 
 | 20438 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20439 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20440 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20441 |   shlibpath_overrides_runpath=yes | 
 | 20442 |   hardcode_into_libs=yes | 
 | 20443 |   # ldd complains unless libraries are executable | 
 | 20444 |   postinstall_cmds='chmod +x $lib' | 
 | 20445 |   ;; | 
 | 20446 |  | 
 | 20447 | sunos4*) | 
 | 20448 |   version_type=sunos | 
 | 20449 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 20450 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 20451 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20452 |   shlibpath_overrides_runpath=yes | 
 | 20453 |   if test "$with_gnu_ld" = yes; then | 
 | 20454 |     need_lib_prefix=no | 
 | 20455 |   fi | 
 | 20456 |   need_version=yes | 
 | 20457 |   ;; | 
 | 20458 |  | 
 | 20459 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 20460 |   version_type=linux | 
 | 20461 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20462 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20463 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20464 |   case $host_vendor in | 
 | 20465 |     sni) | 
 | 20466 |       shlibpath_overrides_runpath=no | 
 | 20467 |       need_lib_prefix=no | 
 | 20468 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 20469 |       runpath_var=LD_RUN_PATH | 
 | 20470 |       ;; | 
 | 20471 |     siemens) | 
 | 20472 |       need_lib_prefix=no | 
 | 20473 |       ;; | 
 | 20474 |     motorola) | 
 | 20475 |       need_lib_prefix=no | 
 | 20476 |       need_version=no | 
 | 20477 |       shlibpath_overrides_runpath=no | 
 | 20478 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 20479 |       ;; | 
 | 20480 |   esac | 
 | 20481 |   ;; | 
 | 20482 |  | 
 | 20483 | sysv4*MP*) | 
 | 20484 |   if test -d /usr/nec ;then | 
 | 20485 |     version_type=linux | 
 | 20486 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 20487 |     soname_spec='$libname${shared_ext}.$major' | 
 | 20488 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 20489 |   fi | 
 | 20490 |   ;; | 
 | 20491 |  | 
 | 20492 | uts4*) | 
 | 20493 |   version_type=linux | 
 | 20494 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20495 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20496 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20497 |   ;; | 
 | 20498 |  | 
 | 20499 | *) | 
 | 20500 |   dynamic_linker=no | 
 | 20501 |   ;; | 
 | 20502 | esac | 
 | 20503 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 20504 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 20505 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 20506 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20507 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 20508 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 20509 | hardcode_action_F77= | 
 | 20510 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
 | 20511 |    test -n "$runpath_var_F77" || \ | 
 | 20512 |    test "X$hardcode_automatic_F77" = "Xyes" ; then | 
 | 20513 |  | 
 | 20514 |   # We can hardcode non-existant directories. | 
 | 20515 |   if test "$hardcode_direct_F77" != no && | 
 | 20516 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 20517 |      # have to relink, otherwise we might link with an installed library | 
 | 20518 |      # when we should be linking with a yet-to-be-installed one | 
 | 20519 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
 | 20520 |      test "$hardcode_minus_L_F77" != no; then | 
 | 20521 |     # Linking always hardcodes the temporary library directory. | 
 | 20522 |     hardcode_action_F77=relink | 
 | 20523 |   else | 
 | 20524 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 20525 |     hardcode_action_F77=immediate | 
 | 20526 |   fi | 
 | 20527 | else | 
 | 20528 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 20529 |   # directories. | 
 | 20530 |   hardcode_action_F77=unsupported | 
 | 20531 | fi | 
 | 20532 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
 | 20533 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 
 | 20534 |  | 
 | 20535 | if test "$hardcode_action_F77" = relink; then | 
 | 20536 |   # Fast installation is not supported | 
 | 20537 |   enable_fast_install=no | 
 | 20538 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 20539 |      test "$enable_shared" = no; then | 
 | 20540 |   # Fast installation is not necessary | 
 | 20541 |   enable_fast_install=needless | 
 | 20542 | fi | 
 | 20543 |  | 
 | 20544 | striplib= | 
 | 20545 | old_striplib= | 
 | 20546 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 20547 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 20548 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 20549 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 20550 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 20551 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 20552 | echo "${ECHO_T}yes" >&6 | 
 | 20553 | else | 
 | 20554 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 20555 |   case $host_os in | 
 | 20556 |    darwin*) | 
 | 20557 |        if test -n "$STRIP" ; then | 
 | 20558 |          striplib="$STRIP -x" | 
 | 20559 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 20560 | echo "${ECHO_T}yes" >&6 | 
 | 20561 |        else | 
 | 20562 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 20563 | echo "${ECHO_T}no" >&6 | 
 | 20564 | fi | 
 | 20565 |        ;; | 
 | 20566 |    *) | 
 | 20567 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 20568 | echo "${ECHO_T}no" >&6 | 
 | 20569 |     ;; | 
 | 20570 |   esac | 
 | 20571 | fi | 
 | 20572 |  | 
 | 20573 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20574 |  | 
 | 20575 | # The else clause should only fire when bootstrapping the | 
 | 20576 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 20577 | # with your package, and you will get complaints that there are | 
 | 20578 | # no rules to generate ltmain.sh. | 
 | 20579 | if test -f "$ltmain"; then | 
 | 20580 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 20581 |   # without removal of \ escapes. | 
 | 20582 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 20583 |     setopt NO_GLOB_SUBST | 
 | 20584 |   fi | 
 | 20585 |   # Now quote all the things that may contain metacharacters while being | 
 | 20586 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 20587 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20588 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 20589 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20590 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 20591 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 20592 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 20593 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 20594 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 20595 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 20596 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 20597 |     compiler_F77 \ | 
 | 20598 |     CC_F77 \ | 
 | 20599 |     LD_F77 \ | 
 | 20600 |     lt_prog_compiler_wl_F77 \ | 
 | 20601 |     lt_prog_compiler_pic_F77 \ | 
 | 20602 |     lt_prog_compiler_static_F77 \ | 
 | 20603 |     lt_prog_compiler_no_builtin_flag_F77 \ | 
 | 20604 |     export_dynamic_flag_spec_F77 \ | 
 | 20605 |     thread_safe_flag_spec_F77 \ | 
 | 20606 |     whole_archive_flag_spec_F77 \ | 
 | 20607 |     enable_shared_with_static_runtimes_F77 \ | 
 | 20608 |     old_archive_cmds_F77 \ | 
 | 20609 |     old_archive_from_new_cmds_F77 \ | 
 | 20610 |     predep_objects_F77 \ | 
 | 20611 |     postdep_objects_F77 \ | 
 | 20612 |     predeps_F77 \ | 
 | 20613 |     postdeps_F77 \ | 
 | 20614 |     compiler_lib_search_path_F77 \ | 
 | 20615 |     archive_cmds_F77 \ | 
 | 20616 |     archive_expsym_cmds_F77 \ | 
 | 20617 |     postinstall_cmds_F77 \ | 
 | 20618 |     postuninstall_cmds_F77 \ | 
 | 20619 |     old_archive_from_expsyms_cmds_F77 \ | 
 | 20620 |     allow_undefined_flag_F77 \ | 
 | 20621 |     no_undefined_flag_F77 \ | 
 | 20622 |     export_symbols_cmds_F77 \ | 
 | 20623 |     hardcode_libdir_flag_spec_F77 \ | 
 | 20624 |     hardcode_libdir_flag_spec_ld_F77 \ | 
 | 20625 |     hardcode_libdir_separator_F77 \ | 
 | 20626 |     hardcode_automatic_F77 \ | 
 | 20627 |     module_cmds_F77 \ | 
 | 20628 |     module_expsym_cmds_F77 \ | 
 | 20629 |     lt_cv_prog_compiler_c_o_F77 \ | 
 | 20630 |     exclude_expsyms_F77 \ | 
 | 20631 |     include_expsyms_F77; do | 
 | 20632 |  | 
 | 20633 |     case $var in | 
 | 20634 |     old_archive_cmds_F77 | \ | 
 | 20635 |     old_archive_from_new_cmds_F77 | \ | 
 | 20636 |     archive_cmds_F77 | \ | 
 | 20637 |     archive_expsym_cmds_F77 | \ | 
 | 20638 |     module_cmds_F77 | \ | 
 | 20639 |     module_expsym_cmds_F77 | \ | 
 | 20640 |     old_archive_from_expsyms_cmds_F77 | \ | 
 | 20641 |     export_symbols_cmds_F77 | \ | 
 | 20642 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 20643 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 20644 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 20645 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 20646 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20647 |       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] | 20648 |       ;; | 
 | 20649 |     *) | 
 | 20650 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 20651 |       ;; | 
 | 20652 |     esac | 
 | 20653 |   done | 
 | 20654 |  | 
 | 20655 |   case $lt_echo in | 
 | 20656 |   *'\$0 --fallback-echo"') | 
 | 20657 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 20658 |     ;; | 
 | 20659 |   esac | 
 | 20660 |  | 
 | 20661 | cfgfile="$ofile" | 
 | 20662 |  | 
 | 20663 |   cat <<__EOF__ >> "$cfgfile" | 
 | 20664 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 20665 |  | 
 | 20666 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 20667 |  | 
 | 20668 | # Shell to use when invoking shell scripts. | 
 | 20669 | SHELL=$lt_SHELL | 
 | 20670 |  | 
 | 20671 | # Whether or not to build shared libraries. | 
 | 20672 | build_libtool_libs=$enable_shared | 
 | 20673 |  | 
 | 20674 | # Whether or not to build static libraries. | 
 | 20675 | build_old_libs=$enable_static | 
 | 20676 |  | 
 | 20677 | # Whether or not to add -lc for building shared libraries. | 
 | 20678 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
 | 20679 |  | 
 | 20680 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 20681 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
 | 20682 |  | 
 | 20683 | # Whether or not to optimize for fast installation. | 
 | 20684 | fast_install=$enable_fast_install | 
 | 20685 |  | 
 | 20686 | # The host system. | 
 | 20687 | host_alias=$host_alias | 
 | 20688 | host=$host | 
 | 20689 |  | 
 | 20690 | # An echo program that does not interpret backslashes. | 
 | 20691 | echo=$lt_echo | 
 | 20692 |  | 
 | 20693 | # The archiver. | 
 | 20694 | AR=$lt_AR | 
 | 20695 | AR_FLAGS=$lt_AR_FLAGS | 
 | 20696 |  | 
 | 20697 | # A C compiler. | 
 | 20698 | LTCC=$lt_LTCC | 
 | 20699 |  | 
 | 20700 | # A language-specific compiler. | 
 | 20701 | CC=$lt_compiler_F77 | 
 | 20702 |  | 
 | 20703 | # Is the compiler the GNU C compiler? | 
 | 20704 | with_gcc=$GCC_F77 | 
 | 20705 |  | 
 | 20706 | # An ERE matcher. | 
 | 20707 | EGREP=$lt_EGREP | 
 | 20708 |  | 
 | 20709 | # The linker used to build libraries. | 
 | 20710 | LD=$lt_LD_F77 | 
 | 20711 |  | 
 | 20712 | # Whether we need hard or soft links. | 
 | 20713 | LN_S=$lt_LN_S | 
 | 20714 |  | 
 | 20715 | # A BSD-compatible nm program. | 
 | 20716 | NM=$lt_NM | 
 | 20717 |  | 
 | 20718 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20719 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20720 |  | 
 | 20721 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 20722 | MAGIC_CMD=$MAGIC_CMD | 
 | 20723 |  | 
 | 20724 | # Used on cygwin: DLL creation program. | 
 | 20725 | DLLTOOL="$DLLTOOL" | 
 | 20726 |  | 
 | 20727 | # Used on cygwin: object dumper. | 
 | 20728 | OBJDUMP="$OBJDUMP" | 
 | 20729 |  | 
 | 20730 | # Used on cygwin: assembler. | 
 | 20731 | AS="$AS" | 
 | 20732 |  | 
 | 20733 | # The name of the directory that contains temporary libtool files. | 
 | 20734 | objdir=$objdir | 
 | 20735 |  | 
 | 20736 | # How to create reloadable object files. | 
 | 20737 | reload_flag=$lt_reload_flag | 
 | 20738 | reload_cmds=$lt_reload_cmds | 
 | 20739 |  | 
 | 20740 | # How to pass a linker flag through the compiler. | 
 | 20741 | wl=$lt_lt_prog_compiler_wl_F77 | 
 | 20742 |  | 
 | 20743 | # Object file suffix (normally "o"). | 
 | 20744 | objext="$ac_objext" | 
 | 20745 |  | 
 | 20746 | # Old archive suffix (normally "a"). | 
 | 20747 | libext="$libext" | 
 | 20748 |  | 
 | 20749 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20750 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20751 |  | 
 | 20752 | # Executable file suffix (normally ""). | 
 | 20753 | exeext="$exeext" | 
 | 20754 |  | 
 | 20755 | # Additional compiler flags for building library objects. | 
 | 20756 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
 | 20757 | pic_mode=$pic_mode | 
 | 20758 |  | 
 | 20759 | # What is the maximum length of a command? | 
 | 20760 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 20761 |  | 
 | 20762 | # Does compiler simultaneously support -c and -o options? | 
 | 20763 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
 | 20764 |  | 
 | 20765 | # Must we lock files when doing compilation ? | 
 | 20766 | need_locks=$lt_need_locks | 
 | 20767 |  | 
 | 20768 | # Do we need the lib prefix for modules? | 
 | 20769 | need_lib_prefix=$need_lib_prefix | 
 | 20770 |  | 
 | 20771 | # Do we need a version for libraries? | 
 | 20772 | need_version=$need_version | 
 | 20773 |  | 
 | 20774 | # Whether dlopen is supported. | 
 | 20775 | dlopen_support=$enable_dlopen | 
 | 20776 |  | 
 | 20777 | # Whether dlopen of programs is supported. | 
 | 20778 | dlopen_self=$enable_dlopen_self | 
 | 20779 |  | 
 | 20780 | # Whether dlopen of statically linked programs is supported. | 
 | 20781 | dlopen_self_static=$enable_dlopen_self_static | 
 | 20782 |  | 
 | 20783 | # Compiler flag to prevent dynamic linking. | 
 | 20784 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
 | 20785 |  | 
 | 20786 | # Compiler flag to turn off builtin functions. | 
 | 20787 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
 | 20788 |  | 
 | 20789 | # Compiler flag to allow reflexive dlopens. | 
 | 20790 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
 | 20791 |  | 
 | 20792 | # Compiler flag to generate shared objects directly from archives. | 
 | 20793 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
 | 20794 |  | 
 | 20795 | # Compiler flag to generate thread-safe objects. | 
 | 20796 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
 | 20797 |  | 
 | 20798 | # Library versioning type. | 
 | 20799 | version_type=$version_type | 
 | 20800 |  | 
 | 20801 | # Format of library name prefix. | 
 | 20802 | libname_spec=$lt_libname_spec | 
 | 20803 |  | 
 | 20804 | # List of archive names.  First name is the real one, the rest are links. | 
 | 20805 | # The last name is the one that the linker finds with -lNAME. | 
 | 20806 | library_names_spec=$lt_library_names_spec | 
 | 20807 |  | 
 | 20808 | # The coded name of the library, if different from the real name. | 
 | 20809 | soname_spec=$lt_soname_spec | 
 | 20810 |  | 
 | 20811 | # Commands used to build and install an old-style archive. | 
 | 20812 | RANLIB=$lt_RANLIB | 
 | 20813 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
 | 20814 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 20815 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 20816 |  | 
 | 20817 | # Create an old-style archive from a shared archive. | 
 | 20818 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
 | 20819 |  | 
 | 20820 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 20821 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
 | 20822 |  | 
 | 20823 | # Commands used to build and install a shared archive. | 
 | 20824 | archive_cmds=$lt_archive_cmds_F77 | 
 | 20825 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
 | 20826 | postinstall_cmds=$lt_postinstall_cmds | 
 | 20827 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 20828 |  | 
 | 20829 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 20830 | module_cmds=$lt_module_cmds_F77 | 
 | 20831 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
 | 20832 |  | 
 | 20833 | # Commands to strip libraries. | 
 | 20834 | old_striplib=$lt_old_striplib | 
 | 20835 | striplib=$lt_striplib | 
 | 20836 |  | 
 | 20837 | # Dependencies to place before the objects being linked to create a | 
 | 20838 | # shared library. | 
 | 20839 | predep_objects=$lt_predep_objects_F77 | 
 | 20840 |  | 
 | 20841 | # Dependencies to place after the objects being linked to create a | 
 | 20842 | # shared library. | 
 | 20843 | postdep_objects=$lt_postdep_objects_F77 | 
 | 20844 |  | 
 | 20845 | # Dependencies to place before the objects being linked to create a | 
 | 20846 | # shared library. | 
 | 20847 | predeps=$lt_predeps_F77 | 
 | 20848 |  | 
 | 20849 | # Dependencies to place after the objects being linked to create a | 
 | 20850 | # shared library. | 
 | 20851 | postdeps=$lt_postdeps_F77 | 
 | 20852 |  | 
 | 20853 | # The library search path used internally by the compiler when linking | 
 | 20854 | # a shared library. | 
 | 20855 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
 | 20856 |  | 
 | 20857 | # Method to check whether dependent libraries are shared objects. | 
 | 20858 | deplibs_check_method=$lt_deplibs_check_method | 
 | 20859 |  | 
 | 20860 | # Command to use when deplibs_check_method == file_magic. | 
 | 20861 | file_magic_cmd=$lt_file_magic_cmd | 
 | 20862 |  | 
 | 20863 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 20864 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
 | 20865 |  | 
 | 20866 | # Flag that forces no undefined symbols. | 
 | 20867 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
 | 20868 |  | 
 | 20869 | # Commands used to finish a libtool library installation in a directory. | 
 | 20870 | finish_cmds=$lt_finish_cmds | 
 | 20871 |  | 
 | 20872 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 20873 | finish_eval=$lt_finish_eval | 
 | 20874 |  | 
 | 20875 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 20876 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 20877 |  | 
 | 20878 | # Transform the output of nm in a proper C declaration | 
 | 20879 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 20880 |  | 
 | 20881 | # Transform the output of nm in a C name address pair | 
 | 20882 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 20883 |  | 
 | 20884 | # This is the shared library runtime path variable. | 
 | 20885 | runpath_var=$runpath_var | 
 | 20886 |  | 
 | 20887 | # This is the shared library path variable. | 
 | 20888 | shlibpath_var=$shlibpath_var | 
 | 20889 |  | 
 | 20890 | # Is shlibpath searched before the hard-coded library search path? | 
 | 20891 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 20892 |  | 
 | 20893 | # How to hardcode a shared library path into an executable. | 
 | 20894 | hardcode_action=$hardcode_action_F77 | 
 | 20895 |  | 
 | 20896 | # Whether we should hardcode library paths into libraries. | 
 | 20897 | hardcode_into_libs=$hardcode_into_libs | 
 | 20898 |  | 
 | 20899 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 20900 | # This must work even if \$libdir does not exist. | 
 | 20901 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
 | 20902 |  | 
 | 20903 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 20904 | # a binary during linking. This must work even if \$libdir does | 
 | 20905 | # not exist. | 
 | 20906 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
 | 20907 |  | 
 | 20908 | # Whether we need a single -rpath flag with a separated argument. | 
 | 20909 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
 | 20910 |  | 
 | 20911 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 20912 | # resulting binary. | 
 | 20913 | hardcode_direct=$hardcode_direct_F77 | 
 | 20914 |  | 
 | 20915 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 20916 | # resulting binary. | 
 | 20917 | hardcode_minus_L=$hardcode_minus_L_F77 | 
 | 20918 |  | 
 | 20919 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 20920 | # the resulting binary. | 
 | 20921 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
 | 20922 |  | 
 | 20923 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 20924 | # and all subsequent libraries and executables linked against it. | 
 | 20925 | hardcode_automatic=$hardcode_automatic_F77 | 
 | 20926 |  | 
 | 20927 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 20928 | # restored at relink time. | 
 | 20929 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 20930 |  | 
 | 20931 | # Whether libtool must link a program against all its dependency libraries. | 
 | 20932 | link_all_deplibs=$link_all_deplibs_F77 | 
 | 20933 |  | 
 | 20934 | # Compile-time system search path for libraries | 
 | 20935 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 20936 |  | 
 | 20937 | # Run-time system search path for libraries | 
 | 20938 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 20939 |  | 
 | 20940 | # Fix the shell variable \$srcfile for the compiler. | 
 | 20941 | fix_srcfile_path="$fix_srcfile_path_F77" | 
 | 20942 |  | 
 | 20943 | # Set to yes if exported symbols are required. | 
 | 20944 | always_export_symbols=$always_export_symbols_F77 | 
 | 20945 |  | 
 | 20946 | # The commands to list exported symbols. | 
 | 20947 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
 | 20948 |  | 
 | 20949 | # The commands to extract the exported symbol list from a shared archive. | 
 | 20950 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 20951 |  | 
 | 20952 | # Symbols that should not be listed in the preloaded symbols. | 
 | 20953 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
 | 20954 |  | 
 | 20955 | # Symbols that must always be exported. | 
 | 20956 | include_expsyms=$lt_include_expsyms_F77 | 
 | 20957 |  | 
 | 20958 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 20959 |  | 
 | 20960 | __EOF__ | 
 | 20961 |  | 
 | 20962 |  | 
 | 20963 | else | 
 | 20964 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 20965 |   # `config.status --recheck' to rerun these tests and create the | 
 | 20966 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20967 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 20968 |   if test -f "$ltmain_in"; then | 
 | 20969 |     test -f Makefile && make "$ltmain" | 
 | 20970 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20971 | fi | 
 | 20972 |  | 
 | 20973 |  | 
 | 20974 | ac_ext=c | 
 | 20975 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20979 |  | 
 | 20980 | CC="$lt_save_CC" | 
 | 20981 |  | 
 | 20982 | 	else | 
 | 20983 | 	  tagname="" | 
 | 20984 | 	fi | 
 | 20985 | 	;; | 
 | 20986 |  | 
 | 20987 |       GCJ) | 
 | 20988 | 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20989 | 	  ac_ext=c | 
 | 20990 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20994 |  | 
 | 20995 |  | 
 | 20996 | # Source file extension for Java test sources. | 
 | 20997 | ac_ext=java | 
 | 20998 |  | 
 | 20999 | # Object file extension for compiled Java test sources. | 
 | 21000 | objext=o | 
 | 21001 | objext_GCJ=$objext | 
 | 21002 |  | 
 | 21003 | # Code to be used in simple compile tests | 
 | 21004 | lt_simple_compile_test_code="class foo {}\n" | 
 | 21005 |  | 
 | 21006 | # Code to be used in simple link tests | 
 | 21007 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 
 | 21008 |  | 
 | 21009 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 21010 |  | 
 | 21011 | # If no C compiler was specified, use CC. | 
 | 21012 | LTCC=${LTCC-"$CC"} | 
 | 21013 |  | 
 | 21014 | # Allow CC to be a program name with arguments. | 
 | 21015 | compiler=$CC | 
 | 21016 |  | 
 | 21017 |  | 
 | 21018 | # Allow CC to be a program name with arguments. | 
 | 21019 | lt_save_CC="$CC" | 
 | 21020 | CC=${GCJ-"gcj"} | 
 | 21021 | compiler=$CC | 
 | 21022 | compiler_GCJ=$CC | 
 | 21023 |  | 
 | 21024 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
 | 21025 | archive_cmds_need_lc_GCJ=no | 
 | 21026 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21027 |  | 
 | 21028 | lt_prog_compiler_no_builtin_flag_GCJ= | 
 | 21029 |  | 
 | 21030 | if test "$GCC" = yes; then | 
 | 21031 |   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
 | 21032 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21033 |  | 
 | 21034 | 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] | 21035 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 21036 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 21037 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21038 | else | 
 | 21039 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 21040 |   ac_outfile=conftest.$ac_objext | 
 | 21041 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 21042 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 21043 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 21044 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 21045 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 21046 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 21047 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 21048 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 21049 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 21050 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 21051 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 21052 |    (eval echo "\"\$as_me:21052: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21053 |    (eval "$lt_compile" 2>conftest.err) | 
 | 21054 |    ac_status=$? | 
 | 21055 |    cat conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 21056 |    echo "$as_me:21056: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21057 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 21058 |      # The compiler can only warn and ignore the option if not recognized | 
 | 21059 |      # So say no if there are warnings | 
 | 21060 |      if test ! -s conftest.err; then | 
 | 21061 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 21062 |      fi | 
 | 21063 |    fi | 
 | 21064 |    $rm conftest* | 
 | 21065 |  | 
 | 21066 | fi | 
 | 21067 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 21068 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 21069 |  | 
 | 21070 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 21071 |     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
 | 21072 | else | 
 | 21073 |     : | 
 | 21074 | fi | 
 | 21075 |  | 
 | 21076 | fi | 
 | 21077 |  | 
 | 21078 | lt_prog_compiler_wl_GCJ= | 
 | 21079 | lt_prog_compiler_pic_GCJ= | 
 | 21080 | lt_prog_compiler_static_GCJ= | 
 | 21081 |  | 
 | 21082 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 21083 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 21084 |  | 
 | 21085 |   if test "$GCC" = yes; then | 
 | 21086 |     lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21087 |     lt_prog_compiler_static_GCJ='-static' | 
 | 21088 |  | 
 | 21089 |     case $host_os in | 
 | 21090 |       aix*) | 
 | 21091 |       # All AIX code is PIC. | 
 | 21092 |       if test "$host_cpu" = ia64; then | 
 | 21093 | 	# AIX 5 now supports IA64 processor | 
 | 21094 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21095 |       fi | 
 | 21096 |       ;; | 
 | 21097 |  | 
 | 21098 |     amigaos*) | 
 | 21099 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 21100 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 21101 |       # like `-m68040'. | 
 | 21102 |       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
 | 21103 |       ;; | 
 | 21104 |  | 
 | 21105 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 21106 |       # PIC is the default for these OSes. | 
 | 21107 |       ;; | 
 | 21108 |  | 
 | 21109 |     mingw* | pw32* | os2*) | 
 | 21110 |       # This hack is so that the source file can tell whether it is being | 
 | 21111 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 21112 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 21113 |       ;; | 
 | 21114 |  | 
 | 21115 |     darwin* | rhapsody*) | 
 | 21116 |       # PIC is the default on this platform | 
 | 21117 |       # Common symbols not allowed in MH_DYLIB files | 
 | 21118 |       lt_prog_compiler_pic_GCJ='-fno-common' | 
 | 21119 |       ;; | 
 | 21120 |  | 
 | 21121 |     msdosdjgpp*) | 
 | 21122 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 21123 |       # on systems that don't support them. | 
 | 21124 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 21125 |       enable_shared=no | 
 | 21126 |       ;; | 
 | 21127 |  | 
 | 21128 |     sysv4*MP*) | 
 | 21129 |       if test -d /usr/nec; then | 
 | 21130 | 	lt_prog_compiler_pic_GCJ=-Kconform_pic | 
 | 21131 |       fi | 
 | 21132 |       ;; | 
 | 21133 |  | 
 | 21134 |     hpux*) | 
 | 21135 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 21136 |       # not for PA HP-UX. | 
 | 21137 |       case "$host_cpu" in | 
 | 21138 |       hppa*64*|ia64*) | 
 | 21139 | 	# +Z the default | 
 | 21140 | 	;; | 
 | 21141 |       *) | 
 | 21142 | 	lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 21143 | 	;; | 
 | 21144 |       esac | 
 | 21145 |       ;; | 
 | 21146 |  | 
 | 21147 |     *) | 
 | 21148 |       lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 21149 |       ;; | 
 | 21150 |     esac | 
 | 21151 |   else | 
 | 21152 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 21153 |     case $host_os in | 
 | 21154 |     aix*) | 
 | 21155 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21156 |       if test "$host_cpu" = ia64; then | 
 | 21157 | 	# AIX 5 now supports IA64 processor | 
 | 21158 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21159 |       else | 
 | 21160 | 	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
 | 21161 |       fi | 
 | 21162 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21163 |       darwin*) | 
 | 21164 |         # PIC is the default on this platform | 
 | 21165 |         # Common symbols not allowed in MH_DYLIB files | 
 | 21166 |        case "$cc_basename" in | 
 | 21167 |          xlc*) | 
 | 21168 |          lt_prog_compiler_pic_GCJ='-qnocommon' | 
 | 21169 |          lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21170 |          ;; | 
 | 21171 |        esac | 
 | 21172 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21173 |  | 
 | 21174 |     mingw* | pw32* | os2*) | 
 | 21175 |       # This hack is so that the source file can tell whether it is being | 
 | 21176 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 21177 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 21178 |       ;; | 
 | 21179 |  | 
 | 21180 |     hpux9* | hpux10* | hpux11*) | 
 | 21181 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21182 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 21183 |       # not for PA HP-UX. | 
 | 21184 |       case "$host_cpu" in | 
 | 21185 |       hppa*64*|ia64*) | 
 | 21186 | 	# +Z the default | 
 | 21187 | 	;; | 
 | 21188 |       *) | 
 | 21189 | 	lt_prog_compiler_pic_GCJ='+Z' | 
 | 21190 | 	;; | 
 | 21191 |       esac | 
 | 21192 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 21193 |       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
 | 21194 |       ;; | 
 | 21195 |  | 
 | 21196 |     irix5* | irix6* | nonstopux*) | 
 | 21197 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21198 |       # PIC (with -KPIC) is the default. | 
 | 21199 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 21200 |       ;; | 
 | 21201 |  | 
 | 21202 |     newsos6) | 
 | 21203 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 21204 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21205 |       ;; | 
 | 21206 |  | 
 | 21207 |     linux*) | 
 | 21208 |       case $CC in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21209 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21210 | 	lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21211 | 	lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 21212 | 	lt_prog_compiler_static_GCJ='-static' | 
 | 21213 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21214 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21215 |         lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21216 |         # All Alpha code is PIC. | 
 | 21217 |         lt_prog_compiler_static_GCJ='-non_shared' | 
 | 21218 |         ;; | 
 | 21219 |       esac | 
 | 21220 |       ;; | 
 | 21221 |  | 
 | 21222 |     osf3* | osf4* | osf5*) | 
 | 21223 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21224 |       # All OSF/1 code is PIC. | 
 | 21225 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 21226 |       ;; | 
 | 21227 |  | 
 | 21228 |     sco3.2v5*) | 
 | 21229 |       lt_prog_compiler_pic_GCJ='-Kpic' | 
 | 21230 |       lt_prog_compiler_static_GCJ='-dn' | 
 | 21231 |       ;; | 
 | 21232 |  | 
 | 21233 |     solaris*) | 
 | 21234 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21235 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 21236 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21237 |       ;; | 
 | 21238 |  | 
 | 21239 |     sunos4*) | 
 | 21240 |       lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
 | 21241 |       lt_prog_compiler_pic_GCJ='-PIC' | 
 | 21242 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21243 |       ;; | 
 | 21244 |  | 
 | 21245 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 21246 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 21247 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 21248 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21249 |       ;; | 
 | 21250 |  | 
 | 21251 |     sysv4*MP*) | 
 | 21252 |       if test -d /usr/nec ;then | 
 | 21253 | 	lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
 | 21254 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21255 |       fi | 
 | 21256 |       ;; | 
 | 21257 |  | 
 | 21258 |     uts4*) | 
 | 21259 |       lt_prog_compiler_pic_GCJ='-pic' | 
 | 21260 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 21261 |       ;; | 
 | 21262 |  | 
 | 21263 |     *) | 
 | 21264 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 21265 |       ;; | 
 | 21266 |     esac | 
 | 21267 |   fi | 
 | 21268 |  | 
 | 21269 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
 | 21270 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 
 | 21271 |  | 
 | 21272 | # | 
 | 21273 | # Check to make sure the PIC flag actually works. | 
 | 21274 | # | 
 | 21275 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21276 |  | 
 | 21277 | 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] | 21278 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 
 | 21279 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
 | 21280 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21281 | else | 
 | 21282 |   lt_prog_compiler_pic_works_GCJ=no | 
 | 21283 |   ac_outfile=conftest.$ac_objext | 
 | 21284 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 21285 |    lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
 | 21286 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 21287 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 21288 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 21289 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 21290 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 21291 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 21292 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 21293 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 21294 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 21295 |    (eval echo "\"\$as_me:21295: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21296 |    (eval "$lt_compile" 2>conftest.err) | 
 | 21297 |    ac_status=$? | 
 | 21298 |    cat conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 21299 |    echo "$as_me:21299: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21300 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 21301 |      # The compiler can only warn and ignore the option if not recognized | 
 | 21302 |      # So say no if there are warnings | 
 | 21303 |      if test ! -s conftest.err; then | 
 | 21304 |        lt_prog_compiler_pic_works_GCJ=yes | 
 | 21305 |      fi | 
 | 21306 |    fi | 
 | 21307 |    $rm conftest* | 
 | 21308 |  | 
 | 21309 | fi | 
 | 21310 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
 | 21311 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 
 | 21312 |  | 
 | 21313 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
 | 21314 |     case $lt_prog_compiler_pic_GCJ in | 
 | 21315 |      "" | " "*) ;; | 
 | 21316 |      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
 | 21317 |      esac | 
 | 21318 | else | 
 | 21319 |     lt_prog_compiler_pic_GCJ= | 
 | 21320 |      lt_prog_compiler_can_build_shared_GCJ=no | 
 | 21321 | fi | 
 | 21322 |  | 
 | 21323 | fi | 
 | 21324 | case "$host_os" in | 
 | 21325 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 21326 |   *djgpp*) | 
 | 21327 |     lt_prog_compiler_pic_GCJ= | 
 | 21328 |     ;; | 
 | 21329 |   *) | 
 | 21330 |     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
 | 21331 |     ;; | 
 | 21332 | esac | 
 | 21333 |  | 
 | 21334 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 21335 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 21336 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
 | 21337 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21338 | else | 
 | 21339 |   lt_cv_prog_compiler_c_o_GCJ=no | 
 | 21340 |    $rm -r conftest 2>/dev/null | 
 | 21341 |    mkdir conftest | 
 | 21342 |    cd conftest | 
 | 21343 |    mkdir out | 
 | 21344 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 21345 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21346 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 21347 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 21348 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 21349 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 21350 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 21351 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 21352 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 21353 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 21354 |    -e 's:$: $lt_compiler_flag:'` | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 21355 |    (eval echo "\"\$as_me:21355: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21356 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 21357 |    ac_status=$? | 
 | 21358 |    cat out/conftest.err >&5 | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 21359 |    echo "$as_me:21359: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21360 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 21361 |    then | 
 | 21362 |      # The compiler can only warn and ignore the option if not recognized | 
 | 21363 |      # So say no if there are warnings | 
 | 21364 |      if test ! -s out/conftest.err; then | 
 | 21365 |        lt_cv_prog_compiler_c_o_GCJ=yes | 
 | 21366 |      fi | 
 | 21367 |    fi | 
 | 21368 |    chmod u+w . | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21369 |    $rm conftest* | 
 | 21370 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 21371 |    # template instantiation | 
 | 21372 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 21373 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21374 |    cd .. | 
 | 21375 |    rmdir conftest | 
 | 21376 |    $rm conftest* | 
 | 21377 |  | 
 | 21378 | fi | 
 | 21379 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
 | 21380 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 
 | 21381 |  | 
 | 21382 |  | 
 | 21383 | hard_links="nottested" | 
 | 21384 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
 | 21385 |   # do not overwrite the value of need_locks provided by the user | 
 | 21386 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 21387 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 21388 |   hard_links=yes | 
 | 21389 |   $rm conftest* | 
 | 21390 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 21391 |   touch conftest.a | 
 | 21392 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 21393 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 21394 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 21395 | echo "${ECHO_T}$hard_links" >&6 | 
 | 21396 |   if test "$hard_links" = no; then | 
 | 21397 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 21398 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 21399 |     need_locks=warn | 
 | 21400 |   fi | 
 | 21401 | else | 
 | 21402 |   need_locks=no | 
 | 21403 | fi | 
 | 21404 |  | 
 | 21405 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 21406 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 21407 |  | 
 | 21408 |   runpath_var= | 
 | 21409 |   allow_undefined_flag_GCJ= | 
 | 21410 |   enable_shared_with_static_runtimes_GCJ=no | 
 | 21411 |   archive_cmds_GCJ= | 
 | 21412 |   archive_expsym_cmds_GCJ= | 
 | 21413 |   old_archive_From_new_cmds_GCJ= | 
 | 21414 |   old_archive_from_expsyms_cmds_GCJ= | 
 | 21415 |   export_dynamic_flag_spec_GCJ= | 
 | 21416 |   whole_archive_flag_spec_GCJ= | 
 | 21417 |   thread_safe_flag_spec_GCJ= | 
 | 21418 |   hardcode_libdir_flag_spec_GCJ= | 
 | 21419 |   hardcode_libdir_flag_spec_ld_GCJ= | 
 | 21420 |   hardcode_libdir_separator_GCJ= | 
 | 21421 |   hardcode_direct_GCJ=no | 
 | 21422 |   hardcode_minus_L_GCJ=no | 
 | 21423 |   hardcode_shlibpath_var_GCJ=unsupported | 
 | 21424 |   link_all_deplibs_GCJ=unknown | 
 | 21425 |   hardcode_automatic_GCJ=no | 
 | 21426 |   module_cmds_GCJ= | 
 | 21427 |   module_expsym_cmds_GCJ= | 
 | 21428 |   always_export_symbols_GCJ=no | 
 | 21429 |   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 21430 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 21431 |   # included in the symbol list | 
 | 21432 |   include_expsyms_GCJ= | 
 | 21433 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 21434 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 21435 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 21436 |   # as well as any symbol that contains `d'. | 
 | 21437 |   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
 | 21438 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 21439 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 21440 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 21441 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 21442 |   # preloaded symbol tables. | 
 | 21443 |   extract_expsyms_cmds= | 
 | 21444 |  | 
 | 21445 |   case $host_os in | 
 | 21446 |   cygwin* | mingw* | pw32*) | 
 | 21447 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 21448 |     # When not using gcc, we currently assume that we are using | 
 | 21449 |     # Microsoft Visual C++. | 
 | 21450 |     if test "$GCC" != yes; then | 
 | 21451 |       with_gnu_ld=no | 
 | 21452 |     fi | 
 | 21453 |     ;; | 
 | 21454 |   openbsd*) | 
 | 21455 |     with_gnu_ld=no | 
 | 21456 |     ;; | 
 | 21457 |   esac | 
 | 21458 |  | 
 | 21459 |   ld_shlibs_GCJ=yes | 
 | 21460 |   if test "$with_gnu_ld" = yes; then | 
 | 21461 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 21462 |     wlarc='${wl}' | 
 | 21463 |  | 
 | 21464 |     # See if GNU ld supports shared libraries. | 
 | 21465 |     case $host_os in | 
 | 21466 |     aix3* | aix4* | aix5*) | 
 | 21467 |       # On AIX/PPC, the GNU linker is very broken | 
 | 21468 |       if test "$host_cpu" != ia64; then | 
 | 21469 | 	ld_shlibs_GCJ=no | 
 | 21470 | 	cat <<EOF 1>&2 | 
 | 21471 |  | 
 | 21472 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 21473 | *** to be unable to reliably create shared libraries on AIX. | 
 | 21474 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 21475 | *** really care for shared libraries, you may want to modify your PATH | 
 | 21476 | *** so that a non-GNU linker is found, and then restart. | 
 | 21477 |  | 
 | 21478 | EOF | 
 | 21479 |       fi | 
 | 21480 |       ;; | 
 | 21481 |  | 
 | 21482 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21483 |       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] | 21484 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 21485 |       hardcode_minus_L_GCJ=yes | 
 | 21486 |  | 
 | 21487 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 21488 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 21489 |       # to version 4, is to share data among multiple programs linked | 
 | 21490 |       # with the same dynamic library.  Since this doesn't match the | 
 | 21491 |       # behavior of shared libraries on other platforms, we can't use | 
 | 21492 |       # them. | 
 | 21493 |       ld_shlibs_GCJ=no | 
 | 21494 |       ;; | 
 | 21495 |  | 
 | 21496 |     beos*) | 
 | 21497 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 21498 | 	allow_undefined_flag_GCJ=unsupported | 
 | 21499 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 21500 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 21501 | 	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21502 |       else | 
 | 21503 | 	ld_shlibs_GCJ=no | 
 | 21504 |       fi | 
 | 21505 |       ;; | 
 | 21506 |  | 
 | 21507 |     cygwin* | mingw* | pw32*) | 
 | 21508 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
 | 21509 |       # as there is no search path for DLLs. | 
 | 21510 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 21511 |       allow_undefined_flag_GCJ=unsupported | 
 | 21512 |       always_export_symbols_GCJ=no | 
 | 21513 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 21514 |       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 21515 |  | 
 | 21516 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 21517 |         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 21518 | 	# If the export-symbols file already is a .def file (1st line | 
 | 21519 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 21520 | 	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 21521 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 21522 | 	else | 
 | 21523 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 21524 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21525 | 	fi~ | 
 | 21526 | 	$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] | 21527 |       else | 
 | 21528 | 	ld_shlibs=no | 
 | 21529 |       fi | 
 | 21530 |       ;; | 
 | 21531 |  | 
 | 21532 |     netbsd*) | 
 | 21533 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 21534 | 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 21535 | 	wlarc= | 
 | 21536 |       else | 
 | 21537 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21538 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 21539 |       fi | 
 | 21540 |       ;; | 
 | 21541 |  | 
 | 21542 |     solaris* | sysv5*) | 
 | 21543 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 21544 | 	ld_shlibs_GCJ=no | 
 | 21545 | 	cat <<EOF 1>&2 | 
 | 21546 |  | 
 | 21547 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 21548 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 21549 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 21550 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 21551 | *** your PATH or compiler configuration so that the native linker is | 
 | 21552 | *** used, and then restart. | 
 | 21553 |  | 
 | 21554 | EOF | 
 | 21555 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 21556 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21557 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 21558 |       else | 
 | 21559 | 	ld_shlibs_GCJ=no | 
 | 21560 |       fi | 
 | 21561 |       ;; | 
 | 21562 |  | 
 | 21563 |     sunos4*) | 
 | 21564 |       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 21565 |       wlarc= | 
 | 21566 |       hardcode_direct_GCJ=yes | 
 | 21567 |       hardcode_shlibpath_var_GCJ=no | 
 | 21568 |       ;; | 
 | 21569 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21570 |   linux*) | 
 | 21571 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 21572 |         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21573 | 	archive_cmds_GCJ="$tmp_archive_cmds" | 
 | 21574 |       supports_anon_versioning=no | 
 | 21575 |       case `$LD -v 2>/dev/null` in | 
 | 21576 |         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 21577 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 21578 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 21579 |         *\ 2.11.*) ;; # other 2.11 versions | 
 | 21580 |         *) supports_anon_versioning=yes ;; | 
 | 21581 |       esac | 
 | 21582 |       if test $supports_anon_versioning = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21583 |         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 21584 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 21585 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21586 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 21587 |       else | 
 | 21588 |         archive_expsym_cmds_GCJ="$tmp_archive_cmds" | 
 | 21589 |       fi | 
 | 21590 |     else | 
 | 21591 |       ld_shlibs_GCJ=no | 
 | 21592 |     fi | 
 | 21593 |     ;; | 
 | 21594 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21595 |     *) | 
 | 21596 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 21597 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 21598 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 21599 |       else | 
 | 21600 | 	ld_shlibs_GCJ=no | 
 | 21601 |       fi | 
 | 21602 |       ;; | 
 | 21603 |     esac | 
 | 21604 |  | 
 | 21605 |     if test "$ld_shlibs_GCJ" = yes; then | 
 | 21606 |       runpath_var=LD_RUN_PATH | 
 | 21607 |       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
 | 21608 |       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
 | 21609 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 21610 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 21611 |  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 21612 |       else | 
 | 21613 |   	whole_archive_flag_spec_GCJ= | 
 | 21614 |       fi | 
 | 21615 |     fi | 
 | 21616 |   else | 
 | 21617 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 21618 |     case $host_os in | 
 | 21619 |     aix3*) | 
 | 21620 |       allow_undefined_flag_GCJ=unsupported | 
 | 21621 |       always_export_symbols_GCJ=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21622 |       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] | 21623 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 21624 |       # are no directories specified by -L. | 
 | 21625 |       hardcode_minus_L_GCJ=yes | 
 | 21626 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 21627 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 21628 | 	# broken collect2. | 
 | 21629 | 	hardcode_direct_GCJ=unsupported | 
 | 21630 |       fi | 
 | 21631 |       ;; | 
 | 21632 |  | 
 | 21633 |     aix4* | aix5*) | 
 | 21634 |       if test "$host_cpu" = ia64; then | 
 | 21635 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 21636 | 	# have to do anything special. | 
 | 21637 | 	aix_use_runtimelinking=no | 
 | 21638 | 	exp_sym_flag='-Bexport' | 
 | 21639 | 	no_entry_flag="" | 
 | 21640 |       else | 
 | 21641 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 21642 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 21643 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 21644 | 	  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' | 
 | 21645 | 	else | 
 | 21646 | 	  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' | 
 | 21647 | 	fi | 
 | 21648 | 	aix_use_runtimelinking=no | 
 | 21649 |  | 
 | 21650 | 	# Test if we are trying to use run time linking or normal | 
 | 21651 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 21652 | 	# need to do runtime linking. | 
 | 21653 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 21654 | 	  for ld_flag in $LDFLAGS; do | 
 | 21655 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 21656 |   	    aix_use_runtimelinking=yes | 
 | 21657 |   	    break | 
 | 21658 |   	  fi | 
 | 21659 | 	  done | 
 | 21660 | 	esac | 
 | 21661 |  | 
 | 21662 | 	exp_sym_flag='-bexport' | 
 | 21663 | 	no_entry_flag='-bnoentry' | 
 | 21664 |       fi | 
 | 21665 |  | 
 | 21666 |       # When large executables or shared objects are built, AIX ld can | 
 | 21667 |       # have problems creating the table of contents.  If linking a library | 
 | 21668 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 21669 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 21670 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 21671 |  | 
 | 21672 |       archive_cmds_GCJ='' | 
 | 21673 |       hardcode_direct_GCJ=yes | 
 | 21674 |       hardcode_libdir_separator_GCJ=':' | 
 | 21675 |       link_all_deplibs_GCJ=yes | 
 | 21676 |  | 
 | 21677 |       if test "$GCC" = yes; then | 
 | 21678 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 21679 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 21680 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 21681 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 21682 | 	  if test -f "$collect2name" && \ | 
 | 21683 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 21684 | 	  then | 
 | 21685 |   	  # We have reworked collect2 | 
 | 21686 |   	  hardcode_direct_GCJ=yes | 
 | 21687 | 	  else | 
 | 21688 |   	  # We have old collect2 | 
 | 21689 |   	  hardcode_direct_GCJ=unsupported | 
 | 21690 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 21691 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 21692 |   	  # to unsupported forces relinking | 
 | 21693 |   	  hardcode_minus_L_GCJ=yes | 
 | 21694 |   	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 21695 |   	  hardcode_libdir_separator_GCJ= | 
 | 21696 | 	  fi | 
 | 21697 | 	esac | 
 | 21698 | 	shared_flag='-shared' | 
 | 21699 |       else | 
 | 21700 | 	# not using gcc | 
 | 21701 | 	if test "$host_cpu" = ia64; then | 
 | 21702 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 21703 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 21704 | 	  shared_flag='-G' | 
 | 21705 | 	else | 
 | 21706 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 21707 | 	    shared_flag='${wl}-G' | 
 | 21708 | 	  else | 
 | 21709 | 	    shared_flag='${wl}-bM:SRE' | 
 | 21710 |   	fi | 
 | 21711 | 	fi | 
 | 21712 |       fi | 
 | 21713 |  | 
 | 21714 |       # It seems that -bexpall does not export symbols beginning with | 
 | 21715 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 21716 |       always_export_symbols_GCJ=yes | 
 | 21717 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 21718 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 21719 | 	# -berok will link without error, but may produce a broken library. | 
 | 21720 | 	allow_undefined_flag_GCJ='-berok' | 
 | 21721 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 21722 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21723 | /* confdefs.h.  */ | 
 | 21724 | _ACEOF | 
 | 21725 | cat confdefs.h >>conftest.$ac_ext | 
 | 21726 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21727 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21728 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21729 | int | 
 | 21730 | main () | 
 | 21731 | { | 
 | 21732 |  | 
 | 21733 |   ; | 
 | 21734 |   return 0; | 
 | 21735 | } | 
 | 21736 | _ACEOF | 
 | 21737 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 21738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21739 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21740 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21741 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21742 |   rm -f conftest.er1 | 
 | 21743 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21744 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21745 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21746 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21747 | 			 || test ! -s conftest.err' | 
 | 21748 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21749 |   (eval $ac_try) 2>&5 | 
 | 21750 |   ac_status=$? | 
 | 21751 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21752 |   (exit $ac_status); }; } && | 
 | 21753 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21754 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21755 |   (eval $ac_try) 2>&5 | 
 | 21756 |   ac_status=$? | 
 | 21757 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21758 |   (exit $ac_status); }; }; then | 
 | 21759 |  | 
 | 21760 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 21761 | }'` | 
 | 21762 | # Check for a 64-bit object if we didn't find anything. | 
 | 21763 | 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; } | 
 | 21764 | }'`; fi | 
 | 21765 | else | 
 | 21766 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21767 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21768 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21769 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21770 | rm -f conftest.err conftest.$ac_objext \ | 
 | 21771 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21772 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 21773 |  | 
 | 21774 |        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 21775 | 	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" | 
 | 21776 |        else | 
 | 21777 | 	if test "$host_cpu" = ia64; then | 
 | 21778 | 	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
 | 21779 | 	  allow_undefined_flag_GCJ="-z nodefs" | 
 | 21780 | 	  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" | 
 | 21781 | 	else | 
 | 21782 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 21783 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21784 | /* confdefs.h.  */ | 
 | 21785 | _ACEOF | 
 | 21786 | cat confdefs.h >>conftest.$ac_ext | 
 | 21787 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21788 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21789 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21790 | int | 
 | 21791 | main () | 
 | 21792 | { | 
 | 21793 |  | 
 | 21794 |   ; | 
 | 21795 |   return 0; | 
 | 21796 | } | 
 | 21797 | _ACEOF | 
 | 21798 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 21799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21800 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21801 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21802 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 21803 |   rm -f conftest.er1 | 
 | 21804 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21805 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21806 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21807 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 21808 | 			 || test ! -s conftest.err' | 
 | 21809 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21810 |   (eval $ac_try) 2>&5 | 
 | 21811 |   ac_status=$? | 
 | 21812 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21813 |   (exit $ac_status); }; } && | 
 | 21814 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21815 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21816 |   (eval $ac_try) 2>&5 | 
 | 21817 |   ac_status=$? | 
 | 21818 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21819 |   (exit $ac_status); }; }; then | 
 | 21820 |  | 
 | 21821 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 21822 | }'` | 
 | 21823 | # Check for a 64-bit object if we didn't find anything. | 
 | 21824 | 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; } | 
 | 21825 | }'`; fi | 
 | 21826 | else | 
 | 21827 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21828 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21829 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21830 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21831 | rm -f conftest.err conftest.$ac_objext \ | 
 | 21832 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21833 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 21834 |  | 
 | 21835 | 	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 21836 | 	  # Warning - without using the other run time loading flags, | 
 | 21837 | 	  # -berok will link without error, but may produce a broken library. | 
 | 21838 | 	  no_undefined_flag_GCJ=' ${wl}-bernotok' | 
 | 21839 | 	  allow_undefined_flag_GCJ=' ${wl}-berok' | 
 | 21840 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 21841 | 	  always_export_symbols_GCJ=yes | 
 | 21842 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 21843 | 	  whole_archive_flag_spec_GCJ=' ' | 
 | 21844 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 21845 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21846 | 	  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] | 21847 | 	fi | 
 | 21848 |       fi | 
 | 21849 |       ;; | 
 | 21850 |  | 
 | 21851 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21852 |       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] | 21853 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 21854 |       hardcode_minus_L_GCJ=yes | 
 | 21855 |       # see comment about different semantics on the GNU ld section | 
 | 21856 |       ld_shlibs_GCJ=no | 
 | 21857 |       ;; | 
 | 21858 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21859 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21860 |       export_dynamic_flag_spec_GCJ=-rdynamic | 
 | 21861 |       ;; | 
 | 21862 |  | 
 | 21863 |     cygwin* | mingw* | pw32*) | 
 | 21864 |       # When not using gcc, we currently assume that we are using | 
 | 21865 |       # Microsoft Visual C++. | 
 | 21866 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 21867 |       # no search path for DLLs. | 
 | 21868 |       hardcode_libdir_flag_spec_GCJ=' ' | 
 | 21869 |       allow_undefined_flag_GCJ=unsupported | 
 | 21870 |       # Tell ltmain to make .lib files, not .a files. | 
 | 21871 |       libext=lib | 
 | 21872 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21873 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21874 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21875 |       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] | 21876 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 21877 |       old_archive_From_new_cmds_GCJ='true' | 
 | 21878 |       # FIXME: Should let the user specify the lib program. | 
 | 21879 |       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 21880 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 21881 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 21882 |       ;; | 
 | 21883 |  | 
 | 21884 |     darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21885 |       case "$host_os" in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21886 |         rhapsody* | darwin1.[012]) | 
 | 21887 |          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | 
 | 21888 |          ;; | 
 | 21889 |        *) # Darwin 1.3 on | 
 | 21890 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 21891 |            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 21892 |          else | 
 | 21893 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 21894 |              10.[012]) | 
 | 21895 |                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 21896 |                ;; | 
 | 21897 |              10.*) | 
 | 21898 |                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | 
 | 21899 |                ;; | 
 | 21900 |            esac | 
 | 21901 |          fi | 
 | 21902 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21903 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21904 |       archive_cmds_need_lc_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21905 |       hardcode_direct_GCJ=no | 
 | 21906 |       hardcode_automatic_GCJ=yes | 
 | 21907 |       hardcode_shlibpath_var_GCJ=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21908 |       whole_archive_flag_spec_GCJ='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21909 |       link_all_deplibs_GCJ=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21910 |     if test "$GCC" = yes ; then | 
 | 21911 |     	output_verbose_link_cmd='echo' | 
 | 21912 |         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 21913 |       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 21914 |       # 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] | 21915 |       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}' | 
 | 21916 |       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] | 21917 |     else | 
 | 21918 |       case "$cc_basename" in | 
 | 21919 |         xlc*) | 
 | 21920 |          output_verbose_link_cmd='echo' | 
 | 21921 |          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 21922 |          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
 | 21923 |           # 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] | 21924 |          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}' | 
 | 21925 |           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] | 21926 |           ;; | 
 | 21927 |        *) | 
 | 21928 |          ld_shlibs_GCJ=no | 
 | 21929 |           ;; | 
 | 21930 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21931 |     fi | 
 | 21932 |       ;; | 
 | 21933 |  | 
 | 21934 |     dgux*) | 
 | 21935 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 21936 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 21937 |       hardcode_shlibpath_var_GCJ=no | 
 | 21938 |       ;; | 
 | 21939 |  | 
 | 21940 |     freebsd1*) | 
 | 21941 |       ld_shlibs_GCJ=no | 
 | 21942 |       ;; | 
 | 21943 |  | 
 | 21944 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 21945 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 21946 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 21947 |     # extra space). | 
 | 21948 |     freebsd2.2*) | 
 | 21949 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 21950 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 21951 |       hardcode_direct_GCJ=yes | 
 | 21952 |       hardcode_shlibpath_var_GCJ=no | 
 | 21953 |       ;; | 
 | 21954 |  | 
 | 21955 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 21956 |     freebsd2*) | 
 | 21957 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 21958 |       hardcode_direct_GCJ=yes | 
 | 21959 |       hardcode_minus_L_GCJ=yes | 
 | 21960 |       hardcode_shlibpath_var_GCJ=no | 
 | 21961 |       ;; | 
 | 21962 |  | 
 | 21963 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21964 |     freebsd* | kfreebsd*-gnu) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21965 |       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 21966 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 21967 |       hardcode_direct_GCJ=yes | 
 | 21968 |       hardcode_shlibpath_var_GCJ=no | 
 | 21969 |       ;; | 
 | 21970 |  | 
 | 21971 |     hpux9*) | 
 | 21972 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21973 | 	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] | 21974 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21975 | 	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] | 21976 |       fi | 
 | 21977 |       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 21978 |       hardcode_libdir_separator_GCJ=: | 
 | 21979 |       hardcode_direct_GCJ=yes | 
 | 21980 |  | 
 | 21981 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 21982 |       # but as the default location of the library. | 
 | 21983 |       hardcode_minus_L_GCJ=yes | 
 | 21984 |       export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 21985 |       ;; | 
 | 21986 |  | 
 | 21987 |     hpux10* | hpux11*) | 
 | 21988 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 21989 | 	case "$host_cpu" in | 
 | 21990 | 	hppa*64*|ia64*) | 
 | 21991 | 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 21992 | 	  ;; | 
 | 21993 | 	*) | 
 | 21994 | 	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 21995 | 	  ;; | 
 | 21996 | 	esac | 
 | 21997 |       else | 
 | 21998 | 	case "$host_cpu" in | 
 | 21999 | 	hppa*64*|ia64*) | 
 | 22000 | 	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22001 | 	  ;; | 
 | 22002 | 	*) | 
 | 22003 | 	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 22004 | 	  ;; | 
 | 22005 | 	esac | 
 | 22006 |       fi | 
 | 22007 |       if test "$with_gnu_ld" = no; then | 
 | 22008 | 	case "$host_cpu" in | 
 | 22009 | 	hppa*64*) | 
 | 22010 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 22011 | 	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
 | 22012 | 	  hardcode_libdir_separator_GCJ=: | 
 | 22013 | 	  hardcode_direct_GCJ=no | 
 | 22014 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 22015 | 	  ;; | 
 | 22016 | 	ia64*) | 
 | 22017 | 	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22018 | 	  hardcode_direct_GCJ=no | 
 | 22019 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 22020 |  | 
 | 22021 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 22022 | 	  # but as the default location of the library. | 
 | 22023 | 	  hardcode_minus_L_GCJ=yes | 
 | 22024 | 	  ;; | 
 | 22025 | 	*) | 
 | 22026 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 22027 | 	  hardcode_libdir_separator_GCJ=: | 
 | 22028 | 	  hardcode_direct_GCJ=yes | 
 | 22029 | 	  export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 22030 |  | 
 | 22031 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 22032 | 	  # but as the default location of the library. | 
 | 22033 | 	  hardcode_minus_L_GCJ=yes | 
 | 22034 | 	  ;; | 
 | 22035 | 	esac | 
 | 22036 |       fi | 
 | 22037 |       ;; | 
 | 22038 |  | 
 | 22039 |     irix5* | irix6* | nonstopux*) | 
 | 22040 |       if test "$GCC" = yes; then | 
 | 22041 | 	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' | 
 | 22042 |       else | 
 | 22043 | 	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' | 
 | 22044 | 	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
 | 22045 |       fi | 
 | 22046 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 22047 |       hardcode_libdir_separator_GCJ=: | 
 | 22048 |       link_all_deplibs_GCJ=yes | 
 | 22049 |       ;; | 
 | 22050 |  | 
 | 22051 |     netbsd*) | 
 | 22052 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 22053 | 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 22054 |       else | 
 | 22055 | 	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 22056 |       fi | 
 | 22057 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 22058 |       hardcode_direct_GCJ=yes | 
 | 22059 |       hardcode_shlibpath_var_GCJ=no | 
 | 22060 |       ;; | 
 | 22061 |  | 
 | 22062 |     newsos6) | 
 | 22063 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22064 |       hardcode_direct_GCJ=yes | 
 | 22065 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 22066 |       hardcode_libdir_separator_GCJ=: | 
 | 22067 |       hardcode_shlibpath_var_GCJ=no | 
 | 22068 |       ;; | 
 | 22069 |  | 
 | 22070 |     openbsd*) | 
 | 22071 |       hardcode_direct_GCJ=yes | 
 | 22072 |       hardcode_shlibpath_var_GCJ=no | 
 | 22073 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 22074 | 	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] | 22075 | 	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] | 22076 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 22077 | 	export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 22078 |       else | 
 | 22079 |        case $host_os in | 
 | 22080 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 22081 | 	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 22082 | 	   hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 22083 | 	   ;; | 
 | 22084 | 	 *) | 
 | 22085 | 	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22086 | 	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 22087 | 	   ;; | 
 | 22088 |        esac | 
 | 22089 |       fi | 
 | 22090 |       ;; | 
 | 22091 |  | 
 | 22092 |     os2*) | 
 | 22093 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22094 |       hardcode_minus_L_GCJ=yes | 
 | 22095 |       allow_undefined_flag_GCJ=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22096 |       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] | 22097 |       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 22098 |       ;; | 
 | 22099 |  | 
 | 22100 |     osf3*) | 
 | 22101 |       if test "$GCC" = yes; then | 
 | 22102 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 22103 | 	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' | 
 | 22104 |       else | 
 | 22105 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 22106 | 	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' | 
 | 22107 |       fi | 
 | 22108 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 22109 |       hardcode_libdir_separator_GCJ=: | 
 | 22110 |       ;; | 
 | 22111 |  | 
 | 22112 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 22113 |       if test "$GCC" = yes; then | 
 | 22114 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 22115 | 	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' | 
 | 22116 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 22117 |       else | 
 | 22118 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 22119 | 	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] | 22120 | 	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~ | 
 | 22121 | 	$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' | 
 | 22122 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22123 | 	# Both c and cxx compiler support -rpath directly | 
 | 22124 | 	hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
 | 22125 |       fi | 
 | 22126 |       hardcode_libdir_separator_GCJ=: | 
 | 22127 |       ;; | 
 | 22128 |  | 
 | 22129 |     sco3.2v5*) | 
 | 22130 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22131 |       hardcode_shlibpath_var_GCJ=no | 
 | 22132 |       export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
 | 22133 |       runpath_var=LD_RUN_PATH | 
 | 22134 |       hardcode_runpath_var=yes | 
 | 22135 |       ;; | 
 | 22136 |  | 
 | 22137 |     solaris*) | 
 | 22138 |       no_undefined_flag_GCJ=' -z text' | 
 | 22139 |       if test "$GCC" = yes; then | 
 | 22140 | 	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] | 22141 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 22142 | 	  $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] | 22143 |       else | 
 | 22144 | 	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] | 22145 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 22146 |   	$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] | 22147 |       fi | 
 | 22148 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 22149 |       hardcode_shlibpath_var_GCJ=no | 
 | 22150 |       case $host_os in | 
 | 22151 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 22152 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 22153 | 	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
 | 22154 |       esac | 
 | 22155 |       link_all_deplibs_GCJ=yes | 
 | 22156 |       ;; | 
 | 22157 |  | 
 | 22158 |     sunos4*) | 
 | 22159 |       if test "x$host_vendor" = xsequent; then | 
 | 22160 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 22161 | 	# files that make .init and .fini sections work. | 
 | 22162 | 	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22163 |       else | 
 | 22164 | 	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 22165 |       fi | 
 | 22166 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22167 |       hardcode_direct_GCJ=yes | 
 | 22168 |       hardcode_minus_L_GCJ=yes | 
 | 22169 |       hardcode_shlibpath_var_GCJ=no | 
 | 22170 |       ;; | 
 | 22171 |  | 
 | 22172 |     sysv4) | 
 | 22173 |       case $host_vendor in | 
 | 22174 | 	sni) | 
 | 22175 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22176 | 	  hardcode_direct_GCJ=yes # is this really true??? | 
 | 22177 | 	;; | 
 | 22178 | 	siemens) | 
 | 22179 | 	  ## LD is ld it makes a PLAMLIB | 
 | 22180 | 	  ## CC just makes a GrossModule. | 
 | 22181 | 	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 22182 | 	  reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
 | 22183 | 	  hardcode_direct_GCJ=no | 
 | 22184 |         ;; | 
 | 22185 | 	motorola) | 
 | 22186 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22187 | 	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
 | 22188 | 	;; | 
 | 22189 |       esac | 
 | 22190 |       runpath_var='LD_RUN_PATH' | 
 | 22191 |       hardcode_shlibpath_var_GCJ=no | 
 | 22192 |       ;; | 
 | 22193 |  | 
 | 22194 |     sysv4.3*) | 
 | 22195 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22196 |       hardcode_shlibpath_var_GCJ=no | 
 | 22197 |       export_dynamic_flag_spec_GCJ='-Bexport' | 
 | 22198 |       ;; | 
 | 22199 |  | 
 | 22200 |     sysv4*MP*) | 
 | 22201 |       if test -d /usr/nec; then | 
 | 22202 | 	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22203 | 	hardcode_shlibpath_var_GCJ=no | 
 | 22204 | 	runpath_var=LD_RUN_PATH | 
 | 22205 | 	hardcode_runpath_var=yes | 
 | 22206 | 	ld_shlibs_GCJ=yes | 
 | 22207 |       fi | 
 | 22208 |       ;; | 
 | 22209 |  | 
 | 22210 |     sysv4.2uw2*) | 
 | 22211 |       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 22212 |       hardcode_direct_GCJ=yes | 
 | 22213 |       hardcode_minus_L_GCJ=no | 
 | 22214 |       hardcode_shlibpath_var_GCJ=no | 
 | 22215 |       hardcode_runpath_var=yes | 
 | 22216 |       runpath_var=LD_RUN_PATH | 
 | 22217 |       ;; | 
 | 22218 |  | 
 | 22219 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 22220 |       no_undefined_flag_GCJ='${wl}-z ${wl}text' | 
 | 22221 |       if test "$GCC" = yes; then | 
 | 22222 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22223 |       else | 
 | 22224 | 	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22225 |       fi | 
 | 22226 |       runpath_var='LD_RUN_PATH' | 
 | 22227 |       hardcode_shlibpath_var_GCJ=no | 
 | 22228 |       ;; | 
 | 22229 |  | 
 | 22230 |     sysv5*) | 
 | 22231 |       no_undefined_flag_GCJ=' -z text' | 
 | 22232 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 22233 |       # object files and a static libstdc++, better avoid it by now | 
 | 22234 |       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] | 22235 |       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 22236 |   		$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] | 22237 |       hardcode_libdir_flag_spec_GCJ= | 
 | 22238 |       hardcode_shlibpath_var_GCJ=no | 
 | 22239 |       runpath_var='LD_RUN_PATH' | 
 | 22240 |       ;; | 
 | 22241 |  | 
 | 22242 |     uts4*) | 
 | 22243 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22244 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 22245 |       hardcode_shlibpath_var_GCJ=no | 
 | 22246 |       ;; | 
 | 22247 |  | 
 | 22248 |     *) | 
 | 22249 |       ld_shlibs_GCJ=no | 
 | 22250 |       ;; | 
 | 22251 |     esac | 
 | 22252 |   fi | 
 | 22253 |  | 
 | 22254 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
 | 22255 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 
 | 22256 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
 | 22257 |  | 
 | 22258 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 22259 | if test "$GCC" = yes; then | 
 | 22260 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 22261 | fi | 
 | 22262 |  | 
 | 22263 | # | 
 | 22264 | # Do we need to explicitly link libc? | 
 | 22265 | # | 
 | 22266 | case "x$archive_cmds_need_lc_GCJ" in | 
 | 22267 | x|xyes) | 
 | 22268 |   # Assume -lc should be added | 
 | 22269 |   archive_cmds_need_lc_GCJ=yes | 
 | 22270 |  | 
 | 22271 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 22272 |     case $archive_cmds_GCJ in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22273 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22274 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 22275 |       ;; | 
 | 22276 |     '$CC '*) | 
 | 22277 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 22278 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 22279 |       # to ld, don't add -lc before -lgcc. | 
 | 22280 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 22281 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 22282 |       $rm conftest* | 
 | 22283 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 22284 |  | 
 | 22285 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 22286 |   (eval $ac_compile) 2>&5 | 
 | 22287 |   ac_status=$? | 
 | 22288 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22289 |   (exit $ac_status); } 2>conftest.err; then | 
 | 22290 |         soname=conftest | 
 | 22291 |         lib=conftest | 
 | 22292 |         libobjs=conftest.$ac_objext | 
 | 22293 |         deplibs= | 
 | 22294 |         wl=$lt_prog_compiler_wl_GCJ | 
 | 22295 |         compiler_flags=-v | 
 | 22296 |         linker_flags=-v | 
 | 22297 |         verstring= | 
 | 22298 |         output_objdir=. | 
 | 22299 |         libname=conftest | 
 | 22300 |         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
 | 22301 |         allow_undefined_flag_GCJ= | 
 | 22302 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 22303 |   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 22304 |   ac_status=$? | 
 | 22305 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22306 |   (exit $ac_status); } | 
 | 22307 |         then | 
 | 22308 | 	  archive_cmds_need_lc_GCJ=no | 
 | 22309 |         else | 
 | 22310 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 22311 |         fi | 
 | 22312 |         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
 | 22313 |       else | 
 | 22314 |         cat conftest.err 1>&5 | 
 | 22315 |       fi | 
 | 22316 |       $rm conftest* | 
 | 22317 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
 | 22318 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 
 | 22319 |       ;; | 
 | 22320 |     esac | 
 | 22321 |   fi | 
 | 22322 |   ;; | 
 | 22323 | esac | 
 | 22324 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22325 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 22326 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 22327 | library_names_spec= | 
 | 22328 | libname_spec='lib$name' | 
 | 22329 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22330 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22331 | postinstall_cmds= | 
 | 22332 | postuninstall_cmds= | 
 | 22333 | finish_cmds= | 
 | 22334 | finish_eval= | 
 | 22335 | shlibpath_var= | 
 | 22336 | shlibpath_overrides_runpath=unknown | 
 | 22337 | version_type=none | 
 | 22338 | dynamic_linker="$host_os ld.so" | 
 | 22339 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 22340 | if test "$GCC" = yes; then | 
 | 22341 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 22342 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 22343 |     # if the path contains ";" then we assume it to be the separator | 
 | 22344 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 22345 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 22346 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 22347 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 22348 |   else | 
 | 22349 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 22350 |   fi | 
 | 22351 | else | 
 | 22352 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 22353 | fi | 
 | 22354 | need_lib_prefix=unknown | 
 | 22355 | hardcode_into_libs=no | 
 | 22356 |  | 
 | 22357 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 22358 | # flags to be left without arguments | 
 | 22359 | need_version=unknown | 
 | 22360 |  | 
 | 22361 | case $host_os in | 
 | 22362 | aix3*) | 
 | 22363 |   version_type=linux | 
 | 22364 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 22365 |   shlibpath_var=LIBPATH | 
 | 22366 |  | 
 | 22367 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 22368 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22369 |   ;; | 
 | 22370 |  | 
 | 22371 | aix4* | aix5*) | 
 | 22372 |   version_type=linux | 
 | 22373 |   need_lib_prefix=no | 
 | 22374 |   need_version=no | 
 | 22375 |   hardcode_into_libs=yes | 
 | 22376 |   if test "$host_cpu" = ia64; then | 
 | 22377 |     # AIX 5 supports IA64 | 
 | 22378 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 22379 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 22380 |   else | 
 | 22381 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 22382 |     # for dependence libraries.  The import file would start with | 
 | 22383 |     # the line `#! .'.  This would cause the generated library to | 
 | 22384 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 22385 |     # development snapshots of GCC prior to 3.0. | 
 | 22386 |     case $host_os in | 
 | 22387 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 22388 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 22389 | 	   echo ' yes ' | 
 | 22390 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 22391 | 	: | 
 | 22392 |       else | 
 | 22393 | 	can_build_shared=no | 
 | 22394 |       fi | 
 | 22395 |       ;; | 
 | 22396 |     esac | 
 | 22397 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 22398 |     # soname into executable. Probably we can add versioning support to | 
 | 22399 |     # collect2, so additional links can be useful in future. | 
 | 22400 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 22401 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 22402 |       # instead of lib<name>.a to let people know that these are not | 
 | 22403 |       # typical AIX shared libraries. | 
 | 22404 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22405 |     else | 
 | 22406 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 22407 |       # and later when we are not doing run time linking. | 
 | 22408 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 22409 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22410 |     fi | 
 | 22411 |     shlibpath_var=LIBPATH | 
 | 22412 |   fi | 
 | 22413 |   ;; | 
 | 22414 |  | 
 | 22415 | amigaos*) | 
 | 22416 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 22417 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22418 |   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] | 22419 |   ;; | 
 | 22420 |  | 
 | 22421 | beos*) | 
 | 22422 |   library_names_spec='${libname}${shared_ext}' | 
 | 22423 |   dynamic_linker="$host_os ld.so" | 
 | 22424 |   shlibpath_var=LIBRARY_PATH | 
 | 22425 |   ;; | 
 | 22426 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22427 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22428 |   version_type=linux | 
 | 22429 |   need_version=no | 
 | 22430 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22431 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22432 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 22433 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22434 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 22435 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 22436 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 22437 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 22438 |   # libtool to hard-code these into programs | 
 | 22439 |   ;; | 
 | 22440 |  | 
 | 22441 | cygwin* | mingw* | pw32*) | 
 | 22442 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22443 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22444 |   need_version=no | 
 | 22445 |   need_lib_prefix=no | 
 | 22446 |  | 
 | 22447 |   case $GCC,$host_os in | 
 | 22448 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 22449 |     library_names_spec='$libname.dll.a' | 
 | 22450 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22451 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 22452 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 22453 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 22454 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22455 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22456 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 22457 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22458 |        $rm \$dlpath' | 
 | 22459 |     shlibpath_overrides_runpath=yes | 
 | 22460 |  | 
 | 22461 |     case $host_os in | 
 | 22462 |     cygwin*) | 
 | 22463 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 22464 |       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] | 22465 |       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] | 22466 |       ;; | 
 | 22467 |     mingw*) | 
 | 22468 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 22469 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 22470 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 22471 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 22472 |         # It is most probably a Windows format PATH printed by | 
 | 22473 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 22474 |         # path with ; separators, and with drive letters. We can handle the | 
 | 22475 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 22476 |         # especially as we might pass files found there to a mingw objdump, | 
 | 22477 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 22478 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 22479 |       else | 
 | 22480 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 22481 |       fi | 
 | 22482 |       ;; | 
 | 22483 |     pw32*) | 
 | 22484 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 22485 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 22486 |       ;; | 
 | 22487 |     esac | 
 | 22488 |     ;; | 
 | 22489 |  | 
 | 22490 |   *) | 
 | 22491 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 22492 |     ;; | 
 | 22493 |   esac | 
 | 22494 |   dynamic_linker='Win32 ld.exe' | 
 | 22495 |   # FIXME: first we should search . and the directory the executable is in | 
 | 22496 |   shlibpath_var=PATH | 
 | 22497 |   ;; | 
 | 22498 |  | 
 | 22499 | darwin* | rhapsody*) | 
 | 22500 |   dynamic_linker="$host_os dyld" | 
 | 22501 |   version_type=darwin | 
 | 22502 |   need_lib_prefix=no | 
 | 22503 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22504 |   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] | 22505 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 22506 |   shlibpath_overrides_runpath=yes | 
 | 22507 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22508 |   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22509 |   # 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] | 22510 |   if test "$GCC" = yes; then | 
 | 22511 |     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"` | 
 | 22512 |   else | 
 | 22513 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22514 |   fi | 
 | 22515 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 22516 |   ;; | 
 | 22517 |  | 
 | 22518 | dgux*) | 
 | 22519 |   version_type=linux | 
 | 22520 |   need_lib_prefix=no | 
 | 22521 |   need_version=no | 
 | 22522 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 22523 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22524 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22525 |   ;; | 
 | 22526 |  | 
 | 22527 | freebsd1*) | 
 | 22528 |   dynamic_linker=no | 
 | 22529 |   ;; | 
 | 22530 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22531 | kfreebsd*-gnu) | 
 | 22532 |   version_type=linux | 
 | 22533 |   need_lib_prefix=no | 
 | 22534 |   need_version=no | 
 | 22535 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 22536 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22537 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22538 |   shlibpath_overrides_runpath=no | 
 | 22539 |   hardcode_into_libs=yes | 
 | 22540 |   dynamic_linker='GNU ld.so' | 
 | 22541 |   ;; | 
 | 22542 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22543 | freebsd*) | 
 | 22544 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 22545 |   version_type=freebsd-$objformat | 
 | 22546 |   case $version_type in | 
 | 22547 |     freebsd-elf*) | 
 | 22548 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 22549 |       need_version=no | 
 | 22550 |       need_lib_prefix=no | 
 | 22551 |       ;; | 
 | 22552 |     freebsd-*) | 
 | 22553 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 22554 |       need_version=yes | 
 | 22555 |       ;; | 
 | 22556 |   esac | 
 | 22557 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22558 |   case $host_os in | 
 | 22559 |   freebsd2*) | 
 | 22560 |     shlibpath_overrides_runpath=yes | 
 | 22561 |     ;; | 
 | 22562 |   freebsd3.01* | freebsdelf3.01*) | 
 | 22563 |     shlibpath_overrides_runpath=yes | 
 | 22564 |     hardcode_into_libs=yes | 
 | 22565 |     ;; | 
 | 22566 |   *) # from 3.2 on | 
 | 22567 |     shlibpath_overrides_runpath=no | 
 | 22568 |     hardcode_into_libs=yes | 
 | 22569 |     ;; | 
 | 22570 |   esac | 
 | 22571 |   ;; | 
 | 22572 |  | 
 | 22573 | gnu*) | 
 | 22574 |   version_type=linux | 
 | 22575 |   need_lib_prefix=no | 
 | 22576 |   need_version=no | 
 | 22577 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 22578 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22579 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22580 |   hardcode_into_libs=yes | 
 | 22581 |   ;; | 
 | 22582 |  | 
 | 22583 | hpux9* | hpux10* | hpux11*) | 
 | 22584 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 22585 |   # link against other versions. | 
 | 22586 |   version_type=sunos | 
 | 22587 |   need_lib_prefix=no | 
 | 22588 |   need_version=no | 
 | 22589 |   case "$host_cpu" in | 
 | 22590 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22591 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22592 |     hardcode_into_libs=yes | 
 | 22593 |     dynamic_linker="$host_os dld.so" | 
 | 22594 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 22595 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 22596 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22597 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22598 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 22599 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 22600 |     else | 
 | 22601 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 22602 |     fi | 
 | 22603 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 22604 |     ;; | 
 | 22605 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22606 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22607 |      hardcode_into_libs=yes | 
 | 22608 |      dynamic_linker="$host_os dld.sl" | 
 | 22609 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 22610 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 22611 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22612 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22613 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 22614 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 22615 |      ;; | 
 | 22616 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22617 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22618 |     dynamic_linker="$host_os dld.sl" | 
 | 22619 |     shlibpath_var=SHLIB_PATH | 
 | 22620 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 22621 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22622 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22623 |     ;; | 
 | 22624 |   esac | 
 | 22625 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 22626 |   postinstall_cmds='chmod 555 $lib' | 
 | 22627 |   ;; | 
 | 22628 |  | 
 | 22629 | irix5* | irix6* | nonstopux*) | 
 | 22630 |   case $host_os in | 
 | 22631 |     nonstopux*) version_type=nonstopux ;; | 
 | 22632 |     *) | 
 | 22633 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 22634 | 		version_type=linux | 
 | 22635 | 	else | 
 | 22636 | 		version_type=irix | 
 | 22637 | 	fi ;; | 
 | 22638 |   esac | 
 | 22639 |   need_lib_prefix=no | 
 | 22640 |   need_version=no | 
 | 22641 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22642 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 22643 |   case $host_os in | 
 | 22644 |   irix5* | nonstopux*) | 
 | 22645 |     libsuff= shlibsuff= | 
 | 22646 |     ;; | 
 | 22647 |   *) | 
 | 22648 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 22649 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 22650 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 22651 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 22652 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 22653 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 22654 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 22655 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 22656 |     esac | 
 | 22657 |     ;; | 
 | 22658 |   esac | 
 | 22659 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 22660 |   shlibpath_overrides_runpath=no | 
 | 22661 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 22662 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 22663 |   hardcode_into_libs=yes | 
 | 22664 |   ;; | 
 | 22665 |  | 
 | 22666 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 22667 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 22668 |   dynamic_linker=no | 
 | 22669 |   ;; | 
 | 22670 |  | 
 | 22671 | # This must be Linux ELF. | 
 | 22672 | linux*) | 
 | 22673 |   version_type=linux | 
 | 22674 |   need_lib_prefix=no | 
 | 22675 |   need_version=no | 
 | 22676 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22677 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22678 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 22679 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22680 |   shlibpath_overrides_runpath=no | 
 | 22681 |   # This implies no fast_install, which is unacceptable. | 
 | 22682 |   # Some rework will be needed to allow for fast_install | 
 | 22683 |   # before this can be enabled. | 
 | 22684 |   hardcode_into_libs=yes | 
 | 22685 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22686 |   # Append ld.so.conf contents to the search path | 
 | 22687 |   if test -f /etc/ld.so.conf; then | 
 | 22688 |     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | 
 | 22689 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 22690 |   fi | 
 | 22691 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22692 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 22693 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 22694 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 22695 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 22696 |   # people can always --disable-shared, the test was removed, and we | 
 | 22697 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 22698 |   dynamic_linker='GNU/Linux ld.so' | 
 | 22699 |   ;; | 
 | 22700 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22701 | knetbsd*-gnu) | 
 | 22702 |   version_type=linux | 
 | 22703 |   need_lib_prefix=no | 
 | 22704 |   need_version=no | 
 | 22705 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 22706 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22707 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22708 |   shlibpath_overrides_runpath=no | 
 | 22709 |   hardcode_into_libs=yes | 
 | 22710 |   dynamic_linker='GNU ld.so' | 
 | 22711 |   ;; | 
 | 22712 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22713 | netbsd*) | 
 | 22714 |   version_type=sunos | 
 | 22715 |   need_lib_prefix=no | 
 | 22716 |   need_version=no | 
 | 22717 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 22718 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 22719 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 22720 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 22721 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22722 |     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] | 22723 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22724 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 22725 |   fi | 
 | 22726 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22727 |   shlibpath_overrides_runpath=yes | 
 | 22728 |   hardcode_into_libs=yes | 
 | 22729 |   ;; | 
 | 22730 |  | 
 | 22731 | newsos6) | 
 | 22732 |   version_type=linux | 
 | 22733 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22734 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22735 |   shlibpath_overrides_runpath=yes | 
 | 22736 |   ;; | 
 | 22737 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22738 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22739 |   version_type=linux | 
 | 22740 |   need_lib_prefix=no | 
 | 22741 |   need_version=no | 
 | 22742 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22743 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22744 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22745 |   shlibpath_overrides_runpath=yes | 
 | 22746 |   ;; | 
 | 22747 |  | 
 | 22748 | openbsd*) | 
 | 22749 |   version_type=sunos | 
 | 22750 |   need_lib_prefix=no | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 22751 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22752 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 22753 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 22754 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22755 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 22756 |     case $host_os in | 
 | 22757 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 22758 | 	shlibpath_overrides_runpath=no | 
 | 22759 | 	;; | 
 | 22760 |       *) | 
 | 22761 | 	shlibpath_overrides_runpath=yes | 
 | 22762 | 	;; | 
 | 22763 |       esac | 
 | 22764 |   else | 
 | 22765 |     shlibpath_overrides_runpath=yes | 
 | 22766 |   fi | 
 | 22767 |   ;; | 
 | 22768 |  | 
 | 22769 | os2*) | 
 | 22770 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22771 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22772 |   need_lib_prefix=no | 
 | 22773 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 22774 |   dynamic_linker='OS/2 ld.exe' | 
 | 22775 |   shlibpath_var=LIBPATH | 
 | 22776 |   ;; | 
 | 22777 |  | 
 | 22778 | osf3* | osf4* | osf5*) | 
 | 22779 |   version_type=osf | 
 | 22780 |   need_lib_prefix=no | 
 | 22781 |   need_version=no | 
 | 22782 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22783 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22784 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22785 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 22786 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 22787 |   ;; | 
 | 22788 |  | 
 | 22789 | sco3.2v5*) | 
 | 22790 |   version_type=osf | 
 | 22791 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22792 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22793 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22794 |   ;; | 
 | 22795 |  | 
 | 22796 | solaris*) | 
 | 22797 |   version_type=linux | 
 | 22798 |   need_lib_prefix=no | 
 | 22799 |   need_version=no | 
 | 22800 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22801 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22802 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22803 |   shlibpath_overrides_runpath=yes | 
 | 22804 |   hardcode_into_libs=yes | 
 | 22805 |   # ldd complains unless libraries are executable | 
 | 22806 |   postinstall_cmds='chmod +x $lib' | 
 | 22807 |   ;; | 
 | 22808 |  | 
 | 22809 | sunos4*) | 
 | 22810 |   version_type=sunos | 
 | 22811 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 22812 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 22813 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22814 |   shlibpath_overrides_runpath=yes | 
 | 22815 |   if test "$with_gnu_ld" = yes; then | 
 | 22816 |     need_lib_prefix=no | 
 | 22817 |   fi | 
 | 22818 |   need_version=yes | 
 | 22819 |   ;; | 
 | 22820 |  | 
 | 22821 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 22822 |   version_type=linux | 
 | 22823 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22824 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22825 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22826 |   case $host_vendor in | 
 | 22827 |     sni) | 
 | 22828 |       shlibpath_overrides_runpath=no | 
 | 22829 |       need_lib_prefix=no | 
 | 22830 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 22831 |       runpath_var=LD_RUN_PATH | 
 | 22832 |       ;; | 
 | 22833 |     siemens) | 
 | 22834 |       need_lib_prefix=no | 
 | 22835 |       ;; | 
 | 22836 |     motorola) | 
 | 22837 |       need_lib_prefix=no | 
 | 22838 |       need_version=no | 
 | 22839 |       shlibpath_overrides_runpath=no | 
 | 22840 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 22841 |       ;; | 
 | 22842 |   esac | 
 | 22843 |   ;; | 
 | 22844 |  | 
 | 22845 | sysv4*MP*) | 
 | 22846 |   if test -d /usr/nec ;then | 
 | 22847 |     version_type=linux | 
 | 22848 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 22849 |     soname_spec='$libname${shared_ext}.$major' | 
 | 22850 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 22851 |   fi | 
 | 22852 |   ;; | 
 | 22853 |  | 
 | 22854 | uts4*) | 
 | 22855 |   version_type=linux | 
 | 22856 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 22857 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 22858 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 22859 |   ;; | 
 | 22860 |  | 
 | 22861 | *) | 
 | 22862 |   dynamic_linker=no | 
 | 22863 |   ;; | 
 | 22864 | esac | 
 | 22865 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 22866 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 22867 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 22868 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22869 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 22870 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 22871 | hardcode_action_GCJ= | 
 | 22872 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
 | 22873 |    test -n "$runpath_var_GCJ" || \ | 
 | 22874 |    test "X$hardcode_automatic_GCJ" = "Xyes" ; then | 
 | 22875 |  | 
 | 22876 |   # We can hardcode non-existant directories. | 
 | 22877 |   if test "$hardcode_direct_GCJ" != no && | 
 | 22878 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 22879 |      # have to relink, otherwise we might link with an installed library | 
 | 22880 |      # when we should be linking with a yet-to-be-installed one | 
 | 22881 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
 | 22882 |      test "$hardcode_minus_L_GCJ" != no; then | 
 | 22883 |     # Linking always hardcodes the temporary library directory. | 
 | 22884 |     hardcode_action_GCJ=relink | 
 | 22885 |   else | 
 | 22886 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 22887 |     hardcode_action_GCJ=immediate | 
 | 22888 |   fi | 
 | 22889 | else | 
 | 22890 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 22891 |   # directories. | 
 | 22892 |   hardcode_action_GCJ=unsupported | 
 | 22893 | fi | 
 | 22894 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
 | 22895 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 
 | 22896 |  | 
 | 22897 | if test "$hardcode_action_GCJ" = relink; then | 
 | 22898 |   # Fast installation is not supported | 
 | 22899 |   enable_fast_install=no | 
 | 22900 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 22901 |      test "$enable_shared" = no; then | 
 | 22902 |   # Fast installation is not necessary | 
 | 22903 |   enable_fast_install=needless | 
 | 22904 | fi | 
 | 22905 |  | 
 | 22906 | striplib= | 
 | 22907 | old_striplib= | 
 | 22908 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 22909 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 22910 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 22911 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 22912 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 22913 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 22914 | echo "${ECHO_T}yes" >&6 | 
 | 22915 | else | 
 | 22916 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 22917 |   case $host_os in | 
 | 22918 |    darwin*) | 
 | 22919 |        if test -n "$STRIP" ; then | 
 | 22920 |          striplib="$STRIP -x" | 
 | 22921 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 22922 | echo "${ECHO_T}yes" >&6 | 
 | 22923 |        else | 
 | 22924 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 22925 | echo "${ECHO_T}no" >&6 | 
 | 22926 | fi | 
 | 22927 |        ;; | 
 | 22928 |    *) | 
 | 22929 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 22930 | echo "${ECHO_T}no" >&6 | 
 | 22931 |     ;; | 
 | 22932 |   esac | 
 | 22933 | fi | 
 | 22934 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22935 | if test "x$enable_dlopen" != xyes; then | 
 | 22936 |   enable_dlopen=unknown | 
 | 22937 |   enable_dlopen_self=unknown | 
 | 22938 |   enable_dlopen_self_static=unknown | 
 | 22939 | else | 
 | 22940 |   lt_cv_dlopen=no | 
 | 22941 |   lt_cv_dlopen_libs= | 
 | 22942 |  | 
 | 22943 |   case $host_os in | 
 | 22944 |   beos*) | 
 | 22945 |     lt_cv_dlopen="load_add_on" | 
 | 22946 |     lt_cv_dlopen_libs= | 
 | 22947 |     lt_cv_dlopen_self=yes | 
 | 22948 |     ;; | 
 | 22949 |  | 
 | 22950 |   mingw* | pw32*) | 
 | 22951 |     lt_cv_dlopen="LoadLibrary" | 
 | 22952 |     lt_cv_dlopen_libs= | 
 | 22953 |    ;; | 
 | 22954 |  | 
 | 22955 |   cygwin*) | 
 | 22956 |     lt_cv_dlopen="dlopen" | 
 | 22957 |     lt_cv_dlopen_libs= | 
 | 22958 |    ;; | 
 | 22959 |  | 
 | 22960 |   darwin*) | 
 | 22961 |   # if libdl is installed we need to link against it | 
 | 22962 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 22963 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 22964 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 22965 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22966 | else | 
 | 22967 |   ac_check_lib_save_LIBS=$LIBS | 
 | 22968 | LIBS="-ldl  $LIBS" | 
 | 22969 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22970 | /* confdefs.h.  */ | 
 | 22971 | _ACEOF | 
 | 22972 | cat confdefs.h >>conftest.$ac_ext | 
 | 22973 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 22974 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22975 |  | 
 | 22976 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 22977 | #ifdef __cplusplus | 
 | 22978 | extern "C" | 
 | 22979 | #endif | 
 | 22980 | /* We use char because int might match the return type of a gcc2 | 
 | 22981 |    builtin and then its argument prototype would still apply.  */ | 
 | 22982 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22983 | int | 
 | 22984 | main () | 
 | 22985 | { | 
 | 22986 | dlopen (); | 
 | 22987 |   ; | 
 | 22988 |   return 0; | 
 | 22989 | } | 
 | 22990 | _ACEOF | 
 | 22991 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 22992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22993 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22994 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22995 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22996 |   rm -f conftest.er1 | 
 | 22997 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22998 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22999 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23000 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23001 | 			 || test ! -s conftest.err' | 
 | 23002 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23003 |   (eval $ac_try) 2>&5 | 
 | 23004 |   ac_status=$? | 
 | 23005 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23006 |   (exit $ac_status); }; } && | 
 | 23007 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23008 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23009 |   (eval $ac_try) 2>&5 | 
 | 23010 |   ac_status=$? | 
 | 23011 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23012 |   (exit $ac_status); }; }; then | 
 | 23013 |   ac_cv_lib_dl_dlopen=yes | 
 | 23014 | else | 
 | 23015 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23016 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23017 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23018 | ac_cv_lib_dl_dlopen=no | 
 | 23019 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23020 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23021 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23022 | LIBS=$ac_check_lib_save_LIBS | 
 | 23023 | fi | 
 | 23024 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 23025 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 23026 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 23027 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 23028 | else | 
 | 23029 |  | 
 | 23030 |     lt_cv_dlopen="dyld" | 
 | 23031 |     lt_cv_dlopen_libs= | 
 | 23032 |     lt_cv_dlopen_self=yes | 
 | 23033 |  | 
 | 23034 | fi | 
 | 23035 |  | 
 | 23036 |    ;; | 
 | 23037 |  | 
 | 23038 |   *) | 
 | 23039 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 23040 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 23041 | if test "${ac_cv_func_shl_load+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.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23050 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 23051 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23052 | #define shl_load innocuous_shl_load | 
 | 23053 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23054 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23055 |     which can conflict with char shl_load (); below. | 
 | 23056 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23057 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23058 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23059 | #ifdef __STDC__ | 
 | 23060 | # include <limits.h> | 
 | 23061 | #else | 
 | 23062 | # include <assert.h> | 
 | 23063 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23064 |  | 
 | 23065 | #undef shl_load | 
 | 23066 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23067 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23068 | #ifdef __cplusplus | 
 | 23069 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23070 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23071 | #endif | 
 | 23072 | /* We use char because int might match the return type of a gcc2 | 
 | 23073 |    builtin and then its argument prototype would still apply.  */ | 
 | 23074 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23075 | /* The GNU C library defines this for functions which it implements | 
 | 23076 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23077 |     something starting with __ and the normal name is an alias.  */ | 
 | 23078 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 23079 | choke me | 
 | 23080 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23081 | char (*f) () = shl_load; | 
 | 23082 | #endif | 
 | 23083 | #ifdef __cplusplus | 
 | 23084 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23085 | #endif | 
 | 23086 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23087 | int | 
 | 23088 | main () | 
 | 23089 | { | 
 | 23090 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23091 |   ; | 
 | 23092 |   return 0; | 
 | 23093 | } | 
 | 23094 | _ACEOF | 
 | 23095 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23097 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23098 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23099 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23100 |   rm -f conftest.er1 | 
 | 23101 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23102 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23103 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23104 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23105 | 			 || test ! -s conftest.err' | 
 | 23106 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23107 |   (eval $ac_try) 2>&5 | 
 | 23108 |   ac_status=$? | 
 | 23109 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23110 |   (exit $ac_status); }; } && | 
 | 23111 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23112 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23113 |   (eval $ac_try) 2>&5 | 
 | 23114 |   ac_status=$? | 
 | 23115 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23116 |   (exit $ac_status); }; }; then | 
 | 23117 |   ac_cv_func_shl_load=yes | 
 | 23118 | else | 
 | 23119 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23120 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23121 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23122 | ac_cv_func_shl_load=no | 
 | 23123 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23124 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23125 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23126 | fi | 
 | 23127 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 23128 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 23129 | if test $ac_cv_func_shl_load = yes; then | 
 | 23130 |   lt_cv_dlopen="shl_load" | 
 | 23131 | else | 
 | 23132 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 23133 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 23134 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 23135 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23136 | else | 
 | 23137 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23138 | LIBS="-ldld  $LIBS" | 
 | 23139 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23140 | /* confdefs.h.  */ | 
 | 23141 | _ACEOF | 
 | 23142 | cat confdefs.h >>conftest.$ac_ext | 
 | 23143 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23144 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23145 |  | 
 | 23146 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23147 | #ifdef __cplusplus | 
 | 23148 | extern "C" | 
 | 23149 | #endif | 
 | 23150 | /* We use char because int might match the return type of a gcc2 | 
 | 23151 |    builtin and then its argument prototype would still apply.  */ | 
 | 23152 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23153 | int | 
 | 23154 | main () | 
 | 23155 | { | 
 | 23156 | shl_load (); | 
 | 23157 |   ; | 
 | 23158 |   return 0; | 
 | 23159 | } | 
 | 23160 | _ACEOF | 
 | 23161 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23163 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23164 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23165 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23166 |   rm -f conftest.er1 | 
 | 23167 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23168 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23169 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23170 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23171 | 			 || test ! -s conftest.err' | 
 | 23172 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23173 |   (eval $ac_try) 2>&5 | 
 | 23174 |   ac_status=$? | 
 | 23175 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23176 |   (exit $ac_status); }; } && | 
 | 23177 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23178 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23179 |   (eval $ac_try) 2>&5 | 
 | 23180 |   ac_status=$? | 
 | 23181 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23182 |   (exit $ac_status); }; }; then | 
 | 23183 |   ac_cv_lib_dld_shl_load=yes | 
 | 23184 | else | 
 | 23185 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23186 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23187 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23188 | ac_cv_lib_dld_shl_load=no | 
 | 23189 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23190 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23191 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23192 | LIBS=$ac_check_lib_save_LIBS | 
 | 23193 | fi | 
 | 23194 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 23195 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 23196 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 23197 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 23198 | else | 
 | 23199 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 23200 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 23201 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 23202 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23203 | else | 
 | 23204 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23205 | /* confdefs.h.  */ | 
 | 23206 | _ACEOF | 
 | 23207 | cat confdefs.h >>conftest.$ac_ext | 
 | 23208 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23209 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23210 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 23211 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 23212 | #define dlopen innocuous_dlopen | 
 | 23213 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23214 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23215 |     which can conflict with char dlopen (); below. | 
 | 23216 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 23217 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23218 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23219 | #ifdef __STDC__ | 
 | 23220 | # include <limits.h> | 
 | 23221 | #else | 
 | 23222 | # include <assert.h> | 
 | 23223 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23224 |  | 
 | 23225 | #undef dlopen | 
 | 23226 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23227 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23228 | #ifdef __cplusplus | 
 | 23229 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23230 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23231 | #endif | 
 | 23232 | /* We use char because int might match the return type of a gcc2 | 
 | 23233 |    builtin and then its argument prototype would still apply.  */ | 
 | 23234 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23235 | /* The GNU C library defines this for functions which it implements | 
 | 23236 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 23237 |     something starting with __ and the normal name is an alias.  */ | 
 | 23238 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 23239 | choke me | 
 | 23240 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23241 | char (*f) () = dlopen; | 
 | 23242 | #endif | 
 | 23243 | #ifdef __cplusplus | 
 | 23244 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23245 | #endif | 
 | 23246 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23247 | int | 
 | 23248 | main () | 
 | 23249 | { | 
 | 23250 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23251 |   ; | 
 | 23252 |   return 0; | 
 | 23253 | } | 
 | 23254 | _ACEOF | 
 | 23255 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23257 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23258 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23259 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23260 |   rm -f conftest.er1 | 
 | 23261 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23262 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23263 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23264 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23265 | 			 || test ! -s conftest.err' | 
 | 23266 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23267 |   (eval $ac_try) 2>&5 | 
 | 23268 |   ac_status=$? | 
 | 23269 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23270 |   (exit $ac_status); }; } && | 
 | 23271 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23272 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23273 |   (eval $ac_try) 2>&5 | 
 | 23274 |   ac_status=$? | 
 | 23275 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23276 |   (exit $ac_status); }; }; then | 
 | 23277 |   ac_cv_func_dlopen=yes | 
 | 23278 | else | 
 | 23279 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23280 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23281 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23282 | ac_cv_func_dlopen=no | 
 | 23283 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23284 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23285 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23286 | fi | 
 | 23287 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 23288 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 23289 | if test $ac_cv_func_dlopen = yes; then | 
 | 23290 |   lt_cv_dlopen="dlopen" | 
 | 23291 | else | 
 | 23292 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 23293 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 23294 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 23295 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23296 | else | 
 | 23297 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23298 | LIBS="-ldl  $LIBS" | 
 | 23299 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23300 | /* confdefs.h.  */ | 
 | 23301 | _ACEOF | 
 | 23302 | cat confdefs.h >>conftest.$ac_ext | 
 | 23303 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23304 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23305 |  | 
 | 23306 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23307 | #ifdef __cplusplus | 
 | 23308 | extern "C" | 
 | 23309 | #endif | 
 | 23310 | /* We use char because int might match the return type of a gcc2 | 
 | 23311 |    builtin and then its argument prototype would still apply.  */ | 
 | 23312 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23313 | int | 
 | 23314 | main () | 
 | 23315 | { | 
 | 23316 | dlopen (); | 
 | 23317 |   ; | 
 | 23318 |   return 0; | 
 | 23319 | } | 
 | 23320 | _ACEOF | 
 | 23321 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23323 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23324 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23325 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23326 |   rm -f conftest.er1 | 
 | 23327 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23328 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23329 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23330 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23331 | 			 || test ! -s conftest.err' | 
 | 23332 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23333 |   (eval $ac_try) 2>&5 | 
 | 23334 |   ac_status=$? | 
 | 23335 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23336 |   (exit $ac_status); }; } && | 
 | 23337 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23338 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23339 |   (eval $ac_try) 2>&5 | 
 | 23340 |   ac_status=$? | 
 | 23341 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23342 |   (exit $ac_status); }; }; then | 
 | 23343 |   ac_cv_lib_dl_dlopen=yes | 
 | 23344 | else | 
 | 23345 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23346 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23347 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23348 | ac_cv_lib_dl_dlopen=no | 
 | 23349 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23350 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23351 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23352 | LIBS=$ac_check_lib_save_LIBS | 
 | 23353 | fi | 
 | 23354 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 23355 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 23356 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 23357 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 23358 | else | 
 | 23359 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 23360 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 23361 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 23362 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23363 | else | 
 | 23364 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23365 | LIBS="-lsvld  $LIBS" | 
 | 23366 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23367 | /* confdefs.h.  */ | 
 | 23368 | _ACEOF | 
 | 23369 | cat confdefs.h >>conftest.$ac_ext | 
 | 23370 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23371 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23372 |  | 
 | 23373 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23374 | #ifdef __cplusplus | 
 | 23375 | extern "C" | 
 | 23376 | #endif | 
 | 23377 | /* We use char because int might match the return type of a gcc2 | 
 | 23378 |    builtin and then its argument prototype would still apply.  */ | 
 | 23379 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23380 | int | 
 | 23381 | main () | 
 | 23382 | { | 
 | 23383 | dlopen (); | 
 | 23384 |   ; | 
 | 23385 |   return 0; | 
 | 23386 | } | 
 | 23387 | _ACEOF | 
 | 23388 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23390 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23391 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23392 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23393 |   rm -f conftest.er1 | 
 | 23394 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23395 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23396 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23397 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23398 | 			 || test ! -s conftest.err' | 
 | 23399 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23400 |   (eval $ac_try) 2>&5 | 
 | 23401 |   ac_status=$? | 
 | 23402 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23403 |   (exit $ac_status); }; } && | 
 | 23404 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23405 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23406 |   (eval $ac_try) 2>&5 | 
 | 23407 |   ac_status=$? | 
 | 23408 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23409 |   (exit $ac_status); }; }; then | 
 | 23410 |   ac_cv_lib_svld_dlopen=yes | 
 | 23411 | else | 
 | 23412 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23413 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23414 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23415 | ac_cv_lib_svld_dlopen=no | 
 | 23416 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23417 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23418 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23419 | LIBS=$ac_check_lib_save_LIBS | 
 | 23420 | fi | 
 | 23421 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 23422 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 23423 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 23424 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 23425 | else | 
 | 23426 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 23427 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 23428 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 23429 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23430 | else | 
 | 23431 |   ac_check_lib_save_LIBS=$LIBS | 
 | 23432 | LIBS="-ldld  $LIBS" | 
 | 23433 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23434 | /* confdefs.h.  */ | 
 | 23435 | _ACEOF | 
 | 23436 | cat confdefs.h >>conftest.$ac_ext | 
 | 23437 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 23438 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23439 |  | 
 | 23440 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 23441 | #ifdef __cplusplus | 
 | 23442 | extern "C" | 
 | 23443 | #endif | 
 | 23444 | /* We use char because int might match the return type of a gcc2 | 
 | 23445 |    builtin and then its argument prototype would still apply.  */ | 
 | 23446 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23447 | int | 
 | 23448 | main () | 
 | 23449 | { | 
 | 23450 | dld_link (); | 
 | 23451 |   ; | 
 | 23452 |   return 0; | 
 | 23453 | } | 
 | 23454 | _ACEOF | 
 | 23455 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 23456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23457 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23458 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23459 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 23460 |   rm -f conftest.er1 | 
 | 23461 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23462 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23463 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23464 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 23465 | 			 || test ! -s conftest.err' | 
 | 23466 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23467 |   (eval $ac_try) 2>&5 | 
 | 23468 |   ac_status=$? | 
 | 23469 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23470 |   (exit $ac_status); }; } && | 
 | 23471 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23472 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 23473 |   (eval $ac_try) 2>&5 | 
 | 23474 |   ac_status=$? | 
 | 23475 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23476 |   (exit $ac_status); }; }; then | 
 | 23477 |   ac_cv_lib_dld_dld_link=yes | 
 | 23478 | else | 
 | 23479 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23480 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 23481 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23482 | ac_cv_lib_dld_dld_link=no | 
 | 23483 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23484 | rm -f conftest.err conftest.$ac_objext \ | 
 | 23485 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23486 | LIBS=$ac_check_lib_save_LIBS | 
 | 23487 | fi | 
 | 23488 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 23489 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 23490 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 23491 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 23492 | fi | 
 | 23493 |  | 
 | 23494 |  | 
 | 23495 | fi | 
 | 23496 |  | 
 | 23497 |  | 
 | 23498 | fi | 
 | 23499 |  | 
 | 23500 |  | 
 | 23501 | fi | 
 | 23502 |  | 
 | 23503 |  | 
 | 23504 | fi | 
 | 23505 |  | 
 | 23506 |  | 
 | 23507 | fi | 
 | 23508 |  | 
 | 23509 |     ;; | 
 | 23510 |   esac | 
 | 23511 |  | 
 | 23512 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 23513 |     enable_dlopen=yes | 
 | 23514 |   else | 
 | 23515 |     enable_dlopen=no | 
 | 23516 |   fi | 
 | 23517 |  | 
 | 23518 |   case $lt_cv_dlopen in | 
 | 23519 |   dlopen) | 
 | 23520 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 23521 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 23522 |  | 
 | 23523 |     save_LDFLAGS="$LDFLAGS" | 
 | 23524 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 23525 |  | 
 | 23526 |     save_LIBS="$LIBS" | 
 | 23527 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 23528 |  | 
 | 23529 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 23530 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 23531 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 23532 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23533 | else | 
 | 23534 |   	  if test "$cross_compiling" = yes; then : | 
 | 23535 |   lt_cv_dlopen_self=cross | 
 | 23536 | else | 
 | 23537 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 23538 |   lt_status=$lt_dlunknown | 
 | 23539 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 23540 | #line 23540 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23541 | #include "confdefs.h" | 
 | 23542 |  | 
 | 23543 | #if HAVE_DLFCN_H | 
 | 23544 | #include <dlfcn.h> | 
 | 23545 | #endif | 
 | 23546 |  | 
 | 23547 | #include <stdio.h> | 
 | 23548 |  | 
 | 23549 | #ifdef RTLD_GLOBAL | 
 | 23550 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 23551 | #else | 
 | 23552 | #  ifdef DL_GLOBAL | 
 | 23553 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 23554 | #  else | 
 | 23555 | #    define LT_DLGLOBAL		0 | 
 | 23556 | #  endif | 
 | 23557 | #endif | 
 | 23558 |  | 
 | 23559 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 23560 |    find out it does not work in some platform. */ | 
 | 23561 | #ifndef LT_DLLAZY_OR_NOW | 
 | 23562 | #  ifdef RTLD_LAZY | 
 | 23563 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 23564 | #  else | 
 | 23565 | #    ifdef DL_LAZY | 
 | 23566 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 23567 | #    else | 
 | 23568 | #      ifdef RTLD_NOW | 
 | 23569 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 23570 | #      else | 
 | 23571 | #        ifdef DL_NOW | 
 | 23572 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 23573 | #        else | 
 | 23574 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 23575 | #        endif | 
 | 23576 | #      endif | 
 | 23577 | #    endif | 
 | 23578 | #  endif | 
 | 23579 | #endif | 
 | 23580 |  | 
 | 23581 | #ifdef __cplusplus | 
 | 23582 | extern "C" void exit (int); | 
 | 23583 | #endif | 
 | 23584 |  | 
 | 23585 | void fnord() { int i=42;} | 
 | 23586 | int main () | 
 | 23587 | { | 
 | 23588 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 23589 |   int status = $lt_dlunknown; | 
 | 23590 |  | 
 | 23591 |   if (self) | 
 | 23592 |     { | 
 | 23593 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 23594 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 23595 |       /* dlclose (self); */ | 
 | 23596 |     } | 
 | 23597 |  | 
 | 23598 |     exit (status); | 
 | 23599 | } | 
 | 23600 | EOF | 
 | 23601 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23602 |   (eval $ac_link) 2>&5 | 
 | 23603 |   ac_status=$? | 
 | 23604 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23605 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 23606 |     (./conftest; exit; ) 2>/dev/null | 
 | 23607 |     lt_status=$? | 
 | 23608 |     case x$lt_status in | 
 | 23609 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 23610 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 23611 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 23612 |     esac | 
 | 23613 |   else : | 
 | 23614 |     # compilation failed | 
 | 23615 |     lt_cv_dlopen_self=no | 
 | 23616 |   fi | 
 | 23617 | fi | 
 | 23618 | rm -fr conftest* | 
 | 23619 |  | 
 | 23620 |  | 
 | 23621 | fi | 
 | 23622 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 23623 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 23624 |  | 
 | 23625 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 23626 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 23627 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 23628 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 23629 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 23630 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 23631 | else | 
 | 23632 |   	  if test "$cross_compiling" = yes; then : | 
 | 23633 |   lt_cv_dlopen_self_static=cross | 
 | 23634 | else | 
 | 23635 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 23636 |   lt_status=$lt_dlunknown | 
 | 23637 |   cat > conftest.$ac_ext <<EOF | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 23638 | #line 23638 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23639 | #include "confdefs.h" | 
 | 23640 |  | 
 | 23641 | #if HAVE_DLFCN_H | 
 | 23642 | #include <dlfcn.h> | 
 | 23643 | #endif | 
 | 23644 |  | 
 | 23645 | #include <stdio.h> | 
 | 23646 |  | 
 | 23647 | #ifdef RTLD_GLOBAL | 
 | 23648 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 23649 | #else | 
 | 23650 | #  ifdef DL_GLOBAL | 
 | 23651 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 23652 | #  else | 
 | 23653 | #    define LT_DLGLOBAL		0 | 
 | 23654 | #  endif | 
 | 23655 | #endif | 
 | 23656 |  | 
 | 23657 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 23658 |    find out it does not work in some platform. */ | 
 | 23659 | #ifndef LT_DLLAZY_OR_NOW | 
 | 23660 | #  ifdef RTLD_LAZY | 
 | 23661 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 23662 | #  else | 
 | 23663 | #    ifdef DL_LAZY | 
 | 23664 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 23665 | #    else | 
 | 23666 | #      ifdef RTLD_NOW | 
 | 23667 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 23668 | #      else | 
 | 23669 | #        ifdef DL_NOW | 
 | 23670 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 23671 | #        else | 
 | 23672 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 23673 | #        endif | 
 | 23674 | #      endif | 
 | 23675 | #    endif | 
 | 23676 | #  endif | 
 | 23677 | #endif | 
 | 23678 |  | 
 | 23679 | #ifdef __cplusplus | 
 | 23680 | extern "C" void exit (int); | 
 | 23681 | #endif | 
 | 23682 |  | 
 | 23683 | void fnord() { int i=42;} | 
 | 23684 | int main () | 
 | 23685 | { | 
 | 23686 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 23687 |   int status = $lt_dlunknown; | 
 | 23688 |  | 
 | 23689 |   if (self) | 
 | 23690 |     { | 
 | 23691 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 23692 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 23693 |       /* dlclose (self); */ | 
 | 23694 |     } | 
 | 23695 |  | 
 | 23696 |     exit (status); | 
 | 23697 | } | 
 | 23698 | EOF | 
 | 23699 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 23700 |   (eval $ac_link) 2>&5 | 
 | 23701 |   ac_status=$? | 
 | 23702 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23703 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 23704 |     (./conftest; exit; ) 2>/dev/null | 
 | 23705 |     lt_status=$? | 
 | 23706 |     case x$lt_status in | 
 | 23707 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 23708 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 23709 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 23710 |     esac | 
 | 23711 |   else : | 
 | 23712 |     # compilation failed | 
 | 23713 |     lt_cv_dlopen_self_static=no | 
 | 23714 |   fi | 
 | 23715 | fi | 
 | 23716 | rm -fr conftest* | 
 | 23717 |  | 
 | 23718 |  | 
 | 23719 | fi | 
 | 23720 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 23721 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 23722 |     fi | 
 | 23723 |  | 
 | 23724 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 23725 |     LDFLAGS="$save_LDFLAGS" | 
 | 23726 |     LIBS="$save_LIBS" | 
 | 23727 |     ;; | 
 | 23728 |   esac | 
 | 23729 |  | 
 | 23730 |   case $lt_cv_dlopen_self in | 
 | 23731 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 23732 |   *) enable_dlopen_self=unknown ;; | 
 | 23733 |   esac | 
 | 23734 |  | 
 | 23735 |   case $lt_cv_dlopen_self_static in | 
 | 23736 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 23737 |   *) enable_dlopen_self_static=unknown ;; | 
 | 23738 |   esac | 
 | 23739 | fi | 
 | 23740 |  | 
 | 23741 |  | 
 | 23742 | # The else clause should only fire when bootstrapping the | 
 | 23743 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 23744 | # with your package, and you will get complaints that there are | 
 | 23745 | # no rules to generate ltmain.sh. | 
 | 23746 | if test -f "$ltmain"; then | 
 | 23747 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 23748 |   # without removal of \ escapes. | 
 | 23749 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 23750 |     setopt NO_GLOB_SUBST | 
 | 23751 |   fi | 
 | 23752 |   # Now quote all the things that may contain metacharacters while being | 
 | 23753 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 23754 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23755 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 23756 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23757 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 23758 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 23759 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 23760 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 23761 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 23762 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 23763 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 23764 |     compiler_GCJ \ | 
 | 23765 |     CC_GCJ \ | 
 | 23766 |     LD_GCJ \ | 
 | 23767 |     lt_prog_compiler_wl_GCJ \ | 
 | 23768 |     lt_prog_compiler_pic_GCJ \ | 
 | 23769 |     lt_prog_compiler_static_GCJ \ | 
 | 23770 |     lt_prog_compiler_no_builtin_flag_GCJ \ | 
 | 23771 |     export_dynamic_flag_spec_GCJ \ | 
 | 23772 |     thread_safe_flag_spec_GCJ \ | 
 | 23773 |     whole_archive_flag_spec_GCJ \ | 
 | 23774 |     enable_shared_with_static_runtimes_GCJ \ | 
 | 23775 |     old_archive_cmds_GCJ \ | 
 | 23776 |     old_archive_from_new_cmds_GCJ \ | 
 | 23777 |     predep_objects_GCJ \ | 
 | 23778 |     postdep_objects_GCJ \ | 
 | 23779 |     predeps_GCJ \ | 
 | 23780 |     postdeps_GCJ \ | 
 | 23781 |     compiler_lib_search_path_GCJ \ | 
 | 23782 |     archive_cmds_GCJ \ | 
 | 23783 |     archive_expsym_cmds_GCJ \ | 
 | 23784 |     postinstall_cmds_GCJ \ | 
 | 23785 |     postuninstall_cmds_GCJ \ | 
 | 23786 |     old_archive_from_expsyms_cmds_GCJ \ | 
 | 23787 |     allow_undefined_flag_GCJ \ | 
 | 23788 |     no_undefined_flag_GCJ \ | 
 | 23789 |     export_symbols_cmds_GCJ \ | 
 | 23790 |     hardcode_libdir_flag_spec_GCJ \ | 
 | 23791 |     hardcode_libdir_flag_spec_ld_GCJ \ | 
 | 23792 |     hardcode_libdir_separator_GCJ \ | 
 | 23793 |     hardcode_automatic_GCJ \ | 
 | 23794 |     module_cmds_GCJ \ | 
 | 23795 |     module_expsym_cmds_GCJ \ | 
 | 23796 |     lt_cv_prog_compiler_c_o_GCJ \ | 
 | 23797 |     exclude_expsyms_GCJ \ | 
 | 23798 |     include_expsyms_GCJ; do | 
 | 23799 |  | 
 | 23800 |     case $var in | 
 | 23801 |     old_archive_cmds_GCJ | \ | 
 | 23802 |     old_archive_from_new_cmds_GCJ | \ | 
 | 23803 |     archive_cmds_GCJ | \ | 
 | 23804 |     archive_expsym_cmds_GCJ | \ | 
 | 23805 |     module_cmds_GCJ | \ | 
 | 23806 |     module_expsym_cmds_GCJ | \ | 
 | 23807 |     old_archive_from_expsyms_cmds_GCJ | \ | 
 | 23808 |     export_symbols_cmds_GCJ | \ | 
 | 23809 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 23810 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 23811 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 23812 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 23813 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23814 |       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] | 23815 |       ;; | 
 | 23816 |     *) | 
 | 23817 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 23818 |       ;; | 
 | 23819 |     esac | 
 | 23820 |   done | 
 | 23821 |  | 
 | 23822 |   case $lt_echo in | 
 | 23823 |   *'\$0 --fallback-echo"') | 
 | 23824 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 23825 |     ;; | 
 | 23826 |   esac | 
 | 23827 |  | 
 | 23828 | cfgfile="$ofile" | 
 | 23829 |  | 
 | 23830 |   cat <<__EOF__ >> "$cfgfile" | 
 | 23831 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 23832 |  | 
 | 23833 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 23834 |  | 
 | 23835 | # Shell to use when invoking shell scripts. | 
 | 23836 | SHELL=$lt_SHELL | 
 | 23837 |  | 
 | 23838 | # Whether or not to build shared libraries. | 
 | 23839 | build_libtool_libs=$enable_shared | 
 | 23840 |  | 
 | 23841 | # Whether or not to build static libraries. | 
 | 23842 | build_old_libs=$enable_static | 
 | 23843 |  | 
 | 23844 | # Whether or not to add -lc for building shared libraries. | 
 | 23845 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
 | 23846 |  | 
 | 23847 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 23848 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
 | 23849 |  | 
 | 23850 | # Whether or not to optimize for fast installation. | 
 | 23851 | fast_install=$enable_fast_install | 
 | 23852 |  | 
 | 23853 | # The host system. | 
 | 23854 | host_alias=$host_alias | 
 | 23855 | host=$host | 
 | 23856 |  | 
 | 23857 | # An echo program that does not interpret backslashes. | 
 | 23858 | echo=$lt_echo | 
 | 23859 |  | 
 | 23860 | # The archiver. | 
 | 23861 | AR=$lt_AR | 
 | 23862 | AR_FLAGS=$lt_AR_FLAGS | 
 | 23863 |  | 
 | 23864 | # A C compiler. | 
 | 23865 | LTCC=$lt_LTCC | 
 | 23866 |  | 
 | 23867 | # A language-specific compiler. | 
 | 23868 | CC=$lt_compiler_GCJ | 
 | 23869 |  | 
 | 23870 | # Is the compiler the GNU C compiler? | 
 | 23871 | with_gcc=$GCC_GCJ | 
 | 23872 |  | 
 | 23873 | # An ERE matcher. | 
 | 23874 | EGREP=$lt_EGREP | 
 | 23875 |  | 
 | 23876 | # The linker used to build libraries. | 
 | 23877 | LD=$lt_LD_GCJ | 
 | 23878 |  | 
 | 23879 | # Whether we need hard or soft links. | 
 | 23880 | LN_S=$lt_LN_S | 
 | 23881 |  | 
 | 23882 | # A BSD-compatible nm program. | 
 | 23883 | NM=$lt_NM | 
 | 23884 |  | 
 | 23885 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23886 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23887 |  | 
 | 23888 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 23889 | MAGIC_CMD=$MAGIC_CMD | 
 | 23890 |  | 
 | 23891 | # Used on cygwin: DLL creation program. | 
 | 23892 | DLLTOOL="$DLLTOOL" | 
 | 23893 |  | 
 | 23894 | # Used on cygwin: object dumper. | 
 | 23895 | OBJDUMP="$OBJDUMP" | 
 | 23896 |  | 
 | 23897 | # Used on cygwin: assembler. | 
 | 23898 | AS="$AS" | 
 | 23899 |  | 
 | 23900 | # The name of the directory that contains temporary libtool files. | 
 | 23901 | objdir=$objdir | 
 | 23902 |  | 
 | 23903 | # How to create reloadable object files. | 
 | 23904 | reload_flag=$lt_reload_flag | 
 | 23905 | reload_cmds=$lt_reload_cmds | 
 | 23906 |  | 
 | 23907 | # How to pass a linker flag through the compiler. | 
 | 23908 | wl=$lt_lt_prog_compiler_wl_GCJ | 
 | 23909 |  | 
 | 23910 | # Object file suffix (normally "o"). | 
 | 23911 | objext="$ac_objext" | 
 | 23912 |  | 
 | 23913 | # Old archive suffix (normally "a"). | 
 | 23914 | libext="$libext" | 
 | 23915 |  | 
 | 23916 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23917 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23918 |  | 
 | 23919 | # Executable file suffix (normally ""). | 
 | 23920 | exeext="$exeext" | 
 | 23921 |  | 
 | 23922 | # Additional compiler flags for building library objects. | 
 | 23923 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
 | 23924 | pic_mode=$pic_mode | 
 | 23925 |  | 
 | 23926 | # What is the maximum length of a command? | 
 | 23927 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 23928 |  | 
 | 23929 | # Does compiler simultaneously support -c and -o options? | 
 | 23930 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
 | 23931 |  | 
 | 23932 | # Must we lock files when doing compilation ? | 
 | 23933 | need_locks=$lt_need_locks | 
 | 23934 |  | 
 | 23935 | # Do we need the lib prefix for modules? | 
 | 23936 | need_lib_prefix=$need_lib_prefix | 
 | 23937 |  | 
 | 23938 | # Do we need a version for libraries? | 
 | 23939 | need_version=$need_version | 
 | 23940 |  | 
 | 23941 | # Whether dlopen is supported. | 
 | 23942 | dlopen_support=$enable_dlopen | 
 | 23943 |  | 
 | 23944 | # Whether dlopen of programs is supported. | 
 | 23945 | dlopen_self=$enable_dlopen_self | 
 | 23946 |  | 
 | 23947 | # Whether dlopen of statically linked programs is supported. | 
 | 23948 | dlopen_self_static=$enable_dlopen_self_static | 
 | 23949 |  | 
 | 23950 | # Compiler flag to prevent dynamic linking. | 
 | 23951 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
 | 23952 |  | 
 | 23953 | # Compiler flag to turn off builtin functions. | 
 | 23954 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
 | 23955 |  | 
 | 23956 | # Compiler flag to allow reflexive dlopens. | 
 | 23957 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
 | 23958 |  | 
 | 23959 | # Compiler flag to generate shared objects directly from archives. | 
 | 23960 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
 | 23961 |  | 
 | 23962 | # Compiler flag to generate thread-safe objects. | 
 | 23963 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
 | 23964 |  | 
 | 23965 | # Library versioning type. | 
 | 23966 | version_type=$version_type | 
 | 23967 |  | 
 | 23968 | # Format of library name prefix. | 
 | 23969 | libname_spec=$lt_libname_spec | 
 | 23970 |  | 
 | 23971 | # List of archive names.  First name is the real one, the rest are links. | 
 | 23972 | # The last name is the one that the linker finds with -lNAME. | 
 | 23973 | library_names_spec=$lt_library_names_spec | 
 | 23974 |  | 
 | 23975 | # The coded name of the library, if different from the real name. | 
 | 23976 | soname_spec=$lt_soname_spec | 
 | 23977 |  | 
 | 23978 | # Commands used to build and install an old-style archive. | 
 | 23979 | RANLIB=$lt_RANLIB | 
 | 23980 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
 | 23981 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 23982 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 23983 |  | 
 | 23984 | # Create an old-style archive from a shared archive. | 
 | 23985 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
 | 23986 |  | 
 | 23987 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 23988 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
 | 23989 |  | 
 | 23990 | # Commands used to build and install a shared archive. | 
 | 23991 | archive_cmds=$lt_archive_cmds_GCJ | 
 | 23992 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
 | 23993 | postinstall_cmds=$lt_postinstall_cmds | 
 | 23994 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 23995 |  | 
 | 23996 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 23997 | module_cmds=$lt_module_cmds_GCJ | 
 | 23998 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
 | 23999 |  | 
 | 24000 | # Commands to strip libraries. | 
 | 24001 | old_striplib=$lt_old_striplib | 
 | 24002 | striplib=$lt_striplib | 
 | 24003 |  | 
 | 24004 | # Dependencies to place before the objects being linked to create a | 
 | 24005 | # shared library. | 
 | 24006 | predep_objects=$lt_predep_objects_GCJ | 
 | 24007 |  | 
 | 24008 | # Dependencies to place after the objects being linked to create a | 
 | 24009 | # shared library. | 
 | 24010 | postdep_objects=$lt_postdep_objects_GCJ | 
 | 24011 |  | 
 | 24012 | # Dependencies to place before the objects being linked to create a | 
 | 24013 | # shared library. | 
 | 24014 | predeps=$lt_predeps_GCJ | 
 | 24015 |  | 
 | 24016 | # Dependencies to place after the objects being linked to create a | 
 | 24017 | # shared library. | 
 | 24018 | postdeps=$lt_postdeps_GCJ | 
 | 24019 |  | 
 | 24020 | # The library search path used internally by the compiler when linking | 
 | 24021 | # a shared library. | 
 | 24022 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
 | 24023 |  | 
 | 24024 | # Method to check whether dependent libraries are shared objects. | 
 | 24025 | deplibs_check_method=$lt_deplibs_check_method | 
 | 24026 |  | 
 | 24027 | # Command to use when deplibs_check_method == file_magic. | 
 | 24028 | file_magic_cmd=$lt_file_magic_cmd | 
 | 24029 |  | 
 | 24030 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 24031 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
 | 24032 |  | 
 | 24033 | # Flag that forces no undefined symbols. | 
 | 24034 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
 | 24035 |  | 
 | 24036 | # Commands used to finish a libtool library installation in a directory. | 
 | 24037 | finish_cmds=$lt_finish_cmds | 
 | 24038 |  | 
 | 24039 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 24040 | finish_eval=$lt_finish_eval | 
 | 24041 |  | 
 | 24042 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 24043 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 24044 |  | 
 | 24045 | # Transform the output of nm in a proper C declaration | 
 | 24046 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 24047 |  | 
 | 24048 | # Transform the output of nm in a C name address pair | 
 | 24049 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 24050 |  | 
 | 24051 | # This is the shared library runtime path variable. | 
 | 24052 | runpath_var=$runpath_var | 
 | 24053 |  | 
 | 24054 | # This is the shared library path variable. | 
 | 24055 | shlibpath_var=$shlibpath_var | 
 | 24056 |  | 
 | 24057 | # Is shlibpath searched before the hard-coded library search path? | 
 | 24058 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 24059 |  | 
 | 24060 | # How to hardcode a shared library path into an executable. | 
 | 24061 | hardcode_action=$hardcode_action_GCJ | 
 | 24062 |  | 
 | 24063 | # Whether we should hardcode library paths into libraries. | 
 | 24064 | hardcode_into_libs=$hardcode_into_libs | 
 | 24065 |  | 
 | 24066 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 24067 | # This must work even if \$libdir does not exist. | 
 | 24068 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
 | 24069 |  | 
 | 24070 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 24071 | # a binary during linking. This must work even if \$libdir does | 
 | 24072 | # not exist. | 
 | 24073 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
 | 24074 |  | 
 | 24075 | # Whether we need a single -rpath flag with a separated argument. | 
 | 24076 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
 | 24077 |  | 
 | 24078 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 24079 | # resulting binary. | 
 | 24080 | hardcode_direct=$hardcode_direct_GCJ | 
 | 24081 |  | 
 | 24082 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 24083 | # resulting binary. | 
 | 24084 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
 | 24085 |  | 
 | 24086 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 24087 | # the resulting binary. | 
 | 24088 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
 | 24089 |  | 
 | 24090 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 24091 | # and all subsequent libraries and executables linked against it. | 
 | 24092 | hardcode_automatic=$hardcode_automatic_GCJ | 
 | 24093 |  | 
 | 24094 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 24095 | # restored at relink time. | 
 | 24096 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 24097 |  | 
 | 24098 | # Whether libtool must link a program against all its dependency libraries. | 
 | 24099 | link_all_deplibs=$link_all_deplibs_GCJ | 
 | 24100 |  | 
 | 24101 | # Compile-time system search path for libraries | 
 | 24102 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 24103 |  | 
 | 24104 | # Run-time system search path for libraries | 
 | 24105 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 24106 |  | 
 | 24107 | # Fix the shell variable \$srcfile for the compiler. | 
 | 24108 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
 | 24109 |  | 
 | 24110 | # Set to yes if exported symbols are required. | 
 | 24111 | always_export_symbols=$always_export_symbols_GCJ | 
 | 24112 |  | 
 | 24113 | # The commands to list exported symbols. | 
 | 24114 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
 | 24115 |  | 
 | 24116 | # The commands to extract the exported symbol list from a shared archive. | 
 | 24117 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 24118 |  | 
 | 24119 | # Symbols that should not be listed in the preloaded symbols. | 
 | 24120 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
 | 24121 |  | 
 | 24122 | # Symbols that must always be exported. | 
 | 24123 | include_expsyms=$lt_include_expsyms_GCJ | 
 | 24124 |  | 
 | 24125 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 24126 |  | 
 | 24127 | __EOF__ | 
 | 24128 |  | 
 | 24129 |  | 
 | 24130 | else | 
 | 24131 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 24132 |   # `config.status --recheck' to rerun these tests and create the | 
 | 24133 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24134 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 24135 |   if test -f "$ltmain_in"; then | 
 | 24136 |     test -f Makefile && make "$ltmain" | 
 | 24137 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24138 | fi | 
 | 24139 |  | 
 | 24140 |  | 
 | 24141 | ac_ext=c | 
 | 24142 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 24146 |  | 
 | 24147 | CC="$lt_save_CC" | 
 | 24148 |  | 
 | 24149 | 	else | 
 | 24150 | 	  tagname="" | 
 | 24151 | 	fi | 
 | 24152 | 	;; | 
 | 24153 |  | 
 | 24154 |       RC) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24155 | 	ac_ext=c | 
 | 24156 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24160 |  | 
 | 24161 |  | 
 | 24162 | # Source file extension for RC test sources. | 
 | 24163 | ac_ext=rc | 
 | 24164 |  | 
 | 24165 | # Object file extension for compiled RC test sources. | 
 | 24166 | objext=o | 
 | 24167 | objext_RC=$objext | 
 | 24168 |  | 
 | 24169 | # Code to be used in simple compile tests | 
 | 24170 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
 | 24171 |  | 
 | 24172 | # Code to be used in simple link tests | 
 | 24173 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
 | 24174 |  | 
 | 24175 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 24176 |  | 
 | 24177 | # If no C compiler was specified, use CC. | 
 | 24178 | LTCC=${LTCC-"$CC"} | 
 | 24179 |  | 
 | 24180 | # Allow CC to be a program name with arguments. | 
 | 24181 | compiler=$CC | 
 | 24182 |  | 
 | 24183 |  | 
 | 24184 | # Allow CC to be a program name with arguments. | 
 | 24185 | lt_save_CC="$CC" | 
 | 24186 | CC=${RC-"windres"} | 
 | 24187 | compiler=$CC | 
 | 24188 | compiler_RC=$CC | 
 | 24189 | lt_cv_prog_compiler_c_o_RC=yes | 
 | 24190 |  | 
 | 24191 | # The else clause should only fire when bootstrapping the | 
 | 24192 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 24193 | # with your package, and you will get complaints that there are | 
 | 24194 | # no rules to generate ltmain.sh. | 
 | 24195 | if test -f "$ltmain"; then | 
 | 24196 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 24197 |   # without removal of \ escapes. | 
 | 24198 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 24199 |     setopt NO_GLOB_SUBST | 
 | 24200 |   fi | 
 | 24201 |   # Now quote all the things that may contain metacharacters while being | 
 | 24202 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 24203 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24204 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 
 | 24205 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24206 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 24207 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 24208 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 24209 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 24210 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 24211 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 24212 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 24213 |     compiler_RC \ | 
 | 24214 |     CC_RC \ | 
 | 24215 |     LD_RC \ | 
 | 24216 |     lt_prog_compiler_wl_RC \ | 
 | 24217 |     lt_prog_compiler_pic_RC \ | 
 | 24218 |     lt_prog_compiler_static_RC \ | 
 | 24219 |     lt_prog_compiler_no_builtin_flag_RC \ | 
 | 24220 |     export_dynamic_flag_spec_RC \ | 
 | 24221 |     thread_safe_flag_spec_RC \ | 
 | 24222 |     whole_archive_flag_spec_RC \ | 
 | 24223 |     enable_shared_with_static_runtimes_RC \ | 
 | 24224 |     old_archive_cmds_RC \ | 
 | 24225 |     old_archive_from_new_cmds_RC \ | 
 | 24226 |     predep_objects_RC \ | 
 | 24227 |     postdep_objects_RC \ | 
 | 24228 |     predeps_RC \ | 
 | 24229 |     postdeps_RC \ | 
 | 24230 |     compiler_lib_search_path_RC \ | 
 | 24231 |     archive_cmds_RC \ | 
 | 24232 |     archive_expsym_cmds_RC \ | 
 | 24233 |     postinstall_cmds_RC \ | 
 | 24234 |     postuninstall_cmds_RC \ | 
 | 24235 |     old_archive_from_expsyms_cmds_RC \ | 
 | 24236 |     allow_undefined_flag_RC \ | 
 | 24237 |     no_undefined_flag_RC \ | 
 | 24238 |     export_symbols_cmds_RC \ | 
 | 24239 |     hardcode_libdir_flag_spec_RC \ | 
 | 24240 |     hardcode_libdir_flag_spec_ld_RC \ | 
 | 24241 |     hardcode_libdir_separator_RC \ | 
 | 24242 |     hardcode_automatic_RC \ | 
 | 24243 |     module_cmds_RC \ | 
 | 24244 |     module_expsym_cmds_RC \ | 
 | 24245 |     lt_cv_prog_compiler_c_o_RC \ | 
 | 24246 |     exclude_expsyms_RC \ | 
 | 24247 |     include_expsyms_RC; do | 
 | 24248 |  | 
 | 24249 |     case $var in | 
 | 24250 |     old_archive_cmds_RC | \ | 
 | 24251 |     old_archive_from_new_cmds_RC | \ | 
 | 24252 |     archive_cmds_RC | \ | 
 | 24253 |     archive_expsym_cmds_RC | \ | 
 | 24254 |     module_cmds_RC | \ | 
 | 24255 |     module_expsym_cmds_RC | \ | 
 | 24256 |     old_archive_from_expsyms_cmds_RC | \ | 
 | 24257 |     export_symbols_cmds_RC | \ | 
 | 24258 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 24259 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 24260 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 24261 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 24262 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24263 |       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] | 24264 |       ;; | 
 | 24265 |     *) | 
 | 24266 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 24267 |       ;; | 
 | 24268 |     esac | 
 | 24269 |   done | 
 | 24270 |  | 
 | 24271 |   case $lt_echo in | 
 | 24272 |   *'\$0 --fallback-echo"') | 
 | 24273 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 24274 |     ;; | 
 | 24275 |   esac | 
 | 24276 |  | 
 | 24277 | cfgfile="$ofile" | 
 | 24278 |  | 
 | 24279 |   cat <<__EOF__ >> "$cfgfile" | 
 | 24280 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 24281 |  | 
 | 24282 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 24283 |  | 
 | 24284 | # Shell to use when invoking shell scripts. | 
 | 24285 | SHELL=$lt_SHELL | 
 | 24286 |  | 
 | 24287 | # Whether or not to build shared libraries. | 
 | 24288 | build_libtool_libs=$enable_shared | 
 | 24289 |  | 
 | 24290 | # Whether or not to build static libraries. | 
 | 24291 | build_old_libs=$enable_static | 
 | 24292 |  | 
 | 24293 | # Whether or not to add -lc for building shared libraries. | 
 | 24294 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
 | 24295 |  | 
 | 24296 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 24297 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
 | 24298 |  | 
 | 24299 | # Whether or not to optimize for fast installation. | 
 | 24300 | fast_install=$enable_fast_install | 
 | 24301 |  | 
 | 24302 | # The host system. | 
 | 24303 | host_alias=$host_alias | 
 | 24304 | host=$host | 
 | 24305 |  | 
 | 24306 | # An echo program that does not interpret backslashes. | 
 | 24307 | echo=$lt_echo | 
 | 24308 |  | 
 | 24309 | # The archiver. | 
 | 24310 | AR=$lt_AR | 
 | 24311 | AR_FLAGS=$lt_AR_FLAGS | 
 | 24312 |  | 
 | 24313 | # A C compiler. | 
 | 24314 | LTCC=$lt_LTCC | 
 | 24315 |  | 
 | 24316 | # A language-specific compiler. | 
 | 24317 | CC=$lt_compiler_RC | 
 | 24318 |  | 
 | 24319 | # Is the compiler the GNU C compiler? | 
 | 24320 | with_gcc=$GCC_RC | 
 | 24321 |  | 
 | 24322 | # An ERE matcher. | 
 | 24323 | EGREP=$lt_EGREP | 
 | 24324 |  | 
 | 24325 | # The linker used to build libraries. | 
 | 24326 | LD=$lt_LD_RC | 
 | 24327 |  | 
 | 24328 | # Whether we need hard or soft links. | 
 | 24329 | LN_S=$lt_LN_S | 
 | 24330 |  | 
 | 24331 | # A BSD-compatible nm program. | 
 | 24332 | NM=$lt_NM | 
 | 24333 |  | 
 | 24334 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24335 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24336 |  | 
 | 24337 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 24338 | MAGIC_CMD=$MAGIC_CMD | 
 | 24339 |  | 
 | 24340 | # Used on cygwin: DLL creation program. | 
 | 24341 | DLLTOOL="$DLLTOOL" | 
 | 24342 |  | 
 | 24343 | # Used on cygwin: object dumper. | 
 | 24344 | OBJDUMP="$OBJDUMP" | 
 | 24345 |  | 
 | 24346 | # Used on cygwin: assembler. | 
 | 24347 | AS="$AS" | 
 | 24348 |  | 
 | 24349 | # The name of the directory that contains temporary libtool files. | 
 | 24350 | objdir=$objdir | 
 | 24351 |  | 
 | 24352 | # How to create reloadable object files. | 
 | 24353 | reload_flag=$lt_reload_flag | 
 | 24354 | reload_cmds=$lt_reload_cmds | 
 | 24355 |  | 
 | 24356 | # How to pass a linker flag through the compiler. | 
 | 24357 | wl=$lt_lt_prog_compiler_wl_RC | 
 | 24358 |  | 
 | 24359 | # Object file suffix (normally "o"). | 
 | 24360 | objext="$ac_objext" | 
 | 24361 |  | 
 | 24362 | # Old archive suffix (normally "a"). | 
 | 24363 | libext="$libext" | 
 | 24364 |  | 
 | 24365 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24366 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24367 |  | 
 | 24368 | # Executable file suffix (normally ""). | 
 | 24369 | exeext="$exeext" | 
 | 24370 |  | 
 | 24371 | # Additional compiler flags for building library objects. | 
 | 24372 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
 | 24373 | pic_mode=$pic_mode | 
 | 24374 |  | 
 | 24375 | # What is the maximum length of a command? | 
 | 24376 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 24377 |  | 
 | 24378 | # Does compiler simultaneously support -c and -o options? | 
 | 24379 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
 | 24380 |  | 
 | 24381 | # Must we lock files when doing compilation ? | 
 | 24382 | need_locks=$lt_need_locks | 
 | 24383 |  | 
 | 24384 | # Do we need the lib prefix for modules? | 
 | 24385 | need_lib_prefix=$need_lib_prefix | 
 | 24386 |  | 
 | 24387 | # Do we need a version for libraries? | 
 | 24388 | need_version=$need_version | 
 | 24389 |  | 
 | 24390 | # Whether dlopen is supported. | 
 | 24391 | dlopen_support=$enable_dlopen | 
 | 24392 |  | 
 | 24393 | # Whether dlopen of programs is supported. | 
 | 24394 | dlopen_self=$enable_dlopen_self | 
 | 24395 |  | 
 | 24396 | # Whether dlopen of statically linked programs is supported. | 
 | 24397 | dlopen_self_static=$enable_dlopen_self_static | 
 | 24398 |  | 
 | 24399 | # Compiler flag to prevent dynamic linking. | 
 | 24400 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
 | 24401 |  | 
 | 24402 | # Compiler flag to turn off builtin functions. | 
 | 24403 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
 | 24404 |  | 
 | 24405 | # Compiler flag to allow reflexive dlopens. | 
 | 24406 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
 | 24407 |  | 
 | 24408 | # Compiler flag to generate shared objects directly from archives. | 
 | 24409 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
 | 24410 |  | 
 | 24411 | # Compiler flag to generate thread-safe objects. | 
 | 24412 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
 | 24413 |  | 
 | 24414 | # Library versioning type. | 
 | 24415 | version_type=$version_type | 
 | 24416 |  | 
 | 24417 | # Format of library name prefix. | 
 | 24418 | libname_spec=$lt_libname_spec | 
 | 24419 |  | 
 | 24420 | # List of archive names.  First name is the real one, the rest are links. | 
 | 24421 | # The last name is the one that the linker finds with -lNAME. | 
 | 24422 | library_names_spec=$lt_library_names_spec | 
 | 24423 |  | 
 | 24424 | # The coded name of the library, if different from the real name. | 
 | 24425 | soname_spec=$lt_soname_spec | 
 | 24426 |  | 
 | 24427 | # Commands used to build and install an old-style archive. | 
 | 24428 | RANLIB=$lt_RANLIB | 
 | 24429 | old_archive_cmds=$lt_old_archive_cmds_RC | 
 | 24430 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 24431 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 24432 |  | 
 | 24433 | # Create an old-style archive from a shared archive. | 
 | 24434 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
 | 24435 |  | 
 | 24436 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 24437 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
 | 24438 |  | 
 | 24439 | # Commands used to build and install a shared archive. | 
 | 24440 | archive_cmds=$lt_archive_cmds_RC | 
 | 24441 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
 | 24442 | postinstall_cmds=$lt_postinstall_cmds | 
 | 24443 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 24444 |  | 
 | 24445 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 24446 | module_cmds=$lt_module_cmds_RC | 
 | 24447 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
 | 24448 |  | 
 | 24449 | # Commands to strip libraries. | 
 | 24450 | old_striplib=$lt_old_striplib | 
 | 24451 | striplib=$lt_striplib | 
 | 24452 |  | 
 | 24453 | # Dependencies to place before the objects being linked to create a | 
 | 24454 | # shared library. | 
 | 24455 | predep_objects=$lt_predep_objects_RC | 
 | 24456 |  | 
 | 24457 | # Dependencies to place after the objects being linked to create a | 
 | 24458 | # shared library. | 
 | 24459 | postdep_objects=$lt_postdep_objects_RC | 
 | 24460 |  | 
 | 24461 | # Dependencies to place before the objects being linked to create a | 
 | 24462 | # shared library. | 
 | 24463 | predeps=$lt_predeps_RC | 
 | 24464 |  | 
 | 24465 | # Dependencies to place after the objects being linked to create a | 
 | 24466 | # shared library. | 
 | 24467 | postdeps=$lt_postdeps_RC | 
 | 24468 |  | 
 | 24469 | # The library search path used internally by the compiler when linking | 
 | 24470 | # a shared library. | 
 | 24471 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
 | 24472 |  | 
 | 24473 | # Method to check whether dependent libraries are shared objects. | 
 | 24474 | deplibs_check_method=$lt_deplibs_check_method | 
 | 24475 |  | 
 | 24476 | # Command to use when deplibs_check_method == file_magic. | 
 | 24477 | file_magic_cmd=$lt_file_magic_cmd | 
 | 24478 |  | 
 | 24479 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 24480 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
 | 24481 |  | 
 | 24482 | # Flag that forces no undefined symbols. | 
 | 24483 | no_undefined_flag=$lt_no_undefined_flag_RC | 
 | 24484 |  | 
 | 24485 | # Commands used to finish a libtool library installation in a directory. | 
 | 24486 | finish_cmds=$lt_finish_cmds | 
 | 24487 |  | 
 | 24488 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 24489 | finish_eval=$lt_finish_eval | 
 | 24490 |  | 
 | 24491 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 24492 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 24493 |  | 
 | 24494 | # Transform the output of nm in a proper C declaration | 
 | 24495 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 24496 |  | 
 | 24497 | # Transform the output of nm in a C name address pair | 
 | 24498 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 24499 |  | 
 | 24500 | # This is the shared library runtime path variable. | 
 | 24501 | runpath_var=$runpath_var | 
 | 24502 |  | 
 | 24503 | # This is the shared library path variable. | 
 | 24504 | shlibpath_var=$shlibpath_var | 
 | 24505 |  | 
 | 24506 | # Is shlibpath searched before the hard-coded library search path? | 
 | 24507 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 24508 |  | 
 | 24509 | # How to hardcode a shared library path into an executable. | 
 | 24510 | hardcode_action=$hardcode_action_RC | 
 | 24511 |  | 
 | 24512 | # Whether we should hardcode library paths into libraries. | 
 | 24513 | hardcode_into_libs=$hardcode_into_libs | 
 | 24514 |  | 
 | 24515 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 24516 | # This must work even if \$libdir does not exist. | 
 | 24517 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
 | 24518 |  | 
 | 24519 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 24520 | # a binary during linking. This must work even if \$libdir does | 
 | 24521 | # not exist. | 
 | 24522 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
 | 24523 |  | 
 | 24524 | # Whether we need a single -rpath flag with a separated argument. | 
 | 24525 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
 | 24526 |  | 
 | 24527 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 24528 | # resulting binary. | 
 | 24529 | hardcode_direct=$hardcode_direct_RC | 
 | 24530 |  | 
 | 24531 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 24532 | # resulting binary. | 
 | 24533 | hardcode_minus_L=$hardcode_minus_L_RC | 
 | 24534 |  | 
 | 24535 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 24536 | # the resulting binary. | 
 | 24537 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
 | 24538 |  | 
 | 24539 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 24540 | # and all subsequent libraries and executables linked against it. | 
 | 24541 | hardcode_automatic=$hardcode_automatic_RC | 
 | 24542 |  | 
 | 24543 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 24544 | # restored at relink time. | 
 | 24545 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 24546 |  | 
 | 24547 | # Whether libtool must link a program against all its dependency libraries. | 
 | 24548 | link_all_deplibs=$link_all_deplibs_RC | 
 | 24549 |  | 
 | 24550 | # Compile-time system search path for libraries | 
 | 24551 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 24552 |  | 
 | 24553 | # Run-time system search path for libraries | 
 | 24554 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 24555 |  | 
 | 24556 | # Fix the shell variable \$srcfile for the compiler. | 
 | 24557 | fix_srcfile_path="$fix_srcfile_path_RC" | 
 | 24558 |  | 
 | 24559 | # Set to yes if exported symbols are required. | 
 | 24560 | always_export_symbols=$always_export_symbols_RC | 
 | 24561 |  | 
 | 24562 | # The commands to list exported symbols. | 
 | 24563 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
 | 24564 |  | 
 | 24565 | # The commands to extract the exported symbol list from a shared archive. | 
 | 24566 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 24567 |  | 
 | 24568 | # Symbols that should not be listed in the preloaded symbols. | 
 | 24569 | exclude_expsyms=$lt_exclude_expsyms_RC | 
 | 24570 |  | 
 | 24571 | # Symbols that must always be exported. | 
 | 24572 | include_expsyms=$lt_include_expsyms_RC | 
 | 24573 |  | 
 | 24574 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 24575 |  | 
 | 24576 | __EOF__ | 
 | 24577 |  | 
 | 24578 |  | 
 | 24579 | else | 
 | 24580 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 24581 |   # `config.status --recheck' to rerun these tests and create the | 
 | 24582 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24583 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 24584 |   if test -f "$ltmain_in"; then | 
 | 24585 |     test -f Makefile && make "$ltmain" | 
 | 24586 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24587 | fi | 
 | 24588 |  | 
 | 24589 |  | 
 | 24590 | ac_ext=c | 
 | 24591 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 24595 |  | 
 | 24596 | CC="$lt_save_CC" | 
 | 24597 |  | 
 | 24598 | 	;; | 
 | 24599 |  | 
 | 24600 |       *) | 
 | 24601 | 	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
 | 24602 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
 | 24603 |    { (exit 1); exit 1; }; } | 
 | 24604 | 	;; | 
 | 24605 |       esac | 
 | 24606 |  | 
 | 24607 |       # Append the new tag name to the list of available tags. | 
 | 24608 |       if test -n "$tagname" ; then | 
 | 24609 |       available_tags="$available_tags $tagname" | 
 | 24610 |     fi | 
 | 24611 |     fi | 
 | 24612 |   done | 
 | 24613 |   IFS="$lt_save_ifs" | 
 | 24614 |  | 
 | 24615 |   # Now substitute the updated list of available tags. | 
 | 24616 |   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
 | 24617 |     mv "${ofile}T" "$ofile" | 
 | 24618 |     chmod +x "$ofile" | 
 | 24619 |   else | 
 | 24620 |     rm -f "${ofile}T" | 
 | 24621 |     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
 | 24622 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
 | 24623 |    { (exit 1); exit 1; }; } | 
 | 24624 |   fi | 
 | 24625 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24626 |  | 
 | 24627 |  | 
 | 24628 |  | 
 | 24629 | # This can be used to rebuild libtool when needed | 
 | 24630 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
 | 24631 |  | 
 | 24632 | # Always use our own libtool. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24633 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24634 |  | 
 | 24635 | # Prevent multiple expansion | 
 | 24636 |  | 
 | 24637 |  | 
 | 24638 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24639 |  | 
 | 24640 |  | 
 | 24641 |  | 
 | 24642 |  | 
 | 24643 |  | 
 | 24644 |  | 
 | 24645 |  | 
 | 24646 |  | 
 | 24647 |  | 
 | 24648 |  | 
 | 24649 |  | 
 | 24650 |  | 
 | 24651 |  | 
 | 24652 |  | 
 | 24653 |  | 
 | 24654 |  | 
 | 24655 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24656 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24657 | etags_version=`$ETAGS --version 2>&1` | 
 | 24658 | case "$etags_version" in | 
 | 24659 | 	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; | 
 | 24660 | 	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; | 
 | 24661 | 	*) ETAGSFLAGS="" ;; | 
 | 24662 | esac | 
 | 24663 | ETAGSFLAGS=$ETAGSFLAGS | 
 | 24664 |  | 
 | 24665 |  | 
 | 24666 | echo "$as_me:$LINENO: checking tool compatibility" >&5 | 
 | 24667 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6 | 
 | 24668 |  | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24669 | ICC=no | 
 | 24670 | IXX=no | 
 | 24671 | case $CC in | 
 | 24672 |   icc*|icpc*) | 
 | 24673 |     ICC=yes | 
 | 24674 |     IXX=yes | 
 | 24675 |     ;; | 
 | 24676 |    *) | 
 | 24677 |     ;; | 
 | 24678 | esac | 
 | 24679 |  | 
 | 24680 | if test "$GCC" != "yes" && test "$ICC" != "yes" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24681 | then | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24682 |   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 | 
 | 24683 | echo "$as_me: error: gcc|icc required but not found" >&2;} | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24684 |    { (exit 1); exit 1; }; } | 
 | 24685 | fi | 
 | 24686 |  | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24687 | if test "$GXX" != "yes" && test "$IXX" != "yes" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24688 | then | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24689 |   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 | 
 | 24690 | echo "$as_me: error: g++|icc required but not found" >&2;} | 
 | 24691 |    { (exit 1); exit 1; }; } | 
 | 24692 | fi | 
 | 24693 |  | 
 | 24694 | if test "$GCC" = "yes" | 
 | 24695 | then | 
 | 24696 |   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` | 
 | 24697 |   if test "$gccmajor" -lt "3" | 
 | 24698 |   then | 
 | 24699 |     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24700 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
 | 24701 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 24702 |   fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24703 | fi | 
 | 24704 |  | 
 | 24705 | if test -z "$llvm_cv_gnu_make_command" | 
 | 24706 | then | 
 | 24707 |   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
 | 24708 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
 | 24709 |    { (exit 1); exit 1; }; } | 
 | 24710 | fi | 
 | 24711 |  | 
 | 24712 | echo "$as_me:$LINENO: result: ok" >&5 | 
 | 24713 | echo "${ECHO_T}ok" >&6 | 
 | 24714 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 24715 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24716 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24717 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 
 | 24718 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | 
 | 24719 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 
 | 24720 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24721 | else | 
 | 24722 |   ac_check_lib_save_LIBS=$LIBS | 
 | 24723 | LIBS="-lelf  $LIBS" | 
 | 24724 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24725 | /* confdefs.h.  */ | 
 | 24726 | _ACEOF | 
 | 24727 | cat confdefs.h >>conftest.$ac_ext | 
 | 24728 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24729 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24730 |  | 
 | 24731 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 24732 | #ifdef __cplusplus | 
 | 24733 | extern "C" | 
 | 24734 | #endif | 
 | 24735 | /* We use char because int might match the return type of a gcc2 | 
 | 24736 |    builtin and then its argument prototype would still apply.  */ | 
 | 24737 | char elf_begin (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24738 | int | 
 | 24739 | main () | 
 | 24740 | { | 
 | 24741 | elf_begin (); | 
 | 24742 |   ; | 
 | 24743 |   return 0; | 
 | 24744 | } | 
 | 24745 | _ACEOF | 
 | 24746 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 24747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24748 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24749 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24750 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 24751 |   rm -f conftest.er1 | 
 | 24752 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24753 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24754 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24755 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 24756 | 			 || test ! -s conftest.err' | 
 | 24757 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24758 |   (eval $ac_try) 2>&5 | 
 | 24759 |   ac_status=$? | 
 | 24760 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24761 |   (exit $ac_status); }; } && | 
 | 24762 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24763 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24764 |   (eval $ac_try) 2>&5 | 
 | 24765 |   ac_status=$? | 
 | 24766 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24767 |   (exit $ac_status); }; }; then | 
 | 24768 |   ac_cv_lib_elf_elf_begin=yes | 
 | 24769 | else | 
 | 24770 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24771 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 24772 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24773 | ac_cv_lib_elf_elf_begin=no | 
 | 24774 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24775 | rm -f conftest.err conftest.$ac_objext \ | 
 | 24776 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24777 | LIBS=$ac_check_lib_save_LIBS | 
 | 24778 | fi | 
 | 24779 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 
 | 24780 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | 
 | 24781 | if test $ac_cv_lib_elf_elf_begin = yes; then | 
 | 24782 |   cat >>confdefs.h <<_ACEOF | 
 | 24783 | #define HAVE_LIBELF 1 | 
 | 24784 | _ACEOF | 
 | 24785 |  | 
 | 24786 |   LIBS="-lelf $LIBS" | 
 | 24787 |  | 
 | 24788 | fi | 
 | 24789 |  | 
 | 24790 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 24791 | echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 | 
 | 24792 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6 | 
 | 24793 | if test "${ac_cv_search_lt_dlopen+set}" = set; then | 
 | 24794 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24795 | else | 
 | 24796 |   ac_func_search_save_LIBS=$LIBS | 
 | 24797 | ac_cv_search_lt_dlopen=no | 
 | 24798 | cat >conftest.$ac_ext <<_ACEOF | 
 | 24799 | /* confdefs.h.  */ | 
 | 24800 | _ACEOF | 
 | 24801 | cat confdefs.h >>conftest.$ac_ext | 
 | 24802 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24803 | /* end confdefs.h.  */ | 
 | 24804 |  | 
 | 24805 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 24806 | #ifdef __cplusplus | 
 | 24807 | extern "C" | 
 | 24808 | #endif | 
 | 24809 | /* We use char because int might match the return type of a gcc2 | 
 | 24810 |    builtin and then its argument prototype would still apply.  */ | 
 | 24811 | char lt_dlopen (); | 
 | 24812 | int | 
 | 24813 | main () | 
 | 24814 | { | 
 | 24815 | lt_dlopen (); | 
 | 24816 |   ; | 
 | 24817 |   return 0; | 
 | 24818 | } | 
 | 24819 | _ACEOF | 
 | 24820 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 24821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 24822 |   (eval $ac_link) 2>conftest.er1 | 
 | 24823 |   ac_status=$? | 
 | 24824 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 24825 |   rm -f conftest.er1 | 
 | 24826 |   cat conftest.err >&5 | 
 | 24827 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24828 |   (exit $ac_status); } && | 
 | 24829 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 24830 | 			 || test ! -s conftest.err' | 
 | 24831 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24832 |   (eval $ac_try) 2>&5 | 
 | 24833 |   ac_status=$? | 
 | 24834 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24835 |   (exit $ac_status); }; } && | 
 | 24836 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 24837 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24838 |   (eval $ac_try) 2>&5 | 
 | 24839 |   ac_status=$? | 
 | 24840 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24841 |   (exit $ac_status); }; }; then | 
 | 24842 |   ac_cv_search_lt_dlopen="none required" | 
 | 24843 | else | 
 | 24844 |   echo "$as_me: failed program was:" >&5 | 
 | 24845 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 24846 |  | 
 | 24847 | fi | 
 | 24848 | rm -f conftest.err conftest.$ac_objext \ | 
 | 24849 |       conftest$ac_exeext conftest.$ac_ext | 
 | 24850 | if test "$ac_cv_search_lt_dlopen" = no; then | 
 | 24851 |   for ac_lib in ltdl; do | 
 | 24852 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 24853 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 24854 | /* confdefs.h.  */ | 
 | 24855 | _ACEOF | 
 | 24856 | cat confdefs.h >>conftest.$ac_ext | 
 | 24857 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24858 | /* end confdefs.h.  */ | 
 | 24859 |  | 
 | 24860 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 24861 | #ifdef __cplusplus | 
 | 24862 | extern "C" | 
 | 24863 | #endif | 
 | 24864 | /* We use char because int might match the return type of a gcc2 | 
 | 24865 |    builtin and then its argument prototype would still apply.  */ | 
 | 24866 | char lt_dlopen (); | 
 | 24867 | int | 
 | 24868 | main () | 
 | 24869 | { | 
 | 24870 | lt_dlopen (); | 
 | 24871 |   ; | 
 | 24872 |   return 0; | 
 | 24873 | } | 
 | 24874 | _ACEOF | 
 | 24875 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 24876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 24877 |   (eval $ac_link) 2>conftest.er1 | 
 | 24878 |   ac_status=$? | 
 | 24879 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 24880 |   rm -f conftest.er1 | 
 | 24881 |   cat conftest.err >&5 | 
 | 24882 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24883 |   (exit $ac_status); } && | 
 | 24884 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 24885 | 			 || test ! -s conftest.err' | 
 | 24886 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24887 |   (eval $ac_try) 2>&5 | 
 | 24888 |   ac_status=$? | 
 | 24889 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24890 |   (exit $ac_status); }; } && | 
 | 24891 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 24892 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24893 |   (eval $ac_try) 2>&5 | 
 | 24894 |   ac_status=$? | 
 | 24895 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24896 |   (exit $ac_status); }; }; then | 
 | 24897 |   ac_cv_search_lt_dlopen="-l$ac_lib" | 
 | 24898 | break | 
 | 24899 | else | 
 | 24900 |   echo "$as_me: failed program was:" >&5 | 
 | 24901 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 24902 |  | 
 | 24903 | fi | 
 | 24904 | rm -f conftest.err conftest.$ac_objext \ | 
 | 24905 |       conftest$ac_exeext conftest.$ac_ext | 
 | 24906 |   done | 
 | 24907 | fi | 
 | 24908 | LIBS=$ac_func_search_save_LIBS | 
 | 24909 | fi | 
 | 24910 | echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 | 
 | 24911 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6 | 
 | 24912 | if test "$ac_cv_search_lt_dlopen" != no; then | 
 | 24913 |   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS" | 
 | 24914 |  | 
 | 24915 | cat >>confdefs.h <<\_ACEOF | 
 | 24916 | #define HAVE_LT_DLOPEN 1 | 
 | 24917 | _ACEOF | 
 | 24918 |  | 
 | 24919 | else | 
 | 24920 |   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might | 
 | 24921 |                            not be available" >&5 | 
 | 24922 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might | 
 | 24923 |                            not be available" >&2;} | 
 | 24924 | fi | 
 | 24925 |  | 
 | 24926 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24927 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
 | 24928 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 | 
 | 24929 | if test "${ac_cv_search_dlopen+set}" = set; then | 
 | 24930 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24931 | else | 
 | 24932 |   ac_func_search_save_LIBS=$LIBS | 
 | 24933 | ac_cv_search_dlopen=no | 
 | 24934 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24935 | /* confdefs.h.  */ | 
 | 24936 | _ACEOF | 
 | 24937 | cat confdefs.h >>conftest.$ac_ext | 
 | 24938 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24939 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24940 |  | 
 | 24941 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 24942 | #ifdef __cplusplus | 
 | 24943 | extern "C" | 
 | 24944 | #endif | 
 | 24945 | /* We use char because int might match the return type of a gcc2 | 
 | 24946 |    builtin and then its argument prototype would still apply.  */ | 
 | 24947 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24948 | int | 
 | 24949 | main () | 
 | 24950 | { | 
 | 24951 | dlopen (); | 
 | 24952 |   ; | 
 | 24953 |   return 0; | 
 | 24954 | } | 
 | 24955 | _ACEOF | 
 | 24956 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 24957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24958 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24959 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24960 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 24961 |   rm -f conftest.er1 | 
 | 24962 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24963 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24964 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24965 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 24966 | 			 || test ! -s conftest.err' | 
 | 24967 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24968 |   (eval $ac_try) 2>&5 | 
 | 24969 |   ac_status=$? | 
 | 24970 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24971 |   (exit $ac_status); }; } && | 
 | 24972 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24973 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 24974 |   (eval $ac_try) 2>&5 | 
 | 24975 |   ac_status=$? | 
 | 24976 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 24977 |   (exit $ac_status); }; }; then | 
 | 24978 |   ac_cv_search_dlopen="none required" | 
 | 24979 | else | 
 | 24980 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24981 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 24982 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24983 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24984 | rm -f conftest.err conftest.$ac_objext \ | 
 | 24985 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24986 | if test "$ac_cv_search_dlopen" = no; then | 
 | 24987 |   for ac_lib in dl; do | 
 | 24988 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 24989 |     cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24990 | /* confdefs.h.  */ | 
 | 24991 | _ACEOF | 
 | 24992 | cat confdefs.h >>conftest.$ac_ext | 
 | 24993 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 24994 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24995 |  | 
 | 24996 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 24997 | #ifdef __cplusplus | 
 | 24998 | extern "C" | 
 | 24999 | #endif | 
 | 25000 | /* We use char because int might match the return type of a gcc2 | 
 | 25001 |    builtin and then its argument prototype would still apply.  */ | 
 | 25002 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25003 | int | 
 | 25004 | main () | 
 | 25005 | { | 
 | 25006 | dlopen (); | 
 | 25007 |   ; | 
 | 25008 |   return 0; | 
 | 25009 | } | 
 | 25010 | _ACEOF | 
 | 25011 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25013 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25014 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25015 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25016 |   rm -f conftest.er1 | 
 | 25017 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25018 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25019 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25020 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25021 | 			 || test ! -s conftest.err' | 
 | 25022 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25023 |   (eval $ac_try) 2>&5 | 
 | 25024 |   ac_status=$? | 
 | 25025 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25026 |   (exit $ac_status); }; } && | 
 | 25027 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25028 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25029 |   (eval $ac_try) 2>&5 | 
 | 25030 |   ac_status=$? | 
 | 25031 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25032 |   (exit $ac_status); }; }; then | 
 | 25033 |   ac_cv_search_dlopen="-l$ac_lib" | 
 | 25034 | break | 
 | 25035 | else | 
 | 25036 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25037 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25038 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25039 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25040 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25041 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25042 |   done | 
 | 25043 | fi | 
 | 25044 | LIBS=$ac_func_search_save_LIBS | 
 | 25045 | fi | 
 | 25046 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
 | 25047 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 | 
 | 25048 | if test "$ac_cv_search_dlopen" != no; then | 
 | 25049 |   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] | 25050 |  | 
 | 25051 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25052 | #define HAVE_DLOPEN 1 | 
 | 25053 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25054 |  | 
 | 25055 | else | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 25056 |   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
 | 25057 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25058 | fi | 
 | 25059 |  | 
 | 25060 |  | 
 | 25061 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
 | 25062 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 | 
 | 25063 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
 | 25064 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25065 | else | 
 | 25066 |   ac_func_search_save_LIBS=$LIBS | 
 | 25067 | ac_cv_search_mallinfo=no | 
 | 25068 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25069 | /* confdefs.h.  */ | 
 | 25070 | _ACEOF | 
 | 25071 | cat confdefs.h >>conftest.$ac_ext | 
 | 25072 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25073 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25074 |  | 
 | 25075 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25076 | #ifdef __cplusplus | 
 | 25077 | extern "C" | 
 | 25078 | #endif | 
 | 25079 | /* We use char because int might match the return type of a gcc2 | 
 | 25080 |    builtin and then its argument prototype would still apply.  */ | 
 | 25081 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25082 | int | 
 | 25083 | main () | 
 | 25084 | { | 
 | 25085 | mallinfo (); | 
 | 25086 |   ; | 
 | 25087 |   return 0; | 
 | 25088 | } | 
 | 25089 | _ACEOF | 
 | 25090 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25092 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25093 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25094 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25095 |   rm -f conftest.er1 | 
 | 25096 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25097 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25098 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25099 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25100 | 			 || test ! -s conftest.err' | 
 | 25101 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25102 |   (eval $ac_try) 2>&5 | 
 | 25103 |   ac_status=$? | 
 | 25104 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25105 |   (exit $ac_status); }; } && | 
 | 25106 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25107 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25108 |   (eval $ac_try) 2>&5 | 
 | 25109 |   ac_status=$? | 
 | 25110 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25111 |   (exit $ac_status); }; }; then | 
 | 25112 |   ac_cv_search_mallinfo="none required" | 
 | 25113 | else | 
 | 25114 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25115 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25116 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25117 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25118 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25119 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25120 | if test "$ac_cv_search_mallinfo" = no; then | 
 | 25121 |   for ac_lib in malloc; do | 
 | 25122 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 25123 |     cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25124 | /* confdefs.h.  */ | 
 | 25125 | _ACEOF | 
 | 25126 | cat confdefs.h >>conftest.$ac_ext | 
 | 25127 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25128 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25129 |  | 
 | 25130 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25131 | #ifdef __cplusplus | 
 | 25132 | extern "C" | 
 | 25133 | #endif | 
 | 25134 | /* We use char because int might match the return type of a gcc2 | 
 | 25135 |    builtin and then its argument prototype would still apply.  */ | 
 | 25136 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25137 | int | 
 | 25138 | main () | 
 | 25139 | { | 
 | 25140 | mallinfo (); | 
 | 25141 |   ; | 
 | 25142 |   return 0; | 
 | 25143 | } | 
 | 25144 | _ACEOF | 
 | 25145 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25147 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25148 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25149 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25150 |   rm -f conftest.er1 | 
 | 25151 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25152 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25153 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25154 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25155 | 			 || test ! -s conftest.err' | 
 | 25156 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25157 |   (eval $ac_try) 2>&5 | 
 | 25158 |   ac_status=$? | 
 | 25159 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25160 |   (exit $ac_status); }; } && | 
 | 25161 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25162 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25163 |   (eval $ac_try) 2>&5 | 
 | 25164 |   ac_status=$? | 
 | 25165 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25166 |   (exit $ac_status); }; }; then | 
 | 25167 |   ac_cv_search_mallinfo="-l$ac_lib" | 
 | 25168 | break | 
 | 25169 | else | 
 | 25170 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25171 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25172 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25173 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25174 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25175 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25176 |   done | 
 | 25177 | fi | 
 | 25178 | LIBS=$ac_func_search_save_LIBS | 
 | 25179 | fi | 
 | 25180 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
 | 25181 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 | 
 | 25182 | if test "$ac_cv_search_mallinfo" != no; then | 
 | 25183 |   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] | 25184 |  | 
 | 25185 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25186 | #define HAVE_MALLINFO 1 | 
 | 25187 | _ACEOF | 
 | 25188 |  | 
 | 25189 | fi | 
 | 25190 |  | 
 | 25191 |  | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25192 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
 | 25193 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 | 
 | 25194 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
 | 25195 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25196 | else | 
 | 25197 |   ac_func_search_save_LIBS=$LIBS | 
 | 25198 | ac_cv_search_pthread_mutex_lock=no | 
 | 25199 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25200 | /* confdefs.h.  */ | 
 | 25201 | _ACEOF | 
 | 25202 | cat confdefs.h >>conftest.$ac_ext | 
 | 25203 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25204 | /* end confdefs.h.  */ | 
 | 25205 |  | 
 | 25206 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25207 | #ifdef __cplusplus | 
 | 25208 | extern "C" | 
 | 25209 | #endif | 
 | 25210 | /* We use char because int might match the return type of a gcc2 | 
 | 25211 |    builtin and then its argument prototype would still apply.  */ | 
 | 25212 | char pthread_mutex_lock (); | 
 | 25213 | int | 
 | 25214 | main () | 
 | 25215 | { | 
 | 25216 | pthread_mutex_lock (); | 
 | 25217 |   ; | 
 | 25218 |   return 0; | 
 | 25219 | } | 
 | 25220 | _ACEOF | 
 | 25221 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25223 |   (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25224 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25225 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25226 |   rm -f conftest.er1 | 
 | 25227 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25228 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25229 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25230 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25231 | 			 || test ! -s conftest.err' | 
 | 25232 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25233 |   (eval $ac_try) 2>&5 | 
 | 25234 |   ac_status=$? | 
 | 25235 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25236 |   (exit $ac_status); }; } && | 
 | 25237 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25238 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25239 |   (eval $ac_try) 2>&5 | 
 | 25240 |   ac_status=$? | 
 | 25241 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25242 |   (exit $ac_status); }; }; then | 
 | 25243 |   ac_cv_search_pthread_mutex_lock="none required" | 
 | 25244 | else | 
 | 25245 |   echo "$as_me: failed program was:" >&5 | 
 | 25246 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25247 |  | 
 | 25248 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25249 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25250 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25251 | if test "$ac_cv_search_pthread_mutex_lock" = no; then | 
 | 25252 |   for ac_lib in pthread; do | 
 | 25253 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 25254 |     cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25255 | /* confdefs.h.  */ | 
 | 25256 | _ACEOF | 
 | 25257 | cat confdefs.h >>conftest.$ac_ext | 
 | 25258 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25259 | /* end confdefs.h.  */ | 
 | 25260 |  | 
 | 25261 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 25262 | #ifdef __cplusplus | 
 | 25263 | extern "C" | 
 | 25264 | #endif | 
 | 25265 | /* We use char because int might match the return type of a gcc2 | 
 | 25266 |    builtin and then its argument prototype would still apply.  */ | 
 | 25267 | char pthread_mutex_lock (); | 
 | 25268 | int | 
 | 25269 | main () | 
 | 25270 | { | 
 | 25271 | pthread_mutex_lock (); | 
 | 25272 |   ; | 
 | 25273 |   return 0; | 
 | 25274 | } | 
 | 25275 | _ACEOF | 
 | 25276 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 25277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25278 |   (eval $ac_link) 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25279 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25280 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25281 |   rm -f conftest.er1 | 
 | 25282 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25283 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25284 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25285 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25286 | 			 || test ! -s conftest.err' | 
 | 25287 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25288 |   (eval $ac_try) 2>&5 | 
 | 25289 |   ac_status=$? | 
 | 25290 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25291 |   (exit $ac_status); }; } && | 
 | 25292 | 	 { ac_try='test -s conftest$ac_exeext' | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25293 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25294 |   (eval $ac_try) 2>&5 | 
 | 25295 |   ac_status=$? | 
 | 25296 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25297 |   (exit $ac_status); }; }; then | 
 | 25298 |   ac_cv_search_pthread_mutex_lock="-l$ac_lib" | 
 | 25299 | break | 
 | 25300 | else | 
 | 25301 |   echo "$as_me: failed program was:" >&5 | 
 | 25302 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25303 |  | 
 | 25304 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25305 | rm -f conftest.err conftest.$ac_objext \ | 
 | 25306 |       conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25307 |   done | 
 | 25308 | fi | 
 | 25309 | LIBS=$ac_func_search_save_LIBS | 
 | 25310 | fi | 
 | 25311 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
 | 25312 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 | 
 | 25313 | if test "$ac_cv_search_pthread_mutex_lock" != no; then | 
 | 25314 |   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] | 25315 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 25316 | cat >>confdefs.h <<\_ACEOF | 
 | 25317 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
 | 25318 | _ACEOF | 
 | 25319 |  | 
 | 25320 | fi | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 25321 |  | 
| Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 25322 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25323 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25324 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 25325 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 25326 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 25327 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25328 | else | 
 | 25329 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25330 | /* confdefs.h.  */ | 
 | 25331 | _ACEOF | 
 | 25332 | cat confdefs.h >>conftest.$ac_ext | 
 | 25333 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25334 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25335 | #include <stdlib.h> | 
 | 25336 | #include <stdarg.h> | 
 | 25337 | #include <string.h> | 
 | 25338 | #include <float.h> | 
 | 25339 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25340 | int | 
 | 25341 | main () | 
 | 25342 | { | 
 | 25343 |  | 
 | 25344 |   ; | 
 | 25345 |   return 0; | 
 | 25346 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25347 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25348 | rm -f conftest.$ac_objext | 
 | 25349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25350 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25351 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25352 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25353 |   rm -f conftest.er1 | 
 | 25354 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25355 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25356 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25357 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25358 | 			 || test ! -s conftest.err' | 
 | 25359 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25360 |   (eval $ac_try) 2>&5 | 
 | 25361 |   ac_status=$? | 
 | 25362 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25363 |   (exit $ac_status); }; } && | 
 | 25364 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25365 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25366 |   (eval $ac_try) 2>&5 | 
 | 25367 |   ac_status=$? | 
 | 25368 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25369 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25370 |   ac_cv_header_stdc=yes | 
 | 25371 | else | 
 | 25372 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25373 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25374 |  | 
 | 25375 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25376 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25378 |  | 
 | 25379 | if test $ac_cv_header_stdc = yes; then | 
 | 25380 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 25381 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25382 | /* confdefs.h.  */ | 
 | 25383 | _ACEOF | 
 | 25384 | cat confdefs.h >>conftest.$ac_ext | 
 | 25385 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25386 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25387 | #include <string.h> | 
 | 25388 |  | 
 | 25389 | _ACEOF | 
 | 25390 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25391 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25392 |   : | 
 | 25393 | else | 
 | 25394 |   ac_cv_header_stdc=no | 
 | 25395 | fi | 
 | 25396 | rm -f conftest* | 
 | 25397 |  | 
 | 25398 | fi | 
 | 25399 |  | 
 | 25400 | if test $ac_cv_header_stdc = yes; then | 
 | 25401 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 25402 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25403 | /* confdefs.h.  */ | 
 | 25404 | _ACEOF | 
 | 25405 | cat confdefs.h >>conftest.$ac_ext | 
 | 25406 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25407 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25408 | #include <stdlib.h> | 
 | 25409 |  | 
 | 25410 | _ACEOF | 
 | 25411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25412 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25413 |   : | 
 | 25414 | else | 
 | 25415 |   ac_cv_header_stdc=no | 
 | 25416 | fi | 
 | 25417 | rm -f conftest* | 
 | 25418 |  | 
 | 25419 | fi | 
 | 25420 |  | 
 | 25421 | if test $ac_cv_header_stdc = yes; then | 
 | 25422 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 25423 |   if test "$cross_compiling" = yes; then | 
 | 25424 |   : | 
 | 25425 | else | 
 | 25426 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25427 | /* confdefs.h.  */ | 
 | 25428 | _ACEOF | 
 | 25429 | cat confdefs.h >>conftest.$ac_ext | 
 | 25430 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25431 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25432 | #include <ctype.h> | 
 | 25433 | #if ((' ' & 0x0FF) == 0x020) | 
 | 25434 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 25435 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 25436 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25437 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25438 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 25439 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 25440 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25441 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 25442 | #endif | 
 | 25443 |  | 
 | 25444 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 25445 | int | 
 | 25446 | main () | 
 | 25447 | { | 
 | 25448 |   int i; | 
 | 25449 |   for (i = 0; i < 256; i++) | 
 | 25450 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25451 | 	|| toupper (i) != TOUPPER (i)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25452 |       exit(2); | 
 | 25453 |   exit (0); | 
 | 25454 | } | 
 | 25455 | _ACEOF | 
 | 25456 | rm -f conftest$ac_exeext | 
 | 25457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 25458 |   (eval $ac_link) 2>&5 | 
 | 25459 |   ac_status=$? | 
 | 25460 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25461 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 25462 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25463 |   (eval $ac_try) 2>&5 | 
 | 25464 |   ac_status=$? | 
 | 25465 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25466 |   (exit $ac_status); }; }; then | 
 | 25467 |   : | 
 | 25468 | else | 
 | 25469 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 25470 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25471 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25472 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25473 | ( exit $ac_status ) | 
 | 25474 | ac_cv_header_stdc=no | 
 | 25475 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25476 | 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] | 25477 | fi | 
 | 25478 | fi | 
 | 25479 | fi | 
 | 25480 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 25481 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 25482 | if test $ac_cv_header_stdc = yes; then | 
 | 25483 |  | 
 | 25484 | cat >>confdefs.h <<\_ACEOF | 
 | 25485 | #define STDC_HEADERS 1 | 
 | 25486 | _ACEOF | 
 | 25487 |  | 
 | 25488 | fi | 
 | 25489 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25490 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25491 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
 | 25492 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | 
 | 25493 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
 | 25494 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25495 | else | 
 | 25496 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25497 | /* confdefs.h.  */ | 
 | 25498 | _ACEOF | 
 | 25499 | cat confdefs.h >>conftest.$ac_ext | 
 | 25500 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25501 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25502 | #include <sys/types.h> | 
 | 25503 | #include <sys/wait.h> | 
 | 25504 | #ifndef WEXITSTATUS | 
 | 25505 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
 | 25506 | #endif | 
 | 25507 | #ifndef WIFEXITED | 
 | 25508 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
 | 25509 | #endif | 
 | 25510 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25511 | int | 
 | 25512 | main () | 
 | 25513 | { | 
 | 25514 |   int s; | 
 | 25515 |   wait (&s); | 
 | 25516 |   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
 | 25517 |   ; | 
 | 25518 |   return 0; | 
 | 25519 | } | 
 | 25520 | _ACEOF | 
 | 25521 | rm -f conftest.$ac_objext | 
 | 25522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25523 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25524 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25525 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25526 |   rm -f conftest.er1 | 
 | 25527 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25528 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25529 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25530 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25531 | 			 || test ! -s conftest.err' | 
 | 25532 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25533 |   (eval $ac_try) 2>&5 | 
 | 25534 |   ac_status=$? | 
 | 25535 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25536 |   (exit $ac_status); }; } && | 
 | 25537 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25538 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25539 |   (eval $ac_try) 2>&5 | 
 | 25540 |   ac_status=$? | 
 | 25541 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25542 |   (exit $ac_status); }; }; then | 
 | 25543 |   ac_cv_header_sys_wait_h=yes | 
 | 25544 | else | 
 | 25545 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25546 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25547 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25548 | ac_cv_header_sys_wait_h=no | 
 | 25549 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25551 | fi | 
 | 25552 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
 | 25553 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | 
 | 25554 | if test $ac_cv_header_sys_wait_h = yes; then | 
 | 25555 |  | 
 | 25556 | cat >>confdefs.h <<\_ACEOF | 
 | 25557 | #define HAVE_SYS_WAIT_H 1 | 
 | 25558 | _ACEOF | 
 | 25559 |  | 
 | 25560 | fi | 
 | 25561 |  | 
 | 25562 |  | 
 | 25563 |  | 
 | 25564 |  | 
 | 25565 |  | 
 | 25566 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25567 | for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25568 | do | 
 | 25569 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 25570 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 25571 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 25572 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 25573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 25574 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25575 | fi | 
 | 25576 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 25577 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 25578 | else | 
 | 25579 |   # Is the header compilable? | 
 | 25580 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 25581 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 25582 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25583 | /* confdefs.h.  */ | 
 | 25584 | _ACEOF | 
 | 25585 | cat confdefs.h >>conftest.$ac_ext | 
 | 25586 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25587 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25588 | $ac_includes_default | 
 | 25589 | #include <$ac_header> | 
 | 25590 | _ACEOF | 
 | 25591 | rm -f conftest.$ac_objext | 
 | 25592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25593 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25594 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25595 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25596 |   rm -f conftest.er1 | 
 | 25597 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25598 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25599 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25600 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25601 | 			 || test ! -s conftest.err' | 
 | 25602 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25603 |   (eval $ac_try) 2>&5 | 
 | 25604 |   ac_status=$? | 
 | 25605 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25606 |   (exit $ac_status); }; } && | 
 | 25607 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25608 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25609 |   (eval $ac_try) 2>&5 | 
 | 25610 |   ac_status=$? | 
 | 25611 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25612 |   (exit $ac_status); }; }; then | 
 | 25613 |   ac_header_compiler=yes | 
 | 25614 | else | 
 | 25615 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25616 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25617 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25618 | ac_header_compiler=no | 
 | 25619 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25621 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 25622 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 25623 |  | 
 | 25624 | # Is the header present? | 
 | 25625 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 25626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 25627 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25628 | /* confdefs.h.  */ | 
 | 25629 | _ACEOF | 
 | 25630 | cat confdefs.h >>conftest.$ac_ext | 
 | 25631 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25632 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25633 | #include <$ac_header> | 
 | 25634 | _ACEOF | 
 | 25635 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 25636 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 25637 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25638 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25639 |   rm -f conftest.er1 | 
 | 25640 |   cat conftest.err >&5 | 
 | 25641 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25642 |   (exit $ac_status); } >/dev/null; then | 
 | 25643 |   if test -s conftest.err; then | 
 | 25644 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25645 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25646 |   else | 
 | 25647 |     ac_cpp_err= | 
 | 25648 |   fi | 
 | 25649 | else | 
 | 25650 |   ac_cpp_err=yes | 
 | 25651 | fi | 
 | 25652 | if test -z "$ac_cpp_err"; then | 
 | 25653 |   ac_header_preproc=yes | 
 | 25654 | else | 
 | 25655 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25656 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25657 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25658 |   ac_header_preproc=no | 
 | 25659 | fi | 
 | 25660 | rm -f conftest.err conftest.$ac_ext | 
 | 25661 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 25662 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 25663 |  | 
 | 25664 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 25666 |   yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25667 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 25668 | 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] | 25669 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 25670 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 25671 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 25672 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25673 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 25674 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 25675 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25676 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 25677 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 25678 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 25679 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 25680 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 25681 | 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] | 25682 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 25683 | 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] | 25684 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 25685 | 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] | 25686 |     ( | 
 | 25687 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25688 | ## ----------------------------------- ## | 
 | 25689 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 25690 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25691 | _ASBOX | 
 | 25692 |     ) | | 
 | 25693 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 25694 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25695 | esac | 
 | 25696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 25697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 25698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 25699 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25700 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25701 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25702 | fi | 
 | 25703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 25704 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 25705 |  | 
 | 25706 | fi | 
 | 25707 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 25708 |   cat >>confdefs.h <<_ACEOF | 
 | 25709 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 25710 | _ACEOF | 
 | 25711 |  | 
 | 25712 | fi | 
 | 25713 |  | 
 | 25714 | done | 
 | 25715 |  | 
 | 25716 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25717 |  | 
 | 25718 |  | 
 | 25719 |  | 
 | 25720 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 25721 | for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25722 | do | 
 | 25723 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 25724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 25725 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 25726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 25727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25728 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25729 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 25731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25732 | else | 
 | 25733 |   # Is the header compilable? | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25734 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 25735 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25736 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25737 | /* confdefs.h.  */ | 
 | 25738 | _ACEOF | 
 | 25739 | cat confdefs.h >>conftest.$ac_ext | 
 | 25740 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25741 | /* end confdefs.h.  */ | 
 | 25742 | $ac_includes_default | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25743 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25744 | _ACEOF | 
 | 25745 | rm -f conftest.$ac_objext | 
 | 25746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25747 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25748 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25749 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25750 |   rm -f conftest.er1 | 
 | 25751 |   cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25752 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25753 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25754 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25755 | 			 || test ! -s conftest.err' | 
 | 25756 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25757 |   (eval $ac_try) 2>&5 | 
 | 25758 |   ac_status=$? | 
 | 25759 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25760 |   (exit $ac_status); }; } && | 
 | 25761 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25762 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25763 |   (eval $ac_try) 2>&5 | 
 | 25764 |   ac_status=$? | 
 | 25765 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25766 |   (exit $ac_status); }; }; then | 
 | 25767 |   ac_header_compiler=yes | 
 | 25768 | else | 
 | 25769 |   echo "$as_me: failed program was:" >&5 | 
 | 25770 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25771 |  | 
 | 25772 | ac_header_compiler=no | 
 | 25773 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25775 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 25776 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 25777 |  | 
 | 25778 | # Is the header present? | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25779 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 25780 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25781 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 25782 | /* confdefs.h.  */ | 
 | 25783 | _ACEOF | 
 | 25784 | cat confdefs.h >>conftest.$ac_ext | 
 | 25785 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25786 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25787 | #include <$ac_header> | 
 | 25788 | _ACEOF | 
 | 25789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 25790 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 25791 |   ac_status=$? | 
 | 25792 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25793 |   rm -f conftest.er1 | 
 | 25794 |   cat conftest.err >&5 | 
 | 25795 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25796 |   (exit $ac_status); } >/dev/null; then | 
 | 25797 |   if test -s conftest.err; then | 
 | 25798 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 25799 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 25800 |   else | 
 | 25801 |     ac_cpp_err= | 
 | 25802 |   fi | 
 | 25803 | else | 
 | 25804 |   ac_cpp_err=yes | 
 | 25805 | fi | 
 | 25806 | if test -z "$ac_cpp_err"; then | 
 | 25807 |   ac_header_preproc=yes | 
 | 25808 | else | 
 | 25809 |   echo "$as_me: failed program was:" >&5 | 
 | 25810 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25811 |  | 
 | 25812 |   ac_header_preproc=no | 
 | 25813 | fi | 
 | 25814 | rm -f conftest.err conftest.$ac_ext | 
 | 25815 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 25816 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 25817 |  | 
 | 25818 | # So?  What about this header? | 
 | 25819 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 25820 |   yes:no: ) | 
 | 25821 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 25822 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 25823 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 25824 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 25825 |     ac_header_preproc=yes | 
 | 25826 |     ;; | 
 | 25827 |   no:yes:* ) | 
 | 25828 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 25829 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 25830 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 25831 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 25832 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 25833 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 25834 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 25835 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 25836 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 25837 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 25838 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 25839 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 25840 |     ( | 
 | 25841 |       cat <<\_ASBOX | 
 | 25842 | ## ----------------------------------- ## | 
 | 25843 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 25844 | ## ----------------------------------- ## | 
 | 25845 | _ASBOX | 
 | 25846 |     ) | | 
 | 25847 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 25848 |     ;; | 
 | 25849 | esac | 
 | 25850 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 25851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 25852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 25853 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25854 | else | 
 | 25855 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 25856 | fi | 
 | 25857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 25858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 25859 |  | 
 | 25860 | fi | 
 | 25861 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 25862 |   cat >>confdefs.h <<_ACEOF | 
 | 25863 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 25864 | _ACEOF | 
 | 25865 |  | 
 | 25866 | fi | 
 | 25867 |  | 
 | 25868 | done | 
 | 25869 |  | 
 | 25870 |  | 
 | 25871 |  | 
 | 25872 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 25873 | for ac_header in malloc.h unistd.h windows.h | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25874 | do | 
 | 25875 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 25876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 25877 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 25878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 25879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 25880 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 25881 | fi | 
 | 25882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 25883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 25884 | else | 
 | 25885 |   # Is the header compilable? | 
 | 25886 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 25887 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 25888 | cat >conftest.$ac_ext <<_ACEOF | 
 | 25889 | /* confdefs.h.  */ | 
 | 25890 | _ACEOF | 
 | 25891 | cat confdefs.h >>conftest.$ac_ext | 
 | 25892 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25893 | /* end confdefs.h.  */ | 
 | 25894 | $ac_includes_default | 
 | 25895 | #include <$ac_header> | 
 | 25896 | _ACEOF | 
 | 25897 | rm -f conftest.$ac_objext | 
 | 25898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 25899 |   (eval $ac_compile) 2>conftest.er1 | 
 | 25900 |   ac_status=$? | 
 | 25901 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25902 |   rm -f conftest.er1 | 
 | 25903 |   cat conftest.err >&5 | 
 | 25904 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25905 |   (exit $ac_status); } && | 
 | 25906 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 25907 | 			 || test ! -s conftest.err' | 
 | 25908 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25909 |   (eval $ac_try) 2>&5 | 
 | 25910 |   ac_status=$? | 
 | 25911 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25912 |   (exit $ac_status); }; } && | 
 | 25913 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 25914 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 25915 |   (eval $ac_try) 2>&5 | 
 | 25916 |   ac_status=$? | 
 | 25917 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25918 |   (exit $ac_status); }; }; then | 
 | 25919 |   ac_header_compiler=yes | 
 | 25920 | else | 
 | 25921 |   echo "$as_me: failed program was:" >&5 | 
 | 25922 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25923 |  | 
 | 25924 | ac_header_compiler=no | 
 | 25925 | fi | 
 | 25926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25927 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 25928 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 25929 |  | 
 | 25930 | # Is the header present? | 
 | 25931 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 25932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 25933 | cat >conftest.$ac_ext <<_ACEOF | 
 | 25934 | /* confdefs.h.  */ | 
 | 25935 | _ACEOF | 
 | 25936 | cat confdefs.h >>conftest.$ac_ext | 
 | 25937 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25938 | /* end confdefs.h.  */ | 
 | 25939 | #include <$ac_header> | 
 | 25940 | _ACEOF | 
 | 25941 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 25942 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 25943 |   ac_status=$? | 
 | 25944 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25945 |   rm -f conftest.er1 | 
 | 25946 |   cat conftest.err >&5 | 
 | 25947 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25948 |   (exit $ac_status); } >/dev/null; then | 
 | 25949 |   if test -s conftest.err; then | 
 | 25950 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 25951 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 25952 |   else | 
 | 25953 |     ac_cpp_err= | 
 | 25954 |   fi | 
 | 25955 | else | 
 | 25956 |   ac_cpp_err=yes | 
 | 25957 | fi | 
 | 25958 | if test -z "$ac_cpp_err"; then | 
 | 25959 |   ac_header_preproc=yes | 
 | 25960 | else | 
 | 25961 |   echo "$as_me: failed program was:" >&5 | 
 | 25962 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25963 |  | 
 | 25964 |   ac_header_preproc=no | 
 | 25965 | fi | 
 | 25966 | rm -f conftest.err conftest.$ac_ext | 
 | 25967 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 25968 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 25969 |  | 
 | 25970 | # So?  What about this header? | 
 | 25971 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 25972 |   yes:no: ) | 
 | 25973 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 25974 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 25975 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 25976 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 25977 |     ac_header_preproc=yes | 
 | 25978 |     ;; | 
 | 25979 |   no:yes:* ) | 
 | 25980 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 25981 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 25982 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 25983 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 25984 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 25985 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 25986 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 25987 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 25988 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 25989 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 25990 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 25991 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 25992 |     ( | 
 | 25993 |       cat <<\_ASBOX | 
 | 25994 | ## ----------------------------------- ## | 
 | 25995 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 25996 | ## ----------------------------------- ## | 
 | 25997 | _ASBOX | 
 | 25998 |     ) | | 
 | 25999 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 26000 |     ;; | 
 | 26001 | esac | 
 | 26002 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26003 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26005 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26006 | else | 
 | 26007 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 26008 | fi | 
 | 26009 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26010 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 26011 |  | 
 | 26012 | fi | 
 | 26013 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 26014 |   cat >>confdefs.h <<_ACEOF | 
 | 26015 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 26016 | _ACEOF | 
 | 26017 |  | 
 | 26018 | fi | 
 | 26019 |  | 
 | 26020 | done | 
 | 26021 |  | 
 | 26022 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 26023 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | 
 | 26024 | if test "${ac_cv_header_time+set}" = set; then | 
 | 26025 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26026 | else | 
 | 26027 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 26028 | /* confdefs.h.  */ | 
 | 26029 | _ACEOF | 
 | 26030 | cat confdefs.h >>conftest.$ac_ext | 
 | 26031 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26032 | /* end confdefs.h.  */ | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26033 | #include <sys/types.h> | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26034 | #include <sys/time.h> | 
 | 26035 | #include <time.h> | 
 | 26036 |  | 
 | 26037 | int | 
 | 26038 | main () | 
 | 26039 | { | 
 | 26040 | if ((struct tm *) 0) | 
 | 26041 | return 0; | 
 | 26042 |   ; | 
 | 26043 |   return 0; | 
 | 26044 | } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26045 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26046 | rm -f conftest.$ac_objext | 
 | 26047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 26048 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26049 |   ac_status=$? | 
 | 26050 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26051 |   rm -f conftest.er1 | 
 | 26052 |   cat conftest.err >&5 | 
 | 26053 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26054 |   (exit $ac_status); } && | 
 | 26055 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26056 | 			 || test ! -s conftest.err' | 
 | 26057 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26058 |   (eval $ac_try) 2>&5 | 
 | 26059 |   ac_status=$? | 
 | 26060 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26061 |   (exit $ac_status); }; } && | 
 | 26062 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 26063 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26064 |   (eval $ac_try) 2>&5 | 
 | 26065 |   ac_status=$? | 
 | 26066 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26067 |   (exit $ac_status); }; }; then | 
 | 26068 |   ac_cv_header_time=yes | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26069 | else | 
 | 26070 |   echo "$as_me: failed program was:" >&5 | 
 | 26071 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26072 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26073 | ac_cv_header_time=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26074 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 26076 | fi | 
 | 26077 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
 | 26078 | echo "${ECHO_T}$ac_cv_header_time" >&6 | 
 | 26079 | if test $ac_cv_header_time = yes; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26080 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26081 | cat >>confdefs.h <<\_ACEOF | 
 | 26082 | #define TIME_WITH_SYS_TIME 1 | 
 | 26083 | _ACEOF | 
 | 26084 |  | 
 | 26085 | fi | 
 | 26086 |  | 
 | 26087 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
 | 26088 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 | 
 | 26089 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26090 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26091 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26092 |    ac_ext=c | 
 | 26093 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26097 |  | 
 | 26098 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 26099 | /* confdefs.h.  */ | 
 | 26100 | _ACEOF | 
 | 26101 | cat confdefs.h >>conftest.$ac_ext | 
 | 26102 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26103 | /* end confdefs.h.  */ | 
 | 26104 | #include <sys/mman.h> | 
 | 26105 | #include <unistd.h> | 
 | 26106 | #include <fcntl.h> | 
 | 26107 | int | 
 | 26108 | main () | 
 | 26109 | { | 
 | 26110 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
 | 26111 |   ; | 
 | 26112 |   return 0; | 
 | 26113 | } | 
 | 26114 | _ACEOF | 
 | 26115 | rm -f conftest.$ac_objext | 
 | 26116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 26117 |   (eval $ac_compile) 2>conftest.er1 | 
 | 26118 |   ac_status=$? | 
 | 26119 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26120 |   rm -f conftest.er1 | 
 | 26121 |   cat conftest.err >&5 | 
 | 26122 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26123 |   (exit $ac_status); } && | 
 | 26124 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26125 | 			 || test ! -s conftest.err' | 
 | 26126 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26127 |   (eval $ac_try) 2>&5 | 
 | 26128 |   ac_status=$? | 
 | 26129 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26130 |   (exit $ac_status); }; } && | 
 | 26131 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 26132 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26133 |   (eval $ac_try) 2>&5 | 
 | 26134 |   ac_status=$? | 
 | 26135 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26136 |   (exit $ac_status); }; }; then | 
 | 26137 |   ac_cv_header_mmap_anon=yes | 
 | 26138 | else | 
 | 26139 |   echo "$as_me: failed program was:" >&5 | 
 | 26140 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26141 |  | 
 | 26142 | ac_cv_header_mmap_anon=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26143 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 26145 |   ac_ext=c | 
 | 26146 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26150 |  | 
 | 26151 |  | 
 | 26152 | fi | 
 | 26153 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
 | 26154 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 | 
 | 26155 | if test "$ac_cv_header_mmap_anon" = yes; then | 
 | 26156 |  | 
 | 26157 | cat >>confdefs.h <<\_ACEOF | 
 | 26158 | #define HAVE_MMAP_ANONYMOUS | 
 | 26159 | _ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26160 |  | 
 | 26161 | fi | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26162 |  | 
 | 26163 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26164 |  | 
 | 26165 |  | 
 | 26166 | for ac_header in inttypes.h stdint.h | 
 | 26167 | do | 
 | 26168 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 26169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 26170 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26171 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26172 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26173 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26174 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26176 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26177 | else | 
 | 26178 |   # Is the header compilable? | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26179 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 26180 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26181 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26182 | /* confdefs.h.  */ | 
 | 26183 | _ACEOF | 
 | 26184 | cat confdefs.h >>conftest.$ac_ext | 
 | 26185 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26186 | /* end confdefs.h.  */ | 
 | 26187 | $ac_includes_default | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26188 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26189 | _ACEOF | 
 | 26190 | rm -f conftest.$ac_objext | 
 | 26191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26192 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26193 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26194 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26195 |   rm -f conftest.er1 | 
 | 26196 |   cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26197 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26198 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26199 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26200 | 			 || test ! -s conftest.err' | 
 | 26201 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26202 |   (eval $ac_try) 2>&5 | 
 | 26203 |   ac_status=$? | 
 | 26204 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26205 |   (exit $ac_status); }; } && | 
 | 26206 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26207 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26208 |   (eval $ac_try) 2>&5 | 
 | 26209 |   ac_status=$? | 
 | 26210 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26211 |   (exit $ac_status); }; }; then | 
 | 26212 |   ac_header_compiler=yes | 
 | 26213 | else | 
 | 26214 |   echo "$as_me: failed program was:" >&5 | 
 | 26215 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26216 |  | 
 | 26217 | ac_header_compiler=no | 
 | 26218 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26220 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 26221 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 26222 |  | 
 | 26223 | # Is the header present? | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26224 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 26225 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26226 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26227 | /* confdefs.h.  */ | 
 | 26228 | _ACEOF | 
 | 26229 | cat confdefs.h >>conftest.$ac_ext | 
 | 26230 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26231 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26232 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26233 | _ACEOF | 
 | 26234 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 26235 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 26236 |   ac_status=$? | 
 | 26237 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26238 |   rm -f conftest.er1 | 
 | 26239 |   cat conftest.err >&5 | 
 | 26240 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26241 |   (exit $ac_status); } >/dev/null; then | 
 | 26242 |   if test -s conftest.err; then | 
 | 26243 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26244 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26245 |   else | 
 | 26246 |     ac_cpp_err= | 
 | 26247 |   fi | 
 | 26248 | else | 
 | 26249 |   ac_cpp_err=yes | 
 | 26250 | fi | 
 | 26251 | if test -z "$ac_cpp_err"; then | 
 | 26252 |   ac_header_preproc=yes | 
 | 26253 | else | 
 | 26254 |   echo "$as_me: failed program was:" >&5 | 
 | 26255 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26256 |  | 
 | 26257 |   ac_header_preproc=no | 
 | 26258 | fi | 
 | 26259 | rm -f conftest.err conftest.$ac_ext | 
 | 26260 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 26261 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 26262 |  | 
 | 26263 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26264 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 26265 |   yes:no: ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26266 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 26267 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 26268 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 26269 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26270 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 26271 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26272 |   no:yes:* ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26273 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 26274 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 26275 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 26276 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 26277 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 26278 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 26279 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 26280 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 26281 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 26282 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 26283 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 26284 | 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] | 26285 |     ( | 
 | 26286 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26287 | ## ----------------------------------- ## | 
 | 26288 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 26289 | ## ----------------------------------- ## | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26290 | _ASBOX | 
 | 26291 |     ) | | 
 | 26292 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 26293 |     ;; | 
 | 26294 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 26296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 26297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26298 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26299 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26300 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26301 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 26303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26304 |  | 
 | 26305 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26306 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 26307 |   cat >>confdefs.h <<_ACEOF | 
 | 26308 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26309 | _ACEOF | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26310 |  | 
 | 26311 | fi | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26312 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26313 | done | 
 | 26314 |  | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 26315 |  | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 26316 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26317 | echo "$as_me:$LINENO: checking for pid_t" >&5 | 
 | 26318 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | 
 | 26319 | if test "${ac_cv_type_pid_t+set}" = set; then | 
 | 26320 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26321 | else | 
 | 26322 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26323 | /* confdefs.h.  */ | 
 | 26324 | _ACEOF | 
 | 26325 | cat confdefs.h >>conftest.$ac_ext | 
 | 26326 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26327 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26328 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26329 | int | 
 | 26330 | main () | 
 | 26331 | { | 
 | 26332 | if ((pid_t *) 0) | 
 | 26333 |   return 0; | 
 | 26334 | if (sizeof (pid_t)) | 
 | 26335 |   return 0; | 
 | 26336 |   ; | 
 | 26337 |   return 0; | 
 | 26338 | } | 
 | 26339 | _ACEOF | 
 | 26340 | rm -f conftest.$ac_objext | 
 | 26341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26342 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26343 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26344 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26345 |   rm -f conftest.er1 | 
 | 26346 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26347 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26348 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26349 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26350 | 			 || test ! -s conftest.err' | 
 | 26351 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26352 |   (eval $ac_try) 2>&5 | 
 | 26353 |   ac_status=$? | 
 | 26354 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26355 |   (exit $ac_status); }; } && | 
 | 26356 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26357 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26358 |   (eval $ac_try) 2>&5 | 
 | 26359 |   ac_status=$? | 
 | 26360 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26361 |   (exit $ac_status); }; }; then | 
 | 26362 |   ac_cv_type_pid_t=yes | 
 | 26363 | else | 
 | 26364 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26365 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26366 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26367 | ac_cv_type_pid_t=no | 
 | 26368 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26370 | fi | 
 | 26371 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
 | 26372 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | 
 | 26373 | if test $ac_cv_type_pid_t = yes; then | 
 | 26374 |   : | 
 | 26375 | else | 
 | 26376 |  | 
 | 26377 | cat >>confdefs.h <<_ACEOF | 
 | 26378 | #define pid_t int | 
 | 26379 | _ACEOF | 
 | 26380 |  | 
 | 26381 | fi | 
 | 26382 |  | 
 | 26383 | echo "$as_me:$LINENO: checking for size_t" >&5 | 
 | 26384 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | 
 | 26385 | if test "${ac_cv_type_size_t+set}" = set; then | 
 | 26386 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26387 | else | 
 | 26388 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26389 | /* confdefs.h.  */ | 
 | 26390 | _ACEOF | 
 | 26391 | cat confdefs.h >>conftest.$ac_ext | 
 | 26392 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26393 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26394 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26395 | int | 
 | 26396 | main () | 
 | 26397 | { | 
 | 26398 | if ((size_t *) 0) | 
 | 26399 |   return 0; | 
 | 26400 | if (sizeof (size_t)) | 
 | 26401 |   return 0; | 
 | 26402 |   ; | 
 | 26403 |   return 0; | 
 | 26404 | } | 
 | 26405 | _ACEOF | 
 | 26406 | rm -f conftest.$ac_objext | 
 | 26407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26408 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26409 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26410 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26411 |   rm -f conftest.er1 | 
 | 26412 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26413 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26414 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26415 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26416 | 			 || test ! -s conftest.err' | 
 | 26417 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26418 |   (eval $ac_try) 2>&5 | 
 | 26419 |   ac_status=$? | 
 | 26420 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26421 |   (exit $ac_status); }; } && | 
 | 26422 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26423 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26424 |   (eval $ac_try) 2>&5 | 
 | 26425 |   ac_status=$? | 
 | 26426 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26427 |   (exit $ac_status); }; }; then | 
 | 26428 |   ac_cv_type_size_t=yes | 
 | 26429 | else | 
 | 26430 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26431 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26432 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26433 | ac_cv_type_size_t=no | 
 | 26434 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26436 | fi | 
 | 26437 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
 | 26438 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | 
 | 26439 | if test $ac_cv_type_size_t = yes; then | 
 | 26440 |   : | 
 | 26441 | else | 
 | 26442 |  | 
 | 26443 | cat >>confdefs.h <<_ACEOF | 
 | 26444 | #define size_t unsigned | 
 | 26445 | _ACEOF | 
 | 26446 |  | 
 | 26447 | fi | 
 | 26448 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26449 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
 | 26450 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | 
 | 26451 | if test "${ac_cv_type_signal+set}" = set; then | 
 | 26452 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26453 | else | 
 | 26454 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 26455 | /* confdefs.h.  */ | 
 | 26456 | _ACEOF | 
 | 26457 | cat confdefs.h >>conftest.$ac_ext | 
 | 26458 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26459 | /* end confdefs.h.  */ | 
 | 26460 | #include <sys/types.h> | 
 | 26461 | #include <signal.h> | 
 | 26462 | #ifdef signal | 
 | 26463 | # undef signal | 
 | 26464 | #endif | 
 | 26465 | #ifdef __cplusplus | 
 | 26466 | extern "C" void (*signal (int, void (*)(int)))(int); | 
 | 26467 | #else | 
 | 26468 | void (*signal ()) (); | 
 | 26469 | #endif | 
 | 26470 |  | 
 | 26471 | int | 
 | 26472 | main () | 
 | 26473 | { | 
 | 26474 | int i; | 
 | 26475 |   ; | 
 | 26476 |   return 0; | 
 | 26477 | } | 
 | 26478 | _ACEOF | 
 | 26479 | rm -f conftest.$ac_objext | 
 | 26480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 26481 |   (eval $ac_compile) 2>conftest.er1 | 
 | 26482 |   ac_status=$? | 
 | 26483 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26484 |   rm -f conftest.er1 | 
 | 26485 |   cat conftest.err >&5 | 
 | 26486 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26487 |   (exit $ac_status); } && | 
 | 26488 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26489 | 			 || test ! -s conftest.err' | 
 | 26490 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26491 |   (eval $ac_try) 2>&5 | 
 | 26492 |   ac_status=$? | 
 | 26493 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26494 |   (exit $ac_status); }; } && | 
 | 26495 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 26496 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26497 |   (eval $ac_try) 2>&5 | 
 | 26498 |   ac_status=$? | 
 | 26499 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26500 |   (exit $ac_status); }; }; then | 
 | 26501 |   ac_cv_type_signal=void | 
 | 26502 | else | 
 | 26503 |   echo "$as_me: failed program was:" >&5 | 
 | 26504 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26505 |  | 
 | 26506 | ac_cv_type_signal=int | 
 | 26507 | fi | 
 | 26508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 26509 | fi | 
 | 26510 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
 | 26511 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | 
 | 26512 |  | 
 | 26513 | cat >>confdefs.h <<_ACEOF | 
 | 26514 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 26515 | _ACEOF | 
 | 26516 |  | 
 | 26517 |  | 
 | 26518 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 26519 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | 
 | 26520 | if test "${ac_cv_struct_tm+set}" = set; then | 
 | 26521 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26522 | else | 
 | 26523 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 26524 | /* confdefs.h.  */ | 
 | 26525 | _ACEOF | 
 | 26526 | cat confdefs.h >>conftest.$ac_ext | 
 | 26527 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26528 | /* end confdefs.h.  */ | 
 | 26529 | #include <sys/types.h> | 
 | 26530 | #include <time.h> | 
 | 26531 |  | 
 | 26532 | int | 
 | 26533 | main () | 
 | 26534 | { | 
 | 26535 | struct tm *tp; tp->tm_sec; | 
 | 26536 |   ; | 
 | 26537 |   return 0; | 
 | 26538 | } | 
 | 26539 | _ACEOF | 
 | 26540 | rm -f conftest.$ac_objext | 
 | 26541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 26542 |   (eval $ac_compile) 2>conftest.er1 | 
 | 26543 |   ac_status=$? | 
 | 26544 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26545 |   rm -f conftest.er1 | 
 | 26546 |   cat conftest.err >&5 | 
 | 26547 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26548 |   (exit $ac_status); } && | 
 | 26549 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26550 | 			 || test ! -s conftest.err' | 
 | 26551 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26552 |   (eval $ac_try) 2>&5 | 
 | 26553 |   ac_status=$? | 
 | 26554 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26555 |   (exit $ac_status); }; } && | 
 | 26556 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 26557 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26558 |   (eval $ac_try) 2>&5 | 
 | 26559 |   ac_status=$? | 
 | 26560 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26561 |   (exit $ac_status); }; }; then | 
 | 26562 |   ac_cv_struct_tm=time.h | 
 | 26563 | else | 
 | 26564 |   echo "$as_me: failed program was:" >&5 | 
 | 26565 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26566 |  | 
 | 26567 | ac_cv_struct_tm=sys/time.h | 
 | 26568 | fi | 
 | 26569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 26570 | fi | 
 | 26571 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
 | 26572 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | 
 | 26573 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 26574 |  | 
 | 26575 | cat >>confdefs.h <<\_ACEOF | 
 | 26576 | #define TM_IN_SYS_TIME 1 | 
 | 26577 | _ACEOF | 
 | 26578 |  | 
 | 26579 | fi | 
 | 26580 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26581 | echo "$as_me:$LINENO: checking for int64_t" >&5 | 
 | 26582 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | 
 | 26583 | if test "${ac_cv_type_int64_t+set}" = set; then | 
 | 26584 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26585 | else | 
 | 26586 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26587 | /* confdefs.h.  */ | 
 | 26588 | _ACEOF | 
 | 26589 | cat confdefs.h >>conftest.$ac_ext | 
 | 26590 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26591 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26592 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26593 | int | 
 | 26594 | main () | 
 | 26595 | { | 
 | 26596 | if ((int64_t *) 0) | 
 | 26597 |   return 0; | 
 | 26598 | if (sizeof (int64_t)) | 
 | 26599 |   return 0; | 
 | 26600 |   ; | 
 | 26601 |   return 0; | 
 | 26602 | } | 
 | 26603 | _ACEOF | 
 | 26604 | rm -f conftest.$ac_objext | 
 | 26605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26606 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26607 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26608 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26609 |   rm -f conftest.er1 | 
 | 26610 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26611 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26612 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26613 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26614 | 			 || test ! -s conftest.err' | 
 | 26615 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26616 |   (eval $ac_try) 2>&5 | 
 | 26617 |   ac_status=$? | 
 | 26618 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26619 |   (exit $ac_status); }; } && | 
 | 26620 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26621 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26622 |   (eval $ac_try) 2>&5 | 
 | 26623 |   ac_status=$? | 
 | 26624 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26625 |   (exit $ac_status); }; }; then | 
 | 26626 |   ac_cv_type_int64_t=yes | 
 | 26627 | else | 
 | 26628 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26629 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26630 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26631 | ac_cv_type_int64_t=no | 
 | 26632 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26634 | fi | 
 | 26635 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
 | 26636 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | 
 | 26637 | if test $ac_cv_type_int64_t = yes; then | 
 | 26638 |  | 
 | 26639 | cat >>confdefs.h <<_ACEOF | 
 | 26640 | #define HAVE_INT64_T 1 | 
 | 26641 | _ACEOF | 
 | 26642 |  | 
 | 26643 |  | 
 | 26644 | else | 
 | 26645 |   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
 | 26646 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
 | 26647 |    { (exit 1); exit 1; }; } | 
 | 26648 | fi | 
 | 26649 |  | 
 | 26650 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
 | 26651 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | 
 | 26652 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
 | 26653 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26654 | else | 
 | 26655 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26656 | /* confdefs.h.  */ | 
 | 26657 | _ACEOF | 
 | 26658 | cat confdefs.h >>conftest.$ac_ext | 
 | 26659 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26660 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26661 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26662 | int | 
 | 26663 | main () | 
 | 26664 | { | 
 | 26665 | if ((uint64_t *) 0) | 
 | 26666 |   return 0; | 
 | 26667 | if (sizeof (uint64_t)) | 
 | 26668 |   return 0; | 
 | 26669 |   ; | 
 | 26670 |   return 0; | 
 | 26671 | } | 
 | 26672 | _ACEOF | 
 | 26673 | rm -f conftest.$ac_objext | 
 | 26674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26675 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26676 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26677 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26678 |   rm -f conftest.er1 | 
 | 26679 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26680 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26681 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26682 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26683 | 			 || test ! -s conftest.err' | 
 | 26684 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26685 |   (eval $ac_try) 2>&5 | 
 | 26686 |   ac_status=$? | 
 | 26687 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26688 |   (exit $ac_status); }; } && | 
 | 26689 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26690 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26691 |   (eval $ac_try) 2>&5 | 
 | 26692 |   ac_status=$? | 
 | 26693 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26694 |   (exit $ac_status); }; }; then | 
 | 26695 |   ac_cv_type_uint64_t=yes | 
 | 26696 | else | 
 | 26697 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26698 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26699 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26700 | ac_cv_type_uint64_t=no | 
 | 26701 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26703 | fi | 
 | 26704 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
 | 26705 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | 
 | 26706 | if test $ac_cv_type_uint64_t = yes; then | 
 | 26707 |  | 
 | 26708 | cat >>confdefs.h <<_ACEOF | 
 | 26709 | #define HAVE_UINT64_T 1 | 
 | 26710 | _ACEOF | 
 | 26711 |  | 
 | 26712 |  | 
 | 26713 | else | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 26714 |   echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 26715 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | 
 | 26716 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
 | 26717 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26718 | else | 
 | 26719 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 26720 | /* confdefs.h.  */ | 
 | 26721 | _ACEOF | 
 | 26722 | cat confdefs.h >>conftest.$ac_ext | 
 | 26723 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26724 | /* end confdefs.h.  */ | 
 | 26725 | $ac_includes_default | 
 | 26726 | int | 
 | 26727 | main () | 
 | 26728 | { | 
 | 26729 | if ((u_int64_t *) 0) | 
 | 26730 |   return 0; | 
 | 26731 | if (sizeof (u_int64_t)) | 
 | 26732 |   return 0; | 
 | 26733 |   ; | 
 | 26734 |   return 0; | 
 | 26735 | } | 
 | 26736 | _ACEOF | 
 | 26737 | rm -f conftest.$ac_objext | 
 | 26738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26739 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 26740 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26741 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26742 |   rm -f conftest.er1 | 
 | 26743 |   cat conftest.err >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 26744 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26745 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26746 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26747 | 			 || test ! -s conftest.err' | 
 | 26748 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26749 |   (eval $ac_try) 2>&5 | 
 | 26750 |   ac_status=$? | 
 | 26751 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26752 |   (exit $ac_status); }; } && | 
 | 26753 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 26754 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26755 |   (eval $ac_try) 2>&5 | 
 | 26756 |   ac_status=$? | 
 | 26757 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26758 |   (exit $ac_status); }; }; then | 
 | 26759 |   ac_cv_type_u_int64_t=yes | 
 | 26760 | else | 
 | 26761 |   echo "$as_me: failed program was:" >&5 | 
 | 26762 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26763 |  | 
 | 26764 | ac_cv_type_u_int64_t=no | 
 | 26765 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 26767 | fi | 
 | 26768 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
 | 26769 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | 
 | 26770 | if test $ac_cv_type_u_int64_t = yes; then | 
 | 26771 |  | 
 | 26772 | cat >>confdefs.h <<_ACEOF | 
 | 26773 | #define HAVE_U_INT64_T 1 | 
 | 26774 | _ACEOF | 
 | 26775 |  | 
 | 26776 |  | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 26777 | else | 
 | 26778 |   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
 | 26779 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
 | 26780 |    { (exit 1); exit 1; }; } | 
 | 26781 | fi | 
 | 26782 |  | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 26783 | fi | 
 | 26784 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26785 |  | 
 | 26786 |  | 
 | 26787 |  | 
 | 26788 |  | 
 | 26789 |  | 
 | 26790 |  | 
 | 26791 |  | 
 | 26792 |  | 
| Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 26793 | for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty | 
 | 26794 | do | 
 | 26795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 26796 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 26797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 26798 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 26799 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26800 | else | 
 | 26801 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 26802 | /* confdefs.h.  */ | 
 | 26803 | _ACEOF | 
 | 26804 | cat confdefs.h >>conftest.$ac_ext | 
 | 26805 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26806 | /* end confdefs.h.  */ | 
 | 26807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 26808 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 26809 | #define $ac_func innocuous_$ac_func | 
| Reid Spencer | f9960f7 | 2004-12-15 01:41:56 +0000 | [diff] [blame] | 26810 |  | 
| Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 26811 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 26812 |     which can conflict with char $ac_func (); below. | 
 | 26813 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 26814 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 26815 |  | 
 | 26816 | #ifdef __STDC__ | 
 | 26817 | # include <limits.h> | 
 | 26818 | #else | 
 | 26819 | # include <assert.h> | 
 | 26820 | #endif | 
 | 26821 |  | 
 | 26822 | #undef $ac_func | 
 | 26823 |  | 
 | 26824 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 26825 | #ifdef __cplusplus | 
 | 26826 | extern "C" | 
 | 26827 | { | 
 | 26828 | #endif | 
 | 26829 | /* We use char because int might match the return type of a gcc2 | 
 | 26830 |    builtin and then its argument prototype would still apply.  */ | 
 | 26831 | char $ac_func (); | 
 | 26832 | /* The GNU C library defines this for functions which it implements | 
 | 26833 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 26834 |     something starting with __ and the normal name is an alias.  */ | 
 | 26835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 26836 | choke me | 
 | 26837 | #else | 
 | 26838 | char (*f) () = $ac_func; | 
 | 26839 | #endif | 
 | 26840 | #ifdef __cplusplus | 
 | 26841 | } | 
 | 26842 | #endif | 
 | 26843 |  | 
 | 26844 | int | 
 | 26845 | main () | 
 | 26846 | { | 
 | 26847 | return f != $ac_func; | 
 | 26848 |   ; | 
 | 26849 |   return 0; | 
 | 26850 | } | 
 | 26851 | _ACEOF | 
 | 26852 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 26853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 26854 |   (eval $ac_link) 2>conftest.er1 | 
 | 26855 |   ac_status=$? | 
 | 26856 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26857 |   rm -f conftest.er1 | 
 | 26858 |   cat conftest.err >&5 | 
 | 26859 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26860 |   (exit $ac_status); } && | 
 | 26861 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26862 | 			 || test ! -s conftest.err' | 
 | 26863 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26864 |   (eval $ac_try) 2>&5 | 
 | 26865 |   ac_status=$? | 
 | 26866 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26867 |   (exit $ac_status); }; } && | 
 | 26868 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 26869 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26870 |   (eval $ac_try) 2>&5 | 
 | 26871 |   ac_status=$? | 
 | 26872 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26873 |   (exit $ac_status); }; }; then | 
 | 26874 |   eval "$as_ac_var=yes" | 
 | 26875 | else | 
 | 26876 |   echo "$as_me: failed program was:" >&5 | 
 | 26877 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26878 |  | 
 | 26879 | eval "$as_ac_var=no" | 
 | 26880 | fi | 
 | 26881 | rm -f conftest.err conftest.$ac_objext \ | 
 | 26882 |       conftest$ac_exeext conftest.$ac_ext | 
 | 26883 | fi | 
 | 26884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 26885 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 26886 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 26887 |   cat >>confdefs.h <<_ACEOF | 
 | 26888 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 26889 | _ACEOF | 
 | 26890 |  | 
 | 26891 | fi | 
 | 26892 | done | 
 | 26893 |  | 
 | 26894 |  | 
 | 26895 |  | 
 | 26896 |  | 
 | 26897 | for ac_func in mkdtemp mkstemp mktemp | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26898 | do | 
 | 26899 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 26900 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 26901 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 26902 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26903 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 26904 | else | 
 | 26905 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26906 | /* confdefs.h.  */ | 
 | 26907 | _ACEOF | 
 | 26908 | cat confdefs.h >>conftest.$ac_ext | 
 | 26909 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 26910 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26911 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 26912 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 26913 | #define $ac_func innocuous_$ac_func | 
 | 26914 |  | 
 | 26915 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 26916 |     which can conflict with char $ac_func (); below. | 
 | 26917 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 26918 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 26919 |  | 
 | 26920 | #ifdef __STDC__ | 
 | 26921 | # include <limits.h> | 
 | 26922 | #else | 
 | 26923 | # include <assert.h> | 
 | 26924 | #endif | 
 | 26925 |  | 
 | 26926 | #undef $ac_func | 
 | 26927 |  | 
 | 26928 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 26929 | #ifdef __cplusplus | 
 | 26930 | extern "C" | 
 | 26931 | { | 
 | 26932 | #endif | 
 | 26933 | /* We use char because int might match the return type of a gcc2 | 
 | 26934 |    builtin and then its argument prototype would still apply.  */ | 
 | 26935 | char $ac_func (); | 
 | 26936 | /* The GNU C library defines this for functions which it implements | 
 | 26937 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 26938 |     something starting with __ and the normal name is an alias.  */ | 
 | 26939 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 26940 | choke me | 
 | 26941 | #else | 
 | 26942 | char (*f) () = $ac_func; | 
 | 26943 | #endif | 
 | 26944 | #ifdef __cplusplus | 
 | 26945 | } | 
 | 26946 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26947 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26948 | int | 
 | 26949 | main () | 
 | 26950 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26951 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26952 |   ; | 
 | 26953 |   return 0; | 
 | 26954 | } | 
 | 26955 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26956 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 26957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 26958 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26959 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26960 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 26961 |   rm -f conftest.er1 | 
 | 26962 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26963 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26964 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26965 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 26966 | 			 || test ! -s conftest.err' | 
 | 26967 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26968 |   (eval $ac_try) 2>&5 | 
 | 26969 |   ac_status=$? | 
 | 26970 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26971 |   (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26972 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26973 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 26974 |   (eval $ac_try) 2>&5 | 
 | 26975 |   ac_status=$? | 
 | 26976 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 26977 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26978 |   eval "$as_ac_var=yes" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26979 | else | 
 | 26980 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26981 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 26982 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26983 | eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26984 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26985 | rm -f conftest.err conftest.$ac_objext \ | 
 | 26986 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26987 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26988 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 26989 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 26990 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 26991 |   cat >>confdefs.h <<_ACEOF | 
 | 26992 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26993 | _ACEOF | 
 | 26994 |  | 
 | 26995 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26996 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26997 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26998 |  | 
 | 26999 |  | 
 | 27000 |  | 
| Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 27001 |  | 
 | 27002 |  | 
| Reid Spencer | ab5eaea | 2004-12-20 00:59:04 +0000 | [diff] [blame] | 27003 | for ac_func in realpath strdup strtoq strtoll sysconf | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27004 | do | 
 | 27005 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 27006 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 27007 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 27008 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27009 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27010 | else | 
 | 27011 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27012 | /* confdefs.h.  */ | 
 | 27013 | _ACEOF | 
 | 27014 | cat confdefs.h >>conftest.$ac_ext | 
 | 27015 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27016 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27017 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 27018 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 27019 | #define $ac_func innocuous_$ac_func | 
 | 27020 |  | 
 | 27021 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 27022 |     which can conflict with char $ac_func (); below. | 
 | 27023 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 27024 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 27025 |  | 
 | 27026 | #ifdef __STDC__ | 
 | 27027 | # include <limits.h> | 
 | 27028 | #else | 
 | 27029 | # include <assert.h> | 
 | 27030 | #endif | 
 | 27031 |  | 
 | 27032 | #undef $ac_func | 
 | 27033 |  | 
 | 27034 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 27035 | #ifdef __cplusplus | 
 | 27036 | extern "C" | 
 | 27037 | { | 
 | 27038 | #endif | 
 | 27039 | /* We use char because int might match the return type of a gcc2 | 
 | 27040 |    builtin and then its argument prototype would still apply.  */ | 
 | 27041 | char $ac_func (); | 
 | 27042 | /* The GNU C library defines this for functions which it implements | 
 | 27043 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 27044 |     something starting with __ and the normal name is an alias.  */ | 
 | 27045 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 27046 | choke me | 
 | 27047 | #else | 
 | 27048 | char (*f) () = $ac_func; | 
 | 27049 | #endif | 
 | 27050 | #ifdef __cplusplus | 
 | 27051 | } | 
 | 27052 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27053 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27054 | int | 
 | 27055 | main () | 
 | 27056 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27057 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27058 |   ; | 
 | 27059 |   return 0; | 
 | 27060 | } | 
 | 27061 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27062 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 27063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 27064 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27065 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27066 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27067 |   rm -f conftest.er1 | 
 | 27068 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27069 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27070 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27071 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27072 | 			 || test ! -s conftest.err' | 
 | 27073 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27074 |   (eval $ac_try) 2>&5 | 
 | 27075 |   ac_status=$? | 
 | 27076 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27077 |   (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27078 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27079 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27080 |   (eval $ac_try) 2>&5 | 
 | 27081 |   ac_status=$? | 
 | 27082 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27083 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27084 |   eval "$as_ac_var=yes" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27085 | else | 
 | 27086 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27087 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27088 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27089 | eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27090 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27091 | rm -f conftest.err conftest.$ac_objext \ | 
 | 27092 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27093 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 27095 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 27096 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 27097 |   cat >>confdefs.h <<_ACEOF | 
 | 27098 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27099 | _ACEOF | 
 | 27100 |  | 
 | 27101 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27102 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27103 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27104 | echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 | 
 | 27105 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6 | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27106 | if test "${llvm_cv_c_printf_a+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27107 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27108 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27109 |   ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27110 | ac_cpp='$CPP $CPPFLAGS' | 
 | 27111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 27114 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27115 |  if test "$cross_compiling" = yes; then | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27116 |   llvmac_cv_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27117 | else | 
 | 27118 |   cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27119 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27120 |   /* confdefs.h.  */ | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27121 | _ACEOF | 
 | 27122 | cat confdefs.h >>conftest.$ac_ext | 
 | 27123 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27124 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27125 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27126 | #include <stdio.h> | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27127 | #include <stdlib.h> | 
 | 27128 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27129 | int | 
 | 27130 | main () | 
 | 27131 | { | 
 | 27132 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27133 | volatile double A, B; | 
 | 27134 | char Buffer[100]; | 
 | 27135 | A = 1; | 
 | 27136 | A /= 10.0; | 
 | 27137 | sprintf(Buffer, "%a", A); | 
 | 27138 | B = atof(Buffer); | 
 | 27139 | if (A != B) | 
 | 27140 |   return (1); | 
 | 27141 | if (A != 0x1.999999999999ap-4) | 
 | 27142 |   return (1); | 
 | 27143 | return (0); | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27144 |   ; | 
 | 27145 |   return 0; | 
 | 27146 | } | 
 | 27147 | _ACEOF | 
 | 27148 | rm -f conftest$ac_exeext | 
 | 27149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 27150 |   (eval $ac_link) 2>&5 | 
 | 27151 |   ac_status=$? | 
 | 27152 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27153 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 27154 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27155 |   (eval $ac_try) 2>&5 | 
 | 27156 |   ac_status=$? | 
 | 27157 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27158 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27159 |   llvm_cv_c_printf_a=yes | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27160 | else | 
 | 27161 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 27162 | echo "$as_me: failed program was:" >&5 | 
 | 27163 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27164 |  | 
 | 27165 | ( exit $ac_status ) | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27166 | llvmac_cv_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27167 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27168 | 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] | 27169 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27170 |  ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27171 | ac_cpp='$CPP $CPPFLAGS' | 
 | 27172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 27175 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27176 | fi | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 27177 | echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 | 
 | 27178 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6 | 
 | 27179 |  if test "$llvm_cv_c_printf_a" = "yes"; then | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27180 |  | 
 | 27181 | cat >>confdefs.h <<\_ACEOF | 
 | 27182 | #define HAVE_PRINTF_A 1 | 
 | 27183 | _ACEOF | 
 | 27184 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27185 |  fi | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 27186 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27187 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
 | 27188 | # for constant arguments.  Useless! | 
 | 27189 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
 | 27190 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | 
 | 27191 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27192 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27193 | else | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27194 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27195 | /* confdefs.h.  */ | 
 | 27196 | _ACEOF | 
 | 27197 | cat confdefs.h >>conftest.$ac_ext | 
 | 27198 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27199 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27200 | #include <alloca.h> | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27201 | int | 
 | 27202 | main () | 
 | 27203 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27204 | char *p = (char *) alloca (2 * sizeof (int)); | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27205 |   ; | 
 | 27206 |   return 0; | 
 | 27207 | } | 
 | 27208 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27209 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 27210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 27211 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27212 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27213 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27214 |   rm -f conftest.er1 | 
 | 27215 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27216 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27217 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27218 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27219 | 			 || test ! -s conftest.err' | 
 | 27220 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27221 |   (eval $ac_try) 2>&5 | 
 | 27222 |   ac_status=$? | 
 | 27223 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27224 |   (exit $ac_status); }; } && | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27225 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27226 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27227 |   (eval $ac_try) 2>&5 | 
 | 27228 |   ac_status=$? | 
 | 27229 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27230 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27231 |   ac_cv_working_alloca_h=yes | 
 | 27232 | else | 
 | 27233 |   echo "$as_me: failed program was:" >&5 | 
 | 27234 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27235 |  | 
 | 27236 | ac_cv_working_alloca_h=no | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27237 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27238 | rm -f conftest.err conftest.$ac_objext \ | 
 | 27239 |       conftest$ac_exeext conftest.$ac_ext | 
 | 27240 | fi | 
 | 27241 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
 | 27242 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | 
 | 27243 | if test $ac_cv_working_alloca_h = yes; then | 
 | 27244 |  | 
 | 27245 | cat >>confdefs.h <<\_ACEOF | 
 | 27246 | #define HAVE_ALLOCA_H 1 | 
 | 27247 | _ACEOF | 
 | 27248 |  | 
 | 27249 | fi | 
 | 27250 |  | 
 | 27251 | echo "$as_me:$LINENO: checking for alloca" >&5 | 
 | 27252 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | 
 | 27253 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
 | 27254 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27255 | else | 
 | 27256 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27257 | /* confdefs.h.  */ | 
 | 27258 | _ACEOF | 
 | 27259 | cat confdefs.h >>conftest.$ac_ext | 
 | 27260 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27261 | /* end confdefs.h.  */ | 
 | 27262 | #ifdef __GNUC__ | 
 | 27263 | # define alloca __builtin_alloca | 
 | 27264 | #else | 
 | 27265 | # ifdef _MSC_VER | 
 | 27266 | #  include <malloc.h> | 
 | 27267 | #  define alloca _alloca | 
 | 27268 | # else | 
 | 27269 | #  if HAVE_ALLOCA_H | 
 | 27270 | #   include <alloca.h> | 
 | 27271 | #  else | 
 | 27272 | #   ifdef _AIX | 
 | 27273 |  #pragma alloca | 
 | 27274 | #   else | 
 | 27275 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
 | 27276 | char *alloca (); | 
 | 27277 | #    endif | 
 | 27278 | #   endif | 
 | 27279 | #  endif | 
 | 27280 | # endif | 
 | 27281 | #endif | 
 | 27282 |  | 
 | 27283 | int | 
 | 27284 | main () | 
 | 27285 | { | 
 | 27286 | char *p = (char *) alloca (1); | 
 | 27287 |   ; | 
 | 27288 |   return 0; | 
 | 27289 | } | 
 | 27290 | _ACEOF | 
 | 27291 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 27292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 27293 |   (eval $ac_link) 2>conftest.er1 | 
 | 27294 |   ac_status=$? | 
 | 27295 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27296 |   rm -f conftest.er1 | 
 | 27297 |   cat conftest.err >&5 | 
 | 27298 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27299 |   (exit $ac_status); } && | 
 | 27300 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27301 | 			 || test ! -s conftest.err' | 
 | 27302 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27303 |   (eval $ac_try) 2>&5 | 
 | 27304 |   ac_status=$? | 
 | 27305 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27306 |   (exit $ac_status); }; } && | 
 | 27307 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 27308 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27309 |   (eval $ac_try) 2>&5 | 
 | 27310 |   ac_status=$? | 
 | 27311 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27312 |   (exit $ac_status); }; }; then | 
 | 27313 |   ac_cv_func_alloca_works=yes | 
 | 27314 | else | 
 | 27315 |   echo "$as_me: failed program was:" >&5 | 
 | 27316 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27317 |  | 
 | 27318 | ac_cv_func_alloca_works=no | 
 | 27319 | fi | 
 | 27320 | rm -f conftest.err conftest.$ac_objext \ | 
 | 27321 |       conftest$ac_exeext conftest.$ac_ext | 
 | 27322 | fi | 
 | 27323 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
 | 27324 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | 
 | 27325 |  | 
 | 27326 | if test $ac_cv_func_alloca_works = yes; then | 
 | 27327 |  | 
 | 27328 | cat >>confdefs.h <<\_ACEOF | 
 | 27329 | #define HAVE_ALLOCA 1 | 
 | 27330 | _ACEOF | 
 | 27331 |  | 
 | 27332 | else | 
 | 27333 |   # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
 | 27334 | # that cause trouble.  Some versions do not even contain alloca or | 
 | 27335 | # contain a buggy version.  If you still want to use their alloca, | 
 | 27336 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
 | 27337 |  | 
 | 27338 | ALLOCA=alloca.$ac_objext | 
 | 27339 |  | 
 | 27340 | cat >>confdefs.h <<\_ACEOF | 
 | 27341 | #define C_ALLOCA 1 | 
 | 27342 | _ACEOF | 
 | 27343 |  | 
 | 27344 |  | 
 | 27345 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
 | 27346 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | 
 | 27347 | if test "${ac_cv_os_cray+set}" = set; then | 
 | 27348 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27349 | else | 
 | 27350 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27351 | /* confdefs.h.  */ | 
 | 27352 | _ACEOF | 
 | 27353 | cat confdefs.h >>conftest.$ac_ext | 
 | 27354 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27355 | /* end confdefs.h.  */ | 
 | 27356 | #if defined(CRAY) && ! defined(CRAY2) | 
 | 27357 | webecray | 
 | 27358 | #else | 
 | 27359 | wenotbecray | 
 | 27360 | #endif | 
 | 27361 |  | 
 | 27362 | _ACEOF | 
 | 27363 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 27364 |   $EGREP "webecray" >/dev/null 2>&1; then | 
 | 27365 |   ac_cv_os_cray=yes | 
 | 27366 | else | 
 | 27367 |   ac_cv_os_cray=no | 
 | 27368 | fi | 
 | 27369 | rm -f conftest* | 
 | 27370 |  | 
 | 27371 | fi | 
 | 27372 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
 | 27373 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | 
 | 27374 | if test $ac_cv_os_cray = yes; then | 
 | 27375 |   for ac_func in _getb67 GETB67 getb67; do | 
 | 27376 |     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 27377 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 27378 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 27379 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 27380 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27381 | else | 
 | 27382 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27383 | /* confdefs.h.  */ | 
 | 27384 | _ACEOF | 
 | 27385 | cat confdefs.h >>conftest.$ac_ext | 
 | 27386 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27387 | /* end confdefs.h.  */ | 
 | 27388 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 27389 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 27390 | #define $ac_func innocuous_$ac_func | 
 | 27391 |  | 
 | 27392 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 27393 |     which can conflict with char $ac_func (); below. | 
 | 27394 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 27395 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 27396 |  | 
 | 27397 | #ifdef __STDC__ | 
 | 27398 | # include <limits.h> | 
 | 27399 | #else | 
 | 27400 | # include <assert.h> | 
 | 27401 | #endif | 
 | 27402 |  | 
 | 27403 | #undef $ac_func | 
 | 27404 |  | 
 | 27405 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 27406 | #ifdef __cplusplus | 
 | 27407 | extern "C" | 
 | 27408 | { | 
 | 27409 | #endif | 
 | 27410 | /* We use char because int might match the return type of a gcc2 | 
 | 27411 |    builtin and then its argument prototype would still apply.  */ | 
 | 27412 | char $ac_func (); | 
 | 27413 | /* The GNU C library defines this for functions which it implements | 
 | 27414 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 27415 |     something starting with __ and the normal name is an alias.  */ | 
 | 27416 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 27417 | choke me | 
 | 27418 | #else | 
 | 27419 | char (*f) () = $ac_func; | 
 | 27420 | #endif | 
 | 27421 | #ifdef __cplusplus | 
 | 27422 | } | 
 | 27423 | #endif | 
 | 27424 |  | 
 | 27425 | int | 
 | 27426 | main () | 
 | 27427 | { | 
 | 27428 | return f != $ac_func; | 
 | 27429 |   ; | 
 | 27430 |   return 0; | 
 | 27431 | } | 
 | 27432 | _ACEOF | 
 | 27433 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 27434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 27435 |   (eval $ac_link) 2>conftest.er1 | 
 | 27436 |   ac_status=$? | 
 | 27437 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27438 |   rm -f conftest.er1 | 
 | 27439 |   cat conftest.err >&5 | 
 | 27440 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27441 |   (exit $ac_status); } && | 
 | 27442 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 27443 | 			 || test ! -s conftest.err' | 
 | 27444 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27445 |   (eval $ac_try) 2>&5 | 
 | 27446 |   ac_status=$? | 
 | 27447 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27448 |   (exit $ac_status); }; } && | 
 | 27449 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 27450 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27451 |   (eval $ac_try) 2>&5 | 
 | 27452 |   ac_status=$? | 
 | 27453 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27454 |   (exit $ac_status); }; }; then | 
 | 27455 |   eval "$as_ac_var=yes" | 
 | 27456 | else | 
 | 27457 |   echo "$as_me: failed program was:" >&5 | 
 | 27458 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27459 |  | 
 | 27460 | eval "$as_ac_var=no" | 
 | 27461 | fi | 
 | 27462 | rm -f conftest.err conftest.$ac_objext \ | 
 | 27463 |       conftest$ac_exeext conftest.$ac_ext | 
 | 27464 | fi | 
 | 27465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 27466 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 27467 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 27468 |  | 
 | 27469 | cat >>confdefs.h <<_ACEOF | 
 | 27470 | #define CRAY_STACKSEG_END $ac_func | 
 | 27471 | _ACEOF | 
 | 27472 |  | 
 | 27473 |     break | 
 | 27474 | fi | 
 | 27475 |  | 
 | 27476 |   done | 
 | 27477 | fi | 
 | 27478 |  | 
 | 27479 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
 | 27480 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | 
 | 27481 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
 | 27482 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27483 | else | 
 | 27484 |   if test "$cross_compiling" = yes; then | 
 | 27485 |   ac_cv_c_stack_direction=0 | 
 | 27486 | else | 
 | 27487 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27488 | /* confdefs.h.  */ | 
 | 27489 | _ACEOF | 
 | 27490 | cat confdefs.h >>conftest.$ac_ext | 
 | 27491 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27492 | /* end confdefs.h.  */ | 
 | 27493 | int | 
 | 27494 | find_stack_direction () | 
 | 27495 | { | 
 | 27496 |   static char *addr = 0; | 
 | 27497 |   auto char dummy; | 
 | 27498 |   if (addr == 0) | 
 | 27499 |     { | 
 | 27500 |       addr = &dummy; | 
 | 27501 |       return find_stack_direction (); | 
 | 27502 |     } | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27503 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27504 |     return (&dummy > addr) ? 1 : -1; | 
 | 27505 | } | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27506 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27507 | int | 
 | 27508 | main () | 
 | 27509 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27510 |   exit (find_stack_direction () < 0); | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27511 | } | 
 | 27512 | _ACEOF | 
 | 27513 | rm -f conftest$ac_exeext | 
 | 27514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 27515 |   (eval $ac_link) 2>&5 | 
 | 27516 |   ac_status=$? | 
 | 27517 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27518 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 27519 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27520 |   (eval $ac_try) 2>&5 | 
 | 27521 |   ac_status=$? | 
 | 27522 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27523 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27524 |   ac_cv_c_stack_direction=1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27525 | else | 
 | 27526 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 27527 | echo "$as_me: failed program was:" >&5 | 
 | 27528 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27529 |  | 
 | 27530 | ( exit $ac_status ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27531 | ac_cv_c_stack_direction=-1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27532 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27533 | 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] | 27534 | fi | 
 | 27535 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27536 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
 | 27537 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | 
 | 27538 |  | 
 | 27539 | cat >>confdefs.h <<_ACEOF | 
 | 27540 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
 | 27541 | _ACEOF | 
 | 27542 |  | 
 | 27543 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27544 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27545 |  | 
 | 27546 |  | 
 | 27547 | echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
 | 27548 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6 | 
 | 27549 | if test "${ac_cv_func_rand48+set}" = set; then | 
 | 27550 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27551 | else | 
 | 27552 |   ac_ext=cc | 
 | 27553 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 27554 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27555 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27556 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 27557 |  | 
 | 27558 |    cat >conftest.$ac_ext <<_ACEOF | 
 | 27559 | /* confdefs.h.  */ | 
 | 27560 | _ACEOF | 
 | 27561 | cat confdefs.h >>conftest.$ac_ext | 
 | 27562 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27563 | /* end confdefs.h.  */ | 
 | 27564 | #include <stdlib.h> | 
 | 27565 | int | 
 | 27566 | main () | 
 | 27567 | { | 
 | 27568 | srand48(0);lrand48();drand48(); | 
 | 27569 |   ; | 
 | 27570 |   return 0; | 
 | 27571 | } | 
 | 27572 | _ACEOF | 
 | 27573 | rm -f conftest.$ac_objext | 
 | 27574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 27575 |   (eval $ac_compile) 2>conftest.er1 | 
 | 27576 |   ac_status=$? | 
 | 27577 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27578 |   rm -f conftest.er1 | 
 | 27579 |   cat conftest.err >&5 | 
 | 27580 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27581 |   (exit $ac_status); } && | 
 | 27582 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 27583 | 			 || test ! -s conftest.err' | 
 | 27584 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27585 |   (eval $ac_try) 2>&5 | 
 | 27586 |   ac_status=$? | 
 | 27587 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27588 |   (exit $ac_status); }; } && | 
 | 27589 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 27590 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27591 |   (eval $ac_try) 2>&5 | 
 | 27592 |   ac_status=$? | 
 | 27593 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27594 |   (exit $ac_status); }; }; then | 
 | 27595 |   ac_cv_func_rand48=yes | 
 | 27596 | else | 
 | 27597 |   echo "$as_me: failed program was:" >&5 | 
 | 27598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27599 |  | 
 | 27600 | ac_cv_func_rand48=no | 
 | 27601 | fi | 
 | 27602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 27603 |   ac_ext=c | 
 | 27604 | ac_cpp='$CPP $CPPFLAGS' | 
 | 27605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 27608 |  | 
 | 27609 | fi | 
 | 27610 | echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
 | 27611 | echo "${ECHO_T}$ac_cv_func_rand48" >&6 | 
 | 27612 |  | 
 | 27613 | if test "$ac_cv_func_rand48" = "yes" ; then | 
 | 27614 |  | 
 | 27615 | cat >>confdefs.h <<\_ACEOF | 
 | 27616 | #define HAVE_RAND48 1 | 
 | 27617 | _ACEOF | 
 | 27618 |  | 
 | 27619 | fi | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 27620 |  | 
 | 27621 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27622 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
 | 27623 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 | 
 | 27624 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
 | 27625 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27626 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27627 |   ac_ext=cc | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27628 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 27629 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27630 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27631 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 27632 |  | 
 | 27633 |  cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27634 | /* confdefs.h.  */ | 
 | 27635 | _ACEOF | 
 | 27636 | cat confdefs.h >>conftest.$ac_ext | 
 | 27637 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27638 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27639 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27640 | int | 
 | 27641 | main () | 
 | 27642 | { | 
 | 27643 | using namespace Outer::Inner; return i; | 
 | 27644 |   ; | 
 | 27645 |   return 0; | 
 | 27646 | } | 
 | 27647 | _ACEOF | 
 | 27648 | rm -f conftest.$ac_objext | 
 | 27649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27650 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27651 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27652 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27653 |   rm -f conftest.er1 | 
 | 27654 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27655 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27656 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27657 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 27658 | 			 || test ! -s conftest.err' | 
 | 27659 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27660 |   (eval $ac_try) 2>&5 | 
 | 27661 |   ac_status=$? | 
 | 27662 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27663 |   (exit $ac_status); }; } && | 
 | 27664 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27665 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27666 |   (eval $ac_try) 2>&5 | 
 | 27667 |   ac_status=$? | 
 | 27668 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27669 |   (exit $ac_status); }; }; then | 
 | 27670 |   ac_cv_cxx_namespaces=yes | 
 | 27671 | else | 
 | 27672 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27673 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27674 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27675 | ac_cv_cxx_namespaces=no | 
 | 27676 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27678 |  ac_ext=c | 
 | 27679 | ac_cpp='$CPP $CPPFLAGS' | 
 | 27680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 27683 |  | 
 | 27684 |  | 
 | 27685 | fi | 
 | 27686 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
 | 27687 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 | 
 | 27688 | if test "$ac_cv_cxx_namespaces" = yes; then | 
 | 27689 |  | 
 | 27690 | cat >>confdefs.h <<\_ACEOF | 
 | 27691 | #define HAVE_NAMESPACES | 
 | 27692 | _ACEOF | 
 | 27693 |  | 
 | 27694 | fi | 
 | 27695 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27696 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 | 
 | 27697 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 | 
 | 27698 | 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] | 27699 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27700 | else | 
 | 27701 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27702 |   ac_ext=cc | 
 | 27703 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 27704 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27705 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27706 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 27707 |  | 
 | 27708 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27709 | /* confdefs.h.  */ | 
 | 27710 | _ACEOF | 
 | 27711 | cat confdefs.h >>conftest.$ac_ext | 
 | 27712 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27713 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27714 | #include <ext/hash_map> | 
 | 27715 | #ifdef HAVE_NAMESPACES | 
 | 27716 | using namespace std; | 
 | 27717 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27718 | int | 
 | 27719 | main () | 
 | 27720 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27721 | hash_map<int, int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27722 |   ; | 
 | 27723 |   return 0; | 
 | 27724 | } | 
 | 27725 | _ACEOF | 
 | 27726 | rm -f conftest.$ac_objext | 
 | 27727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27728 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27729 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27730 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27731 |   rm -f conftest.er1 | 
 | 27732 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27733 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27734 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27735 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 27736 | 			 || test ! -s conftest.err' | 
 | 27737 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27738 |   (eval $ac_try) 2>&5 | 
 | 27739 |   ac_status=$? | 
 | 27740 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27741 |   (exit $ac_status); }; } && | 
 | 27742 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27743 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27744 |   (eval $ac_try) 2>&5 | 
 | 27745 |   ac_status=$? | 
 | 27746 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27747 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27748 |   ac_cv_cxx_have_std_ext_hash_map=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27749 | else | 
 | 27750 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27751 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27752 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27753 | ac_cv_cxx_have_std_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27754 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27756 |   ac_ext=c | 
 | 27757 | ac_cpp='$CPP $CPPFLAGS' | 
 | 27758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 27761 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27762 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27763 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 | 
 | 27764 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 27765 |  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes | 
 | 27766 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 27767 |  | 
 | 27768 | cat >>confdefs.h <<\_ACEOF | 
 | 27769 | #define HAVE_STD_EXT_HASH_MAP 1 | 
 | 27770 | _ACEOF | 
 | 27771 |  | 
 | 27772 |  else | 
 | 27773 |  | 
 | 27774 | cat >>confdefs.h <<\_ACEOF | 
 | 27775 | #define HAVE_STD_EXT_HASH_MAP 0 | 
 | 27776 | _ACEOF | 
 | 27777 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27778 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 27779 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27780 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 | 
 | 27781 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 | 
 | 27782 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then | 
 | 27783 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27784 | else | 
 | 27785 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27786 |   ac_ext=cc | 
 | 27787 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 27788 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27789 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27790 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 27791 |  | 
 | 27792 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27793 | /* confdefs.h.  */ | 
 | 27794 | _ACEOF | 
 | 27795 | cat confdefs.h >>conftest.$ac_ext | 
 | 27796 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27797 | /* end confdefs.h.  */ | 
 | 27798 | #include <ext/hash_map> | 
 | 27799 | #ifdef HAVE_NAMESPACES | 
 | 27800 | using namespace __gnu_cxx; | 
 | 27801 | #endif | 
 | 27802 | int | 
 | 27803 | main () | 
 | 27804 | { | 
 | 27805 | hash_map<int,int> t; | 
 | 27806 |   ; | 
 | 27807 |   return 0; | 
 | 27808 | } | 
 | 27809 | _ACEOF | 
 | 27810 | rm -f conftest.$ac_objext | 
 | 27811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27812 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27813 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27814 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27815 |   rm -f conftest.er1 | 
 | 27816 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27817 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27818 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27819 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 27820 | 			 || test ! -s conftest.err' | 
 | 27821 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27822 |   (eval $ac_try) 2>&5 | 
 | 27823 |   ac_status=$? | 
 | 27824 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27825 |   (exit $ac_status); }; } && | 
 | 27826 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27827 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27828 |   (eval $ac_try) 2>&5 | 
 | 27829 |   ac_status=$? | 
 | 27830 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27831 |   (exit $ac_status); }; }; then | 
 | 27832 |   ac_cv_cxx_have_gnu_ext_hash_map=yes | 
 | 27833 | else | 
 | 27834 |   echo "$as_me: failed program was:" >&5 | 
 | 27835 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27836 |  | 
 | 27837 | ac_cv_cxx_have_gnu_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27838 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27840 |   ac_ext=c | 
 | 27841 | ac_cpp='$CPP $CPPFLAGS' | 
 | 27842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 27845 |  | 
 | 27846 | fi | 
 | 27847 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 | 
 | 27848 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 27849 |  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes | 
 | 27850 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 27851 |  | 
 | 27852 | cat >>confdefs.h <<\_ACEOF | 
 | 27853 | #define HAVE_GNU_EXT_HASH_MAP 1 | 
 | 27854 | _ACEOF | 
 | 27855 |  | 
 | 27856 |  else | 
 | 27857 |  | 
 | 27858 | cat >>confdefs.h <<\_ACEOF | 
 | 27859 | #define HAVE_GNU_EXT_HASH_MAP 0 | 
 | 27860 | _ACEOF | 
 | 27861 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27862 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 27863 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27864 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 | 
 | 27865 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 | 
 | 27866 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then | 
 | 27867 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27868 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27869 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27870 |   ac_ext=cc | 
 | 27871 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 27872 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27873 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27874 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 27875 |  | 
 | 27876 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27877 | /* confdefs.h.  */ | 
 | 27878 | _ACEOF | 
 | 27879 | cat confdefs.h >>conftest.$ac_ext | 
 | 27880 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27881 | /* end confdefs.h.  */ | 
 | 27882 | #include <hash_map> | 
 | 27883 | int | 
 | 27884 | main () | 
 | 27885 | { | 
 | 27886 | hash_map<int,int> t; | 
 | 27887 |   ; | 
 | 27888 |   return 0; | 
 | 27889 | } | 
 | 27890 | _ACEOF | 
 | 27891 | rm -f conftest.$ac_objext | 
 | 27892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27893 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27894 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27895 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27896 |   rm -f conftest.er1 | 
 | 27897 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27898 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27899 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27900 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 27901 | 			 || test ! -s conftest.err' | 
 | 27902 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27903 |   (eval $ac_try) 2>&5 | 
 | 27904 |   ac_status=$? | 
 | 27905 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27906 |   (exit $ac_status); }; } && | 
 | 27907 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27908 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27909 |   (eval $ac_try) 2>&5 | 
 | 27910 |   ac_status=$? | 
 | 27911 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27912 |   (exit $ac_status); }; }; then | 
 | 27913 |   ac_cv_cxx_have_global_hash_map=yes | 
 | 27914 | else | 
 | 27915 |   echo "$as_me: failed program was:" >&5 | 
 | 27916 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27917 |  | 
 | 27918 | ac_cv_cxx_have_global_hash_map=no | 
 | 27919 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27921 |   ac_ext=c | 
 | 27922 | ac_cpp='$CPP $CPPFLAGS' | 
 | 27923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 27926 |  | 
 | 27927 | fi | 
 | 27928 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 | 
 | 27929 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 27930 |  if test "$ac_cv_cxx_have_global_hash_map" = yes | 
 | 27931 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 27932 |  | 
 | 27933 | cat >>confdefs.h <<\_ACEOF | 
 | 27934 | #define HAVE_GLOBAL_HASH_MAP 1 | 
 | 27935 | _ACEOF | 
 | 27936 |  | 
 | 27937 |  else | 
 | 27938 |  | 
 | 27939 | cat >>confdefs.h <<\_ACEOF | 
 | 27940 | #define HAVE_GLOBAL_HASH_MAP 0 | 
 | 27941 | _ACEOF | 
 | 27942 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27943 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 27944 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27945 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 | 
 | 27946 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 | 
 | 27947 | 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] | 27948 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27949 | else | 
 | 27950 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27951 |   ac_ext=cc | 
 | 27952 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 27953 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27954 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27955 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 27956 |  | 
 | 27957 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27958 | /* confdefs.h.  */ | 
 | 27959 | _ACEOF | 
 | 27960 | cat confdefs.h >>conftest.$ac_ext | 
 | 27961 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27962 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27963 | #include <ext/hash_set> | 
 | 27964 | #ifdef HAVE_NAMESPACES | 
 | 27965 | using namespace std; | 
 | 27966 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27967 | int | 
 | 27968 | main () | 
 | 27969 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27970 | hash_set<int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27971 |   ; | 
 | 27972 |   return 0; | 
 | 27973 | } | 
 | 27974 | _ACEOF | 
 | 27975 | rm -f conftest.$ac_objext | 
 | 27976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27977 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27978 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27979 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27980 |   rm -f conftest.er1 | 
 | 27981 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27982 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27983 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27984 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 27985 | 			 || test ! -s conftest.err' | 
 | 27986 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27987 |   (eval $ac_try) 2>&5 | 
 | 27988 |   ac_status=$? | 
 | 27989 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27990 |   (exit $ac_status); }; } && | 
 | 27991 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27992 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 27993 |   (eval $ac_try) 2>&5 | 
 | 27994 |   ac_status=$? | 
 | 27995 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27996 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 27997 |   ac_cv_cxx_have_std_ext_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27998 | else | 
 | 27999 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28000 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28001 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28002 | ac_cv_cxx_have_std_ext_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28003 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28005 |   ac_ext=c | 
 | 28006 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28010 |  | 
 | 28011 | fi | 
 | 28012 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 | 
 | 28013 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28014 |  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes | 
 | 28015 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28016 |  | 
 | 28017 | cat >>confdefs.h <<\_ACEOF | 
 | 28018 | #define HAVE_STD_EXT_HASH_SET 1 | 
 | 28019 | _ACEOF | 
 | 28020 |  | 
 | 28021 |  else | 
 | 28022 |  | 
 | 28023 | cat >>confdefs.h <<\_ACEOF | 
 | 28024 | #define HAVE_STD_EXT_HASH_SET 0 | 
 | 28025 | _ACEOF | 
 | 28026 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28027 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28028 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28029 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 | 
 | 28030 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 | 
 | 28031 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then | 
 | 28032 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28033 | else | 
 | 28034 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28035 |   ac_ext=cc | 
 | 28036 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28037 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28038 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28039 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28040 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28041 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28042 | /* confdefs.h.  */ | 
 | 28043 | _ACEOF | 
 | 28044 | cat confdefs.h >>conftest.$ac_ext | 
 | 28045 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28046 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28047 | #include <ext/hash_set> | 
 | 28048 | #ifdef HAVE_NAMESPACES | 
 | 28049 | using namespace __gnu_cxx; | 
 | 28050 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28051 | int | 
 | 28052 | main () | 
 | 28053 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28054 | hash_set<int> t; | 
 | 28055 |   ; | 
 | 28056 |   return 0; | 
 | 28057 | } | 
 | 28058 | _ACEOF | 
 | 28059 | rm -f conftest.$ac_objext | 
 | 28060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28061 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28062 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28063 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28064 |   rm -f conftest.er1 | 
 | 28065 |   cat conftest.err >&5 | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28066 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28067 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28068 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28069 | 			 || test ! -s conftest.err' | 
 | 28070 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28071 |   (eval $ac_try) 2>&5 | 
 | 28072 |   ac_status=$? | 
 | 28073 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28074 |   (exit $ac_status); }; } && | 
 | 28075 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28076 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28077 |   (eval $ac_try) 2>&5 | 
 | 28078 |   ac_status=$? | 
 | 28079 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28080 |   (exit $ac_status); }; }; then | 
 | 28081 |   ac_cv_cxx_have_gnu_ext_hash_set=yes | 
 | 28082 | else | 
 | 28083 |   echo "$as_me: failed program was:" >&5 | 
 | 28084 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28085 |  | 
 | 28086 | ac_cv_cxx_have_gnu_ext_hash_set=no | 
 | 28087 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28089 |   ac_ext=c | 
 | 28090 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28091 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28092 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28094 |  | 
 | 28095 | fi | 
 | 28096 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 | 
 | 28097 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28098 |  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes | 
 | 28099 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28100 |  | 
 | 28101 | cat >>confdefs.h <<\_ACEOF | 
 | 28102 | #define HAVE_GNU_EXT_HASH_SET 1 | 
 | 28103 | _ACEOF | 
 | 28104 |  | 
 | 28105 |  else | 
 | 28106 |  | 
 | 28107 | cat >>confdefs.h <<\_ACEOF | 
 | 28108 | #define HAVE_GNU_EXT_HASH_SET 0 | 
 | 28109 | _ACEOF | 
 | 28110 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28111 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28112 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28113 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 | 
 | 28114 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 | 
 | 28115 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then | 
 | 28116 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28117 | else | 
 | 28118 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28119 |   ac_ext=cc | 
 | 28120 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28124 |  | 
 | 28125 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28126 | /* confdefs.h.  */ | 
 | 28127 | _ACEOF | 
 | 28128 | cat confdefs.h >>conftest.$ac_ext | 
 | 28129 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28130 | /* end confdefs.h.  */ | 
 | 28131 | #include <hash_set> | 
 | 28132 | int | 
 | 28133 | main () | 
 | 28134 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28135 | hash_set<int> t; return 0; | 
 | 28136 |   ; | 
 | 28137 |   return 0; | 
 | 28138 | } | 
 | 28139 | _ACEOF | 
 | 28140 | rm -f conftest.$ac_objext | 
 | 28141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28142 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28143 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28144 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28145 |   rm -f conftest.er1 | 
 | 28146 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28147 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28148 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28149 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28150 | 			 || test ! -s conftest.err' | 
 | 28151 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28152 |   (eval $ac_try) 2>&5 | 
 | 28153 |   ac_status=$? | 
 | 28154 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28155 |   (exit $ac_status); }; } && | 
 | 28156 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28157 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28158 |   (eval $ac_try) 2>&5 | 
 | 28159 |   ac_status=$? | 
 | 28160 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28161 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28162 |   ac_cv_cxx_have_global_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28163 | else | 
 | 28164 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28165 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28166 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28167 | ac_cv_cxx_have_global_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28168 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28170 |   ac_ext=c | 
 | 28171 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28175 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28176 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28177 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 | 
 | 28178 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28179 |  if test "$ac_cv_cxx_have_global_hash_set" = yes | 
 | 28180 |  then | 
| John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 28181 |  | 
 | 28182 | cat >>confdefs.h <<\_ACEOF | 
 | 28183 | #define HAVE_GLOBAL_HASH_SET 1 | 
 | 28184 | _ACEOF | 
 | 28185 |  | 
 | 28186 |  else | 
 | 28187 |  | 
 | 28188 | cat >>confdefs.h <<\_ACEOF | 
 | 28189 | #define HAVE_GLOBAL_HASH_SET 0 | 
 | 28190 | _ACEOF | 
 | 28191 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 28192 |  fi | 
| Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 28193 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28194 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
 | 28195 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 | 
 | 28196 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
 | 28197 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28198 | else | 
 | 28199 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28200 |   ac_ext=cc | 
 | 28201 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28202 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28203 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28204 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28205 |  | 
 | 28206 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28207 | /* confdefs.h.  */ | 
 | 28208 | _ACEOF | 
 | 28209 | cat confdefs.h >>conftest.$ac_ext | 
 | 28210 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28211 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28212 | #include <iterator> | 
 | 28213 | #ifdef HAVE_NAMESPACES | 
 | 28214 | using namespace std; | 
 | 28215 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28216 | int | 
 | 28217 | main () | 
 | 28218 | { | 
 | 28219 | iterator<int,int,int> t; return 0; | 
 | 28220 |   ; | 
 | 28221 |   return 0; | 
 | 28222 | } | 
 | 28223 | _ACEOF | 
 | 28224 | rm -f conftest.$ac_objext | 
 | 28225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28226 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28227 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28228 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28229 |   rm -f conftest.er1 | 
 | 28230 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28231 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28232 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28233 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28234 | 			 || test ! -s conftest.err' | 
 | 28235 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28236 |   (eval $ac_try) 2>&5 | 
 | 28237 |   ac_status=$? | 
 | 28238 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28239 |   (exit $ac_status); }; } && | 
 | 28240 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28241 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28242 |   (eval $ac_try) 2>&5 | 
 | 28243 |   ac_status=$? | 
 | 28244 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28245 |   (exit $ac_status); }; }; then | 
 | 28246 |   ac_cv_cxx_have_std_iterator=yes | 
 | 28247 | else | 
 | 28248 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28249 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28250 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28251 | ac_cv_cxx_have_std_iterator=no | 
 | 28252 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28254 |   ac_ext=c | 
 | 28255 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28259 |  | 
 | 28260 |  | 
 | 28261 | fi | 
 | 28262 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
 | 28263 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28264 | if test "$ac_cv_cxx_have_std_iterator" = yes | 
 | 28265 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28266 |  | 
 | 28267 | cat >>confdefs.h <<\_ACEOF | 
 | 28268 | #define HAVE_STD_ITERATOR 1 | 
 | 28269 | _ACEOF | 
 | 28270 |  | 
 | 28271 | else | 
 | 28272 |  | 
 | 28273 | cat >>confdefs.h <<\_ACEOF | 
 | 28274 | #define HAVE_STD_ITERATOR 0 | 
 | 28275 | _ACEOF | 
 | 28276 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28277 | fi | 
 | 28278 |  | 
 | 28279 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
 | 28280 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 | 
 | 28281 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
 | 28282 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28283 | else | 
 | 28284 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28285 |   ac_ext=cc | 
 | 28286 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28287 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28288 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28289 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28290 |  | 
 | 28291 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28292 | /* confdefs.h.  */ | 
 | 28293 | _ACEOF | 
 | 28294 | cat confdefs.h >>conftest.$ac_ext | 
 | 28295 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28296 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28297 | #include <iterator> | 
 | 28298 | #ifdef HAVE_NAMESPACES | 
 | 28299 | using namespace std; | 
 | 28300 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28301 | int | 
 | 28302 | main () | 
 | 28303 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 28304 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28305 |   ; | 
 | 28306 |   return 0; | 
 | 28307 | } | 
 | 28308 | _ACEOF | 
 | 28309 | rm -f conftest.$ac_objext | 
 | 28310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28311 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28312 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28313 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28314 |   rm -f conftest.er1 | 
 | 28315 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28316 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28317 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28318 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28319 | 			 || test ! -s conftest.err' | 
 | 28320 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28321 |   (eval $ac_try) 2>&5 | 
 | 28322 |   ac_status=$? | 
 | 28323 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28324 |   (exit $ac_status); }; } && | 
 | 28325 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28326 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28327 |   (eval $ac_try) 2>&5 | 
 | 28328 |   ac_status=$? | 
 | 28329 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28330 |   (exit $ac_status); }; }; then | 
 | 28331 |   ac_cv_cxx_have_bi_iterator=yes | 
 | 28332 | else | 
 | 28333 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28334 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28335 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28336 | ac_cv_cxx_have_bi_iterator=no | 
 | 28337 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28339 |   ac_ext=c | 
 | 28340 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28344 |  | 
 | 28345 |  | 
 | 28346 | fi | 
 | 28347 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
 | 28348 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28349 | if test "$ac_cv_cxx_have_bi_iterator" = yes | 
 | 28350 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28351 |  | 
 | 28352 | cat >>confdefs.h <<\_ACEOF | 
 | 28353 | #define HAVE_BI_ITERATOR 1 | 
 | 28354 | _ACEOF | 
 | 28355 |  | 
 | 28356 | else | 
 | 28357 |  | 
 | 28358 | cat >>confdefs.h <<\_ACEOF | 
 | 28359 | #define HAVE_BI_ITERATOR 0 | 
 | 28360 | _ACEOF | 
 | 28361 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28362 | fi | 
 | 28363 |  | 
 | 28364 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
 | 28365 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 | 
 | 28366 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
 | 28367 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28368 | else | 
 | 28369 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28370 |   ac_ext=cc | 
 | 28371 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28372 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28373 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28374 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28375 |  | 
 | 28376 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28377 | /* confdefs.h.  */ | 
 | 28378 | _ACEOF | 
 | 28379 | cat confdefs.h >>conftest.$ac_ext | 
 | 28380 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28381 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28382 | #include <iterator> | 
 | 28383 | #ifdef HAVE_NAMESPACES | 
 | 28384 | using namespace std; | 
 | 28385 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28386 | int | 
 | 28387 | main () | 
 | 28388 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 28389 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28390 |   ; | 
 | 28391 |   return 0; | 
 | 28392 | } | 
 | 28393 | _ACEOF | 
 | 28394 | rm -f conftest.$ac_objext | 
 | 28395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28396 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28397 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28398 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28399 |   rm -f conftest.er1 | 
 | 28400 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28401 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28402 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28403 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28404 | 			 || test ! -s conftest.err' | 
 | 28405 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28406 |   (eval $ac_try) 2>&5 | 
 | 28407 |   ac_status=$? | 
 | 28408 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28409 |   (exit $ac_status); }; } && | 
 | 28410 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28411 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28412 |   (eval $ac_try) 2>&5 | 
 | 28413 |   ac_status=$? | 
 | 28414 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28415 |   (exit $ac_status); }; }; then | 
 | 28416 |   ac_cv_cxx_have_fwd_iterator=yes | 
 | 28417 | else | 
 | 28418 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28419 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28420 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28421 | ac_cv_cxx_have_fwd_iterator=no | 
 | 28422 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28424 |   ac_ext=c | 
 | 28425 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28429 |  | 
 | 28430 |  | 
 | 28431 | fi | 
 | 28432 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
 | 28433 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 28434 | if test "$ac_cv_cxx_have_fwd_iterator" = yes | 
 | 28435 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28436 |  | 
 | 28437 | cat >>confdefs.h <<\_ACEOF | 
 | 28438 | #define HAVE_FWD_ITERATOR 1 | 
 | 28439 | _ACEOF | 
 | 28440 |  | 
 | 28441 | else | 
 | 28442 |  | 
 | 28443 | cat >>confdefs.h <<\_ACEOF | 
 | 28444 | #define HAVE_FWD_ITERATOR 0 | 
 | 28445 | _ACEOF | 
 | 28446 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28447 | fi | 
 | 28448 |  | 
 | 28449 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28450 | echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
 | 28451 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6 | 
 | 28452 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
 | 28453 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28454 | else | 
 | 28455 |   ac_ext=cc | 
 | 28456 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28457 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28458 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28459 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28460 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28461 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28462 | /* confdefs.h.  */ | 
 | 28463 | _ACEOF | 
 | 28464 | cat confdefs.h >>conftest.$ac_ext | 
 | 28465 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28466 | /* end confdefs.h.  */ | 
 | 28467 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28468 | int | 
 | 28469 | main () | 
 | 28470 | { | 
 | 28471 | float f; isnan(f); | 
 | 28472 |   ; | 
 | 28473 |   return 0; | 
 | 28474 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28475 | _ACEOF | 
 | 28476 | rm -f conftest.$ac_objext | 
 | 28477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28478 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28479 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28480 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28481 |   rm -f conftest.er1 | 
 | 28482 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28483 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28484 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28485 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28486 | 			 || test ! -s conftest.err' | 
 | 28487 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28488 |   (eval $ac_try) 2>&5 | 
 | 28489 |   ac_status=$? | 
 | 28490 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28491 |   (exit $ac_status); }; } && | 
 | 28492 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28493 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28494 |   (eval $ac_try) 2>&5 | 
 | 28495 |   ac_status=$? | 
 | 28496 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28497 |   (exit $ac_status); }; }; then | 
 | 28498 |   ac_cv_func_isnan_in_math_h=yes | 
 | 28499 | else | 
 | 28500 |   echo "$as_me: failed program was:" >&5 | 
 | 28501 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28502 |  | 
 | 28503 | ac_cv_func_isnan_in_math_h=no | 
 | 28504 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28506 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28507 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28511 |  | 
 | 28512 | fi | 
 | 28513 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
 | 28514 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28515 |  | 
 | 28516 |  | 
 | 28517 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28518 |  | 
 | 28519 | cat >>confdefs.h <<\_ACEOF | 
 | 28520 | #define HAVE_ISNAN_IN_MATH_H 1 | 
 | 28521 | _ACEOF | 
 | 28522 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28523 | fi | 
 | 28524 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28525 | echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
 | 28526 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6 | 
 | 28527 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
 | 28528 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28529 | else | 
 | 28530 |   ac_ext=cc | 
 | 28531 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28535 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28536 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28537 | /* confdefs.h.  */ | 
 | 28538 | _ACEOF | 
 | 28539 | cat confdefs.h >>conftest.$ac_ext | 
 | 28540 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28541 | /* end confdefs.h.  */ | 
 | 28542 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28543 | int | 
 | 28544 | main () | 
 | 28545 | { | 
 | 28546 | float f; isnan(f); | 
 | 28547 |   ; | 
 | 28548 |   return 0; | 
 | 28549 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28550 | _ACEOF | 
 | 28551 | rm -f conftest.$ac_objext | 
 | 28552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28553 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28554 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28555 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28556 |   rm -f conftest.er1 | 
 | 28557 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28558 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28559 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28560 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28561 | 			 || test ! -s conftest.err' | 
 | 28562 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28563 |   (eval $ac_try) 2>&5 | 
 | 28564 |   ac_status=$? | 
 | 28565 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28566 |   (exit $ac_status); }; } && | 
 | 28567 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28568 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28569 |   (eval $ac_try) 2>&5 | 
 | 28570 |   ac_status=$? | 
 | 28571 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28572 |   (exit $ac_status); }; }; then | 
 | 28573 |   ac_cv_func_isnan_in_cmath=yes | 
 | 28574 | else | 
 | 28575 |   echo "$as_me: failed program was:" >&5 | 
 | 28576 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28577 |  | 
 | 28578 | ac_cv_func_isnan_in_cmath=no | 
 | 28579 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28581 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28582 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28586 |  | 
 | 28587 | fi | 
 | 28588 | echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
 | 28589 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28590 |  | 
 | 28591 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28592 |  | 
 | 28593 | cat >>confdefs.h <<\_ACEOF | 
 | 28594 | #define HAVE_ISNAN_IN_CMATH 1 | 
 | 28595 | _ACEOF | 
 | 28596 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28597 | fi | 
 | 28598 |  | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28599 | echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
 | 28600 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6 | 
 | 28601 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
 | 28602 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28603 | else | 
 | 28604 |   ac_ext=cc | 
 | 28605 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28606 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28607 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28608 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28609 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28610 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28611 | /* confdefs.h.  */ | 
 | 28612 | _ACEOF | 
 | 28613 | cat confdefs.h >>conftest.$ac_ext | 
 | 28614 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28615 | /* end confdefs.h.  */ | 
 | 28616 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28617 | int | 
 | 28618 | main () | 
 | 28619 | { | 
 | 28620 | float f; std::isnan(f); | 
 | 28621 |   ; | 
 | 28622 |   return 0; | 
 | 28623 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28624 | _ACEOF | 
 | 28625 | rm -f conftest.$ac_objext | 
 | 28626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28627 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28628 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28629 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28630 |   rm -f conftest.er1 | 
 | 28631 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28632 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28633 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28634 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28635 | 			 || test ! -s conftest.err' | 
 | 28636 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28637 |   (eval $ac_try) 2>&5 | 
 | 28638 |   ac_status=$? | 
 | 28639 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28640 |   (exit $ac_status); }; } && | 
 | 28641 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28642 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28643 |   (eval $ac_try) 2>&5 | 
 | 28644 |   ac_status=$? | 
 | 28645 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28646 |   (exit $ac_status); }; }; then | 
 | 28647 |   ac_cv_func_std_isnan_in_cmath=yes | 
 | 28648 | else | 
 | 28649 |   echo "$as_me: failed program was:" >&5 | 
 | 28650 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28651 |  | 
 | 28652 | ac_cv_func_std_isnan_in_cmath=no | 
 | 28653 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28655 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28656 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28660 |  | 
 | 28661 | fi | 
 | 28662 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
 | 28663 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28664 |  | 
 | 28665 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28666 |  | 
 | 28667 | cat >>confdefs.h <<\_ACEOF | 
 | 28668 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
 | 28669 | _ACEOF | 
 | 28670 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28671 | fi | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 28672 |  | 
 | 28673 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28674 | echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
 | 28675 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6 | 
 | 28676 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
 | 28677 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28678 | else | 
 | 28679 |   ac_ext=cc | 
 | 28680 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28681 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28682 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28683 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28684 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28685 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28686 | /* confdefs.h.  */ | 
 | 28687 | _ACEOF | 
 | 28688 | cat confdefs.h >>conftest.$ac_ext | 
 | 28689 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28690 | /* end confdefs.h.  */ | 
 | 28691 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28692 | int | 
 | 28693 | main () | 
 | 28694 | { | 
 | 28695 | float f; isinf(f); | 
 | 28696 |   ; | 
 | 28697 |   return 0; | 
 | 28698 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28699 | _ACEOF | 
 | 28700 | rm -f conftest.$ac_objext | 
 | 28701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28702 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28703 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28704 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28705 |   rm -f conftest.er1 | 
 | 28706 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28707 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28708 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28709 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28710 | 			 || test ! -s conftest.err' | 
 | 28711 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28712 |   (eval $ac_try) 2>&5 | 
 | 28713 |   ac_status=$? | 
 | 28714 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28715 |   (exit $ac_status); }; } && | 
 | 28716 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28717 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28718 |   (eval $ac_try) 2>&5 | 
 | 28719 |   ac_status=$? | 
 | 28720 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28721 |   (exit $ac_status); }; }; then | 
 | 28722 |   ac_cv_func_isinf_in_math_h=yes | 
 | 28723 | else | 
 | 28724 |   echo "$as_me: failed program was:" >&5 | 
 | 28725 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28726 |  | 
 | 28727 | ac_cv_func_isinf_in_math_h=no | 
 | 28728 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28730 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28731 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28735 |  | 
 | 28736 | fi | 
 | 28737 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
 | 28738 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28739 |  | 
 | 28740 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28741 |  | 
 | 28742 | cat >>confdefs.h <<\_ACEOF | 
 | 28743 | #define HAVE_ISINF_IN_MATH_H 1 | 
 | 28744 | _ACEOF | 
 | 28745 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28746 | fi | 
 | 28747 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28748 | echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
 | 28749 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6 | 
 | 28750 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
 | 28751 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28752 | else | 
 | 28753 |   ac_ext=cc | 
 | 28754 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28755 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28756 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28757 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28758 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28759 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28760 | /* confdefs.h.  */ | 
 | 28761 | _ACEOF | 
 | 28762 | cat confdefs.h >>conftest.$ac_ext | 
 | 28763 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28764 | /* end confdefs.h.  */ | 
 | 28765 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28766 | int | 
 | 28767 | main () | 
 | 28768 | { | 
 | 28769 | float f; isinf(f); | 
 | 28770 |   ; | 
 | 28771 |   return 0; | 
 | 28772 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28773 | _ACEOF | 
 | 28774 | rm -f conftest.$ac_objext | 
 | 28775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28776 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28777 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28778 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28779 |   rm -f conftest.er1 | 
 | 28780 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28781 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28782 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28783 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28784 | 			 || test ! -s conftest.err' | 
 | 28785 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28786 |   (eval $ac_try) 2>&5 | 
 | 28787 |   ac_status=$? | 
 | 28788 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28789 |   (exit $ac_status); }; } && | 
 | 28790 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28791 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28792 |   (eval $ac_try) 2>&5 | 
 | 28793 |   ac_status=$? | 
 | 28794 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28795 |   (exit $ac_status); }; }; then | 
 | 28796 |   ac_cv_func_isinf_in_cmath=yes | 
 | 28797 | else | 
 | 28798 |   echo "$as_me: failed program was:" >&5 | 
 | 28799 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28800 |  | 
 | 28801 | ac_cv_func_isinf_in_cmath=no | 
 | 28802 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28804 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28805 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28809 |  | 
 | 28810 | fi | 
 | 28811 | echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
 | 28812 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28813 |  | 
 | 28814 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28815 |  | 
 | 28816 | cat >>confdefs.h <<\_ACEOF | 
 | 28817 | #define HAVE_ISINF_IN_CMATH 1 | 
 | 28818 | _ACEOF | 
 | 28819 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28820 | fi | 
 | 28821 |  | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28822 | echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
 | 28823 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6 | 
 | 28824 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
 | 28825 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28826 | else | 
 | 28827 |   ac_ext=cc | 
 | 28828 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28829 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28830 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28831 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28832 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28833 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28834 | /* confdefs.h.  */ | 
 | 28835 | _ACEOF | 
 | 28836 | cat confdefs.h >>conftest.$ac_ext | 
 | 28837 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28838 | /* end confdefs.h.  */ | 
 | 28839 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28840 | int | 
 | 28841 | main () | 
 | 28842 | { | 
 | 28843 | float f; std::isinf(f)} | 
 | 28844 |   ; | 
 | 28845 |   return 0; | 
 | 28846 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28847 | _ACEOF | 
 | 28848 | rm -f conftest.$ac_objext | 
 | 28849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28850 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28851 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28852 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28853 |   rm -f conftest.er1 | 
 | 28854 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28855 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28856 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28857 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28858 | 			 || test ! -s conftest.err' | 
 | 28859 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28860 |   (eval $ac_try) 2>&5 | 
 | 28861 |   ac_status=$? | 
 | 28862 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28863 |   (exit $ac_status); }; } && | 
 | 28864 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28865 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28866 |   (eval $ac_try) 2>&5 | 
 | 28867 |   ac_status=$? | 
 | 28868 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28869 |   (exit $ac_status); }; }; then | 
 | 28870 |   ac_cv_func_std_isinf_in_cmath=yes | 
 | 28871 | else | 
 | 28872 |   echo "$as_me: failed program was:" >&5 | 
 | 28873 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28874 |  | 
 | 28875 | ac_cv_func_std_isinf_in_cmath=no | 
 | 28876 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28878 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28879 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28883 |  | 
 | 28884 | fi | 
 | 28885 | echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
 | 28886 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28887 |  | 
 | 28888 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 28889 |  | 
 | 28890 | cat >>confdefs.h <<\_ACEOF | 
 | 28891 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
 | 28892 | _ACEOF | 
 | 28893 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28894 | fi | 
 | 28895 |  | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28896 | echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
 | 28897 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6 | 
 | 28898 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
 | 28899 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28900 | else | 
 | 28901 |   ac_ext=cc | 
 | 28902 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28906 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28907 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28908 | /* confdefs.h.  */ | 
 | 28909 | _ACEOF | 
 | 28910 | cat confdefs.h >>conftest.$ac_ext | 
 | 28911 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28912 | /* end confdefs.h.  */ | 
 | 28913 | #include <ieeefp.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28914 | int | 
 | 28915 | main () | 
 | 28916 | { | 
 | 28917 | float f; finite(f); | 
 | 28918 |   ; | 
 | 28919 |   return 0; | 
 | 28920 | } | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28921 | _ACEOF | 
 | 28922 | rm -f conftest.$ac_objext | 
 | 28923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28924 |   (eval $ac_compile) 2>conftest.er1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28925 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28926 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28927 |   rm -f conftest.er1 | 
 | 28928 |   cat conftest.err >&5 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28929 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28930 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28931 | 	 { ac_try='test -z "$ac_cxx_werror_flag" | 
 | 28932 | 			 || test ! -s conftest.err' | 
 | 28933 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28934 |   (eval $ac_try) 2>&5 | 
 | 28935 |   ac_status=$? | 
 | 28936 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28937 |   (exit $ac_status); }; } && | 
 | 28938 | 	 { ac_try='test -s conftest.$ac_objext' | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28939 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 28940 |   (eval $ac_try) 2>&5 | 
 | 28941 |   ac_status=$? | 
 | 28942 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28943 |   (exit $ac_status); }; }; then | 
 | 28944 |   ac_cv_func_finite_in_ieeefp_h=yes | 
 | 28945 | else | 
 | 28946 |   echo "$as_me: failed program was:" >&5 | 
 | 28947 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28948 |  | 
 | 28949 | ac_cv_func_finite_in_ieeefp_h=no | 
 | 28950 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28952 |   ac_ext=c | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28953 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28957 |  | 
 | 28958 | fi | 
 | 28959 | echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
 | 28960 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6 | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28961 |  | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 28962 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28963 |  | 
 | 28964 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 28965 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 28966 | _ACEOF | 
 | 28967 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 28968 | fi | 
 | 28969 |  | 
 | 28970 |  | 
 | 28971 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28972 |  | 
 | 28973 |  | 
 | 28974 | for ac_header in stdlib.h unistd.h | 
 | 28975 | do | 
 | 28976 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 28977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 28978 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 28979 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 28980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 28981 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28982 | fi | 
 | 28983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 28984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 28985 | else | 
 | 28986 |   # Is the header compilable? | 
 | 28987 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 28988 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 28989 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28990 | /* confdefs.h.  */ | 
 | 28991 | _ACEOF | 
 | 28992 | cat confdefs.h >>conftest.$ac_ext | 
 | 28993 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28994 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28995 | $ac_includes_default | 
 | 28996 | #include <$ac_header> | 
 | 28997 | _ACEOF | 
 | 28998 | rm -f conftest.$ac_objext | 
 | 28999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29000 |   (eval $ac_compile) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29001 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29002 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29003 |   rm -f conftest.er1 | 
 | 29004 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29005 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29006 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29007 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 29008 | 			 || test ! -s conftest.err' | 
 | 29009 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29010 |   (eval $ac_try) 2>&5 | 
 | 29011 |   ac_status=$? | 
 | 29012 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29013 |   (exit $ac_status); }; } && | 
 | 29014 | 	 { ac_try='test -s conftest.$ac_objext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29015 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29016 |   (eval $ac_try) 2>&5 | 
 | 29017 |   ac_status=$? | 
 | 29018 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29019 |   (exit $ac_status); }; }; then | 
 | 29020 |   ac_header_compiler=yes | 
 | 29021 | else | 
 | 29022 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29023 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29024 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29025 | ac_header_compiler=no | 
 | 29026 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29028 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 29029 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 29030 |  | 
 | 29031 | # Is the header present? | 
 | 29032 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 29033 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 29034 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29035 | /* confdefs.h.  */ | 
 | 29036 | _ACEOF | 
 | 29037 | cat confdefs.h >>conftest.$ac_ext | 
 | 29038 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29039 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29040 | #include <$ac_header> | 
 | 29041 | _ACEOF | 
 | 29042 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 29043 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 29044 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29045 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29046 |   rm -f conftest.er1 | 
 | 29047 |   cat conftest.err >&5 | 
 | 29048 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29049 |   (exit $ac_status); } >/dev/null; then | 
 | 29050 |   if test -s conftest.err; then | 
 | 29051 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29052 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29053 |   else | 
 | 29054 |     ac_cpp_err= | 
 | 29055 |   fi | 
 | 29056 | else | 
 | 29057 |   ac_cpp_err=yes | 
 | 29058 | fi | 
 | 29059 | if test -z "$ac_cpp_err"; then | 
 | 29060 |   ac_header_preproc=yes | 
 | 29061 | else | 
 | 29062 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29063 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29064 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29065 |   ac_header_preproc=no | 
 | 29066 | fi | 
 | 29067 | rm -f conftest.err conftest.$ac_ext | 
 | 29068 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 29069 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 29070 |  | 
 | 29071 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29072 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 29073 |   yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29074 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 29075 | 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] | 29076 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 29077 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 29078 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29079 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29080 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 29081 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 29082 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29083 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 29084 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 29085 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 29086 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 29087 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 29088 | 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] | 29089 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 29090 | 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] | 29091 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 29092 | 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] | 29093 |     ( | 
 | 29094 |       cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29095 | ## ----------------------------------- ## | 
 | 29096 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 29097 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29098 | _ASBOX | 
 | 29099 |     ) | | 
 | 29100 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 29101 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29102 | esac | 
 | 29103 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 29104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 29105 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 29106 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29107 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29108 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29109 | fi | 
 | 29110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 29111 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 29112 |  | 
 | 29113 | fi | 
 | 29114 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 29115 |   cat >>confdefs.h <<_ACEOF | 
 | 29116 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 29117 | _ACEOF | 
 | 29118 |  | 
 | 29119 | fi | 
 | 29120 |  | 
 | 29121 | done | 
 | 29122 |  | 
 | 29123 |  | 
 | 29124 | for ac_func in getpagesize | 
 | 29125 | do | 
 | 29126 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 29127 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 29128 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 29129 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 29130 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29131 | else | 
 | 29132 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29133 | /* confdefs.h.  */ | 
 | 29134 | _ACEOF | 
 | 29135 | cat confdefs.h >>conftest.$ac_ext | 
 | 29136 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29137 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29138 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 29139 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 29140 | #define $ac_func innocuous_$ac_func | 
 | 29141 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29142 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29143 |     which can conflict with char $ac_func (); below. | 
 | 29144 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 29145 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29146 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29147 | #ifdef __STDC__ | 
 | 29148 | # include <limits.h> | 
 | 29149 | #else | 
 | 29150 | # include <assert.h> | 
 | 29151 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29152 |  | 
 | 29153 | #undef $ac_func | 
 | 29154 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29155 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 29156 | #ifdef __cplusplus | 
 | 29157 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29158 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29159 | #endif | 
 | 29160 | /* We use char because int might match the return type of a gcc2 | 
 | 29161 |    builtin and then its argument prototype would still apply.  */ | 
 | 29162 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29163 | /* The GNU C library defines this for functions which it implements | 
 | 29164 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 29165 |     something starting with __ and the normal name is an alias.  */ | 
 | 29166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 29167 | choke me | 
 | 29168 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29169 | char (*f) () = $ac_func; | 
 | 29170 | #endif | 
 | 29171 | #ifdef __cplusplus | 
 | 29172 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29173 | #endif | 
 | 29174 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29175 | int | 
 | 29176 | main () | 
 | 29177 | { | 
 | 29178 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29179 |   ; | 
 | 29180 |   return 0; | 
 | 29181 | } | 
 | 29182 | _ACEOF | 
 | 29183 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 29184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29185 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29186 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29187 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29188 |   rm -f conftest.er1 | 
 | 29189 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29190 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29191 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29192 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 29193 | 			 || test ! -s conftest.err' | 
 | 29194 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29195 |   (eval $ac_try) 2>&5 | 
 | 29196 |   ac_status=$? | 
 | 29197 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29198 |   (exit $ac_status); }; } && | 
 | 29199 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29200 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29201 |   (eval $ac_try) 2>&5 | 
 | 29202 |   ac_status=$? | 
 | 29203 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29204 |   (exit $ac_status); }; }; then | 
 | 29205 |   eval "$as_ac_var=yes" | 
 | 29206 | else | 
 | 29207 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29208 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29209 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29210 | eval "$as_ac_var=no" | 
 | 29211 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29212 | rm -f conftest.err conftest.$ac_objext \ | 
 | 29213 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29214 | fi | 
 | 29215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 29216 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 29217 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 29218 |   cat >>confdefs.h <<_ACEOF | 
 | 29219 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 29220 | _ACEOF | 
 | 29221 |  | 
 | 29222 | fi | 
 | 29223 | done | 
 | 29224 |  | 
 | 29225 | echo "$as_me:$LINENO: checking for working mmap" >&5 | 
 | 29226 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | 
 | 29227 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
 | 29228 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29229 | else | 
 | 29230 |   if test "$cross_compiling" = yes; then | 
 | 29231 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 29232 | else | 
 | 29233 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29234 | /* confdefs.h.  */ | 
 | 29235 | _ACEOF | 
 | 29236 | cat confdefs.h >>conftest.$ac_ext | 
 | 29237 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29238 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29239 | $ac_includes_default | 
 | 29240 | /* malloc might have been renamed as rpl_malloc. */ | 
 | 29241 | #undef malloc | 
 | 29242 |  | 
 | 29243 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
 | 29244 |    Here is a matrix of mmap possibilities: | 
 | 29245 | 	mmap private not fixed | 
 | 29246 | 	mmap private fixed at somewhere currently unmapped | 
 | 29247 | 	mmap private fixed at somewhere already mapped | 
 | 29248 | 	mmap shared not fixed | 
 | 29249 | 	mmap shared fixed at somewhere currently unmapped | 
 | 29250 | 	mmap shared fixed at somewhere already mapped | 
 | 29251 |    For private mappings, we should verify that changes cannot be read() | 
 | 29252 |    back from the file, nor mmap's back from the file at a different | 
 | 29253 |    address.  (There have been systems where private was not correctly | 
 | 29254 |    implemented like the infamous i386 svr4.0, and systems where the | 
 | 29255 |    VM page cache was not coherent with the file system buffer cache | 
 | 29256 |    like early versions of FreeBSD and possibly contemporary NetBSD.) | 
 | 29257 |    For shared mappings, we should conversely verify that changes get | 
 | 29258 |    propagated back to all the places they're supposed to be. | 
 | 29259 |  | 
 | 29260 |    Grep wants private fixed already mapped. | 
 | 29261 |    The main things grep needs to know about mmap are: | 
 | 29262 |    * does it exist and is it safe to write into the mmap'd area | 
 | 29263 |    * how to use it (BSD variants)  */ | 
 | 29264 |  | 
 | 29265 | #include <fcntl.h> | 
 | 29266 | #include <sys/mman.h> | 
 | 29267 |  | 
 | 29268 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
 | 29269 | char *malloc (); | 
 | 29270 | #endif | 
 | 29271 |  | 
 | 29272 | /* This mess was copied from the GNU getpagesize.h.  */ | 
 | 29273 | #if !HAVE_GETPAGESIZE | 
 | 29274 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
 | 29275 | # if !HAVE_SYS_PARAM_H | 
 | 29276 | #  define HAVE_SYS_PARAM_H 1 | 
 | 29277 | # endif | 
 | 29278 |  | 
 | 29279 | # ifdef _SC_PAGESIZE | 
 | 29280 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 29281 | # else /* no _SC_PAGESIZE */ | 
 | 29282 | #  if HAVE_SYS_PARAM_H | 
 | 29283 | #   include <sys/param.h> | 
 | 29284 | #   ifdef EXEC_PAGESIZE | 
 | 29285 | #    define getpagesize() EXEC_PAGESIZE | 
 | 29286 | #   else /* no EXEC_PAGESIZE */ | 
 | 29287 | #    ifdef NBPG | 
 | 29288 | #     define getpagesize() NBPG * CLSIZE | 
 | 29289 | #     ifndef CLSIZE | 
 | 29290 | #      define CLSIZE 1 | 
 | 29291 | #     endif /* no CLSIZE */ | 
 | 29292 | #    else /* no NBPG */ | 
 | 29293 | #     ifdef NBPC | 
 | 29294 | #      define getpagesize() NBPC | 
 | 29295 | #     else /* no NBPC */ | 
 | 29296 | #      ifdef PAGESIZE | 
 | 29297 | #       define getpagesize() PAGESIZE | 
 | 29298 | #      endif /* PAGESIZE */ | 
 | 29299 | #     endif /* no NBPC */ | 
 | 29300 | #    endif /* no NBPG */ | 
 | 29301 | #   endif /* no EXEC_PAGESIZE */ | 
 | 29302 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 29303 | #   define getpagesize() 8192	/* punt totally */ | 
 | 29304 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 29305 | # endif /* no _SC_PAGESIZE */ | 
 | 29306 |  | 
 | 29307 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 29308 |  | 
 | 29309 | int | 
 | 29310 | main () | 
 | 29311 | { | 
 | 29312 |   char *data, *data2, *data3; | 
 | 29313 |   int i, pagesize; | 
 | 29314 |   int fd; | 
 | 29315 |  | 
 | 29316 |   pagesize = getpagesize (); | 
 | 29317 |  | 
 | 29318 |   /* First, make a file with some known garbage in it. */ | 
 | 29319 |   data = (char *) malloc (pagesize); | 
 | 29320 |   if (!data) | 
 | 29321 |     exit (1); | 
 | 29322 |   for (i = 0; i < pagesize; ++i) | 
 | 29323 |     *(data + i) = rand (); | 
 | 29324 |   umask (0); | 
 | 29325 |   fd = creat ("conftest.mmap", 0600); | 
 | 29326 |   if (fd < 0) | 
 | 29327 |     exit (1); | 
 | 29328 |   if (write (fd, data, pagesize) != pagesize) | 
 | 29329 |     exit (1); | 
 | 29330 |   close (fd); | 
 | 29331 |  | 
 | 29332 |   /* Next, try to mmap the file at a fixed address which already has | 
 | 29333 |      something else allocated at it.  If we can, also make sure that | 
 | 29334 |      we see the same garbage.  */ | 
 | 29335 |   fd = open ("conftest.mmap", O_RDWR); | 
 | 29336 |   if (fd < 0) | 
 | 29337 |     exit (1); | 
 | 29338 |   data2 = (char *) malloc (2 * pagesize); | 
 | 29339 |   if (!data2) | 
 | 29340 |     exit (1); | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29341 |   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29342 |   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29343 | 		     MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29344 |     exit (1); | 
 | 29345 |   for (i = 0; i < pagesize; ++i) | 
 | 29346 |     if (*(data + i) != *(data2 + i)) | 
 | 29347 |       exit (1); | 
 | 29348 |  | 
 | 29349 |   /* Finally, make sure that changes to the mapped area do not | 
 | 29350 |      percolate back to the file as seen by read().  (This is a bug on | 
 | 29351 |      some variants of i386 svr4.0.)  */ | 
 | 29352 |   for (i = 0; i < pagesize; ++i) | 
 | 29353 |     *(data2 + i) = *(data2 + i) + 1; | 
 | 29354 |   data3 = (char *) malloc (pagesize); | 
 | 29355 |   if (!data3) | 
 | 29356 |     exit (1); | 
 | 29357 |   if (read (fd, data3, pagesize) != pagesize) | 
 | 29358 |     exit (1); | 
 | 29359 |   for (i = 0; i < pagesize; ++i) | 
 | 29360 |     if (*(data + i) != *(data3 + i)) | 
 | 29361 |       exit (1); | 
 | 29362 |   close (fd); | 
 | 29363 |   exit (0); | 
 | 29364 | } | 
 | 29365 | _ACEOF | 
 | 29366 | rm -f conftest$ac_exeext | 
 | 29367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 29368 |   (eval $ac_link) 2>&5 | 
 | 29369 |   ac_status=$? | 
 | 29370 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29371 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 29372 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29373 |   (eval $ac_try) 2>&5 | 
 | 29374 |   ac_status=$? | 
 | 29375 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29376 |   (exit $ac_status); }; }; then | 
 | 29377 |   ac_cv_func_mmap_fixed_mapped=yes | 
 | 29378 | else | 
 | 29379 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 29380 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29381 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29382 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29383 | ( exit $ac_status ) | 
 | 29384 | ac_cv_func_mmap_fixed_mapped=no | 
 | 29385 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29386 | 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] | 29387 | fi | 
 | 29388 | fi | 
 | 29389 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
 | 29390 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | 
 | 29391 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
 | 29392 |  | 
 | 29393 | cat >>confdefs.h <<\_ACEOF | 
 | 29394 | #define HAVE_MMAP 1 | 
 | 29395 | _ACEOF | 
 | 29396 |  | 
 | 29397 | fi | 
 | 29398 | rm -f conftest.mmap | 
 | 29399 |  | 
 | 29400 | echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
 | 29401 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 | 
 | 29402 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
 | 29403 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29404 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29405 |    ac_ext=c | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29406 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29407 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29408 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29409 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29410 |  | 
 | 29411 |   if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 29412 |   ac_cv_func_mmap_file=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29413 | else | 
 | 29414 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29415 |  | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29416 |     /* confdefs.h.  */ | 
 | 29417 | _ACEOF | 
 | 29418 | cat confdefs.h >>conftest.$ac_ext | 
 | 29419 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29420 | /* end confdefs.h.  */ | 
 | 29421 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29422 | #include <sys/types.h> | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 29423 | #include <sys/mman.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29424 | #include <fcntl.h> | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29425 |  | 
 | 29426 | int | 
 | 29427 | main () | 
 | 29428 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29429 |  | 
 | 29430 |   int fd; | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29431 |   fd = creat ("foo",0777); | 
 | 29432 |   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
 | 29433 |   unlink ("foo"); | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 29434 |   return (fd != (int) MAP_FAILED); | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 29435 |   ; | 
 | 29436 |   return 0; | 
 | 29437 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29438 | _ACEOF | 
 | 29439 | rm -f conftest$ac_exeext | 
 | 29440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 29441 |   (eval $ac_link) 2>&5 | 
 | 29442 |   ac_status=$? | 
 | 29443 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29444 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 29445 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29446 |   (eval $ac_try) 2>&5 | 
 | 29447 |   ac_status=$? | 
 | 29448 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29449 |   (exit $ac_status); }; }; then | 
 | 29450 |   ac_cv_func_mmap_file=yes | 
 | 29451 | else | 
 | 29452 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 29453 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29454 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29455 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29456 | ( exit $ac_status ) | 
 | 29457 | ac_cv_func_mmap_file=no | 
 | 29458 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29459 | 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] | 29460 | fi | 
 | 29461 |   ac_ext=c | 
 | 29462 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29466 |  | 
 | 29467 |  | 
 | 29468 | fi | 
 | 29469 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
 | 29470 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 | 
 | 29471 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 29472 |  | 
 | 29473 | cat >>confdefs.h <<\_ACEOF | 
 | 29474 | #define HAVE_MMAP_FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29475 | _ACEOF | 
 | 29476 |  | 
 | 29477 |    MMAP_FILE=yes | 
 | 29478 |  | 
 | 29479 | fi | 
 | 29480 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29481 | echo "$as_me:$LINENO: checking for mprotect" >&5 | 
 | 29482 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 | 
 | 29483 | if test "${ac_cv_func_mprotect+set}" = set; then | 
 | 29484 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29485 | else | 
 | 29486 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29487 | /* confdefs.h.  */ | 
 | 29488 | _ACEOF | 
 | 29489 | cat confdefs.h >>conftest.$ac_ext | 
 | 29490 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29491 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29492 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. | 
 | 29493 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 29494 | #define mprotect innocuous_mprotect | 
 | 29495 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29496 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29497 |     which can conflict with char mprotect (); below. | 
 | 29498 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 29499 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29500 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29501 | #ifdef __STDC__ | 
 | 29502 | # include <limits.h> | 
 | 29503 | #else | 
 | 29504 | # include <assert.h> | 
 | 29505 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29506 |  | 
 | 29507 | #undef mprotect | 
 | 29508 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29509 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 29510 | #ifdef __cplusplus | 
 | 29511 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29512 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29513 | #endif | 
 | 29514 | /* We use char because int might match the return type of a gcc2 | 
 | 29515 |    builtin and then its argument prototype would still apply.  */ | 
 | 29516 | char mprotect (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29517 | /* The GNU C library defines this for functions which it implements | 
 | 29518 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 29519 |     something starting with __ and the normal name is an alias.  */ | 
 | 29520 | #if defined (__stub_mprotect) || defined (__stub___mprotect) | 
 | 29521 | choke me | 
 | 29522 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29523 | char (*f) () = mprotect; | 
 | 29524 | #endif | 
 | 29525 | #ifdef __cplusplus | 
 | 29526 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29527 | #endif | 
 | 29528 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29529 | int | 
 | 29530 | main () | 
 | 29531 | { | 
 | 29532 | return f != mprotect; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29533 |   ; | 
 | 29534 |   return 0; | 
 | 29535 | } | 
 | 29536 | _ACEOF | 
 | 29537 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 29538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29539 |   (eval $ac_link) 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29540 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29541 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29542 |   rm -f conftest.er1 | 
 | 29543 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29544 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29545 |   (exit $ac_status); } && | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29546 | 	 { ac_try='test -z "$ac_c_werror_flag" | 
 | 29547 | 			 || test ! -s conftest.err' | 
 | 29548 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29549 |   (eval $ac_try) 2>&5 | 
 | 29550 |   ac_status=$? | 
 | 29551 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29552 |   (exit $ac_status); }; } && | 
 | 29553 | 	 { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29554 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 29555 |   (eval $ac_try) 2>&5 | 
 | 29556 |   ac_status=$? | 
 | 29557 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29558 |   (exit $ac_status); }; }; then | 
 | 29559 |   ac_cv_func_mprotect=yes | 
 | 29560 | else | 
 | 29561 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29562 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29563 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29564 | ac_cv_func_mprotect=no | 
 | 29565 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29566 | rm -f conftest.err conftest.$ac_objext \ | 
 | 29567 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29568 | fi | 
 | 29569 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 | 
 | 29570 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 | 
 | 29571 | if test $ac_cv_func_mprotect = yes; then | 
 | 29572 |   : | 
 | 29573 | else | 
 | 29574 |   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 | 
 | 29575 | echo "$as_me: error: Function mprotect() required but not found" >&2;} | 
 | 29576 |    { (exit 1); exit 1; }; } | 
 | 29577 | fi | 
 | 29578 |  | 
 | 29579 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29580 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 29581 | then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29582 |   { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5 | 
 | 29583 | echo "$as_me: WARNING: mmap() required but not found" >&2;} | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 29584 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29585 | if test "$ac_cv_func_mmap_file" = "no" | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 29586 | then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29587 |   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
 | 29588 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 29589 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29590 |  | 
 | 29591 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 29592 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
 | 29593 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29594 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then | 
 | 29595 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29596 | else | 
 | 29597 |   llvm_cv_llvmgcc_sanity="no" | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 29598 | if test -x "$LLVMGCC" ; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29599 |   cp /dev/null conftest.c | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 29600 |   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29601 |   if test $? -eq 0 ; then | 
 | 29602 |     llvm_cv_llvmgcc_sanity="yes" | 
 | 29603 |   fi | 
 | 29604 |   rm conftest.c | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 29605 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29606 | fi | 
 | 29607 | echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 | 
 | 29608 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6 | 
 | 29609 |  | 
 | 29610 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 29611 |   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29612 |   LLVMCC1=$llvmcc1path | 
 | 29613 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 29614 |   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29615 |   LLVMCC1PLUS=$llvmcc1pluspath | 
 | 29616 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 29617 |   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` | 
 | 29618 |   LLVMGCCDIR=$llvmgccdir | 
 | 29619 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 29620 | fi | 
 | 29621 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 29622 | SHLIBEXT=$libltdl_cv_shlibext | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 29623 |  | 
 | 29624 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 29625 | # Translate the various configuration directories and other basic | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29626 | # information into substitutions that will end up in Makefile.config.in | 
 | 29627 | # that these configured values can be used by the makefiles | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 29628 | eval LLVM_PREFIX="${prefix}"; | 
 | 29629 | eval LLVM_BINDIR="${prefix}/bin"; | 
 | 29630 | eval LLVM_LIBDIR="${prefix}/lib"; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 29631 | eval LLVM_DATADIR="${prefix}/share/llvm"; | 
 | 29632 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; | 
 | 29633 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 29634 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
 | 29635 | eval LLVM_INFODIR="${prefix}/info"; | 
 | 29636 | eval LLVM_MANDIR="${prefix}/man"; | 
 | 29637 | LLVM_CONFIGTIME=`date` | 
 | 29638 |  | 
 | 29639 |  | 
 | 29640 |  | 
 | 29641 |  | 
 | 29642 |  | 
 | 29643 |  | 
 | 29644 |  | 
 | 29645 |  | 
 | 29646 |  | 
 | 29647 |  | 
 | 29648 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29649 | # Place the various directores into the config.h file as #defines so that we | 
 | 29650 | # can know about the installation paths within LLVM. | 
 | 29651 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 29652 | cat >>confdefs.h <<_ACEOF | 
 | 29653 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
 | 29654 | _ACEOF | 
 | 29655 |  | 
 | 29656 |  | 
 | 29657 | cat >>confdefs.h <<_ACEOF | 
 | 29658 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
 | 29659 | _ACEOF | 
 | 29660 |  | 
 | 29661 |  | 
 | 29662 | cat >>confdefs.h <<_ACEOF | 
 | 29663 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
 | 29664 | _ACEOF | 
 | 29665 |  | 
 | 29666 |  | 
 | 29667 | cat >>confdefs.h <<_ACEOF | 
 | 29668 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
 | 29669 | _ACEOF | 
 | 29670 |  | 
 | 29671 |  | 
 | 29672 | cat >>confdefs.h <<_ACEOF | 
 | 29673 | #define LLVM_DATADIR "$LLVM_DOCSDIR" | 
 | 29674 | _ACEOF | 
 | 29675 |  | 
 | 29676 |  | 
 | 29677 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 29678 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 29679 | _ACEOF | 
 | 29680 |  | 
 | 29681 |  | 
 | 29682 | cat >>confdefs.h <<_ACEOF | 
 | 29683 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
 | 29684 | _ACEOF | 
 | 29685 |  | 
 | 29686 |  | 
 | 29687 | cat >>confdefs.h <<_ACEOF | 
 | 29688 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
 | 29689 | _ACEOF | 
 | 29690 |  | 
 | 29691 |  | 
 | 29692 | cat >>confdefs.h <<_ACEOF | 
 | 29693 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
 | 29694 | _ACEOF | 
 | 29695 |  | 
 | 29696 |  | 
 | 29697 | cat >>confdefs.h <<_ACEOF | 
 | 29698 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
 | 29699 | _ACEOF | 
 | 29700 |  | 
 | 29701 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29702 |  | 
 | 29703 |           ac_config_headers="$ac_config_headers include/llvm/Config/config.h" | 
 | 29704 |  | 
 | 29705 |  | 
 | 29706 |           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" | 
 | 29707 |  | 
 | 29708 |           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" | 
 | 29709 |  | 
 | 29710 |           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" | 
 | 29711 |  | 
 | 29712 |           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h" | 
 | 29713 |  | 
 | 29714 |           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" | 
 | 29715 |  | 
 | 29716 |  | 
 | 29717 |           ac_config_files="$ac_config_files Makefile.config" | 
 | 29718 |  | 
 | 29719 |  | 
 | 29720 |                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c" | 
 | 29721 |  | 
 | 29722 |  | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 29723 |           ac_config_files="$ac_config_files docs/doxygen.cfg" | 
 | 29724 |  | 
 | 29725 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29726 |           ac_config_commands="$ac_config_commands Makefile" | 
 | 29727 |  | 
 | 29728 |  | 
 | 29729 |           ac_config_commands="$ac_config_commands Makefile.common" | 
 | 29730 |  | 
 | 29731 |  | 
 | 29732 |           ac_config_commands="$ac_config_commands examples/Makefile" | 
 | 29733 |  | 
 | 29734 |  | 
 | 29735 |           ac_config_commands="$ac_config_commands lib/Makefile" | 
 | 29736 |  | 
 | 29737 |  | 
 | 29738 |           ac_config_commands="$ac_config_commands runtime/Makefile" | 
 | 29739 |  | 
 | 29740 |  | 
 | 29741 |           ac_config_commands="$ac_config_commands test/Makefile" | 
 | 29742 |  | 
 | 29743 |  | 
 | 29744 |           ac_config_commands="$ac_config_commands test/Makefile.tests" | 
 | 29745 |  | 
 | 29746 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29747 |           ac_config_commands="$ac_config_commands tools/Makefile" | 
 | 29748 |  | 
 | 29749 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29750 |           ac_config_commands="$ac_config_commands utils/Makefile" | 
 | 29751 |  | 
 | 29752 |  | 
 | 29753 |           ac_config_commands="$ac_config_commands projects/Makefile" | 
 | 29754 |  | 
 | 29755 |  | 
 | 29756 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29757 | cat >confcache <<\_ACEOF | 
 | 29758 | # This file is a shell script that caches the results of configure | 
 | 29759 | # tests run on this system so they can be shared between configure | 
 | 29760 | # scripts and configure runs, see configure's option --config-cache. | 
 | 29761 | # It is not useful on other systems.  If it contains results you don't | 
 | 29762 | # want to keep, you may remove or edit it. | 
 | 29763 | # | 
 | 29764 | # config.status only pays attention to the cache file if you give it | 
 | 29765 | # the --recheck option to rerun configure. | 
 | 29766 | # | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29767 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29768 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 29769 | # following values. | 
 | 29770 |  | 
 | 29771 | _ACEOF | 
 | 29772 |  | 
 | 29773 | # The following way of writing the cache mishandles newlines in values, | 
 | 29774 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 29775 | # So, don't put newlines in cache variables' values. | 
 | 29776 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 29777 | # and sets the high bit in the cache file unless we assign to the vars. | 
 | 29778 | { | 
 | 29779 |   (set) 2>&1 | | 
 | 29780 |     case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
 | 29781 |     *ac_space=\ *) | 
 | 29782 |       # `set' does not quote correctly, so add quotes (double-quote | 
 | 29783 |       # substitution turns \\\\ into \\, and sed turns \\ into \). | 
 | 29784 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29785 | 	"s/'/'\\\\''/g; | 
 | 29786 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29787 |       ;; | 
 | 29788 |     *) | 
 | 29789 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 29790 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29791 | 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29792 |       ;; | 
 | 29793 |     esac; | 
 | 29794 | } | | 
 | 29795 |   sed ' | 
 | 29796 |      t clear | 
 | 29797 |      : clear | 
 | 29798 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 29799 |      t end | 
 | 29800 |      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 29801 |      : end' >>confcache | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29802 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29803 |   if test -w $cache_file; then | 
 | 29804 |     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
 | 29805 |     cat confcache >$cache_file | 
 | 29806 |   else | 
 | 29807 |     echo "not updating unwritable cache $cache_file" | 
 | 29808 |   fi | 
 | 29809 | fi | 
 | 29810 | rm -f confcache | 
 | 29811 |  | 
 | 29812 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 29813 | # Let make expand exec_prefix. | 
 | 29814 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 29815 |  | 
 | 29816 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
 | 29817 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
 | 29818 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 29819 | # (actually we leave an empty line to preserve line numbers). | 
 | 29820 | if test "x$srcdir" = x.; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29821 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29822 | s/:*\$(srcdir):*/:/; | 
 | 29823 | s/:*\${srcdir}:*/:/; | 
 | 29824 | s/:*@srcdir@:*/:/; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29825 | s/^\([^=]*=[	 ]*\):*/\1/; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29826 | s/:*$//; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29827 | s/^[^=]*=[	 ]*$//; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29828 | }' | 
 | 29829 | fi | 
 | 29830 |  | 
 | 29831 | DEFS=-DHAVE_CONFIG_H | 
 | 29832 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29833 | ac_libobjs= | 
 | 29834 | ac_ltlibobjs= | 
 | 29835 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 29836 |   # 1. Remove the extension, and $U if already installed. | 
 | 29837 |   ac_i=`echo "$ac_i" | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29838 | 	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29839 |   # 2. Add them. | 
 | 29840 |   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
 | 29841 |   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
 | 29842 | done | 
 | 29843 | LIBOBJS=$ac_libobjs | 
 | 29844 |  | 
 | 29845 | LTLIBOBJS=$ac_ltlibobjs | 
 | 29846 |  | 
 | 29847 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 29848 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
 | 29849 |   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | 
 | 29850 | Usually this means the macro was only invoked conditionally." >&5 | 
 | 29851 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | 
 | 29852 | Usually this means the macro was only invoked conditionally." >&2;} | 
 | 29853 |    { (exit 1); exit 1; }; } | 
 | 29854 | fi | 
 | 29855 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
 | 29856 |   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
 | 29857 | Usually this means the macro was only invoked conditionally." >&5 | 
 | 29858 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
 | 29859 | Usually this means the macro was only invoked conditionally." >&2;} | 
 | 29860 |    { (exit 1); exit 1; }; } | 
 | 29861 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29862 |  | 
 | 29863 | : ${CONFIG_STATUS=./config.status} | 
 | 29864 | ac_clean_files_save=$ac_clean_files | 
 | 29865 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
 | 29866 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
 | 29867 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 29868 | cat >$CONFIG_STATUS <<_ACEOF | 
 | 29869 | #! $SHELL | 
 | 29870 | # Generated by $as_me. | 
 | 29871 | # Run this file to recreate the current configuration. | 
 | 29872 | # Compiler output produced by configure, useful for debugging | 
 | 29873 | # configure, is in config.log if it exists. | 
 | 29874 |  | 
 | 29875 | debug=false | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29876 | ac_cs_recheck=false | 
 | 29877 | ac_cs_silent=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29878 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 29879 | _ACEOF | 
 | 29880 |  | 
 | 29881 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29882 | ## --------------------- ## | 
 | 29883 | ## M4sh Initialization.  ## | 
 | 29884 | ## --------------------- ## | 
 | 29885 |  | 
 | 29886 | # Be Bourne compatible | 
 | 29887 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 29888 |   emulate sh | 
 | 29889 |   NULLCMD=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29890 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 29891 |   # is contrary to our usage.  Disable this feature. | 
 | 29892 |   alias -g '${1+"$@"}'='"$@"' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29893 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 29894 |   set -o posix | 
 | 29895 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29896 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29897 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29898 | # Support unset when possible. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29899 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29900 |   as_unset=unset | 
 | 29901 | else | 
 | 29902 |   as_unset=false | 
 | 29903 | fi | 
 | 29904 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29905 |  | 
 | 29906 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 29907 | $as_unset ENV MAIL MAILPATH | 
 | 29908 | PS1='$ ' | 
 | 29909 | PS2='> ' | 
 | 29910 | PS4='+ ' | 
 | 29911 |  | 
 | 29912 | # NLS nuisances. | 
 | 29913 | for as_var in \ | 
 | 29914 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 29915 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 29916 |   LC_TELEPHONE LC_TIME | 
 | 29917 | do | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29918 |   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] | 29919 |     eval $as_var=C; export $as_var | 
 | 29920 |   else | 
 | 29921 |     $as_unset $as_var | 
 | 29922 |   fi | 
 | 29923 | done | 
 | 29924 |  | 
 | 29925 | # Required to use basename. | 
 | 29926 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 29927 |   as_expr=expr | 
 | 29928 | else | 
 | 29929 |   as_expr=false | 
 | 29930 | fi | 
 | 29931 |  | 
 | 29932 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 29933 |   as_basename=basename | 
 | 29934 | else | 
 | 29935 |   as_basename=false | 
 | 29936 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29937 |  | 
 | 29938 |  | 
 | 29939 | # Name of the executable. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29940 | as_me=`$as_basename "$0" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29941 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 29942 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 29943 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 29944 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 29945 | echo X/"$0" | | 
 | 29946 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 29947 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 29948 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 29949 |   	  s/.*/./; q'` | 
 | 29950 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29951 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29952 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 29953 | # Avoid depending upon Character Ranges. | 
 | 29954 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 29955 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 29956 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 29957 | as_cr_digits='0123456789' | 
 | 29958 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 29959 |  | 
 | 29960 | # The user is always right. | 
 | 29961 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29962 |   echo "#! /bin/sh" >conf$$.sh | 
 | 29963 |   echo  "exit 0"   >>conf$$.sh | 
 | 29964 |   chmod +x conf$$.sh | 
 | 29965 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29966 |     PATH_SEPARATOR=';' | 
 | 29967 |   else | 
 | 29968 |     PATH_SEPARATOR=: | 
 | 29969 |   fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29970 |   rm -f conf$$.sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29971 | fi | 
 | 29972 |  | 
 | 29973 |  | 
 | 29974 |   as_lineno_1=$LINENO | 
 | 29975 |   as_lineno_2=$LINENO | 
 | 29976 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 29977 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 29978 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 29979 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 29980 |   # relative or not. | 
 | 29981 |   case $0 in | 
 | 29982 |     *[\\/]* ) as_myself=$0 ;; | 
 | 29983 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 29984 | for as_dir in $PATH | 
 | 29985 | do | 
 | 29986 |   IFS=$as_save_IFS | 
 | 29987 |   test -z "$as_dir" && as_dir=. | 
 | 29988 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 29989 | done | 
 | 29990 |  | 
 | 29991 |        ;; | 
 | 29992 |   esac | 
 | 29993 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 29994 |   # in which case we are not to be found in the path. | 
 | 29995 |   if test "x$as_myself" = x; then | 
 | 29996 |     as_myself=$0 | 
 | 29997 |   fi | 
 | 29998 |   if test ! -f "$as_myself"; then | 
 | 29999 |     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
 | 30000 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
 | 30001 |    { (exit 1); exit 1; }; } | 
 | 30002 |   fi | 
 | 30003 |   case $CONFIG_SHELL in | 
 | 30004 |   '') | 
 | 30005 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 30006 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 30007 | do | 
 | 30008 |   IFS=$as_save_IFS | 
 | 30009 |   test -z "$as_dir" && as_dir=. | 
 | 30010 |   for as_base in sh bash ksh sh5; do | 
 | 30011 | 	 case $as_dir in | 
 | 30012 | 	 /*) | 
 | 30013 | 	   if ("$as_dir/$as_base" -c ' | 
 | 30014 |   as_lineno_1=$LINENO | 
 | 30015 |   as_lineno_2=$LINENO | 
 | 30016 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 30017 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 30018 |   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] | 30019 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 30020 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30021 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 30022 | 	     export CONFIG_SHELL | 
 | 30023 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 30024 | 	   fi;; | 
 | 30025 | 	 esac | 
 | 30026 |        done | 
 | 30027 | done | 
 | 30028 | ;; | 
 | 30029 |   esac | 
 | 30030 |  | 
 | 30031 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 30032 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 30033 |   # line-number line before each line; the second 'sed' does the real | 
 | 30034 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 30035 |   # with the numbered line, and appends trailing '-' during | 
 | 30036 |   # substitution so that $LINENO is not a special case at line end. | 
 | 30037 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 30038 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 30039 |   sed '=' <$as_myself | | 
 | 30040 |     sed ' | 
 | 30041 |       N | 
 | 30042 |       s,$,-, | 
 | 30043 |       : loop | 
 | 30044 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 30045 |       t loop | 
 | 30046 |       s,-$,, | 
 | 30047 |       s,^['$as_cr_digits']*\n,, | 
 | 30048 |     ' >$as_me.lineno && | 
 | 30049 |   chmod +x $as_me.lineno || | 
 | 30050 |     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
 | 30051 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
 | 30052 |    { (exit 1); exit 1; }; } | 
 | 30053 |  | 
 | 30054 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 30055 |   # (the dirname of $[0] is not the place where we might find the | 
 | 30056 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 30057 |   . ./$as_me.lineno | 
 | 30058 |   # Exit status is that of the last command. | 
 | 30059 |   exit | 
 | 30060 | } | 
 | 30061 |  | 
 | 30062 |  | 
 | 30063 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 30064 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 30065 | ' ECHO_T='	' ;; | 
 | 30066 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 30067 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 30068 | esac | 
 | 30069 |  | 
 | 30070 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 30071 |   as_expr=expr | 
 | 30072 | else | 
 | 30073 |   as_expr=false | 
 | 30074 | fi | 
 | 30075 |  | 
 | 30076 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 30077 | echo >conf$$.file | 
 | 30078 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 30079 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 30080 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 30081 |   if test -f conf$$.exe; then | 
 | 30082 |     # Don't use ln at all; we don't have any links | 
 | 30083 |     as_ln_s='cp -p' | 
 | 30084 |   else | 
 | 30085 |     as_ln_s='ln -s' | 
 | 30086 |   fi | 
 | 30087 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 30088 |   as_ln_s=ln | 
 | 30089 | else | 
 | 30090 |   as_ln_s='cp -p' | 
 | 30091 | fi | 
 | 30092 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 30093 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30094 | if mkdir -p . 2>/dev/null; then | 
 | 30095 |   as_mkdir_p=: | 
 | 30096 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30097 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30098 |   as_mkdir_p=false | 
 | 30099 | fi | 
 | 30100 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30101 | as_executable_p="test -f" | 
 | 30102 |  | 
 | 30103 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30104 | 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] | 30105 |  | 
 | 30106 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30107 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30108 |  | 
 | 30109 |  | 
 | 30110 | # IFS | 
 | 30111 | # We need space, tab and new line, in precisely that order. | 
 | 30112 | as_nl=' | 
 | 30113 | ' | 
 | 30114 | IFS=" 	$as_nl" | 
 | 30115 |  | 
 | 30116 | # CDPATH. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30117 | $as_unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30118 |  | 
 | 30119 | exec 6>&1 | 
 | 30120 |  | 
 | 30121 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
 | 30122 | # report actual input values of CONFIG_FILES etc. instead of their | 
 | 30123 | # values after options handling.  Logging --version etc. is OK. | 
 | 30124 | exec 5>>config.log | 
 | 30125 | { | 
 | 30126 |   echo | 
 | 30127 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 30128 | ## Running $as_me. ## | 
 | 30129 | _ASBOX | 
 | 30130 | } >&5 | 
 | 30131 | cat >&5 <<_CSEOF | 
 | 30132 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30133 | This file was extended by llvm $as_me 1.4, which was | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30134 | generated by GNU Autoconf 2.59.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30135 |  | 
 | 30136 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 30137 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 30138 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 30139 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 30140 |   $ $0 $@ | 
 | 30141 |  | 
 | 30142 | _CSEOF | 
 | 30143 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
 | 30144 | echo >&5 | 
 | 30145 | _ACEOF | 
 | 30146 |  | 
 | 30147 | # Files that config.status was made for. | 
 | 30148 | if test -n "$ac_config_files"; then | 
 | 30149 |   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
 | 30150 | fi | 
 | 30151 |  | 
 | 30152 | if test -n "$ac_config_headers"; then | 
 | 30153 |   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
 | 30154 | fi | 
 | 30155 |  | 
 | 30156 | if test -n "$ac_config_links"; then | 
 | 30157 |   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
 | 30158 | fi | 
 | 30159 |  | 
 | 30160 | if test -n "$ac_config_commands"; then | 
 | 30161 |   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
 | 30162 | fi | 
 | 30163 |  | 
 | 30164 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30165 |  | 
 | 30166 | ac_cs_usage="\ | 
 | 30167 | \`$as_me' instantiates files from templates according to the | 
 | 30168 | current configuration. | 
 | 30169 |  | 
 | 30170 | Usage: $0 [OPTIONS] [FILE]... | 
 | 30171 |  | 
 | 30172 |   -h, --help       print this help, then exit | 
 | 30173 |   -V, --version    print version number, then exit | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30174 |   -q, --quiet      do not print progress messages | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30175 |   -d, --debug      don't remove temporary files | 
 | 30176 |       --recheck    update $as_me by reconfiguring in the same conditions | 
 | 30177 |   --file=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30178 | 		   instantiate the configuration file FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30179 |   --header=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30180 | 		   instantiate the configuration header FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30181 |  | 
 | 30182 | Configuration files: | 
 | 30183 | $config_files | 
 | 30184 |  | 
 | 30185 | Configuration headers: | 
 | 30186 | $config_headers | 
 | 30187 |  | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 30188 | Configuration links: | 
 | 30189 | $config_links | 
 | 30190 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30191 | Configuration commands: | 
 | 30192 | $config_commands | 
 | 30193 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30194 | Report bugs to <bug-autoconf@gnu.org>." | 
 | 30195 | _ACEOF | 
 | 30196 |  | 
 | 30197 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 30198 | ac_cs_version="\\ | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30199 | llvm config.status 1.4 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30200 | configured by $0, generated by GNU Autoconf 2.59, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30201 |   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
 | 30202 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30203 | Copyright (C) 2003 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30204 | This config.status script is free software; the Free Software Foundation | 
 | 30205 | gives unlimited permission to copy, distribute and modify it." | 
 | 30206 | srcdir=$srcdir | 
 | 30207 | INSTALL="$INSTALL" | 
 | 30208 | _ACEOF | 
 | 30209 |  | 
 | 30210 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30211 | # If no file are specified by the user, then we need to provide default | 
 | 30212 | # value.  By we need to know if files were specified by the user. | 
 | 30213 | ac_need_defaults=: | 
 | 30214 | while test $# != 0 | 
 | 30215 | do | 
 | 30216 |   case $1 in | 
 | 30217 |   --*=*) | 
 | 30218 |     ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
 | 30219 |     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30220 |     ac_shift=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30221 |     ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30222 |   -*) | 
 | 30223 |     ac_option=$1 | 
 | 30224 |     ac_optarg=$2 | 
 | 30225 |     ac_shift=shift | 
 | 30226 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30227 |   *) # This is not an option, so the user has probably given explicit | 
 | 30228 |      # arguments. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30229 |      ac_option=$1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30230 |      ac_need_defaults=false;; | 
 | 30231 |   esac | 
 | 30232 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30233 |   case $ac_option in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30234 |   # Handling of the options. | 
 | 30235 | _ACEOF | 
| John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 30236 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30237 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 30238 |     ac_cs_recheck=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30239 |   --version | --vers* | -V ) | 
 | 30240 |     echo "$ac_cs_version"; exit 0 ;; | 
 | 30241 |   --he | --h) | 
 | 30242 |     # Conflict between --help and --header | 
 | 30243 |     { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
 | 30244 | Try \`$0 --help' for more information." >&5 | 
 | 30245 | echo "$as_me: error: ambiguous option: $1 | 
 | 30246 | Try \`$0 --help' for more information." >&2;} | 
 | 30247 |    { (exit 1); exit 1; }; };; | 
 | 30248 |   --help | --hel | -h ) | 
 | 30249 |     echo "$ac_cs_usage"; exit 0 ;; | 
 | 30250 |   --debug | --d* | -d ) | 
 | 30251 |     debug=: ;; | 
 | 30252 |   --file | --fil | --fi | --f ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30253 |     $ac_shift | 
 | 30254 |     CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30255 |     ac_need_defaults=false;; | 
 | 30256 |   --header | --heade | --head | --hea ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30257 |     $ac_shift | 
 | 30258 |     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30259 |     ac_need_defaults=false;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30260 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 30261 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 30262 |     ac_cs_silent=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30263 |  | 
 | 30264 |   # This is an error. | 
 | 30265 |   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
 | 30266 | Try \`$0 --help' for more information." >&5 | 
 | 30267 | echo "$as_me: error: unrecognized option: $1 | 
 | 30268 | Try \`$0 --help' for more information." >&2;} | 
 | 30269 |    { (exit 1); exit 1; }; } ;; | 
 | 30270 |  | 
 | 30271 |   *) ac_config_targets="$ac_config_targets $1" ;; | 
 | 30272 |  | 
 | 30273 |   esac | 
 | 30274 |   shift | 
 | 30275 | done | 
 | 30276 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30277 | ac_configure_extra_args= | 
 | 30278 |  | 
 | 30279 | if $ac_cs_silent; then | 
 | 30280 |   exec 6>/dev/null | 
 | 30281 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 30282 | fi | 
 | 30283 |  | 
 | 30284 | _ACEOF | 
 | 30285 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 30286 | if \$ac_cs_recheck; then | 
 | 30287 |   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
 | 30288 |   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 30289 | fi | 
 | 30290 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30291 | _ACEOF | 
 | 30292 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30293 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 30294 | # | 
 | 30295 | # INIT-COMMANDS section. | 
 | 30296 | # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30297 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30298 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` | 
 | 30299 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 30300 | ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30301 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30302 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30303 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` | 
 | 30304 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30305 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 30306 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30307 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30308 |  | 
 | 30309 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30310 |  | 
 | 30311 |  | 
 | 30312 |  | 
 | 30313 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30314 | for ac_config_target in $ac_config_targets | 
 | 30315 | do | 
 | 30316 |   case "$ac_config_target" in | 
 | 30317 |   # Handling of arguments. | 
 | 30318 |   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | 0acd65f | 2004-11-23 23:48:45 +0000 | [diff] [blame] | 30319 |   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;; | 
 | 30320 |   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;; | 
 | 30321 |   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;; | 
 | 30322 |   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30323 |   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; | 
| Reid Spencer | 3bf6960 | 2004-12-24 06:49:16 +0000 | [diff] [blame] | 30324 |   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_os_type" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30325 |   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
 | 30326 |   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
| Reid Spencer | 5f28539 | 2004-08-24 16:32:21 +0000 | [diff] [blame] | 30327 |   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30328 |   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30329 |   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30330 |   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
 | 30331 |   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30332 |   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 30333 |   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30334 |   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 30335 |   "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] | 30336 |   "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] | 30337 |   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; | 
 | 30338 |   "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] | 30339 |   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;; | 
 | 30340 |   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30341 |   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
 | 30342 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
 | 30343 |    { (exit 1); exit 1; }; };; | 
 | 30344 |   esac | 
 | 30345 | done | 
 | 30346 |  | 
 | 30347 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 30348 | # then the envvar interface is used.  Set only those that are not. | 
 | 30349 | # We use the long form for the default assignment because of an extremely | 
 | 30350 | # bizarre bug on SunOS 4.1.3. | 
 | 30351 | if $ac_need_defaults; then | 
 | 30352 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 30353 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 30354 |   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30355 |   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30356 | fi | 
 | 30357 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30358 | # Have a temporary directory for convenience.  Make it in the build tree | 
 | 30359 | # simply because there is no reason to put it here, and in addition, | 
 | 30360 | # creating and moving files from /tmp can sometimes cause problems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30361 | # Create a temporary directory, and hook for its removal unless debugging. | 
 | 30362 | $debug || | 
 | 30363 | { | 
 | 30364 |   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
 | 30365 |   trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
 | 30366 | } | 
 | 30367 |  | 
 | 30368 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30369 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30370 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30371 |   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30372 |   test -n "$tmp" && test -d "$tmp" | 
 | 30373 | }  || | 
 | 30374 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30375 |   tmp=./confstat$$-$RANDOM | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30376 |   (umask 077 && mkdir $tmp) | 
 | 30377 | } || | 
 | 30378 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30379 |    echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30380 |    { (exit 1); exit 1; } | 
 | 30381 | } | 
 | 30382 |  | 
 | 30383 | _ACEOF | 
 | 30384 |  | 
 | 30385 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 30386 |  | 
 | 30387 | # | 
 | 30388 | # CONFIG_FILES section. | 
 | 30389 | # | 
 | 30390 |  | 
 | 30391 | # No need to generate the scripts if there are no CONFIG_FILES. | 
 | 30392 | # This happens for instance when ./config.status config.h | 
 | 30393 | if test -n "\$CONFIG_FILES"; then | 
 | 30394 |   # Protect against being on the right side of a sed subst in config.status. | 
 | 30395 |   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
 | 30396 |    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
 | 30397 | s,@SHELL@,$SHELL,;t t | 
 | 30398 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
 | 30399 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
 | 30400 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
 | 30401 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
 | 30402 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
 | 30403 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
 | 30404 | s,@exec_prefix@,$exec_prefix,;t t | 
 | 30405 | s,@prefix@,$prefix,;t t | 
 | 30406 | s,@program_transform_name@,$program_transform_name,;t t | 
 | 30407 | s,@bindir@,$bindir,;t t | 
 | 30408 | s,@sbindir@,$sbindir,;t t | 
 | 30409 | s,@libexecdir@,$libexecdir,;t t | 
 | 30410 | s,@datadir@,$datadir,;t t | 
 | 30411 | s,@sysconfdir@,$sysconfdir,;t t | 
 | 30412 | s,@sharedstatedir@,$sharedstatedir,;t t | 
 | 30413 | s,@localstatedir@,$localstatedir,;t t | 
 | 30414 | s,@libdir@,$libdir,;t t | 
 | 30415 | s,@includedir@,$includedir,;t t | 
 | 30416 | s,@oldincludedir@,$oldincludedir,;t t | 
 | 30417 | s,@infodir@,$infodir,;t t | 
 | 30418 | s,@mandir@,$mandir,;t t | 
 | 30419 | s,@build_alias@,$build_alias,;t t | 
 | 30420 | s,@host_alias@,$host_alias,;t t | 
 | 30421 | s,@target_alias@,$target_alias,;t t | 
 | 30422 | s,@DEFS@,$DEFS,;t t | 
 | 30423 | s,@ECHO_C@,$ECHO_C,;t t | 
 | 30424 | s,@ECHO_N@,$ECHO_N,;t t | 
 | 30425 | s,@ECHO_T@,$ECHO_T,;t t | 
 | 30426 | s,@LIBS@,$LIBS,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30427 | s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 30428 | s,@subdirs@,$subdirs,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30429 | s,@build@,$build,;t t | 
 | 30430 | s,@build_cpu@,$build_cpu,;t t | 
 | 30431 | s,@build_vendor@,$build_vendor,;t t | 
 | 30432 | s,@build_os@,$build_os,;t t | 
 | 30433 | s,@host@,$host,;t t | 
 | 30434 | s,@host_cpu@,$host_cpu,;t t | 
 | 30435 | s,@host_vendor@,$host_vendor,;t t | 
 | 30436 | s,@host_os@,$host_os,;t t | 
 | 30437 | s,@target@,$target,;t t | 
 | 30438 | s,@target_cpu@,$target_cpu,;t t | 
 | 30439 | s,@target_vendor@,$target_vendor,;t t | 
 | 30440 | s,@target_os@,$target_os,;t t | 
 | 30441 | s,@OS@,$OS,;t t | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 30442 | s,@ARCH@,$ARCH,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30443 | s,@ENDIAN@,$ENDIAN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30444 | s,@CC@,$CC,;t t | 
 | 30445 | s,@CFLAGS@,$CFLAGS,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30446 | s,@LDFLAGS@,$LDFLAGS,;t t | 
 | 30447 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30448 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30449 | s,@EXEEXT@,$EXEEXT,;t t | 
 | 30450 | s,@OBJEXT@,$OBJEXT,;t t | 
 | 30451 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t | 
 | 30452 | s,@JIT@,$JIT,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30453 | s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30454 | s,@CPP@,$CPP,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30455 | s,@CXX@,$CXX,;t t | 
 | 30456 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
 | 30457 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30458 | s,@LEX@,$LEX,;t t | 
 | 30459 | s,@LEXLIB@,$LEXLIB,;t t | 
 | 30460 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 30461 | s,@FLEX@,$FLEX,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30462 | s,@YACC@,$YACC,;t t | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 30463 | s,@BISON@,$BISON,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30464 | s,@ifGNUmake@,$ifGNUmake,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30465 | s,@LN_S@,$LN_S,;t t | 
| Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 30466 | s,@CMP@,$CMP,;t t | 
 | 30467 | s,@CP@,$CP,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30468 | s,@DATE@,$DATE,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30469 | s,@FIND@,$FIND,;t t | 
 | 30470 | s,@GREP@,$GREP,;t t | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30471 | s,@LLVMGCC@,$LLVMGCC,;t t | 
 | 30472 | s,@LLVMGXX@,$LLVMGXX,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30473 | s,@MKDIR@,$MKDIR,;t t | 
 | 30474 | s,@MV@,$MV,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30475 | s,@PAX@,$PAX,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30476 | s,@RANLIB@,$RANLIB,;t t | 
 | 30477 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30478 | s,@RM@,$RM,;t t | 
 | 30479 | s,@SED@,$SED,;t t | 
| Reid Spencer | ad354c9 | 2004-10-25 08:18:47 +0000 | [diff] [blame] | 30480 | s,@TAR@,$TAR,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30481 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
 | 30482 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
 | 30483 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30484 | s,@BZIP2@,$BZIP2,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30485 | s,@DOT@,$DOT,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30486 | s,@DOXYGEN@,$DOXYGEN,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30487 | s,@ETAGS@,$ETAGS,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30488 | s,@GROFF@,$GROFF,;t t | 
 | 30489 | s,@GZIP@,$GZIP,;t t | 
 | 30490 | s,@POD2HTML@,$POD2HTML,;t t | 
 | 30491 | s,@POD2MAN@,$POD2MAN,;t t | 
| Reid Spencer | 4b8f82f | 2004-11-07 23:29:39 +0000 | [diff] [blame] | 30492 | s,@RUNTEST@,$RUNTEST,;t t | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 30493 | s,@TCLSH@,$TCLSH,;t t | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 30494 | s,@ZIP@,$ZIP,;t t | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 30495 | s,@EGREP@,$EGREP,;t t | 
 | 30496 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t | 
 | 30497 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t | 
 | 30498 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t | 
 | 30499 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t | 
 | 30500 | s,@LIBADD_DL@,$LIBADD_DL,;t t | 
 | 30501 | s,@ECHO@,$ECHO,;t t | 
 | 30502 | s,@AR@,$AR,;t t | 
 | 30503 | s,@ac_ct_AR@,$ac_ct_AR,;t t | 
 | 30504 | s,@STRIP@,$STRIP,;t t | 
 | 30505 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | 
 | 30506 | s,@CXXCPP@,$CXXCPP,;t t | 
 | 30507 | s,@F77@,$F77,;t t | 
 | 30508 | s,@FFLAGS@,$FFLAGS,;t t | 
 | 30509 | s,@ac_ct_F77@,$ac_ct_F77,;t t | 
 | 30510 | s,@LIBTOOL@,$LIBTOOL,;t t | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30511 | s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30512 | s,@ALLOCA@,$ALLOCA,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30513 | s,@MMAP_FILE@,$MMAP_FILE,;t t | 
| Brian Gaeke | 2f50a04 | 2004-01-16 21:31:21 +0000 | [diff] [blame] | 30514 | s,@LLVMCC1@,$LLVMCC1,;t t | 
 | 30515 | s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 30516 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 30517 | s,@SHLIBEXT@,$SHLIBEXT,;t t | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 30518 | s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t | 
 | 30519 | s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t | 
 | 30520 | s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t | 
 | 30521 | s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t | 
 | 30522 | s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t | 
 | 30523 | s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t | 
 | 30524 | s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t | 
 | 30525 | s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t | 
 | 30526 | s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t | 
 | 30527 | s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 30528 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30529 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30530 | CEOF | 
 | 30531 |  | 
 | 30532 | _ACEOF | 
 | 30533 |  | 
 | 30534 |   cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30535 |   # Split the substitutions into bite-sized pieces for seds with | 
 | 30536 |   # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 30537 |   ac_max_sed_lines=48 | 
 | 30538 |   ac_sed_frag=1 # Number of current file. | 
 | 30539 |   ac_beg=1 # First line for current file. | 
 | 30540 |   ac_end=$ac_max_sed_lines # Line after last line for current file. | 
 | 30541 |   ac_more_lines=: | 
 | 30542 |   ac_sed_cmds= | 
 | 30543 |   while $ac_more_lines; do | 
 | 30544 |     if test $ac_beg -gt 1; then | 
 | 30545 |       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 30546 |     else | 
 | 30547 |       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 30548 |     fi | 
 | 30549 |     if test ! -s $tmp/subs.frag; then | 
 | 30550 |       ac_more_lines=false | 
 | 30551 |     else | 
 | 30552 |       # The purpose of the label and of the branching condition is to | 
 | 30553 |       # speed up the sed processing (if there are no `@' at all, there | 
 | 30554 |       # is no need to browse any of the substitutions). | 
 | 30555 |       # These are the two extra sed commands mentioned above. | 
 | 30556 |       (echo ':t | 
 | 30557 |   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
 | 30558 |       if test -z "$ac_sed_cmds"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30559 | 	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30560 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30561 | 	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] | 30562 |       fi | 
 | 30563 |       ac_sed_frag=`expr $ac_sed_frag + 1` | 
 | 30564 |       ac_beg=$ac_end | 
 | 30565 |       ac_end=`expr $ac_end + $ac_max_sed_lines` | 
 | 30566 |     fi | 
 | 30567 |   done | 
 | 30568 |   if test -z "$ac_sed_cmds"; then | 
 | 30569 |     ac_sed_cmds=cat | 
 | 30570 |   fi | 
 | 30571 | fi # test -n "$CONFIG_FILES" | 
 | 30572 |  | 
 | 30573 | _ACEOF | 
 | 30574 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30575 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
 | 30576 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 30577 |   case $ac_file in | 
 | 30578 |   - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30579 | 	cat >$tmp/stdin | 
 | 30580 | 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 30581 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30582 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30583 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30584 |   * )   ac_file_in=$ac_file.in ;; | 
 | 30585 |   esac | 
 | 30586 |  | 
 | 30587 |   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
 | 30588 |   ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 30589 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30590 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 30591 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 30592 | 	 X"$ac_file" : 'X\(/\)' \| \ | 
 | 30593 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30594 | echo X"$ac_file" | | 
 | 30595 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 30596 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 30597 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 30598 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 30599 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30600 |   { if $as_mkdir_p; then | 
 | 30601 |     mkdir -p "$ac_dir" | 
 | 30602 |   else | 
 | 30603 |     as_dir="$ac_dir" | 
 | 30604 |     as_dirs= | 
 | 30605 |     while test ! -d "$as_dir"; do | 
 | 30606 |       as_dirs="$as_dir $as_dirs" | 
 | 30607 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 30608 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30609 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 30610 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 30611 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 30612 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30613 | echo X"$as_dir" | | 
 | 30614 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 30615 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 30616 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 30617 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 30618 |   	  s/.*/./; q'` | 
 | 30619 |     done | 
 | 30620 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 30621 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 30622 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 30623 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30624 |  | 
 | 30625 |   ac_builddir=. | 
 | 30626 |  | 
 | 30627 | if test "$ac_dir" != .; then | 
 | 30628 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 30629 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 30630 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 30631 | else | 
 | 30632 |   ac_dir_suffix= ac_top_builddir= | 
 | 30633 | fi | 
 | 30634 |  | 
 | 30635 | case $srcdir in | 
 | 30636 |   .)  # No --srcdir option.  We are building in place. | 
 | 30637 |     ac_srcdir=. | 
 | 30638 |     if test -z "$ac_top_builddir"; then | 
 | 30639 |        ac_top_srcdir=. | 
 | 30640 |     else | 
 | 30641 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 30642 |     fi ;; | 
 | 30643 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 30644 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 30645 |     ac_top_srcdir=$srcdir ;; | 
 | 30646 |   *) # Relative path. | 
 | 30647 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 30648 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 30649 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30650 |  | 
 | 30651 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 30652 | # the directories may not exist. | 
 | 30653 | case `pwd` in | 
 | 30654 | .) ac_abs_builddir="$ac_dir";; | 
 | 30655 | *) | 
 | 30656 |   case "$ac_dir" in | 
 | 30657 |   .) ac_abs_builddir=`pwd`;; | 
 | 30658 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 30659 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 30660 |   esac;; | 
 | 30661 | esac | 
 | 30662 | case $ac_abs_builddir in | 
 | 30663 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 30664 | *) | 
 | 30665 |   case ${ac_top_builddir}. in | 
 | 30666 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 30667 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 30668 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 30669 |   esac;; | 
 | 30670 | esac | 
 | 30671 | case $ac_abs_builddir in | 
 | 30672 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 30673 | *) | 
 | 30674 |   case $ac_srcdir in | 
 | 30675 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 30676 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 30677 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 30678 |   esac;; | 
 | 30679 | esac | 
 | 30680 | case $ac_abs_builddir in | 
 | 30681 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 30682 | *) | 
 | 30683 |   case $ac_top_srcdir in | 
 | 30684 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 30685 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 30686 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 30687 |   esac;; | 
 | 30688 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30689 |  | 
 | 30690 |  | 
 | 30691 |   case $INSTALL in | 
 | 30692 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
 | 30693 |   *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
 | 30694 |   esac | 
 | 30695 |  | 
 | 30696 |   if test x"$ac_file" != x-; then | 
 | 30697 |     { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 30698 | echo "$as_me: creating $ac_file" >&6;} | 
 | 30699 |     rm -f "$ac_file" | 
 | 30700 |   fi | 
 | 30701 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 30702 |   # use $as_me), people would be surprised to read: | 
 | 30703 |   #    /* config.h.  Generated by config.status.  */ | 
 | 30704 |   if test x"$ac_file" = x-; then | 
 | 30705 |     configure_input= | 
 | 30706 |   else | 
 | 30707 |     configure_input="$ac_file.  " | 
 | 30708 |   fi | 
 | 30709 |   configure_input=$configure_input"Generated from `echo $ac_file_in | | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30710 | 				     sed 's,.*/,,'` by configure." | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30711 |  | 
 | 30712 |   # First look for the input files in the build tree, otherwise in the | 
 | 30713 |   # src tree. | 
 | 30714 |   ac_file_inputs=`IFS=: | 
 | 30715 |     for f in $ac_file_in; do | 
 | 30716 |       case $f in | 
 | 30717 |       -) echo $tmp/stdin ;; | 
 | 30718 |       [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30719 | 	 # Absolute (can't be DOS-style, as IFS=:) | 
 | 30720 | 	 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] | 30721 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 30722 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30723 | 	 echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30724 |       *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30725 | 	 if test -f "$f"; then | 
 | 30726 | 	   # Build tree | 
 | 30727 | 	   echo "$f" | 
 | 30728 | 	 elif test -f "$srcdir/$f"; then | 
 | 30729 | 	   # Source tree | 
 | 30730 | 	   echo "$srcdir/$f" | 
 | 30731 | 	 else | 
 | 30732 | 	   # /dev/null tree | 
 | 30733 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30734 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 30735 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30736 | 	 fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30737 |       esac | 
 | 30738 |     done` || { (exit 1); exit 1; } | 
 | 30739 | _ACEOF | 
 | 30740 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 30741 |   sed "$ac_vpsub | 
 | 30742 | $extrasub | 
 | 30743 | _ACEOF | 
 | 30744 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30745 | :t | 
 | 30746 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
 | 30747 | s,@configure_input@,$configure_input,;t t | 
 | 30748 | s,@srcdir@,$ac_srcdir,;t t | 
 | 30749 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
 | 30750 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
 | 30751 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
 | 30752 | s,@builddir@,$ac_builddir,;t t | 
 | 30753 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
 | 30754 | s,@top_builddir@,$ac_top_builddir,;t t | 
 | 30755 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
 | 30756 | s,@INSTALL@,$ac_INSTALL,;t t | 
 | 30757 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
 | 30758 |   rm -f $tmp/stdin | 
 | 30759 |   if test x"$ac_file" != x-; then | 
 | 30760 |     mv $tmp/out $ac_file | 
 | 30761 |   else | 
 | 30762 |     cat $tmp/out | 
 | 30763 |     rm -f $tmp/out | 
 | 30764 |   fi | 
 | 30765 |  | 
 | 30766 | done | 
 | 30767 | _ACEOF | 
 | 30768 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30769 |  | 
 | 30770 | # | 
 | 30771 | # CONFIG_HEADER section. | 
 | 30772 | # | 
 | 30773 |  | 
 | 30774 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
 | 30775 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
 | 30776 | # | 
 | 30777 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30778 | ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)' | 
 | 30779 | ac_dB='[	 ].*$,\1#\2' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30780 | ac_dC=' ' | 
 | 30781 | ac_dD=',;t' | 
 | 30782 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30783 | ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30784 | ac_uB='$,\1#\2define\3' | 
 | 30785 | ac_uC=' ' | 
 | 30786 | ac_uD=',;t' | 
 | 30787 |  | 
 | 30788 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
 | 30789 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 30790 |   case $ac_file in | 
 | 30791 |   - | *:- | *:-:* ) # input from stdin | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30792 | 	cat >$tmp/stdin | 
 | 30793 | 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 30794 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30795 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30796 | 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30797 |   * )   ac_file_in=$ac_file.in ;; | 
 | 30798 |   esac | 
 | 30799 |  | 
 | 30800 |   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 30801 | echo "$as_me: creating $ac_file" >&6;} | 
 | 30802 |  | 
 | 30803 |   # First look for the input files in the build tree, otherwise in the | 
 | 30804 |   # src tree. | 
 | 30805 |   ac_file_inputs=`IFS=: | 
 | 30806 |     for f in $ac_file_in; do | 
 | 30807 |       case $f in | 
 | 30808 |       -) echo $tmp/stdin ;; | 
 | 30809 |       [\\/$]*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30810 | 	 # Absolute (can't be DOS-style, as IFS=:) | 
 | 30811 | 	 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] | 30812 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 30813 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30814 | 	 # Do quote $f, to prevent DOS paths from being IFS'd. | 
 | 30815 | 	 echo "$f";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30816 |       *) # Relative | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30817 | 	 if test -f "$f"; then | 
 | 30818 | 	   # Build tree | 
 | 30819 | 	   echo "$f" | 
 | 30820 | 	 elif test -f "$srcdir/$f"; then | 
 | 30821 | 	   # Source tree | 
 | 30822 | 	   echo "$srcdir/$f" | 
 | 30823 | 	 else | 
 | 30824 | 	   # /dev/null tree | 
 | 30825 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30826 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 30827 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30828 | 	 fi;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30829 |       esac | 
 | 30830 |     done` || { (exit 1); exit 1; } | 
 | 30831 |   # Remove the trailing spaces. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30832 |   sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30833 |  | 
 | 30834 | _ACEOF | 
 | 30835 |  | 
 | 30836 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
 | 30837 | # `conftest.undefs', that substitutes the proper values into | 
 | 30838 | # config.h.in to produce config.h.  The first handles `#define' | 
 | 30839 | # templates, and the second `#undef' templates. | 
 | 30840 | # And first: Protect against being on the right side of a sed subst in | 
 | 30841 | # config.status.  Protect against being in an unquoted here document | 
 | 30842 | # in config.status. | 
 | 30843 | rm -f conftest.defines conftest.undefs | 
 | 30844 | # Using a here document instead of a string reduces the quoting nightmare. | 
 | 30845 | # Putting comments in sed scripts is not portable. | 
 | 30846 | # | 
 | 30847 | # `end' is used to avoid that the second main sed command (meant for | 
 | 30848 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
 | 30849 | # See the Autoconf documentation for `clear'. | 
 | 30850 | cat >confdef2sed.sed <<\_ACEOF | 
 | 30851 | s/[\\&,]/\\&/g | 
 | 30852 | s,[\\$`],\\&,g | 
 | 30853 | t clear | 
 | 30854 | : clear | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30855 | 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] | 30856 | t end | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30857 | 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] | 30858 | : end | 
 | 30859 | _ACEOF | 
 | 30860 | # If some macros were called several times there might be several times | 
 | 30861 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
 | 30862 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
 | 30863 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
 | 30864 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
 | 30865 | rm -f confdef2sed.sed | 
 | 30866 |  | 
 | 30867 | # This sed command replaces #undef with comments.  This is necessary, for | 
 | 30868 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
 | 30869 | # on some systems where configure will not decide to define it. | 
 | 30870 | cat >>conftest.undefs <<\_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30871 | s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30872 | _ACEOF | 
 | 30873 |  | 
 | 30874 | # Break up conftest.defines because some shells have a limit on the size | 
 | 30875 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 30876 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30877 | echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30878 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
 | 30879 | echo '  :' >>$CONFIG_STATUS | 
 | 30880 | rm -f conftest.tail | 
 | 30881 | while grep . conftest.defines >/dev/null | 
 | 30882 | do | 
 | 30883 |   # Write a limited-size here document to $tmp/defines.sed. | 
 | 30884 |   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
 | 30885 |   # Speed up: don't consider the non `#define' lines. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30886 |   echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30887 |   # Work around the forget-to-reset-the-flag bug. | 
 | 30888 |   echo 't clr' >>$CONFIG_STATUS | 
 | 30889 |   echo ': clr' >>$CONFIG_STATUS | 
 | 30890 |   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
 | 30891 |   echo 'CEOF | 
 | 30892 |   sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
 | 30893 |   rm -f $tmp/in | 
 | 30894 |   mv $tmp/out $tmp/in | 
 | 30895 | ' >>$CONFIG_STATUS | 
 | 30896 |   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
 | 30897 |   rm -f conftest.defines | 
 | 30898 |   mv conftest.tail conftest.defines | 
 | 30899 | done | 
 | 30900 | rm -f conftest.defines | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30901 | echo '  fi # grep' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30902 | echo >>$CONFIG_STATUS | 
 | 30903 |  | 
 | 30904 | # Break up conftest.undefs because some shells have a limit on the size | 
 | 30905 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 30906 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
 | 30907 | rm -f conftest.tail | 
 | 30908 | while grep . conftest.undefs >/dev/null | 
 | 30909 | do | 
 | 30910 |   # Write a limited-size here document to $tmp/undefs.sed. | 
 | 30911 |   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
 | 30912 |   # Speed up: don't consider the non `#undef' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30913 |   echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30914 |   # Work around the forget-to-reset-the-flag bug. | 
 | 30915 |   echo 't clr' >>$CONFIG_STATUS | 
 | 30916 |   echo ': clr' >>$CONFIG_STATUS | 
 | 30917 |   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
 | 30918 |   echo 'CEOF | 
 | 30919 |   sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
 | 30920 |   rm -f $tmp/in | 
 | 30921 |   mv $tmp/out $tmp/in | 
 | 30922 | ' >>$CONFIG_STATUS | 
 | 30923 |   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
 | 30924 |   rm -f conftest.undefs | 
 | 30925 |   mv conftest.tail conftest.undefs | 
 | 30926 | done | 
 | 30927 | rm -f conftest.undefs | 
 | 30928 |  | 
 | 30929 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30930 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 30931 |   # use $as_me), people would be surprised to read: | 
 | 30932 |   #    /* config.h.  Generated by config.status.  */ | 
 | 30933 |   if test x"$ac_file" = x-; then | 
 | 30934 |     echo "/* Generated by configure.  */" >$tmp/config.h | 
 | 30935 |   else | 
 | 30936 |     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
 | 30937 |   fi | 
 | 30938 |   cat $tmp/in >>$tmp/config.h | 
 | 30939 |   rm -f $tmp/in | 
 | 30940 |   if test x"$ac_file" != x-; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30941 |     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30942 |       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
 | 30943 | echo "$as_me: $ac_file is unchanged" >&6;} | 
 | 30944 |     else | 
 | 30945 |       ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 30946 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30947 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 30948 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 30949 | 	 X"$ac_file" : 'X\(/\)' \| \ | 
 | 30950 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30951 | echo X"$ac_file" | | 
 | 30952 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 30953 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 30954 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 30955 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 30956 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30957 |       { if $as_mkdir_p; then | 
 | 30958 |     mkdir -p "$ac_dir" | 
 | 30959 |   else | 
 | 30960 |     as_dir="$ac_dir" | 
 | 30961 |     as_dirs= | 
 | 30962 |     while test ! -d "$as_dir"; do | 
 | 30963 |       as_dirs="$as_dir $as_dirs" | 
 | 30964 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 30965 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30966 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 30967 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 30968 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 30969 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30970 | echo X"$as_dir" | | 
 | 30971 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 30972 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 30973 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 30974 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 30975 |   	  s/.*/./; q'` | 
 | 30976 |     done | 
 | 30977 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 30978 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 30979 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 30980 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30981 |  | 
 | 30982 |       rm -f $ac_file | 
 | 30983 |       mv $tmp/config.h $ac_file | 
 | 30984 |     fi | 
 | 30985 |   else | 
 | 30986 |     cat $tmp/config.h | 
 | 30987 |     rm -f $tmp/config.h | 
 | 30988 |   fi | 
 | 30989 | done | 
 | 30990 | _ACEOF | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 30991 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 30992 |  | 
 | 30993 | # | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 30994 | # CONFIG_LINKS section. | 
 | 30995 | # | 
 | 30996 |  | 
 | 30997 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | 
 | 30998 |   ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
 | 30999 |   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 31000 |  | 
 | 31001 |   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 | 
 | 31002 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | 
 | 31003 |  | 
 | 31004 |   if test ! -r $srcdir/$ac_source; then | 
 | 31005 |     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 | 
 | 31006 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | 
 | 31007 |    { (exit 1); exit 1; }; } | 
 | 31008 |   fi | 
 | 31009 |   rm -f $ac_dest | 
 | 31010 |  | 
 | 31011 |   # Make relative symlinks. | 
 | 31012 |   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | 
 | 31013 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31014 | 	 X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
 | 31015 | 	 X"$ac_dest" : 'X\(//\)$' \| \ | 
 | 31016 | 	 X"$ac_dest" : 'X\(/\)' \| \ | 
 | 31017 | 	 .     : '\(.\)' 2>/dev/null || | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 31018 | echo X"$ac_dest" | | 
 | 31019 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 31020 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 31021 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 31022 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 31023 |   	  s/.*/./; q'` | 
 | 31024 |   { if $as_mkdir_p; then | 
 | 31025 |     mkdir -p "$ac_dest_dir" | 
 | 31026 |   else | 
 | 31027 |     as_dir="$ac_dest_dir" | 
 | 31028 |     as_dirs= | 
 | 31029 |     while test ! -d "$as_dir"; do | 
 | 31030 |       as_dirs="$as_dir $as_dirs" | 
 | 31031 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 31032 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31033 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 31034 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 31035 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 31036 | 	 .     : '\(.\)' 2>/dev/null || | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 31037 | echo X"$as_dir" | | 
 | 31038 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 31039 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 31040 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 31041 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 31042 |   	  s/.*/./; q'` | 
 | 31043 |     done | 
 | 31044 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 31045 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | 
 | 31046 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | 
 | 31047 |    { (exit 1); exit 1; }; }; } | 
 | 31048 |  | 
 | 31049 |   ac_builddir=. | 
 | 31050 |  | 
 | 31051 | if test "$ac_dest_dir" != .; then | 
 | 31052 |   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | 
 | 31053 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 31054 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 31055 | else | 
 | 31056 |   ac_dir_suffix= ac_top_builddir= | 
 | 31057 | fi | 
 | 31058 |  | 
 | 31059 | case $srcdir in | 
 | 31060 |   .)  # No --srcdir option.  We are building in place. | 
 | 31061 |     ac_srcdir=. | 
 | 31062 |     if test -z "$ac_top_builddir"; then | 
 | 31063 |        ac_top_srcdir=. | 
 | 31064 |     else | 
 | 31065 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 31066 |     fi ;; | 
 | 31067 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 31068 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 31069 |     ac_top_srcdir=$srcdir ;; | 
 | 31070 |   *) # Relative path. | 
 | 31071 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 31072 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 31073 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31074 |  | 
 | 31075 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 31076 | # the directories may not exist. | 
 | 31077 | case `pwd` in | 
 | 31078 | .) ac_abs_builddir="$ac_dest_dir";; | 
 | 31079 | *) | 
 | 31080 |   case "$ac_dest_dir" in | 
 | 31081 |   .) ac_abs_builddir=`pwd`;; | 
 | 31082 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | 
 | 31083 |   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | 
 | 31084 |   esac;; | 
 | 31085 | esac | 
 | 31086 | case $ac_abs_builddir in | 
 | 31087 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 31088 | *) | 
 | 31089 |   case ${ac_top_builddir}. in | 
 | 31090 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 31091 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 31092 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 31093 |   esac;; | 
 | 31094 | esac | 
 | 31095 | case $ac_abs_builddir in | 
 | 31096 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 31097 | *) | 
 | 31098 |   case $ac_srcdir in | 
 | 31099 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 31100 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 31101 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 31102 |   esac;; | 
 | 31103 | esac | 
 | 31104 | case $ac_abs_builddir in | 
 | 31105 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 31106 | *) | 
 | 31107 |   case $ac_top_srcdir in | 
 | 31108 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 31109 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 31110 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 31111 |   esac;; | 
 | 31112 | esac | 
| Reid Spencer | de8c47f | 2004-08-29 19:35:28 +0000 | [diff] [blame] | 31113 |  | 
 | 31114 |  | 
 | 31115 |   case $srcdir in | 
 | 31116 |   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | 
 | 31117 |       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | 
 | 31118 |   esac | 
 | 31119 |  | 
 | 31120 |   # Try a symlink, then a hard link, then a copy. | 
 | 31121 |   ln -s $ac_rel_source $ac_dest 2>/dev/null || | 
 | 31122 |     ln $srcdir/$ac_source $ac_dest 2>/dev/null || | 
 | 31123 |     cp -p $srcdir/$ac_source $ac_dest || | 
 | 31124 |     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | 
 | 31125 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | 
 | 31126 |    { (exit 1); exit 1; }; } | 
 | 31127 | done | 
 | 31128 | _ACEOF | 
 | 31129 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31130 |  | 
 | 31131 | # | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31132 | # CONFIG_COMMANDS section. | 
 | 31133 | # | 
 | 31134 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | 
 | 31135 |   ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
 | 31136 |   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 31137 |   ac_dir=`(dirname "$ac_dest") 2>/dev/null || | 
 | 31138 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31139 | 	 X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
 | 31140 | 	 X"$ac_dest" : 'X\(//\)$' \| \ | 
 | 31141 | 	 X"$ac_dest" : 'X\(/\)' \| \ | 
 | 31142 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31143 | echo X"$ac_dest" | | 
 | 31144 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 31145 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 31146 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 31147 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 31148 |   	  s/.*/./; q'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31149 |   { if $as_mkdir_p; then | 
 | 31150 |     mkdir -p "$ac_dir" | 
 | 31151 |   else | 
 | 31152 |     as_dir="$ac_dir" | 
 | 31153 |     as_dirs= | 
 | 31154 |     while test ! -d "$as_dir"; do | 
 | 31155 |       as_dirs="$as_dir $as_dirs" | 
 | 31156 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 31157 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 31158 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 31159 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 31160 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 31161 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 31162 | echo X"$as_dir" | | 
 | 31163 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 31164 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 31165 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 31166 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 31167 |   	  s/.*/./; q'` | 
 | 31168 |     done | 
 | 31169 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 31170 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 31171 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 31172 |    { (exit 1); exit 1; }; }; } | 
 | 31173 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31174 |   ac_builddir=. | 
 | 31175 |  | 
 | 31176 | if test "$ac_dir" != .; then | 
 | 31177 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 31178 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 31179 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 31180 | else | 
 | 31181 |   ac_dir_suffix= ac_top_builddir= | 
 | 31182 | fi | 
 | 31183 |  | 
 | 31184 | case $srcdir in | 
 | 31185 |   .)  # No --srcdir option.  We are building in place. | 
 | 31186 |     ac_srcdir=. | 
 | 31187 |     if test -z "$ac_top_builddir"; then | 
 | 31188 |        ac_top_srcdir=. | 
 | 31189 |     else | 
 | 31190 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 31191 |     fi ;; | 
 | 31192 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 31193 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 31194 |     ac_top_srcdir=$srcdir ;; | 
 | 31195 |   *) # Relative path. | 
 | 31196 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 31197 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 31198 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31199 |  | 
 | 31200 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 31201 | # the directories may not exist. | 
 | 31202 | case `pwd` in | 
 | 31203 | .) ac_abs_builddir="$ac_dir";; | 
 | 31204 | *) | 
 | 31205 |   case "$ac_dir" in | 
 | 31206 |   .) ac_abs_builddir=`pwd`;; | 
 | 31207 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 31208 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 31209 |   esac;; | 
 | 31210 | esac | 
 | 31211 | case $ac_abs_builddir in | 
 | 31212 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 31213 | *) | 
 | 31214 |   case ${ac_top_builddir}. in | 
 | 31215 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 31216 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 31217 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 31218 |   esac;; | 
 | 31219 | esac | 
 | 31220 | case $ac_abs_builddir in | 
 | 31221 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 31222 | *) | 
 | 31223 |   case $ac_srcdir in | 
 | 31224 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 31225 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 31226 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 31227 |   esac;; | 
 | 31228 | esac | 
 | 31229 | case $ac_abs_builddir in | 
 | 31230 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 31231 | *) | 
 | 31232 |   case $ac_top_srcdir in | 
 | 31233 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 31234 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 31235 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 31236 |   esac;; | 
 | 31237 | esac | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31238 |  | 
 | 31239 |  | 
 | 31240 |   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 
 | 31241 | echo "$as_me: executing $ac_dest commands" >&6;} | 
 | 31242 |   case $ac_dest in | 
 | 31243 |     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; | 
 | 31244 |     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] | 31245 |     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] | 31246 |     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] | 31247 |     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] | 31248 |     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; | 
 | 31249 |     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 31250 |     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 31251 |     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] | 31252 |     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] | 31253 |   esac | 
 | 31254 | done | 
 | 31255 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31256 |  | 
 | 31257 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 31258 |  | 
 | 31259 | { (exit 0); exit 0; } | 
 | 31260 | _ACEOF | 
 | 31261 | chmod +x $CONFIG_STATUS | 
 | 31262 | ac_clean_files=$ac_clean_files_save | 
 | 31263 |  | 
 | 31264 |  | 
 | 31265 | # configure is writing to config.log, and then calls config.status. | 
 | 31266 | # config.status does its own redirection, appending to config.log. | 
 | 31267 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 31268 | # by configure, so config.status won't be able to write to it; its | 
 | 31269 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 31270 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 31271 | # appended to by config.status.  When coming back to configure, we | 
 | 31272 | # need to make the FD available again. | 
 | 31273 | if test "$no_create" != yes; then | 
 | 31274 |   ac_cs_success=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31275 |   ac_config_status_args= | 
 | 31276 |   test "$silent" = yes && | 
 | 31277 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31278 |   exec 5>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31279 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31280 |   exec 5>>config.log | 
 | 31281 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 31282 |   # would make configure fail if this is the last instruction. | 
 | 31283 |   $ac_cs_success || { (exit 1); exit 1; } | 
 | 31284 | fi | 
 | 31285 |  | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31286 | # | 
 | 31287 | # CONFIG_SUBDIRS section. | 
 | 31288 | # | 
 | 31289 | if test "$no_recursion" != yes; then | 
 | 31290 |  | 
 | 31291 |   # Remove --cache-file and --srcdir arguments so they do not pile up. | 
 | 31292 |   ac_sub_configure_args= | 
 | 31293 |   ac_prev= | 
 | 31294 |   for ac_arg in $ac_configure_args; do | 
 | 31295 |     if test -n "$ac_prev"; then | 
 | 31296 |       ac_prev= | 
 | 31297 |       continue | 
 | 31298 |     fi | 
 | 31299 |     case $ac_arg in | 
 | 31300 |     -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 31301 |     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 31302 |       ac_prev=cache_file ;; | 
 | 31303 |     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 31304 |     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
 | 31305 |     | --c=*) | 
 | 31306 |       ;; | 
 | 31307 |     --config-cache | -C) | 
 | 31308 |       ;; | 
 | 31309 |     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 31310 |       ac_prev=srcdir ;; | 
 | 31311 |     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 31312 |       ;; | 
 | 31313 |     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 31314 |       ac_prev=prefix ;; | 
 | 31315 |     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 31316 |       ;; | 
 | 31317 |     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
 | 31318 |     esac | 
 | 31319 |   done | 
 | 31320 |  | 
 | 31321 |   # Always prepend --prefix to ensure using the same prefix | 
 | 31322 |   # in subdir configurations. | 
 | 31323 |   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | 
 | 31324 |  | 
 | 31325 |   ac_popdir=`pwd` | 
 | 31326 |   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
 | 31327 |  | 
 | 31328 |     # Do not complain, so a configure script can configure whichever | 
 | 31329 |     # parts of a large source tree are present. | 
 | 31330 |     test -d $srcdir/$ac_dir || continue | 
 | 31331 |  | 
 | 31332 |     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | 
 | 31333 | echo "$as_me: configuring in $ac_dir" >&6;} | 
 | 31334 |     { if $as_mkdir_p; then | 
 | 31335 |     mkdir -p "$ac_dir" | 
 | 31336 |   else | 
 | 31337 |     as_dir="$ac_dir" | 
 | 31338 |     as_dirs= | 
 | 31339 |     while test ! -d "$as_dir"; do | 
 | 31340 |       as_dirs="$as_dir $as_dirs" | 
 | 31341 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 31342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31343 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 31344 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 31345 | 	 X"$as_dir" : 'X\(/\)' \| \ | 
 | 31346 | 	 .     : '\(.\)' 2>/dev/null || | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31347 | echo X"$as_dir" | | 
 | 31348 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 31349 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 31350 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 31351 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 31352 |   	  s/.*/./; q'` | 
 | 31353 |     done | 
 | 31354 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 31355 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 31356 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 31357 |    { (exit 1); exit 1; }; }; } | 
 | 31358 |  | 
 | 31359 |     ac_builddir=. | 
 | 31360 |  | 
 | 31361 | if test "$ac_dir" != .; then | 
 | 31362 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 31363 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 31364 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 31365 | else | 
 | 31366 |   ac_dir_suffix= ac_top_builddir= | 
 | 31367 | fi | 
 | 31368 |  | 
 | 31369 | case $srcdir in | 
 | 31370 |   .)  # No --srcdir option.  We are building in place. | 
 | 31371 |     ac_srcdir=. | 
 | 31372 |     if test -z "$ac_top_builddir"; then | 
 | 31373 |        ac_top_srcdir=. | 
 | 31374 |     else | 
 | 31375 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 31376 |     fi ;; | 
 | 31377 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 31378 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 31379 |     ac_top_srcdir=$srcdir ;; | 
 | 31380 |   *) # Relative path. | 
 | 31381 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 31382 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 31383 | esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31384 |  | 
 | 31385 | # Do not use `cd foo && pwd` to compute absolute paths, because | 
 | 31386 | # the directories may not exist. | 
 | 31387 | case `pwd` in | 
 | 31388 | .) ac_abs_builddir="$ac_dir";; | 
 | 31389 | *) | 
 | 31390 |   case "$ac_dir" in | 
 | 31391 |   .) ac_abs_builddir=`pwd`;; | 
 | 31392 |   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | 
 | 31393 |   *) ac_abs_builddir=`pwd`/"$ac_dir";; | 
 | 31394 |   esac;; | 
 | 31395 | esac | 
 | 31396 | case $ac_abs_builddir in | 
 | 31397 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 31398 | *) | 
 | 31399 |   case ${ac_top_builddir}. in | 
 | 31400 |   .) ac_abs_top_builddir=$ac_abs_builddir;; | 
 | 31401 |   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | 
 | 31402 |   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | 
 | 31403 |   esac;; | 
 | 31404 | esac | 
 | 31405 | case $ac_abs_builddir in | 
 | 31406 | .) ac_abs_srcdir=$ac_srcdir;; | 
 | 31407 | *) | 
 | 31408 |   case $ac_srcdir in | 
 | 31409 |   .) ac_abs_srcdir=$ac_abs_builddir;; | 
 | 31410 |   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | 
 | 31411 |   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | 
 | 31412 |   esac;; | 
 | 31413 | esac | 
 | 31414 | case $ac_abs_builddir in | 
 | 31415 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 31416 | *) | 
 | 31417 |   case $ac_top_srcdir in | 
 | 31418 |   .) ac_abs_top_srcdir=$ac_abs_builddir;; | 
 | 31419 |   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | 
 | 31420 |   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | 
 | 31421 |   esac;; | 
 | 31422 | esac | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31423 |  | 
 | 31424 |  | 
 | 31425 |     cd $ac_dir | 
 | 31426 |  | 
 | 31427 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 31428 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 31429 |       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | 
 | 31430 |     elif test -f $ac_srcdir/configure; then | 
 | 31431 |       ac_sub_configure="$SHELL '$ac_srcdir/configure'" | 
 | 31432 |     elif test -f $ac_srcdir/configure.in; then | 
 | 31433 |       ac_sub_configure=$ac_configure | 
 | 31434 |     else | 
 | 31435 |       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
 | 31436 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
 | 31437 |       ac_sub_configure= | 
 | 31438 |     fi | 
 | 31439 |  | 
 | 31440 |     # The recursion is here. | 
 | 31441 |     if test -n "$ac_sub_configure"; then | 
 | 31442 |       # Make the cache file name correct relative to the subdirectory. | 
 | 31443 |       case $cache_file in | 
 | 31444 |       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
 | 31445 |       *) # Relative path. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31446 | 	ac_sub_cache_file=$ac_top_builddir$cache_file ;; | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 31447 |       esac | 
 | 31448 |  | 
 | 31449 |       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
 | 31450 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
 | 31451 |       # The eval makes quoting arguments work. | 
 | 31452 |       eval $ac_sub_configure $ac_sub_configure_args \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31453 | 	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | 
 | 31454 | 	{ { 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] | 31455 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
 | 31456 |    { (exit 1); exit 1; }; } | 
 | 31457 |     fi | 
 | 31458 |  | 
 | 31459 |     cd $ac_popdir | 
 | 31460 |   done | 
 | 31461 | fi | 
 | 31462 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31463 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31464 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 31465 |  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 | 
 | 31466 | echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;} | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31467 |  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 | 
 | 31468 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} | 
 | 31469 |  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 | 
 | 31470 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} | 
 | 31471 |  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 | 
 | 31472 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} | 
 | 31473 |  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 | 
 | 31474 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31475 | fi |